本文整理汇总了TypeScript中gulp-sequence.default函数的典型用法代码示例。如果您正苦于以下问题:TypeScript default函数的具体用法?TypeScript default怎么用?TypeScript default使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了default函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: require
export = gulp.task('karma', (callback: () => void) => {
const sequence = require('gulp-sequence');
sequence('clean', 'karma:build', 'karma:run', 'karma:remap', 'karma:clean', callback);
});
示例2: sequence
export = gulp.task('development:run', (callback: () => void) => {
sequence('development:build', 'serve', 'watch', callback);
});
示例3: sequence
export = gulp.task('development:build', (callback: () => void) => {
// sequence('clean', 'karma', 'lint', 'fonts', ['development:styles', 'development:html'], 'favicons', callback);
sequence('clean', 'lint', 'fonts', ['development:styles', 'development:html'], 'favicons', callback);
});
示例4: spawnNode
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import * as gulp from 'gulp';
import * as path from 'path';
import { codeExtensionPath, nycPath, rootPath, testAssetsRootPath, testRootPath, unitTestCoverageRootPath, mochaPath, vscodeTestHostPath } from './projectPaths';
import spawnNode from './spawnNode';
const gulpSequence = require('gulp-sequence');
gulp.task("test", gulpSequence(
"test:feature",
"test:unit",
"test:integration"));
gulp.task("test:feature", async () => {
let env = {
...process.env,
OSVC_SUITE: "featureTests",
CODE_TESTS_PATH: path.join(testRootPath, "featureTests")
};
return spawnNode([vscodeTestHostPath], {
env
});
});
gulp.task("test:unit", async () => {