Comments (6)
Sorry for the delay, but I've added a --ignore
option that takes a comma-separated list of glob patterns to ignore.
Example:
modeclean --ignore="validate-npm-package-license,spdx-license-ids,history"
Hopefully this fixes what you need. I will refactor everything in the future. This has been released to NPM as version 1.3.0
from modclean.
I'm working on adding a way to ignore certain files per issue #7 but we definitely need to get this fixed as soon as possible. I will be looking into a solution and let you know what I come up with.
from modclean.
In my project modules "repo validate-npm-package-license" and "history" is removed, which breaks my build.
The most simple solution I can think of is to never remove folders, only files. Don't know what that would do for disk usage though.
from modclean.
@DanielSundberg are you using this via command line or programmatically?
from modclean.
I'm using command line, seems like this can be tuned using it programmatically? I can understand that using it programmatically is not complicated at all, but I guess most users would have moved on by now and preferred a command line option already built in. And an easy way to see what's going on. Interactive mode is not really an option when the tool is going to remove 5000+ files.
from modclean.
Having similar issues where modules with names containing the word "license" are being removed.
e.g.
- validate-npm-package-license
- spdx-license-ids
Worked around it by not using the CLI and using it programmatically instead, but would be good to see this addressed as part of the CLI.
from modclean.
Related Issues (20)
- Don't follow symlinks HOT 1
- --ignore option does not work HOT 6
- Remove "semver" from danger patterns HOT 2
- Use exact version for modclean-patterns-default HOT 3
- Refactor to async/await
- Reduce dependencies HOT 1
- Undefined reference - pkg in modclean.js on v3.0.0-alpha.5 HOT 2
- Action required: Greenkeeper could not be activated 🚨
- Write tests
- Wrong repository link on npmjs
- Minimize files in product mode HOT 1
- Cli use throws promisify error HOT 1
- CLI doesn't remove a typescript file
- Number of removed files by pattern
- Support for `modclean.json`
- feature request: add --force/-f or similar HOT 1
- Possible issue with default patterns and "license" keyword HOT 2
- additionalPatterns does not work
- --ignore option does not work HOT 1
- v3 release with updated dependencies? HOT 2
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 modclean.