Skip to content

Commit

Permalink
update watchers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Fedosov committed Jun 8, 2015
1 parent b7e97cb commit a71b252
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gulp/tasks/loader.js
Expand Up @@ -14,5 +14,5 @@ gulp.task('loader', function () {
.pipe(error.handle())
.pipe(replace(/__ORIGINAL_BASE_URL__/g, originalBaseUrl))
.pipe(gulpif(util.env.release, uglify()))
.pipe(gulp.dest('dist'))
.pipe(gulp.dest('dist'));
});
13 changes: 10 additions & 3 deletions gulp/tasks/watch.js
@@ -1,11 +1,10 @@
var gulp = require('gulp');
var destCSS = require('../util/destCSS');
var runSequence = require('run-sequence');

gulp.task('watch', function () {
gulp.watch('src/doc/**/*.*', ['doc']);

gulp.watch('assets/*.*', function () {
gulp.watch('assets/**/*', function () {
runSequence('copyAssets', 'server');
});

Expand All @@ -24,5 +23,13 @@ gulp.task('watch', function () {
runSequence('build', 'server');
});

gulp.watch(['app.js', 'config.local.json'], ['server']);
gulp.watch(['app/index.js', 'config.local.json'], ['server']);

gulp.watch('app/loader.js', function () {
runSequence('loader', 'server');
});

gulp.watch('app/index.html', function() {
runSequence('copyIndexPage', 'server');
});
});

0 comments on commit a71b252

Please sign in to comment.