This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-15
Channels
- # announcements (13)
- # beginners (106)
- # cider (70)
- # cljdoc (1)
- # cljsjs (1)
- # clojure (97)
- # clojure-finland (1)
- # clojure-italy (13)
- # clojure-mexico (16)
- # clojure-russia (1)
- # clojure-spec (53)
- # clojure-uk (146)
- # clojurescript (44)
- # core-async (5)
- # cryogen (1)
- # css (1)
- # cursive (11)
- # datomic (89)
- # duct (10)
- # emacs (4)
- # figwheel-main (58)
- # fulcro (5)
- # hispano (35)
- # hyperfiddle (1)
- # jobs (2)
- # jobs-discuss (1)
- # lambdaisland (1)
- # leiningen (3)
- # off-topic (13)
- # onyx (50)
- # parinfer (3)
- # pedestal (4)
- # reagent (9)
- # ring-swagger (56)
- # rum (3)
- # shadow-cljs (85)
- # spacemacs (4)
- # vim (4)
its always a balance since the scripting api is there now, I wonder about initialization hooks should even be offered.
@dnolen and actually its a bit tricky because yarn requires a tty and so you have to do (clojure.java.shell/sh "sh" "-c" "yarn webpack")
@dnolen if you think an initialization hook is worth it to automate things like webpack let me know
@bhauman that’s interesting but it assumes the index.js
will be easy to understand semantically
I’ve run into cases where it’s better to not just reassign the import but to put the import into an object with some other name(s)
{:provides ["moment" "react" "react" "react-date-picker"], :global-exports {moment moment, react ReactDOM, react-date-picker ReactDatePicker}, :file "out.js"}
in anycase I’m on a client project right now where this stuff comes up and it’s basic stuff they want
k, yeah I wouldn’t use something like that yet - I’m waiting to see more patterns in the wild
i have question, does it load 2 instance of react as one from reagent and one from webpack?
as i didn't know how, both technology blend together, i have this question on my mind for long.
@rumaysaalvina2 you would need to exclude the react from Reagent
I'm adding a new feature called :extra-main-files
that will make it trivial to add tests
and devcards
to a single build process. You could also add an admin
build in there as well.
@bhauman Are there instructions for devcards and figwheel main? I found some for figwheel and leiningen. I don't know how to apply that to figwheel main and clj/clojure
no explicit instructions yet, but it should be the same for the most part. I will provide explicit instructions in the future after I get this feature in place