- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgulpfile.js
More file actions
Latest commit
23 lines (20 loc) · 615 Bytes
/
Copy pathgulpfile.js
File metadata and controls
23 lines (20 loc) · 615 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
vargulp=require('gulp'),
gutil=require('gulp-util'),
nodemon=require('gulp-nodemon'),
livereload=require('gulp-livereload');
// create a default task and just log a message
gulp.task('default',["develop","watch"],function(){
returngutil.log('Gulp is running!');
});
gulp.task('develop',function(){
nodemon({
script: 'index.js',
ext: 'js',
env: {'NODE_ENV': 'development'}
});
});
gulp.task('watch',function(){
livereload.listen();
gulp.watch(['public/**']).on('change',livereload.changed);
gulp.watch(['app/views/**']).on('change',livereload.changed);
});