fix typo and update config check code
This commit is contained in:
parent
952d0b8a4c
commit
b0b34b075b
|
@ -146,7 +146,7 @@ generateConfig = (interfaceName, projName) ->
|
||||||
interface: interfaceName
|
interface: interfaceName
|
||||||
androidHost: "localhost"
|
androidHost: "localhost"
|
||||||
iosHost: "localhost"
|
iosHost: "localhost"
|
||||||
devRoots: defaultEnvRoots
|
envRoots: defaultEnvRoots
|
||||||
modules: []
|
modules: []
|
||||||
imageDirs: ["images"]
|
imageDirs: ["images"]
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ writeConfig = (config) ->
|
||||||
message
|
message
|
||||||
|
|
||||||
verifyConfig = (config) ->
|
verifyConfig = (config) ->
|
||||||
if !config.androidHost? || !config.modules? || !config.imageDirs? || !config.interface? || !config.iosHost?
|
if !config.androidHost? || !config.modules? || !config.imageDirs? || !config.interface? || !config.iosHost? || !config.envRoots?
|
||||||
throw new Error 're-natal project needs to be upgraded, please run: re-natal upgrade'
|
throw new Error 're-natal project needs to be upgraded, please run: re-natal upgrade'
|
||||||
config
|
config
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue