File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11var matchdep = require ( 'matchdep' )
2- , gruntTimer = require ( 'time-grunt' ) ;
2+ , gruntTimer = require ( 'time-grunt' )
3+ , path = require ( 'path' ) ;
34
45module . exports = function ( grunt ) {
56 // Dynamically load any preexisting grunt tasks/modules
@@ -9,7 +10,7 @@ module.exports = function(grunt) {
910 gruntTimer ( grunt ) ;
1011
1112 var config = {
12- binPath : './ node_modules/ .bin'
13+ binPath : path . join ( '.' , ' node_modules' , ' .bin') ,
1314 } ;
1415
1516 var reporter = grunt . option ( 'reporter' ) || 'xunit-file' ;
@@ -46,14 +47,14 @@ module.exports = function(grunt) {
4647 } ,
4748 shell : {
4849 coverage : {
49- command : '<%= config.binPath %>/ istanbul cover --report lcov --dir test/reports/ <%= config.binPath %> /_mocha test/spec -- --reporter ' + reporter ,
50+ command : path . join ( config . binPath , ' istanbul' ) + ' cover --report lcov --dir test/reports/ node_modules/mocha/bin /_mocha test/spec -- --reporter ' + reporter ,
5051 options : {
5152 stdout : true ,
5253 failOnError : true
5354 }
5455 } ,
5556 test : {
56- command : '<%= config.binPath %>/ _mocha test/spec'
57+ command : path . join ( config . binPath , ' _mocha' ) + ' test/spec'
5758 }
5859 } ,
5960 coveralls : {
You can’t perform that action at this time.
0 commit comments