mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-02 22:02:13 +08:00
chore(frontend): align format scripts with Makefile and README (#1481)
* chore(frontend): add format scripts * docs(frontend): document format commands
This commit is contained in:
@@ -41,6 +41,12 @@ pnpm dev
|
|||||||
# Type check
|
# Type check
|
||||||
pnpm typecheck
|
pnpm typecheck
|
||||||
|
|
||||||
|
# Check formatting
|
||||||
|
pnpm format
|
||||||
|
|
||||||
|
# Apply formatting
|
||||||
|
pnpm format:write
|
||||||
|
|
||||||
# Lint
|
# Lint
|
||||||
pnpm lint
|
pnpm lint
|
||||||
|
|
||||||
@@ -113,6 +119,8 @@ src/
|
|||||||
| `pnpm dev` | Start development server with Turbopack |
|
| `pnpm dev` | Start development server with Turbopack |
|
||||||
| `pnpm build` | Build for production |
|
| `pnpm build` | Build for production |
|
||||||
| `pnpm start` | Start production server |
|
| `pnpm start` | Start production server |
|
||||||
|
| `pnpm format` | Check formatting with Prettier |
|
||||||
|
| `pnpm format:write` | Apply formatting with Prettier |
|
||||||
| `pnpm lint` | Run ESLint |
|
| `pnpm lint` | Run ESLint |
|
||||||
| `pnpm lint:fix` | Fix ESLint issues |
|
| `pnpm lint:fix` | Fix ESLint issues |
|
||||||
| `pnpm typecheck` | Run TypeScript type checking |
|
| `pnpm typecheck` | Run TypeScript type checking |
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
"build": "next build",
|
"build": "next build",
|
||||||
"check": "eslint . --ext .ts,.tsx && tsc --noEmit",
|
"check": "eslint . --ext .ts,.tsx && tsc --noEmit",
|
||||||
"dev": "next dev --turbo",
|
"dev": "next dev --turbo",
|
||||||
|
"format": "prettier --check .",
|
||||||
|
"format:write": "prettier --write .",
|
||||||
"lint": "eslint . --ext .ts,.tsx",
|
"lint": "eslint . --ext .ts,.tsx",
|
||||||
"lint:fix": "eslint . --ext .ts,.tsx --fix",
|
"lint:fix": "eslint . --ext .ts,.tsx --fix",
|
||||||
"preview": "next build && next start",
|
"preview": "next build && next start",
|
||||||
|
|||||||
Reference in New Issue
Block a user