Commit 4e3c6187 by Dean Mao

make package.json OCD complaint

parent e63b9d44
......@@ -52,7 +52,7 @@ The API for using node-sass has changed, so that now there is only one variable
[Important: currently the argument `outputStyle` has some problem which may cause the output css becomes nothing because of the libsass, so you should not use it now!]
#### 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'`.
`sourceComments` is a `String` to determine what debug information is included in the output file. Its value should be one of `'none', 'normal'`. The default is `'none'`.
[Important: `souceComments` is only supported when using the `file` option, and does nothing when using `data` flag.]
### Examples
......@@ -92,13 +92,18 @@ var server = connect.createServer(
, dest: __dirname + '/public'
, debug: true
, outputStyle: 'compressed'
, prefix: '/prefix'
}),
connect.static(__dirname + '/public')
connect.static('/prefix', __dirname + '/public')
);
```
Heavily inspired by <https://github.com/LearnBoost/stylus>
## DocPad Plugin
[@jking90](https://github.com/jking90) wrote a [DocPad](http://docpad.org/) plugin that compiles `.scss` files using node-sass: <https://github.com/jking90/docpad-plugin-nodesass>
## Grunt extension
[@sindresorhus](https://github.com/sindresorhus/) has created a set of grunt tasks based on node-sass: <https://github.com/sindresorhus/grunt-sass>
......@@ -141,6 +146,14 @@ Output will be saved with the same name as input SASS file into the current work
--include-path Path to look for @import-ed files [default: cwd]
--help, -h Print usage info
## Post-install Build
Install runs a series of Mocha tests to see if your machine can use the pre-built `libsass` which will save some time during install. If any tests fail it will build from source.
If you know the pre-built version will work and do not want to wait for the tests to run you can skip the tests by setting the environment variable `SKIP_NODE_SASS_TESTS` to true.
SKIP_NODE_SASS_TESTS=true npm install
## Contributors
Special thanks to the following people for submitting patches:
......@@ -148,6 +161,7 @@ Dean Mao
Brett Wilkins
litek
gonghao
Dylan Greene
### Note on Patches/Pull Requests
......
......@@ -24,9 +24,9 @@
'libsass/prelexer.cpp',
'libsass/sass.cpp',
'libsass/sass_interface.cpp',
'libsass/source_map.cpp',
'libsass/to_c.cpp',
'libsass/to_string.cpp',
'libsass/source_map.cpp',
'libsass/units.cpp'
],
'cflags!' : [ '-fno-exceptions' ],
......
......@@ -2,7 +2,7 @@
"author": "Andrew Nesbitt <andrewnez@gmail.com> (http://andrew.github.com)",
"name": "node-sass",
"description": "wrapper around libsass",
"version": "0.5.4",
"version": "0.7.0",
"homepage": "https://github.com/andrew/node-sass",
"keywords": [
"sass",
......@@ -24,8 +24,9 @@
"url": "git://github.com/andrew/node-sass.git"
},
"scripts": {
"install": "node rebuild.js",
"test": "mocha test"
"install": "node build.js",
"test": "mocha test",
"prepublish": "bash scripts/prepublish.sh"
},
"bin": {
"node-sass": "bin/node-sass"
......@@ -36,10 +37,10 @@
},
"dependencies": {
"mkdirp": "0.3.x",
"colors": "0.6.0-1",
"optimist": "0.4.x"
},
"devDependencies": {
"mocha": "1.7.x"
"optimist": "0.6.x",
"node-watch": "0.3.x",
"mocha": "1.13.x",
"chalk": "~0.3.0",
"nan": "~0.6.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