GithubHelp home page GithubHelp logo

carlesnunez / check-my-bundlephobia Goto Github PK

View Code? Open in Web Editor NEW
51.0 51.0 9.0 1.17 MB

Github action to check for new added packages size on bundlephobia

License: MIT License

JavaScript 100.00%

check-my-bundlephobia's People

Contributors

carlesnunez avatar dependabot[bot] avatar etabard avatar gusbueno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

check-my-bundlephobia's Issues

Monorepo support

It looks like the code assumes that package.json is in the root of the repo, which makes it impossible to use in monorepos (for example with multiple npm packages in a few subdirectories in the same git repo).
Would it be possible to be able to set custom package.json path or root directory?

[NEXT ITERATION] Refactor functions and core

The bundlephobia checker was mented on a github actions hackaton and wasn't mented to scalate in the way that have scalated so I prupose the next:

  • Refactor the core structure in typescript
  • Create a CD system with auto release on PR merged
  • Refactor the table build util
  • Refactor core functions to perform searches on diffs

[Feature Request] Showing size diff between version

It would be nice to see the size difference when e.g.: updating packages.

Lets say you use Dependabot to update you dependencies. Dependabot will show you (when available) the new features, bug fixes or braking changes.

What i'm interested in before I merge the update is:

  • Do I need this Feature?
  • Is it a security update?
  • Does it make my dependencies bigger?
    Or even better smaller?

Therefore i would like to use the action with some additional information in the review e.g:
Bump Moment from 2.24.0 to 2.25.3 (threshold: 67kB)

name gzip size pass
Old [email protected] 241.7 Kb 65.9 kB โœ…
New [email protected] 276.8 kB 69.4 kB โŒ
+ 35.1 kB + 3.5 kB

Invalid array check in latest published version

Screen Shot 2021-09-16 at 11 31 45 PM

I wanted to follow the readme exactly and use carlesnunez/check-my-bundlephobia@v1, but that was broken as well. It said that version was not published. As for carlesnunez/[email protected], that was recommended by the official github actions page


If you would like to see this live, it's on a public project: https://github.com/dawsbot/essential-eth/pull/7/checks?check_run_id=3629297920


It appears in the commit history that this bug was fixed via 1.8.0, but that's not live on the actions marketplace: https://github.com/marketplace/actions/bundlephobia-checker

Screen Shot 2021-09-16 at 11 35 47 PM

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.