grunt: http://yujiangshui.com/grunt-basic-tutorial/
gulp安装 gulp入门应用http://www.jianshu.com/p/153adc209462
1.npm install gulp -g 全局安装gulp
2.创建项目文件 cd project(项目文件名称)
npm init
3.npm install gulp --save-dev
4.安装gulp插件
npm install gulp-ruby-sass gulp-autoprefixer gulp-minify-css gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del --save-dev
加载插件
接着我们要创建一个gulpfile.js在根目录下,然后在里面加载插件:
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
imagemin = require('gulp-imagemin'),
rename = require('gulp-rename'),
concat = require('gulp-concat'),
notify = require('gulp-notify'),
cache = require('gulp-cache'),
livereload = require('gulp-livereload'),
del = require('del');