size-limit icon indicating copy to clipboard operation
size-limit copied to clipboard

An NX plugin support

Open LironHazan opened this issue 1 year ago • 5 comments

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! 🚀

LironHazan avatar Apr 14 '23 10:04 LironHazan

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

ai avatar Apr 14 '23 17:04 ai

Thanks Done :)

LironHazan avatar Apr 14 '23 19:04 LironHazan

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

ai avatar Apr 14 '23 19:04 ai

Sure thanks I appreciate it!

LironHazan avatar Apr 14 '23 19:04 LironHazan

Done

LironHazan avatar Apr 14 '23 19:04 LironHazan