mirror of
https://github.com/longbridge/developers.git
synced 2026-09-19 03:34:09 +08:00
f01ca6579d
让 CN 构建的区域变量覆盖完整构建链,确保导航按 CN 规则生成。 移除 CN 产物写入全局 OSS 路径的命令,避免跨区域资源覆盖。 Co-authored-by: Claude <noreply@anthropic.com>
90 lines
3.4 KiB
JSON
90 lines
3.4 KiB
JSON
{
|
|
"name": "openapi-website",
|
|
"version": "0.0.1",
|
|
"author": "longbridge",
|
|
"module": "index.ts",
|
|
"description": "this is a website of longbridge developers",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"workspaces": ["packages/*"],
|
|
"scripts": {
|
|
"dev": "astro dev",
|
|
"dev:canary": "cross-env PROXY=canary VITE_API_BASE_URL=https://openapi.longbridge.xyz astro dev",
|
|
"dev:cn": "cross-env VITE_REGION=cn VITE_API_BASE_URL=https://openapi.longbridge.cn VITE_SITE_HOSTNAME=https://open.longbridge.cn astro dev",
|
|
"build:canary": "cross-env \"NODE_OPTIONS=--max-old-space-size=14336 --expose-gc\" PROXY=canary VITE_API_BASE_URL=https://openapi.longbridge.xyz astro check && astro build && bunx pagefind --site dist && bun run scripts/copy-routes.ts",
|
|
"build:release": "cross-env \"NODE_OPTIONS=--max-old-space-size=14336 --expose-gc\" VITE_API_BASE_URL=https://openapi.longbridge.com astro check && astro build && bunx pagefind --site dist && bun run scripts/copy-routes.ts",
|
|
"build:cn": "cross-env \"NODE_OPTIONS=--max-old-space-size=14336 --expose-gc\" VITE_REGION=cn VITE_API_BASE_URL=https://openapi.longbridge.cn VITE_PORTAL_GATEWAY_BASE_URL=https://mr.lbkrs.com VITE_SITE_HOSTNAME=https://open.longbridge.cn sh -c 'astro check && astro build && bunx pagefind --site dist && bun run scripts/copy-routes.ts'",
|
|
"build:llms": "bun run scripts/normalize_md.ts && bun run scripts/generate-llms.ts",
|
|
"build:copy-routes": "bun run scripts/copy-routes.ts",
|
|
"lint": "oxlint",
|
|
"lint:fix": "oxlint --fix",
|
|
"preview": "astro preview",
|
|
"astro": "astro",
|
|
"lint:docs": "prettier -c --parser typescript \"packages/**/*.{js,ts,vue}\"",
|
|
"format:docs": "prettier --write \"packages/**/*.{js,ts,vue}\"",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:ui": "vitest --ui"
|
|
},
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@astrojs/mdx": "^7.0.5",
|
|
"@astrojs/react": "^6.0.2",
|
|
"@astrojs/sitemap": "^3.7.3",
|
|
"@fontsource-variable/inter": "^5.3.0",
|
|
"@inspira-ui/plugins": "^0.0.2",
|
|
"@longbridge/openapi-api-reference": "workspace:*",
|
|
"@longbridge/openapi-tryit": "workspace:*",
|
|
"@longbridge/openapi-utils": "workspace:*",
|
|
"@tailwindcss/postcss": "^4.2.2",
|
|
"@tailwindcss/vite": "^4",
|
|
"astro": "^7",
|
|
"astro-icon": "^1.1.5",
|
|
"cheerio": "^1.1.0",
|
|
"fs-extra": "^11.3.0",
|
|
"glob": "^11.0.3",
|
|
"gray-matter": "^4.0.3",
|
|
"js-yaml": "^4.1.1",
|
|
"minisearch": "^7.2.0",
|
|
"motion": "^13.1.0",
|
|
"pagefind": "^1",
|
|
"picomatch": "^4.0.5",
|
|
"qrcode": "^1.5.4",
|
|
"react": "^19",
|
|
"react-dom": "^19",
|
|
"tailwindcss": "^4",
|
|
"tw-animate-css": "^1.4.0",
|
|
"ufo": "^1.6.1",
|
|
"vite": "^8.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@astrojs/check": "^0.9.10",
|
|
"@types/bun": "latest",
|
|
"@types/fs-extra": "^11.0.4",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/picomatch": "^4.0.3",
|
|
"@types/qrcode": "^1.5.6",
|
|
"@types/react": "^19.2.18",
|
|
"@types/react-dom": "^19.2.4",
|
|
"@vitest/ui": "^4.1.10",
|
|
"cross-env": "^7.0.3",
|
|
"mermaid": "^11.8.1",
|
|
"node-html-parser": "^9.0.1",
|
|
"odiff-bin": "^4.5.0",
|
|
"oxlint": "^1.80.0",
|
|
"postcss-rtlcss": "^5.7.0",
|
|
"prettier": "^3.5.3",
|
|
"rehype-autolink-headings": "^7.1.0",
|
|
"rehype-slug": "^6.0.0",
|
|
"remark-directive": "^4.0.0",
|
|
"remark-heading-id": "^1.0.1",
|
|
"vitest": "^4.1.10"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5"
|
|
},
|
|
"engines": {
|
|
"node": ">=24.0.0"
|
|
}
|
|
}
|