Sri*_*Sri 7 javascript tfs continuous-integration tfsbuild gruntjs
我的新项目需要我使用TFS + Git.
忏悔:我对TFS一无所知.
我想为我的JavaScript项目设置一个构建.我想用Grunt.
这可能吗?有没有人使用Grunt和TFS?
tho*_*aux 18
在我们目前的项目中,我们使用的是Grunt和TFS.我已经将Grunt与TFS集成在一起,它可以从一个bat文件中调用它,你可以在项目文件的Pre-或Post-BuildEvents部分中连接它.
但是,因为TFS将使用特定的环境变量执行构建,所以您需要使用绝对路径.
我们已完成的事情清单
package.json在JavaScript项目的根目录中添加文件.npm安装(!).使用该标志将此包添加到开发依赖项部分中grunt-cli --save-devpackage.jsonbat文件示例
rem use call to execute other bat files
echo npm install
call "C:\Program Files\nodejs\npm" install
rem because we have listed grunt-cli as a dev dependency,
rem the executable will be located in the node_modules folder
echo grunt
call "./node_modules/.bin/grunt"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6094 次 |
| 最近记录: |