-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
181 additions
and
137 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
## New features | ||
📚 New documentation pages, powered by [VuePress](https://vuepress.vuejs.org) | ||
## New Name | ||
🌟 Project Cleanup has been renamed to Sweep. Instead of typing `project-cleanup`, you can now just type `swp`. Much shorter! | ||
|
||
## Features | ||
📚 Updated documentation pages, powered by [VuePress](https://vuepress.vuejs.org) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
[package] | ||
edition = "2018" | ||
name = "project-cleanup" | ||
name = "swp" | ||
version = "0.7.5" | ||
|
||
description = "CLI tool to clean up and remove old generated code in your Rust, Javascript and Java projects" | ||
repository = "https://github.com/woubuc/project-cleanup" | ||
repository = "https://github.com/woubuc/sweep" | ||
authors = ["Wouter Buckens <[email protected]> (www.woubuc.be)"] | ||
|
||
readme = "README.md" | ||
license = "MIT" | ||
|
||
keywords = ["cleanup", "project", "clean", "delete", "free"] | ||
keywords = ["cleanup", "sweep", "swp", "project", "clean", "delete", "free", "cli"] | ||
categories = ["command-line-utilities"] | ||
|
||
include = ["src/**/*"] | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
[](https://woubuc.github.io/project-cleanup/) | ||
# Sweep | ||
|
||
[](https://www.npmjs.com/package/project-cleanup) | ||
[](https://crates.io/crates/project-cleanup) | ||
[](https://github.com/woubuc/project-cleanup/releases/latest) | ||
[](https://github.com/woubuc/project-cleanup/blob/master/LICENSE) | ||
[](https://github.com/woubuc/project-cleanup/actions) | ||
[](https://www.npmjs.com/package/swp) | ||
[](https://crates.io/crates/swp) | ||
[](https://github.com/woubuc/sweep/releases/latest) | ||
[](https://github.com/woubuc/sweep/blob/master/LICENSE) | ||
[](https://github.com/woubuc/sweep/actions) | ||
|
||
Project Cleanup finds old projects that haven't been changed in more than a month. It will clean up and remove unnecessary directories containing libraries, dependencies, builds, etc. These files can easily be re-generated at any time by running install or build commands, and if you haven't worked on the project in a while you probably don't need them taking up space right now. | ||
Sweep (`swp`) finds old projects that haven't been changed in more than a month. It will clean up and remove unnecessary directories containing libraries, dependencies, builds, etc. These files can easily be re-generated at any time by running install or build commands, and if you haven't worked on the project in a while you probably don't need them taking up space right now. | ||
|
||
 | ||
|
||
## How to use | ||
Head on over to [the documentation](https://project-cleanup.woubuc.be). | ||
Head on over to [the documentation](https://sweep.woubuc.be). | ||
|
||
## Contributions welcome | ||
This project welcomes contributions of any kind, whether you want to add new features, improve the documentation or just want to give some feedback. | ||
|
||
## License | ||
Project Cleanup is published under the MIT license. See | ||
Sweep is published under the MIT license. See | ||
the LICENSE file for more information. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
https://project-cleanup.woubuc.be/* https://sweep.woubuc.be/:splat 301! | ||
|
||
|
||
/* /404.html 404 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# Configuration | ||
Project Cleanup will find a lot of [standard directories](/#discovering-projects) in your projects, but there's a good chance you have different directories that also need to be cleaned. | ||
Sweep will find a lot of [standard directories](/#discovering-projects) in your projects, but there's a good chance you have different directories that also need to be cleaned. | ||
|
||
Create a file in the root directory of your project called `.cleanuprc` and list all cleanable directories in it. Project Cleanup will detect this file and use the listed directories instead of its defaults. | ||
Create a file in the root directory of your project called `.swpfile` and list all cleanable directories in it. Sweep will detect this file and use the listed directories instead of its defaults. | ||
|
||
## Syntax | ||
The syntax of a `.cleanuprc` file is similar to that of a `.gitignore` file, so you can use existing syntax highlighting tools in your IDE of choice. However, the supported syntax is a lot more limited. | ||
The syntax of a `.swpfile` is similar to that of a `.gitignore` file, so you can use existing syntax highlighting tools in your IDE of choice. However, the supported syntax is a lot more limited. | ||
|
||
- `.cleanuprc` only supports directories, no individual files | ||
- `.swpfile` only supports directories, no individual files | ||
- You cannot use wildcard patterns (`*`), each path must point to a single directory | ||
- All paths should be relative starting from the `.cleanuprc` file, and should not start with `/` | ||
- All paths should be relative starting from the `.swpfile` file, and should not start with `/` | ||
|
||
::: warning | ||
Adding a starting `/` in your path will cause Project Cleanup to start from the root of your filesystem instead of relative from the working directory. | ||
Adding a starting `/` in your path will cause Sweep to start from the root of your filesystem instead of relative from the working directory. | ||
::: | ||
|
||
### Example | ||
See the [.cleanuprc file](https://github.com/woubuc/project-cleanup/blob/master/.cleanuprc) in the Project Cleanup repository. | ||
See the [.swpfile](https://github.com/woubuc/sweep/blob/master/.swpfile) in the Sweep repository. | ||
|
||
### Validation | ||
To validate your `.cleanuprc` file, simply run `project-cleanup --all .` and verify that it lists the correct directories. | ||
To validate your `.swpfile` file, simply run `swp --all .` and verify that it lists the correct directories. | ||
|
||
## Version control | ||
You should commit the `.cleanuprc` file along with your project. That way, everyone working on the project will cleanup the same files when running Project Cleanup. This is especially important when you override the default configuration to _prevent_ some default directories from being cleaned. | ||
You should commit the `.swpfile` along with your project. That way, everyone working on the project will sweep the same files when running `swp`. This is especially important when you override the default configuration to _prevent_ some default directories from being cleaned. | ||
|
||
::: tip NOTE | ||
The default directories may change between versions. New directories may be added at any point, or existing defaults may be removed if it turns out they aren't universal enough. | ||
|
||
It is recommended to add a `.cleanuprc` to all projects with more than 'standard' directories. | ||
It is recommended to add a `.swpfile` to all projects with more than 'standard' directories. | ||
::: |
This file contains 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
This file contains 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
Oops, something went wrong.