@movable/broccoli-rollup
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

Note: this is a (hopefully temporary) fork of the broccoli-rollup module.

Usage Build Status

Broccoli-rollup is a simple wrapper around Rollup. In the options object pass the rollup options.

basic

var Rollup = require('broccoli-rollup');
var lib = 'lib';

module.exports = new Rollup(lib, {
  // nodeModulesPath: string Defaults to process.cwd()
  rollup: {
    input: 'lib/index.js',
    output: {
      file: 'my-lib.js',
      format: 'es',
    },
    // cache: true|false Defaults to true
  }
})

\w targets

var Rollup = require('broccoli-rollup');
var lib = 'lib';

module.exports = new Rollup(lib, {
  rollup: {
    input: 'lib/index.js',
    output: [
      {
        file: 'my-lib.amd.js'
        format: 'amd',
      },
      {
        file: 'my-lib.iife.js'
        format: 'iife',
      }
    ]
  }
})

Readme

Keywords

Package Sidebar

Install

npm i @movable/broccoli-rollup

Weekly Downloads

2

Version

2.3.0

License

MIT

Unpacked Size

31.3 kB

Total Files

23

Last publish

Collaborators

  • chayelheinsen
  • polera-mi
  • movable-ink
  • mnutt
  • shyshy
  • nicksteffens_mi
  • mansurtsutiev
  • mi_rtepper
  • aqmnguyen