59 lines
10 KiB
JSON
59 lines
10 KiB
JSON
{
|
||
"name": "grunt-contrib-less",
|
||
"description": "Compile LESS files to CSS.",
|
||
"version": "0.11.4",
|
||
"homepage": "https://github.com/gruntjs/grunt-contrib-less",
|
||
"author": {
|
||
"name": "Grunt Team",
|
||
"url": "http://gruntjs.com/"
|
||
},
|
||
"repository": {
|
||
"type": "git",
|
||
"url": "git://github.com/gruntjs/grunt-contrib-less.git"
|
||
},
|
||
"bugs": {
|
||
"url": "https://github.com/gruntjs/grunt-contrib-less/issues"
|
||
},
|
||
"licenses": [
|
||
{
|
||
"type": "MIT",
|
||
"url": "https://github.com/gruntjs/grunt-contrib-less/blob/master/LICENSE-MIT"
|
||
}
|
||
],
|
||
"engines": {
|
||
"node": ">=0.10.0"
|
||
},
|
||
"scripts": {
|
||
"test": "grunt test"
|
||
},
|
||
"dependencies": {
|
||
"async": "^0.2.10",
|
||
"chalk": "^0.5.1",
|
||
"less": "^1.7.2",
|
||
"lodash": "^2.4.1",
|
||
"maxmin": "^0.1.0"
|
||
},
|
||
"devDependencies": {
|
||
"grunt-contrib-jshint": "^0.9.2",
|
||
"grunt-contrib-nodeunit": "^0.3.3",
|
||
"grunt-contrib-clean": "^0.5.0",
|
||
"grunt-contrib-internal": "^0.4.5",
|
||
"grunt": "^0.4.4",
|
||
"grunt-cli": "^0.1.13"
|
||
},
|
||
"peerDependencies": {
|
||
"grunt": "~0.4.0"
|
||
},
|
||
"keywords": [
|
||
"gruntplugin"
|
||
],
|
||
"files": [
|
||
"tasks",
|
||
"LICENSE-MIT"
|
||
],
|
||
"readme": "# grunt-contrib-less v0.11.4 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-less.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-less) <a href=\"https://ci.appveyor.com/project/gruntjs/grunt-contrib-less\"><img src=\"https://ci.appveyor.com/api/projects/status/e3aa4d07xe4w4u05/branch/master\" alt=\"Build Status: Windows\" height=\"18\" /></a>\n\n> Compile LESS files to CSS.\n\n\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-contrib-less --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-contrib-less');\n```\n\n*This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that [you upgrade](http://gruntjs.com/upgrading-from-0.3-to-0.4), but in case you can't please use [v0.3.2](https://github.com/gruntjs/grunt-contrib-less/tree/grunt-0.3-stable).*\n\n\n## Less task\n_Run this task with the `grunt less` command._\n\nTask targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.\n### Options\n\n#### paths\nType: `String` `Array` `Function`\n\nDefault: Directory of input file.\n\nSpecifies directories to scan for @import directives when parsing. Default value is the directory of the source, which is probably what you want.\n\nIf you specify a function the source filepath will be the first argument. You can return either a string or an array of paths to be used.\n\n#### rootpath\nType: `String`\n\nDefault: `\"\"`\n\nA path to add on to the start of every url resource.\n\n#### compress\nType: `Boolean`\n\nDefault: `false`\n\nCompress output by removing some whitespaces.\n\n#### cleancss\nType: `Boolean`\n\nDefault: `false`\n\nCompress output using [clean-css](https://npmjs.org/package/clean-css).\n\n#### ieCompat\nType: `Boolean`\n\nDefault: `true`\n\nEnforce the css output is compatible with Internet Explorer 8.\n\nFor example, the [data-uri](https://github.com/cloudhead/less.js/pull/1086) function encodes a file in base64 encoding and embeds it into the generated CSS files as a data-URI. Because Internet Explorer 8 limits `data-uri`s to 32KB, the [ieCompat](https://github.com/cloudhead/less.js/pull/1190) option prevents `less` from exceeding this.\n\n#### optimization\nType: `Integer`\n\nDefault: `null`\n\nSet the parser's optimization level. The lower the number, the less nodes it will create in the tree. This could matter for debugging, or if you want to access the individual nodes in the tree.\n\n#### strictImports\nType: `Boolean`\n\nDefault: `false`\n\nForce evaluation of imports.\n\n#### strictMath\nType: `Boolean`\n\nDefault: `false`\n\nWhen enabled, math is required to be in parenthesis.\n\n#### strictUnits\nType: `Boolean`\n\nDefault: `false`\n\nWhen enabled, less will validate the units used (e.g. 4px/2px = 2, not 2px and 4em/2px throws an error).\n\n#### syncImport\nType: `Boolean`\n\nDefault: `false`\n\nRead @import'ed files synchronously from disk.\n\n#### dumpLineNumbers\nType: `String`\n\nDefault: `false`\n\nConfigures -sass-debug-info support.\n\nAccepts following values: `comments`, `mediaquery`, `all`.\n\n#### relativeUrls\nType: `Boolean`\n\nDefault: `false`\n\nRewrite urls to be relative. false: do not modify urls.\n\n#### customFunctions\nType: `Object`\n\nDefault: none\n\nDefine custom functions to be available within your LESS stylesheets. The function's name must be lowercase.\nIn the definition, the first argument is the less object, and subsequent arguments are from the less function call.\nValues passed to the function are types defined within less, the return value may be either one of them or primitive.\nSee the LESS documentation for more information on the available types.\n\n#### report\nChoices: `'min'`, `'gzip'` \nDefault: `'min'`\n\nEither report only minification result or report minification and gzip results.\nThis is useful to see exactly how well clean-css is performing but using `'gzip'` will make the task take 5-10x longer to complete. [Example output](https://github.com/sindresorhus/maxmin#readme).\n\n#### sourceMap\nType: `Boolean`\n\nDefault: `false`\n\nEnable source maps.\n\n#### sourceMapFilename\nType: `String`\n\nDefault: none\n\nWrite the source map to a separate file with the given filename.\n\n#### sourceMapURL\nType: `String`\n\nDefault: none\n\nOverride the default url that points to the sourcemap from the compiled css file.\n\n#### sourceMapBasepath\nType: `String`\n\nDefault: none\n\nSets the base path for the less file paths in the source map.\n\n#### sourceMapRootpath\nType: `String`\n\nDefault: none\n\nAdds this path onto the less file paths in the source map.\n\n#### outputSourceFiles\nType: `Boolean`\n\nDefault: false\n\nPuts the less files into the map instead of referencing them.\n\n#### modifyVars\nType: `Object`\n\nDefault: none\n\nOverrides global variables. Equivalent to ```--modify-vars='VAR=VALUE'``` option in less.\n\n#### banner\nType: `String`\n\nDefault: none\n\n### Usage Examples\n\n```js\nless: {\n development: {\n options: {\n paths: [\"assets/css\"]\n },\n files: {\n \"path/to/result.css\": \"path/to/source.less\"\n }\n },\n production: {\n options: {\n paths: [\"assets/css\"],\n cleancss: true,\n modifyVars: {\n imgPath: '\"http://mycdn.com/path/to/images\"',\n bgColor: 'red'\n }\n },\n files: {\n \"path/to/result.css\": \"path/to/source.less\"\n }\n }\n}\n```\n\n\n## Release History\n\n * ---------- v0.11.4 Fix 'banner', 'urlArgs' LESS options Fixes npm 2 peerDependencies issues\n * 2014-06-20 v0.11.3 Update to Less ~1.7.2.\n * 2014-06-01 v0.11.2 Lock to less 1.7.0.\n * 2014-05-26 v0.11.1 Fix `modifyVars` to work when less file ends with a comment.\n * 2014-03-19 v0.11.0 Custom functions can return types defined by less paths option now accepts a function Replaced deprecated grunt.util methods Removes deprecated grunt.lib.contrib\n * 2014-03-01 v0.10.0 sourceMapBasepath accepts a function. Update copyright to 2014. Update .gitattributes. Update less.js to v1.7.0. Prevent CRLF in the repo. Adds modify-vars option. Changed to async stack call. Fixes data-uri test. Normalize line endings on tests.\n * 2014-01-07 v0.9.0 Bump to less 1.6\n * 2013-12-06 v0.8.3 Support sourceMapURL\n * 2013-11-14 v0.8.2 Support outputSourceFiles\n * 2013-10-24 v0.8.1 Support sourceMapFilename, sourceMapBasepath and sourceMapRootpath\n * 2013-10-22 v0.8.0 Upgrade to LESS 1.5 Support strictUnits option Support sourceMap option Add customFunctions option for defining custom functions within LESS Output the source file name on error yuicompress option now cleancss (Less changed underlying dependency)\n * 2013-08-08 v0.7.0 Downgrade no source files warning to only in verbose mode\n * 2013-08-08 v0.6.5 Support strictMath option Support rootpath parse option\n * 2013-07-09 v0.6.4 Support relativeUrls option\n * 2013-07-06 v0.6.3 Add report option for minification and gzip results\n * 2013-07-03 v0.6.2 support syncImport\n * 2013-06-12 v0.6.1 Support ieCompat\n * 2013-06-09 v0.6.0 Bump less to 1.4.0\n * 2013-05-23 v0.5.2 Improve error handling.\n * 2013-04-25 v0.5.1 Gracefully handle configuration without sources.\n * 2013-02-15 v0.5.0 First official release for Grunt 0.4.0.\n * 2013-01-23 v0.5.0rc7 Updating grunt/gruntplugin dependencies to rc7. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions. Remove experimental wildcard destination support. Switching to this.files api.\n * 2012-10-18 v0.3.2 Add support for dumpLineNumbers.\n * 2012-10-12 v0.3.1 Rename grunt-contrib-lib dep to grunt-lib-contrib.\n * 2012-09-24 v0.3.0 Global options depreciated Revert normalize linefeeds.\n * 2012-09-16 v0.2.2 Support all less options Normalize linefeeds Default path to dirname of src file.\n * 2012-09-10 v0.2.0 Refactored from grunt-contrib into individual repo.\n\n---\n\nTask submitted by [Tyler Kellen](http://goingslowly.com/)\n\n*This file was generated on Tue Jul 29 2014 14:43:30.*\n",
|
||
"readmeFilename": "README.md",
|
||
"_id": "grunt-contrib-less@0.11.4",
|
||
"_from": "grunt-contrib-less@"
|
||
}
|