IMO, the javascript is the compiled code; coffeescript is just a mid step language.
So, you should convert coffee to javascript during the %build phase.
As source used for the RPM you can use of course the .tar.gz from upstream, as-is.
Sergio
-----Original Message-----
From: nodejs-bounces(a)lists.fedoraproject.org
[mailto:nodejs-bounces@lists.fedoraproject.org] On Behalf Of Tom Hughes
Sent: quinta-feira, 28 de Novembro de 2013 21:43
To: Node.js on Fedora
Subject: xmlbuilder
I need to package the xmlbuilder module (it's a new dependency for another module I
own) but packaging it has raised some interesting questions.
The javascript source in the npm package, which is what the packaging guidelines tell us
to use as the source, is compiled from coffee script and also doesn't include any
source.
We've worked around similar situations in the past by having a second source archive
which contains the tests pulled from github, but in this case there's an extra issue -
the tests work on the original coffee script source not the compiled javascript.
In any case the coffee script is the real source, so shouldn't I really be packaging
the github tar ball and building the js from that as part of the rpm?
Tom
--
Tom Hughes (tom(a)compton.nu)
http://compton.nu/
_______________________________________________
nodejs mailing list
nodejs(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/nodejs