Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 835 Bytes

UPGRADING.md

File metadata and controls

36 lines (22 loc) · 835 Bytes

UPGRADING

  1. git clone https://github.com/beautify-web/js-beautify.git

  2. cd js-beautify

  3. Retrieve the latest tag with

git describe --tags `git rev-list --tags --max-count=1`
  1. Move to the latest tag git checkout ${latestTag} (${latestTag} should be replaced with what was printed at step 3).

  2. npm install

  3. npx webpack

  4. Copy js/lib/beautify.js to devtools/shared/jsbeautify/src/beautify-js.js

  5. Copy js/lib/beautify-html.js to devtools/shared/jsbeautify/src/beautify-html.js

  6. Replace the following line at the bottom of the file:

var js_beautify = require('./beautify.js');

with (changing beautify.js into beautify-js.js):

var js_beautify = require('./beautify-js.js');
  1. Copy js/lib/beautify-css.js to devtools/shared/jsbeautify/src/beautify-css.js