mirror of https://github.com/snachodog/mybuddy.git
Add Gulp "clean" command to remove static folders.
This commit is contained in:
parent
6142f6b74c
commit
3fffe6c027
11
gulpfile.js
11
gulpfile.js
|
@ -1,6 +1,7 @@
|
|||
var gulp = require('gulp');
|
||||
|
||||
var concat = require('gulp-concat');
|
||||
var del = require('del');
|
||||
var flatten = require('gulp-flatten');
|
||||
var pump = require('pump');
|
||||
var sass = require('gulp-sass');
|
||||
|
@ -153,7 +154,6 @@ gulp.task('makemigrations', function(cb) {
|
|||
spawn('pipenv', command, { stdio: 'inherit' }).on('exit', cb);
|
||||
});
|
||||
|
||||
|
||||
gulp.task('reset', function(cb) {
|
||||
spawn(
|
||||
'pipenv',
|
||||
|
@ -170,6 +170,15 @@ gulp.task('reset', function(cb) {
|
|||
).on('exit', cb);
|
||||
});
|
||||
|
||||
function clean() {
|
||||
return del([
|
||||
'**/static',
|
||||
'static'
|
||||
]);
|
||||
}
|
||||
|
||||
gulp.task('clean', clean);
|
||||
|
||||
gulp.task('runserver', function(cb) {
|
||||
var command = ['run', 'python', 'manage.py', 'runserver'];
|
||||
command = command.concat(process.argv.splice(3));
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -8,6 +8,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"bootstrap": "4.1.3",
|
||||
"del": "^3.0.0",
|
||||
"font-awesome": "^4.7.0",
|
||||
"gulp": "^4.0.0",
|
||||
"gulp-concat": "^2.6.1",
|
||||
|
|
Loading…
Reference in New Issue