2.0.0 • Published 1 year ago
package-based-sharedd v2.0.0
Tutorial: Package-based Monorepo
Source code for the package-based monorepo tutorial on the Nx docs:
- Tutorial: https://nx.dev/getting-started/package-based-repo-tutorial
- Video: https://youtu.be/hzTMKuE3CDw
What's inside?
The example contains two simple packages (is-even
and is-odd
) and demonstrates how to locally link these packages by leveraging npm workspaces.
How to run it
Install all dependencies using npm install
. You can then run commands Like
npx nx build is-even
to run the build for just theis-even
packagenpx nx run-many --target=build
to run thebuild
target for all packages in the workspaces- you can use
npx nx graph
to visualize the structure