mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
chore: switch from nyc to c8
This commit is contained in:
parent
592be94955
commit
0f5d71d0df
5
.c8rc.json
Normal file
5
.c8rc.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"all": true,
|
||||
"include": ["packages/*/src/**/*.js"],
|
||||
"reporter": ["lcov", "text-summary"]
|
||||
}
|
||||
16
.nycrc
16
.nycrc
@ -1,16 +0,0 @@
|
||||
{
|
||||
"all": true,
|
||||
"cache": true,
|
||||
"include": [
|
||||
"packages/*/src/**/*.js"
|
||||
],
|
||||
"instrument": false,
|
||||
"reporter": [
|
||||
"lcov",
|
||||
"text-summary"
|
||||
],
|
||||
"require": [
|
||||
"@babel/register"
|
||||
],
|
||||
"sourceMap": false
|
||||
}
|
||||
@ -6,7 +6,7 @@ module.exports = api => ({
|
||||
{
|
||||
loose: true,
|
||||
targets: {
|
||||
node: "10"
|
||||
node: "16"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -22,10 +22,5 @@ module.exports = api => ({
|
||||
]
|
||||
: []
|
||||
}
|
||||
],
|
||||
env: {
|
||||
test: {
|
||||
plugins: ["babel-plugin-istanbul"]
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
1064
package-lock.json
generated
1064
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -8,14 +8,14 @@
|
||||
"build": "npm run build --ws",
|
||||
"build:types": "npm run build:types --ws --if-present",
|
||||
"change": "changeset add",
|
||||
"ci:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
|
||||
"ci:test": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" MARKO_DEBUG=1 NODE_ENV=test nyc --reporter=text npm test",
|
||||
"ci:report": "c8 report --reporter=text-lcov > coverage.lcov && codecov",
|
||||
"ci:test": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" MARKO_DEBUG=1 c8 npm test",
|
||||
"format": "npm run lint:eslint -- --fix && npm run lint:prettier -- --write && sort-package-json './{,packages/*/}package.json' --quiet",
|
||||
"lint": "npm run lint:eslint && npm run lint:prettier -- -l",
|
||||
"lint:eslint": "eslint -f visualstudio .",
|
||||
"lint:prettier": "prettier \"./**/*{.ts,.js,.json,.md,.yml}\"",
|
||||
"publish": "ENTRY=main:npm npm run set-entry && npm run build && changeset publish && ENTRY=main:dev npm run set-entry && npm ci",
|
||||
"report": "nyc report --reporter=html && open ./coverage/index.html",
|
||||
"report": "open ./coverage/lcov-report/index.html",
|
||||
"set-entry": "npm exec --ws -c 'dot-json package.json main $(dot-json package.json $ENTRY)'",
|
||||
"test": "mocha \"packages/*/test/{*.test.js,*/*.test.js}\"",
|
||||
"test:watch": "npm run mocha -- --recursive --watch",
|
||||
@ -34,6 +34,7 @@
|
||||
"babel-plugin-istanbul": "^6.1.1",
|
||||
"babel-plugin-minprops": "^2.0.1",
|
||||
"bluebird": "^3.7.2",
|
||||
"c8": "^8.0.0",
|
||||
"chai": "^4.3.4",
|
||||
"cross-env": "^7.0.3",
|
||||
"diffable-html": "^4.0.0",
|
||||
@ -48,7 +49,6 @@
|
||||
"lint-staged": "^10.5.4",
|
||||
"mocha": "^8.3.2",
|
||||
"mocha-autotest": "^1.1.0",
|
||||
"nyc": "^15.1.0",
|
||||
"prettier": "^2.2.1",
|
||||
"shell-quote": "^1.7.2",
|
||||
"sort-package-json": "^2.4.1",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user