87 lines
3.4 KiB
JSON
87 lines
3.4 KiB
JSON
{
|
|
"name": "edgeever",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"workspaces": [
|
|
"apps/*",
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"dev": "concurrently -k -n api,web -c cyan,magenta \"bun run dev:api\" \"bun run dev:web\"",
|
|
"dev:api": "bun run dev:api:tianma",
|
|
"dev:local": "concurrently -k -n api,web -c cyan,magenta \"bun run dev:api:local\" \"bun run dev:web\"",
|
|
"dev:api:local": "bun scripts/run-wrangler.mjs dev --local --port 8787",
|
|
"dev:tianma": "concurrently -k -n api,web -c cyan,magenta \"bun run dev:api:tianma\" \"bun run dev:web\"",
|
|
"dev:api:tianma": "EDGE_EVER_INSTANCE=tianma bun scripts/run-wrangler.mjs dev --remote --port 8787",
|
|
"dev:web": "vite --config apps/web/vite.config.ts --host 127.0.0.1 --port 5173",
|
|
"build": "bun run build:web",
|
|
"build:web": "vite build --config apps/web/vite.config.ts",
|
|
"preview:web": "vite preview --config apps/web/vite.config.ts --host 127.0.0.1 --port 4173",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"db:migrate:local": "bun scripts/run-wrangler.mjs d1 migrations apply DB --local",
|
|
"db:migrate:remote": "bun scripts/run-wrangler.mjs d1 migrations apply DB --remote",
|
|
"auth:hash": "bun scripts/hash-password.mjs",
|
|
"cli": "bun scripts/edgeever.mjs",
|
|
"mcp:stdio": "bun scripts/edgeever-mcp-stdio.mjs",
|
|
"deploy": "bun run build && bun run db:migrate:remote && bun scripts/run-wrangler.mjs deploy",
|
|
"deploy:tianma": "EDGE_EVER_INSTANCE=tianma bun run deploy",
|
|
"deploy:demo": "EDGE_EVER_INSTANCE=demo bun run deploy",
|
|
"deploy:all": "bun run deploy:tianma && bun run deploy:demo"
|
|
},
|
|
"cloudflare": {
|
|
"bindings": {
|
|
"DB": {
|
|
"description": "EdgeEver 的 D1 数据库。用于存储 notebooks、memos、memo_contents、resources 元数据、全文搜索索引、修订记录和审计事件。"
|
|
},
|
|
"RESOURCES": {
|
|
"description": "EdgeEver 的 R2 对象存储桶。用于存储笔记内图片、附件和未来导入导出文件;D1 只保存资源元数据和 memo 关联。"
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@edgeever/shared": "workspace:*",
|
|
"@hono/zod-validator": "latest",
|
|
"@radix-ui/react-context-menu": "^2.3.1",
|
|
"@radix-ui/react-dialog": "^1.1.17",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.18",
|
|
"@radix-ui/react-select": "^2.3.1",
|
|
"@radix-ui/react-slot": "^1.3.0",
|
|
"@radix-ui/react-switch": "^1.3.1",
|
|
"@radix-ui/react-tooltip": "^1.2.10",
|
|
"@tanstack/react-query": "latest",
|
|
"@tiptap/extension-image": "^3.27.1",
|
|
"@tiptap/extension-placeholder": "latest",
|
|
"@tiptap/react": "latest",
|
|
"@tiptap/starter-kit": "latest",
|
|
"class-variance-authority": "latest",
|
|
"clsx": "latest",
|
|
"dexie": "latest",
|
|
"gifuct-js": "^2.1.2",
|
|
"hono": "latest",
|
|
"lucide-react": "latest",
|
|
"react": "latest",
|
|
"react-dom": "latest",
|
|
"tailwind-merge": "latest",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"wasm-webp": "^0.1.0",
|
|
"workbox-window": "^7.4.1",
|
|
"zod": "latest"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "latest",
|
|
"@types/node": "latest",
|
|
"@types/react": "latest",
|
|
"@types/react-dom": "latest",
|
|
"@vitejs/plugin-react": "latest",
|
|
"autoprefixer": "latest",
|
|
"concurrently": "latest",
|
|
"postcss": "latest",
|
|
"tailwindcss": "^3.4.17",
|
|
"typescript": "latest",
|
|
"vite": "latest",
|
|
"vite-plugin-pwa": "^1.3.0",
|
|
"wrangler": "latest"
|
|
}
|
|
}
|