Giter Club home page Giter Club logo

Comments (10)

FGRibreau avatar FGRibreau commented on June 27, 2024

👍

from david.

rpominov avatar rpominov commented on June 27, 2024

👍 I think it would be even better if such dependencies could be specified in a file, say .david-lock or something.

from david.

rpominov avatar rpominov commented on June 27, 2024

I've implemented something quick to use in our project:
741614a...rpominov:722f8d9

Here is our pakage.json as an usage example:

{
  ...
  "scripts": {
    "check-updates": "david || true",
    "update-deps": "david u || true"
  },
  "dependencies": {
    ...
  },
  "devDependencies": {
    "david": "rpominov/david#722f8d9546f6944e0b91b71239fdc3320a2870e6"
    ...
  },
  "davidIgnore": [
    "david",
    "react-redux",
    "stats-webpack-plugin"
  ]
}

We run npm run check-updates to see what needs to be updated, and npm run update-deps for actual update. And put into davidIgnore packages that we don't want to update yet for some reasons.

It works fine for us, but not sure if it's good for a PR. I can make a PR, if this makes sense.

from david.

shellscape avatar shellscape commented on June 27, 2024

👍 much needed improvement. We have several modules that we'd like to stick with older versions and we'd like not to see a reminder that they're out of date.

from david.

alanshaw avatar alanshaw commented on June 27, 2024

You can now do this with v6.3.0 of david (https://github.com/alanshaw/david#ignore-dependencies).

Enjoy, and let me know if you have any feedback :)

from david.

sindresorhus avatar sindresorhus commented on June 27, 2024

@alanshaw I was really looking for a command-line flag, as I want to ignore some dependencies from all packages and I don't want to have to add it to every single package.json. Should I open a new issue?

from david.

alanshaw avatar alanshaw commented on June 27, 2024

Just FYI when calling getDependencies or getUpdatedDependencies programmatically you can pass it as an option:

david.getUpdatedDependencies(pkg, {ignore: ['async']}, (err, deps) => console.log(deps))

...but yes a command line arg would probably also be useful!

from david.

sindresorhus avatar sindresorhus commented on June 27, 2024

Alright: #82

from david.

rpominov avatar rpominov commented on June 27, 2024

That great! Thank you!

from david.

shellscape avatar shellscape commented on June 27, 2024

👍 thanks for this

from david.

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.