-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulp-setup.txt
35 lines (27 loc) · 1.06 KB
/
gulp-setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
1. install gulp global
$npm install gulp -g
2. install gulp dev project
$npm install gulp --save-dev
3. install gulp plugin
Sass compile (gulp-ruby-sass)
Autoprefixer (gulp-autoprefixer)
Minify CSS (gulp-minify-css)
JSHint (gulp-jshint)
Concatenation (gulp-concat)
Uglify (gulp-uglify)
Compress images (gulp-imagemin)
LiveReload (gulp-livereload, requires tiny-lr)
Clean files for a clean build (gulp-clean)
Caching of images so only changed images are compressed (gulp-cache)
Notify of changes (gulp-notify)
Minify html (gulp-minify-html)
Gulp Watch (gulp-watch)
Gulp Connect Livereload (connect-livereload)
$npm install gulp-ruby-sass gulp-autoprefixer gulp-minify-css gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-clean gulp-notify gulp-rename gulp-livereload tiny-lr gulp-cache gulp-minify-html gulp-watch connect-livereload --save-dev
4. Optional for Angular project - install gulp-ng-html2js
npm install gulp-ng-html2js
//optional for windows - required ruby & ruby sass
//ruby install x86 version
http://rubyinstaller.org/downloads/
//install sass
gem install sass