ensure dependencies are installed on launch
This commit is contained in:
parent
04bfb40ee4
commit
3fba9ff70d
|
@ -352,6 +352,12 @@ launch = ({name, device}) ->
|
||||||
log 'Device ID not available, defaulting to iPhone 6s simulator', 'yellow'
|
log 'Device ID not available, defaulting to iPhone 6s simulator', 'yellow'
|
||||||
{device} = generateConfig name
|
{device} = generateConfig name
|
||||||
|
|
||||||
|
try
|
||||||
|
fs.statSync 'native/node_modules'
|
||||||
|
fs.statSync 'native/ios/Pods'
|
||||||
|
catch
|
||||||
|
logErr 'Dependencies are missing. Run natal deps to install them.'
|
||||||
|
|
||||||
log 'Compiling ClojureScript'
|
log 'Compiling ClojureScript'
|
||||||
exec 'lein cljsbuild once dev'
|
exec 'lein cljsbuild once dev'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue