Fork me on GitHub
#deps-new
<
2021-09-06
>
pez10:09:38

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. )

seancorfield10:09:21

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

seancorfield10:09:09

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

pez11:09:36

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?

pez11:09:38

Just fixing that entry makes the project work.

seancorfield15:09:53

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