-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
executable file
·36 lines (28 loc) · 786 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 shell = require('gulp-shell');
var changed = require('gulp-changed');
var plumber = require('gulp-plumber');
var sass = require ('gulp-sass');
var OPTIONS = {
COLLECSTATIC:{
watch:'static/**/*.*'
},
SASS:{
src:'static/css/scss/app.scss',
dest:'static/css'
}
}
gulp.task('sass',function(){
return gulp.src('static/css/scss/app.scss')
.pipe(sass().on('error',sass.logError))
.pipe(gulp.dest('static/css'))
});
gulp.task('collectstatic',['sass'], shell.task([
'python manage.py collectstatic --noinput --ignore "*.scss"'
]));
gulp.task('watch', function () {
gulp.watch('static/**/*.*');
gulp.watch('biomarqueurs/templates/**/*.*');
});
gulp.task('default',['collectstatic'],function(){
})