@browsercore/dev 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +63 -53
- package/dist/coverage-md.d.ts.map +1 -1
- package/dist/coverage-md.js +20 -22
- package/dist/coverage-md.js.map +1 -1
- package/package.json +64 -65
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jens Verneuer
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE
|
package/README.md
CHANGED
|
@@ -1,76 +1,86 @@
|
|
|
1
1
|
# @browsercore/dev
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
non-extendable GitHub files arrive via a sync script.
|
|
3
|
+
[](https://www.npmjs.com/package/@browsercore/dev)
|
|
4
|
+
[](https://github.com/jverneuer/browsercore-dev/blob/main/COVERAGE.md)
|
|
5
|
+
[](LICENSE)
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
Shared build, lint, test, and coverage tooling for every `@browsercore/*` package. One published package is the single source of truth; consumers extend it live via npm.
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
| --- | --- |
|
|
12
|
-
| `tsconfig` strict flags | `tsconfig.json` `"extends": "@browsercore/dev/tsconfig.base.json"` |
|
|
13
|
-
| `vitest` config | factory import: `definePackageConfig({ name })` from `@browsercore/dev/vitest` |
|
|
14
|
-
| `.oxlintrc.json` → `oxlint.config.ts` | import the base object from `@browsercore/dev/oxlint` |
|
|
15
|
-
| `coverage-md` (coverage report generator) | npm `bin` |
|
|
16
|
-
| `CODING_STANDARDS.md`, `.github/{ci.yml,ruleset.json,bootstrap-ruleset.sh}` | `scripts/sync.mjs` (GitHub reads only each repo's own `.github/`) |
|
|
17
|
-
|
|
18
|
-
Why a TS import for oxlint rather than `.oxlintrc.json` `extends`: oxlint's JSON
|
|
19
|
-
`extends` resolves only relative file paths, not `node_modules`
|
|
20
|
-
(see oxc-project/oxc#15538). The `oxlint.config.ts` form imports the config object
|
|
21
|
-
directly, which resolves through `node_modules`.
|
|
22
|
-
|
|
23
|
-
## Consumer adoption (per repo)
|
|
9
|
+
## Install
|
|
24
10
|
|
|
25
11
|
```sh
|
|
26
|
-
# 1. depend on it (use the npm version once published; locally: file:../dev)
|
|
27
12
|
npm install -D @browsercore/dev
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
28
16
|
|
|
29
|
-
|
|
30
|
-
# { "extends": "@browsercore/dev/tsconfig.base.json",
|
|
31
|
-
# "compilerOptions": { "rootDir": "src", "outDir": "dist" },
|
|
32
|
-
# "include": ["src/**/*.ts"], "exclude": ["node_modules","dist","tests","scripts"] }
|
|
17
|
+
### tsconfig
|
|
33
18
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"extends": "@browsercore/dev/tsconfig.base.json",
|
|
22
|
+
"compilerOptions": { "rootDir": "src", "outDir": "dist" },
|
|
23
|
+
"include": ["src/**/*.ts"],
|
|
24
|
+
"exclude": ["node_modules", "dist", "tests"]
|
|
25
|
+
}
|
|
26
|
+
```
|
|
37
27
|
|
|
38
|
-
|
|
39
|
-
# import { defineConfig } from "oxlint";
|
|
40
|
-
# import base from "@browsercore/dev/oxlint";
|
|
41
|
-
# export default defineConfig({ extends: [base] });
|
|
28
|
+
For builds that emit declarations, extend `@browsercore/dev/tsconfig.build.base.json` instead (layers `declaration`, `declarationMap`, `sourceMap` on top of the base).
|
|
42
29
|
|
|
43
|
-
|
|
30
|
+
### vitest
|
|
44
31
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
```ts
|
|
33
|
+
import { definePackageConfig } from "@browsercore/dev/vitest";
|
|
34
|
+
|
|
35
|
+
export default definePackageConfig({ name: "<pkg>" });
|
|
48
36
|
```
|
|
49
37
|
|
|
50
|
-
|
|
51
|
-
|
|
38
|
+
`definePackageConfig` wires in the shared reporters (`text`, `html`, `json-summary`), v8 coverage over `src/**/*.ts`, and 30s test/hook timeouts. The `html` + `json-summary` artifacts are what the coverage report reads. Pass `{ include, coverage }` to override test globs or append coverage excludes.
|
|
39
|
+
|
|
40
|
+
### oxlint
|
|
41
|
+
|
|
42
|
+
oxlint's JSON `extends` only resolves relative file paths (not `node_modules`), so the base is consumed via a TS import:
|
|
52
43
|
|
|
53
|
-
|
|
44
|
+
```ts
|
|
45
|
+
import { defineConfig } from "oxlint";
|
|
46
|
+
import base from "@browsercore/dev/oxlint";
|
|
54
47
|
|
|
48
|
+
export default defineConfig({ extends: [base] });
|
|
55
49
|
```
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
50
|
+
|
|
51
|
+
Type-aware linting (`--type-aware`) requires `oxlint-tsgolint` in the consumer's devDependencies.
|
|
52
|
+
|
|
53
|
+
### coverage-md
|
|
54
|
+
|
|
55
|
+
After running vitest with coverage, generate a `COVERAGE.md` report + shields.io badge:
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
npx vitest run --coverage
|
|
59
|
+
npx coverage-md
|
|
65
60
|
```
|
|
66
61
|
|
|
67
|
-
|
|
62
|
+
The bin reads `coverage/coverage-summary.json` (written by the `json-summary` reporter) and writes `COVERAGE.md` and `coverage/badge.json` to the package root.
|
|
63
|
+
|
|
64
|
+
## Scripts
|
|
65
|
+
|
|
66
|
+
| Command | Runs |
|
|
67
|
+
| --- | --- |
|
|
68
|
+
| `npm run typecheck` | `tsc -p tsconfig.json --noEmit` |
|
|
69
|
+
| `npm run lint` | `oxlint --type-aware src/` |
|
|
70
|
+
| `npm test` | `vitest run` |
|
|
71
|
+
| `npm run build` | `tsc -p tsconfig.build.json` |
|
|
72
|
+
|
|
73
|
+
## Coverage report
|
|
74
|
+
|
|
75
|
+
To produce a coverage report:
|
|
68
76
|
|
|
69
77
|
```sh
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
npm run build
|
|
73
|
-
npm run lint -- --deny-warnings
|
|
78
|
+
npx vitest run --coverage
|
|
79
|
+
node scripts/coverage-md.mjs # writes COVERAGE.md + coverage/badge.json
|
|
74
80
|
```
|
|
75
81
|
|
|
76
|
-
|
|
82
|
+
Provider is `@vitest/coverage-v8`. The report is generated from `coverage/coverage-summary.json`.
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage-md.d.ts","sourceRoot":"","sources":["../src/coverage-md.ts"],"names":[],"mappings":"AAAA;;;;GAI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U,QAAS,MAAM,KAAG,MACyC,CAAC;AAEnF,eAAO,MAAM,sBAAsB,SACzB,eAAe,eACR,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC,KAClE,MA4BF,CAAC;AAEF,eAAO,MAAM,WAAW,kBACL,MAAM,KACtB;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAM1F,CAAC"}
|
package/dist/coverage-md.js
CHANGED
|
@@ -13,30 +13,28 @@ export const renderMetric = (m) => `${m.pct}% (${m.covered}/${m.total})`;
|
|
|
13
13
|
export const badgeColor = (pct) => pct >= 90 ? "brightgreen" : pct >= 75 ? "green" : pct >= 50 ? "yellow" : "red";
|
|
14
14
|
export const renderCoverageMarkdown = (data, fileEntries) => {
|
|
15
15
|
const total = data.total;
|
|
16
|
-
const
|
|
17
|
-
lines.push("# Coverage report");
|
|
18
|
-
lines.push("");
|
|
19
|
-
lines.push("Generated from `coverage-summary.json` by `coverage-md` (@browsercore/dev).");
|
|
20
|
-
lines.push("");
|
|
21
|
-
lines.push("## Total");
|
|
22
|
-
lines.push("");
|
|
23
|
-
lines.push("| Metric | Coverage |");
|
|
24
|
-
lines.push("| --- | --- |");
|
|
25
|
-
for (const { label, key } of METRICS) {
|
|
26
|
-
lines.push(`| ${label} | ${renderMetric(total[key])} |`);
|
|
27
|
-
}
|
|
28
|
-
lines.push("");
|
|
29
|
-
lines.push("## Per-file");
|
|
30
|
-
lines.push("");
|
|
16
|
+
const totalRows = METRICS.map(({ label, key }) => `| ${label} | ${renderMetric(total[key])} |`);
|
|
31
17
|
const header = `| File | ${METRICS.map((m) => m.label).join(" | ")} |`;
|
|
32
18
|
const sep = `| --- | ${METRICS.map(() => "---").join(" | ")} |`;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
19
|
+
const fileRows = fileEntries.map(({ file, m }) => `| \`${file}\` | ${METRICS.map((met) => renderMetric(m[met.key])).join(" | ")} |`);
|
|
20
|
+
return [
|
|
21
|
+
"# Coverage report",
|
|
22
|
+
"",
|
|
23
|
+
"Generated from `coverage-summary.json` by `coverage-md` (@browsercore/dev).",
|
|
24
|
+
"",
|
|
25
|
+
"## Total",
|
|
26
|
+
"",
|
|
27
|
+
"| Metric | Coverage |",
|
|
28
|
+
"| --- | --- |",
|
|
29
|
+
...totalRows,
|
|
30
|
+
"",
|
|
31
|
+
"## Per-file",
|
|
32
|
+
"",
|
|
33
|
+
header,
|
|
34
|
+
sep,
|
|
35
|
+
...fileRows,
|
|
36
|
+
"",
|
|
37
|
+
].join("\n");
|
|
40
38
|
};
|
|
41
39
|
export const renderBadge = (statementsPct) => ({
|
|
42
40
|
schemaVersion: 1,
|
package/dist/coverage-md.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage-md.js","sourceRoot":"","sources":["../src/coverage-md.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAsBH,MAAM,CAAC,MAAM,OAAO,GAAa;IAC7B,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE;IAC1C,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE;IACtC,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE;IACxC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAe,EAAU,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC;AAE/F,MAAM,CAAC,MAAM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"}
|
package/package.json
CHANGED
|
@@ -1,70 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
"homepage": "https://github.com/jverneuer/browsercore-dev#readme",
|
|
11
|
-
"bugs": {
|
|
12
|
-
"url": "https://github.com/jverneuer/browsercore-dev/issues"
|
|
13
|
-
},
|
|
14
|
-
"type": "module",
|
|
15
|
-
"main": "./dist/index.js",
|
|
16
|
-
"types": "./dist/index.d.ts",
|
|
17
|
-
"sideEffects": false,
|
|
18
|
-
"exports": {
|
|
19
|
-
".": {
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
|
-
"import": "./dist/index.js"
|
|
2
|
+
"name": "@browsercore/dev",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Shared build, lint, test, and coverage tooling for the @browsercore/* packages.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/jverneuer/browsercore-dev.git"
|
|
22
9
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
"homepage": "https://github.com/jverneuer/browsercore-dev#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/jverneuer/browsercore-dev/issues"
|
|
26
13
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./vitest": {
|
|
24
|
+
"types": "./dist/vitest.d.ts",
|
|
25
|
+
"import": "./dist/vitest.js"
|
|
26
|
+
},
|
|
27
|
+
"./oxlint": {
|
|
28
|
+
"types": "./dist/oxlint.d.ts",
|
|
29
|
+
"import": "./dist/oxlint.js"
|
|
30
|
+
},
|
|
31
|
+
"./tsconfig.base.json": "./tsconfig.base.json",
|
|
32
|
+
"./tsconfig.build.base.json": "./tsconfig.build.base.json",
|
|
33
|
+
"./CODING_STANDARDS.md": "./CODING_STANDARDS.md"
|
|
30
34
|
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"oxlint": "^1.76.0",
|
|
66
|
-
"oxlint-tsgolint": "7.0.2001",
|
|
67
|
-
"typescript": "^7.0.0",
|
|
68
|
-
"vitest": "^4.1.10"
|
|
69
|
-
}
|
|
35
|
+
"bin": {
|
|
36
|
+
"coverage-md": "./bin/coverage-md.mjs"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"bin",
|
|
41
|
+
"tsconfig.base.json",
|
|
42
|
+
"tsconfig.build.base.json",
|
|
43
|
+
"CODING_STANDARDS.md",
|
|
44
|
+
"LICENSE"
|
|
45
|
+
],
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=26.0.0"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsc -p tsconfig.build.json",
|
|
51
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
52
|
+
"test": "vitest run",
|
|
53
|
+
"lint": "oxlint --type-aware src/",
|
|
54
|
+
"clean": "rm -rf dist coverage",
|
|
55
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"oxlint": "^1.76.0",
|
|
59
|
+
"vitest": "^4.1.10"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@types/node": "^26.1.2",
|
|
63
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
64
|
+
"oxlint": "^1.76.0",
|
|
65
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
66
|
+
"typescript": "^7.0.0",
|
|
67
|
+
"vitest": "^4.1.10"
|
|
68
|
+
}
|
|
70
69
|
}
|