mirror of
https://github.com/status-im/re-natal.git
synced 2025-01-28 21:34:48 +00:00
create lein project
This commit is contained in:
parent
be1faccc56
commit
29b2978e19
13
main.coffee
13
main.coffee
@ -31,6 +31,19 @@ init = (projName) ->
|
||||
execSync 'type lein'
|
||||
execSync 'type pod'
|
||||
|
||||
log 'Creating Leiningen project'
|
||||
execSync "lein new #{ projNameHyph }"
|
||||
|
||||
log 'Updating Leiningen project'
|
||||
process.chdir projNameHyph
|
||||
execSync "cp #{ resources }project.clj project.clj"
|
||||
editSync 'project.clj', [[projNameHyphRx, projNameHyph]]
|
||||
corePath = "src/#{ projNameUs }/core.clj"
|
||||
fs.unlinkSync corePath
|
||||
corePath += 's'
|
||||
execSync "cp #{ resources }core.cljs #{ corePath }"
|
||||
editSync corePath, [[projNameHyphRx, projNameHyph], [projNameRx, projName]]
|
||||
|
||||
|
||||
catch e
|
||||
logErr e.message
|
||||
|
Loading…
x
Reference in New Issue
Block a user