From 269cf42b72c17cf8cc53a651122561eccc012f4e Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Tue, 14 Feb 2017 14:16:50 -0800 Subject: [PATCH] build: add the `tslint` gulp task (#14481) --- gulpfile.js | 3 ++- tools/gulp-tasks/README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 0a866c7b03..b25ec97239 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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')); diff --git a/tools/gulp-tasks/README.md b/tools/gulp-tasks/README.md index 557bdd2e55..91fe459320 100644 --- a/tools/gulp-tasks/README.md +++ b/tools/gulp-tasks/README.md @@ -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'));