Is this not a bad idea? I am in the middle of a project and it's my understanding you can't switch mid-stream. Do I have that wrong?

I'd like to use Grunt, but Zurb is not making it mandatory… why should this module?

Thanks for your great work on all this BTW.

-gripmedia

Comments

kevinquillen’s picture

You should be able to do it quite easily.

Install NodeJS and Grunt from the command line. If you have OSX, in terminal you would do:

brew install node
npm install -g grunt grunt-cli

Then, navigate to your subtheme in terminal, and type:

npm install
grunt

Grunt should then be watching and compiling any changes to CSS/SCSS that occur.

I am still working on documentation to get off the ground with the 5.x branch. Since it is alpha, there are rapid changes happening like this switch.

westwesterson’s picture

I've made the switch before, there are some gotchas here.

If you are using some compass specific things, you can still use grunt, but will want to use it with ruby sass, and not the newer libsass (which is super fast and totally worth it on a new project).

Grunt is super configurable, and can do pretty much anything (and more) than you were doing with compass, in fact grunt can run ruby and therefore it can compile sass with the compass library for you using ruby.

Bourbon is a more modern replacement for the compass library which currently does work with libsass, but you might have to redo some of your sass to get it to work with bourbon.

TL;DR; Grunt will work for you, but you might have to spend a bit of time configuring it to work with the libraries you were already using.

grip media’s picture

Thanks guys… I will obviously try it on a copy. @westwesterson: yes, I figured there would be some gotchas potentially, that's always the case right?

chrisjlee’s picture

Yeah it's not a bad idea. They're not coupled in Zurb foundation 5. Zurb foundation 5 uses grunt now.

kevinquillen’s picture

Status: Active » Closed (fixed)
grip media’s picture

As a follow up... I am now using Grunt and find it vastly superior to Compass in both ease of use and it's about 5x faster... So yes, this is the way to go.