clean-workspace

Crates.ioclean-workspace
lib.rsclean-workspace
version1.1.0
sourcesrc
created_at2021-04-13 02:43:15.845435
updated_at2023-08-05 02:17:31.303472
descriptionUtility to remove package folders from projects in a workspace
homepage
repositoryhttps://gitlab.com/phillipcouto/clean-workspace
max_upload_size
id382657
size16,893
Phillip Couto (phillipCouto)

documentation

README

clean-workspace

This is a utility to recursively remove packages and build files and folders from a workspace folder.

Currently supported project types:

  • NodeJS / NPM (node_modules)
  • Rust / Cargo (target)

The utility looks for a package.json file or a Cargo.toml file in a folder to determine if there is a possibility of the node_modules folder for package.json files or target folder for Cargo.toml files exists. If so the full path to the node_modules folder or target folder are queued and removed at the end.

This is valuable if you have a workspace folder with many projects scattered throughout that you would like to clean up these large folders without tracking them down yourself. Currently the tool only has a dry-run flag to print the folders it has identified for removal.

Enhancements and bug fixes are welcome.

Commit count: 8

cargo fmt