持续集成中js的最佳包装策略? [英] Best packing strategy for js during continuous integration?

查看:177
本文介绍了持续集成中js的最佳包装策略?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要打包所有的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆