From ad1cc1ee94c89b71027e109755cc8993dfec3e4e Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sat, 13 Apr 2019 20:50:36 -0700 Subject: [PATCH] Add gulp commands for make/compilemessages. --- gulpfile.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 7f419e5f..6276e493 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -171,6 +171,18 @@ gulp.task('makemigrations', function(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) { spawn( 'pipenv',