@alauda-fe/create-alauda-mfe-plugin
v0.0.1
Published
This library was generated with [Nx](https://nx.dev).
Downloads
81
Keywords
Readme
create-alauda-mfe-plugin
This library was generated with Nx.
create-alauda-mfe-plugin
is designed to quickly start a Alauda Front-End Application which is powered by Module-Federation.
Generators
Preset
Usage
npx create-nx-workspace@latest ${workspace_name} --preset=@alauda-fe/create-alauda-mfe-plugin@latest
MFE-APP
Usage
nx g @alauda-fe/create-alauda-mfe-plugin:mfe-app ${path_to_apps}/${app_name} --template=${template} --prefix=${prefix}
Supports selecting both deploy-instance
and service
templates and configuring the prefix of the selectors.
| name | type | default | description | | -------- | -------------------------- | ------- | --------------------------------------------------------------- | | template | enum["service","instance"] | | The app template file | | prefix | string | | The prefix to use for Angular component and directive selectors |
Building
Run nx build create-alauda-mfe-plugin
to build the library.
Publish
Run nx nx-release-publish nx build create-alauda-mfe-plugin
to publish the library.
Running unit tests
Run nx test create-alauda-mfe-plugin
to execute the unit tests via Jest.