-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
It would be great to see some tests for this. |
Cool, will do. Just wanted to see if you were open to adding this first
|
I've added tests and docs. Also, I moved I've added code to |
Mocha shouldn't be in devDependencies because it is used to test that the pre-built binaries work upon install. See build.js. Could you change it back please? |
A couple of notes about the actual PR though: The tests actually write to the filesystem - to me this is a nono, we should stub the fs.* commands. Say for example adding Sinon and Having said that - I'd like @andrew's opinion on this matter, especially as adding Sinon or similar will add a new dependency. So don't rush to add this until he's made his say. |
Yeah that's the reason I didn't add it. Will wait for his thoughts. I'll |
I'd like to add a +1 for Sinon stubs cc/ @andrew |
This is already be done through the CLI, any reason why this should be in the API? |
Tools such as grunt-sass and broccoli-sass need to generate source maps and |
@keithamus @aexmachina I don't mind adding another dependency, Sinon sounds like a good idea. @nschonni I don't see why this shouldn't be available as an API as it could be helpful for things like #245 |
All done. |
Looks good, I suspect the next release will be in a few weeks after I've got married. |
@aexmachina this broke the tests on master, can you take a look? https://travis-ci.org/andrew/node-sass/jobs/23110757 |
Yep, was a simple fix. Have pushed, do you want me to create another PR? |
Yes please |
Cool, have done. |
I just released this as part of v0.8.5: https://github.com/andrew/node-sass/releases/tag/v0.8.5 |
Handles writing the CSS and sourceMap to disk. Let me know if you like this and I'll add the docs and tests.