This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-11
Channels
- # announcements (6)
- # babashka (35)
- # beginners (6)
- # biff (2)
- # calva (1)
- # cider (16)
- # clj-kondo (14)
- # clojure (176)
- # clojure-austin (13)
- # clojure-europe (7)
- # clojure-norway (6)
- # clojure-uk (12)
- # clojurescript (4)
- # cursive (11)
- # data-science (3)
- # datalog (10)
- # datomic (45)
- # events (1)
- # fulcro (2)
- # hyperfiddle (29)
- # leiningen (14)
- # lsp (2)
- # meander (2)
- # off-topic (24)
- # polylith (5)
- # re-frame (2)
- # shadow-cljs (21)
- # specter (14)
- # tools-deps (16)
- # xtdb (5)
hey so I have a question and I may not be in the right channel, but I am trying to package all of my non-compiled cljs code into a maven local repo and use it like a library in my deps.edn file.
sorry, can I do that using maven without having .js files? right now we have a git sha lib system but we want to transfer it over to maven, and its dependencies.
yes, there is no difference between a mvn or git dependency when it comes to what files are in your dependency
Because some of our content has to be private and we want to add our dependencies to be compiled and included without uncompiled cljs. the issue is we use Git/sha and it's supposed to be a library. but if a developer brings down the library they will have to find the shad include that then do a npm install that may that multiple dependency includes. we want to have self contained dependencies for our lib.
> Because some of our content has to be private What does this have to do with git or mvn? Both git or mvn can be private or public
> we want to add our dependencies to be compiled and included without uncompiled cljs ok...
I'm not sure I understand the rest of what you said. git, mvn and now npm... Perhaps you can try to focus on one clear problem at a time? #clojurescript might also be a good channel to ask questions about this
Check out the "Local Maven install" section on this page https://clojure.org/reference/deps_and_cli
if your intent is to have shadow-cljs install npm dependencies of the library you can add a deps.cljs
file to that library including {:npm-deps {"that-dep" "1.2.3"}}
. when shadow-cljs is started it'll look for those files and install the dependencies via npm install [email protected]
@U05224H0W Hey I am not trying to be confusing. the git/sha we have is fine, but it is clunky. in our main project, we have packages that we cannot upgrade because it will break our build. the lib has all the current up-to-date npm packages it needs. when we add the lib to the project shadow or clj says "hey can't do this because it, is not the right version" what I am trying to look for, when add our lib to the main project and we start to build it with shadow and web-pack, the lib it does an npm install from its own repo and we don't have to maintain the libs dependencies.