-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.json
57 lines (57 loc) · 2.67 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
{
"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": "[email protected]"
},
"main": "src/server/lib",
"workspaces": {
"packages": [
"src/xmutil-js",
"src/engine",
"src/importer",
"src/core",
"src/diagram",
"src/app",
"src/server",
"website"
],
"nohoist": [
"**/webpack",
"**/html-minifier-terser"
]
},
"devDependencies": {
"npm-run-all": "^4.1.5",
"ts-protoc-gen": "^0.15.0"
},
"resolutions": {
"immer": "9.0.19"
},
"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))?|importer/core|engine/core)/' | xargs prettier --write",
"rust-format": "cargo fmt",
"format": "npm-run-all -p js-format rust-format",
"precommit": "npm-run-all -p js-needs-format rust-needs-format lint",
"install-git-hooks": "cd .git/hooks && rm -f pre-commit && ln -s ../../scripts/pre-commit.hook ./pre-commit",
"lint": "yarn rust-lint && yarn workspaces run lint",
"patch": "true",
"rust-lint": "cargo clippy",
"start:firestore": "(gcloud beta emulators firestore start --host-port=127.0.0.1:8092 &) && yarn workspace @system-dynamics/app run firebase emulators:start",
"start:backend": "yarn workspace @system-dynamics/server start:backend",
"start:frontend": "yarn workspace @system-dynamics/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 -name '*.proto') && gsed -i 's/goog.object.extend(exports, proto);/goog.object.extend(exports, proto.project_io);/g' src/simlin-engine/src/project_io_pb.js && mv src/simlin-engine/src/*.[jt]s src/core/pb/ && yarn format",
"rebuild-stdlib": "cargo build && for input in stdlib/*.stmx; do model=\"$(basename $input | cut -d '.' -f 1)\"; target/debug/simlin convert --model-only \"$input\" --output src/simlin-engine/src/stdlib/\"$model\".pb; done",
"build": "yarn patch && yarn workspaces run build",
"clean": "yarn workspaces run clean",
"deploy": "export NODE_ENV=production && yarn clean && yarn build && yarn workspace @system-dynamics/app deploy && gcloud app deploy ./.app.prod.yaml && yarn workspace @system-dynamics/app deploy-clean",
"start": "node src/server/lib"
},
"dependencies": {}
}