node-sass
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -84,4 +84,4 @@ var watch = require('node-watch'), | ||
// make sure it's an array | ||
options.includePaths = argv['include-paths']; | ||
// make sure it's an array. | ||
options.includePaths = argv['include-path']; | ||
if (!Array.isArray(options.includePaths)) { | ||
@@ -108,7 +108,7 @@ options.includePaths = [options.includePaths]; | ||
if (watchDir === true) { | ||
watchDir = [] | ||
watchDir = []; | ||
} else if (!Array.isArray(watchDir)) { | ||
watchDir = [watchDir]; | ||
} | ||
watchDir.push(inFile) | ||
watchDir.push(inFile); | ||
@@ -115,0 +115,0 @@ var throttledRender = throttle(render, options, emitter); |
@@ -5,3 +5,3 @@ { | ||
"description": "wrapper around libsass", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"homepage": "https://github.com/andrew/node-sass", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
@@ -63,7 +63,11 @@ var path = require('path'), | ||
it('should compile with --include-paths option', function(done){ | ||
var emitter = cli(['--include-paths', __dirname + '/lib', __dirname + '/include_path.scss']); | ||
it('should compile with --include-path option', function(done){ | ||
var emitter = cli([ | ||
'--include-path', __dirname + '/lib', | ||
'--include-path', __dirname + '/functions', | ||
__dirname + '/include_path.scss' | ||
]); | ||
emitter.on('error', done); | ||
emitter.on('render', function(css){ | ||
assert.equal(css.trim(), 'body {\n background: red; }'); | ||
assert.equal(css.trim(), 'body {\n background: red;\n color: blue; }'); | ||
fs.unlink(process.cwd() + '/include_path.css', done); | ||
@@ -70,0 +74,0 @@ }); |
@@ -112,5 +112,5 @@ /*jshint multistr:true */ | ||
file: path.resolve(__dirname, "include_path.scss"), | ||
includePaths: [path.resolve(__dirname, "lib")], | ||
includePaths: [path.resolve(__dirname, "lib"), path.resolve(__dirname, "functions")], | ||
success: function (css) { | ||
done(assert.equal(css, "body {\n background: red; }\n")); | ||
done(assert.equal(css, "body {\n background: red;\n color: blue; }\n")); | ||
}, | ||
@@ -117,0 +117,0 @@ error: function (error) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23388887
844
20185