Add gulp watch task

This commit is contained in:
Kazunori Kajihiro 2014-05-14 18:30:36 +09:00
parent e26a5e0f50
commit bc5a9664c1
1 changed files with 11 additions and 1 deletions

View File

@ -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'])
})