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

A custom grunt.js task that executes compass compile for you and prints the COMPASS output to grunt.log.write().

  • 0.2.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-63.79%
Maintainers
1
Weekly downloads
 
Created
Source

compass compile for grunt.js

This is a custom grunt.js task that executes compass compile for you and prints the COMPASS output to grunt.log.write().

  1. Call grunt.loadNpmTasks('grunt-compass') in your gruntfile.

  2. Configure grunt watch to watch your scss files and call the task. e.g.:

    watch: {
        files: ['assets/scss/partials/*.scss'],
        tasks: ['compass']
    }
    
  3. Setup the config for compass in your grunt config, or setup a compass config file:

    • Option 1: Set the configuration for compass in your grunt.js file:

      compass: {
        src: 'assets/scss/partials',
        dest: 'assets/css/partials'
      }
      

      "src" is the folder with sass/scss files. "dest" is the file where the css files will be place.

    • Option 2: Setup a compass project

      compass install compass
      
  4. You can set your custom output style like this:

    compass: {
        outputstyle: 'compressed'
    }
    
  5. You can disable line comments like this:

    compass: {
        linecomments: false
    }
    
  6. Run "grunt watch" and change some SASS files :)

Notice: At this moment this task doesn't work with grunt or grunt compass only with grunt watch. Calling grunt compass only creates the folders, not the files!

Keywords

FAQs

Package last updated on 03 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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