Getting startedInstall the
reverse-sourcemapcommand line utility globally with npm. Elevated privileges might be needed via
sudo, depending on the platform. In most cases just: ```sh npm install --global reverse-sourcemap ``` Please note that the minimum supported version of Node.js is
8.11.1, which is the active Long Term Support (LTS) version.
Command line optionsThe output of
TestingTest files are generated with UglifyJS2 and
sassby using files from the stretchy project, with the following commands: ```sh uglifyjs stretchy.js --compress --mangle \ -o stretchy.min.js --source-map stretchy.min.js.map uglifyjs stretchy.js --compress --mangle \ -o stretchy.min.js --source-map stretchy-with-sources.min.js.map \ --source-map-include-sources sass stretchy.scss:stretchy.css sass stretchy.scss:stretchy.css --sourcemap=inline ``` Unit tests are written with
tapeand can be executed with
npm test. Code coverage is inspected with
nycand can be executed with
npm run coverageafter running
npm test. Please make sure it is over 90% at all times.
Contributing"A Beginner's Guide to Open Source: The Best Advice for Making your First Contribution". Also there is a blog post about "45 Github Issues Dos and Don’ts". Linting is done with ESLint and can be executed with