# make a project folder
mkdir my_npm_package
# download source
curl -L https://api.github.com/repos/undirectlookable/npm-package-boilerplate/tarball/master | tar xz -C my_npm_package --strip-components 1
cd my_npm_package
# edit package.json
vi package.json
# install dependencies
npm install
- ES6 - Transpiled by Babel
- Test - Jest
- Lint - ESLint
- Code Style - StandardJS
- CI - Auto tested by Travis CI
- CommonJS Module in
lib/
- UMD Module in
dist/
by rollup.js
npm run clean
- Removelib/
anddist/
directorynpm run dev
- Watch files insrc/
and babel intolib/
npm run lint
- Run ESLintnpm run test
- Run test tasksnpm run coverage
- Run test and generate coverage reportnpm run build
- Build CommonJS and UMD Module