0.0.1 • Published 2 years ago
ng-mf-lib1 v0.0.1
Angular Multi-Repo Webpack Module Federation Example (Micro Frontends)
The Shared Lib
This repository is part of an Angular mlti-repo Webpack Module Federation example, explained here.
Provide the Shared Lib
To provide the lib, run:
npm inpm run build- provide a local registray at port 4837,
- e.g. verdaccio via docker
docker run --name verdaccio -p 4873:4873 -d verdaccio/verdaccionpm login --registry http://localhost:4873
- or npm:
npm i -g verdaccio- then run
verdaccio - and create a local user
npm adduser --registry http://localhost:4873/ --auth-type=legacy
- e.g. verdaccio via docker
npm run publish
Now the lib should be published and you can proceed with thie installation of the other repos.