Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 sheriff-o-matic must be run from a server in order to handle Polymer imports cor rectly. | |
| 2 | |
| 3 1. cd Tools | |
| 4 2. python -m SimpleHTTPServer | |
| 5 3. Load http://localhost:8000/GardeningServer/sheriff-o-matic.html | |
| 6 | |
| 7 Run the tests via http://localhost:8000/GardeningServer/test/run-unit-tests.html . | |
| 8 | |
| 9 From the command line: | |
| 10 1. cd Tools/GardeningServer | |
| 11 2. ./node_modules/karma/bin/karma start | |
| 12 | |
| 13 This will run the unit tests in Chrome, pipe the results to the command line, an d watch the source and test files for changes. With 'npm install -g karma-cli', you can just use 'karma start'. To run once and exit, use 'karma start --single- run'. | |
| 14 | |
| 15 Dependencies, including Polymer and mocha, must be synced via bower in order for anything to work. | |
| 16 | |
|
ojan
2014/07/23 01:36:57
Maybe add a section to the readme explaining what
michaelpg
2014/07/23 02:12:01
This is more of a replacement readme for when we s
ojan
2014/07/23 02:38:37
I think you misunderstood me. I was asking for *mo
michaelpg
2014/07/23 03:06:42
Oh, yeah, sorry. I thought you were saying edit th
michaelpg
2014/07/28 20:35:04
Done.
| |
| 17 INSTALLING NPM/BOWER | |
| 18 The version of npm in apt-get is too old for bower. Instead | |
| 19 install it from http://nodejs.org/download/. | |
| 20 | |
| 21 Install bower with: | |
| 22 sudo npm install -g bower | |
| 23 | |
| 24 SYNCING DEPENDENCIES | |
| 25 1. cd Tools/GardeningServer | |
| 26 2. bower update | |
| 27 3. npm install | |
| OLD | NEW |