This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-27
Channels
- # bangalore-clj (1)
- # beginners (11)
- # boot (23)
- # business (2)
- # cider (43)
- # cljs-dev (65)
- # cljsjs (17)
- # cljsrn (4)
- # clojure (144)
- # clojure-austin (4)
- # clojure-berlin (3)
- # clojure-finland (4)
- # clojure-nl (2)
- # clojure-russia (13)
- # clojure-spec (73)
- # clojure-uk (42)
- # clojured (2)
- # clojurescript (166)
- # core-matrix (4)
- # cursive (24)
- # datomic (39)
- # dirac (8)
- # hoplon (97)
- # jobs (2)
- # jobs-rus (11)
- # juxt (16)
- # lein-figwheel (8)
- # leiningen (1)
- # luminus (5)
- # lumo (46)
- # off-topic (1)
- # om (39)
- # onyx (43)
- # overtone (1)
- # pedestal (3)
- # perun (6)
- # play-clj (3)
- # protorepl (14)
- # re-frame (21)
- # reagent (25)
- # remote-jobs (1)
- # ring (1)
- # robots (4)
- # rum (13)
- # specter (5)
- # untangled (72)
- # yada (62)
The simplex-solver
module we just packaged depends on underscore
and thus bundles it. But many javascript libraries need underscore and it seems inefficient that they all bundle it. Is there some way that the underscore (or any other library) dependency can be satisfied for a cljsjs package?
@pez By not committing them to the repo
That will prevent them to getting official packages at least, probably doesn't help when you build packages locally
My recommendation would be to setup git to ignore those files always (`core.exludesfile` to use global exclusions file, and add .DS_Store
to the file)
@juhoteperi: do you have any comment on my question about the underscore
dependency above?
@pez It should be possible to setup browserify to use external underscore, then you can add maven dependency on cljsjs/lodash
and add :requires
entry to deps.cljs
lodash should be underscore compatible, though I haven't used either in some time
underscore is not currently packaged in cljsjs, but if you package it, you could also depend on that
I'm not sure about browserify options, but webpack has externals option: https://github.com/cljsjs/packages/blob/29918d0e038b4a34dec08b38c0eef8bc2f53852f/react-dates/resources/webpack.config.js#L12
Here is one package that depends on lodash: https://github.com/cljsjs/packages/blob/a486e6af0389a1d2754e3a21e7772f082b208815/benchmark/build.boot#L31