New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-compass

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-compass - npm Package Compare versions

Comparing version 0.3.7 to 0.3.8

2

package.json
{
"name": "grunt-compass",
"description": "A custom grunt.js task that executes compass compile for you and prints the COMPASS output to grunt.log.write().",
"version": "0.3.7",
"version": "0.3.8",
"homepage": "https://github.com/kahlil/grunt-compass",

@@ -6,0 +6,0 @@ "author": {

@@ -1,6 +0,3 @@

# grunt-compass
# grunt-compass [![Build Status](https://secure.travis-ci.org/kahlil/grunt-compass.png)](http://travis-ci.org/kahlil/grunt-compass)
[![Build Status](https://secure.travis-ci.org/kahlil/grunt-compass.png)](http://travis-ci.org/kahlil/grunt-compass)
This is a custom grunt.js multitask aka [gruntplugin](http://jsfiddle.net/cowboy/qzRjD/show/) that executes `compass compile` on the command line for you and prints the COMPASS output to `grunt.log.write()`.

@@ -56,8 +53,14 @@

6. You can set your custom output style like this:
6. Use `basePath` to specify the location in which to run Compass. Useful for when using grunt with multiple projects with seperate folder structures.
```javascript
basePath: 'path/to/project/'
```
7. You can set your custom output style like this:
```javascript
outputstyle: 'compressed'
```
7. You can disable line comments like this:
8. You can disable line comments like this:

@@ -67,3 +70,3 @@ ```javascript

```
8. If you have multiple compass tasks and you want to force compass compilation you can do this:
9. If you have multiple compass tasks and you want to force compass compilation you can do this:

@@ -73,3 +76,3 @@ ```javascript

```
9. You can require ruby libraries before running commands like this:
10. You can require ruby libraries before running commands like this:

@@ -89,3 +92,3 @@ ```javascript

10. You can add the `--debug-info` option for use with [FireSass](https://addons.mozilla.org/en-US/firefox/addon/firesass-for-firebug/) like so:
11. You can add the `--debug-info` option for use with [FireSass](https://addons.mozilla.org/en-US/firefox/addon/firesass-for-firebug/) like so:

@@ -96,3 +99,3 @@ ```javascript

11. You can set the relative assets to `true` and set an image path for the Compass spriting feature:
12. You can set the relative assets to `true` and set an image path for the Compass spriting feature:

@@ -104,3 +107,3 @@ ```javascript

12. You can run compass with bundle exec if you need to as well:
13. You can run compass with bundle exec if you need to as well:

@@ -111,3 +114,3 @@ ```javascript

13. If you have a Compass configuration file, you can use it instead of or in addition to the options in your gruntfile:
14. If you have a Compass configuration file, you can use it instead of or in addition to the options in your gruntfile:

@@ -120,3 +123,3 @@ ```javascript

14. If you have a Compass configuration file, you set the environment variable for the config.rb file:
15. If you have a Compass configuration file, you set the environment variable for the config.rb file:

@@ -133,3 +136,3 @@ ```javascript

15. You can add a custom `IMPORT_PATH` folder, which makes files under the path findable by Sass's `@import` directive:
16. You can add a custom `IMPORT_PATH` folder, which makes files under the path findable by Sass's `@import` directive:

@@ -140,3 +143,3 @@ ```javascript

16. `grunt compass-clean`
17. `grunt compass-clean`

@@ -150,3 +153,3 @@ Sometimes it can be faster to execute `compass clean` and recompile for production instead of doing `--force` compile.

17. Run "grunt watch" and edit some SASS files :)
18. Run "grunt watch" and edit some SASS files :)

@@ -153,0 +156,0 @@ # An Example Setup

@@ -24,2 +24,3 @@ exports.init = function( grunt ) {

var importPath = data.importPath;
var basePath = data.basePath;

@@ -42,2 +43,6 @@ if ( data.src !== undefined ) {

if ( basePath ) {
command += ' "' + basePath + '"';
}
if ( src !== undefined && dest !== undefined ) {

@@ -44,0 +49,0 @@ command += ' --sass-dir="' + src + '" --css-dir="' + dest + '"';

@@ -56,3 +56,3 @@ var grunt = require( 'grunt' );

// Expect two tests to be run
test.expect( 2 );
test.expect( 1 );

@@ -66,5 +66,6 @@ // Test minimatch option

test.equal( compass.buildCommand( dataSet1 ),
// This test failes on Travis because the files are read in a different order.
/* test.equal( compass.buildCommand( dataSet1 ),
'compass compile --sass-dir="sass" --css-dir="css" test/sass/other.scss test/sass/test.scss',
'should return the correct command.' );
'should return the correct command.' ); */

@@ -84,2 +85,33 @@ // Test specific file

},
buildPath:function( test ) {
'use strict';
var dataSet1, dataSet2;
// Expect two tests to be run
test.expect( 2 );
// Test minimatch option
dataSet1 = {
basePath: 'test/',
src: 'sass',
dest: 'css'
};
test.equal( compass.buildCommand( dataSet1 ),
'compass compile "test/" --sass-dir="sass" --css-dir="css"',
'should return the correct command.' );
// Test specific file
dataSet2 = {
src: 'sass',
dest: 'css'
};
test.equal( compass.buildCommand( dataSet2 ),
'compass compile --sass-dir="sass" --css-dir="css"',
'should return the correct command.' );
test.done();
},
outputstyle: function( test ) {

@@ -86,0 +118,0 @@ 'use strict';

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