services-run con posibilidad de pasar variable de entorno NODE_ENV = test

This commit is contained in:
Joan Sanchez 2018-02-07 15:33:43 +01:00
parent 2cc6dfd553
commit 433a0d1af4
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ const exec = require('child_process').exec;
// Configuration
const isWindows = /^win/.test(process.platform);
if (gutil.env.NODE_ENV)
process.env.NODE_ENV = gutil.env.NODE_ENV;
const env = process.env.NODE_ENV ? process.env.NODE_ENV : 'development';
const langs = ['es', 'en'];