👋 I just installed latest as instructed in readme:
clojure -Ttools install-latest :lib io.github.seancorfield/deps-new :as new
After running this:
clojure -Tnew lib :name myusername/mycoollib
It seems the generated license is EPL-1.0, although the readme on the repo says that it will be EPL-2.0 . Or maybe I did something wrong?
Thanks for making deps-new, great project!
That change hasn't been released yet. See https://github.com/seancorfield/deps-new/commits/develop/ and https://github.com/seancorfield/deps-new/blob/develop/CHANGELOG.md
I'll try to v0.12.0 released this weekend. I had been expecting a bit more feedback from folks on the licensing issue (crickets). Note that even with v0.11.x, you can specify :license/id EPL-2.0 if you want to get an EPL-2.0 project.
Ah I see! Thanks for clarifying TIL about SPDX - great resource If you would entertain a feature request I would love to see the ability at some point in the future to scaffold cljs testing (node and/or browser, via shadow-cljs). Would be useful in the context of libs that support cljc. Lmk if that sounds of interest, happy to submit an issue on repo
Since I do not do any cljs dev, what I need is one or more PRs from folks who know that stuff.
Makes sense. I had it in mind for a project but it is not urgent. So I may follow up with a PR in the future. Just wanted to gauge if you were open to adding that kind of thing on the cljs side
Thanks for joining the Clo-HI-ojure meetup! 🙂
If you end up using that wizard to drive deps-new to create projects, here's all the possible options that can be provided: https://github.com/seancorfield/deps-new/blob/develop/doc/options.md
I think providing :build :bb would be a good default since the generated bb.edn file is a more friendly entry point than a mix of build.clj and CLI stuff.
Thank you!
and thanks for the options.md link that’s perfect
Yes I agree that :build :bb is good default
Yeah, there would need to be a new option to produce .cljc files and add the testing stuff to deps.edn etc. For HoneySQL, I use Olical's cljs-test-runner. But I'm open to other testing setups. I just went through all of this with my Polylith external test runner, adding cljs testing support.
Finally got a chance to work on the TUI app again today, wiring it to deps new.
Was wondering if the :require key here is typo?
https://github.com/seancorfield/deps-new/blob/17267fd6ba820b36aa6fef8c80249e98d62e9677/resources/org/corfield/new/lib/build-bb/bb.tmpl#L4
Looking https://book.babashka.org/#_introduction at the bb book… seems to use :requires
{:tasks
{:requires ([babashka.fs :as fs])
clean (fs/delete-tree "target")
}
}
maybe both work?Hmm, I'm not sure. Could be a bug. Could you create an issue so I can investigate tomorrow (and fix if needed)?
Thank you!