@movable/broccoli-rollup
Rollup integration with broccoli
Last updated 9 months ago by mnutt .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @movable/broccoli-rollup 
SYNC missed versions from official npm registry.

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',
      }
    ]
  }
})

Current Tags

  • 2.3.0                                ...           latest (9 months ago)

2 Versions

  • 2.3.0                                ...           9 months ago
  • 2.2.0                                ...           9 months ago
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (11)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |