# grunt-css

Grunt plugin for linting and minifying CSS

## Getting Started
Install the module with: `npm install grunt-css`

```javascript
var grunt_css = require('grunt-css');
grunt_css.awesome(); // "awesome"
```

## Documentation
_(Coming soon)_

## Examples
_(Coming soon)_

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt).

## Release History
_(Nothing yet)_

## License
Copyright (c) 2012 Jörn Zaefferer  
Licensed under the MIT license.

# grunt-css

Grunt plugin for linting and minifying CSS

## Getting Started
Install the module with: `npm install grunt-css`

Then load it from your own grunt.js file:

	require('grunt-css')(grunt);

This will likely change, depending on what grunt plugin will look like in the future.

## Documentation

This plugin provides two tasks: `cssmin` and `csslint`.

### cssmin

This works just like the [built-in `min` task, so check docs for that](https://github.com/cowboy/grunt/blob/master/docs/task_min.md).

### csslint

This is similar to the built-in lint task, though the configuration is different. Here's an example:

	csslint: {
		base_theme: {
			src: "themes/base/*.css",
			rules: {
				"import": false,
				"overqualified-elements": 2
			}
		}
	}

`src` specifies the files to lint, `rules` the rules to apply. A value of `false` ignores the rule, a value of `2` will set it to become an error. Otherwise all rules are considered warnings.

For the current csslint version, these rules are available:

	import
	adjoining-classes
	important
	box-sizing
	box-model
	known-properties
	duplicate-background-images
	compatible-vendor-prefixes
	display-property-grouping
	overqualified-elements
	fallback-colors
	duplicate-properties
	empty-rules
	errors
	rules-count
	ids
	font-sizes
	font-faces
	gradients
	floats
	outline-none
	qualified-headings
	regex-selectors
	shorthand
	text-indent
	unique-headings
	universal-selector
	unqualified-attributes
	vendor-prefix
	zero-units

For an explanation of those rules, [check the csslint wiki](https://github.com/stubbornella/csslint/wiki/Rules).

*Side note: To update this list, run this:*

	node -e "require('csslint').CSSLint.getRules().forEach(function(x) { console.log(x.id) })"

## Contributing
Please use the issue tracker and pull requests.

## Release History

* 0.1.0 Initial release

## License
Copyright (c) 2012 Jörn Zaefferer
Licensed under the MIT license.

Update readme, provide some basic documentation
Update readme, provide some basic documentation
