1.1.2 • Published 6 years ago
npm-js-package-boilerplate v1.1.2
Features
- Build with webpack 4 and babel 7
- Test with jest
- Lint with eslint (Using "Standard JS" config as default)
- Hot reloading with webpack-dev-server
Getting started
- Clone this repo from github
- Create a new repo on GitHub
- Inside the local new repo directory run
git remote set-url origin git@github.com:yourname/NewProject.git - Rename to your package name in package.json
Usage
Development
npm run dev- This opens localhost:8080/your-module-name in Chrome automatically (Can be removed from webpack.config.js)
- Edit your code and enjoy hot reloading
Test driven development
npm run watch- Edit your code and follow tests in your terminal
Run tests
npm run test
Build package
npm run prodRun tests, lint and builds the modulenpm version patch(orminor/majoretc.)npm publish