update lint and format

This commit is contained in:
Doug Fritz 2014-09-15 13:22:54 -07:00
parent 8f5504eb85
commit d1915de735
3 changed files with 24 additions and 19 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@ Main Gulp tasks
----------------- -----------------
* default - dev * default - dev
* build - create a vulcanized compiled version after linting and formatting * build - create a vulcanized compiled version after linting and formatting
* dev - launch server, watch for code changes, lint, format * dev - launch server, watch for code changes, lint, format
* docs - compile the docs and update gh-pages * 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 // watches and builds all tasks
gulp.watch( paths.build, [ 'build' ] ); gulp.watch( paths.build, [ 'build' ] );
@ -75,7 +75,10 @@ gulp.task( 'watch', [ 'build', 'test' ], function() {
base: './' base: './'
} ) } )
.pipe( $.esformatter( formattingOptions ) ) .pipe( $.esformatter( formattingOptions ) )
.pipe( gulp.dest( './' ) ); .pipe( gulp.dest( './' ) )
.pipe( $.jshint( '.jshintrc' ) )
.pipe( $.jshint.reporter( 'jshint-stylish' ) )
.pipe( $.jshint.reporter( 'fail' ) );
} ); } );