generator leaflet plugin with rollup

Usage no npm install needed!

<script type="module">
  import generatorLeafletPluginWithRollup from '';


generator-leaflet-plugin-with-rollup NPM version Build Status Dependency Status

generator leaflet plugin with rollup


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


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.


generator-leaflet-plugin-with-rollup was inspired by generator-node


MIT © bung