build: add the `tslint` gulp task (#14481)

This commit is contained in:
Victor Berchet 2017-02-14 14:16:50 -08:00 committed by Igor Minar
parent 8b81bb1eb6
commit 269cf42b72
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@ gulp.task('format', loadTask('format', 'format'));
gulp.task('build.sh', loadTask('build'));
gulp.task('public-api:enforce', loadTask('public-api', 'enforce'));
gulp.task('public-api:update', ['build.sh'], loadTask('public-api', 'update'));
gulp.task('lint', ['format:enforce', 'tools:build', 'validate-commit-messages'], loadTask('lint'));
gulp.task('lint', ['format:enforce', 'validate-commit-messages', 'tslint']);
gulp.task('tslint', ['tools:build'], loadTask('lint'));
gulp.task('validate-commit-messages', loadTask('validate-commit-message'));
gulp.task('tools:build', loadTask('tools-build'));
gulp.task('check-cycle', loadTask('check-cycle'));

View File

@ -37,7 +37,7 @@ module.exports = {
The tasks are loaded in the gulp file, by requiring them. There is a helper called `loadTask(fileName, taskName)`
will do this for us, where the `taskName` is optional if the file only exports one task.
E.g. Loading the task that will run the build, from a task file that contans only one task.
E.g. Loading the task that will run the build, from a task file that contains only one task.
```js
gulp.task('build.sh', loadTask('build'));