From d1915de735fc7c2ff0d0e287f9b392e52d6460f6 Mon Sep 17 00:00:00 2001 From: Doug Fritz Date: Mon, 15 Sep 2014 13:22:54 -0700 Subject: [PATCH] update lint and format --- build/dat-gui.html | 17 +++++++++-------- build/dat-gui.js | 17 +++++++++-------- gulpfile.js | 9 ++++++--- 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/build/dat-gui.html b/build/dat-gui.html index 1ce73c3..9599958 100755 --- a/build/dat-gui.html +++ b/build/dat-gui.html @@ -1,13 +1,14 @@ - + - + diff --git a/build/dat-gui.js b/build/dat-gui.js index 9782cee..5611231 100755 --- a/build/dat-gui.js +++ b/build/dat-gui.js @@ -1,13 +1,14 @@ -document.write(['', +document.write(['', '', '', -'', +'', '', '', '', diff --git a/gulpfile.js b/gulpfile.js index 8ef2454..ef1f713 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -4,7 +4,7 @@ Main Gulp tasks ----------------- * default - dev - + * build - create a vulcanized compiled version after linting and formatting * dev - launch server, watch for code changes, lint, format * docs - compile the docs and update gh-pages @@ -59,7 +59,7 @@ gulp.task( 'test', function() { } ); -gulp.task( 'watch', [ 'build', 'test' ], function() { +gulp.task( 'watch', [ 'lint', 'build', 'test' ], function() { // watches and builds all tasks gulp.watch( paths.build, [ 'build' ] ); @@ -75,7 +75,10 @@ gulp.task( 'watch', [ 'build', 'test' ], function() { base: './' } ) .pipe( $.esformatter( formattingOptions ) ) - .pipe( gulp.dest( './' ) ); + .pipe( gulp.dest( './' ) ) + .pipe( $.jshint( '.jshintrc' ) ) + .pipe( $.jshint.reporter( 'jshint-stylish' ) ) + .pipe( $.jshint.reporter( 'fail' ) ); } );