Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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. mkdir bundle && 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. import_map_ux_fragment with the import-map definition and all the script imports
  2. single-spa-react-router-widget an example for hashrouting a MFE widget inside entando
  3. single-spa-react-widget a simple parcel

Create a page template with the import_map_ux_fragment in it, then design a page with the widgets.

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

Enjoy!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors