|
1 Assuming that acorn's dependencies have not changed, to upgrade our tree's |
|
2 acorn to a new version: |
|
3 |
|
4 1. Clone the acorn repository, and check out the version you want to upgrade |
|
5 to: |
|
6 |
|
7 $ git clone https://github.com/marijnh/acorn.git |
|
8 $ cd acorn |
|
9 $ git checkout <version> |
|
10 |
|
11 2. Make sure that all tests pass: |
|
12 |
|
13 $ npm install . |
|
14 $ npm test |
|
15 |
|
16 If there are any test failures, do not upgrade to that version of acorn! |
|
17 |
|
18 3. Copy acorn.js to our tree: |
|
19 |
|
20 $ cp acorn.js /path/to/mozilla-central/toolkit/devtools/acorn/acorn.js |
|
21 |
|
22 4. Copy acorn_loose.js to our tree: |
|
23 |
|
24 $ cp acorn_loose.js /path/to/mozilla-central/toolkit/devtools/acorn/acorn_loose.js |
|
25 |
|
26 5. Copy util/walk.js to our tree: |
|
27 |
|
28 $ cp util/walk.js /path/to/mozilla-central/toolkit/devtools/acorn/walk.js |