Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | Assuming that acorn's dependencies have not changed, to upgrade our tree's |
michael@0 | 2 | acorn to a new version: |
michael@0 | 3 | |
michael@0 | 4 | 1. Clone the acorn repository, and check out the version you want to upgrade |
michael@0 | 5 | to: |
michael@0 | 6 | |
michael@0 | 7 | $ git clone https://github.com/marijnh/acorn.git |
michael@0 | 8 | $ cd acorn |
michael@0 | 9 | $ git checkout <version> |
michael@0 | 10 | |
michael@0 | 11 | 2. Make sure that all tests pass: |
michael@0 | 12 | |
michael@0 | 13 | $ npm install . |
michael@0 | 14 | $ npm test |
michael@0 | 15 | |
michael@0 | 16 | If there are any test failures, do not upgrade to that version of acorn! |
michael@0 | 17 | |
michael@0 | 18 | 3. Copy acorn.js to our tree: |
michael@0 | 19 | |
michael@0 | 20 | $ cp acorn.js /path/to/mozilla-central/toolkit/devtools/acorn/acorn.js |
michael@0 | 21 | |
michael@0 | 22 | 4. Copy acorn_loose.js to our tree: |
michael@0 | 23 | |
michael@0 | 24 | $ cp acorn_loose.js /path/to/mozilla-central/toolkit/devtools/acorn/acorn_loose.js |
michael@0 | 25 | |
michael@0 | 26 | 5. Copy util/walk.js to our tree: |
michael@0 | 27 | |
michael@0 | 28 | $ cp util/walk.js /path/to/mozilla-central/toolkit/devtools/acorn/walk.js |