本文整理匯總了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 () => {