Skip to content

Instantly share code, notes, and snippets.

@etyp
Last active September 2, 2015 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etyp/1cab4480b1031fb65182 to your computer and use it in GitHub Desktop.
Save etyp/1cab4480b1031fb65182 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var watch = require('gulp-watch');
var shell = require('gulp-shell');
// reload task
gulp.task('reload', shell.task([
'echo hello' // do your shell commands here - works as an array of commands if you want to add more
]));
// watch files
gulp.task('watch', function() {
gulp.watch('index.js', ['reload']);
});
// Default Task
gulp.task('default', ['reload', 'watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment