2012-08-05 45 views
1

我试图通过a tutorial to set up Twitter Bootstrap工作。将Twitter Bootstrap资产克隆到应用程序目录中

它提供了一些指令克隆Twitter的引导,像这样,

$ git clone https://github.com/twitter/bootstrap.git 

然后,按照说明,我没有

$ cp bootstrap/bootstrap.css path/to/app/assets/stylesheets/. 

但计算机回应

cp: bootstrap/bootstrap.css: No such file or directory 

我看着在'bootstrap'目录内,看到这个

LICENSE 
Makefile 
README.md 
docs 
img 
js 
less 
package.json 

我应该这样做,而不是

$ cp bootstrap/bootstrap.css path/to/app/assets/stylesheets/. 

+0

您是否遍历目录结构以查找名为bootstrap.css的文件?你能否提供原始说明的链接? – 2012-08-05 02:42:27

+0

http://rubysource.com/twitter-bootstrap-less-and-sass-understanding-your-options-for-rails-3-1/我在第一部分或第二部分获得了说明Twitter Bootstrap Basics – Leahcim 2012-08-05 19:53:33

回答

1

当您使用教程编写,Twitter的引导是在version 1.4和GitHub的项目用于包括项目的编译版本,并且包括bootstrap.css文件,您正期待。

自推出version 2.0,仓库不再包括该项目的编译版本,因此不包括bootstrap.css,直到你自己编译。您应该遵循README.md中提供的说明或网站上的说明Compiling Bootstrap

您至少需要NodeJS较少包。

如果使用make文件,你还需要节点包jshint凹槽,并丑化-JS


你的另一种方法是刚刚download the compiled files,而不是源代码。

+0

谢谢,我不知道编译。我从来没有做过。 – Leahcim 2012-08-05 19:53:57