Skip to content
Newer
Older
100644 82 lines (64 sloc) 2.93 KB
3ff7368 :gem: Travis CI image/link in readme :gem:
travis4all authored Aug 23, 2012
1 [![build status](https://secure.travis-ci.org/jharding/grunt-less.png)](http://travis-ci.org/jharding/grunt-less)
9549430 @jharding Update README to reflect deprecation.
authored Sep 16, 2012
2 grunt-less (deprecated)
3 ==========
c56df52 initial commit
Jake Harding authored Apr 1, 2012
4
9549430 @jharding Update README to reflect deprecation.
authored Sep 17, 2012
5 This grunt plugin has been [deprecated](https://github.com/jharding/grunt-less/issues/15). If you're looking for a less grunt plugin, check out [grunt-contrib-less](https://github.com/gruntjs/grunt-contrib-less).
c56df52 initial commit
Jake Harding authored Apr 1, 2012
6
a4cf740 @jharding Clean up README.
authored Aug 23, 2012
7 Getting Started
9549430 @jharding Update README to reflect deprecation.
authored Sep 17, 2012
8 ---------------
a4cf740 @jharding Clean up README.
authored Aug 24, 2012
9
c56df52 initial commit
Jake Harding authored Apr 1, 2012
10 Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: `npm install grunt-less`
11
12 Then add this line to your project's `grunt.js` gruntfile:
13
14 ```javascript
fd34f0e rename task to grunt
Daniel Gräber authored May 9, 2012
15 grunt.loadNpmTasks('grunt-less');
c56df52 initial commit
Jake Harding authored Apr 1, 2012
16 ```
17
2dff09e @jharding Update README.md
authored Apr 5, 2012
18 [npm_registry_page]: http://search.npmjs.org/#/grunt-less
c56df52 initial commit
Jake Harding authored Apr 1, 2012
19 [grunt]: https://github.com/cowboy/grunt
20 [getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md
21
a4cf740 @jharding Clean up README.
authored Aug 24, 2012
22 Documentation
9549430 @jharding Update README to reflect deprecation.
authored Sep 17, 2012
23 -------------
a4cf740 @jharding Clean up README.
authored Aug 24, 2012
24
629e8b0 @jharding updating readme.
authored Apr 4, 2012
25 This task is a [multi task][types_of_tasks], meaning that grunt will automatically iterate over all `less` targets if a target is not specified.
26
27 ### Target Properties
8406392 @jharding Update README.md
authored Apr 4, 2012
28 * __src__*(required)*: The LESS file(s) to be compiled. Can be either a string or an array of strings. If more than one LESS file is provided, each LESS file will be compiled individually and then concatenated together.
629e8b0 @jharding updating readme.
authored Apr 5, 2012
29 * __dest__*(required)*: The path where the output from the LESS compilation should be placed. Must be a string as there can be only one destination.
8c96e8e @jharding version bump.
authored Apr 8, 2012
30 * __options__*(optional)*: An object of LESS options. As of right now, the only options supported are `compress` and `yuicompress`.
629e8b0 @jharding updating readme.
authored Apr 5, 2012
31
32 ### Example
33
34 ```javascript
35 // project configuration
36 grunt.initConfig({
5b858a0 @jharding Updating release history.
authored Jun 14, 2012
37 less: {
38 signup: {
39 src: 'signup.less',
40 dest: 'signup.css'
41 },
42 homepage: {
43 src: ['banner.less', 'app.less'],
44 dest: 'homepage.css',
45 options: {
46 yuicompress: true
47 }
48 },
49 all: {
50 src: '*.less',
51 dest: 'all.css',
52 options: {
53 compress: true
54 }
629e8b0 @jharding updating readme.
authored Apr 5, 2012
55 }
5b858a0 @jharding Updating release history.
authored Jun 14, 2012
56 }
629e8b0 @jharding updating readme.
authored Apr 5, 2012
57 });
58 ```
59
60 [types_of_tasks]: https://github.com/cowboy/grunt/blob/master/docs/types_of_tasks.md
c56df52 initial commit
Jake Harding authored Apr 1, 2012
61
a4cf740 @jharding Clean up README.
authored Aug 24, 2012
62 Contributing
9549430 @jharding Update README to reflect deprecation.
authored Sep 17, 2012
63 ------------
a4cf740 @jharding Clean up README.
authored Aug 24, 2012
64
c56df52 initial commit
Jake Harding authored Apr 1, 2012
65 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][grunt].
66
a4cf740 @jharding Clean up README.
authored Aug 24, 2012
67 Release History
9549430 @jharding Update README to reflect deprecation.
authored Sep 17, 2012
68 ---------------
c4265d2 @jharding Update README.
authored Aug 28, 2012
69 * __08/28/2012 - 0.1.6__: Remove grunt as a dependency.
5b858a0 @jharding Updating release history.
authored Jun 14, 2012
70 * __06/14/2012 - 0.1.5__: Added test cases.
80e3447 @jharding updating readme and package.json for version bump.
authored Apr 8, 2012
71 * __04/08/2012 - 0.1.4__: Refactored the code to make the helper function more usable.
0aa8728 @jharding Update README.md
authored Apr 8, 2012
72 * __04/08/2012 - 0.1.3__: Added `gruntplugin` keyword to be [consistent with other plugins](https://github.com/cowboy/grunt/issues/111).
8c96e8e @jharding version bump.
authored Apr 8, 2012
73 * __04/05/2012 - 0.1.2__: Added support for wildcard patterns and normalizing linefeeds for concatenation.
74 * __04/04/2012 - 0.1.1__: Checking to see if the `src` and `dest` properties are defined. Also now accept a string for `src` and not just an array of strings.
629e8b0 @jharding updating readme.
authored Apr 5, 2012
75 * __04/04/2012 - 0.1.0__: Initial release.
c56df52 initial commit
Jake Harding authored Apr 1, 2012
76
a4cf740 @jharding Clean up README.
authored Aug 24, 2012
77 License
9549430 @jharding Update README to reflect deprecation.
authored Sep 17, 2012
78 -------
a4cf740 @jharding Clean up README.
authored Aug 24, 2012
79
9549430 @jharding Update README to reflect deprecation.
authored Sep 17, 2012
80 Copyright (c) 2012 Jake Harding
c56df52 initial commit
Jake Harding authored Apr 1, 2012
81 Licensed under the MIT license.
Something went wrong with that request. Please try again.