node-sass
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -48,3 +48,3 @@ #!/usr/bin/env node | ||
console.log('Problem with the binary; manual build incoming'); | ||
console.log('Please consider contributing the release binary to https://github.com/andrew/node-sass-binaries for npm distribution.'); | ||
console.log('Please consider contributing the release binary to https://github.com/sass/node-sass-binaries for npm distribution.'); | ||
build(); | ||
@@ -51,0 +51,0 @@ } else { |
@@ -16,4 +16,4 @@ ## Contributing | ||
If this project is missing an API or command line flag that has been added to [libsass], then please open an issue here. We will then look at updating our [libsass] submodule and create a new release. You can help us create the new release by rebuilding binaries, and then creating a pull request to the [node-sass-binaries](https://github.com/andrew/node-sass-binaries) repo. | ||
If this project is missing an API or command line flag that has been added to [libsass], then please open an issue here. We will then look at updating our [libsass] submodule and create a new release. You can help us create the new release by rebuilding binaries, and then creating a pull request to the [node-sass-binaries](https://github.com/sass/node-sass-binaries) repo. | ||
[libsass]: https://github.com/hcatlin/libsass |
@@ -28,2 +28,6 @@ var watch = require('node-watch'), | ||
}) | ||
.options('precision', { | ||
describe: 'The amount of precision allowed in decimal numbers', | ||
'default': 5 | ||
}) | ||
.options('watch', { | ||
@@ -135,2 +139,4 @@ describe: 'Watch a directory or file', | ||
options.precision = argv.precision; | ||
if (argv.w) { | ||
@@ -137,0 +143,0 @@ |
@@ -14,2 +14,3 @@ var sass = require('../sass'), | ||
sourceMap: options.sourceMap, | ||
precision: options.precision, | ||
success: function(css, sourceMap) { | ||
@@ -16,0 +17,0 @@ |
@@ -8,3 +8,3 @@ Libsass | ||
http://github.com/hcatlin/libsass | ||
http://github.com/sass/libsass | ||
@@ -11,0 +11,0 @@ Libsass is just a library, but if you want to RUN libsass, |
@@ -6,3 +6,4 @@ sass2scss | ||
C++ port of https://github.com/mgreter/OCBNET-CSS3/blob/master/bin/sass2scss. | ||
C++ port of https://github.com/mgreter/OCBNET-CSS3/blob/master/bin/sass2scss. | ||
This implementation is currently far ahead of the previous perl implementation! | ||
@@ -14,3 +15,9 @@ Converts old indented sass syntax to newer scss syntax. My C++ is very rusty so it may | ||
Added some unit tests for sass2scss to https://github.com/mgreter/CSS-Sass. | ||
This may hopefully will get integrated to https://github.com/hcatlin/libsass. | ||
-> https://github.com/hcatlin/libsass/pull/181 | ||
-> https://github.com/hcatlin/libsass/issues/16 | ||
Options | ||
@@ -17,0 +24,0 @@ ======= |
@@ -5,4 +5,4 @@ { | ||
"description": "wrapper around libsass", | ||
"version": "0.9.2", | ||
"homepage": "https://github.com/andrew/node-sass", | ||
"version": "0.9.3", | ||
"homepage": "https://github.com/sass/node-sass", | ||
"keywords": [ | ||
@@ -14,3 +14,3 @@ "sass", | ||
"bugs": { | ||
"url": "https://github.com/andrew/node-sass/issues" | ||
"url": "https://github.com/sass/node-sass/issues" | ||
}, | ||
@@ -20,3 +20,3 @@ "licenses": [ | ||
"type": "MIT", | ||
"url": "https://github.com/andrew/node-sass/blob/master/LICENSE" | ||
"url": "https://github.com/sass/node-sass/blob/master/LICENSE" | ||
} | ||
@@ -27,3 +27,3 @@ ], | ||
"type": "git", | ||
"url": "git://github.com/andrew/node-sass.git" | ||
"url": "git://github.com/sass/node-sass.git" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
# node-sass | ||
![logo](https://rawgit.com/andrew/node-sass/master/media/logo.svg) | ||
![logo](https://rawgit.com/sass/node-sass/master/media/logo.svg) | ||
[![Build Status](https://travis-ci.org/andrew/node-sass.svg?branch=master&style=flat)](https://travis-ci.org/andrew/node-sass) | ||
[![Build Status](https://travis-ci.org/sass/node-sass.svg?branch=master&style=flat)](https://travis-ci.org/sass/node-sass) | ||
[![npm version](https://badge.fury.io/js/node-sass.svg)](http://badge.fury.io/js/node-sass) | ||
[![Dependency Status](https://david-dm.org/andrew/node-sass.svg?theme=shields.io)](https://david-dm.org/andrew/node-sass) | ||
[![devDependency Status](https://david-dm.org/andrew/node-sass/dev-status.svg?theme=shields.io)](https://david-dm.org/andrew/node-sass#info=devDependencies) | ||
[![Coverage Status](http://img.shields.io/coveralls/andrew/node-sass.svg)](https://coveralls.io/r/andrew/node-sass) | ||
[![Gitter chat](https://badges.gitter.im/andrew/node-sass.png)](https://gitter.im/andrew/node-sass) | ||
[![Dependency Status](https://david-dm.org/sass/node-sass.svg?theme=shields.io)](https://david-dm.org/sass/node-sass) | ||
[![devDependency Status](https://david-dm.org/sass/node-sass/dev-status.svg?theme=shields.io)](https://david-dm.org/sass/node-sass#info=devDependencies) | ||
[![Coverage Status](http://img.shields.io/coveralls/sass/node-sass.svg)](https://coveralls.io/r/sass/node-sass) | ||
[![Gitter chat](https://badges.gitter.im/sass/node-sass.png)](https://gitter.im/sass/node-sass) | ||
@@ -28,3 +28,3 @@ Node-sass is a library that provides binding for Node.js to [libsass], the C version of the popular stylesheet preprocessor, Sass. | ||
If this project is missing an API or command line flag that has been added to [libsass], then please open an issue here. We will then look at updating our [libsass] submodule and create a new release. You can help us create the new release by rebuilding binaries, and then creating a pull request to the [node-sass-binaries](https://github.com/andrew/node-sass-binaries) repo. | ||
If this project is missing an API or command line flag that has been added to [libsass], then please open an issue here. We will then look at updating our [libsass] submodule and create a new release. You can help us create the new release by rebuilding binaries, and then creating a pull request to the [node-sass-binaries](https://github.com/sass/node-sass-binaries) repo. | ||
@@ -79,2 +79,5 @@ ## Install | ||
#### precision | ||
`precision` is a `Number` that will be used to determine how many digits after the decimal will be allowed. For instance, if you had a decimal number of `1.23456789` and a precision of `5`, the result will be `1.23457` in the final CSS. | ||
#### sourceComments | ||
@@ -204,3 +207,3 @@ `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'`. | ||
There is also an example connect app here: <https://github.com/andrew/node-sass-example> | ||
There is also an example connect app here: <https://github.com/sass/node-sass-example> | ||
@@ -213,6 +216,4 @@ ## Rebuilding binaries | ||
git clone https://github.com/andrew/node-sass.git | ||
git clone --recursive https://github.com/sass/node-sass.git | ||
cd node-sass | ||
git submodule init | ||
git submodule update | ||
npm install | ||
@@ -260,3 +261,3 @@ npm install -g node-gyp | ||
We <3 our contributors! A special thanks to all those who have clocked in some dev time on this project, we really appreciate your hard work. You can find [a full list of those people here.](https://github.com/andrew/node-sass/graphs/contributors) | ||
We <3 our contributors! A special thanks to all those who have clocked in some dev time on this project, we really appreciate your hard work. You can find [a full list of those people here.](https://github.com/sass/node-sass/graphs/contributors) | ||
@@ -273,4 +274,4 @@ ### Note on Patches/Pull Requests | ||
Copyright (c) 2013 Andrew Nesbitt. See [LICENSE](https://github.com/andrew/node-sass/blob/master/LICENSE) for details. | ||
Copyright (c) 2013 Andrew Nesbitt. See [LICENSE](https://github.com/sass/node-sass/blob/master/LICENSE) for details. | ||
[libsass]: https://github.com/hcatlin/libsass |
@@ -67,2 +67,3 @@ var path = require('path'); | ||
sourceMap: options.sourceMap, | ||
precision: parseInt(options.precision) || 5, | ||
success: function onSuccess(css, sourceMap) { | ||
@@ -69,0 +70,0 @@ finishStats(stats, sourceMap); |
@@ -264,1 +264,16 @@ var sass = process.env.NODESASS_COVERAGE ? require('../sass-coverage') : require('../sass'); | ||
}); | ||
describe('precision support', function() { | ||
it('should render when precision is specified', function(done) { | ||
sass.render({ | ||
data: '.test { margin: 1.23456789 px; }', | ||
precision: 10, | ||
success: function(css) { | ||
done(assert.equal(css, '.test {\n margin: 1.23456789 px; }\n')); | ||
}, | ||
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
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
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
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
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
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
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
Native code
Supply chain riskContains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs.
Found 1 instance in 1 package
272
1
10
3
5985173
149
1067