Add gulp commands for make/compilemessages.

This commit is contained in:
Christopher C. Wells 2019-04-13 20:50:36 -07:00
parent d52694e93e
commit ad1cc1ee94
1 changed files with 12 additions and 0 deletions

View File

@ -171,6 +171,18 @@ gulp.task('makemigrations', function(cb) {
spawn('pipenv', command, { stdio: 'inherit' }).on('exit', cb); spawn('pipenv', command, { stdio: 'inherit' }).on('exit', cb);
}); });
gulp.task('makemessages', function(cb) {
var command = ['run', 'python', 'manage.py', 'makemessages'];
command = command.concat(process.argv.splice(3));
spawn('pipenv', command, { stdio: 'inherit' }).on('exit', cb);
});
gulp.task('compilemessages', function(cb) {
var command = ['run', 'python', 'manage.py', 'compilemessages'];
command = command.concat(process.argv.splice(3));
spawn('pipenv', command, { stdio: 'inherit' }).on('exit', cb);
});
gulp.task('reset', function(cb) { gulp.task('reset', function(cb) {
spawn( spawn(
'pipenv', 'pipenv',