Skip to content

Instantly share code, notes, and snippets.

@stianwestvig
Created March 19, 2015 13:15
Show Gist options
  • Save stianwestvig/e8ee435153bc35ef29e7 to your computer and use it in GitHub Desktop.
Save stianwestvig/e8ee435153bc35ef29e7 to your computer and use it in GitHub Desktop.
gulp.task('watch', function(){
gulp.watch(paths.scripts, ['react']);
gulp.watch('gulpfile.js', ['default']);
});
gulp.task('build', ['clean', 'react', 'templates']);
gulp.task('init', ['build', 'watch', 'reload']);
gulp.task('default', function () {
if(process) { process.kill(); }
process = spawn('gulp', ['init'], {stdio: 'inherit'});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment