@gulp-utils/gulp-core-build-ncc
v1.0.0
Published
Gulp Core Build ncc
Downloads
4
Readme
@gulp-utils/gulp-core-build-ncc
gulp-core-build-ncc
is a gulp-core-build
subtask which introduces the ability to compile a Node.js module into a single file together with all its dependencies, using ncc.
Tasks
NccTask
Description
This task invokes ncc on a package.
Usage
const {ncc} = require("@gulp-utils/gulp-core-build-ncc");
const {initialize, parallel, task} = require("@microsoft/gulp-core-build");
const {tslintCmd} = require("@microsoft/gulp-core-build-typescript");
ncc.setConfig({
config: {
sourceMap: true
}
});
task("default", parallel(ncc, tslintCmd));
initialize(require("gulp"));
Config
interface INccOptions {
cache?: string | boolean;
externals?: string[];
filterAssetBase?: string;
minify?: boolean;
sourceMap?: boolean;
sourceMapBasePrefix?: string;
sourceMapRegister?: boolean;
v8cache?: boolean;
}
interface INccTaskConfig {
config?: INccOptions;
inputFile?: string;
outputFile?: string;
}