Fork me on GitHub
#cljsjs
<
2016-04-26
>
annarcana11:04:37

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.

annarcana11:04:21

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?

juhoteperi12:04:19

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:"

annarcana12:04:07

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

juhoteperi12:04:14

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

juhoteperi12:04:34

That is the same convention that Webjars uses

juhoteperi12:04:07

hmm except why should we remove the dots

juhoteperi12:04:31

Looks like classic webjars don't use single convention

juhoteperi12:04:52

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

juhoteperi12:04:40

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.