Federati
Official Monorepo of software designed to work with Webpack Module Federation Build and maintained by the creators of Module Federation
Workflows set up
- Install: run
yarn
- This uses yarn workspaces to manage installation of dependencies for all your packages.
- This also runs a
postinstall
hook that will validate your monorepo setup (usingManykpkg
), and set your packages up for dev (usingPreconstruct
)
- Test: run
yarn test
, which will run Jest tests. - Build: run
yarn build
- This uses Preconstruct to build
dist
files from the source of all packages in/packages
and/apps
. - For any build work you want done outside of Preconstruct building dists, you will need to add to this script.
- This uses Preconstruct to build
- Release: run
yarn release
- this will run the build command, and then run
changeset publish
- this will run the build command, and then run
- Clean: run
yarn clean
- this uses
Manypkg
to remove thenode_modules
anddist
folders from each package in the repository, as well as from the root. It can be used to 'clean out' installed/built files to ensure runningyarn
orbuild
gets you fresh information.
- this uses
We strongly recommend using Changesets for versioning as well, here is a base explanation of the workflow