cljsjs

jamitter 2018-01-29T14:41:01.000433Z

@hoppy do you have any insight on how to make the reconnect feature work as intended? I'm setting the reconnect flag to true - but when the onConnectionLost callback gets invoked, the connection just stays dead and doesn't attempt to reconnect

jamitter 2018-01-29T14:41:02.000669Z

https://puu.sh/zcbfn/366e513d84.png

hoppy 2018-01-29T14:45:45.000495Z

@jamitter, I haven't had problems with that. we can talk/compare code after day job ends later if you can't get it working

jamitter 2018-01-29T14:47:20.000422Z

@hoppy absolutely, thank you

sherbondy 2018-01-29T21:29:13.000417Z

Hey folks, anybody have suggestions for handling making a cljsjs package for a project that contains a css file as part of its dist?

sherbondy 2018-01-29T21:29:25.000763Z

In particular, I was thinking about trying to submit a cljsjs package for: https://github.com/clari/react-ios-switch

sherbondy 2018-01-29T21:29:56.000013Z

It generates a css file as part of its build process:

sherbondy 2018-01-29T21:30:02.000123Z

e.g. https://clari.github.io/react-ios-switch/build/bundle.css

sherbondy 2018-01-29T21:31:11.000207Z

unfortunately, services such as cdnjs don’t seem to handle this case gracefully, re: npm packages with arbitrary assets like css or images as part of the dist bundle:

sherbondy 2018-01-29T21:31:14.000043Z

https://cdnjs.com/libraries/react-ios-switch

sherbondy 2018-01-29T21:32:47.000079Z

What do you think is the most graceful way to deal with this? Any caveats I should know about? Does this fall in the territory of “not currently supported” by cljsjs? Maybe the sort of thing where I would submit an “externs only” package and request that the user side-load the JS and CSS content through some other means like NPM?

sherbondy 2018-01-29T21:34:59.000122Z

Hmm, never mind, I think I may have answered my own question by referring to how react-virtualized is packaged!

sherbondy 2018-01-29T22:38:06.000422Z

Ah, there is also a wiki article covering this. Should have done a better job searching first! https://github.com/cljsjs/packages/wiki/Non-JS-Assets