mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
update lint and format
This commit is contained in:
parent
8f5504eb85
commit
d1915de735
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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' ) );
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user