mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 21:46:12 +00:00
Fixing framework loading
This commit is contained in:
parent
4fbbdf9cf6
commit
cbebc4aad9
@ -265,8 +265,9 @@ class Cmd {
|
|||||||
scaffold() {
|
scaffold() {
|
||||||
program
|
program
|
||||||
.command('scaffold [contract] [environment]')
|
.command('scaffold [contract] [environment]')
|
||||||
.option('--framework', 'UI framework to use. (default: react)')
|
.option('--framework <framework>', 'UI framework to use. (default: react)')
|
||||||
.action(function(contract, env, options){
|
.action(function(contract, env, options){
|
||||||
|
|
||||||
let environment = env || 'development';
|
let environment = env || 'development';
|
||||||
|
|
||||||
if(contract === undefined){
|
if(contract === undefined){
|
||||||
@ -279,7 +280,7 @@ class Cmd {
|
|||||||
});
|
});
|
||||||
|
|
||||||
options.contract = contract;
|
options.contract = contract;
|
||||||
options.framework = options.framework || 'react';
|
options.framework = options.framework || 'react';
|
||||||
options.env = environment;
|
options.env = environment;
|
||||||
embark.scaffold(options);
|
embark.scaffold(options);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user