Skip to content

entando-samples/recipe-single-spa-angular-widget-bundle

Repository files navigation

A project seed for the single spa parcel integration

This is a recipe for creating a bundle with a micro frontend widget using a single spa parcel (https://single-spa.js.org/docs/parcels-overview/).

With this configuration, you can use the ent cli (https://dev.entando.org/v6.3/docs/reference/entando-cli.html) to perform the different tasks:

  1. cp -r bundle-src bundle
  2. ent prj init
  3. ent prj fe-build -a
  4. ent prj pbs-init (it asks for the git bundle repo)
  5. ent prj fe-push
  6. For a local Entando installation: ent prj generate-cr | ent kubectl create -n entando -f -

Install the bundle using the App Builder.

The bundle contains:

  1. rssawb_import_map_ux_fragment with the import-map definition and all the script imports
  2. single-spa-angular-widget a simple parcel

Create a page template with the rssawb_import_map_ux_fragment in it, then design a page with the widget.

See https://dev.entando.org for more information on creating bundles, page templates, etc.

Enjoy!

About

An entando angular MF exposed using SSPA parcel

Resources

License

Stars

0 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors