-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpackage.json
More file actions
43 lines (43 loc) · 2.26 KB
/
package.json
File metadata and controls
43 lines (43 loc) · 2.26 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
{
"name": "simlin",
"description": "The web frontend and backend service for simlin",
"private": true,
"license": "Apache-2.0",
"homepage": "https://simlin.com",
"author": {
"name": "Bobby Powers",
"email": "bobbypowers@gmail.com"
},
"main": "src/server/lib",
"packageManager": "pnpm@10.6.0",
"devDependencies": {
"@playwright/test": "^1.58.1",
"prettier": "^3.8.1",
"ts-protoc-gen": "^0.15.0",
"typescript": "^5.9.3"
},
"scripts": {
"js-needs-format": "find src -name '*.ts' -o -name '*.tsx' | egrep -v '/(lib(\\.(browser|module))?|core)/' | xargs prettier -l",
"rust-needs-format": "cargo fmt -- --check",
"js-format": "find src -name '*.ts' -o -name '*.tsx' | egrep -v '/(lib(\\.(browser|module))?|core)/' | xargs prettier --write",
"rust-format": "cargo fmt",
"format": "cargo fmt && pnpm js-format",
"precommit": "pnpm js-needs-format && pnpm rust-needs-format && pnpm lint",
"install-git-hooks": "cd .git/hooks && rm -f pre-commit && ln -s ../../scripts/pre-commit ./pre-commit",
"lint": "pnpm rust-lint && pnpm -r --parallel run lint",
"tsc": "pnpm --filter @simlin/core --filter @simlin/diagram --filter @simlin/server --filter @simlin/app --parallel exec tsc --noEmit",
"rust-lint": "cargo clippy",
"start:firestore": "./scripts/start-emulators.sh",
"start:backend": "pnpm --filter @simlin/server start:backend",
"start:frontend": "pnpm --filter @simlin/app start:frontend",
"build:gen-protobufs": "protoc --plugin='protoc-gen-ts=node_modules/.bin/protoc-gen-ts' --js_out='import_style=commonjs_strict,binary:.' --ts_out=. $(find src/server -name '*.proto') && scripts/gen-rust-protobufs.sh && pnpm format",
"rebuild-stdlib": "./scripts/gen-stdlib.sh",
"build": "pnpm -r run build",
"clean": "pnpm -r run clean && cargo clean",
"deploy": "export NODE_ENV=production && pnpm clean && pnpm build && pnpm --filter @simlin/app deploy && gcloud app deploy ./.app.prod.yaml && pnpm --filter @simlin/app deploy-clean",
"start": "node src/server/lib",
"test": "pnpm --filter @simlin/core --filter @simlin/diagram --filter @simlin/engine --filter @simlin/app --filter @simlin/server --parallel run test",
"test:ui": "playwright test",
"test:ui:ui": "playwright test --ui"
}
}