Registry / devops / mf-bootstrap

mf-bootstrap

JSON →
library1.3.0jsnpmunverified

CLI tool to scaffold micro frontend projects compatible with mf-maestro and mf-bundler. Version 1.3.0 is current. Generates projects and individual micro frontends (master/detail/new/edit) from domain-entity definitions. Supports Elm as the default framework. Differentiated from generic generators by tight integration with the Calions micro frontend ecosystem.

npm install mf-bootstrap
INSTALL
IMPORT
SIG · MF-BOOTSTRAP
M
mf-bootstrap
devopsjavascriptv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
#!/usr/bin/env node // No import, used globally via npm install -g mf-bootstrap
const mfBootstrap = require('mf-bootstrap')
This package is a CLI tool, not a library. It is intended to be installed globally and used via the `mf-generate` command.

Install globally, create a new project named 'my-project', then add a new micro frontend 'profile master' in the 'users' domain, install dependencies, and run tests.

npm install -g mf-bootstrap mf-generate init my-project ../shared-styles -d ./projects -a "My Name" cd my-project mf-generate mf users profile master -l elm npm install npm run test cd apps/users/profile-master npm start
Debug
Known issues
gotchaThe mf-generate init command requires a mainStylesPath argument that points to a valid styles project. If omitted or incorrect, generated micro frontends may lack styling when running outside the maestro.
fix
Provide the correct relative path to your main styles project (e.g., ../shared-styles).
affects: >=1.0.0
gotchaAfter generating a new project, ensure you run `npm install` from the project root. This also installs dependencies for all generated micro frontends.
fix
Run `npm install` from the project root directory.
affects: >=1.0.0
Errors
Common errors & fixes
mf-generate: command not found
The package is not installed globally or not in the PATH.
fix
Run `npm install -g mf-bootstrap` and ensure your npm global bin directory is in your PATH.
Error: ENOENT: no such file or directory, mkdir './apps/...'
The mf-generate mf command was run outside of a valid project root (no apps directory exists).
fix
First run `mf-generate init` to create the project structure, then `cd` into that project before running `mf-generate mf`.
Upgrade
Version history
1.3.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
mf-bootstrap — npm install mf-bootstrap · libregistry