git-proxy icon indicating copy to clipboard operation
git-proxy copied to clipboard

Implement a CI step to detect unused dependencies 📦

Open JamieSlome opened this issue 1 year ago • 1 comments

To ensure we don't unnecessarily hit "dependency bloat" nor merge pull requests with dependencies that are unused, we should introduce a GitHub Action or CI step to detect which dependencies are unused. This is a great first issue for someone looking to make their first contribution to the project 🎉

### Tasks
- [ ] Detect unused dependencies and fail CI if more than 0
- [ ] Detect unused `dependencies` and `devDependencies`
- [ ] Only allow PR merges if the Action or CI step returns safely

I have previously come across depcheck - a nice lightweight NPM library that discovers unused dependencies.

JamieSlome avatar Jan 24 '24 18:01 JamieSlome

@marksmith388 - would you be interested in picking this one up? 🤔

JamieSlome avatar Mar 28 '24 13:03 JamieSlome

@tt-gideonaryeetey and @divinetettey - asked discussed, are you interested in picking this issue up? Let me know below and then I can assign to you if you're happy to 👍

JamieSlome avatar May 21 '24 14:05 JamieSlome

Hi @JamieSlome yes I would pick this issue

divinetettey avatar May 22 '24 10:05 divinetettey

Achieved in #592. You're a rockstar @divinetettey 🚀

JamieSlome avatar Jun 18 '24 13:06 JamieSlome