-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
65 lines (65 loc) · 3.43 KB
/
Copy pathpackage.json
File metadata and controls
65 lines (65 loc) · 3.43 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
{
"name": "taiwan-fin-hub",
"version": "0.1.0",
"private": true,
"type": "module",
"workspaces": [
"apps/*",
"packages/*"
],
"scripts": {
"prebuild": "node scripts/prepare-cloudflare-build.mjs",
"build": "npm run build --workspaces",
"format": "prettier --write .",
"format:check": "prettier --check .",
"typecheck": "npm run typecheck --workspaces",
"test:unit": "npm run test:unit -w @taiwan-fin-hub/web",
"test:backend": "npm test -w @taiwan-fin-hub/worker && npm test -w @taiwan-fin-hub/db && npm run test:selfcheck -w @taiwan-fin-hub/connectors && npm run test:deploy",
"test:deploy": "node --test scripts/deploy-with-vapid.test.mjs scripts/sync-upstream.test.mjs",
"test:e2e": "npm run test:e2e -w @taiwan-fin-hub/web",
"verify:web": "npm run typecheck -w @taiwan-fin-hub/web && npm run test:unit -w @taiwan-fin-hub/web && npm run test:e2e -w @taiwan-fin-hub/web && npm run build -w @taiwan-fin-hub/web",
"dev": "npm run dev -w @taiwan-fin-hub/worker",
"deploy": "npm run db:migrate:remote && XDG_CONFIG_HOME=.wrangler-config node scripts/deploy-with-vapid.mjs",
"db:migrate:local": "XDG_CONFIG_HOME=.wrangler-config wrangler d1 migrations apply DB --local",
"db:migrate:remote": "XDG_CONFIG_HOME=.wrangler-config wrangler d1 migrations apply DB --remote",
"db:schema:docs": "node scripts/generate-database-schema.mjs"
},
"cloudflare": {
"bindings": {
"CONFIG_ENCRYPTION_KEY": {
"description": "用於加密儲存在 D1 的連接器憑證。**請務必修改預設值**,可使用 `openssl rand -hex 32` 產生隨機字串;部署後若更換此金鑰,現有連接器設定將無法解密。"
},
"TEAM_DOMAIN": {
"description": "Cloudflare Access 的 Team Domain。部署時先保留 `https://placeholder.invalid`;待將存取模式切換為「Restricted」後,**務必**改成實際 Team Domain。"
},
"POLICY_AUD": {
"description": "Cloudflare Access 自架應用程式的 AUD Tag。部署時先保留 `temporary-placeholder`;待將存取模式切換為「Restricted」並建立 Access 應用程式後,**務必**改成實際 AUD Tag。"
},
"POLICY_AUDS": {
"description": "多個 Cloudflare Access AUD Tag,使用逗號或空白分隔。部署時先保留 `temporary-placeholder`;只有單一 Access Application 時,部署後請刪除此變數;需要接受多個 Application 時,請改成實際 AUD Tag 清單。"
},
"DEMO_MODE": {
"description": "設為 `true`、`1`、`yes` 或 `on` 可啟用公開唯讀 Demo 模式;Demo 模式不需要 `TEAM_DOMAIN`、`POLICY_AUD` 或 `CONFIG_ENCRYPTION_KEY`。"
},
"DB": {
"description": "儲存連接器設定、同步金融資料及資料庫遷移紀錄的 D1 資料庫。"
},
"BROWSER": {
"description": "Cloudflare Browser Rendering binding,供需要瀏覽器的連接器(如玉山銀行、國泰世華銀行、永豐銀行、台新銀行)使用。"
},
"AI": {
"description": "Cloudflare Workers AI binding,供 Gemma 4 辨識銀行登入驗證碼。"
},
"SYNC_QUEUE": {
"description": "串接排程同步工作;每個 connector 由獨立的 Queue consumer invocation 執行。"
}
}
},
"devDependencies": {
"esbuild": "^0.28.1",
"prettier": "^3.9.5",
"prettier-plugin-svelte": "^4.1.1",
"vite": "^8.1.4",
"typescript": "^5.5.4"
}
}