File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ var plumber = require('gulp-plumber');
33var gutil = require ( 'gulp-util' ) ;
44var notify = require ( 'gulp-notify' ) ;
55var uglify = require ( 'gulp-uglify' ) ;
6- var jshint = require ( 'gulp-jshint ' ) ;
6+ var eslint = require ( 'gulp-eslint ' ) ;
77var rename = require ( 'gulp-rename' ) ;
88
99var files = 'src/*.js' ;
@@ -12,23 +12,18 @@ gulp.task('uglify', function() {
1212 return gulp . src ( files )
1313 . pipe ( plumber ( ) )
1414 . pipe ( uglify ( { preserveComments : 'license' } ) )
15- . on ( 'error' , notify . onError ( " Error: <%= error.message %>" ) )
15+ . on ( 'error' , notify . onError ( ' Error: <%= error.message %>' ) )
1616 . pipe ( rename ( { suffix : '.min' } ) )
1717 . pipe ( gulp . dest ( 'dist' ) ) ;
1818} ) ;
1919
2020gulp . task ( 'lint' , function ( ) {
2121 return gulp . src ( files )
2222 . pipe ( plumber ( ) )
23- . pipe ( jshint ( ) )
24- . pipe ( notify ( function ( file ) {
25- if ( file . jshint . success ) {
26- return false ;
27- }
28-
29- return file . relative + " (" + file . jshint . results . length + " errors)\n" ;
30- } ) )
31- . pipe ( jshint . reporter ( 'default' ) ) ;
23+ . pipe ( eslint ( ) )
24+ . pipe ( eslint . format ( ) )
25+ . pipe ( eslint . failAfterError ( ) )
26+ . on ( 'error' , notify . onError ( 'Error: <%= error.message %>' ) ) ;
3227} ) ;
3328
3429gulp . task ( 'copy' , function ( ) {
Original file line number Diff line number Diff line change 1717 "homepage" : " https://github.com/maciej-gurban/responsive-bootstrap-toolkit" ,
1818 "devDependencies" : {
1919 "gulp" : " ^3.9.1" ,
20- "gulp-jshint " : " ^2.0.1 " ,
20+ "gulp-eslint " : " ^2.0.0 " ,
2121 "gulp-notify" : " ^2.2.0" ,
2222 "gulp-plumber" : " ^1.1.0" ,
2323 "gulp-rename" : " ^1.2.2" ,
You can’t perform that action at this time.
0 commit comments