@gulp-utils/gulp-core-build-rollup
v1.0.0
Published
Gulp Core Build Rollup
Downloads
1
Readme
@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.
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;
}