Skip to content

feat: project scaffolding - Vite, TypeScript, Tailwind, Vitest#22

Merged
PAMulligan merged 1 commit intomainfrom
1-project-scaffolding-vite-typescript-tailwind-vitest
Mar 21, 2026
Merged

feat: project scaffolding - Vite, TypeScript, Tailwind, Vitest#22
PAMulligan merged 1 commit intomainfrom
1-project-scaffolding-vite-typescript-tailwind-vitest

Conversation

@PAMulligan
Copy link
Copy Markdown
Contributor

Summary

  • Configure Vite library mode with dual build outputs: ESM (React externalized) for React app consumers and IIFE (React bundled) for standalone <script> embed
  • Add ESLint 9 flat config with TypeScript, React Hooks, and React Refresh plugins plus Prettier integration
  • Add package.json exports map, types, peerDependencies, and build/lint/format/typecheck scripts
  • Update tsconfig with declaration emit for library type generation

Test plan

  • pnpm build produces both claudius.js (ESM, 16 KB) and claudius-embed.iife.js (IIFE, 485 KB)
  • pnpm test passes all 29 tests
  • pnpm lint runs with 0 errors (3 pre-existing warnings)
  • pnpm typecheck passes cleanly

🤖 Generated with Claude Code

…orts

Set up Vite library mode with ESM output (React externalized) and a
separate IIFE embed build (React bundled) for standalone script usage.
Add ESLint 9 flat config with TypeScript and React plugins, Prettier,
package.json exports map with types, and tsconfig declaration emit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PAMulligan PAMulligan linked an issue Mar 21, 2026 that may be closed by this pull request
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying chat-widget with  Cloudflare Pages  Cloudflare Pages

Latest commit: cee5c10
Status: ✅  Deploy successful!
Preview URL: https://096d000e.chat-widget-ejc.pages.dev
Branch Preview URL: https://1-project-scaffolding-vite-t.chat-widget-ejc.pages.dev

View logs

@PAMulligan PAMulligan self-assigned this Mar 21, 2026
@PAMulligan PAMulligan added enhancement New feature or request widget Chat widget UI and embed functionality breaking change Changes that break backward compatibility labels Mar 21, 2026
@PAMulligan PAMulligan moved this from Todo to In Progress in PMDS Open Source Roadmap Mar 21, 2026
@PAMulligan PAMulligan moved this from In Progress to Done in PMDS Open Source Roadmap Mar 21, 2026
@PAMulligan PAMulligan added this to the v1.0.0 milestone Mar 21, 2026
@PAMulligan PAMulligan merged commit 2b3eaf2 into main Mar 21, 2026
2 checks passed
@PAMulligan PAMulligan deleted the 1-project-scaffolding-vite-typescript-tailwind-vitest branch March 30, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Changes that break backward compatibility enhancement New feature or request widget Chat widget UI and embed functionality

Projects

Development

Successfully merging this pull request may close these issues.

Project scaffolding: Vite + TypeScript + Tailwind + Vitest

1 participant