Bootstrap编译LESS

来源:互联网 发布:微课录屏软件免费下载 编辑:程序博客网 时间:2024/05/15 15:15

首先下载bootstrap的最新的完整开发包,(是带less文件的包,不是已经编译好的css包)

为了运行bootstrap的make程序,需要安装以下的内容

(1)node 和 npm

node是什么,请参考文章 http://www.ibm.com/developerworks/cn/opensource/os-nodejs/

npm就是Node Package Manager

安装node 和nmp

       (a)下载node  wget http://nodejs.org/dist/v0.8.1/node-v0.8.1.tar.gz

       (b)解压后执行三板斧  ./configure; 注意编译文件依赖于python环境,并且要求是2.6以上版本,要不然会报错

        (c)make && make install

(2)jshit   jshint是一个js的错误检查工具

JSHint is a community-riven tool to detect errors and potential problems in JavaScript code and to enforce your team's coding conventions.

安装方法: npm install -g jshint  

(3)recess

安装方法:npm install -g recess

(4)less

安装方法:npm install -g less

(5)uglifyjs

安装方法:npm install uglify-js


此时,在bootstrap目录下运行make命令

##################################################

Building Bootstrap...

##################################################\n

Running JSHint on javascript...             \033[32m?\033[39m Done

path.existsSync is now called `fs.existsSync`.

path.existsSync is now called `fs.existsSync`.

Compiling LESS with Recess...               \033[32m?\033[39m Done

Compiling documentation...                  \033[32m?\033[39m Done

Compiling and minifying javascript...       \033[32m?\033[39m Done

\n##################################################

Bootstrap successfully built at 04:12下午.

##################################################\n

Thanks for using Bootstrap,

编译成功!

===============================================

原创粉丝点击