Repository navigation
feat(tools): add an interactive cache cleaner - #52
Merged
Merged
Conversation
Build caches and toolchain caches were being cleaned by hand with du + rm, which is slow to audit and easy to get wrong. `npm run clean` now knows a fixed list of targets, measures each one, and opens a TUI where space toggles a target and enter confirms: - project builds: Rust target/, .svelte-kit, build/, Android and Xcode build dirs, node_modules (listed but unselected by default) - toolchain caches: Gradle, Cargo, npm, pnpm, Playwright, Xcode DerivedData/DeviceSupport, CoreSimulator, Homebrew - flags for automation: --list, --json, --dry-run, --yes, --only=id,id Safety: the target list is fixed in the script, deletion refuses the repo root, the home directory and any ancestor of them, and symlinks are removed instead of followed. Sizes use du when available and a JS walker otherwise.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
O que muda
tools/clean.mjs+npm run clean: TUI com setas/espaço para marcar alvos e enter para confirmar.src-tauri/target,.svelte-kit,build, Gradle/Xcode build dirs,node_modules) e caches de toolchain (Gradle, Cargo, npm, pnpm, Playwright, Xcode, CoreSimulator, Homebrew).--list,--json,--dry-run,--yes,--only=id,id.duquando existe; walker em JS no Windows.Verificação
npm run check— 0 errosnpm test— 284 testesnpm run build— okandroid-gradle-root) com resumo de espaçoNotas
node_modulesaparece desmarcado por padrão.