-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
68 lines (68 loc) · 4.86 KB
/
package.json
File metadata and controls
68 lines (68 loc) · 4.86 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
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
{
"name": "treecrdt-monorepo",
"version": "0.0.1",
"private": true,
"workspaces": [
"packages/*",
"packages/sync-protocol/*",
"packages/sync-protocol/*/*",
"packages/treecrdt-wa-sqlite/e2e",
"examples/*"
],
"scripts": {
"lint": "echo \"TODO: add linting\"",
"fmt:rust": "cargo fmt --all",
"fmt:ts": "prettier --write \"packages/**/*.{ts,tsx,cts,mts}\"",
"fmt:check:rust": "cargo fmt --check --all",
"fmt:check:ts": "prettier --check \"packages/**/*.{ts,tsx,cts,mts}\"",
"clippy": "cargo clippy --workspace --all-targets -- -D warnings -D clippy::panic -D clippy::todo -D clippy::unimplemented",
"clippy:fix": "cargo clippy --fix --workspace --all-targets -- -D warnings -D clippy::panic -D clippy::todo -D clippy::unimplemented",
"proto:generate": "buf generate",
"build:ext:wasm": "cargo build -p treecrdt-sqlite-ext --target wasm32-unknown-emscripten --release --no-default-features --features static-link",
"build:ext:native": "cargo rustc -p treecrdt-sqlite-ext --release --no-default-features --features \"ext-sqlite rusqlite-storage\" -- --crate-type=cdylib",
"build": "pnpm -r --if-present run build",
"test:browser": "pnpm -C packages/treecrdt-wa-sqlite/e2e test:e2e",
"test:native-node": "pnpm -C packages/sync-protocol/material/sqlite run test && pnpm -C packages/treecrdt-sqlite-node run test",
"benchmark": "rm -rf benchmarks && mkdir -p benchmarks && pnpm run benchmark:web && pnpm run benchmark:sqlite-node:ops && pnpm run benchmark:sqlite-node:note-paths && pnpm run benchmark:sync:direct && pnpm run benchmark:wasm && pnpm run benchmark:postgres && pnpm run benchmark:core && pnpm run benchmark:aggregate",
"benchmark:sqlite-node": "pnpm run benchmark:sqlite-node:ops && pnpm run benchmark:sqlite-node:note-paths && pnpm run benchmark:sqlite-node:sync",
"benchmark:core": "cargo bench -p treecrdt-core --bench core --features bench",
"benchmark:aggregate": "node scripts/aggregate-bench.mjs",
"benchmark:postgres": "(if [ -n \"$TREECRDT_POSTGRES_URL\" ]; then pnpm -C packages/treecrdt-postgres-napi run benchmark; else echo \"Skipping postgres-napi benchmark (TREECRDT_POSTGRES_URL not set)\"; fi)",
"benchmark:sqlite-node:note-paths": "pnpm -C packages/treecrdt-sqlite-node run benchmark:note-paths",
"benchmark:sqlite-node:ops": "pnpm -C packages/treecrdt-sqlite-node run benchmark:ops",
"benchmark:sqlite-node:sync": "pnpm run benchmark:sync:direct",
"benchmark:sync": "node scripts/run-sync-bench.mjs",
"benchmark:sync:help": "node scripts/run-sync-bench.mjs --help",
"benchmark:sync:direct": "node scripts/run-sync-bench.mjs direct",
"benchmark:sync:local": "node scripts/run-sync-bench.mjs local",
"benchmark:sync:prime": "node scripts/run-sync-bench.mjs prime",
"benchmark:sync:upload": "node scripts/run-sync-bench.mjs prime",
"benchmark:sync:upload:local": "node scripts/run-sync-bench.mjs local prime",
"benchmark:sync:upload:remote": "node scripts/run-sync-bench.mjs remote prime",
"benchmark:sync:remote": "node scripts/run-sync-bench.mjs remote",
"benchmark:playground:live-write": "node scripts/bench-playground-live-write.mjs",
"benchmark:sync:bootstrap": "node scripts/bench-discovery-connect.mjs",
"benchmark:wasm": "pnpm -C packages/treecrdt-wasm-js run benchmark",
"benchmark:web": "pnpm -C packages/treecrdt-wa-sqlite/e2e run bench",
"test": "pnpm run test:browser && pnpm run test:native-node",
"playground": "pnpm --filter @treecrdt/playground dev",
"discovery-server": "pnpm --filter @treecrdt/discovery-server-node dev",
"discovery-server:local": "TREECRDT_DISCOVERY_PUBLIC_HTTP_BASE_URL=http://localhost:8788 TREECRDT_DISCOVERY_PUBLIC_WS_BASE_URL=ws://localhost:8787 pnpm --filter @treecrdt/discovery-server-node dev",
"sync-server:postgres:setup": "pnpm --filter @treecrdt/postgres-napi... --filter @treecrdt/sync-server-postgres-node... run build",
"sync-server:postgres": "pnpm --filter @treecrdt/sync-server-postgres-node dev",
"sync-server:postgres:local": "node scripts/run-sync-server-postgres-local.mjs",
"sync-server:postgres:db:start": "node scripts/run-sync-server-postgres-db-start.mjs",
"sync-server:postgres:db:stop": "node scripts/run-sync-server-postgres-db-stop.mjs",
"changeset": "changeset",
"version-packages": "changeset version && pnpm install --lockfile-only",
"build:publish": "pnpm --filter @treecrdt/wa-sqlite-vendor run build && pnpm --filter @treecrdt/wa-sqlite... --filter @treecrdt/sync... --filter @treecrdt/sync-server-postgres-node... --filter @treecrdt/discovery-server-node... run build",
"release": "pnpm run build:publish && changeset publish && node scripts/set-npm-public-access.mjs"
},
"devDependencies": {
"@bufbuild/buf": "^1.61.0",
"@bufbuild/protoc-gen-es": "^2.10.2",
"@changesets/cli": "^2.31.0",
"prettier": "^3.8.1",
"ws": "^8.18.3"
}
}