Nourishing Pear Medley

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

    0.19.0 • Public • Published

    @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',
      targets: ['> 0.1% in JP'],
      useBuiltIns: false,
      corejs: 2,
      babelrc: '/path/to/.babelrc.js',
      inputOptions: {},
      outputOptions: {},
      aliasOptions: {},
      nodeResolveOptions: {},
      jsonOptions: {},
      commonjsOptions: {},
      compress: true,
      verbose: true
    }));

    Returns Function<Stream>

    Test

    $ yarn test

    License

    MIT

    Keywords

    Install

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

    DownloadsWeekly Downloads

    80

    Version

    0.19.0

    License

    MIT

    Unpacked Size

    47.2 kB

    Total Files

    14

    Last publish

    Collaborators

    • hidoo