Add test script to package.json

- Use `npm test` in travis-node-script
This commit is contained in:
Christopher Amavisca
2015-02-04 16:55:07 -08:00
parent 6177a4aeff
commit a84e0cd8ef
2 changed files with 10 additions and 8 deletions

View File

@@ -12,18 +12,22 @@
"tdd",
"bdd"
],
"scripts": {
"test": "./node_modules/.bin/grunt jshint execSpecsInNode"
},
"description": "Official packaging of Jasmine's core files for use by Node.js projects.",
"homepage": "http://jasmine.github.io",
"main": "./lib/jasmine-core.js",
"devDependencies": {
"glob": "~3.2.9",
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-cli": "^0.1.13",
"grunt-contrib-compass": "~0.6.0",
"grunt-contrib-compress": "~0.5.2",
"shelljs": "~0.1.4",
"glob": "~3.2.9",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-jshint": "~0.7.0",
"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"
}
}

View File

@@ -1,6 +1,4 @@
#!/bin/bash -e
npm install -g grunt-cli
npm install
grunt jshint execSpecsInNode
npm test