This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-05
Channels
- # aleph (2)
- # announcements (3)
- # architecture (5)
- # beginners (51)
- # biff (5)
- # cider (1)
- # clerk (8)
- # clj-kondo (6)
- # cljsrn (5)
- # clojure (31)
- # clojure-europe (42)
- # clojure-nl (1)
- # clojure-norway (21)
- # clojure-uk (3)
- # emacs (11)
- # fulcro (2)
- # graphql (6)
- # hugsql (1)
- # jobs (2)
- # leiningen (3)
- # lsp (3)
- # malli (13)
- # missionary (1)
- # off-topic (7)
- # pathom (7)
- # polylith (27)
- # reagent (14)
- # reitit (3)
- # remote-jobs (7)
- # shadow-cljs (20)
- # spacemacs (4)
- # sql (3)
- # tools-build (4)
- # xtdb (7)
Hey all!
In my Leiningen project, I want to run my code via ["run" "-m" "website.styles/write-styles"]
to write all Ornament/Garden styles into a .css file whenever the uberjar is built.
Adding this to :prep-tasks
seems to be not the right place, because it overwrites any default prep tasks which breaks compilation. Also it does not need to be run before compilation (could be run at any point).
So what would be the best place to put it? (And 2nd question, can I make an alias a precondition for the uberjar
task?)
• :prep-tasks
https://codeberg.org/leiningen/leiningen/src/commit/0a8a3d1151a9a24f708c17fd6238f3e3ae4d726e/sample.project.clj#L269-L272; make sure the syntax is correct
• Leiningen supports https://codeberg.org/leiningen/leiningen/src/branch/main/doc/PROFILES.md#user-content-merging, which I think is what you possibly would want. It’s worth noting that profiles are always merged to main project data structure, so might be you just need to move your garden generation to profile to make it work.