fly-rollup
Rollup plugin for Fly.
Last updated 3 years ago by frantic1048 .
WTFPL · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fly-rollup 
SYNC missed versions from official npm registry.

fly-rollup

fly badge npm badge download badge travisbadge license badge

Rollup plugin for Fly .

Install

This plugin requires Fly .

npm i --save-dev fly-rollup

Usage

Async/Await flavored:

export async function roll (fly) {
  await fly
    .source('src/entry.js') // just pass your entry file(s) here
    .rollup({
      rollup: { // rollup options
        plugins: [
          require('rollup-plugin-babel')()
        ]
      },
      bundle: { // bundle options
        format: 'es'
      }
    })
    .target('dist')
}

Generator function flavored:

exports.roll = function * (fly) {
  yield fly
    .source('src/entry.js') // just pass your entry file(s) here
    .rollup({
      rollup: { // rollup options
        plugins: [
          require('rollup-plugin-babel')()
        ]
      },
      bundle: { // bundle options
        format: 'es'
      }
    })
    .target('dist')
}

You just need to pass entry files to fly-rollup .

Sourcemap

Sourcemap is controlled by sourceMap key in bundle options. It has 3 options:

  • true: default value, generate external sourcemap along with bundle output.
  • 'inline': inline sourcemap.
  • false: disable sourcemap.

e.g.

fly.source
  .rollup({
    bundle: {
      sourceMap: false // disable sourcemap
    }
  })

For other options:

See Rollup JavaScript API#rollup.rollup( options ) for rollup options .

See Rollup JavaScript API#bundle.generate( options ) for bundle options .

License

Do What The F*ck You Want To Public License

Current Tags

  • 2.1.0                                ...           latest (3 years ago)

5 Versions

  • 2.1.0                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 3
Dependencies (1)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |