本文整理汇总了TypeScript中gulpclass/Decorators.SequenceTask函数的典型用法代码示例。如果您正苦于以下问题:TypeScript SequenceTask函数的具体用法?TypeScript SequenceTask怎么用?TypeScript SequenceTask使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SequenceTask函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: build
@SequenceTask()
build() {
return [
'clean:dist',
['sass', 'ts', 'useref', 'images', 'fonts']
];
}
示例2: package
/**
* Creates a package that can be published to npm.
*/
@SequenceTask()
package() {
return [
"clean",
"compile",
["packageFiles", "packagePreparePackageFile", "packageReadmeFile", "copyTypingsFile"]
];
}
示例3: build
@SequenceTask('run')
build() {
return ['copy-source-files', 'pug', 'tsd'];
}
示例4: tests
/**
* Compiles the code and runs tests.
*/
@SequenceTask()
tests() {
return ["compile", "tslint", "unit"];
}
示例5:
@SequenceTask()
build() {
return ["ts::compile"];
}
示例6: publish
/**
* Creates a package and publishes it to npm.
*/
@SequenceTask()
publish() {
return ["package", "npmPublish"];
}
示例7: watch
@SequenceTask('watch') // this special annotation using "run-sequence" module to run returned tasks in sequence
watch(): any {
return gulp.watch(this.config.paths.source, ['build']);
}
示例8: default
@SequenceTask('default')
default() { // because this task has "default" name it will be run as default gulp task
return ['build', 'watch'];
}
示例9: testBuild
@SequenceTask()
testBuild() {
return ['clean', 'configureEnvironment', 'buildTypescript'];
}
示例10: build
@SequenceTask('build') // this special annotation using "run-sequence" module to run returned tasks in sequence
build() {
return [['clean::dist', 'ts::lint'], 'ts::compile'];
}