You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
3.3 KiB

{
"name": "grunt-css",
"description": "Grunt plugin for linting and minifying CSS",
"version": "0.3.2",
"homepage": "https://github.com/jzaefferer/grunt-css",
"author": {
"name": "Jörn Zaefferer",
"email": "joern.zaefferer@gmail.com"
},
"repository": {
"type": "git",
"url": "git://github.com/jzaefferer/grunt-css.git"
},
"bugs": {
"url": "https://github.com/jzaefferer/grunt-css/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/jzaefferer/grunt-css/blob/master/LICENSE-MIT"
}
],
"main": "tasks/grunt-css",
"engines": {
"node": ">=0.6.0"
},
"scripts": {
"test": "grunt test"
},
"dependencies": {
"sqwish": "0.2.0",
"csslint": "0.9.9",
"gzip-js": "0.3.1"
},
"devDependencies": {
"grunt": "0.3.x"
},
"keywords": [
"gruntplugin"
],
"readme": "# grunt-css\n\n[Grunt](https://github.com/cowboy/grunt) plugin for linting and minifying CSS\n\n## Getting Started\n\nInstall the module with: `npm install grunt-css`\n\nThen load it from your own `grunt.js` file:\n\n```js\ngrunt.loadNpmTasks('grunt-css');\n```\n\n## Documentation\n\nThis plugin provides two tasks: `cssmin` and `csslint`. Both area [multi tasks][types_of_tasks], meaning that grunt will automatically iterate over all `cssmin` and `csslint` targets if a target is not specified.\n\n[types_of_tasks]: https://github.com/cowboy/grunt/blob/master/docs/types_of_tasks.md\n\n### cssmin\n\nThis works just like the [built-in `min` task, so check docs for that](https://github.com/cowboy/grunt/blob/master/docs/task_min.md).\n\n### csslint\n\nThis is similar to the built-in lint task, though the configuration is different. Here's an example:\n\n```js\ncsslint: {\n\tbase_theme: {\n\t\tsrc: \"themes/base/*.css\",\n\t\trules: {\n\t\t\t\"import\": false,\n\t\t\t\"overqualified-elements\": 2\n\t\t}\n\t}\n}\n```\n\n`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.\n\nFor the current csslint version, these rules are available:\n\n\timportant\n\tadjoining-classes\n\tknown-properties\n\tbox-sizing\n\tbox-model\n\toutline-none\n\tduplicate-background-images\n\tcompatible-vendor-prefixes\n\tdisplay-property-grouping\n\tqualified-headings\n\tfallback-colors\n\tduplicate-properties\n\tempty-rules\n\terrors\n\tshorthand\n\tids\n\tgradients\n\tfont-sizes\n\tfont-faces\n\tfloats\n\tunderscore-property-hack\n\toverqualified-elements\n\timport\n\tregex-selectors\n\trules-count\n\tstar-property-hack\n\ttext-indent\n\tunique-headings\n\tuniversal-selector\n\tunqualified-attributes\n\tvendor-prefix\n\tzero-units\n\nFor an explanation of those rules, [check the csslint wiki](https://github.com/stubbornella/csslint/wiki/Rules).\n\n*Side note: To update this list, run this:*\n\n```bash\nnode -e \"require('csslint').CSSLint.getRules().forEach(function(x) { console.log(x.id) })\"\n```\n\n## Contributing\n\nPlease use the issue tracker and pull requests.\n\n## License\nCopyright (c) 2012 Jörn Zaefferer\nLicensed under the MIT license.\n",
"readmeFilename": "README.md",
"_id": "grunt-css@0.3.2",
"dist": {
"shasum": "38645ee9b10c2860b4263a293dc8e22187950347"
},
"_from": "grunt-css@~0.3.2",
"_resolved": "https://registry.npmjs.org/grunt-css/-/grunt-css-0.3.2.tgz"
}