-
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.13 KB
/
package.json
File metadata and controls
31 lines (31 loc) · 1.13 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": "pongo",
"version": "0.1.0",
"description": "Pong game with Rust + WebGPU + 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",
"format": "prettier --write .",
"build:client": "cd client_wasm && wasm-pack build --target web --out-dir ../worker/pkg/client_wasm",
"build:server": "cd lobby_worker && wasm-pack build --target web --out-dir ../worker/pkg && cp index.html style.css script.js ../worker/pkg/",
"build": "npm run build:server && npm run build:client",
"dev": "npx wrangler dev --assets worker/pkg",
"deploy": "npx wrangler deploy",
"logs": "npx wrangler tail pongo --format pretty",
"prepare": "husky"
},
"engines": {
"node": ">=20.0.0"
},
"devDependencies": {
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.7.4"
},
"lint-staged": {
"*.rs": "rustfmt",
"**/*": "prettier --write"
}
}