deps-new

pez 2021-09-06T10:05:38.013500Z

I fail creating a new re-frame project with extras:

clojure -T:new create :template re-frame :name foo/bar :output bar :args '[+10x +routes]'
=> Unreadable arg: "[+10x +routes]"
What am I doing wrong? (I fail with the same error message when trying with clj-new. )

seancorfield 2021-09-06T10:08:21.014600Z

+10x is not a valid EDN symbol and needs to be quoted as a string.

seancorfield 2021-09-06T10:10:09.017100Z

Also deps-new doesn't read Leiningen templates - you'll gave to use clj-new your that (or just lein new).

pez 2021-09-06T10:11:08.017300Z

Thanks!

pez 2021-09-06T11:28:36.020100Z

The shadow-cljs.edn file created with

clojure -X:new :template re-frame :name foo/bar :output bar :args '["+10x" +routes]'
gets an :init-fn foo/bar.core/init entry. Is it me using the command wrong or is something else in the chain broken?

pez 2021-09-06T11:36:38.020200Z

Just fixing that entry makes the project work.

seancorfield 2021-09-06T15:18:53.020400Z

Not all project templates work with qualified/names and some of them require dotted.names instead.