Add coverage command

This commit is contained in:
Leonid Logvinov 2017-05-24 16:23:54 +02:00
parent 27b57da329
commit abb3dcdaa2
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4
2 changed files with 8 additions and 2 deletions

3
circleci.yml Normal file
View File

@ -0,0 +1,3 @@
test:
override:
- npm run coverage

View File

@ -16,7 +16,8 @@
"build:es6": "tsc -m es6 --outDir lib-esm", "build:es6": "tsc -m es6 --outDir lib-esm",
"build": "npm run clean && run-p build:*", "build": "npm run clean && run-p build:*",
"lint": "tslint src/ts/**/*", "lint": "tslint src/ts/**/*",
"test": "run-s clean build:commonjs && mocha lib/test/**/*.js" "test": "run-s clean build:commonjs && mocha lib/test/**/*.js",
"coverage": "nyc npm run test --all"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -33,10 +34,12 @@
"chai": "^3.5.0", "chai": "^3.5.0",
"mocha": "^3.4.1", "mocha": "^3.4.1",
"npm-run-all": "^4.0.2", "npm-run-all": "^4.0.2",
"nyc": "^10.3.2",
"shx": "^0.2.2", "shx": "^0.2.2",
"source-map-support": "^0.4.15",
"tslint": "^5.3.2", "tslint": "^5.3.2",
"tslint-config-0xproject": "^0.0.2", "tslint-config-0xproject": "^0.0.2",
"typescript": "^2.3.3", "typescript": "^2.3.3",
"webpack": "^2.6.0" "webpack": "^2.6.0"
} }
} }