可能重複:
twitter bootstrap make from source從github克隆後編譯Twitter Bootstrap - 輸出在哪裏?
我想了解如何建立Twitter的引導。看起來有兩種方法可以訪問Twitter Bootstrap。
的第一是從http://twitter.github.com/bootstrap/assets/bootstrap.zip下載bootstrap.zip
,使用,然後將其解壓縮,這將導致以下目錄結構:
.
└── bootstrap/
├── css/
│ ├── bootstrap-responsive.css
│ ├── bootstrap-responsive.min.css
│ ├── bootstrap.css
│ └── bootstrap.min.css
├── img/
│ ├── glyphicons-halflings-white.png
│ └── glyphicons-halflings.png
└── js/
├── bootstrap.js
└── bootstrap.min.js
4 directories, 8 files
如果我沒有理解錯,都是我必須做的是降bootstrap
目錄及其下的所有文件,放到我的項目目錄中,然後在我的HTML文件中包含類似如下的標記:<link type="text/css" rel="stylesheet" href="location_of_my_twitter_bootstrap_file" />
第二個獲取Twitter Bootstrap的方法是克隆github項目,然後使用make
來構建它。我已經安裝了Node.js
和我已經使用npm
來安裝幾個包,例如less
jshint
recess
uglify-js
和connect
。當我運行從它似乎工作的引導目錄make
命令,我得到下面的輸出:
##################################################
Building Bootstrap...
##################################################
Running JSHint on javascript... ✔ Done
Compiling LESS with Recess... ✔ Done
Compiling documentation... ✔ Done
Compiling and minifying javascript... ✔ Done
##################################################
Bootstrap successfully built at 09:36AM.
##################################################
Thanks for using Bootstrap,
<3 @mdo and @fat
但是,我沒有得到使用相同的目錄結構解壓壓縮文件給我的引導目錄。相反,bootstrap/docs/assets
下的一堆文件已更新,它們似乎與我從bootstrap.zip獲得的文件(例如,它們中的更多文件)沒有對應關係。
我的問題是:克隆github項目提供什麼優勢,像我一樣使用make
的目的是什麼,以及如何從Twitter鏈接乾淨地生成來自Twitter的Bootstrap源文件的CSS和JS文件項目?
謝謝。
檢查此問題的答案http://stackoverflow.com/q/9123112/1478467 – Sherbrow
感謝您的提示。 – jononomo
你鏈接到的問題是從8個月前開始的,事情自從他們改變了。當他運行'make'時,創建了一個'bootstrap.zip',它包含'bootstrap'目錄。我沒有得到運行'make'時創建的zip文件。 – jononomo