linemanjs / lineman

Lineman helps you build fat-client JavaScript apps. It produces happiness by building assets, mocking servers, running specs on every file change
MIT License
1.18k stars 83 forks source link

Use sass/scss without ruby #304

Closed eibrahim closed 9 years ago

eibrahim commented 9 years ago

Anyway I can enable sass/scss without the ruby dependency? I prefer scss over less but don't want to force all my devs to install ruby and sass. I hate the ruby dependency!!!!

jasonkarns commented 9 years ago

You can add any grunt task to lineman that you wish. See Adding Tasks in the documentation.

So you can add the grunt-sass task (which uses libsass instead of ruby sass) yourself and avoid grunt-contrib-sass.

davemo commented 9 years ago

To add to this, lib-sass is so close to feature parity with ruby-sass, but it's not quite there yet. The big outlier is @extend which doesn't work properly in lib-sass. Believe me, I want to upgrade this ASAP because lib-sass is so much faster than ruby sass.

searls commented 9 years ago

Yeah, same. The good news is that unlike when this first came up 2 whole years ago the sass maintainers have gotten on board with libsass support, so at least I'm confident it will happen. It was looking unlikely at first.

searls commented 9 years ago

Oh, and broader context: we want to pull sass out of lineman core entirely. I think the go forward plan is:

  1. Extract sass stuff from lineman into lineman-ruby-sass
  2. implement lineman-sass on libsass

We could do 1 today in the same way we did lineman-less

jayharris commented 9 years ago

:+1:

eibrahim commented 9 years ago

@jasonkarns if I add a custom task to use grunt-sass do I need to disable the grunt-contrib-sass in lineman and if so how do I do that? Is it just setting enableSass to false in config/application.coffee?

eibrahim commented 9 years ago

@jasonkarns never mind. I figured it out and it works great and I blogged it at http://www.emadibrahim.com/2014/08/06/use-sass-with-lineman-without-ruby/

Thanks for all your help.

searls commented 9 years ago

Woot. Thanks for taking this intermediate step

On Wed, Aug 6, 2014 at 11:26 AM, eibrahim notifications@github.com wrote:

@jasonkarns never mind. I figured it out and it works great and I blogged it at http://www.emadibrahim.com/2014/08/06/use-sass-with-lineman-without-ruby/

Thanks for all your help.

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/304#issuecomment-51350642