grunt-contrib-sass
Advanced tools
Comparing version 0.7.4 to 0.8.0
@@ -6,10 +6,15 @@ # Options | ||
Type: `Boolean` | ||
Default: `false` | ||
Type: `String` | ||
Default: `auto` | ||
Enable Source Maps. | ||
Values: | ||
**Requires Sass 3.3.0, which can be installed with `gem install sass`** | ||
- `auto` - relative paths where possible, file URIs elsewhere | ||
- `file` - always absolute file URIs | ||
- `inline` - include the source text in the sourcemap | ||
- `none`- no sourcemaps | ||
**Requires Sass 3.4.0, which can be installed with `gem install sass`** | ||
## trace | ||
@@ -132,1 +137,9 @@ | ||
*Can't be used if you use the `sourcemap` option.* | ||
## update | ||
Type: `Boolean` | ||
Default: `false` | ||
Only compile changed files. |
@@ -36,5 +36,3 @@ /* | ||
options: { | ||
//debugInfo: true, | ||
// style: 'expanded', | ||
// bundleExec: true | ||
sourcemap: 'none' | ||
}, | ||
@@ -64,2 +62,14 @@ compile: { | ||
ext: '.css' | ||
}, | ||
updateTrue: { | ||
options: { | ||
update: true | ||
}, | ||
files: [{ | ||
expand: true, | ||
cwd: 'test/fixtures', | ||
src: ['updatetrue.scss', 'updatetrue.sass', 'updatetrue.css'], | ||
dest: 'test/tmp', | ||
ext: '.css' | ||
}] | ||
} | ||
@@ -66,0 +76,0 @@ } |
{ | ||
"name": "grunt-contrib-sass", | ||
"description": "Compile Sass to CSS", | ||
"version": "0.7.4", | ||
"version": "0.8.0", | ||
"homepage": "https://github.com/gruntjs/grunt-contrib-sass", | ||
@@ -26,3 +26,3 @@ "author": { | ||
"chalk": "^0.5.1", | ||
"dargs": "^0.1.0", | ||
"dargs": "^2.0.0", | ||
"which": "^1.0.5", | ||
@@ -29,0 +29,0 @@ "win-spawn": "^2.0.0" |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-sass v0.7.4 [](https://travis-ci.org/gruntjs/grunt-contrib-sass) | ||
# grunt-contrib-sass v0.8.0 [](https://travis-ci.org/gruntjs/grunt-contrib-sass) | ||
@@ -39,10 +39,15 @@ > Compile Sass to CSS | ||
Type: `Boolean` | ||
Default: `false` | ||
Type: `String` | ||
Default: `auto` | ||
Enable Source Maps. | ||
Values: | ||
**Requires Sass 3.3.0, which can be installed with `gem install sass`** | ||
- `auto` - relative paths where possible, file URIs elsewhere | ||
- `file` - always absolute file URIs | ||
- `inline` - include the source text in the sourcemap | ||
- `none`- no sourcemaps | ||
**Requires Sass 3.4.0, which can be installed with `gem install sass`** | ||
#### trace | ||
@@ -166,2 +171,10 @@ | ||
#### update | ||
Type: `Boolean` | ||
Default: `false` | ||
Only compile changed files. | ||
### Examples | ||
@@ -250,2 +263,3 @@ | ||
* 2014-08-21 v0.8.0 Support Sass 3.4 Source Map option. Add `update` option. | ||
* 2014-08-09 v0.7.4 Fix bundleExec option. Fix `os.cpus()` issue. Log `sass` command when `--verbose` flag is set. | ||
@@ -274,2 +288,2 @@ * 2014-03-06 v0.7.3 Only create empty dest files when they don't already exist. | ||
*This file was generated on Sat Aug 09 2014 15:21:14.* | ||
*This file was generated on Thu Aug 21 2014 17:55:01.* |
@@ -80,2 +80,17 @@ /* | ||
if (options.update) { | ||
// When the source file hasn't yet been compiled SASS will write an empty file. | ||
// If this is the first time the file has been written we treat it as a if update was not passed | ||
if (!grunt.file.exists(file.dest)) { | ||
// Find where the --update flag is and remove it. | ||
var index = args.indexOf('--update'); | ||
args.splice(index, 1); | ||
} else { | ||
// The first two elements in args is our source and destination files, | ||
// we use those values to build a path that SASS recognizes namely: source:destination | ||
var sassPath = args.shift() + ':' + args.shift(); | ||
args.push(sassPath); | ||
} | ||
} | ||
var bin = 'sass'; | ||
@@ -94,3 +109,3 @@ | ||
// Make sure grunt creates the destination folders if they don't exist | ||
if(!grunt.file.exists(file.dest)) { | ||
if (!grunt.file.exists(file.dest)) { | ||
grunt.file.write(file.dest, ''); | ||
@@ -97,0 +112,0 @@ } |
Sorry, the diff of this file is not supported yet
22308
202
286
+ Addeddargs@2.1.0(transitive)
- Removeddargs@0.1.0(transitive)
Updateddargs@^2.0.0