纯粹的前端代码存在哪些构建系统?

时间:2022-12-23 06:49:13

I'm looking to implement a build system that will run unit tests and JSLint on the Javascript, generate documentation and compress JavaScript and CSS into minified packages.

我正在寻求实现一个构建系统,它将在Javascript上运行单元测试和JSLint,生成文档并将JavaScript和CSS压缩到缩小的包中。

I might also add an integration step, which automatically uploads the code to a server on each build.

我还可以添加一个集成步骤,它会自动将代码上传到每个构建的服务器上。

I feel overwhelmed by all the choices in build systems - some targeted toward .NET, others to Java.

我对构建系统中的所有选择感到不知所措 - 一些针对.NET,另一些针对Java。

What's the best system for my requirement, considering that the choice back-end is irrelevant?

考虑到选择后端无关紧要,对我的要求最好的系统是什么?

1 个解决方案

#1


2  

Any build system would work, but there are none specifically designed for it. I would recommend either Ant or NAnt depending on if you're more comfortable with using Java or .NET. Either would work well for your purposes, running command line tools for the actions you want as part of your build.

任何构建系统都可以工作,但没有专门为它设计的。我建议使用Ant或NAnt,具体取决于您是否更习惯使用Java或.NET。这两种方法都可以很好地用于您的目的,运行命令行工具来执行构建过程中所需的操作。

You can also find 3rd party tasks specific to your tasks to make it easier:

您还可以找到特定于您的任务的第三方任务,以使其更容易:

Ant JSLint http://jslint4java.googlecode.com/svn/docs/1.3.1/ant.html

Ant JSLint http://jslint4java.googlecode.com/svn/docs/1.3.1/ant.html

For continuous integration I would recommend TeamCity. It will work well with any build system, provides a great interface, and is free for up to 20 projects.

为了持续集成,我会推荐TeamCity。它适用于任何构建系统,提供了一个很棒的界面,并且最多可以容纳20个项目。

http://www.jetbrains.com/teamcity/

http://www.jetbrains.com/teamcity/

#1


2  

Any build system would work, but there are none specifically designed for it. I would recommend either Ant or NAnt depending on if you're more comfortable with using Java or .NET. Either would work well for your purposes, running command line tools for the actions you want as part of your build.

任何构建系统都可以工作,但没有专门为它设计的。我建议使用Ant或NAnt,具体取决于您是否更习惯使用Java或.NET。这两种方法都可以很好地用于您的目的,运行命令行工具来执行构建过程中所需的操作。

You can also find 3rd party tasks specific to your tasks to make it easier:

您还可以找到特定于您的任务的第三方任务,以使其更容易:

Ant JSLint http://jslint4java.googlecode.com/svn/docs/1.3.1/ant.html

Ant JSLint http://jslint4java.googlecode.com/svn/docs/1.3.1/ant.html

For continuous integration I would recommend TeamCity. It will work well with any build system, provides a great interface, and is free for up to 20 projects.

为了持续集成,我会推荐TeamCity。它适用于任何构建系统,提供了一个很棒的界面,并且最多可以容纳20个项目。

http://www.jetbrains.com/teamcity/

http://www.jetbrains.com/teamcity/