forked from greenpill-dev-guild/camp-green
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
251 lines (251 loc) · 16.3 KB
/
package.json
File metadata and controls
251 lines (251 loc) · 16.3 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
{
"name": "green-goods",
"version": "1.1.0",
"type": "module",
"private": true,
"keywords": [
"green-goods",
"green-goods-protocol",
"pwa",
"web3",
"dapp",
"ethereum",
"solidity",
"react",
"tailwind",
"typescript",
"bun",
"foundry"
],
"scripts": {
"setup": "node scripts/dev/setup.js",
"setup:cloud": "node scripts/dev/setup.js --cloud",
"setup:doctor": "node scripts/dev/doctor.js",
"dev:doctor": "node scripts/dev/doctor.js",
"ci:local": "node scripts/dev/ci-local.js",
"env:template:init": "node scripts/dev/env-template-init.js",
"env:sync": "node scripts/dev/env-sync.js",
"env:bootstrap": "node scripts/dev/env-bootstrap.js",
"env:check": "node scripts/dev/env-check.js",
"env:validate": "node scripts/dev/env-check.js",
"skills:sync": "node scripts/harness/sync-agent-skills.mjs",
"check:skills": "node scripts/harness/sync-agent-skills.mjs --check",
"check:codex-guidance": "node scripts/quality/check-codex-docs.js && bun run check:skills",
"check:claude-guidance": "node .claude/scripts/check-skill-frontmatter.js && bun run check:skills",
"agentic:guidance": "DISABLE_TELEMETRY=1 bun --bun modern-web-guidance search \"agentic frontend CSS accessibility browser validation DevTools MCP\" && DISABLE_TELEMETRY=1 bun --bun modern-web-guidance retrieve accessibility",
"agentic:check": "bun run agentic:guidance && bun run check:design-md && bun run check:design-generated && bun run check:design-tokens && bun run --filter @green-goods/shared check:stories && bun run --filter @green-goods/shared check:story-quality",
"agentic:browser-proof": "bun run browser-proof:routes",
"agentic:verify": "bun run --filter @green-goods/shared build-storybook",
"drift:check": "node scripts/quality/drift-check.mjs",
"design:generate": "node scripts/design/md-generate.mjs",
"check:design-generated": "node scripts/design/md-generate.mjs --check",
"check:design-tokens": "bash scripts/design/check-tokens.sh",
"check:design-md": "design.md lint --format json DESIGN.md && design.md lint --format json packages/admin/DESIGN.md && design.md lint --format json packages/client/DESIGN.pwa.md && design.md lint --format json packages/client/DESIGN.browser.md && design.md lint --format json docs/DESIGN.md",
"check:docs-design-parity": "node scripts/quality/check-docs-design-parity.mjs",
"check:source-structure": "node scripts/quality/check-source-structure.js",
"check:test-quality": "bash scripts/quality/check-test-quality.sh",
"lint:vocab": "bash scripts/design/check-vocab.sh",
"lint:rules": "node scripts/quality/check-react-patterns.js",
"prepare": "husky",
"postinstall": "node scripts/postinstall/fix-multiformats.js",
"format": "bunx @biomejs/biome format --write .",
"format:contracts": "cd packages/contracts && bun run format",
"format:contracts:check": "cd packages/contracts && bun run format:check",
"format:check": "bunx @biomejs/biome format .",
"lint": "bun --bun run oxlint packages/client/src packages/admin/src packages/shared/src packages/indexer/src packages/agent/src packages/contracts/script && cd packages/contracts && bun run lint",
"lint:check": "bun --bun run oxlint packages/client/src packages/admin/src packages/shared/src packages/indexer/src packages/agent/src packages/contracts/script && cd packages/contracts && bun run lint:check",
"dev": "node scripts/dev/stack.js full",
"dev:health": "node scripts/dev/doctor.js --profile full",
"dev:stop": "node scripts/dev/stack.js stop",
"dev:stack": "node scripts/dev/stack.js",
"dev:web": "node scripts/dev/stack.js web",
"dev:full": "node scripts/dev/stack.js full",
"dev:prod": "node scripts/dev/stack.js prod",
"dev:prod:mirror": "node scripts/dev/stack.js prod-mirror",
"dev:prod:smoke": "node scripts/dev/smoke-prod.js",
"dev:prod:health": "node scripts/dev/doctor.js --profile prod",
"dev:prod:mirror:health": "node scripts/dev/doctor.js --profile prod-mirror",
"dev:stack:stop": "node scripts/dev/stack.js stop",
"dev:smoke:web": "node scripts/dev/smoke-web.js",
"dev:smoke:full": "node scripts/dev/smoke-full.js",
"dev:docs": "cd docs && bun start",
"dev:client": "bun run --cwd packages/client dev",
"dev:admin": "bun run --cwd packages/admin dev",
"dev:agent": "bun run --cwd packages/agent dev",
"dev:indexer": "APP_ENV=development bun run --cwd packages/indexer dev",
"dev:tunnel": "node scripts/dev/tunnel.js",
"indexer:doctor": "cd packages/indexer && bun run doctor",
"indexer:fix": "cd packages/indexer && bun run doctor:fix",
"indexer:check-boundary": "cd packages/indexer && bun run check:indexing-boundary",
"indexer:db:up": "cd packages/indexer && bun run db:up",
"indexer:db:down": "cd packages/indexer && bun run db:down",
"indexer:reset": "cd packages/indexer && bun run reset",
"dev:contracts": "cd packages/contracts && bun run dev",
"dev:contracts:arbitrum-fork": "cd packages/contracts && bun run dev:arbitrum-fork",
"verify:contracts:arbitrum-fork": "bun run --cwd packages/contracts verify:arbitrum-fork",
"test": "bun --filter='@green-goods/*' run test",
"test:fast": "node ./node_modules/.bin/turbo run test",
"test:fast:force": "node ./node_modules/.bin/turbo run test --force",
"test:e2e": "APP_ENV=test node scripts/dev/test-e2e.js",
"test:e2e:smoke": "APP_ENV=test node scripts/dev/test-e2e.js smoke",
"test:e2e:ui": "APP_ENV=test SKIP_WEBSERVER=true SKIP_HEALTH_CHECK=true playwright test --ui",
"test:e2e:fork": "APP_ENV=test RUN_FORK_TESTS=true playwright test --project=anvil-fork",
"test:e2e:passkey": "APP_ENV=test playwright test --project=passkey-mock",
"test:e2e:testnet": "APP_ENV=test TESTNET=true playwright test --project=testnet",
"test:client": "cd packages/client && bun run test",
"test:admin": "cd packages/admin && bun run test",
"test:agent": "cd packages/agent && bun run test",
"test:shared": "cd packages/shared && bun run test",
"test:shared:live": "cd packages/shared && bun run test:live",
"test:indexer": "cd packages/indexer && bun run test",
"test:contracts": "cd packages/contracts && bun run test",
"anvil:start": "anvil --fork-url ${SEPOLIA_RPC_URL:-https://ethereum-sepolia.publicnode.com} --port ${ANVIL_PORT:-3009}",
"anvil:start:block": "anvil --fork-url ${SEPOLIA_RPC_URL:-https://ethereum-sepolia.publicnode.com} --fork-block-number ${ANVIL_FORK_BLOCK} --port ${ANVIL_PORT:-3009}",
"seed:test": "bun scripts/dev/seed-test-data.ts",
"seed:anvil": "ANVIL_RUNNING=true bun scripts/dev/seed-test-data.ts",
"lighthouse": "bun run lighthouse:client && bun run lighthouse:admin",
"browser-proof:routes": "bun run build:client && bun run build:admin && bun run build:docs && bun scripts/agentic-browser-proof.mjs",
"lighthouse:client": "bun run build:client && cd packages/client && npx lhci autorun",
"lighthouse:admin": "bun run build:admin && cd packages/admin && npx lhci autorun",
"lighthouse:collect": "bun run build:client && cd packages/client && npx lhci collect",
"build": "bun run build:contracts && bun run build:shared && bun run build:indexer && bun run build:client && bun run build:admin",
"build:docs": "cd docs && bun run build",
"docs:status:generate": "node docs/scripts/generate-protocol-status.mjs",
"docs:audit": "node docs/scripts/docs-audit.mjs",
"docs:audit:readme": "node docs/scripts/docs-audit.mjs --strict-readme",
"docs:audit:ci": "node docs/scripts/docs-audit.mjs --ci",
"build:client": "cd packages/client && bun run build",
"build:admin": "cd packages/admin && bun run build",
"build:agent": "cd packages/agent && bun run build",
"build:shared": "cd packages/shared && bun run build",
"build:indexer": "cd packages/indexer && bun run build",
"build:contracts": "cd packages/contracts && bun run build",
"sourcemaps": "APP_ENV=production node scripts/ops/upload-sourcemaps.js --env production",
"sourcemaps:dry-run": "APP_ENV=staging node scripts/ops/upload-sourcemaps.js --env staging --dry-run",
"verify:contracts": "./scripts/contracts/verify-production.sh",
"verify:contracts:fast": "./scripts/contracts/verify-production.sh --skip-e2e --skip-dry-run",
"contracts:upgrade:dry:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run upgrade:dry:arbitrum'",
"contracts:upgrade:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run upgrade:arbitrum'",
"contracts:upgrade:action-registry:dry:arbitrum": "sh -lc 'cd packages/contracts && bun run upgrade:action-registry:dry:arbitrum'",
"contracts:upgrade:action-registry:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run upgrade:action-registry:arbitrum'",
"contracts:upgrade:action-registry:arbitrum:override-sepolia-gate": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run upgrade:action-registry:arbitrum:override-sepolia-gate'",
"contracts:upgrade:signal-pool-yield-wiring:dry:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run upgrade:signal-pool-yield-wiring:dry:arbitrum'",
"contracts:upgrade:signal-pool-yield-wiring:simulate:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run upgrade:signal-pool-yield-wiring:simulate:arbitrum'",
"contracts:upgrade:signal-pool-yield-wiring:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run upgrade:signal-pool-yield-wiring:arbitrum'",
"contracts:repair:octant-assets:dry:arbitrum": "APP_ENV=development sh -lc 'cd packages/contracts && bun run repair:octant-assets:dry:arbitrum'",
"contracts:repair:octant-assets:arbitrum": "APP_ENV=development sh -lc 'cd packages/contracts && bun run repair:octant-assets:arbitrum'",
"contracts:migrate:vaults:dry:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run migrate:vaults:dry:arbitrum'",
"contracts:migrate:vaults:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run migrate:vaults:arbitrum'",
"contracts:marketplace:status:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer MARKETPLACE_EXPECTED_OWNER=0xFBAf2A9734eAe75497e1695706CC45ddfA346ad6 sh -lc 'cd packages/contracts && bun run marketplace:status:arbitrum'",
"contracts:marketplace:configure:dry:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer MARKETPLACE_EXPECTED_OWNER=0xFBAf2A9734eAe75497e1695706CC45ddfA346ad6 sh -lc 'cd packages/contracts && bun run marketplace:configure:dry:arbitrum'",
"contracts:marketplace:configure:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer MARKETPLACE_EXPECTED_OWNER=0xFBAf2A9734eAe75497e1695706CC45ddfA346ad6 sh -lc 'cd packages/contracts && bun run marketplace:configure:arbitrum'",
"contracts:verify:post-deploy:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer MARKETPLACE_EXPECTED_OWNER=0xFBAf2A9734eAe75497e1695706CC45ddfA346ad6 sh -lc 'cd packages/contracts && bun run verify:post-deploy:arbitrum'",
"contracts:ens:deploy:mainnet": "APP_ENV=development bun --cwd packages/contracts script/upgrade-ens-receiver.ts deploy-mainnet --network mainnet",
"contracts:ens:deploy:mainnet:broadcast": "APP_ENV=development bun --cwd packages/contracts script/upgrade-ens-receiver.ts deploy-mainnet --network mainnet --broadcast",
"contracts:ens:update:l1-receiver": "APP_ENV=development bun --cwd packages/contracts script/upgrade-ens-receiver.ts update-l1-receiver --network arbitrum",
"contracts:ens:migrate": "bun --cwd packages/contracts script/deploy.ts ens-migrate --network mainnet",
"contracts:ens:migrate:mainnet": "bun --cwd packages/contracts script/deploy.ts ens-migrate --network mainnet --broadcast",
"contracts:ens:sponsor:status:arbitrum": "APP_ENV=development bun --cwd packages/contracts script/ens-sponsor.ts status --network arbitrum",
"contracts:ens:sponsor:monitor:arbitrum": "APP_ENV=development bun --cwd packages/contracts script/ens-sponsor.ts monitor --network arbitrum",
"contracts:ens:sponsor:top-up:arbitrum": "APP_ENV=development bun --cwd packages/contracts script/ens-sponsor.ts top-up --network arbitrum --broadcast",
"contracts:migrate:action-instructions:v2:dry:arbitrum": "sh -lc 'cd packages/contracts && bun run migrate:action-instructions:v2:dry:arbitrum'",
"contracts:migrate:action-instructions:v2:preflight:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run migrate:action-instructions:v2:preflight:arbitrum'",
"contracts:migrate:action-instructions:v2:upload:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run migrate:action-instructions:v2:upload:arbitrum'",
"contracts:migrate:action-instructions:v2:arbitrum": "APP_ENV=development FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer sh -lc 'cd packages/contracts && bun run migrate:action-instructions:v2:arbitrum'",
"upload:action-images": "APP_ENV=development bun scripts/ops/upload-action-images.ts",
"upload:action-images:dry-run": "APP_ENV=development bun scripts/ops/upload-action-images.ts --dry-run",
"garden:rename-batch": "APP_ENV=development bun scripts/ops/garden-rename-batch.ts",
"garden:rename-batch:dry:arbitrum": "bun run garden:rename-batch -- --chain 42161 --dry-run",
"garden:rename-batch:arbitrum": "bun run garden:rename-batch -- --chain 42161",
"ipfs:repin": "APP_ENV=development bun scripts/ops/ipfs-repin.ts",
"ipfs:repin:audit": "APP_ENV=development bun scripts/ops/ipfs-repin.ts --audit-only"
},
"overrides": {
"multiformats": "^13.4.2",
"uint8arrays": "^5.1.0",
"react": "19.2.4",
"react-dom": "19.2.4",
"protobufjs": "7.5.9",
"basic-ftp": "5.2.0"
},
"resolutions": {
"uint8arrays": "^5.1.0"
},
"dependencies": {
"dotenv": "^17.3.1",
"ethers": "^6.16.0",
"multiformats": "^13.4.2",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"uint8arrays": "^5.1.0",
"viem": "^2.46.1"
},
"devDependencies": {
"@biomejs/biome": "2.4.2",
"@google/design.md": "0.1.1",
"@lhci/cli": "^0.15.1",
"@playwright/test": "^1.58.2",
"@posthog/cli": "0.7.10",
"@tailwindcss/forms": "^0.5.11",
"@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/typography": "0.5.15",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^24.10.13",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
"@vitest/coverage-v8": "^4.0.18",
"babel-plugin-react-compiler": "^1.0.0",
"fake-indexeddb": "^6.2.5",
"graphql": "^16.12.0",
"husky": "^9.1.7",
"js-yaml": "^4.1.1",
"jsdom": "^27.4.0",
"knip": "^5.83.1",
"lighthouse": "^13.0.3",
"lint-staged": "16.1.5",
"modern-web-guidance": "^0.0.169",
"msw": "^2.12.10",
"oxlint": "1.48.0",
"pm2": "6.0.14",
"sharp": "^0.34.5",
"tailwindcss": "^4.1.18",
"tailwindcss-animate": "^1.0.7",
"tsx": "^4.21.0",
"turbo": "^2.9.9",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vite-plugin-mkcert": "^1.17.9",
"vitest": "^4.0.18",
"wait-port": "1.1.0"
},
"engines": {
"node": ">=22.12.0 <23",
"bun": ">=1.x"
},
"packageManager": "bun@1.3.10",
"lint-staged": {
"*.{js,jsx,ts,tsx,json}": [
"bash -c 'files=\"$@\"; filtered=$(echo \"$files\" | tr \" \" \"\\n\" | grep -Ev \"packages/contracts/(\\\\.generated|out)/\"); [ -n \"$filtered\" ] && echo \"$filtered\" | xargs bunx @biomejs/biome format --write || true' --"
]
},
"workspaces": [
"packages/*",
"docs"
],
"trustedDependencies": [
"esbuild",
"sharp"
],
"description": "A progressive web application for the Green Goods protocol.",
"main": "index.js",
"directories": {
"doc": "docs",
"test": "tests"
},
"author": "",
"license": "MIT",
"patchedDependencies": {}
}