mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-12 23:26:39 +00:00
Fixing framework loading
This commit is contained in:
parent
a8933ee18f
commit
ebd8440f81
@ -198,8 +198,9 @@ class Cmd {
|
||||
scaffold() {
|
||||
program
|
||||
.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){
|
||||
|
||||
let environment = env || 'development';
|
||||
|
||||
if(contract === undefined){
|
||||
@ -212,7 +213,7 @@ class Cmd {
|
||||
});
|
||||
|
||||
options.contract = contract;
|
||||
options.framework = options.framework || 'react';
|
||||
options.framework = options.framework || 'react';
|
||||
options.env = environment;
|
||||
embark.scaffold(options);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user