Skip to content

Commit

Permalink
fix: remove nyc config
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Aug 3, 2018
1 parent cd343dc commit 58f99de
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 117 deletions.
23 changes: 0 additions & 23 deletions packages/context/package.json
Expand Up @@ -40,28 +40,5 @@
"reflect-metadata": "^0.1.12",
"uuid": "^3.2.1",
"xmldom": "^0.1.27"
},
"nyc": {
"include": [
"src/*.ts",
"src/**/*.ts"
],
"exclude": [
"typings",
"**/*.d.ts",
"src/index.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"text-summary",
"json",
"html"
],
"all": true
}
}
2 changes: 1 addition & 1 deletion packages/context/test/mocha.opts
@@ -1,3 +1,3 @@
-t 0
--compilers ts:ts-node/register
--require ts-node/register
test/**/*.test.ts
23 changes: 0 additions & 23 deletions packages/midway-core/package.json
Expand Up @@ -37,28 +37,5 @@
"inflection": "^1.12.0",
"injection": "^0.2.2",
"is-type-of": "^1.2.0"
},
"nyc": {
"include": [
"src/*.ts",
"src/**/*.ts"
],
"exclude": [
"typings",
"**/*.d.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"text",
"json",
"html",
"lcovonly"
],
"all": true
}
}
23 changes: 0 additions & 23 deletions packages/midway-mock/package.json
Expand Up @@ -39,28 +39,5 @@
"is-type-of": "^1.2.0",
"midway-core": "^0.2.2",
"ready-callback": "^2.0.1"
},
"nyc": {
"include": [
"src/*.ts",
"src/**/*.ts"
],
"exclude": [
"typings",
"**/*.d.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"text",
"json",
"html",
"lcovonly"
],
"all": true
}
}
23 changes: 0 additions & 23 deletions packages/midway-web/package.json
Expand Up @@ -41,28 +41,5 @@
"injection": "^0.2.2",
"is-type-of": "^1.2.0",
"midway-core": "^0.2.2"
},
"nyc": {
"include": [
"src/*.ts",
"src/**/*.ts"
],
"exclude": [
"typings",
"**/*.d.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"text",
"json",
"html",
"lcovonly"
],
"all": true
}
}
22 changes: 0 additions & 22 deletions packages/midway/package.json
Expand Up @@ -44,27 +44,5 @@
],
"engines": {
"node": ">= 8.0.0"
},
"nyc": {
"include": [
"src/*.ts",
"src/**/*.ts"
],
"exclude": [
"typings",
"**/*.d.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"text-summary",
"json",
"html"
],
"all": true
}
}
4 changes: 2 additions & 2 deletions scripts/cov.sh
Expand Up @@ -18,11 +18,11 @@ do
rm -rf ".nyc_output"
fi
echo "*****************************************"
echo "********** Pandora Coverage ******* X ***"
echo "********** Midway Coverage ******* X ***"
echo "*****************************************"
echo ">>>>>>" $pkg
echo "*****************************************"
echo "************************ 漏 Pandora.js **"
echo "************************ 漏 Midway.js **"
npm run cov
if [ -d ".nyc_output" ]; then
cp .nyc_output/* $cwd/.nyc_output/
Expand Down

0 comments on commit 58f99de

Please sign in to comment.