Opinionated npm package scaffold / template.
PROJECT=newproject
git clone https://github.com/olalonde/es6-npm-package-scaffold.git "$PROJECT"
cd $PROJECT && ./init.sh
- eslint + AirBnB style guide
- babel for transpiling to es5
- blue-tape for tests (like substack/tape but promise aware)
- conventional-recommended-bump for automated versioning
npm run release runs tests, bumps version using conventional recommended bump, pushes git tags, compiles src/ to lib/ and publishes on npm
npm test runs lint and tests in test/
npm run lint runs lint only
npm run build uses babel to compile src/ to lib/
npm run clean deletes lib/
Recommended:
npm install -g cz-cli
and git cz
to help with angular style
commits.
package for yeoman