-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
96 lines (96 loc) · 4.97 KB
/
package.json
File metadata and controls
96 lines (96 loc) · 4.97 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"name": "topgun",
"version": "0.11.0",
"description": "Offline-First In-Memory Data Grid",
"private": true,
"packageManager": "pnpm@10.13.1",
"bin": {
"topgun": "./bin/topgun.js"
},
"scripts": {
"topgun": "node ./bin/topgun.js",
"build": "pnpm -r build",
"test": "pnpm -r test",
"test:cli": "jest --config tests/cli/jest.config.js",
"test:e2e": "jest --config tests/e2e/jest.config.js",
"test:e2e:coverage": "jest --config tests/e2e/jest.config.js --coverage",
"test:coverage": "pnpm -r test:coverage",
"test:coverage:core": "pnpm --filter @topgunbuild/core test:coverage",
"test:coverage:client": "pnpm --filter @topgunbuild/client test:coverage",
"test:coverage:server": "pnpm --filter @topgunbuild/server test:coverage",
"test:coverage:react": "pnpm --filter @topgunbuild/react test:coverage",
"test:coverage:adapters": "pnpm --filter @topgunbuild/adapters test:coverage",
"test:coverage:adapter-better-auth": "pnpm --filter @topgunbuild/adapter-better-auth test:coverage",
"test:k6:build": "go install go.k6.io/xk6/cmd/xk6@latest && xk6 build --with github.com/tango-tango/xk6-msgpack --output bin/k6",
"test:k6:build:docker": "docker compose build k6",
"test:k6:token": "node scripts/generate-k6-token.js",
"test:k6:smoke": "JWT_TOKEN=$(node scripts/generate-k6-token.js) ./bin/k6 run tests/k6/scenarios/smoke.js",
"test:k6:throughput": "JWT_TOKEN=$(node scripts/generate-k6-token.js) ./bin/k6 run tests/k6/scenarios/throughput-test.js",
"test:k6:write": "JWT_TOKEN=$(node scripts/generate-k6-token.js) ./bin/k6 run tests/k6/scenarios/write-heavy.js",
"test:k6:connections": "JWT_TOKEN=$(node scripts/generate-k6-token.js) ./bin/k6 run tests/k6/scenarios/connection-storm.js",
"test:k6:stress": "JWT_TOKEN=$(node scripts/generate-k6-token.js) ./bin/k6 run tests/k6/scenarios/stress-test.js",
"test:k6:cluster": "JWT_TOKEN=$(node scripts/generate-k6-token.js) ./bin/k6 run tests/k6/scenarios/cluster-throughput.js",
"test:k6:cluster:throughput": "JWT_TOKEN=$(node scripts/generate-k6-token.js) ./bin/k6 run tests/k6/scenarios/cluster-throughput.js",
"test:k6:cluster:failover": "JWT_TOKEN=$(node scripts/generate-k6-token.js) ./bin/k6 run tests/k6/scenarios/cluster-failover.js",
"test:k6:cluster:rebalance": "JWT_TOKEN=$(node scripts/generate-k6-token.js) ./bin/k6 run tests/k6/scenarios/cluster-rebalance.js",
"docker:start": "node bin/topgun.js docker:start",
"docker:stop": "node bin/topgun.js docker:stop",
"docker:status": "node bin/topgun.js docker:status",
"cluster:up": "docker-compose -f tests/k6/docker-compose.cluster.yml up -d",
"cluster:down": "docker-compose -f tests/k6/docker-compose.cluster.yml down",
"cluster:logs": "docker-compose -f tests/k6/docker-compose.cluster.yml logs -f",
"cluster:scale": "docker-compose -f tests/k6/docker-compose.cluster.yml up -d node-4",
"test:k6:ab": "./scripts/perf-ab-test.sh",
"test:k6:ab:quick": "./scripts/perf-ab-test.sh --quick",
"start:perf-server": "pnpm exec ts-node -r tsconfig-paths/register --project ./examples/tsconfig.json ./scripts/perf-ab-server.ts",
"profile:flame": "./scripts/profile-server.sh flame",
"profile:cpu": "./scripts/profile-server.sh cpu",
"profile:doctor": "./scripts/profile-server.sh doctor",
"profile:inspect": "./scripts/profile-server.sh inspect",
"clean": "rm -rf node_modules packages/*/node_modules examples/*/node_modules apps/*/node_modules packages/*/dist",
"start:server": "pnpm exec ts-node -r tsconfig-paths/register --project ./examples/tsconfig.json ./examples/simple-server.ts",
"start:docs": "pnpm --filter apps-docs-astro dev",
"lint": "eslint 'packages/*/src/**/*.{ts,tsx}' 'apps/*/src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}'",
"lint:fix": "eslint 'packages/*/src/**/*.{ts,tsx}' 'apps/*/src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}' --fix",
"format": "prettier --write 'packages/*/src/**/*.{ts,tsx}' 'apps/*/src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}'",
"format:check": "prettier --check 'packages/*/src/**/*.{ts,tsx}' 'apps/*/src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}'"
},
"dependencies": {
"chalk": "^4.1.2",
"commander": "^12.1.0",
"dotenv": "^16.4.5",
"inquirer": "^8.2.6"
},
"devDependencies": {
"@jest/test-sequencer": "^29.7.0",
"@types/jest": "^29.5.14",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^18.0.0",
"@types/pg": "^8.15.6",
"@types/ws": "^8.18.1",
"eslint": "^9.18.0",
"hdr-histogram-js": "^3.0.1",
"jest": "^29.7.0",
"jsonwebtoken": "^9.0.2",
"msgpackr": "^1.11.8",
"pg": "^8.16.3",
"pg-mem": "^3.0.5",
"prettier": "^3.4.2",
"ts-jest": "^29.4.5",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsup": "^8.5.1",
"typescript": "^5.0.0",
"typescript-eslint": "^8.19.1",
"ws": "^8.18.3",
"zod": "^4.1.13"
},
"author": "",
"license": "BSL-1.1",
"pnpm": {
"onlyBuiltDependencies": [
"isolated-vm",
"better-sqlite3"
]
}
}