From 1b81cf22b7a8ebf584857b5891a56e91efcb240a Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 12 Jul 2016 17:20:32 -0400 Subject: [PATCH] chore(gulp): update gulp to use the ionic-gulp-tasks tslint --- gulpfile.js | 11 ++--------- package.json | 6 +++--- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 7d16cf8..c43f47c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -31,6 +31,7 @@ var buildSass = require('ionic-gulp-sass-build'); var copyHTML = require('ionic-gulp-html-copy'); var copyFonts = require('ionic-gulp-fonts-copy'); var copyScripts = require('ionic-gulp-scripts-copy'); +var tslint = require('ionic-gulp-tslint'); var isRelease = argv.indexOf('--release') > -1; @@ -68,12 +69,4 @@ gulp.task('scripts', copyScripts); gulp.task('clean', function(){ return del('www/build'); }); - -// Run typescript linter on the app folder -gulp.task('tslint', function() { - var tslint = require('gulp-tslint'); - return gulp.src([ - 'app/**/*.ts' - ]).pipe(tslint()) - .pipe(tslint.report('verbose')); -}); +gulp.task('lint', tslint); diff --git a/package.json b/package.json index b163c50..ad69229 100644 --- a/package.json +++ b/package.json @@ -25,17 +25,17 @@ "devDependencies": { "del": "2.2.0", "gulp": "3.9.1", - "gulp-tslint": "4.3.4", + "gulp-tslint": "^5.0.0", "gulp-watch": "4.3.5", "ionic-gulp-browserify-typescript": "^1.1.0", "ionic-gulp-fonts-copy": "^1.0.0", "ionic-gulp-html-copy": "^1.0.0", "ionic-gulp-sass-build": "^1.0.0", "ionic-gulp-scripts-copy": "^2.0.0", + "ionic-gulp-tslint": "^1.0.0", "run-sequence": "1.1.5", "tslint": "^3.10.1", - "tslint-eslint-rules": "^1.3.0", - "tslint-ionic-rules": "0.0.3" + "tslint-ionic-rules": "^0.0.3" }, "cordovaPlugins": [ "cordova-plugin-whitelist",