0.40.0 • Published 9 years ago

gobble-rollup v0.40.0

Weekly downloads
21
License
MIT
Repository
github
Last release
9 years ago

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

0.40.0

9 years ago

0.36.0

9 years ago

0.35.0

9 years ago

0.34.0

9 years ago

0.33.0

9 years ago

0.29.0

9 years ago

0.27.0

9 years ago

0.26.3

9 years ago

0.26.1

9 years ago

0.26.0

9 years ago

0.25.0

9 years ago

0.11.0

10 years ago

0.10.0

10 years ago

0.9.0

10 years ago

0.8.1

10 years ago

0.8.0

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago