Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: add soft-clean and hard-clean recipes to justfile (#3142)
Ram69c34753e4a6
diff --git a/justfile b/justfileindex 2177e1cb9..ec741d164 100644--- a/justfile+++ b/justfile@@ -1,7 +1,39 @@+# Clean build artifacts (but keep dependencies)+alias clean := soft-clean+soft-clean:+ #!/usr/bin/env bash+ set -eo pipefail++ # Clean all harper-* directories as they all have a rust backend and build into target+ cargo clean++ # Handle packages/*++ # The path stem is not combined into one file expansion because if they pop up into+ # another directory, there is a chance they should not be removed.+ rm -rf packages/chrome-plugin/{build,package}+ rm -rf packages/components/{.svelte-kit,dist}+ rm -rf packages/harper.js/{dist,markdown,temp}+ rm -rf packages/lint-framework/{dist}+ rm -rf packages/obsidian-plugin/{harper-obsidian-plugin.zip,main.js}+ rm -rf packages/vscode-plugin/{.vscode-test,bin,build}+ rm -rf packages/web/{.svelte-kit,.sveltepress,build}+ rm -rf packages/wordpress-plugin/{build,harper.zip}++# Hard clean all build artifacts and dependencies+hard-clean: soft-clean+ #!/usr/bin/env bash+ set -eo pipefail++ # Remove all node dependencies+ rm -rf **/node_modules+ # Prune node cache+ pnpm store prune+# Format entire projectalias fmt := formatformat:- cargo fmt+ cargo fmtpnpm format# Build the shared component library