Feature in dev mode always pull from disk

This commit is contained in:
Berkeley Martinez
2015-11-09 17:27:56 -08:00
parent 342640542f
commit d095fd5d90
7 changed files with 69 additions and 15 deletions

View File

@@ -93,8 +93,7 @@ var paths = {
],
challenges: [
'seed/challenges/*.json',
'seed/under-construction/*.json'
'seed/challenges/*.json'
]
};
@@ -399,10 +398,15 @@ var watchDependents = [
'pack-watch-manifest'
];
gulp.task('reload', () => {
notify({ message: 'test changed' });
reload();
});
gulp.task('watch', watchDependents, function() {
gulp.watch(paths.lessFiles, ['less']);
gulp.watch(paths.js, ['js']);
gulp.watch(paths.challenges, ['test-challenges']);
gulp.watch(paths.challenges, ['test-challenges', 'reload']);
gulp.watch(paths.js, ['js', 'dependents']);
gulp.watch(paths.dependents, ['dependents']);
gulp.watch(paths.manifest + '/*.json', ['build-manifest-watch']);