@atolljs/cli 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,11 +20,15 @@ builds it automatically before staging.
20
20
  ## Commands
21
21
 
22
22
  ```bash
23
- atoll new <dir> [--framework react|vue|solid|svelte|node] [--pm npm]
23
+ atoll new <dir> [--framework react|vue|solid|svelte|node] [--mfe] [--pm npm]
24
24
  Scaffold a fresh app: vite shell with COOP/COEP headers, the
25
25
  @atolljs/vite plugin (worker entries are dev-bundled — no
26
26
  fast-refresh in workers), a worker-rendered counter island,
27
27
  hardened .npmrc — or a tsx Node service with a pooled worker.
28
+ --mfe instead scaffolds a publishable micro-frontend package:
29
+ contract + worker entry + vite.mfe.config.ts (emits a
30
+ self-contained remote bundle) + a dev harness mounting the
31
+ island through the contract.
28
32
 
29
33
  atoll init
30
34
  Wire Atoll into the current project: .npmrc, installs the @atolljs/*
@@ -34,6 +38,14 @@ atoll init
34
38
  atoll add worker <name> pooled worker + typed client (browser or node)
35
39
  atoll add memory <name> shared-memory contract module
36
40
  atoll add island <name> worker-rendered component for your framework
41
+ atoll add mfe <name> publishable micro-frontend — framework-free
42
+ contract (defineIslandContract) + worker entry
43
+ attaching it + vite.mfe.config.ts publish build
44
+ → dist-mfe/<name>.worker.js behind CORS
45
+ atoll add devtools [name] observability — src/atoll/devtools.ts init module
46
+ (import first in the app entry) + @atolljs/devtools
47
+ dev dep. Browser apps get the ?__atoll_devtools gate;
48
+ node hosts get the /node entry + ATOLL_DEVTOOLS=1
37
49
 
38
50
  atoll doctor [--fix] verify deps, lockfile, .npmrc policy,
39
51
  worker-entry detectability, COOP/COEP headers