Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
lgp-admin-plus
LGP 管理后台前端(Vben Admin 5.7 / apps/web-antd)。
两个家具品牌共用一套代码,靠构建模式区分。
| 品牌 | 命令后缀 | AppID | 产出目录 |
|---|---|---|---|
| 佛山铂尔曼 | brm |
wx679d36842570cea7 |
apps/web-antd/dist-brm |
| 维伦家具 | wl |
wx57b54060a579c31a |
apps/web-antd/dist-wl |
包管理器:pnpm(不要用 npm / yarn)。
准备
pnpm install
启动(两种)
在仓库根目录执行:
# 1)佛山铂尔曼 —— 读 .env.brm(标题 / Logo / 品牌色)
pnpm dev:brm
# 2)维伦家具 —— 读 .env.wl
pnpm dev:wl
默认开发端口见 apps/web-antd/vite.config.ts(当前 14002)。
接口代理:/api → 本地后端 http://127.0.0.1:18004/api/。
仅调试、不区分品牌时可用
pnpm dev(development模式,默认品牌仍是铂尔曼)。
打包(两种)
# 1)佛山铂尔曼 → apps/web-antd/dist-brm(并可能产出 zip)
pnpm build:brm
# 2)维伦家具 → apps/web-antd/dist-wl
pnpm build:wl
一次打两个品牌:
pnpm build:brands
两个品牌 outDir 必须分开,否则会互相覆盖。上线前按品牌分别回归。
环境文件
| 文件 | 用途 |
|---|---|
apps/web-antd/.env.brm |
铂尔曼生产构建 / dev:brm |
apps/web-antd/.env.wl |
维伦生产构建 / dev:wl |
apps/web-antd/.env.development |
通用本地开发(pnpm dev) |
品牌相关变量:VITE_APP_BRAND、VITE_APP_TITLE、VITE_APP_FAVICON、VITE_GLOB_API_URL。
后端
配套 API:lgp-admin-plus-api(Laravel 13)。
库表变更走 database/sql/<YYYY-MM-DD>/01_名字.sql,不要新建 PHP Migration。
Languages
Vue
43.6%
TypeScript
36.1%
JavaScript
17.8%
CSS
1.1%
Python
1.1%
Other
0.2%