Skip to content

docs: CDN installation for Vanilla JS and HTMX#307

Merged
kevinccbsg merged 2 commits into
mainfrom
docs/cdn-installation
Jul 22, 2026
Merged

docs: CDN installation for Vanilla JS and HTMX#307
kevinccbsg merged 2 commits into
mainfrom
docs/cdn-installation

Conversation

@kevinccbsg

Copy link
Copy Markdown
Member

What

Adds documentation for loading TWD from a CDN with no bundler, for projects with no build step.

  • docs/frameworks.md: new Vanilla JS and HTMX sections (esm.sh import map, hand-built test-module map, same-origin mock-sw.js step, app-root note). HTMX documents the real-backend testing approach, since twd.mockRequest is JSON-oriented today.
  • docs/getting-started.md: a "No build step? Use a CDN" tip under Installation.
  • Lists Vanilla JS and HTMX under supported frameworks.

Companion example repos

Referenced from the new sections (separate repos):

  • twd-vanillajs - counter + todo list, json-server backend, in-browser tests with API mocking, twd-cli CI + contract testing.
  • twd-htmx - HTMX todo list against a real Express HTML backend with a dev-only reset endpoint, tested via findBy*.

Verification

  • npm run docs:build passes with no dead-link warnings.

Closes #305

🤖 Generated with Claude Code

kevinccbsg and others added 2 commits July 22, 2026 09:38
Add framework guide sections for no-build projects that load TWD from a
CDN via an import map (esm.sh), covering the same-origin service-worker
step and the app-root note. HTMX documents the real-backend testing
approach since mocking is JSON-oriented today. Add a CDN tip to Getting
Started and list Vanilla JS + HTMX under supported frameworks.

Refs #305

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kevinccbsg
kevinccbsg merged commit 83e713c into main Jul 22, 2026
9 checks passed
@kevinccbsg
kevinccbsg deleted the docs/cdn-installation branch July 22, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CDN Installation

1 participant