gobble-rollup
Bundle ES6 modules with gobble and rollup
Last updated 3 years ago by rich_harris .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gobble-rollup 
SYNC missed versions from official npm registry.

gobble-rollup

Bundle ES6 modules with gobble and rollup.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm i -D gobble-rollup

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble( 'src' ).transform( 'rollup', {
  // REQUIRED - the file to start bundling from
  entry: 'app.js',

  // where to write the file to. If omitted,
  // will match the entry module's name
  dest: 'bundle.js',

  // what type of module to create - can be one of
  // 'amd', 'cjs', 'es6', 'iife', 'umd'. Defaults to 'cjs'
  format: 'umd',

  // if generating a 'umd' module, and the entry module
  // (and therefore the bundle) has exports, specify
  // a global name
  moduleName: 'myApp', // becomes `window.myApp`

  // if generated 'amd' or 'umd', you can specify a
  // moduleId which will be used by AMD loaders
  moduleId: 'my-app',

  // set export type explicitly - 'named', 'default' or 'none'.
  // By default this will be set automatically
  exports: 'default',

  // disable caching, in case that's necessary for
  // some reason
  cache: false
});

License

MIT. Copyright 2015 Rich Harris

Current Tags

  • 0.40.0                                ...           latest (3 years ago)

26 Versions

  • 0.40.0                                ...           3 years ago
  • 0.36.0                                ...           3 years ago
  • 0.35.0                                ...           3 years ago
  • 0.34.0                                ...           3 years ago
  • 0.33.0                                ...           3 years ago
  • 0.29.0                                ...           3 years ago
  • 0.27.0                                ...           3 years ago
  • 0.26.3                                ...           3 years ago
  • 0.26.1                                ...           3 years ago
  • 0.26.0                                ...           3 years ago
  • 0.25.0                                ...           4 years ago
  • 0.11.0                                ...           4 years ago
  • 0.10.0                                ...           4 years ago
  • 0.9.0                                ...           4 years ago
  • 0.8.1                                ...           4 years ago
  • 0.8.0                                ...           4 years ago
  • 0.7.0                                ...           4 years ago
  • 0.6.0                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 27
Last Day 0
Last Week 26
Last Month 12
Dependencies (1)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |