
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
grunt-compass
Advanced tools
A custom grunt.js task that executes compass compile for you and prints the COMPASS output to grunt.log.write().
This is a custom grunt.js multitask aka gruntplugin that executes compass compile
on the command line for you and prints the COMPASS output to grunt.log.write()
.
You need to have node.js, grunt.js, Ruby, SASS and Compass installed for this to work.
Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-compass
.
Call grunt.loadNpmTasks('grunt-compass')
in your gruntfile.
Configure grunt watch
to watch your scss files and call the task(s).
e.g.:
watch: {
files: ['assets/scss/*.scss'],
tasks: ['compass:dev', 'compass:prod']
}
Setup your SASS and CSS paths
src: 'assets/scss',
dest: 'assets/css'
src
is the folder with sass or scss files and dest
is the folder where the css files will be placed.
You can set your custom output style like this:
outputstyle: 'compressed'
You can disable line comments like this:
linecomments: false
If you have multiple compass tasks and you want to force compass compilation you can do this:
forcecompile: true
You can require a given ruby library before running commands like this:
require: 'animate-sass mylib'
You can add the --debug-info
option for use with FireSass like so:
debugsass: true
You can set the relative assets to true
and set an image path for Compass spriting feature:
images: '/path/to/images',
relativeassets: true
Run "grunt watch" and change some SASS files :)
compass: {
dev: {
src: 'assets/scss',
dest: 'assets/dev/css',
linecomments: true,
forcecompile: true,
require: 'animate-sass mylib',
debugsass: true,
images: '/path/to/images',
relativeassets: true
},
prod: {
src: 'assets/scss',
dest: 'assets/prod/css',
outputstyle: 'compressed',
linecomments: false,
forcecompile: true,
require: 'animate-sass mylib',
debugsass: false,
images: '/path/to/images',
relativeassets: true
}
}
compass compile
configuration over here.v0.2.14: @nebelschwade added fonts-dir
option and fixed issue with config.rb due to changes in last version.
v0.2.13: Added grunt.template.process()
function to process src
and dest
paths. Suggested by @necolas in issue #9.
v0.2.12: The option to set the image path for spriting and the relativeassets to true have been added by @gcpantazis.
v0.2.11: @gcpantazis added the option to set the --debug-info
flag for Sass, useful for integration with the FireSass debugger.
v0.2.10: Added 'gruntplugin' as a keyword in the package.json to get listed here.
v0.2.9: Ability to require a given ruby lib before running commands. Added by @FGRibreau.
v0.2.8: Added an option to force compilation of SASS files via the --force
option.
Copyright (c) 2012 Kahlil Lechelt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A custom grunt.js task that executes compass compile for you and prints the COMPASS output to grunt.log.write().
The npm package grunt-compass receives a total of 10 weekly downloads. As such, grunt-compass popularity was classified as not popular.
We found that grunt-compass demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.