Add gulp watch task
This commit is contained in:
parent
e26a5e0f50
commit
bc5a9664c1
12
gulpfile.js
12
gulpfile.js
|
@ -47,4 +47,14 @@ gulp.task('firefox', function() {
|
|||
|
||||
gulp.task('default', function(cb) {
|
||||
return rseq('clean', ['chrome', 'safari', 'firefox'], cb)
|
||||
})
|
||||
})
|
||||
|
||||
gulp.task('watch', function() {
|
||||
gulp.watch(['./src/lib/**/*',
|
||||
'./src/icons/**/*',
|
||||
'./src/inject.js',
|
||||
'./src/inject.css'], ['default'])
|
||||
gulp.watch(['./src/manifest.json'], ['chrome'])
|
||||
gulp.watch(['./src/Info.plist'], ['safari'])
|
||||
gulp.watch(['./src/firefox.js', './src/package.json'], ['firefox'])
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue