本文整理汇总了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"];
}