简单的记录本身如何在实际工做中使用gulp和sass的。个人原则是,小而美! css
什么是gulp?和Grunt同样,是一种任务管理工具;和Grunt又不同,gulp是一种基于流的,代码优于配置的新一代构建工具。node
Gulp 和 Grunt 相似,但相比于Grunt的频繁的IO操做,Gulp的流操做,能更快地完成构建。git
Sass是"Syntactically Awesome StyleSheets"的简称。如同less,stylus同样,是“CSS预处理器”中的一种,你能够称其是工具或者是语言。在我看来,sass除了不够小而美之外,确实是很强大的。Sass官网上是这么来描述的:github
Sass is an extension of CSS that adds power and elegance to the basic language. It allows you to use variables, nested rules, mixins, inline imports, and more, all with a fully CSS-compatible syntax. Sass helps keep large stylesheets well-organized, and get small stylesheets up and running quickly, particularly with the help of the Compass style library.npm
本身上网谷歌或者百度去!gulp
经过gulp作了以下任务:浏览器
首先,确保已经安装nodejs(nodejs如何安装?O(∩_∩)O~呵呵)。sass
npm install gulp -g
git clone https://github.com/myqianlan/f2e-workflow.git
cd f2e-workflow npm install
运行bash
```bash gulp help ```
我知道这个流程不够强大,但倒是最适合个人。期间,我也折腾过各类高大上的流程,但统统都不了了之。因此,大道至简。服务器