This starter repo is to help build npm packages easily. Features are:
- ES6 (Babel)
- Jest (testing)
- Easily develop with npm script helpers
- Ensure your distribution files compile and tests run with each commit
- Simply clone this project.
git clone git@github.com:gemmadlou/NPM-Package-Starter.git
- Remove the .git folder so you can make your own
cd NPM-Package-Starter
sudo rm -rf .git
- Run yarn or npm
yarn
npm install
yarn run production
npm run production
- Update the npm package with your information
- Update the webpack config with your information
- Watch and develop your plugin
yarn run dev
- Build a production version of your plugin
yarn run production
- Run tests once
yarn run test
- Watch tests
yarn run test:watch
Just submit an issue and I'd be happy to help.
Add an issue, or fork and create a pull request. But it's a simple starter, so feel free to bend this to your will.