node-modules-analyzer icon indicating copy to clipboard operation
node-modules-analyzer copied to clipboard

Danger plugin

Open renanmav opened this issue 5 years ago • 4 comments

It would be good to have a danger-plugin-node-modules-analyzer that:

  1. runs your CLI
  2. identify dependencies with problems
  3. report an issue to the original repository (optional behavior) or patches the package (using patch-package) to remove the unnecessary files

Something similar to this, but for bundle size.

I can help with the implementation.

renanmav avatar May 26 '20 13:05 renanmav

Nice! That is in the actual roadmap!

Let me fix the codebase, since it has been gone through the MVP phase already and we can start working on it!

matheus1lva avatar May 26 '20 14:05 matheus1lva

There is also some improvements and bugs I found that have to be fixed ~believe me or not, dreaming, that proved right today by @sibelius LOL~

matheus1lva avatar May 26 '20 14:05 matheus1lva

1 more thing left before we can do it: add a proper algorithm to scan sub node_modules folders, that supports monorepos! That is the next things i'm already doing!

matheus1lva avatar May 30 '20 16:05 matheus1lva

@renanmav we are almost there! There is only one more feature (i consider the most important) so we can start kicking this plugin!

we now need to scan the package.json file in order to find if we have src folders being published that were not required. What i mean by that: when we have a compilation step that generates a dist/build/opt/out/lib or whatever you may call it that is compiled code! In those scenarios they are not necessary, but in others they are!

matheus1lva avatar Jun 06 '20 15:06 matheus1lva