mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
404 B
TypeScript
22 lines
404 B
TypeScript
import * as gulp from 'gulp';
|
|
import install = require('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'
|
|
}); |