-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
31 lines (31 loc) · 1.74 KB
/
Copy pathpackage.json
File metadata and controls
31 lines (31 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"name": "zeroproxy",
"version": "0.1.0",
"private": true,
"type": "commonjs",
"scripts": {
"build": "node scripts/build.mjs",
"build:web": "node scripts/build.mjs --web-only",
"build:kernel": "node scripts/build.mjs --kernel-only",
"build:server": "node scripts/build.mjs --server-only",
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
"test": "node scripts/test.mjs",
"test:js": "node scripts/test.mjs js",
"test:e2e": "node scripts/test.mjs e2e",
"test:wasm": "env -i PATH=\"$PATH\" HOME=\"$HOME\" GOCACHE=\"$(go env GOCACHE)\" GOMODCACHE=\"$(go env GOMODCACHE)\" GOOS=js GOARCH=wasm go test -exec \"$(go env GOROOT)/lib/wasm/go_js_wasm_exec\" ./cmd/wasm-kernel/... ./internal/swhttp/...",
"test:corpus": "node scripts/compat-corpus.mjs",
"test:corpus:release": "node scripts/compat-corpus.mjs --mode both --release-out test/e2e/representative-sites.release.json --fail-on-release-gate",
"lint": "npm run lint:go && npm run lint:rust && npm run lint:js",
"lint:go": "golangci-lint config verify && golangci-lint run --timeout=5m && GOOS=js GOARCH=wasm golangci-lint run --timeout=5m",
"lint:rust": "cargo clippy --manifest-path rewriter-rs/Cargo.toml --all-targets -- -D warnings && cargo fmt --manifest-path rewriter-rs/Cargo.toml --all --check",
"lint:js": "biome ci web scripts test",
"fmt:check": "golangci-lint fmt --diff && cargo fmt --manifest-path rewriter-rs/Cargo.toml --all --check",
"fmt:fix": "golangci-lint fmt && cargo fmt --manifest-path rewriter-rs/Cargo.toml --all && biome format --write scripts test"
},
"devDependencies": {
"@biomejs/biome": "^2.4.16",
"jquery": "^3.7.1",
"puppeteer": "^25.0.4",
"vite": "^7.3.5"
}
}