cljsjs

pez 2017-02-27T08:11:01.001172Z

Is there anything more I should do to get the simplex-solver package pulled?

pez 2017-02-27T08:41:01.001175Z

Awesome.

pez 2017-02-27T19:33:21.001180Z

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 2017-02-27T20:05:14.001186Z

Can I avoid getting the Mac OS .DS_Store file included in the .jar in some simple way?

juhoteperi 2017-02-27T20:06:31.001187Z

@pez By not committing them to the repo

juhoteperi 2017-02-27T20:06:58.001188Z

That will prevent them to getting official packages at least, probably doesn't help when you build packages locally

pez 2017-02-27T20:07:53.001189Z

So it won’t get created when the package is built on Linux or Docker, then.

juhoteperi 2017-02-27T20:08:07.001190Z

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)

pez 2017-02-27T20:09:23.001191Z

.DS_Store is included in the “global” .gitignore since 9 days.

pez 2017-02-27T20:14:18.001192Z

@juhoteperi: do you have any comment on my question about the underscore dependency above?

juhoteperi 2017-02-27T20:16:24.001193Z

@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

juhoteperi 2017-02-27T20:16:27.001194Z

https://github.com/cljsjs/packages/tree/master/lodash

juhoteperi 2017-02-27T20:16:48.001196Z

lodash should be underscore compatible, though I haven't used either in some time

juhoteperi 2017-02-27T20:17:11.001197Z

underscore is not currently packaged in cljsjs, but if you package it, you could also depend on that

juhoteperi 2017-02-27T20:18:17.001198Z

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

juhoteperi 2017-02-27T20:19:10.001200Z

Here is one package that depends on lodash: https://github.com/cljsjs/packages/blob/a486e6af0389a1d2754e3a21e7772f082b208815/benchmark/build.boot#L31

pez 2017-02-27T20:20:06.001202Z

I’ll give lodash a try first. Thanks!