App created during angularjs bootcamp.

gulpfile.js 483B

123456789101112131415161718192021222324
  1. var gulp = require('gulp'),
  2. watch = require('gulp-watch'),
  3. plumber = require('gulp-plumber'),
  4. connect = require('gulp-connect');
  5. gulp.task('default', ['connect', 'html']);
  6. gulp.task('connect', function(){
  7. connect.server({
  8. root: 'www',
  9. livereload: true
  10. });
  11. });
  12. gulp.task('html', function(){
  13. var html_path = 'www/*.html';
  14. var js_path = 'www/js/**/*.js';
  15. gulp
  16. .src(html_path)
  17. .pipe(watch([html_path, js_path]))
  18. .pipe(connect.reload());
  19. });