-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgulpfile.js
More file actions
executable file
·32 lines (26 loc) · 834 Bytes
/
gulpfile.js
File metadata and controls
executable file
·32 lines (26 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var gulp = require('gulp'),
gutil = require('gulp-util'),
webserver = require('gulp-webserver');
gulp.task('js', function() {
gulp.src('builds/angularvalidation/js/**/*');
});
gulp.task('html', function() {
gulp.src('builds/angularvalidation/*.html');
});
gulp.task('css', function() {
gulp.src('builds/angularvalidation/css/*.css');
});
gulp.task('watch', function() {
gulp.watch('builds/angularvalidation/js/**/*', ['js']);
gulp.watch('builds/angularvalidation/css/*.css', ['css']);
gulp.watch(['builds/angularvalidation/*.html',
'builds/angularvalidation/views/*.html'], ['html']);
});
gulp.task('webserver', function() {
gulp.src('builds/angularvalidation/')
.pipe(webserver({
livereload: true,
open: true
}));
});
gulp.task('default', ['watch', 'html', 'js', 'css', 'webserver']);