@segmentify/create-mfe
v0.0.9
Published
CLI tool to generate and manage Micro Frontends
Downloads
1,068
Maintainers
Keywords
Readme
@company/create-mfe
Internal CLI tool for generating and managing Micro Frontend repositories.
Installation
cd create-mfe
pnpm install
pnpm buildUsage
Create a new MFE
# Interactive mode
pnpm create-mfe new
# Non-interactive mode
pnpm create-mfe new \
--name orders \
--display-name Orders \
--prefix ord \
--port 3104 \
--route /orders \
--scope @company \
--template react-remoteValidate an MFE
Checks if the current repository follows company standards.
pnpm create-mfe validateList used prefixes
pnpm create-mfe list-prefixesSync configuration
Updates shared config references in an existing MFE.
pnpm create-mfe sync-configFeatures
- Registry Check: Prevents duplicated MFE names, Tailwind prefixes, ports, and routes.
- Tailwind Scoping: Automatically applies a 3-letter prefix (e.g.,
ord-) and PostCSS PrefixWrap. - Vite & Module Federation: Pre-configured remote entry and shared dependencies.
- Standardized Scripts: Includes
dev,build,lint, andvalidate:mfe.
