-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
39 lines (39 loc) · 1.59 KB
/
Copy pathpackage.json
File metadata and controls
39 lines (39 loc) · 1.59 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
32
33
34
35
36
37
38
39
{
"name": "pongo",
"version": "0.1.0",
"description": "Pong game with Rust + WebAssembly + Cloudflare Durable Objects",
"scripts": {
"fmt": "cargo fmt",
"clippy": "cargo clippy --workspace -- -D warnings",
"test": "cargo test --workspace",
"test:all": "prettier --check . && cargo fmt --check && cargo check --workspace && cargo clippy --workspace -- -D warnings && cargo test --workspace && npm run check:diagrams",
"format": "prettier --write .",
"build:client": "cd client_wasm && wasm-pack build --target web --out-dir ../worker/pkg/client_wasm",
"build:server": "node scripts/write-sentry-config.mjs && cd lobby_worker && wasm-pack build --target web --out-dir ../worker/pkg && cp index.html style.css *.js manifest.webmanifest ../worker/pkg/ && cp -r icons ../worker/pkg/",
"build": "npm run build:server && npm run build:client && node scripts/stamp-sw.mjs",
"dev": "npx wrangler dev --assets worker/pkg",
"deploy": "npx wrangler deploy",
"logs": "npx wrangler tail pongo --format pretty",
"diagrams": "node scripts/render-diagrams.mjs",
"check:diagrams": "node scripts/check-diagrams.mjs",
"test:e2e": "playwright test",
"test:e2e:install": "playwright install chromium",
"prepare": "husky"
},
"engines": {
"node": ">=20.0.0"
},
"devDependencies": {
"@playwright/test": "^1.50.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.7.4"
},
"lint-staged": {
"*.rs": "rustfmt --edition 2021",
"**/*": "prettier --write --ignore-unknown"
},
"dependencies": {
"@sentry/cloudflare": "^10.57.0"
}
}