carlcalderon/Rocket — pull request #1 by MatthewWagerfield (2012-06-16 15:39:22+00:00)
Title: Updated README and added support for SCSS & SASS

Hey Dude,

I've been hard at work on refining Rocket today and have gone over the README with a fine tooth-comb with the focus on concision. I have reworded and restructured sections of the README to only say what is necessary and make it quicker and easier to read.

Alongside this, I have added support for SCSS and SASS and have tested them both and they seem to be working at a basic level.

However, I have noticed that @import statements do not work for LESS, SCSS or SASS. Although I know I could shift all my styling files into the configuration file, I like to declare them all in a 'root' styles.less/scss/sass file like so:

```css
// Core
@import 'core/reset';
@import 'core/print';

// Mixins
@import 'mixins/css3';
@import 'mixins/helpers';

// Project
@import 'project/global';
@import 'project/display';
```

If I do this and reference this single styles file, I get an error from Rocket saying:

ERR! FileError: 'core/reset' wasn't found. in /tmp/styles.less:

I have had a dig into the source code and can see that you are creating a temporary file in a tmp folder - and here lies the problem. The LESS/SCSS/SASS executables are looking for the referenced files in these import statements, but cannot find them since they are not being copied into the tmp directory. I'm sure you can fix this relatively quickly, but as a suggestion I would create the temporary file alongside the referenced input file so that the paths remain intact and then move it after parsing the file.

All in all, looking awesome man - very excited about using this for all projects moving forwards!