Minimal boilerplate for creating NPM packages
Boilerplate to get started with NPM package instantly.
Features
- ES6, ES7, ES8 support
- Class properties support
- Decorators support
- ESLint with AirBnB Base style guide & Prettier
- Transpilation to ES5
Usage
- Clone the repo:
git clone https://github.com/ganapativs/npm-minimal-boilerplate.git my-awesome-npm-package && cd $_
- Remove .git:
rm -rf .git
- Install dependencies:
yarn
- Lint:
yarn run lint
- Fix lint issues and prettify code 😎:
yarn run lint-fix
- Transpilation to ES5 in
dist
folder:yarn run prepublish
(standard npm hook) - Push package to your own Github repository
- Publish package:
yarn run publish
Todo
- Test cases
License
MIT