當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript gulp-sequence.default函數代碼示例

本文整理匯總了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);
});
開發者ID:mogusbi,項目名稱:ts-starter,代碼行數:5,代碼來源:karma.ts

示例2: sequence

export = gulp.task('development:run', (callback: () => void) => {
  sequence('development:build', 'serve', 'watch', callback);
});
開發者ID:mogusbi,項目名稱:ts-starter,代碼行數:3,代碼來源:run.ts

示例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);
});
開發者ID:mogusbi,項目名稱:ts-starter,代碼行數:4,代碼來源:build.ts

示例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 () => {
開發者ID:peterblazejewicz,項目名稱:omnisharp-vscode,代碼行數:32,代碼來源:testTasks.ts


注:本文中的gulp-sequence.default函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。