Skip to content

Commit

Permalink
various tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 26, 2014
1 parent e6372e1 commit 3809d18
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 36 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Expand Up @@ -8,5 +8,9 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[package.json]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .gitattributes
@@ -1 +1 @@
* text=auto
* text eol=lf
6 changes: 2 additions & 4 deletions .jshintrc
@@ -1,20 +1,18 @@
{
"node": true,
"es5": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 4,
"latedef": true,
"newcap": true,
"noarg": true,
"quotmark": "single",
"regexp": true,
"undef": true,
"unused": true,
"unused": "vars",
"strict": true,
"trailing": true,
"smarttabs": true
Expand Down
2 changes: 1 addition & 1 deletion Gruntfile.js
Expand Up @@ -9,7 +9,7 @@ module.exports = function (grunt) {
},
includePaths: {
options: {
'includePaths': ['./test/fixtures']
includePaths: ['./test/fixtures']
},
files: {
'test/tmp/include-paths.css': 'test/fixtures/include-paths.scss'
Expand Down
23 changes: 10 additions & 13 deletions package.json
Expand Up @@ -9,34 +9,31 @@
"scss",
"style",
"compile",
"preprocess"
"preprocess",
"compile",
"libsass"
],
"homepage": "https://github.com/sindresorhus/grunt-sass",
"bugs": "https://github.com/sindresorhus/grunt-sass/issues",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/grunt-sass.git"
},
"repository": "sindresorhus/grunt-sass",
"scripts": {
"test": "grunt"
},
"dependencies": {
"node-sass": "~0.8.0",
"chalk": "~0.4.0",
"node-sass": "^0.8.0",
"chalk": "^0.4.0",
"each-async": "^0.1.2"
},
"devDependencies": {
"grunt": "~0.4.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-nodeunit": "~0.3.2"
"grunt": "^0.4.0",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-nodeunit": "^0.3.2"
},
"peerDependencies": {
"grunt": "~0.4.0"
"grunt": "^0.4.0"
},
"engines": {
"node": ">=0.10.0"
Expand Down
29 changes: 12 additions & 17 deletions readme.md
@@ -1,9 +1,9 @@
# grunt-sass [![Build Status](https://secure.travis-ci.org/sindresorhus/grunt-sass.png?branch=master)](http://travis-ci.org/sindresorhus/grunt-sass) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)
# grunt-sass [![Build Status](https://travis-ci.org/sindresorhus/grunt-sass.svg?branch=master)](https://travis-ci.org/sindresorhus/grunt-sass)

> Compile SCSS to CSS using [node-sass](https://github.com/andrew/node-sass)
**Bugs with the output should be submitted on the [libsass](https://github.com/hcatlin/libsass) repo which is the actual compiler.
Make sure to review its issue tracker for known bugs before using this task as it can bite you later on.**
**Bugs with the output should be submitted on the [libsass](https://github.com/hcatlin/libsass) repo which is the actual compiler.**
Make sure to review its issue tracker for known bugs before using this task as it can bite you later on.


## Overview
Expand All @@ -18,7 +18,7 @@ This task uses the experimental and superfast Node.js based Sass compiler [node-
If you haven't used [grunt][] before, be sure to check out the [Getting Started][] guide, as it explains how to create a [gruntfile][Getting Started] as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:

```shell
npm install --save-dev grunt-sass
$ npm install --save-dev grunt-sass
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
Expand Down Expand Up @@ -48,23 +48,19 @@ Default: `[]`

Import paths to include.


#### outputStyle

Type: `String`
Default: `nested`
Values: `'nested'`, `'expanded'`, `'compact'`, `'compressed'`
Values: `'nested'`, `'compressed'`

Specify the CSS output style.

*According to the [node-sass](https://github.com/andrew/node-sass) documentation, there is currently a problem with lib-sass so this option is best avoided for the time being.*

#### imagePath

Type: `String`
Default: `""`

Base path for `images-url`. See [node-sass documentation](https://github.com/andrew/node-sass#imagepath) for more info.
Represents the public image path. When using the `image-url()` function in a stylesheet, this path will be prepended to the path you supply. eg. Given an `imagePath` of `/path/to/images`, `background-image: image-url('image.png')` will compile to `background-image: url("/path/to/images/image.png")`.

#### sourceComments

Expand All @@ -74,7 +70,6 @@ Values: `'none'`, `'normal'`, `'map'`

Set what debug information is included in the output file. The `map` option will create the source map file in your CSS destination.


#### sourceMap

Type: `String`
Expand All @@ -86,14 +81,14 @@ If your `sourceComments` option is set to `map`, `sourceMap` allows setting a ne

```javascript
grunt.initConfig({
sass: { // Task
dist: { // Target
files: { // Dictionary of files
sass: { // task
dist: { // target
files: { // dictionary of files
'main.css': 'main.scss' // 'destination': 'source'
}
},
dev: { // Another target
options: { // Dictionary of render options
dev: { // another target
options: { // dictionary of render options
includePaths: [
'path/to/imports/'
]
Expand Down Expand Up @@ -165,4 +160,4 @@ grunt.initConfig({

## License

MIT © [Sindre Sorhus](http://sindresorhus.com)
[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)

0 comments on commit 3809d18

Please sign in to comment.