-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
40 lines (33 loc) · 987 Bytes
/
gulpfile.js
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
33
34
35
36
37
38
39
var gulp = require('gulp'),
sass = require('gulp-sass'),
clean = require('gulp-clean'),
concat = require('gulp-concat')
runSequence = require('run-sequence');
gulp.task('clean', function() {
return gulp.src(['public/css/**/*.css', 'public/js/**.*.js'])
.pipe(clean());
});
gulp.task('sass', function() {
return gulp.src('client/scss/master.scss')
.pipe(sass())
.pipe(gulp.dest('public/css'));
});
gulp.task('concat-js', function() {
return gulp.src('client/releaseNotesApp/**/*.js')
.pipe(concat('bundle.js'))
.pipe(gulp.dest('public/js'));
});
gulp.task('move-html', function() {
return gulp.src('client/releaseNotesApp/**/*.html')
.pipe(gulp.dest('public/partials'));
});
gulp.task('watch', function() {
gulp.watch([
'client/scss/**/*.scss',
'client/releaseNotesApp/**/*.js',
'client/releaseNotesApp/**/*.html'
], ['default']);
});
gulp.task('default', ['clean'], function(callback) {
runSequence(['sass', 'concat-js', 'move-html'], callback);
});