本文整理汇总了TypeScript中gulp-install类的典型用法代码示例。如果您正苦于以下问题:TypeScript gulp-install类的具体用法?TypeScript gulp-install怎么用?TypeScript gulp-install使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了gulp-install类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
/// <reference path="gulp-install.d.ts" />
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as install from 'gulp-install';
// Examples taken from https://www.npmjs.com/package/gulp-install
// Usage in a gulp stream
gulp.src('src')
.pipe(install());
// Options
install({
production: true,
ignoreScripts: true,
noOptional: true,
allowRoot: true,
args: ['one', 'two', 'three']
});
// Options: args only as a string
install({
args: 'one'
});
示例2: installDeps
export function installDeps() {
return src('package.json')
.pipe(dest('.'))
.pipe(install({
args: '--progress=false'
}));
}
示例3:
gulp.task('install', () => gulp.src('./dist/package.json').pipe(install({ production: true })));
示例4:
gulp.task("release-install", ["copy-all"], () => {
return gulp.src(['./_dist/package.json'])
.pipe(install({production: true}));
});