robocin / ssl-core

MIT License
10 stars 0 forks source link

Create a CLI tool for bootstrap MFEs #105

Open uandersonricardo opened 1 month ago

uandersonricardo commented 1 month ago

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:

- Add vitest, playwright or cypress, lint and prettier
- Add in main.ts:
```typescript
import PlayerMFE from "./app/player-mfe";

window.customElements.define("player-mfe", PlayerMFE );
class PlayerMFE extends HTMLElement {
  private root: ShadowRoot;

  constructor() {
    super();
    this.root = this.attachShadow({ mode: "open" });
  }

  public connectedCallback() {
  }

  public disconnectedCallback() {
  }
}

export default PlayerMFE;
mateusriff commented 1 month ago

Progress Log

May 25

May 28

May 30

June 8