从TeamCity运行Bower?

sar*_*rin 4 teamcity node.js bower

我在Windows上有一个团队城市,有3个步骤.我想在项目中包含一个bower步骤来安装bower.json中的所有依赖项,而不是检查lib文件夹.

目前的步骤是:

  1. NPM(安装,安装grunt-cli,安装grunt)
  2. 咕噜
  3. 因果报应

我对节点或团队城市不是很熟悉,并尝试执行以下操作.在(1)中添加了"安装凉亭".在(1)使用"bower --force-latest"运行node.js之后添加了一个新步骤,但是遇到了各种错误.请有人能给我一步一步解释如何让凉亭跑步或是否应该?

sar*_*rin 6

弄清楚了:

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
Run Code Online (Sandbox Code Playgroud)

有用!安装了所有凉亭包.业力单位测试然后工作而不抱怨依赖性!我现在可以从提交中删除lib文件夹了...