Remove JSHint/Istanbul from package.json

JSHint is very rarely used, and Istanbul only on Travis to generate coverage
reports for CodeClimate.

So instead of bundling it with Cylon at all times, it will now be installed
globally by Travis prior to running tests.

The Make tasks for JSHint/Istanbul now also assume both packages are installed
globally, rather than in the local node_modules directory.
This commit is contained in:
Andrew Stewart 2014-06-04 16:01:47 -07:00
parent 9b352feeae
commit bc4a1f5cea
3 changed files with 6 additions and 8 deletions

View File

@ -1,6 +1,6 @@
language: node_js
script:
- npm install -g codeclimate-test-reporter
- npm install -g istanbul codeclimate-test-reporter
- make cover
- CODECLIMATE_REPO_TOKEN=d3aad610220b6eaf4f51e38393c1b62586b1d68b898b42e418d9c2a8e0a7cb0d codeclimate < coverage/lcov.info
node_js:

View File

@ -8,14 +8,14 @@ VERSION := $(shell node -e "console.log(require('./package.json').version)")
test:
@$(BIN)/mocha --colors $(TEST_FILES)
cover:
@$(BIN)/istanbul cover $(BIN)/_mocha $(TEST_FILES) --report lcovonly -- -R spec
bdd:
@$(BIN)/mocha --colors -R spec $(TEST_FILES)
cover:
@istanbul cover $(BIN)/_mocha $(TEST_FILES) --report lcovonly -- -R spec
lint:
@$(BIN)/jshint ./lib
@jshint ./lib
release:
@git tag -m "$(VERSION)" v$(VERSION)

View File

@ -39,9 +39,7 @@
"sinon-chai": "2.5.0",
"chai": "1.9.1",
"mocha": "1.18.2",
"sinon": "1.9.1",
"jshint": "2.5.0",
"istanbul": "0.2.10"
"sinon": "1.9.1"
},
"dependencies": {