docs: CDN installation for Vanilla JS and HTMX#307
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-originmock-sw.jsstep, app-root note). HTMX documents the real-backend testing approach, sincetwd.mockRequestis JSON-oriented today.docs/getting-started.md: a "No build step? Use a CDN" tip under Installation.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 viafindBy*.Verification
npm run docs:buildpasses with no dead-link warnings.Closes #305
🤖 Generated with Claude Code