README
generator leaflet plugin with rollup
Installation
First, install Yeoman and generator-leaflet-plugin-with-rollup using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-leaflet-plugin-with-rollup
Usage
yo leaflet-plugin-with-rollup
That'll generate a project with all the common tools setup. This includes:
provided by generator-node
- Filled
package.json
file - jest unit test and code coverage (optionally tracked on Coveralls)
- ESLint linting and code style checking
- Travis CI continuous integration (optional)
- License
provided by this project
- Parcel develop and distribute examples
- Rollup distribute your plugin as umd,cjs,ejs module
with babel,node-sass,postcss,postcss-sprites supported - gh-pages release your plugin examples pages to ghpages
Running tests
Once the project is scaffolded, inside the project folder run:
$ npm test
You can also directly use jest to run test on single files:
$ npm -g install jest-cli
$ jest --watch
Getting To Know Yeoman
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
Acknowledgments
generator-leaflet-plugin-with-rollup was inspired by generator-node
License
MIT © bung