2015-11-04 54 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文件夾...