OLD | NEW |
1 # INSTALLING NPM/BOWER | 1 # INSTALLING NPM/BOWER |
2 | 2 |
3 The version of npm in apt-get is too old for bower. Instead | 3 The version of npm in apt-get is too old for bower. Instead |
4 install it from http://nodejs.org/download/. | 4 install it from http://nodejs.org/download/. |
5 | 5 |
6 Install bower with: | 6 Install bower with: |
7 | 7 |
8 $ npm install -g bower | 8 $ npm install -g bower |
9 | 9 |
10 # SYNCING DEPENDENCIES | 10 # SYNCING DEPENDENCIES |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 $ ./node_modules/karma/bin/karma start | 50 $ ./node_modules/karma/bin/karma start |
51 | 51 |
52 You can shorten this command to 'karma start' if you run 'npm install -g karma-c
li'. | 52 You can shorten this command to 'karma start' if you run 'npm install -g karma-c
li'. |
53 | 53 |
54 ## QUnit (old-style) tests | 54 ## QUnit (old-style) tests |
55 | 55 |
56 While we still have tests using QUnit, you can run these at: http://localhost:80
00/GardeningServer/run-unittests.html. | 56 While we still have tests using QUnit, you can run these at: http://localhost:80
00/GardeningServer/run-unittests.html. |
57 | 57 |
58 # PUSHING | 58 # PUSHING |
59 | 59 |
60 Fill in the revision you're pushing for XXXX. | 60 In GardeningServer: |
61 1. appcfg.py update . --version rXXXX | 61 |
62 2. Go to appengine.google.com and select the sheriff-o-matic app. | 62 1. make update |
63 3. Click on the version tab | 63 2. appcfg.py update . --version r$(git svn find-rev HEAD) --oauth2 |
64 4. Make the rXXXX version the default | 64 3. Go to appengine.google.com and select the sheriff-o-matic app. |
| 65 4. Click on the version tab |
| 66 5. Make the rXXXX version the default, where XXXX is: |
| 67 git svn find-rev HEAD |
65 | 68 |
66 The versioning is so that we can easily roll back if there's something | 69 The versioning is so that we can easily roll back if there's something |
67 wrong with the push and so we can know what we've pushed. | 70 wrong with the push and so we can know what we've pushed. |
68 | 71 |
69 If you're unsure about whether you might have broken things, before | 72 If you're unsure about whether you might have broken things, before |
70 step 4, you can click on the link for that version to see that | 73 step 4, you can click on the link for that version to see that |
71 version of the server before you make it the default. | 74 version of the server before you make it the default. |
72 | 75 |
73 # LIBRARIES | 76 # LIBRARIES |
74 | 77 |
75 sugar: Provides generic syntactic sugar for JavaScript, mostly by extending nati
ve object prototypes. | 78 sugar: Provides generic syntactic sugar for JavaScript, mostly by extending nati
ve object prototypes. |
76 | 79 |
77 karma: test runner. Runs the unit tests in an instance of Chrome and pipes the r
esults to the command | 80 karma: test runner. Runs the unit tests in an instance of Chrome and pipes the r
esults to the command |
78 line. By default, it watches for changes to files and will automatically
re-run the tests. To run | 81 line. By default, it watches for changes to files and will automatically
re-run the tests. To run |
79 once and exit, use 'karma start --single-run' or 'make single-test'. | 82 once and exit, use 'karma start --single-run' or 'make single-test'. |
80 | 83 |
81 mocha: testing framework. Provides good asynchronous and synchronous test suppor
t. Tests run serially, | 84 mocha: testing framework. Provides good asynchronous and synchronous test suppor
t. Tests run serially, |
82 so exceptions are reported for the right test case. | 85 so exceptions are reported for the right test case. |
83 | 86 |
84 chai: assertion library. | 87 chai: assertion library. |
OLD | NEW |