Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-contrib-sass

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-contrib-sass - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

5

docs/sass-options.md

@@ -67,1 +67,6 @@ # Options

Don't cache to sassc files.
## bundleExec
Type: `Boolean`
Run `sass` with [bundle exec](http://gembundler.com/man/bundle-exec.1.html): `bundle exec sass`.

3

Gruntfile.js

@@ -38,3 +38,4 @@ /*

'tmp/scss.css': ['test/fixtures/compile.scss'],
'tmp/sass.css': ['test/fixtures/compile.sass']
'tmp/sass.css': ['test/fixtures/compile.sass'],
'tmp/css.css': ['test/fixtures/compile.css']
}

@@ -41,0 +42,0 @@ }

{
"name": "grunt-contrib-sass",
"description": "Compile Sass to CSS",
"version": "0.2.2",
"version": "0.3.0",
"homepage": "https://github.com/gruntjs/grunt-contrib-sass",

@@ -25,3 +25,3 @@ "author": {

"engines": {
"node": ">= 0.8.0"
"node": ">=0.8.0"
},

@@ -36,3 +36,3 @@ "scripts": {

"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-jshint": "~0.1.1",
"grunt-contrib-jshint": "~0.2.0",
"grunt-contrib-nodeunit": "~0.1.2",

@@ -39,0 +39,0 @@ "grunt-contrib-internal": "~0.4.2",

@@ -16,3 +16,3 @@ # grunt-contrib-sass [![Build Status](https://secure.travis-ci.org/gruntjs/grunt-contrib-sass.png?branch=master)](http://travis-ci.org/gruntjs/grunt-contrib-sass)

One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

@@ -97,2 +97,7 @@ ```js

#### bundleExec
Type: `Boolean`
Run `sass` with [bundle exec](http://gembundler.com/man/bundle-exec.1.html): `bundle exec sass`.
### Examples

@@ -185,10 +190,11 @@

* 2013-02-14   v0.2.2   First official release for Grunt 0.4.0.
* 2013-01-24   v0.2.2rc7   Updating grunt/gruntplugin dependencies to rc7. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.
* 2013-01-08   v0.2.2rc5   Updating to work with grunt v0.4.0rc5. Switching to this.files api. Add separator option.
* 2012-11-04   v0.2.0   Grunt 0.4 compatibility. Improve error message when Sass binary couldn't be found
* 2012-10-11   v0.1.3   Rename grunt-contrib-lib dep to grunt-lib-contrib.
* 2012-10-07   v0.1.2   Fix regression for darwin.
* 2012-10-04   v0.1.1   Windows support.
* 2012-09-23   v0.1.0   Initial release.
* 2013-03-26   v0.3.0   Add support for `bundle exec`. Make sure `.css` files are compiled with SCSS.
* 2013-02-15   v0.2.2   First official release for Grunt 0.4.0.
* 2013-01-25   v0.2.2rc7   Updating grunt/gruntplugin dependencies to rc7. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.
* 2013-01-09   v0.2.2rc5   Updating to work with grunt v0.4.0rc5. Switching to this.files api. Add separator option.
* 2012-11-05   v0.2.0   Grunt 0.4 compatibility. Improve error message when Sass binary couldn't be found
* 2012-10-12   v0.1.3   Rename grunt-contrib-lib dep to grunt-lib-contrib.
* 2012-10-08   v0.1.2   Fix regression for darwin.
* 2012-10-05   v0.1.1   Windows support.
* 2012-09-24   v0.1.0   Initial release.

@@ -199,2 +205,2 @@ ---

*This file was generated on Mon Feb 18 2013 08:59:54.*
*This file was generated on Tue Mar 26 2013 16:59:50.*

@@ -22,6 +22,22 @@ /*

grunt.util.async.forEachSeries(this.files, function(f, next) {
var args = [f.dest, '--stdin'].concat(helpers.optsToArgs(options));
var args;
var bundleExec = options.bundleExec;
// If were compiling scss files
if (path.extname(f.src[0]) === '.scss') {
delete options.bundleExec;
args = [f.dest, '--stdin'].concat(helpers.optsToArgs(options));
if (process.platform === 'win32') {
args.unshift('sass.bat');
} else {
args.unshift('sass');
}
if (bundleExec) {
args.unshift('bundle', 'exec');
}
// If we're compiling scss or css files
var extension = path.extname(f.src[0]);
if (extension === '.scss' || extension === '.css') {
args.push('--scss');

@@ -49,3 +65,3 @@ }

var sass = grunt.util.spawn({
cmd: process.platform === 'win32' ? 'sass.bat' : 'sass',
cmd: args.shift(),
args: args

@@ -52,0 +68,0 @@ }, function(error, result, code) {

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