The idea is to create a tool that bootstraps MFEs, configuring what framework the dev will use. Something like npm create vite@latest but installing lint, adding Docker, DevContainer, Tests, etc.
Here's a draft of the process:
yarn create vite
Vanilla (ou framework da sua preferência)
TS
[name]-mfe
yarn
Add dockerfile
Com scratch + nginx
nginx.conf:
worker_processes 1;
events { worker_connections 1024; }
http {
include mime.types;
server {
listen 3031;
root /usr/share/nginx/html/;
index index.html;
server_name localhost;
}
The idea is to create a tool that bootstraps MFEs, configuring what framework the dev will use. Something like
npm create vite@latest
but installing lint, adding Docker, DevContainer, Tests, etc.Here's a draft of the process:
yarn create vite
[name]-mfe
yarn
Add dockerfile
events { worker_connections 1024; }
http { include mime.types;
}
Vite config:
Pode usar um boilerplate no index.html (só importa o mfe.js):