Nucleic Photon Magnetizer

    @gulp-utils/gulp-core-build-rollup
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    @gulp-utils/gulp-core-build-rollup

    gulp-core-build-rollup is a gulp-core-build subtask which introduces the ability to bundle various source files into a set of bundles, using rollup.

    npm version Dependencies

    Tasks

    RollupTask

    Description

    This task invokes rollup using a consumer-specified rollup.config.js on a package.

    Command Line Options

    If the --initrollup flag is passed to the command line, this task will initialize a rollup.config.js which bundles lib/index.js into dist/{packagename}.js as a UMD module.

    Usage

    const {rollup} = require("@gulp-utils/gulp-core-build-rollup");
    const {initialize, parallel, serial, task} = require("@microsoft/gulp-core-build");
    const {tscCmd, tslintCmd} = require("@microsoft/gulp-core-build-typescript");
    
    rollup.setConfig({
      configPath: "./rollup.config.js"
    });
    
    task("default", serial(parallel(tscCmd, tslintCmd), rollup));
    
    initialize(require("gulp"));

    Config

    interface IRollupConfig {
        configPath?: string;
        config?: RollupOptions | RollupOptions[];
        suppressWarnings?: (string | RegExp)[];
        rollup?: typeof Rollup;
        printStats?: boolean;
    }

    Keywords

    none

    Install

    npm i @gulp-utils/gulp-core-build-rollup

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    25.9 kB

    Total Files

    19

    Last publish

    Collaborators

    • tnc1997