持续集成中js的最佳包装策略? [英] Best packing strategy for js during continuous integration?
问题描述
我需要打包所有的js,但需要编辑它进入源代码控制。
I need to pack all my js, but need to edit it going into source control.
有一个很好的简单的ccnet或者nant插件允许我打包我的js,并将它们存储在相同的文件中的出口到生产。
is there a nice easy plugin for ccnet, or nant, that will allow me to pack my js, and store them in the same files on the way out to production.
不是真正寻找文件合并,只是缩小每个文件。 p>
Not really looking for file combining, just minifying each file.
推荐答案
这是我发现的最好的答案。它调用了minify的YUI版本,并使用简单的旧Nant来完成,并用已缩小的js文件替换现有的js文件。
Here is the best answer I have found. It calls the YUI version of minify and just uses plain old Nant to do so and replace the existing js files with the minifyed ones.
http:// codeclimber。 net.nz/archive/2007/08/22/How-to-use-YUI-JS-Compressor-inside-a-NAnt-build.aspx
这篇关于持续集成中js的最佳包装策略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!