Giter VIP home page Giter VIP logo

Comments (6)

KyleRoss avatar KyleRoss commented on May 18, 2024 1

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.

KyleRoss avatar KyleRoss commented on May 18, 2024

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.

DanielSundberg avatar DanielSundberg commented on May 18, 2024

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.

KyleRoss avatar KyleRoss commented on May 18, 2024

@DanielSundberg are you using this via command line or programmatically?

from modclean.

DanielSundberg avatar DanielSundberg commented on May 18, 2024

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.

TomSeldon avatar TomSeldon commented on May 18, 2024

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)

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.