Giter Club home page Giter Club logo

sweep's Introduction

Sweep

npm View on Crates.io Download License Test Status

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.

Screenshot

How to use

Head on over to the documentation.

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

Sweep is published under the MIT license. See the LICENSE file for more information.

sweep's People

Contributors

atul9 avatar chimzycash avatar dependabot[bot] avatar friederbluemle avatar pashaie avatar razorheadfx avatar s-kocher avatar the-noah avatar woubuc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sweep's Issues

[Feature request] Clean docker images

Hello,
nice project!
it could be really nice if this could also clear up outdated docker images...
not sure how we can link it to specific folder though ๐Ÿค”

Using a lot of memory

SPECS:
OS: Arch Linux - Linux 5.10.4 (Linux 510)
Sweep version: 1.0.3
Mem: 31.3GB

When running sweep against a big folder (my archive folder) it will eventually run out of memory. In my case it takes about 2 minutes to climb from 5% to 100% usage. The issue occurs during the 'find project' stage. I checked the configuration section of the documentation. But the configuration does not seem to be able to address my problem? Any ideas?

Issue with arm64 version of Node.js on M1

Attempting to install swp with an arm64 build of Node.js fails with the following error:

error node_modules/swp: Command failed.
Exit code: 1
Command: node npm/scripts.js install
Arguments:
Directory: node_modules/swp
Output:
node_modules/swp/npm/scripts.js:5
                if (fatal) throw err;
                           ^

Error: Unsupported platform: Darwin arm64. Please create an issue at https://github.com/woubuc/sweep/issues
    at getPlatform (node_modules/swp/npm/getBinary.js:24:8)
    at getBinary (node_modules/swp/npm/getBinary.js:28:19)
    at getBinary (node_modules/swp/npm/scripts.js:3:32)
    at Object.<anonymous> (node_modules/swp/npm/scripts.js:15:17)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)

Name displayed in help message is node-cleanup not project-cleanup

Hi there,
thanks for making project-cleanup, I was actually on the cusp of making something similiar but it looks like you did it for me ;). So thanks for that ๐Ÿ‘
When using it I found an artifact of it previous life as node-cleanup

https://github.com/woubuc/project-cleanup/blob/4c39244afea1b47be3dde0376dc42772ba8c2237/src/settings.rs#L9-L11

https://github.com/woubuc/project-cleanup/blob/4c39244afea1b47be3dde0376dc42772ba8c2237/src/settings.rs#L21-L23

You might want to consider using something like structopt for the argument parsing and validation (which also generates the help messages including version author etc.).

Logo Proposal

Hi
I'm Chimzy, a Logo/Icon designer... Just saw your amazing project and I really like the project idea. I want to help create a Logo/Icon for your project as my Free Contribution and my love for contributing to awesome open source projects...

Working on some idea concepts and I will update it here so you can give me your feedback on the design and also suggest any tweaks or changes you want to satisfy your needs.

Will really appreciate your response
Regards!

Add tests

The code currently doesn't contain any tests. We should try to add some tests (unit or otherwise), to ensure that later changes don't break existing behaviour.

This will likely include some discussion about testability, and possibly restructuring the code.

Add Mac OS pre-built binaries

Right now, the build workflow only builds for Windows and Linux targets. We should also build a Mac OS version. Unfortunately I don't have a Mac so I can't test the builds. So I'm looking for someone with a Mac who is interested in helping to set this up.

In the meantime, users on unsupported platforms can always install the crate with cargo install project-cleanup to build from source.

New Release

If possible, please release a new version
thanks

support react-native projects

I create many many mini react & react-native project for teaching & R&D and have massive disk usage .
Thanks to your awesome project, my react ones have been dealt with, but cleaning up react-native project are still a chore.

Did not works for most Java projects

I personally have hundreds of Java projects in my environment, and not a single one is eligible!

According to detect_cleanable_project.rs, Java projects are detected only if there is a pom.xml, like if having a pom.xml file was a requirement for a Java project. That not the case.

pom.xml files are required, only when the Maven tool is used. Maven is not a Java standard. It is used, by default, by the Eclipse IDE, but Eclipse is not a standard too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.