Skip to content

Commit a4b4d0b

Browse files
committed
wip: exports and ergos
1 parent c2c8866 commit a4b4d0b

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The theater is split into two main parts. Each will live in its own separate bun
3636
1. Establish your `backstage.ts` module (this will be a web worker)
3737
```ts
3838
import {MySpec} from "./spec.js"
39-
import {theaterWorker, babylonBackstage} from "@benev/marduk"
39+
import {theaterWorker, babylonBackstage} from "@benev/marduk/x/theater/index.back.babylon.js"
4040

4141
void async function() {
4242
await theaterWorker(
@@ -58,7 +58,7 @@ The theater is split into two main parts. Each will live in its own separate bun
5858
1. Establish your `frontstage.ts` module (this will be your app's main entrypoint)
5959
```ts
6060
import {MySpec} from "./spec.js"
61-
import {theaterHost, Frontstage, theaterElement, register} from "@benev/marduk/x/theater/index.js"
61+
import {theaterHost, Frontstage, theaterElement, register} from "@benev/marduk/x/theater/index.front.js"
6262
6363
void async function() {
6464
const workerUrl = new URL("./backstage.bundle.js", import.meta.url)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"scripts": {
1717
"build": "run-s _clean _code _ssg _ln esbuild",
18-
"esbuild": "esbuild x/demo/theater/back.bundle.js --bundle --minify --format=esm --target=es2023 --outdir=x/demo/theater --entry-names=[name].esbuild --sourcemap \"--external:node:*\" --external:os --external:fs",
18+
"esbuild": "esbuild x/demo/theater/back.worker.js --bundle --minify --format=esm --target=es2023 --outdir=x/demo/theater --entry-names=[name].bundle --sourcemap \"--external:node:*\" --external:os --external:fs",
1919
"esbuild-watch": "npm run esbuild -- --watch",
2020
"_clean": "rm -rf x && s/delete-babylon-indexes",
2121
"_code": "turtle build --out=x",
File renamed without changes.

s/demo/theater/front.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {Frontstage} from "../../theater/parts/frontstage.js"
66
export async function demoFrontstage() {
77
const hash = document.head.querySelector("[data-commit-hash]")!.getAttribute("data-commit-hash")
88

9-
const workerUrl = new URL(`./worker.bundle.esbuild.js?v=${hash}`, import.meta.url)
9+
const workerUrl = new URL(`./back.worker.bundle.js?v=${hash}`, import.meta.url)
1010
const theater = await theaterHost<DemoFigmentSpec>({workerUrl})
1111
const frontstage = new Frontstage(theater)
1212

s/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
export * from "./babylon/index.js"
33
export * from "./buckets/index.js"
44
export * from "./nametag/index.js"
5-
export * from "./theater/index.js"
6-
export * from "./theater/babylon-backstage.js"
5+
export * from "./theater/parts/types.js"
76

87
export * from "./tools/loading/load-image.js"
98
export * from "./tools/babyloid.js"

s/theater/index.back.babylon.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
export {theaterWorker} from "./theater-worker.js"
3+
export {babylonBackstage} from "./babylon-backstage.js"
4+
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11

22
export {register} from "@benev/slate/x/base/helpers/register.js"
3-
43
export * from "./parts/types.js"
54
export {theaterHost} from "./theater-host.js"
6-
export {theaterWorker} from "./theater-worker.js"
75
export {Frontstage} from "./parts/frontstage.js"
86
export {theaterElement} from "./element/element.js"
97

0 commit comments

Comments
 (0)