views:

74

answers:

2

Do you have any suggestions or examples on how to deploy minimized (min) versions of JavaScript files using NAnt?

Are there any good command line applications, or scripts to assist with minimizing or packing JavaScript on Windows?

+1  A: 

If you're okay with taking a dependency on Java, you can use YUI Compressor (otherwise there's the .NET port of it).

bdukes
Interesting. Since it has a command line interface, I can probably hook it up into Aptana somehow as a tool. Thanks for mentioning this.
Nosredna
A: 

Kariem (my colleague) wrote an Open Source nAnt task wrapper around JSMin (Douglas Crockford's C# code) which can be found here...

And when you later figure you want to also do a GZip task in nAnt, feel free to also use our (also Open Source) nAnt gzipper

Both of these are a part of the download of Ra-Ajax which can be found at the Ra-Ajax download page at google code

Ohh yeah, almost forgot to mention that they both have a permissive Open Source license (free of charge to use) though in the "spirit of Douglas" we choose to release them both under his own custom Open Source license which roughly is an MIT license though with a "use not for evil purposes" clause ;)

We found that "no evil" clause so funny we had to use it ourselves. Beside we're building on Doug's code so it would only be fair to build in "his spirit" too, right...? ;)

Have fun :)

Thomas Hansen