mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-21 12:45:50 +00:00
update istanbul to nyc (their new cli) to get typescript coverage
This commit is contained in:
committed by
Elliot Lee
parent
e1630e1693
commit
01ecfb0a07
3
.gitignore
vendored
3
.gitignore
vendored
@@ -61,3 +61,6 @@ out/
|
||||
scripts/cache
|
||||
|
||||
.eslintrc
|
||||
|
||||
# nyc (istanbul)
|
||||
.nyc_output
|
||||
|
||||
10
.nycrc
Normal file
10
.nycrc
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["src/**/*.d.ts"],
|
||||
"extension": [".ts"],
|
||||
"require": ["ts-node/register"],
|
||||
"reporter": ["text-summary", "html"],
|
||||
"sourceMap": true,
|
||||
"instrument": true,
|
||||
"cache": true
|
||||
}
|
||||
@@ -40,7 +40,6 @@
|
||||
"gulp-bump": "^0.1.13",
|
||||
"gulp-rename": "^1.2.0",
|
||||
"http-server": "^0.8.5",
|
||||
"istanbul": "^1.1.0-alpha.1",
|
||||
"jayson": "^1.2.2",
|
||||
"json-loader": "^0.5.2",
|
||||
"json-schema-to-markdown-table": "^0.4.0",
|
||||
@@ -49,6 +48,8 @@
|
||||
"mocha-junit-reporter": "^1.9.1",
|
||||
"null-loader": "^0.1.1",
|
||||
"ts-loader": "^3.2.0",
|
||||
"nyc": "^11.3.0",
|
||||
"source-map-support": "^0.5.0",
|
||||
"ts-node": "^3.3.0",
|
||||
"typescript": "^2.6.1",
|
||||
"uglifyjs-webpack-plugin": "^1.1.4",
|
||||
@@ -65,7 +66,7 @@
|
||||
"watch": "tsc -w",
|
||||
"compile-with-source-maps": "babel -D --optional runtime -s -t -d dist/npm/ src/",
|
||||
"prepublish": "npm run clean && npm run compile",
|
||||
"test": "istanbul cover _mocha",
|
||||
"test": "nyc mocha",
|
||||
"coveralls": "cat ./coverage/lcov.info | coveralls",
|
||||
"lint": "if ! [ -f .eslintrc ]; then curl -o .eslintrc 'https://raw.githubusercontent.com/ripple/javascript-style-guide/es6/eslintrc'; echo 'parser: babel-eslint' >> .eslintrc; fi; eslint -c .eslintrc src/",
|
||||
"perf": "./scripts/perf_test.sh",
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
--reporter spec --timeout 5000 --slow 500 --require ts-node/register
|
||||
--reporter spec
|
||||
--timeout 5000
|
||||
--slow 500
|
||||
--require ts-node/register
|
||||
--require source-map-support/register
|
||||
|
||||
Reference in New Issue
Block a user