Wanting to start delving into SASS, CoffeeScript, HAML, etc. to learn the new techniques and have heard of people using them with Drupal. Anyone out there that has used them (either development or production), I have a few questions:

- Are you running all Ruby on local development machines, compiling and serving static resources to production servers? If so, is MAMP (or MAMP Pro) a satisfactory way to do that? I've seen tools like LiveReload on Mac that seem to indicate working locally is the best way to go.

- If dealing with clients that cannot run Ruby on their servers, will developing locally work?

- Any issues you may have run into with conflicts between Ruby and Drupal?

Trying to find ways to streamline my development processes and SASS could definitely prove useful with mixins, variables, etc. - looking for some direction on the best way to use these languages.

Any insight would be greatly appreciated!

Thanks,
Matt

Comments

Mazer.Rackham’s picture

I just finished installing Ruby, Ruby Gems, Compass & SASS along side my D7 install. No problems so far.

There is LOTS of insight on the subject located here,
http://drupal.org/node/1310698#comment-5120568 <--- Should answer all your questions.

and here,
http://thejibe.com/blog/11/1/getting-started-basic-sass-and-compass-drupal

and just in case you haven't already read this,
http://drupal.org/node/1229624

I would suggest reading the entire pages/threads, then posting back if you have any further questions. That should answer everything.

If you've come back and you're still like WTFMATEOMGBBQ,

You have two options,
Option 1,
http://drupal.org/project/compass
and install Ruby + SASS + COMPASS + HAML on your prod/dev machine

Option 2,
http://drupal.org/project/sassy
Set it and forget it.

Basically. Yes, you can work locally and serve your clients the "compiled" CSS. They do not "need" ruby.

My production machine is my development machine, which is my desktop, which is in my home network. I wouldn't be able to tell you what performance is like if it weren't my own box. That's why I'm the Sysadmin/Webmaster. I can tell you that your best bet is getting rid of samba/FTP entirely and going for NFS v4 + Kerberos authentication + LDAP for performance purposes, so even if you are forced to develop on your prod machine it is like you are developing locally because there is virtually no speed loss whatsoever.

tsi’s picture

Check out Sasson, you're gonna love it ! no extra requirements, simply enable and start writing sass/scss.

Tsachi Shlidor (@shlidor)