@hidoo/gulp-task-build-js-rollup
Task that build javascript by rollup.js for gulp.
Last updated a month ago by hidoo .
MIT · Original npm · Tarball · package.json
$ cnpm install @hidoo/gulp-task-build-js-rollup 
SYNC missed versions from official npm registry.

@hidoo/gulp-task-build-js-rollup

Task that build javascript by rollup.js for gulp.

Installation

$ npm install --save-dev gulp@next @babel/{core,polyfill,preset-env} @hidoo/gulp-task-build-js-rollup

Usage

import {task} from 'gulp';
import buildJs from '@hidoo/gulp-task-build-js-rollup';

task('js', buildJs({
  src: '/path/to/js/main.js',
  dest: '/path/to/dest'
}));

API

buildJs

return javascript build task by rollup.js

Parameters

Examples

import {task} from 'gulp';
import buildJs from '@hidoo/gulp-task-build-js-rollup';

task('js', buildJs({
  name: 'js:main',
  src: '/path/to/js/main.js',
  dest: '/path/to/dest',
  filename: 'main.js',
  suffix: '.hoge',
  browsers: ['> 0.1% in JP'],
  useBuiltIns: false,
  corejs: 3,
  babelrc: '/path/to/.babelrc.js',
  inputOptions: {...},
  outputOptions: {...},
  nodeResolveOptions: {...},
  commonjsOptions: {...},
  compress: true,
  verbose: true
}));

Returns Function<Promise>

Test

$ yarn test

License

MIT

Current Tags

  • 0.13.0                                ...           latest (a month ago)

21 Versions

  • 0.13.0                                ...           a month ago
  • 0.12.0                                ...           2 months ago
  • 0.11.0                                ...           2 months ago
  • 0.10.0                                ...           3 months ago
  • 0.9.0                                ...           3 months ago
  • 0.8.4                                ...           5 months ago
  • 0.8.3                                ...           6 months ago
  • 0.8.2                                ...           6 months ago
  • 0.8.1                                ...           6 months ago
  • 0.8.0                                ...           9 months ago
  • 0.7.0                                ...           9 months ago
  • 0.6.2                                ...           a year ago
  • 0.6.1                                ...           a year ago
  • 0.6.0                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 21
Last Day 0
Last Week 0
Last Month 38
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |