node-sass
Advanced tools
Comparing version 0.5.4 to 0.6.0
@@ -5,3 +5,3 @@ { | ||
"description": "wrapper around libsass", | ||
"version": "0.5.4", | ||
"version": "0.6.0", | ||
"homepage": "https://github.com/andrew/node-sass", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
var spawn = require('child_process').spawn; | ||
if (process.platform === 'darwin') { | ||
// Only rebuild the binaries if on Mac OS or Linux, as we're assuming that | ||
// the toolchain exists. This is here to not rebuild on windows, as that | ||
// had issues as of https://github.com/andrew/node-sass/issues/123 | ||
if (process.platform === 'darwin' || process.platform === 'linux') { | ||
spawn('node-gyp', ['rebuild']); | ||
} |
@@ -33,6 +33,6 @@ var binding; | ||
var paths, style; | ||
options = typeof options !== 'object' ? {} : options; | ||
paths = options.include_paths || options.includePaths || []; | ||
style = SASS_OUTPUT_STYLE[options.output_style || options.outputStyle] || 0; | ||
comments = SASS_SOURCE_COMMENTS[options.source_comments || options.sourceComments] || 0; | ||
var options = typeof options !== 'object' ? {} : options; | ||
var paths = options.include_paths || options.includePaths || []; | ||
var style = SASS_OUTPUT_STYLE[options.output_style || options.outputStyle] || 0; | ||
var comments = SASS_SOURCE_COMMENTS[options.source_comments || options.sourceComments] || 0; | ||
@@ -39,0 +39,0 @@ return { |
@@ -1,19 +0,19 @@ | ||
var util = require('util'); | ||
var sass = require('../sass'); | ||
var fs = require('fs'); | ||
var bigScssStr = fs.readFileSync(require('path').resolve(__dirname,'large_test.scss')); | ||
var numTestCases = 1000; | ||
var numCompiled = 0; | ||
console.log(util.inspect(process.memoryUsage())); | ||
for (var i = 0; i < numTestCases; i++) { | ||
sass.render({ | ||
data: bigScssStr, | ||
success: function() { | ||
numCompiled++; | ||
if (numCompiled === numTestCases) { | ||
console.log(util.inspect(process.memoryUsage())); | ||
} | ||
} | ||
}); | ||
} | ||
// var util = require('util'); | ||
// var sass = require('../sass'); | ||
// var fs = require('fs'); | ||
// | ||
// var bigScssStr = fs.readFileSync(require('path').resolve(__dirname,'large_test.scss')); | ||
// var numTestCases = 1000; | ||
// var numCompiled = 0; | ||
// console.log(util.inspect(process.memoryUsage())); | ||
// for (var i = 0; i < numTestCases; i++) { | ||
// sass.render({ | ||
// data: bigScssStr, | ||
// success: function() { | ||
// numCompiled++; | ||
// if (numCompiled === numTestCases) { | ||
// console.log(util.inspect(process.memoryUsage())); | ||
// } | ||
// } | ||
// }); | ||
// } |
@@ -1,12 +0,12 @@ | ||
var util = require('util'); | ||
var sass = require('../sass'); | ||
var fs = require('fs'); | ||
var bigScssStr = fs.readFileSync(require('path').resolve(__dirname,'./large_test.scss')); | ||
var numTestCases = 1000; | ||
var numCompiled = 0; | ||
console.log(util.inspect(process.memoryUsage())); | ||
for (var i = 0; i < numTestCases; i++) { | ||
sass.renderSync({data: bigScssStr}); | ||
} | ||
console.log(util.inspect(process.memoryUsage())); | ||
// var util = require('util'); | ||
// var sass = require('../sass'); | ||
// var fs = require('fs'); | ||
// | ||
// var bigScssStr = fs.readFileSync(require('path').resolve(__dirname,'./large_test.scss')); | ||
// var numTestCases = 1000; | ||
// var numCompiled = 0; | ||
// console.log(util.inspect(process.memoryUsage())); | ||
// for (var i = 0; i < numTestCases; i++) { | ||
// sass.renderSync({data: bigScssStr}); | ||
// } | ||
// console.log(util.inspect(process.memoryUsage())); |
@@ -68,14 +68,2 @@ /*jshint multistr:true */ | ||
}); | ||
it("should compile with render and source map outputs", function(done) { | ||
sass.render({ | ||
file: sampleFilename, | ||
source_comments: 'map', | ||
success: function (css) { | ||
done(assert.equal(css, expectedDebugScssStr)); | ||
}, | ||
error: function (error) { | ||
done(error); | ||
} | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances 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
10123926
325
6
5
70
548