- Go to: http://rubyinstaller.org/
- Click download and load Ruby 1.9.3.(http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.9.3-p545.exe?direct)
- By default it will install on your c:\… drive (don’t change any default location or whatsoever and please make sure that you don’t have any space in the path.)
- Set your PATH variable that includes your ruby installation location. Now you should be able to run gem evn in your command prompt ( you probably better run command prompt under administrator)
- From the command prompt run gem install sass
Now you need to install bundler run gem install bundler
If you find this error on gem installation:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: No such host is known. (http://rubygems.org/latest_specs.4.8.gz)
Then probably you need to look at your proxy setting. If you don't want to enforce any proxy then run this command, which will empty any proxy settings: gem install sass -p
If you want gem to use any specific proxy then run this: gem install sass -p http://myproxy.com
After following this steps, you should be able to run Gulp task for SaSS from windows machine.
What is Gulp?
- minimise files size
- watch file changes and automate the deployment
What is the major difference between Grunt and Gulp?
- Grunt plug-ins often perform multiple tasks where as Gulp plug-ins are designed to do one thing only; it is clean and neat.
- Grunt requires plug-ins for basic functionality such as file watching; Gulp has them built-in.
How to use Gulp?
I have recorded a video about that explains you about:
- How to Install Gulp
- How to Install Gulp Plugins
- How to find Plugins
- How to define Gulp tasks
- How to execute bunch of tasks
- How to watch changes in static resources and execute tasks automatically.