added deps task for installing dependencies

This commit is contained in:
Dan Motzenbecker 2015-11-14 18:21:39 -05:00
parent 3fba9ff70d
commit 97faf3a9d8
1 changed files with 14 additions and 0 deletions

View File

@ -507,6 +507,20 @@ cli.command 'xcode'
openXcode readConfig().name
cli.command 'deps'
.description 'install all dependencies for the project'
.action ->
try
process.chdir 'native'
log 'Installing npm packages'
exec 'npm i'
log 'Installing pods'
process.chdir 'ios'
exec 'pod install'
catch {message}
logErr message
cli.on '*', (command) ->
logErr "unknown command #{command[0]}. See natal --help for valid commands"