本文整理汇总了TypeScript中event-stream.merge函数的典型用法代码示例。如果您正苦于以下问题:TypeScript merge函数的具体用法?TypeScript merge怎么用?TypeScript merge使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了merge函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: glob
glob('./tmp/**/*.js', (err: Error, files: string[]) => {
const tasks = files.map((entry: string) => {
return browserify({ entries: [entry] })
.bundle()
.pipe(source(entry.replace('tmp', 'resources')))
.pipe(dest('./built'));
});
src('./tmp/common/scripts/*.js')
.pipe(dest('./built/sites/common/scripts/'));
es.merge(tasks).on('end', done);
});
开发者ID:armchair-philosophy,项目名称:Misskey-Web,代码行数:11,代码来源:gulpfile.ts
示例2: function
return function () {
const src = es.merge(
gulp.src('src/**', { base: 'src' }),
gulp.src('node_modules/typescript/lib/lib.d.ts')
);
return src
.pipe(compile())
.pipe(gulp.dest(out))
.pipe(monacodtsTask(out, false));
};
开发者ID:StateFarmIns,项目名称:vscode,代码行数:11,代码来源:compilation.ts
示例3: buildTypeScript
function buildTypeScript() {
typescriptCompiler = ts.createProject('tsconfig.json', {
typescript: require('typescript')
});
let src = gulp.src(project.transpiler.source).pipe(changedInPlace({ firstPass: true }));
return eventStream
.merge(src)
.pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
.pipe(typescriptCompiler())
.pipe(gulpif(isJsFile, build.bundle()));
}
开发者ID:aurelia,项目名称:aurelia,代码行数:11,代码来源:transpile.ts
示例4: task
task('copy:client-templates', () => {
return es.merge(
src('./src/sites/**/common/views/**/*.jade')
.pipe(dest('./tmp/')),
src('./src/sites/**/pages/**/*.jade')
.pipe(dest('./tmp/')),
src('./src/sites/**/common/widgets/**/*.jade')
.pipe(dest('./tmp/')),
src('./src/sites/common/**/*.jade')
.pipe(dest('./tmp/common'))
);
});
开发者ID:armchair-philosophy,项目名称:Misskey-Web,代码行数:12,代码来源:gulpfile.ts
示例5:
gulp.task('copy:client-templates', () => {
return es.merge(
gulp.src('./src/sites/**/common/views/**/*.pug')
.pipe(gulp.dest('./tmp/')),
gulp.src('./src/sites/**/pages/**/*.pug')
.pipe(gulp.dest('./tmp/')),
gulp.src('./src/sites/**/common/widgets/**/*.pug')
.pipe(gulp.dest('./tmp/')),
gulp.src('./src/sites/common/**/*.pug')
.pipe(gulp.dest('./tmp/common'))
);
});
开发者ID:sagume,项目名称:Misskey-Web,代码行数:12,代码来源:gulpfile.ts
示例6: join
export = () => {
let paths: string[] = [
join(APP_SRC, '**'),
'!' + join(APP_SRC, '**', '*.ts')
].concat(TEMP_FILES.map((p) => { return '!' + p; }));
return es.merge([
gulp.src(paths)
.pipe(gulp.dest(APP_DEST)),
gulp.src(['lib/sigmajs-v1.0.0/sigma.min.js', 'node_modules/markdown/lib/markdown.js'])
.pipe(gulp.dest(APP_DEST))
]);
};
开发者ID:loganfreeman,项目名称:angular2-seed,代码行数:13,代码来源:build.assets.dev.ts
示例7: join
export = () => {
return es.merge([
gulp.src(['lib/sigmajs-v1.0.0/sigma.min.js', 'node_modules/markdown/lib/markdown.js'])
.pipe(gulp.dest(APP_DEST)),
gulp.src([
join(APP_SRC, '**'),
'!' + join(APP_SRC, '**', '*.ts'),
'!' + join(APP_SRC, '**', '*.css'),
'!' + join(APP_SRC, '**', '*.html'),
'!' + join(ASSETS_SRC, '**', '*.js')
].concat(TEMP_FILES.map((p) => { return '!' + p; })))
.pipe(onlyDirs(es))
.pipe(gulp.dest(APP_DEST))
]);
};
开发者ID:loganfreeman,项目名称:angular2-seed,代码行数:15,代码来源:build.assets.prod.ts
示例8: buildTypeScript
function buildTypeScript() {
typescriptCompiler = ts.createProject('tsconfig.json', {
typescript: require('typescript')
});
let dts = gulp.src(project.transpiler.dtsSource);
let src = gulp.src(project.transpiler.source)
.pipe(changedInPlace({firstPass: true}));
return eventStream.merge(dts, src)
.pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
.pipe(sourcemaps.init())
.pipe(typescriptCompiler())
.pipe(sourcemaps.write({ sourceRoot: 'src' }))
.pipe(build.bundle());
}
开发者ID:AshleyGrant,项目名称:cli,代码行数:17,代码来源:transpile.ts
注:本文中的event-stream.merge函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论