On Fri, Dec 17, 2010 at 7:21 PM, Christophe Porteneuve 
<t...@tddsworld.com>wrote:

> FYI, Sprockets is another concatenation tool that handles requires,
> constants, etc.  It also binds to YUI::Compressor for efficient minifying of
> the compiled source.  And it can be easily used in any context: command
> line, "plain web" (through a FastCGI binding) or Rails (through the
> Sprockets-Rails plugin).
>

Sprockets is brilliant for building complex JS apps. As I come from the Java
world it doesn't fit into my workflow as well as it does for the Ruby folks;
hence JSprockets <https://github.com/rvagg/jsprockets>which doesn't do
everything that Sprockets does (yet) but it does basic *require* and *
constants*. It also handles CoffeeScript files, plus it has an
Ant<http://ant.apache.org>task.

So, currently, for a CoffeeScript app I have on the go, I build using an Ant
build file that runs JSprockets to bundle the source, then compiles with the
standard CoffeeScript compiler if it's available on the system, otherwise
falls back to JCoffeeScript </>. Then you can call either YUICompressor or
Closure Compiler (both Java apps) if you want to minify, all without having
to leave the JVM and it fits naturally into
Eclipse<http://www.eclipse.org/>as a dev environment. The only thing
missing is nice syntax highlighting in
Eclipse for CoffeeScript.

Rod

-- 
> Christophe Porteneuve
> t...@tddsworld.com
>
> --
> To view archived discussions from the original JSMentors Mailman list:
> http://www.mail-archive.com/jsmentors@jsmentors.com/
>
> To search via a non-Google archive, visit here:
> http://www.mail-archive.com/jsmentors@googlegroups.com/
>
> To unsubscribe from this group, send email to
> jsmentors+unsubscr...@googlegroups.com<jsmentors%2bunsubscr...@googlegroups.com>
>

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to