Is there anything more I should do to get the simplex-solver package pulled?
Awesome.
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?
Can I avoid getting the Mac OS .DS_Store
file included in the .jar
in some simple way?
@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
So it won’t get created when the package is built on Linux or Docker, then.
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)
.DS_Store
is included in the “global” .gitignore
since 9 days.
@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
I’ll give lodash a try first. Thanks!