mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
add gulp watch for js files
This commit is contained in:
@@ -23,11 +23,7 @@ gulp.task('build-common-css', ['build-common-font-css'],function(){
|
||||
], 'common', 'common/css/')
|
||||
});
|
||||
|
||||
gulp.task('watch-common', function() {
|
||||
gulp.watch(config.paths.src + 'common/**/*.scss', ['build-common-css']);
|
||||
});
|
||||
|
||||
gulp.task('build-common', ['copy-common-images', 'build-common-css'], function(){
|
||||
gulp.task('build-common-js', function(){
|
||||
var commonGroup = [
|
||||
// config.paths.dist + 'assets/bootstrap/js/bootstrap.js', // should append no conflict
|
||||
config.paths.src + 'vendors/jquery-mousewheel/js/jquery.mousewheel.js',
|
||||
@@ -47,4 +43,16 @@ gulp.task('build-common', ['copy-common-images', 'build-common-css'], function()
|
||||
config.paths.dist + 'include/jslibs/flowplayer/flowplayer-3.2.13.min.js' // @TODO: should be moved away (embed-bundle)
|
||||
];
|
||||
return utils.buildJsGroup(commonGroup, 'common', 'common/js');
|
||||
});
|
||||
|
||||
gulp.task('watch-common-js', function() {
|
||||
return gulp.watch(config.paths.src + 'common/**/*.js', ['build-common-js']);
|
||||
});
|
||||
|
||||
gulp.task('watch-common-css', function() {
|
||||
gulp.watch(config.paths.src + 'common/**/*.scss', ['build-common-css']);
|
||||
});
|
||||
|
||||
gulp.task('build-common', ['copy-common-images', 'build-common-css'], function(){
|
||||
return gulp.start('build-common-js');
|
||||
});
|
Reference in New Issue
Block a user