mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:19:19 +08:00
chore: 前端默认 pnpm dev/build 指向 web-antd
This commit is contained in:
@@ -29,7 +29,7 @@ deploy/ # 部署 TUI(原 ecom-deploy),流程见 deploy/MANU
|
||||
## 前端(apps/web)
|
||||
|
||||
- 只允许 pnpm;先 `pnpm install`(postinstall 会跑 `stub` 构建)
|
||||
- 开发 `pnpm dev:antd`,构建 `pnpm build:antd`;类型检查 `pnpm -F @vben/web-antd typecheck`
|
||||
- 开发 `pnpm dev`(等同原 `dev:antd`),构建 `pnpm build`;类型检查 `pnpm -F @vben/web-antd typecheck`
|
||||
- lefthook 钩子会对暂存文件跑 `pnpm lint`(oxfmt/oxlint 等)与 `check:type`,commitlint 强制 conventional commit,不要绕过
|
||||
- 代码内 `#/` 别名 = `src/`
|
||||
- **UI 选型**:Vben 应用层 → Ant Design Vue → 可复用封装 → 自研;清单见 `apps/web/docs/agent-ui-components.md`(规则 `.cursor/rules/frontend-ui-priority.mdc`)
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
```bash
|
||||
cd ecom-dmb-frontend
|
||||
pnpm install
|
||||
pnpm run dev:antd
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
访问:http://localhost:5666
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { PageQueryDTO } from '#/types/common';
|
||||
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
import { Alert, Card, DatePicker, Input, message } from 'ant-design-vue';
|
||||
import { DatePicker, Input, message } from 'ant-design-vue';
|
||||
|
||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { getPddGoodsAdFeePageApi } from '#/api/channel/pdd/goods-ad-fee';
|
||||
@@ -197,15 +197,6 @@ const formatAmount = (amount: number) => `¥${Number(amount || 0).toFixed(2)}`;
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="px-2 pt-2 sm:px-3">
|
||||
<Alert
|
||||
type="info"
|
||||
show-icon
|
||||
message="手动维护已关闭"
|
||||
description="请通过浏览器扩展批量导入推广费;导入与转换进度可在「店铺管理」推广费管线查看。"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="min-h-0 flex-1 overflow-hidden px-2 pb-2 pt-2 sm:px-3 sm:pb-3"
|
||||
>
|
||||
|
||||
@@ -197,13 +197,7 @@ function handleModalSuccess() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Page title="商品类目配置" auto-content-height>
|
||||
<template #description>
|
||||
<div class="text-foreground/80 mt-2">
|
||||
管理商品类目,支持多级分类
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<Page auto-content-height>
|
||||
<Grid :loading="loading">
|
||||
<template #toolbar-tools>
|
||||
<Space>
|
||||
|
||||
+7
-16
@@ -26,15 +26,11 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"bootstrap": "pnpm install",
|
||||
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build",
|
||||
"build:analyze": "turbo build:analyze",
|
||||
"build:antd": "pnpm run build --filter=@vben/web-antd",
|
||||
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build --filter=@vben/web-antd",
|
||||
"build:analyze": "pnpm -F @vben/web-antd run build:analyze",
|
||||
"build:antd": "pnpm run build",
|
||||
"build:docker": "./scripts/deploy/build-local-docker-image.sh",
|
||||
"build:docs": "pnpm run build --filter=@vben/docs",
|
||||
"build:ele": "pnpm run build --filter=@vben/web-ele",
|
||||
"build:naive": "pnpm run build --filter=@vben/web-naive",
|
||||
"build:tdesign": "pnpm run build --filter=@vben/web-tdesign",
|
||||
"build:play": "pnpm run build --filter=@vben/playground",
|
||||
"build:play": "turbo build --filter=@vben/playground",
|
||||
"changeset": "pnpm exec changeset",
|
||||
"check": "pnpm run check:circular && pnpm run check:dep && pnpm run check:type && pnpm check:cspell",
|
||||
"check:circular": "vsh check-circular",
|
||||
@@ -43,20 +39,15 @@
|
||||
"check:type": "turbo run typecheck",
|
||||
"clean": "node ./scripts/clean.mjs",
|
||||
"commit": "czg",
|
||||
"dev": "turbo-run dev",
|
||||
"dev:antd": "pnpm -F @vben/web-antd run dev",
|
||||
"dev:antdv-next": "pnpm -F @vben/web-antdv-next run dev",
|
||||
"dev:docs": "pnpm -F @vben/docs run dev",
|
||||
"dev:ele": "pnpm -F @vben/web-ele run dev",
|
||||
"dev:naive": "pnpm -F @vben/web-naive run dev",
|
||||
"dev:tdesign": "pnpm -F @vben/web-tdesign run dev",
|
||||
"dev": "pnpm -F @vben/web-antd run dev",
|
||||
"dev:antd": "pnpm run dev",
|
||||
"dev:play": "pnpm -F @vben/playground run dev",
|
||||
"format": "vsh lint --format",
|
||||
"lint": "vsh lint",
|
||||
"postinstall": "pnpm -r run stub --if-present",
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"prepare": "is-ci || pnpm exec lefthook install",
|
||||
"preview": "turbo-run preview",
|
||||
"preview": "pnpm -F @vben/web-antd run preview",
|
||||
"publint": "vsh publint",
|
||||
"reinstall": "pnpm clean --del-lock && pnpm install",
|
||||
"test:unit": "vitest run --dom",
|
||||
|
||||
Reference in New Issue
Block a user