2015-11-04 56 views
3

我有一个团队城市建立在Windows 3步骤。我想包括一个凉亭步骤来安装项目中的bower.json的所有依赖项,而不是检查lib文件夹。从TeamCity运行Bower?

当前步骤是:

  1. NPM(安装,安装咕噜-CLI,安装咕噜)
  2. 咕噜
  3. 因缘

我不是很熟悉的节点或TeamCity的并试图做到以下几点。在(1)中增加了“安装凉亭”。 (1)使用“bower --force-latest”运行node.js之后添加了一个新步骤,但正在努力解决各种错误。请有人给我一步一步解释如何得到凉亭运行或我是否应该?

回答

5

想通了:

1) installed grunt and bower onto the server 
2) updated the PATH environment variables to include bower 
3) rebooted the build box 
4) added a command line build step running bower from the correct project working directory: bower install -f 

它的作品!所有凉亭包安装。业力单元测试然后工作,而不呻吟依赖关系!我现在可以从提交中删除lib文件夹...