Commit c5fa4848 by Andrew Nesbitt

Swap from colors to chalk

Closes #174
parent f9b73113
var sass = require('../sass'), var sass = require('../sass'),
colors = require('colors'), chalk = require('chalk'),
fs = require('fs'); fs = require('fs');
function render(options, emitter) { function render(options, emitter) {
...@@ -11,11 +11,11 @@ function render(options, emitter) { ...@@ -11,11 +11,11 @@ function render(options, emitter) {
sourceComments: options.sourceComments, sourceComments: options.sourceComments,
success: function(css) { success: function(css) {
emitter.emit('warn', 'Rendering Complete, saving .css file...'.green); emitter.emit('warn', chalk.green('Rendering Complete, saving .css file...'));
fs.writeFile(options.outFile, css, function(err) { fs.writeFile(options.outFile, css, function(err) {
if (err) { return emitter.emit('error', ('Error: ' + err).red); } if (err) { return emitter.emit('error', chalk.red('Error: ' + err)); }
emitter.emit('warn', ('Wrote CSS to ' + options.outFile).green); emitter.emit('warn', chalk.green('Wrote CSS to ' + options.outFile));
emitter.emit('write', err, options.outFile, css); emitter.emit('write', err, options.outFile, css);
}); });
......
...@@ -37,9 +37,9 @@ ...@@ -37,9 +37,9 @@
}, },
"dependencies": { "dependencies": {
"mkdirp": "0.3.x", "mkdirp": "0.3.x",
"colors": "0.6.0-1",
"optimist": "0.6.x", "optimist": "0.6.x",
"node-watch": "0.3.x", "node-watch": "0.3.x",
"mocha": "1.13.x" "mocha": "1.13.x",
"chalk": "~0.3.0"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment