pluckUuid helper, choose iPhone 6 UUID when writing initial config

This commit is contained in:
Dan Motzenbecker 2015-10-03 22:35:19 -04:00
parent 48171402d4
commit bed6cca347
1 changed files with 7 additions and 1 deletions

View File

@ -42,6 +42,10 @@ editSync = (path, pairs) ->
, readFile path
pluckUuid = (line) ->
line.match(/\[(.+)\]/)[1]
writeConfig = (config) ->
try
fs.writeFileSync '.natal', JSON.stringify config, null, 2
@ -198,7 +202,9 @@ init = (projName) ->
log 'Creating Natal config'
process.chdir '../..'
writeConfig name: projName
writeConfig
name: projName
device: pluckUuid getDeviceList().find (line) -> /iPhone 6/.test line
log '\nWhen Xcode appears, click the play button to run the app on the simulator.', 'yellow'
log 'Then run the following for an interactive workflow:', 'yellow'