0.0.5 • Published 12 months ago
@yangxiaolang/create-alauda-mfe-plugin v0.0.5
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=@yangxiaolang/create-alauda-mfe-plugin@latestMFE-APP
Usage
nx g @yangxiaolang/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.