ranger/orm/services/customer_manager/gulpfile.js
hosingh000 3de38762aa initial commit
Change-Id: Ie417df96258c2daa852d14e588de4ad2d54bb819
2017-07-27 09:14:42 -05:00

21 lines
584 B
JavaScript
Executable File

var gulp = require('gulp');
var nodemon = require('gulp-nodemon');
var shell = require('gulp-shell');
var minimist = require('minimist');
var env = require('gulp-env');
var defaultOptions = {
string: 'env',
default: { env: 'dev' }
};
var options = minimist(process.argv.slice(2), defaultOptions);
gulp.task('default', ['run-mock', 'run-pecan']);
gulp.task('run-pecan', shell.task(['export CMS_ENV=' + options.env + '; pecan serve config.py --reload']));
gulp.task('run-mock', function(){
nodemon({
script: 'rds_mock/bin/www',
env: {'NODE_ENV': 'development'}
});
});