forked from MWDelaney/acf-flexible-content-blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
36 lines (31 loc) · 920 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
var gulp = require('gulp');
var sass = require('gulp-sass');
var mainBowerFiles = require('main-bower-files');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var runSequence = require('run-sequence');
gulp.task('styles', function() {
gulp.src('assets/sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./assets/css/'));
});
// Bower dependencies
gulp.task("ace", function(){
return gulp.src(mainBowerFiles())
.pipe(gulp.dest("./assets/js/ace/"))
});
//Watch task
gulp.task('watch',function() {
gulp.watch('assets/sass/**/*.scss',['styles']);
});
//Build task
gulp.task('build', function(callback) {
runSequence('styles',
'ace',
callback);
});
// ### Gulp
// `gulp` - Run a complete build. To compile for production run `gulp --production`.
gulp.task('default', function() {
gulp.start('build');
});