Comments (10)
👍
from david.
👍 I think it would be even better if such dependencies could be specified in a file, say .david-lock
or something.
from david.
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.
👍 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.
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.
@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.
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.
Alright: #82
from david.
That great! Thank you!
from david.
👍 thanks for this
from david.
Related Issues (20)
- 502 Bad Gateway Error HOT 2
- --ignores ignores too much bug/critical HOT 1
- david-dm.org is down HOT 1
- https://david-dm.org is down HOT 2
- The website is down HOT 1
- is it currently down? badges are not showing up HOT 1
- https://david-dm.org is down HOT 2
- Did david support create badge for private repository???
- v11.1.0 appears to have been a breaking change in a minor version. HOT 8
- https://david-dm.org/ down? HOT 2
- Badge URL resolving to a package.json HOT 2
- https://david-dm.org is down HOT 15
- David-dm down? HOT 1
- david-dm.org down? HOT 13
- https://david-dm.org/ down. HOT 5
- invalid json response body... HOT 2
- No healthy upstream HOT 1
- david-dm is down, again
- Site is down. Is this project dead? HOT 7
- Hello
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 david.