Skip to content

Instantly share code, notes, and snippets.

@brunokrebs
Last active February 26, 2016 12:41
Show Gist options
  • Save brunokrebs/7730fd2a6ada3fd3099a to your computer and use it in GitHub Desktop.
Save brunokrebs/7730fd2a6ada3fd3099a to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var webserver = require('gulp-webserver');
// concat-js definition ...
// uglify definition ...
gulp.task('watch', function() {
gulp.watch(['./src/**/*'], ['uglify']);
});
gulp.task('webserver', function() {
gulp.src('./')
.pipe(webserver({ port: 8000 }));
});
gulp.task('develop', ['uglify', 'watch', 'webserver']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment