-
Notifications
You must be signed in to change notification settings - Fork 32
/
gulpfile.js
25 lines (21 loc) · 955 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
var gulp = require('gulp'),
shell = require('gulp-shell'),
watch = require('gulp-watch'),
gutil = require('gulp-util'),
plumber = require('gulp-plumber');
gulp.task('compilescss', function(){
shell.task(['python manage.py compilescss'])
})
gulp.task('watch_compilescss', function () {
watch('*/static/sass/**/*.scss', function (vynil) {
gulp.src('*/static/sass/**/*.scss')
.pipe(plumber())
.pipe(shell(['python manage.py compilescss',]));
});
watch('*/static/merep_sass/**/*.scss', function (vynil) {
gulp.src('*/static/merep_sass/**/*.scss')
.pipe(plumber())
.pipe(shell(['python manage.py compilescss',]));
});
});
gulp.task('default', ['compilescss','watch_compilescss']);