Ya just add it as a "prepublish" step in your package.json file. Something like this: http://stackoverflow.com/a/8913751/376773
On Thu, Dec 6, 2012 at 11:27 AM, Bradley Meck <[email protected]> wrote: > I think the main reason people encourage others to compile to JS is that it > can be a prepublish script to npm (you don't have to change .coffee to .js > manually every publish) and in doing so you do not require 'coffee-script' > to be loaded by the module that uses yours, making requirements of modules > that require yours can lead to odd assumptions, like if coffee-script should > be at a specific version or if the parent module. Messing with parent > modules is a big nono generally, since it basically is requiring global > (usually) state to be modified to use your module. > > > On Thursday, December 6, 2012 1:21:17 PM UTC-6, Alan Hoffmeister wrote: >> >> Than why bothering compiling it to js? It's much more easy to maintain it >> with coffee files. >> >> Em quinta-feira, 6 de dezembro de 2012, Nathan Rajlich escreveu: >>> >>> Not at all. In fact compiling into JS before runtime would make >>> boot-up time faster as well. >>> >>> On Thu, Dec 6, 2012 at 10:43 AM, Alan Hoffmeister >>> <[email protected]> wrote: >>> > Does it impact the module performance? >>> > >>> > -- >>> > Att, >>> > Alan Hoffmeister >>> > >>> > >>> > >>> > 2012/12/6 mscdex <[email protected]> >>> >> >>> >> On Dec 6, 1:34 pm, Nathan Rajlich <[email protected]> wrote: >>> >> > Very cool Alan! One recommendation though is to move "coffee-script" >>> >> > to "devDependencies" and then publish the compiled JS to npm, rather >>> >> > than (or alongside) the .coffee file. As a non-coffee user, I >>> >> > shouldn't have to install "coffe-script" if I wanna use your module. >>> >> >>> >> +1 >>> >> >>> >> -- >>> >> Job Board: http://jobs.nodejs.org/ >>> >> Posting guidelines: >>> >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>> >> You received this message because you are subscribed to the Google >>> >> Groups "nodejs" group. >>> >> To post to this group, send email to [email protected] >>> >> To unsubscribe from this group, send email to >>> >> [email protected] >>> >> For more options, visit this group at >>> >> http://groups.google.com/group/nodejs?hl=en?hl=en >>> > >>> > >>> > -- >>> > Job Board: http://jobs.nodejs.org/ >>> > Posting guidelines: >>> > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>> > You received this message because you are subscribed to the Google >>> > Groups "nodejs" group. >>> > To post to this group, send email to [email protected] >>> > To unsubscribe from this group, send email to >>> > [email protected] >>> > For more options, visit this group at >>> > http://groups.google.com/group/nodejs?hl=en?hl=en >>> >>> -- >>> Job Board: http://jobs.nodejs.org/ >>> Posting guidelines: >>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> >> >> -- >> -- >> Att, >> Alan Hoffmeister > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
