Make jshint part of npm test
This commit is contained in:
parent
1e493cc36b
commit
513a4e747b
5
Makefile
5
Makefile
@ -12,12 +12,17 @@ jshint:
|
||||
@./node_modules/.bin/jshint app/ test/ app.js
|
||||
|
||||
test:
|
||||
@echo "***tests***"
|
||||
test/run_tests.sh ${RUNTESTFLAGS} test/unit/*.js test/unit/model/*.js test/acceptance/*.js test/acceptance/export/*.js
|
||||
|
||||
test-unit:
|
||||
@echo "***unit tests***"
|
||||
test/run_tests.sh ${RUNTESTFLAGS} test/unit/*.js test/unit/model/*.js
|
||||
|
||||
test-acceptance:
|
||||
@echo "***acceptance tests***"
|
||||
test/run_tests.sh ${RUNTESTFLAGS} test/acceptance/*.js test/acceptance/export/*.js
|
||||
|
||||
test-all: jshint test
|
||||
|
||||
.PHONY: test
|
||||
|
@ -37,7 +37,7 @@
|
||||
"libxmljs": "~0.8.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "make test"
|
||||
"test": "make test-all"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.8 <0.11",
|
||||
|
Loading…
Reference in New Issue
Block a user