This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-04
Channels
- # announcements (5)
- # beginners (124)
- # boot (43)
- # braveandtrue (8)
- # calva (1)
- # cider (44)
- # cljs-dev (1)
- # clojure (188)
- # clojure-canada (3)
- # clojure-germany (1)
- # clojure-italy (5)
- # clojure-nl (13)
- # clojure-russia (1)
- # clojure-spec (14)
- # clojure-uk (42)
- # clojurescript (94)
- # core-async (5)
- # cursive (5)
- # datomic (45)
- # duct (3)
- # emacs (6)
- # figwheel-main (93)
- # fulcro (22)
- # graphql (3)
- # hyperfiddle (1)
- # leiningen (3)
- # off-topic (1)
- # pedestal (1)
- # play-clj (1)
- # portkey (1)
- # re-frame (17)
- # reagent (71)
- # remote-jobs (2)
- # rum (3)
- # shadow-cljs (45)
- # spacemacs (17)
- # specter (18)
- # tools-deps (27)
- # unrepl (1)
- # vim (3)
@ghiden My first thought would be: why do you want to use Boot for that? It looks like using yarn
and clj
is pretty simple...
Then I'd say the webpack
page doesn't apply to your project?
Perhaps, take a step back -- you have an existing ClojureScript project that uses Boot, yes? What do you want to do with/to that project?
it's a long process but I have two projects: one in some jquery-ish big single page app and the next one is new app with cljs. Trying to bridge between two, I want to introduce new components in cljs. From this component, I want to produce npm for legacy app and cljs jar for new app.
for generating npm, I'm thinking about shadow-cljs and for new app, i thought i could use this webpack method
Do both projects exist and use Boot? Or is that only the "big single page app"?
Ah, so the new app is already "legacy project that comes with boot"?
if i have .cljs.edn
file with options listed on the webpack page, would it work? https://github.com/boot-clj/boot-cljs/blob/master/docs/compiler-options.md
🙂 I guess "legacy" code is anything someone wrote before today... So your cljs+boot project probably already has a cljs build config (in build.boot
or externally) so adding the options from the webpack page should be all you need... I think
OK, you're already using an external options file...
Ours is 2,000 🙂
Our entire dev/test/build/CI process is built on top of Boot so...
They tend to just sort of grow and grow as your dev/test/build process evolves...
Ours has a lot of machinery for automatically deducing cross-project dependencies within our monorepo... plus a lot of build-related tasks that used to be done via ant and bash...
I suspect your questions will be much more around cljs workflows so the #clojurescript channel might be more helpful than the #boot channel...?
That will depend on how your build.boot
process is set up I expect...
...I haven't done cljs development for years (I got too frustrated with the tooling and how fast everything was changing all the time).
i need to make sure build.boot
is not changing the fields that I set in the external file
I think the only relevant part of that webpack page for you, given you have an existing project with Boot, is the compiler options -- but if your Boot process is already set up to produce artifacts, I'm not sure whether you'll run into conflicts in the options. Good luck!
a 2000-line build.boot? yowza! at some point, i would be very tempted to move parts of that into dedicated namespaces
@dave Yeah, we've contemplated refactoring the functions out... especially as we're also looking to see how much we could do with clj
... we've had external deps EDN files with Boot for ages, with a fixed set of version overrides...