@robin-framework/alfred-rollup
Rollup plugin for Alfred.
Last updated 2 years ago by terkelg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @robin-framework/alfred-rollup 
SYNC missed versions from official npm registry.

alfred-rollup npm

Rollup plugin for alfred.

Install

$ npm install --save-dev @robin-framework/alfred-rollup

Usage

exports.scripts = async function (task) {
  await task.source('test/**/*.js').rollup({
    inline: true,
    transforms: {
      arrow: true,
      modules: false,
      dangerousForOf: true
    }
  }).target('dist/js');
}

API

.rollup(options)

To view all Rollup options, visit its documentation. The format is similar in structure to rollup config files.

Multiple inputs are not supported The API is designed this way on purpose to avoid file conflicts (files being overwritten). Use mutiple tasks to accomplish this.

This plugin includes two additional shorthands to pass options:

options

Type: String
Default: cjs
If true, will append an internal sourcemap (data URI) to the file's contents instead of an external link (default). Also will not create a new *.js.map file. Requires that options.sourceMap to remain true.

options

Type: Object
Default: { output: { format: 'cjs' } }
The default format is cjs. When no output.file is defined, the default is the file name. When multiple outputs are defined and but no output.file, output name defaults to sourcename + format suffix, to avoid files being overwritten.

options.output

Type: Object|Array
Default: { format: 'cjs'}
Output options are similar to the rollup output options.

Support

Any issues or questions can be sent to the Alfred monorepo.

Please be sure to specify that you are using @alfred/rollup.

License

MIT © Terkel Gjervig

Current Tags

  • 0.0.9                                ...           latest (2 years ago)

3 Versions

  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7 [deprecated]           ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 4
This Month 4
Last Day 3
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |