本文整理汇总了TypeScript中gulp-newer.default函数的典型用法代码示例。如果您正苦于以下问题:TypeScript default函数的具体用法?TypeScript default怎么用?TypeScript default使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了default函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: newer
gulp.task("scripts:coffee", () => {
return gulp.src('./src/coffee/**/*.coffee')
.pipe(gulpif(argv.incremental, newer({dest: paths.buildDir.jsTree, ext: '.js'})))
.pipe(coffee({bare: true}))
.pipe(rename((path) => path.extname = '.ts'))
.pipe(gulp.dest(paths.buildDir.jsTree + '_ts'))
})
示例2:
gulp.task('html-replace', () => {
return gulp.src(webAppDir + '**/*.html')
.pipe(newer(staticDir))
.pipe(sourcemaps.init())
.pipe(htmlmin({collapseWhitespace: true, caseSensitive: true}))
.pipe(sourcemaps.write('/'))
.pipe(gulp.dest(staticDir))
});
示例3: join
export = () => {
const src = [
join(Config.FRAMEWORK_SRC, 'server', '**'),
'!requirements.txt',
'!*.yaml'
];
return gulp.src(src)
.pipe(newer(Config.SERVER_SRC))
.pipe(gulp.dest(Config.SERVER_SRC));
};
示例4: join
export = () => {
let src = [
join(Config.APP_SRC, 'package.json')
];
return gulp.src(src)
.pipe(newer({
dest: Config.APP_DEST,
map: function(path: String) { return path.replace('.ts', '.js').replace('.scss', '.css'); }
}))
.pipe(gulp.dest(Config.APP_DEST));
};
示例5: relative
export = () => {
let src = [
'node_modules/@angular/**/*',
'node_modules/rxjs/**/*',
'node_modules/angulartics2/**/*',
'node_modules/lodash/**/*',
'node_modules/ng2-translate/**/*',
'node_modules/@ngrx/**/*'
];
src.push(...Config.NPM_DEPENDENCIES.map(x => relative(Config.PROJECT_ROOT, x.src)));
return gulp.src(src, { base: 'node_modules' })
.pipe(newer({
dest: join(Config.APP_DEST + '/node_modules'),
map: function(path: String) { return path.replace('.ts', '.js').replace('.scss', '.css'); }
}))
.pipe(gulp.dest(join(Config.APP_DEST + '/node_modules')));
};
示例6: relative
export = () => {
let src = [
'node_modules/@angular/**/*',
'node_modules/rxjs/**/*'
];
let additionalPkgs: ExtendPackages[] = Config.DESKTOP_PACKAGES;
additionalPkgs.forEach((pkg) => {
if (typeof(pkg.name) !== 'undefined') {
src.push(`node_modules/${pkg.name}/**/*`);
}
});
src.push(...Config.NPM_DEPENDENCIES.map(x => relative(Config.PROJECT_ROOT, x.src)));
return gulp.src(src, { base: 'node_modules' })
.pipe(newer({
dest: join(Config.APP_DEST + '/node_modules'),
map: function (path: String) { return path.replace('.ts', '.js').replace('.scss', '.css'); }
}))
.pipe(gulp.dest(join(Config.APP_DEST + '/node_modules')));
};