-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
49 lines (49 loc) · 2.76 KB
/
package.json
File metadata and controls
49 lines (49 loc) · 2.76 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
{
"description": "Zoltar",
"repository": {},
"license": "Unlicense",
"type": "module",
"devDependencies": {
"@biomejs/biome": "2.3.11",
"@types/node": "22.13.10",
"@types/bun": "1.3.11",
"@zoltu/file-copier": "3.0.0",
"better-typescript-lib": "2.11.0",
"bun-types": "1.3.11",
"esbuild": "0.25.8",
"funtypes": "5.1.1",
"knip": "5.86.0",
"preact": "10.26.4",
"typescript": "5.8.2"
},
"dependencies": {
"@preact/signals": "2.0.1",
"viem": "2.38.3"
},
"scripts": {
"preinstall": "bun ./scripts/link-shared-node-modules.mjs",
"install:anvil": "bash -lc 'if ! command -v anvil >/dev/null 2>&1; then curl -L https://foundry.paradigm.xyz | bash && export PATH=\"$HOME/.foundry/bin:$PATH\" && foundryup; fi'",
"shared:build": "bun x tsc --project shared/tsconfig.json",
"setup": "bun install --frozen-lockfile && bun run setup-contracts && bun run shared:build && bun run ui:vendor && cd ui && bun install --frozen-lockfile && bun run build && bun run build:tests",
"setup-contracts": "cd solidity && bun run setup",
"compile-contracts": "cd solidity && bun install --frozen-lockfile && bun x tsc --project tsconfig-compile.json && bun run ./js/compile.js",
"generate": "bun run compile-contracts && bun run shared:build && bun run ui:vendor",
"tsc": "bun run shared:build && bun x tsc --noEmit",
"ui:setup": "bun install --frozen-lockfile && cd solidity && bun install --frozen-lockfile && bun run setup && cd .. && bun run generate && cd ui && bun install --frozen-lockfile && bun run build && bun run build:tests",
"ui:build": "bun run generate && cd ui && bun install --frozen-lockfile && bun run build && bun run build:tests",
"ui:watch": "bun run ui:build && bun ./ui/build/watch.mts",
"ui:serve": "bun run ui:build && bun ./ui/dev-server.ts",
"ui:vendor": "cd ui && bun install --frozen-lockfile && bun ./build/vendor.mts",
"gas-costs": "cd solidity && bun run gas-costs",
"test": "bun run tsc && bun test --timeout 300000",
"check": "bunx @biomejs/biome check solidity/ts ui/ts ui/css",
"check:changed": "bunx @biomejs/biome check --changed --since origin/main solidity/ts ui/ts ui/css",
"lint": "bun x @biomejs/biome check solidity/ts ui/ts",
"lint:fix": "bun x @biomejs/biome check --write solidity/ts ui/ts",
"format": "bunx @biomejs/biome format --write package.json scripts ui/package.json ui/tsconfig.json ui/build solidity/ts ui/ts ui/css",
"knip": "bun x knip",
"knip:fix": "bun x knip --fix",
"ui:docker": "docker build -f ui/Dockerfile . -t zoltar-ui && docker run --add-host=host.docker.internal:host-gateway zoltar-ui",
"anvil:docker": "docker run --rm --name anvil -p 8545:8545 --entrypoint anvil ghcr.io/foundry-rs/foundry:v1.5.1 --host 0.0.0.0 --port 8545 --block-base-fee-per-gas 0 --gas-price 0 --no-priority-fee --chain-id 1"
}
}