Use SASS with Lineman without Ruby

If you are using linemanjs for your frontend (ember/angular) development and want to use SASS, you will find that there is a dependency on Ruby and Compass to get SASS working. If you don’t have the dependencies, you will see an error like this:

Running "sass:compile" (sass) task
Warning: You need to have Ruby and Sass installed and in your PATH for
this task to work. More info: Used --force, continuing.

Luckily, there is an easy fix. Open up the config\application.js (or .coffee) file and add these 2 lines:

enableSass: false,
loadNpmTasks: lineman.config.application.loadNpmTasks.concat("grunt-sass")

Finally, make sure you install grunt-sass as a dependency with this command:

npm install grunt-sass --save-dev

That’s it. Pretty straightforward.