2014-09-21 17 views
0

我從我的項目的根目錄下:添加引導程序使用的餘燼鮑爾

bower install --save bootstrap 

它輸出以下內容:

bower bootstrap#*   not-cached git://github.com/twbs/bootstrap.git#* 
bower bootstrap#*    resolve git://github.com/twbs/bootstrap.git#* 
bower bootstrap#*    download https://github.com/twbs/bootstrap/archive/v3.2.0.tar.gz 
bower bootstrap#*    extract archive.tar.gz 
bower bootstrap#*    resolved git://github.com/twbs/bootstrap.git#3.2.0 
bower bootstrap#~3.2.0   install bootstrap#3.2.0 

但供應商的文件夾仍然是空的?

回答

0

默認情況下,bower會將下載的組件安裝到bower_components目錄中。
您可以通過在.bowerrc文件中聲明的其他位置,例如覆蓋此行爲:

{ 
    "directory": "vendor/assets/components" 
} 
+0

看邪惡鱒魚演示的,好像他們只是進入供應商 - 這事,他將不得不相同配置的這個? – iwayneo 2014-09-21 15:44:47

+0

有許多選項:將bower配置爲使用其他目錄,使用grunt移動組件文件,使用bower-install而不是bower。你指的是哪個邪惡的鱒魚演示? – 2014-09-21 17:05:47

+0

我一直試圖使用它從bower_components目錄也沒有太多的運氣:http://stackoverflow.com/questions/25961286/ember-cli-adding-dependencies-with-bower我認爲截屏是http:/ /www.youtube.com/watch?v=7twifrxOTQY – iwayneo 2014-09-21 17:12:44