Skip to content

Commit

Permalink
Merge branch 'pwaleczek/master'
Browse files Browse the repository at this point in the history
Conflicts:
	package.json
  • Loading branch information
jonschlinkert committed Sep 9, 2013
1 parent 31de10c commit 23d13ca
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 57 deletions.
19 changes: 0 additions & 19 deletions Gruntfile.js
Expand Up @@ -126,15 +126,6 @@ module.exports = function(grunt) {
'test/actual/nopaths.css': ['test/fixtures/nopaths.less']
}
},
yuicompress: {
options: {
paths: ['test/fixtures/include'],
yuicompress: true
},
files: {
'test/actual/yuicompress.css': ['test/fixtures/style.less']
}
},
ieCompatTrue: {
options: {
paths: ['test/fixtures/include'],
Expand Down Expand Up @@ -169,16 +160,6 @@ module.exports = function(grunt) {
'test/actual/compressReport.css': ['test/fixtures/style.less', 'test/fixtures/style2.less']
}
},
yuicompressReport: {
options: {
paths: ['test/fixtures/include'],
yuicompress: true,
report: 'gzip'
},
files: {
'test/actual/yuicompressReport.css': ['test/fixtures/style.less', 'test/fixtures/style2.less', 'test/fixtures/style3.less']
}
}
},

// Unit tests.
Expand Down
12 changes: 3 additions & 9 deletions README.md
Expand Up @@ -36,7 +36,7 @@ A `.lessrc` file must contain valid JSON and look something like this:

```json
{
"yuicompress": true,
"compress": true,
"strictMath": true,
"strictUnits": true,
"paths": ["vendor/bootstrap/less"]
Expand All @@ -46,7 +46,7 @@ A `.lessrc` file must contain valid JSON and look something like this:
A `.lessrc.yml` must contain valid YAML and look something like this:

```yaml
yuicompress: true
compress: true
strictMath: true
strictUnits: true
paths:
Expand Down Expand Up @@ -163,12 +163,6 @@ Default: false

Compress output by removing some whitespaces.

#### yuicompress
Type: `Boolean`
Default: false

Compress output using cssmin.js

#### ieCompat
Type: `Boolean`
Default: true
Expand Down Expand Up @@ -244,7 +238,7 @@ less: {
production: {
options: {
paths: ["assets/css"],
yuicompress: true
compress: true
},
files: {
"path/to/result.css": "path/to/source.less"
Expand Down
2 changes: 1 addition & 1 deletion docs/less-examples.md
Expand Up @@ -13,7 +13,7 @@ less: {
production: {
options: {
paths: ["assets/css"],
yuicompress: true
compress: true
},
files: {
"path/to/result.css": "path/to/source.less"
Expand Down
10 changes: 2 additions & 8 deletions docs/less-options.md
Expand Up @@ -10,7 +10,7 @@ A `.lessrc` file must contain valid JSON and look something like this:

```json
{
"yuicompress": true,
"compress": true,
"strictMath": true,
"strictUnits": true,
"paths": ["vendor/bootstrap/less"]
Expand All @@ -20,7 +20,7 @@ A `.lessrc` file must contain valid JSON and look something like this:
A `.lessrc.yml` must contain valid YAML and look something like this:

```yaml
yuicompress: true
compress: true
strictMath: true
strictUnits: true
paths:
Expand Down Expand Up @@ -137,12 +137,6 @@ Default: false

Compress output by removing some whitespaces.

## yuicompress
Type: `Boolean`
Default: false

Compress output using cssmin.js

## ieCompat
Type: `Boolean`
Default: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -28,7 +28,7 @@
"test": "grunt test"
},
"dependencies": {
"less": "https://github.com/less/less.js/tarball/master",
"less": "~1.5.0",
"grunt-lib-contrib": "~0.6.1"
},
"devDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions tasks/less.js
Expand Up @@ -43,7 +43,6 @@ module.exports = function(grunt) {
'silent',
'verbose',
'compress',
'yuicompress',
'ieCompat',
'strictMath',
'strictUnits'
Expand Down Expand Up @@ -229,7 +228,6 @@ module.exports = function(grunt) {
}

var parser = new less.Parser(grunt.util._.pick(options, lessOptions.parse));

parser.parse(srcCode, function(parse_err, tree) {
if (parse_err) {
lessError(parse_err);
Expand Down
17 changes: 0 additions & 17 deletions test/less_test.js
Expand Up @@ -54,23 +54,6 @@ exports.less = {

test.done();
},
yuicompress: function(test) {
'use strict';

var actual, expected;

test.expect(2);

actual = grunt.file.read('test/actual/yuicompress.css');
expected = grunt.file.read('test/expected/yuicompress.css');
test.equal(expected, actual, 'should yuicompress output when yuicompress option is true');

actual = grunt.file.read('test/actual/yuicompressReport.css');
expected = grunt.file.read('test/expected/yuicompressReport.css');
test.equal(expected, actual, 'should yuicompress output when yuicompress option is true and concating is enable');

test.done();
},
ieCompat: function(test) {
'use strict';

Expand Down

0 comments on commit 23d13ca

Please sign in to comment.