chore(gulp): update gulp to use the ionic-gulp-tasks tslint

This commit is contained in:
Brandy Carney 2016-07-12 17:20:32 -04:00
Родитель 1b3fe79598
Коммит 1b81cf22b7
2 изменённых файлов: 5 добавлений и 12 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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",