generator-rollup-configdeprecated

Allows to easily install and configure Rollup and its plugins

Usage no npm install needed!

<script type="module">
  import generatorRollupConfig from 'https://cdn.skypack.dev/generator-rollup-config';
</script>

README

generator-rollup-config

A Yeoman generator for installing and configuring Rollup.

JS bundling can be a really complicated thing, but Rollup can make it easier.
This generator will help you to quickly get started with Rollup.

Installation

Make sure you have Node and npm installed. Then install Yeoman and generator:

npm install -g yo
npm install -g generator-rollup-config

Create a new directory for your project:

mkdir my-new-project
cd my-new-project

Now you can install and configure Rollup with:

yo rollup-config

Usage

Rollup-config will always install and configure: rollup, rollup-plugin-node-resolve, rollup-plugin-commonjs, rollup-plugin-amd, rollup-watch.

Additionally it may provide code transpilation (buble or babel), plugins for working with some JS frameworks and basic support for different languages (Typescript, PureScript, CoffeeScript).

It's pretty straightforward, but remember that this generator creates a very simple configuration. You may want to modify the configuration files (.babelrc, rollup.config.js) and tweak them to your needs.

Scripts

Bundle:

npm run build

Watch files for change:

npm run dev

Tests

You can run simple tests with:

npm test

Additionally you can check code with ESLint:

npm run eslint

License

MIT © Paweł Halczuk