@gera2ld/generator-rollup

1.0.0 • Public • Published

@gera2ld/generator-rollup

NPM

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

  1. Make sure yeoman is installed

    $ yarn global add yo
  2. Initialize a library repo

    $ cd my-library
    $ yo @gera2ld/rollup
  3. Initialize a browser-only script / iife repo

    $ cd my-script
    $ yo @gera2ld/rollup:iife
  4. Initialize a userscript repo

    $ cd my-script
    $ yo @gera2ld/rollup:userscript

Package Sidebar

Install

npm i @gera2ld/generator-rollup

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

22 kB

Total Files

27

Last publish

Collaborators

  • gera2ld