@gera2ld/generator-rollup
v1.0.0
Published
Generate an ES6 project with rollup
Downloads
6
Readme
@gera2ld/generator-rollup
Yeoman generator to create a workspace easy to be packed with Rollup.
It is aimed to generate projects based on JavaScript files, e.g. userscripts, JavaScript libraries.
Installation
It is highly recommended to use with Yarn.
$ yarn global add @gera2ld/generator-rollup
# You can also clone the generator and link it to global node_modules
$ git clone https://github.com/gera2ld/generator-rollup.git
One time usage with npx
:
$ npx -p @gera2ld/generator-rollup -p yo yo @gera2ld/rollup
# or use the latest version from git
$ npx -p https://github.com/gera2ld/generator-rollup.git -p yo yo @gera2ld/rollup
Usage
Make sure yeoman is installed
$ yarn global add yo
Initialize a library repo
$ cd my-library $ yo @gera2ld/rollup
Initialize a browser-only script / iife repo
$ cd my-script $ yo @gera2ld/rollup:iife
Initialize a userscript repo
$ cd my-script $ yo @gera2ld/rollup:userscript