A simple JavaScript boilerplate that outputs to ES5 and ES6.
git clone [email protected]:escaladesports/javascript-module-boilerplate.git --depth=1 your-module
cd your-module
yarn
yarn reset
Also make sure to edit the package.json
file with a new name, version number, author, and anything else you might need.
yarn build
: Build browser and node versions of the moduleyarn dev
: Run live dev modeyarn test
: Run mocha testsyarn analyze
: View bundle sizes
Unit tests will be performed pre-commit and pre-publish. You can change this in the npm scripts if this doesn't work well with your use case.