Skip to content

Commit 98ad76c

Browse files
committed
Update to grunt 1.0.0 and some other similar things
1 parent 60205bb commit 98ad76c

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,16 @@
2020
},
2121
"scripts": {
2222
"test": "mocha",
23-
"cover": "grunt cover"
23+
"cover": "grunt cover",
24+
"grunt": "grunt"
2425
},
2526
"devDependencies": {
2627
"blanket": "^1.1.7",
27-
"grunt": "~0.4.5",
28-
"grunt-cli": "^0.1.13",
29-
"grunt-contrib-jshint": "^0.12.0",
28+
"grunt-contrib-jshint": "^1.0.0",
3029
"grunt-mocha-cov": "^0.4.0",
31-
"mocha": "^2.3.3",
30+
"mocha": "^3.0.2",
3231
"spawn-sync": "^1.0.13"
3332
},
34-
"peerDependencies": {
35-
"grunt": ">=0.4.0"
36-
},
3733
"keywords": [
3834
"gruntplugin",
3935
"less",
@@ -43,8 +39,9 @@
4339
"linting"
4440
],
4541
"dependencies": {
42+
"grunt": "^1.0.1",
4643
"chalk": "^1.1.1",
47-
"lesshint": "^1.0.0"
44+
"lesshint": "^2.0.0"
4845
},
4946
"config": {
5047
"blanket": {

test/grunt-lesshint.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
'use strict';
22

3+
var path = require( 'path' );
4+
35
var assert = require( 'assert' );
46

57
describe( 'grunt-lesshint', function(){
68
var spawnSync = require( 'spawn-sync' );
9+
var gruntPath = path.join( __dirname + '/../node_modules/grunt/bin/grunt' );
710

811
describe( 'defaultOptions', function(){
9-
var response = spawnSync( 'grunt', [ 'lesshint' ], {
12+
var response = spawnSync( 'node', [ gruntPath, 'lesshint' ], {
1013
encoding: 'utf8'
1114
});
1215

@@ -16,7 +19,7 @@ describe( 'grunt-lesshint', function(){
1619
});
1720

1821
describe( 'defaultOptionsNoErrors', function(){
19-
var response = spawnSync( 'grunt', [ 'lesshint:noErrors' ], {
22+
var response = spawnSync( 'node', [ gruntPath, 'lesshint:noErrors' ], {
2023
encoding: 'utf8'
2124
});
2225

@@ -26,7 +29,7 @@ describe( 'grunt-lesshint', function(){
2629
});
2730

2831
describe( 'customOptionsNoErrors', function(){
29-
var response = spawnSync( 'grunt', [ 'lesshint:customOptions' ], {
32+
var response = spawnSync( 'node', [ gruntPath, 'lesshint:customOptions' ], {
3033
encoding: 'utf8'
3134
});
3235

@@ -36,7 +39,7 @@ describe( 'grunt-lesshint', function(){
3639
});
3740

3841
describe( 'lesshintRcNoErrors', function(){
39-
var response = spawnSync( 'grunt', [ 'lesshint:useLesshintRc' ], {
42+
var response = spawnSync( 'node', [ gruntPath, 'lesshint:useLesshintRc' ], {
4043
encoding: 'utf8'
4144
});
4245

@@ -46,7 +49,7 @@ describe( 'grunt-lesshint', function(){
4649
});
4750

4851
describe( 'withForce', function(){
49-
var response = spawnSync( 'grunt', [ 'lesshint:useForce' ], {
52+
var response = spawnSync( 'node', [ gruntPath, 'lesshint:useForce' ], {
5053
encoding: 'utf8'
5154
});
5255

0 commit comments

Comments
 (0)