mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
add browser sync
This commit is contained in:
parent
129596cb56
commit
4fa9fbf381
20
gulpfile.js
20
gulpfile.js
@ -31,7 +31,25 @@ gulp.task( 'watch', [ 'default' ], function() {
|
||||
|
||||
} );
|
||||
|
||||
gulp.task( 'serve', [], function() {
|
||||
gulp.task( 'reload', function() {
|
||||
browserSync.reload();
|
||||
} );
|
||||
|
||||
gulp.task( 'dev', [ 'default', 'browser' ], function() {
|
||||
|
||||
karma.server.start( {
|
||||
frameworks: [ 'jasmine' ],
|
||||
files: paths.test
|
||||
} );
|
||||
|
||||
gulp.watch( paths.docs, [ 'docs', 'reload' ] );
|
||||
gulp.watch( paths.lint, [ 'lint', 'reload' ] );
|
||||
gulp.watch( paths.build, [ 'build', 'reload' ] );
|
||||
gulp.watch( paths.shim, [ 'shim', 'reload' ] );
|
||||
|
||||
} );
|
||||
|
||||
gulp.task( 'browser', [], function() {
|
||||
browserSync.init( null, {
|
||||
browser: [ 'google-chrome', 'google chrome' ], // linux uses the -
|
||||
server: {
|
||||
|
Loading…
Reference in New Issue
Block a user