From 3fba9ff70df83ab8b2e74dfc51d2663faa398673 Mon Sep 17 00:00:00 2001 From: Dan Motzenbecker Date: Sat, 14 Nov 2015 18:21:08 -0500 Subject: [PATCH] ensure dependencies are installed on launch --- natal.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/natal.coffee b/natal.coffee index ae8f96b..38964f0 100644 --- a/natal.coffee +++ b/natal.coffee @@ -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'