Last active
September 2, 2015 01:27
-
-
Save etyp/1cab4480b1031fb65182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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