本文整理匯總了TypeScript中gulpclass.SequenceTask函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript SequenceTask函數的具體用法?TypeScript SequenceTask怎麽用?TypeScript SequenceTask使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了SequenceTask函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: package
/**
* Creates a package that can be published to npm.
*/
@SequenceTask()
package() {
return [
"clean",
["bundleCopySources", "bundleCopyMainFile"],
["compile", "compileBundles"],
["uglify"],
["packagePreparePackageFile", "packageReadmeFile"]
];
}
示例2: package
/**
* Creates a package that can be published to npm.
*/
@SequenceTask()
package() {
return [
"clean",
"packageCompile",
"packageMoveCompiledFiles",
"packageClearCompileDirectory",
["packagePreparePackageFile", "packageReadmeFile", "copyTypingsFile"]
];
}
示例3: tests
/**
* Compiles the code and runs tests + makes coverage report.
*/
@SequenceTask()
tests() {
return [
"compile",
"coveragePre",
"runTests",
"coveragePost",
"coverageRemap"
];
}
示例4: ciTests
/**
* Runs tests, but creates a small delay before running them to make sure to give time for docker containers to be initialized.
*/
@SequenceTask("ci-tests")
ciTests() {
return [
"clean",
"compile",
"tslint",
"wait",
"coveragePre",
"runTests",
"coveragePost",
"coverageRemap"
];
}
示例5: package
/**
* Creates a package that can be published to npm.
*/
@SequenceTask()
package() {
return [
"clean",
["browserCopySources", "browserCopyPlatformTools"],
["packageCompile", "browserCompile"],
"packageMoveCompiledFiles",
[
"browserClearPackageDirectory",
"packageClearPackageDirectory",
"packageReplaceReferences",
"packagePreparePackageFile",
"packageCopyReadme",
"packageCopyShims"
],
];
}
示例6: tests
/**
* Compiles the code and runs tests.
*/
@SequenceTask()
tests() {
return ["clean", "compile", "tslint", "unit"];
}
示例7: publish
/**
* Creates a package and publishes it to npm.
*/
@SequenceTask()
publish() {
return ["package", "npmPublish"];
}
示例8: SequenceTask
export function SequenceTask(metaArgs?: TaskMetadataArgs | string): Function {
const args = parseMetaArgs(metaArgs);
return gulpclass.SequenceTask(args.name);
}
示例9: publishNext
/**
* Creates a package and publishes it to npm with @next tag.
*/
@SequenceTask("publish-next")
publishNext() {
return ["package", "packagePublishNext"];
}