cljsjs

jarcane 2016-04-26T11:28:37.000105Z

Pursuant to previous commit, does anyone have any idea how I'd begin to package https://github.com/jhudson8/react-chartjs for CLJSJS? It is only available as a CommonJS component and it's not clear how I'd even translate that into something usable here.

jarcane 2016-04-26T11:51:21.000109Z

Hmm. Looking at a similar package now, I guess I'm just not clear if there's an easy way to generate the necessary externs from a webpack-ified version, short of just doing it by hand?

juhoteperi 2016-04-26T12:01:19.000110Z

Ah, wiki currently mentions this: "Use the library's name (without "js" or ".js") as the top-level directory and create the following directory structure:"

jarcane 2016-04-26T12:02:07.000111Z

yeah. Hence the "chart" name, but I agree it's probably clearer to make an exception in this case given the vague name.

juhoteperi 2016-04-26T12:02:14.000112Z

I think I'll change that to "Use the same name as library uses in npm/Bower and remove dots"

juhoteperi 2016-04-26T12:02:34.000113Z

That is the same convention that Webjars uses

juhoteperi 2016-04-26T12:03:07.000115Z

hmm except why should we remove the dots

juhoteperi 2016-04-26T12:05:31.000117Z

Looks like classic webjars don't use single convention

juhoteperi 2016-04-26T12:05:52.000118Z

but npm and bower webjars just use exactly the same name as npm and bower packages

juhoteperi 2016-04-26T12:09:40.000119Z

I think it would be best to use exactly he same name as official npm and bower packages. I don't think this will cause any problems with Maven. My bash scripts might break but those are easy to fix.