diff --git a/tsconfig.json b/tsconfig.json index d15477f..920a572 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,5 +15,5 @@ "lib": ["DOM", "DOM.Iterable", "ESNext", "WebWorker"], "types": ["@webgpu/types", "@types/node", "bun-types"] }, - "include": ["lib/**/*.ts", "demo/**/*.ts", "vite.config.ts"] + "include": ["lib/**/*.ts", "website/**/*.ts", "vite.config.ts"] } diff --git a/vite.config.ts b/vite.config.ts index 321baf2..90285ff 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,10 +2,10 @@ import { resolve } from 'node:path'; import { readdirSync } from 'node:fs'; import { defineConfig, IndexHtmlTransformContext, Plugin } from 'vite'; -const demoDir = resolve(__dirname, 'demo'); +const websiteDir = resolve(__dirname, 'website'); function getFiles() { - return readdirSync(demoDir).filter((file) => file.endsWith('.html')); + return readdirSync(websiteDir).filter((file) => file.endsWith('.html')); } const linkGenerator = (): Plugin => { @@ -64,13 +64,13 @@ const linkGenerator = (): Plugin => { }; export default defineConfig({ - root: 'demo', + root: 'website', plugins: [linkGenerator()], build: { target: 'esnext', rollupOptions: { input: getFiles().reduce((acc, file) => { - acc[file.replace('.html', '')] = resolve(demoDir, file); + acc[file.replace('.html', '')] = resolve(websiteDir, file); return acc; }, {} as Record), }, diff --git a/demo/[shaders]distance-field.html b/website/[shaders]distance-field.html similarity index 100% rename from demo/[shaders]distance-field.html rename to website/[shaders]distance-field.html diff --git a/demo/[shaders]falling-sand.html b/website/[shaders]falling-sand.html similarity index 100% rename from demo/[shaders]falling-sand.html rename to website/[shaders]falling-sand.html diff --git a/demo/[tests]distance-field.html b/website/[tests]distance-field.html similarity index 100% rename from demo/[tests]distance-field.html rename to website/[tests]distance-field.html diff --git a/demo/[tests]many-shapes.html b/website/[tests]many-shapes.html similarity index 100% rename from demo/[tests]many-shapes.html rename to website/[tests]many-shapes.html diff --git a/demo/[tests]rope.html b/website/[tests]rope.html similarity index 100% rename from demo/[tests]rope.html rename to website/[tests]rope.html diff --git a/demo/_xanadu-article.html b/website/_xanadu-article.html similarity index 100% rename from demo/_xanadu-article.html rename to website/_xanadu-article.html diff --git a/demo/animated-shapes-on-a-canvas.html b/website/animated-shapes-on-a-canvas.html similarity index 100% rename from demo/animated-shapes-on-a-canvas.html rename to website/animated-shapes-on-a-canvas.html diff --git a/demo/audio-beats-with-event-propagators.html b/website/audio-beats-with-event-propagators.html similarity index 100% rename from demo/audio-beats-with-event-propagators.html rename to website/audio-beats-with-event-propagators.html diff --git a/demo/canvasify-a-html-document.html b/website/canvasify-a-html-document.html similarity index 100% rename from demo/canvasify-a-html-document.html rename to website/canvasify-a-html-document.html diff --git a/demo/chains-of-thought/chains-of-thought.json b/website/chains-of-thought/chains-of-thought.json similarity index 100% rename from demo/chains-of-thought/chains-of-thought.json rename to website/chains-of-thought/chains-of-thought.json diff --git a/demo/chains-of-thought/index.html b/website/chains-of-thought/index.html similarity index 100% rename from demo/chains-of-thought/index.html rename to website/chains-of-thought/index.html diff --git a/demo/chains-of-thought/main.ts b/website/chains-of-thought/main.ts similarity index 100% rename from demo/chains-of-thought/main.ts rename to website/chains-of-thought/main.ts diff --git a/demo/cross-iframe-sand.html b/website/cross-iframe-sand.html similarity index 100% rename from demo/cross-iframe-sand.html rename to website/cross-iframe-sand.html diff --git a/demo/cross-iframe-sticky-html-arrow.html b/website/cross-iframe-sticky-html-arrow.html similarity index 100% rename from demo/cross-iframe-sticky-html-arrow.html rename to website/cross-iframe-sticky-html-arrow.html diff --git a/demo/cross-iframe-xanadu-links.html b/website/cross-iframe-xanadu-links.html similarity index 100% rename from demo/cross-iframe-xanadu-links.html rename to website/cross-iframe-xanadu-links.html diff --git a/demo/cutting-event-propagators.html b/website/cutting-event-propagators.html similarity index 100% rename from demo/cutting-event-propagators.html rename to website/cutting-event-propagators.html diff --git a/demo/effect-integrator.html b/website/effect-integrator.html similarity index 100% rename from demo/effect-integrator.html rename to website/effect-integrator.html diff --git a/demo/embeddable-llm-with-propagators.html b/website/embeddable-llm-with-propagators.html similarity index 100% rename from demo/embeddable-llm-with-propagators.html rename to website/embeddable-llm-with-propagators.html diff --git a/demo/event-propagators-with-weather.html b/website/event-propagators-with-weather.html similarity index 100% rename from demo/event-propagators-with-weather.html rename to website/event-propagators-with-weather.html diff --git a/demo/event-propagators.html b/website/event-propagators.html similarity index 100% rename from demo/event-propagators.html rename to website/event-propagators.html diff --git a/demo/folk-interface-for-qr-codes.html b/website/folk-interface-for-qr-codes.html similarity index 100% rename from demo/folk-interface-for-qr-codes.html rename to website/folk-interface-for-qr-codes.html diff --git a/demo/graph-layout.html b/website/graph-layout.html similarity index 100% rename from demo/graph-layout.html rename to website/graph-layout.html diff --git a/demo/html-ink.html b/website/html-ink.html similarity index 100% rename from demo/html-ink.html rename to website/html-ink.html diff --git a/demo/html-spreadsheet.html b/website/html-spreadsheet.html similarity index 100% rename from demo/html-spreadsheet.html rename to website/html-spreadsheet.html diff --git a/demo/index.html b/website/index.html similarity index 100% rename from demo/index.html rename to website/index.html diff --git a/demo/moveBefore.html b/website/moveBefore.html similarity index 100% rename from demo/moveBefore.html rename to website/moveBefore.html diff --git a/demo/music-crossfader.html b/website/music-crossfader.html similarity index 100% rename from demo/music-crossfader.html rename to website/music-crossfader.html diff --git a/demo/physics.html b/website/physics.html similarity index 100% rename from demo/physics.html rename to website/physics.html diff --git a/demo/projector.html b/website/projector.html similarity index 100% rename from demo/projector.html rename to website/projector.html diff --git a/demo/proximity-based-communication-and-event-propagators.html b/website/proximity-based-communication-and-event-propagators.html similarity index 100% rename from demo/proximity-based-communication-and-event-propagators.html rename to website/proximity-based-communication-and-event-propagators.html diff --git a/demo/proximity-based-communication.html b/website/proximity-based-communication.html similarity index 100% rename from demo/proximity-based-communication.html rename to website/proximity-based-communication.html diff --git a/demo/proximity-based-music.html b/website/proximity-based-music.html similarity index 100% rename from demo/proximity-based-music.html rename to website/proximity-based-music.html diff --git a/demo/public/Comanche (Heyoka Remix).wav b/website/public/Comanche (Heyoka Remix).wav similarity index 100% rename from demo/public/Comanche (Heyoka Remix).wav rename to website/public/Comanche (Heyoka Remix).wav diff --git a/demo/public/Feather.mov b/website/public/Feather.mov similarity index 100% rename from demo/public/Feather.mov rename to website/public/Feather.mov diff --git a/demo/public/Feather.mp3 b/website/public/Feather.mp3 similarity index 100% rename from demo/public/Feather.mp3 rename to website/public/Feather.mp3 diff --git a/demo/public/Hat_Closed.wav b/website/public/Hat_Closed.wav similarity index 100% rename from demo/public/Hat_Closed.wav rename to website/public/Hat_Closed.wav diff --git a/demo/public/Kick_Bouncy.wav b/website/public/Kick_Bouncy.wav similarity index 100% rename from demo/public/Kick_Bouncy.wav rename to website/public/Kick_Bouncy.wav diff --git a/demo/public/dancing-flower.mov b/website/public/dancing-flower.mov similarity index 100% rename from demo/public/dancing-flower.mov rename to website/public/dancing-flower.mov diff --git a/demo/public/dancing-flower.webm b/website/public/dancing-flower.webm similarity index 100% rename from demo/public/dancing-flower.webm rename to website/public/dancing-flower.webm diff --git a/demo/radial-space.html b/website/radial-space.html similarity index 100% rename from demo/radial-space.html rename to website/radial-space.html diff --git a/demo/responsive-canvas-shapes.html b/website/responsive-canvas-shapes.html similarity index 100% rename from demo/responsive-canvas-shapes.html rename to website/responsive-canvas-shapes.html diff --git a/demo/semantic-zoom-in-a-canvas.html b/website/semantic-zoom-in-a-canvas.html similarity index 100% rename from demo/semantic-zoom-in-a-canvas.html rename to website/semantic-zoom-in-a-canvas.html diff --git a/demo/shape-collision-detection.html b/website/shape-collision-detection.html similarity index 100% rename from demo/shape-collision-detection.html rename to website/shape-collision-detection.html diff --git a/demo/shapes-in-a-canvas.html b/website/shapes-in-a-canvas.html similarity index 100% rename from demo/shapes-in-a-canvas.html rename to website/shapes-in-a-canvas.html diff --git a/demo/space-morph.html b/website/space-morph.html similarity index 100% rename from demo/space-morph.html rename to website/space-morph.html diff --git a/demo/spreadsheet-graph-projection.html b/website/spreadsheet-graph-projection.html similarity index 100% rename from demo/spreadsheet-graph-projection.html rename to website/spreadsheet-graph-projection.html diff --git a/demo/spreadsheet-map-propagator.html b/website/spreadsheet-map-propagator.html similarity index 100% rename from demo/spreadsheet-map-propagator.html rename to website/spreadsheet-map-propagator.html diff --git a/demo/spreadsheet-shape-projection.html b/website/spreadsheet-shape-projection.html similarity index 100% rename from demo/spreadsheet-shape-projection.html rename to website/spreadsheet-shape-projection.html diff --git a/demo/src/file-system.ts b/website/src/file-system.ts similarity index 100% rename from demo/src/file-system.ts rename to website/src/file-system.ts diff --git a/demo/src/folk-metronome.ts b/website/src/folk-metronome.ts similarity index 100% rename from demo/src/folk-metronome.ts rename to website/src/folk-metronome.ts diff --git a/demo/src/folk-timer.ts b/website/src/folk-timer.ts similarity index 100% rename from demo/src/folk-timer.ts rename to website/src/folk-timer.ts diff --git a/demo/src/folk-weather.ts b/website/src/folk-weather.ts similarity index 100% rename from demo/src/folk-weather.ts rename to website/src/folk-weather.ts diff --git a/demo/src/geo-wiki.ts b/website/src/geo-wiki.ts similarity index 100% rename from demo/src/geo-wiki.ts rename to website/src/geo-wiki.ts diff --git a/demo/src/record-player.ts b/website/src/record-player.ts similarity index 100% rename from demo/src/record-player.ts rename to website/src/record-player.ts diff --git a/demo/sticky-html-arrow.html b/website/sticky-html-arrow.html similarity index 100% rename from demo/sticky-html-arrow.html rename to website/sticky-html-arrow.html diff --git a/demo/sticky-html-rope.html b/website/sticky-html-rope.html similarity index 100% rename from demo/sticky-html-rope.html rename to website/sticky-html-rope.html diff --git a/demo/toolset.html b/website/toolset.html similarity index 100% rename from demo/toolset.html rename to website/toolset.html diff --git a/demo/visualizing-set-relations.html b/website/visualizing-set-relations.html similarity index 100% rename from demo/visualizing-set-relations.html rename to website/visualizing-set-relations.html diff --git a/demo/xanadu-link.html b/website/xanadu-link.html similarity index 100% rename from demo/xanadu-link.html rename to website/xanadu-link.html