Comments (4)
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.
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.
Technically, it's not hard to solve, but to expose the functionality in an understandable way in this tool is another matter.
from dotnetcleanup.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnetcleanup.