Add test script to package.json
- Use `npm test` in travis-node-script
This commit is contained in:
+9
-5
@@ -12,18 +12,22 @@
|
|||||||
"tdd",
|
"tdd",
|
||||||
"bdd"
|
"bdd"
|
||||||
],
|
],
|
||||||
|
"scripts": {
|
||||||
|
"test": "./node_modules/.bin/grunt jshint execSpecsInNode"
|
||||||
|
},
|
||||||
"description": "Official packaging of Jasmine's core files for use by Node.js projects.",
|
"description": "Official packaging of Jasmine's core files for use by Node.js projects.",
|
||||||
"homepage": "http://jasmine.github.io",
|
"homepage": "http://jasmine.github.io",
|
||||||
"main": "./lib/jasmine-core.js",
|
"main": "./lib/jasmine-core.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"glob": "~3.2.9",
|
||||||
"grunt": "~0.4.1",
|
"grunt": "~0.4.1",
|
||||||
"grunt-contrib-jshint": "~0.7.0",
|
"grunt-cli": "^0.1.13",
|
||||||
"grunt-contrib-concat": "~0.3.0",
|
|
||||||
"grunt-contrib-compass": "~0.6.0",
|
"grunt-contrib-compass": "~0.6.0",
|
||||||
"grunt-contrib-compress": "~0.5.2",
|
"grunt-contrib-compress": "~0.5.2",
|
||||||
"shelljs": "~0.1.4",
|
"grunt-contrib-concat": "~0.3.0",
|
||||||
"glob": "~3.2.9",
|
"grunt-contrib-jshint": "~0.7.0",
|
||||||
"jasmine": "https://github.com/jasmine/jasmine-npm/archive/master.tar.gz",
|
"jasmine": "https://github.com/jasmine/jasmine-npm/archive/master.tar.gz",
|
||||||
"load-grunt-tasks": "^0.4.0"
|
"load-grunt-tasks": "^0.4.0",
|
||||||
|
"shelljs": "~0.1.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
npm install -g grunt-cli
|
|
||||||
npm install
|
npm install
|
||||||
|
npm test
|
||||||
grunt jshint execSpecsInNode
|
|
||||||
|
|||||||
Reference in New Issue
Block a user