chore: 静默 just 与便携版构建输出
.justfile 启用 set quiet 隐藏命令回显,并导出 npm_config_loglevel=warn 隐藏 npm notice;post-build 脚本将 New-Item 目录对象送入 Out-Null。同步更新 CLAUDE.md 与 README.md 说明。
This commit is contained in:
1 parent
5fc6f558db
commit
dc38076476
4 files changed
+10
-2
No files matched your search
@@ -1,8 +1,12 @@
|
||||
# UPX-Tools 常用命令,运行 `just` 或 `just --list` 查看全部
|
||||
|
||||
set quiet
|
||||
|
||||
export npm_config_loglevel := 'warn'
|
||||
|
||||
[private]
|
||||
default:
|
||||
@just --list
|
||||
just --list
|
||||
|
||||
# 开发模式运行(热重载,先编译一次 Tailwind CSS)
|
||||
dev: css
|
||||
|
||||
@@ -61,6 +61,8 @@ cargo clippy --manifest-path src-tauri/Cargo.toml
|
||||
cargo test --manifest-path src-tauri/Cargo.toml
|
||||
```
|
||||
|
||||
`.justfile` 使用 `set quiet` 隐藏命令回显,并导出 `npm_config_loglevel=warn` 隐藏 npm notice(包括嵌套调用);保留工具输出、警告和错误。`post-build` 仅将 `New-Item` 的目录对象输出送入 `Out-Null`,不重定向错误。
|
||||
|
||||
## 代码结构
|
||||
|
||||
### 前端 (ui/)
|
||||
|
||||
@@ -154,6 +154,8 @@ npm run watch:css
|
||||
|
||||
单独运行 ESLint 自动修复等细项时,使用下面的 npm/Cargo 命令,不再提供重复的 just 入口。
|
||||
|
||||
just 默认不回显执行命令,并为子进程设置 `npm_config_loglevel=warn`,隐藏 npm 的 `notice run`;便携版复制不打印 PowerShell 目录对象。工具自身的进度、产物路径、警告和错误仍会显示。
|
||||
|
||||
### 代码检查与格式化
|
||||
|
||||
```bash
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
"build:css": "npx tailwindcss -i ./ui/css/main.css -o ./ui/css/tailwind.css --minify",
|
||||
"watch:css": "npx tailwindcss -i ./ui/css/main.css -o ./ui/css/tailwind.css --watch",
|
||||
"build": "cargo tauri build && npm run post-build",
|
||||
"post-build": "powershell -Command \"New-Item -Path 'src-tauri/target/release/bundle/Portable' -ItemType Directory -Force; Copy-Item 'src-tauri/target/release/UPX-Tools.exe' 'src-tauri/target/release/bundle/Portable/'\""
|
||||
"post-build": "powershell -Command \"New-Item -Path 'src-tauri/target/release/bundle/Portable' -ItemType Directory -Force | Out-Null; Copy-Item 'src-tauri/target/release/UPX-Tools.exe' 'src-tauri/target/release/bundle/Portable/'\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.2",
|
||||
|
||||
Reference in new issue
Block a user