Skip to content
forked from madler/zlib

Commit 7da25cf

Browse files
committed
refactor: migrate to Deno-first build system
- Remove vitest test infrastructure - Simplify tasks to use build-dual.sh - Remove Node.js testing dependencies - Consolidate to Deno test suite
1 parent f067dbb commit 7da25cf

File tree

4 files changed

+8
-191
lines changed

4 files changed

+8
-191
lines changed

deno.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,18 @@
1414
"fs": "data:application/javascript,export const readFileSync = () => { throw new Error('fs not supported'); }; export default { readFileSync };"
1515
},
1616
"tasks": {
17-
"demo": "deno run --allow-read --allow-write demo-deno.ts",
18-
"test": "deno test --allow-read --no-check tests/deno/",
19-
"test:basic": "deno test --allow-read --no-check tests/deno/basic.test.ts",
20-
"build": "deno task build:wasm:meson",
21-
"build:main:meson": "meson setup build-main --cross-file=scripts/emscripten.cross --prefix=$PWD/install -Dlibdir=wasm -Dbindir=wasm && meson compile -C build-main zlib-main && meson install -C build-main",
22-
"build:side:meson": "meson setup build-side --cross-file=scripts/emscripten.cross --prefix=$PWD/install -Dlibdir=wasm -Dbindir=wasm && meson compile -C build-side zlib-side && meson install -C build-side",
23-
"build:wasm:meson": "deno task build:main:meson && deno task build:side:meson",
17+
"demo": "deno run --allow-read demo-deno.ts",
18+
"test": "deno test --allow-read tests/deno/",
19+
"test:basic": "deno test --allow-read tests/deno/basic.test.ts",
20+
"bench": "deno bench --allow-read bench/",
21+
"build:wasm": "./build-dual.sh all",
2422
"build:npm": "deno run --allow-all _build_npm.ts",
2523
"build:all": "deno task build:wasm && deno task build:npm",
26-
"benchmark": "deno run --allow-read --allow-write bench/compression.bench.ts",
24+
"validate:all": "deno task test && deno task bench",
2725
"publish:npm": "deno task build:all && cd npm && npm publish",
2826
"publish:dry": "deno task build:all && cd npm && npm publish --dry-run",
2927
"clean": "rm -rf build-* install/ dist/ npm/",
30-
"check": "deno check src/lib/index.ts",
31-
"check:all": "deno check src/lib/index.ts && deno check demo-deno.ts && deno check bench/compression.bench.ts && deno check _build_npm.ts"
28+
"check": "deno check src/lib/index.ts"
3229
},
3330
"compilerOptions": {
3431
"lib": ["deno.ns", "dom", "es2022", "deno.unstable"],

package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030
"build": "tsc --project . --skipLibCheck && ./build-dual.sh all && mkdir -p build && cp install/wasm/* build/",
3131
"build:wasm": "./build-dual.sh all",
3232
"type-check": "tsc --project . --noEmit --skipLibCheck",
33-
"test": "vitest run",
34-
"test:coverage": "vitest run --coverage",
35-
"benchmark": "echo 'Benchmarks not implemented yet'",
36-
"build:docs": "echo 'Documentation generation not implemented yet'",
3733
"clean": "./build-dual.sh clean && rm -rf dist/",
3834
"prepublishOnly": "npm run build"
3935
},
@@ -63,10 +59,7 @@
6359
},
6460
"devDependencies": {
6561
"@types/node": "^22.0.0",
66-
"@vitest/coverage-v8": "^3.0.0",
67-
"@vitest/ui": "^3.0.0",
68-
"typescript": "^5.7.0",
69-
"vitest": "^3.0.0"
62+
"typescript": "^5.7.0"
7063
},
7164
"files": [
7265
"dist/",

tests/zlib.test.ts

Lines changed: 0 additions & 149 deletions
This file was deleted.

vitest.config.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)