1# UPGRADING
2
31. `git clone https://github.com/beautify-web/js-beautify.git`
4
52. `cd js-beautify`
6
73. Retrieve the latest tag with
8
9```
10git describe --tags `git rev-list --tags --max-count=1`
11```
12
134. Move to the latest tag `git checkout ${latestTag}` (`${latestTag}` should be replaced with
14   what was printed at step 3).
15
165. `npm install`
17
186. `npx webpack`
19
207. Copy `js/lib/beautify.js` to `devtools/shared/jsbeautify/src/beautify-js.js`
21
228. Copy `js/lib/beautify-html.js` to `devtools/shared/jsbeautify/src/beautify-html.js`
23
249. Replace the following line at the bottom of the file:
25
26```
27var js_beautify = require('./beautify.js');
28```
29
30with (changing `beautify.js` into `beautify-js.js`):
31
32```
33var js_beautify = require('./beautify-js.js');
34```
35
3610. Copy `js/lib/beautify-css.js` to `devtools/shared/jsbeautify/src/beautify-css.js`
37