Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.65 KB

File metadata and controls

38 lines (23 loc) · 1.65 KB

Using Nx Generators to Automate Package Scaffolding for PNPM workspaces

package-based monorepo

Source code for the corresponding Youtube video:

What's inside?

This contains a simple example of a PNPM workspaces based monorepo (note: you can just swap it with NPM or Yarn workspace if you prefer those). The workspace contains

  • a single React library ui
  • a local Nx Plugin in the automation package, that comes with a generator to scaffold new React libraries following the setup of ui.

How to run it

You can just run operations with Nx such as

  • building all projects: pnpm nx run-many -t build
  • building just a single project: pnpm nx build ui

And you can also use the generator to scaffold new React libraries:

pnpm nx g automation:reactlib mynewreactlib

Alternatively 👇

Open in StackBlitz

Learn More