@hidoo/gulp-task-build-js-rollup
Task that build javascript by rollup.js for gulp.
Last updated 10 days 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.14.0                                ...           latest (10 days ago)

22 Versions

  • 0.14.0                                ...           10 days ago
  • 0.13.0                                ...           3 months ago
  • 0.12.0                                ...           4 months ago
  • 0.11.0                                ...           4 months ago
  • 0.10.0                                ...           5 months ago
  • 0.9.0                                ...           5 months ago
  • 0.8.4                                ...           7 months ago
  • 0.8.3                                ...           8 months ago
  • 0.8.2                                ...           8 months ago
  • 0.8.1                                ...           9 months ago
  • 0.8.0                                ...           a year ago
  • 0.7.0                                ...           a year 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 34
Last Day 0
Last Week 34
Last Month 0
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |