本文整理匯總了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'];
}