fix interface dependant usage instructions which are printed after init command finished

This commit is contained in:
Artur Girenko 2016-02-11 13:11:56 +01:00
parent f9631e3be3
commit b73e7a1ed3

View File

@ -42,6 +42,7 @@ interfaceConf =
'[re-frame "0.6.0"]' '[re-frame "0.6.0"]'
'[prismatic/schema "1.0.4"]'] '[prismatic/schema "1.0.4"]']
shims: ["cljsjs.react"] shims: ["cljsjs.react"]
sampleCommandNs: '(in-ns \'$PROJECT_NAME_HYPHENATED$.ios.core)'
sampleCommand: '(dispatch [:set-greeting "Hello Native World!"])' sampleCommand: '(dispatch [:set-greeting "Hello Native World!"])'
'om-next': 'om-next':
cljsDir: "cljs-om-next" cljsDir: "cljs-om-next"
@ -53,6 +54,7 @@ interfaceConf =
deps: ['[org.omcljs/om "1.0.0-alpha28" :exclusions [cljsjs/react cljsjs/react-dom]]' deps: ['[org.omcljs/om "1.0.0-alpha28" :exclusions [cljsjs/react cljsjs/react-dom]]'
'[natal-shell "0.1.6"]'] '[natal-shell "0.1.6"]']
shims: ["cljsjs.react", "cljsjs.react.dom"] shims: ["cljsjs.react", "cljsjs.react.dom"]
sampleCommandNs: '(in-ns \'$PROJECT_NAME_HYPHENATED$.state)'
sampleCommand: '(swap! app-state assoc :app/msg "Hello Native World!")' sampleCommand: '(swap! app-state assoc :app/msg "Hello Native World!")'
interfaceNames = Object.keys interfaceConf interfaceNames = Object.keys interfaceConf
@ -368,7 +370,7 @@ init = (interfaceName, projName) ->
log 'Reload the app in simulator' log 'Reload the app in simulator'
log '' log ''
log 'At the REPL prompt type this:', 'yellow' log 'At the REPL prompt type this:', 'yellow'
log "(in-ns '#{projNameHyph}.ios.core)", 'inverse' log interfaceConf[interfaceName].sampleCommandNs.replace(projNameHyphRx, projNameHyph), 'inverse'
log '' log ''
log 'Changes you make via the REPL or by changing your .cljs files should appear live.', 'yellow' log 'Changes you make via the REPL or by changing your .cljs files should appear live.', 'yellow'
log '' log ''