Socket
Socket
Sign inDemoInstall

node-sass

Package Overview
Dependencies
Maintainers
2
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sass - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

test/cli.js

2

package.json

@@ -5,3 +5,3 @@ {

"description": "wrapper around libsass",
"version": "0.5.2",
"version": "0.5.3",
"homepage": "https://github.com/andrew/node-sass",

@@ -8,0 +8,0 @@ "keywords": [

@@ -54,2 +54,6 @@ ##node-sass

#### sourceComments
`sourceComments` is a `String` to determine what debug information is included in the output file. Its value should be one of `'none', 'normal', 'map'`. The default is `'none'`.
[Important: `souceComments` is only supported when using the `file` option, and does nothing when using `data` flag.]
### Examples

@@ -124,3 +128,3 @@

cp build/Release/binding.node precompiled/*your-platform*/binding.node
## Command Line Interface

@@ -130,5 +134,14 @@

Output will be saved with the same name as input SASS file into the current working directory if it's omitted.
### Usage
`node-sass [input.scss] [output.css]`
`node-sass [options] <input.scss> [<output.css>]`
**Options:**
--output-style CSS output style (nested|expanded|compact|compressed) [default: "nested"]
--source-comments Include debug info in output (none|normal|map) [default: "none"]
--include-path Path to look for @import-ed files [default: cwd]
--help, -h Print usage info
## Contributors

@@ -135,0 +148,0 @@ Special thanks to the following people for submitting patches:

var spawn = require('child_process').spawn;
if (process.platform === 'darwin') {
spawn('node-gyp', ['rebuild']);
}
spawn('node-gyp', ['rebuild']);

@@ -24,2 +24,9 @@ var binding;

var SASS_SOURCE_COMMENTS = {
none: 0,
// This is called default in libsass, but is a reserved keyword here
normal: 1,
map: 2
};
var prepareOptions = function(options) {

@@ -30,12 +37,14 @@ var paths, style;

style = SASS_OUTPUT_STYLE[options.output_style || options.outputStyle] || 0;
comments = SASS_SOURCE_COMMENTS[options.source_comments || options.sourceComments] || 0;
return {
paths: paths,
style: style
style: style,
comments: comments
};
}
};
var deprecatedRender = function(css, callback, options) {
options = prepareOptions(options);
return binding.oldRender(css, callback, options.paths.join(':'), options.style);
return binding.oldRender(css, callback, options.paths.join(':'), options.style, options.comments);
};

@@ -45,3 +54,3 @@

options = prepareOptions(options);
return binding.renderSync(css, options.paths.join(':'), options.style);
return binding.renderSync(css, options.paths.join(':'), options.style, options.comments);
};

@@ -60,3 +69,3 @@

if (options.file !== undefined && options.file !== null) {
return binding.renderFile(options.file, options.success, options.error, newOptions.paths.join(':'), newOptions.style);
return binding.renderFile(options.file, options.success, options.error, newOptions.paths.join(':'), newOptions.style, newOptions.comments);
}

@@ -78,3 +87,3 @@

if (options.file !== undefined && options.file !== null) {
return binding.renderFileSync(options.file, newOptions.paths.join(':'), newOptions.style);
return binding.renderFileSync(options.file, newOptions.paths.join(':'), newOptions.style, newOptions.comments);
}

@@ -81,0 +90,0 @@

@@ -0,4 +1,7 @@

/*jshint multistr:true */
var sass = require('../sass');
var assert = require('assert');
var badSampleFilename = 'sample.scss';
var sampleFilename = require('path').resolve(__dirname, 'sample.scss');

@@ -36,6 +39,2 @@ var scssStr = '#navbar {\

var badSampleFilename = 'sample.scss';
var sampleFilename = require('path').resolve(__dirname, 'sample.scss');
describe("DEPRECATED: compile scss", function() {

@@ -115,3 +114,3 @@ it("should compile with render", function(done) {

success: function (css) {
done(assert.ok(css));
done(assert.equal(css, expectedRender));
},

@@ -118,0 +117,0 @@ error: function (error) {

@@ -7,2 +7,11 @@ sudo apt-get update

git clone git@github.com:andrew/node-sass.git
cd node-sass
npm install
sudo npm install -g node-gyp
git submodule init && git submodule update
node-gyp rebuild
cp build/Release/binding.node precompiled/linux-ia32/binding.node
vi ~/.gitconfig

@@ -17,20 +26,5 @@

git clone git@github.com:andrew/node-sass.git
sudo npm install -g node-gyp
---
cd node-sass
git pull --rebase
npm install
git submodule init && git submodule update
node-gyp rebuild
cp build/Release/binding.node precompiled/linux-ia32/binding.node
cp build/Release/binding.node precompiled/linux-x64/binding.node
git add .
git commit -am 'updated linux-ia32 binary'
git commit -am 'updated linux-x64 binary'
git push

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc