本文整理汇总了TypeScript中gulp.dest函数的典型用法代码示例。如果您正苦于以下问题:TypeScript dest函数的具体用法?TypeScript dest怎么用?TypeScript dest使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dest函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1:
gulp.task('build:client:styles', () =>
gulp.src('./src/client/app/init.css')
.pipe(isProduction
? (cssnano as any)()
: gutil.noop())
.pipe(gulp.dest('./built/client/assets/'))
开发者ID:ha-dai,项目名称:Misskey,代码行数:6,代码来源:gulpfile.ts
示例2: require
/** Tests taken from https://github.com/pgilad/gulp-sort#usage */
import * as gulp from 'gulp';
import sort = require('gulp-sort');
import * as gulpUtil from 'gulp-util';
// default sort
gulp.src('./src/js/**/*.js')
.pipe(sort())
.pipe(gulp.dest('./build/js'));
// pass in a custom comparator function
gulp.src('./src/js/**/*.js')
.pipe(sort(customComparator))
.pipe(gulp.dest('./build/js'));
// sort descending
gulp.src('./src/js/**/*.js')
.pipe(sort({
asc: false
}))
.pipe(gulp.dest('./build/js'));
// sort with a custom comparator
gulp.src('./src/js/**/*.js')
.pipe(sort({
comparator: function(file1, file2) {
if (file1.path.indexOf('build') > -1) {
return 1;
}
if (file2.path.indexOf('build') > -1) {
开发者ID:AlexGalays,项目名称:DefinitelyTyped,代码行数:31,代码来源:gulp-sort-tests.ts
示例3:
gulp.task('copy_license', () => buildUtils.getAllModules().reduce((stream, mod: string) => stream.pipe(gulp.dest(`dist/${mod}`)), gulp.src('LICENSE')));
开发者ID:JohnGorter,项目名称:universal,代码行数:1,代码来源:gulpfile.ts
示例4:
gulp.task('somename', () => {
return gulp.src('client/**/*.js')
.pipe(minify())
.pipe(gulp.dest('build'));
});
开发者ID:CNBoland,项目名称:DefinitelyTyped,代码行数:5,代码来源:index.ts
示例5:
gulp.task('default', () =>
gulp.src('fixture.js')
.pipe(size())
.pipe(gulp.dest('dist'))
开发者ID:0815fox,项目名称:DefinitelyTyped,代码行数:4,代码来源:gulp-size-tests.ts
示例6: function
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe(stripDebug())
.pipe(gulp.dest('dist'));
});
开发者ID:0815fox,项目名称:DefinitelyTyped,代码行数:5,代码来源:gulp-strip-debug-tests.ts
示例7: packageReadmeFile
/**
* This task will replace all typescript code blocks in the README (since npm does not support typescript syntax
* highlighting) and copy this README file into the package folder.
*/
@Task()
packageReadmeFile() {
return gulp.src("./README.md")
.pipe(replace(/```typescript([\s\S]*?)```/g, "```javascript$1```"))
.pipe(gulp.dest("./build/package"));
}
开发者ID:eswarchennupati,项目名称:gulpclass,代码行数:10,代码来源:gulpfile.ts
示例8: copyTypingsFile
/**
* This task will copy typings.json file to the build package.
*/
@Task()
copyTypingsFile() {
return gulp.src("./typings.json")
.pipe(gulp.dest("./build/package"));
}
开发者ID:eswarchennupati,项目名称:gulpclass,代码行数:8,代码来源:gulpfile.ts
示例9: packageFiles
/**
* Copies all files that will be in a package.
*/
@Task()
packageFiles() {
return gulp.src("./build/es5/src/**/*")
.pipe(gulp.dest("./build/package"));
}
开发者ID:eswarchennupati,项目名称:gulpclass,代码行数:8,代码来源:gulpfile.ts
注:本文中的gulp.dest函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论