Files
yys-editor/.serena/memories/suggested_commands.md
2025-12-26 22:33:30 +08:00

26 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# yys-editor 常用命令Windows/PowerShell
- 安装依赖:
- `npm install`
- 本地开发Vite 开发服务器,默认 http://localhost:5173/
- `npm run dev`
- 生产构建(输出到 `dist/`
- `npm run build`
- 本地预览生产包:
- `npm run preview`
- 代码检查ESLint自动修复
- `npm run lint`
- 代码格式化Prettier`src/` 目录):
- `npm run format`
辅助命令PowerShell 常用):
- 进入目录/查看/读取文件:`cd`, `ls` (Get-ChildItem), `cat file` (Get-Content -Raw)
- 删除/复制/移动:`rm -r -Force path` (Remove-Item), `cp src dst` (Copy-Item), `mv src dst` (Move-Item)
- Git`git status`, `git add -p`, `git commit -m "msg"`, `git switch -c <branch>`, `git push`
- 进程占用端口排查(可选):`Get-Process``netstat -ano | findstr 5173`
- 快速全文搜索(若已安装):`rg "pattern"`
说明:
- 包管理器使用 npm`package-lock.json`)。
- Vite 默认端口 5173未在 `vite.config.js` 中覆写。
- 项目未配置自动化测试命令。