reverse-sourcemap command line utility globally with npm.
Elevated privileges might be needed via
sudo, depending on the platform. In most cases just:
npm install --global reverse-sourcemap
Command line options
The output of
reverse-sourcemap --help pretty much covers all the options:
uglifyjs stretchy.js --compress --mangle \-o stretchy.min.js --source-map stretchy.min.js.mapuglifyjs stretchy.js --compress --mangle \-o stretchy.min.js --source-map stretchy-with-sources.min.js.map \--source-map-include-sourcessass stretchy.scss:stretchy.csssass stretchy.scss:stretchy.css --sourcemap=inline
Unit tests are written with
tape and can be executed with
Code coverage is inspected with
can be executed with
npm run coverage after running
Please make sure it is over 90% at all times.
Linting is done with ESLint and can be executed with
npm run lint.
Please note that any features or changed will not be merged without working unit tests.
Licensed under the MIT license.