-
Notifications
You must be signed in to change notification settings - Fork 158
/
package.json
86 lines (86 loc) · 4.63 KB
/
package.json
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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "quadratic",
"version": "0.5.4",
"author": {
"name": "David Kircos",
"email": "david@quadratichq.com",
"url": "https://quadratichq.com"
},
"repository": "https://github.com/quadratichq/quadratic.git",
"private": true,
"workspaces": [
"quadratic-api",
"quadratic-shared",
"quadratic-client",
"quadratic-files",
"quadratic-multiplayer",
"quadratic-rust-client",
"quadratic-client",
"quadratic-kernels/python-wasm"
],
"type": "module",
"scripts": {
"start": "node dev",
"start:services-local": "node dev -L",
"dev": "node dev -l",
"dev:services-local": "node dev -l -L",
"api:start": "npm start --workspace=quadratic-api",
"clean": "npm exec --workspaces -- npx rimraf node_modules && npx rimraf node_modules",
"lint:client": "cd quadratic-client && npm run lint:ts && npm run lint:eslint && lint:prettier && lint:clippy",
"build:wasm:types": "cd quadratic-core && cargo run --bin export_types --features js",
"watch:wasm:javascript": "cd quadratic-core && cargo watch -s 'wasm-pack build --dev --target web --out-dir ../quadratic-client/src/app/quadratic-core --weak-refs'",
"build:wasm:javascript": "cd quadratic-core && wasm-pack build --dev --target web --out-dir ../quadratic-client/src/app/quadratic-core --weak-refs",
"watch:wasm:perf:javascript": "cd quadratic-core && cargo watch -s 'wasm-pack build --target web --out-dir ../quadratic-client/src/app/quadratic-core --weak-refs'",
"build:wasm:perf:javascript": "cd quadratic-core && wasm-pack build --target web --out-dir ../quadratic-client/src/app/quadratic-core --weak-refs",
"watch:rust-client": "cd quadratic-rust-client && cargo watch -s 'wasm-pack build --dev --target web --out-dir ../quadratic-client/src/app/quadratic-rust-client --weak-refs'",
"build:rust-client": "cd quadratic-rust-client && wasm-pack build --target web --out-dir ../quadratic-client/src/app/quadratic-rust-client --weak-refs",
"watch:python": "cd quadratic-kernels/python-wasm && npm run dev",
"build:python": "./quadratic-kernels/python-wasm/package.sh",
"build:file:blank": "cd quadratic-core && cargo run --bin generate_blank_current_file",
"coverage:wasm:gen": "cd quadratic-core && cd quadratic-core && CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='coverage/cargo-test-%p-%m.profraw' cargo test",
"coverage:wasm:html": "cd quadratic-core && cd quadratic-core && grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore 'src/wasm_bindings/*' --ignore 'src/bin/*' --ignore '../*' --ignore '/*' -o coverage/html",
"coverage:wasm:view": "open quadratic-core/coverage/html/index.html",
"test:wasm": "cd quadratic-core && cargo test",
"test:ts": "cd quadratic-client && vitest",
"test:api": "npm run docker:test:dev --workspace=quadratic-api",
"test:multiplayer": "npm run test --workspace=quadratic-multiplayer",
"test:python": "cd quadratic-kernels/python-wasm && ./test.sh",
"benchmark:rust": "cd quadratic-core && cargo bench",
"lint:rust": "cargo clippy --all-targets --all-features -- -D warnings",
"lint:ts": "npm run lint:ts --workspace=quadratic-client",
"lint:prettier": "npm run lint:prettier --workspace=quadratic-client",
"lint:clippy": "cd quadratic-core && cargo clippy --all-targets --all-features -- -D warnings",
"lint:clippy:fix": "cd quadratic-core && cargo clippy --all-targets --all-features --fix -- -D warnings",
"heroku-postbuild": "npm run build --workspace=quadratic-api",
"kill": "kill-port 3000 && kill-port 3001 && kill-port 8001 && kill-port 8000",
"prisma:migrate": "cd quadratic-api && npm run prisma:migrate",
"docker:up": "docker compose up -d --wait && npm run prisma:migrate --workspace=quadratic-api",
"docker:down": "docker compose down",
"docker:down:kill-volumes": "docker compose down -v",
"copy:esbuild": "cp -f node_modules/esbuild-wasm/esbuild.wasm quadratic-client/public/",
"gen:pyright:initialization": "npm run gen:pyright:worker --workspace=quadratic-kernels/python-wasm",
"gen:pyright:worker": "npm run gen:pyright:worker --workspace=quadratic-kernels/python-wasm"
},
"dependencies": {
"@ory/kratos-client": "^1.2.1",
"tsc": "^2.0.4",
"vitest": "^1.5.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/jest": "^29.5.3",
"chalk": "^5.3.0",
"commander": "^11.1.0",
"concurrently": "^6.5.1",
"eslint": "^8.57.0",
"jest": "^29.6.1",
"kill-port": "^2.0.1",
"prettier": "2.8.3",
"tree-kill": "^1.2.2",
"ts-jest": "^29.1.1",
"typescript": "^5.4.3"
},
"engines": {
"node": "18.x"
}
}