kondo
kondo copied to clipboard
Cleans dependencies and build artifacts from your projects.
Kondo ๐งน
Cleans unneeded directories and files from your system.
It will identify the disk space savings you would get from deleting temporary/unnecessary files from project directories, such as target
from Cargo projects and node_modules
from Node projects.
Supports:
- Cargo projects (Rust)
- Node projects (JavaScript)
- Unity projects (C#)
- SBT projects (Scala)
- Haskell Stack projects (Haskell)
- Maven projects (Java)
- Unreal Engine projects (C++)
- Jupyter Notebook projects (Python)
- Python projects
- CMake projects
- Composer projects (PHP)
- Pub projects (Dart)
Installation
Graphic User Interface
Windows and Mac builds are available on the Releases page as kondo-ui
.
You can install kondo-ui
via Cargo with cargo install kondo-ui
. Note you'll still need druid's platform specific dependencies on mac and linux.
Command line
Windows, Mac, and Linux builds are available on the Releases page as kondo
.
You can install kondo
via homebrew with brew install kondo
.
You can install kondo
via Cargo with cargo install kondo
.
Operation
Graphic User Interface
Launch kondo-ui
, select a directory to be scanned, evaluate & clean directories as needed.
Command Line Interface
Running kondo
without a directory specified will run in the current directory.
$ kondo
Supplying a path will tell kondo
where to start. Multiple paths are supported.
$ kondo code/my_project code/my_project_2
Example Output
$ kondo ~/code
/Users/choc/code/unity Cargo project
โโ target (489.1KiB)
delete above artifact directories? ([y]es, [n]o, [a]ll, [q]uit): y
deleted 489.1KiB
/Users/choc/code/multiplayer-kit/generator Cargo project
โโ target (874.3KiB)
delete above artifact directories? ([y]es, [n]o, [a]ll, [q]uit): n
/Users/choc/code/chat Cargo project
โโ target (37.2MiB)
delete above artifact directories? ([y]es, [n]o, [a]ll, [q]uit): q
Total bytes deleted: 489.1KiB
Building/Development
To build kondo
you can run cargo build
from the projects root directory.
To build kondo-ui
you must first navigate into the kondo-ui
directory, then you can run cargo build
.