ensure dependencies are installed on launch

This commit is contained in:
Dan Motzenbecker 2015-11-14 18:21:08 -05:00
parent 04bfb40ee4
commit 3fba9ff70d
1 changed files with 6 additions and 0 deletions

View File

@ -352,6 +352,12 @@ launch = ({name, device}) ->
log 'Device ID not available, defaulting to iPhone 6s simulator', 'yellow'
{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'
exec 'lein cljsbuild once dev'