Skip to content

Instantly share code, notes, and snippets.

@gilsondev
Created January 17, 2015 19:42
Show Gist options
  • Save gilsondev/d4d7e50d029bd59d1036 to your computer and use it in GitHub Desktop.
Save gilsondev/d4d7e50d029bd59d1036 to your computer and use it in GitHub Desktop.
Gulpfile basics
var gulp = require('gulp'),
connect = require('gulp-connect');
gulp.task('watch', function() {
gulp.watch('js/**/*.js', []);
});
gulp.task('webserver', function() {
connect.server({
port: 8000
});
});
gulp.task('default', ['webserver', 'watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment