Skip to content

Commit

Permalink
more portable way of running tests
Browse files Browse the repository at this point in the history
`npm test` runs `npm run grunt-test`, which has `node_modules/.bin` in
`$PATH`. This way the test run doesn't depend on globally installed
`grunt-cli`.
  • Loading branch information
dancek committed Feb 15, 2015
1 parent a9b9d80 commit dba41c9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@
"node": ">= 0.10.0"
},
"scripts": {
"test": "grunt test"
"grunt-test": "grunt test",
"test": "npm run grunt-test"
},
"devDependencies": {
"grunt-contrib-jshint": "^0.9.2",
"grunt": "~0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-nodeunit": "^0.3.3",
"grunt": "~0.4.5"
"grunt-contrib-jshint": "^0.9.2",
"grunt-contrib-nodeunit": "^0.3.3"
},
"peerDependencies": {
"grunt": "~0.4.5"
Expand Down

0 comments on commit dba41c9

Please sign in to comment.