mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-10 22:05:55 +00:00
feat(@embark/cmd): add a warning on build and upload if development
This commit is contained in:
parent
1491028665
commit
9e74d32f5f
@ -2,7 +2,6 @@ import { __, setOrDetectLocale } from 'embark-i18n';
|
|||||||
import { diagramPath } from 'embark-utils';
|
import { diagramPath } from 'embark-utils';
|
||||||
const program = require('commander');
|
const program = require('commander');
|
||||||
const EmbarkController = require('./cmd_controller.js');
|
const EmbarkController = require('./cmd_controller.js');
|
||||||
const fs = require('../lib/core/fs.js');
|
|
||||||
|
|
||||||
let embark = new EmbarkController();
|
let embark = new EmbarkController();
|
||||||
|
|
||||||
|
@ -222,6 +222,9 @@ class EmbarkController {
|
|||||||
engine.init({}, callback);
|
engine.init({}, callback);
|
||||||
},
|
},
|
||||||
function startServices(callback) {
|
function startServices(callback) {
|
||||||
|
if (options.env === 'development') {
|
||||||
|
engine.logger.warn(__('Building using the development environment. Did you forget to add an environment? eg: `embark build testnet`'));
|
||||||
|
}
|
||||||
let pluginList = engine.plugins.listPlugins();
|
let pluginList = engine.plugins.listPlugins();
|
||||||
if (pluginList.length > 0) {
|
if (pluginList.length > 0) {
|
||||||
engine.logger.info(__("loaded plugins") + ": " + pluginList.join(", "));
|
engine.logger.info(__("loaded plugins") + ": " + pluginList.join(", "));
|
||||||
@ -562,6 +565,9 @@ class EmbarkController {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
platform = engine.config.storageConfig.upload.provider;
|
platform = engine.config.storageConfig.upload.provider;
|
||||||
|
if (options.env === 'development') {
|
||||||
|
engine.logger.warn(__('Uploading using the development environment. Did you forget to add an environment? eg: `embark upload testnet`'));
|
||||||
|
}
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user