本文整理匯總了TypeScript中run-sequence.default函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript default函數的具體用法?TypeScript default怎麽用?TypeScript default使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了default函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: gulpRunSequence
task('e2e', (done: (err?: string) => void) => {
gulpRunSequence(
':test:protractor:setup',
'serve:e2eapp',
':test:protractor',
':serve:e2eapp:stop',
(err: any) => done(err)
);
});
示例2: runSequence
gulp.task('test:unit', done => runSequence(
'clean',
[
'task:unit_tests:compile',
'task:worker:compile_common'
],
'task:unit_tests:run',
done
));
示例3: gulpRunSequence
task('e2e:single-run', (done: (err?: string) => void) => {
gulpRunSequence(
':test:protractor:setup',
'serve:e2eapp',
':test:protractor',
':serve:e2eapp:stop',
(err: any) => stopE2eServer() && done(err)
);
});
示例4: gulpRunSequence
task('e2e', (done: (err?: string) => void) => {
gulpRunSequence(
':test:protractor:setup',
'serve:e2eapp:watch',
':test:protractor',
':serve:e2eapp:stop',
(err: any) => gulpConnect.serverClose() && done(err)
);
});
示例5: runSequence
gulp.task('build', done => runSequence(
'clean',
[
'task:companion:build',
'task:generator:build',
'task:worker:build'
],
done
));
示例6: runSequence
gulp.task('build', 'build static files from source code', ['build:clean'], (callback: any) => {
runSequence(
'build:tslint',
'build:js',
'build:html',
'build:lib',
'build:css',
callback
);
});
示例7: runSequence
gulp.task('test:single-run', [':test:deps'], (done: () => void) => {
runSequence(
':inline-resources',
() => {
new karma.Server({
configFile: path.join(PROJECT_ROOT, 'test/karma.conf.js'),
singleRun: true
}, done).start();
});
});
示例8: runSequence
gulp.task('task:build', done => runSequence(
[
'task:commonjs:compile',
'task:esm:compile',
],
[
'task:companion:bundle',
'task:worker:basic:bundle',
],
'task:bundles:minify',
done));
示例9: runSequence
gulp.task('test', 'run tests', (callback: any) => {
if (argv.files) {
runSequence(
'test:copy',
'test:tslint',
'test:buildjs',
'test:unit',
callback
);
} else {
runSequence(
'test:clean',
'test:copy',
'test:tslint',
'test:buildcss',
'test:buildjs',
'test:unit',
callback
);
}
});