| OLD | NEW |
| (Empty) |
| 1 Develop Polymer Web Components | |
| 2 ============================== | |
| 3 | |
| 4 Components should be built into files before deploy to production. Currently | |
| 5 there are two files needed in production: stats-app-build.html and | |
| 6 stats-overview-build.html. To generate them see the 'Build' section. | |
| 7 | |
| 8 | |
| 9 Setup | |
| 10 ----- | |
| 11 | |
| 12 1. From http://nodejs.org/download/, download the relevant nodejs. | |
| 13 2. Add path/to/node/bin to your PATH. | |
| 14 3. Run the following. | |
| 15 | |
| 16 $ npm install -g bower | |
| 17 $ bower install | |
| 18 $ npm install -g vulcanize | |
| 19 | |
| 20 | |
| 21 Build | |
| 22 ----- | |
| 23 | |
| 24 $ vulcanize --inline --csp -o stats-app-build.html stats-app.html | |
| 25 $ vulcanize --inline --csp -o stats-overview-build.html stats-overview.html | |
| 26 | |
| 27 | |
| 28 Using non-vulcanized files | |
| 29 -------------------------- | |
| 30 | |
| 31 To develop locally, install Polymer and change the import statement in root.html | |
| 32 and stats.html from stats-app-build.html to stats-app.html, and from | |
| 33 stats-overview-build.html to stats-overview.html. | |
| OLD | NEW |