Skip to content

Commit

Permalink
- use names
Browse files Browse the repository at this point in the history
- use html tag
- add licenses
- update deps
- update build stuffs (e.g. scripts, server files) follow the same on shop#3.0 branch
  • Loading branch information
frankiefu committed Jun 5, 2018
1 parent 73a3f6d commit 86eb637
Show file tree
Hide file tree
Showing 31 changed files with 16,892 additions and 187 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
bower_components/
node_modules
build/
*.pyc
build
23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
# NEWS

## Prerequisites

### Polymer CLI

Install [polymer-cli](https://github.com/Polymer/polymer-cli):

npm install -g polymer-cli

### Setup

git clone https://github.com/polymer/news.git
git clone -b 3.0 https://github.com/polymer/news.git
cd news
bower install
npm i

## Start the development server

polymer serve
npm start

## Build

polymer build
npm run build

## Test the build
static build:

npm run serve:static

Use `polymer serve` to serve a specific build preset of the app. For example:
prpl-server build:

polymer serve build/es5-bundled
npm run serve:prpl-server
22 changes: 0 additions & 22 deletions bower.json

This file was deleted.

5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">

<title>NEWS</title>
<meta name="description" content="Polymer News Demo">

<link rel="shortcut icon" sizes="32x32" href="images/news-icon-32.png">
<meta name="twitter:card" content="summary">
Expand Down Expand Up @@ -75,8 +76,8 @@

<news-app unresolved app-title="NEWS">NEWS</news-app>

<script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script type="module" src="/src/news-app.js"></script>
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script type="module" src="src/news-app.js"></script>

</body>
</html>
Loading

0 comments on commit 86eb637

Please sign in to comment.