Skip to content

Add Xote and Xote SSR templates#124

Open
brnrdog wants to merge 2 commits intorescript-lang:masterfrom
brnrdog:brnrdog/xote-templates
Open

Add Xote and Xote SSR templates#124
brnrdog wants to merge 2 commits intorescript-lang:masterfrom
brnrdog:brnrdog/xote-templates

Conversation

@brnrdog
Copy link
Copy Markdown

@brnrdog brnrdog commented Apr 28, 2026

Summary

  • Adds two new templates:
    • rescript-template-xote — Xote with Vite, rescript-signals and Tailwind 4 (CSR)
    • rescript-template-xote-ssr — Xote with Vite, rescript-signals and Tailwind 4 (SSR via Node server)
  • Groups both under a single "Xote" entry in the interactive picker; selecting it prompts a follow-up question for CSR or SSR.
  • CLI flags --template xote and --template xote-ssr resolve directly to each variant for non-interactive use.
  • Follows existing template conventions: name fields aligned to the folder name, res:* scripts ordered first in package.json, _gitignore (renamed to .gitignore on copy), and rescript left out of devDeps so CRA installs the user-selected version.

Test plan

  • npm test passes
  • Interactive flow: picking "Xote" prompts a CSR/SSR follow-up
  • npm create rescript-app@latest my-app -- --template xote scaffolds and npm run dev works
  • npm create rescript-app@latest my-app -- --template xote-ssr scaffolds and npm run dev works

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 28, 2026

Open in StackBlitz

npx https://pkg.pr.new/create-rescript-app@124

commit: d77ce90

@brnrdog brnrdog marked this pull request as draft April 28, 2026 19:43
@brnrdog brnrdog force-pushed the brnrdog/xote-templates branch from 15afa23 to d77ce90 Compare April 28, 2026 19:53
@brnrdog brnrdog marked this pull request as ready for review April 28, 2026 19:59
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.

1 participant