Git Product home page Git Product logo

Comments (4)

sebnilsson avatar sebnilsson commented on August 18, 2024

Does this tool know to avoid the bin directories that are sometimes within node_modules?

It does not. It's not a scenario I've thought about.

I would have to come up with a concept to make this work, but I'm worried it'll be a complex concept, which will be hard to understand.

from dotnetcleanup.

alexdresko avatar alexdresko commented on August 18, 2024

I typically do this in powershell:

"bin", "obj", ".vs" | Get-ChildItem -Recurse -Directory | Where-Object { $_ -notlike "*node_modules*" } | Remove-Item -Recurse -Force -Verbose

from dotnetcleanup.

sebnilsson avatar sebnilsson commented on August 18, 2024

Technically, it's not hard to solve, but to expose the functionality in an understandable way in this tool is another matter.

from dotnetcleanup.

alexdresko avatar alexdresko commented on August 18, 2024

It seems universally true that you wouldn't want to delete the bin folders inside node_modules, unless you were specifically deleting node_modules. Why not just hard code it so you never delete anything under a node_modules folder unless you're deleting the node_modules folder?

I understand if that's easier said than done. I tried to look through the code here on GH, but it's a lot of code for something that basically does the same thing as "bin", "obj", ".vs" | Get-ChildItem -Recurse -Directory | Where-Object { $_ -notlike "*node_modules*" } | Remove-Item -Recurse -Force -Verbose :)

from dotnetcleanup.

Related Issues (5)

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.