hi there,
I’ve purchased all of your available screencasts and have a question about adding compass to my gulpfile.js.
I need to add the following code in order to compile the compass written in my sass files. I’ve tried copying it directly into my gulpfile.js. However, I’m fairly certain it needs to be hooked in somehow…just don’t know how to go about doing so…as I’m somewhat of a novice programmer.
This requires gulp-ruby-sass to be installed so npm install --save gulp-ruby-sass. You also have to bring your own config.rb and install compass on your machine.
@austin - Thank you for the speedy response! However, whatever reason I wasn’t able to make your solution work. I spent a few hours trying last night with no success. Maybe I was putting the config.rb in the incorrect directory or possibly I didn’t have my paths set correctly in it or maybe I didn’t initialize a compass project correctly. Either way, I wasn’t able to get it working but thank you again for sharing.
@drew - your solution WORKED PERFECTLY! It was exactly what I was looking for and doing so without sacrificing speed. Also, would you mind sharing how you added suzy to your gulpfile.js? Currently , I’m using Bootstrap for my grid system. However, it just doesn’t feel right having my styling mixed in with my content.
Hi @deschet glad you found this useful. Sage is a great starter theme and I hate bloating it down with extra styling and grid provision I’ll never use, so compass and suzy logic for a big part of what we use here day to day.
Installing suzy is just as simple thanks to npm
npm install susy --save-dev
Then you just need to add in an additional dependancy to your scss pipe
'./node_modules/susy/sass'
And as before reference susy at the top of your sass stylesheet @import “susy”;
One tiny proviso when using suzy is that node sass can’t currently process fractions in the following format 1/3 so in order to get things building you’ll need to set your susy defaults with fractions in a decimal format IE
@austin I tried your solution, but I got "Error: Invalid call to lazypipe().pipe(): no stream creation function specified"
I also tried your complete gulpfile.js with all requirements - same output. Any idea?