Add Gulp "clean" command to remove static folders.

This commit is contained in:
Christopher Charbonneau Wells 2018-10-08 06:32:06 -07:00
parent 6142f6b74c
commit 3fffe6c027
3 changed files with 1651 additions and 480 deletions

View File

@ -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));

2119
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",