Software Alternatives & Reviews

Why a Pnpm and Nx monorepo? Requirements for a good workflow

Verdaccio Babel
  1. Verdaccio is a lightweight private npm proxy registry built in Node.js
    Pricing:
    • Open Source
    Publishing to a private registry - Maybe you know the Verdaccio local NPM registry project (or even the deprecated Sinopia, if you are as old as I am 😉). Well, these projects provide a local NPM registry that allows us to publish one package locally, then we can install it in the next one, and so on, so it solves partially the local development and integration workflow problems mentioned above. That if we set up a local registry, we take care of the order in which packages have to be published, etc. In my experience, the local development becomes a crazy thing when you have to deal with many packages, publish/unpublish or republish different versions, clean caches, etc. Not to mention the complexity of the pipelines if we keep the code in different repositories, then you'll probably have to define which repository pipelines trigger other ones where you'll probably have the integration tests, etc. That, supposing that the NPM private registry is ephemeral, because I worked in a project in which it was not ephemeral, it was allowed to unpublish packages, and continuous integration pipelines were continuously overwriting packages versions. I don't get nostalgic when I remember those days.

    #Developer Tools #Code Collaboration #Front End Package Manager 27 social mentions

  2. 2
    Babel is a compiler for writing next generation JavaScript.
    Pricing:
    • Open Source
    Using Babel aliases - Using Babel or TypeScript aliases allows to change the import references, so when you import one package from another, it loads the one from the local workspace instead of the one downloaded by the NPM client. This is the approach that worked better for me, but it still requires some manual configuration for each package, and I don't like to always have to build my code just for these types of requirements. In fact, we'll see that this approach can still be used with some tools as Nx if you don't use Pnpm or other workspace tool.

    #Development Tools #Javascript UI Libraries #JavaScript Framework 134 social mentions

Discuss: Why a Pnpm and Nx monorepo? Requirements for a good workflow

Log in or Post with