normalize project name, try lein and pod, catch errors

This commit is contained in:
Dan Motzenbecker 2015-08-21 23:46:38 -04:00
parent a5ae5e656e
commit fafabc5b40
1 changed files with 12 additions and 0 deletions

View File

@ -24,3 +24,15 @@ editSync = (path, pairs) ->
init = (projName) ->
projNameHyph = projName.replace(camelRx, '$1-$2').toLowerCase()
projNameUs = projName.replace(camelRx, '$1_$2').toLowerCase()
try
execSync 'type lein'
execSync 'type pod'
catch e
logErr e.message
process.exit 1