ai / size-limit

Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit.
MIT License
6.48k stars 1.82k forks source link

An NX plugin support #316

Open LironHazan opened 1 year ago

LironHazan commented 1 year ago

Hey @ai thanks for this awesome tool,

I've found myself integrating it in an NX monorepo manually first by adding the configuration file per each project and afterwards by adding the following target for each project (for enable execution)

    "size-limit": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/app1",
        "commands": [
          "size-limit"
        ]
      }
    }

So after 2 projects I decided to automate it by creating an NX community plugin 😄 I'll really appreciate if you could peek in the docs I've supplied and share your feedback to make sure it fits the size-limit "go to" approach, I've tried to make it as less opinionated as possible :)

Thanks! 🚀

ai commented 1 year ago

Looks nice. Send PR to docs’s Third-Party Plugins section.

LironHazan commented 1 year ago

Thanks Done :)

ai commented 1 year ago

Could you add also here https://github.com/ai/size-limit/#third-party-plugins

To save your name in the project history and promote your plugin

LironHazan commented 1 year ago

Sure thanks I appreciate it!

LironHazan commented 1 year ago

Done