Skip to content

fix(create-emdash): add blank template to Cloudflare picker#257

Open
travisbreaks wants to merge 1 commit intoemdash-cms:mainfrom
travisbreaks:fix/cli-blank-template
Open

fix(create-emdash): add blank template to Cloudflare picker#257
travisbreaks wants to merge 1 commit intoemdash-cms:mainfrom
travisbreaks:fix/cli-blank-template

Conversation

@travisbreaks
Copy link
Copy Markdown

What does this PR do?

The blank template was listed in NODE_TEMPLATES but missing from CLOUDFLARE_TEMPLATES in the create-emdash CLI. Since the CLI defaults to Cloudflare Workers, most users never saw the blank option in the template picker.

This adds the blank-cloudflare template variant (following the same pattern as blog-cloudflare, starter-cloudflare, etc.) and registers it across the CLI, sync script, and changeset config.

Closes #238

Type of change

  • Bug fix
  • Feature (requires approved Discussion)
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes
  • pnpm --silent lint:json | jq '.diagnostics | length' returns 0
  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • I have added a changeset (if this PR changes a published package)
  • New features link to an approved Discussion: https://github.com/emdash-cms/emdash/discussions/...

AI-generated code disclosure

  • This PR includes AI-generated code

Changes

  • Added templates/blank-cloudflare/ with Cloudflare-specific package.json, astro.config.mjs, and wrangler.jsonc (matching the pattern of other -cloudflare variants)
  • Added blank entry to CLOUDFLARE_TEMPLATES in packages/create-emdash/src/index.ts
  • Added blank:blank-cloudflare pair to scripts/sync-cloudflare-templates.sh
  • Added @emdash-cms/template-blank-cloudflare to changeset ignore list
  • Included a patch changeset for create-emdash

Note

The emdash-cms/templates repo will also need a blank-cloudflare directory for the CLI download to work at runtime. This PR covers the monorepo side; the templates repo sync may need a separate update.

The blank template was available for Node.js but missing from the
Cloudflare Workers template list in `npm create emdash`. This adds
the blank-cloudflare template variant and registers it in the CLI,
the sync script, and the changeset ignore list.

Fixes emdash-cms#238

Co-Authored-By: Tadao <tadao@travisfixes.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 5, 2026

🦋 Changeset detected

Latest commit: 19284bf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
create-emdash Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@travisbreaks
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 5, 2026

Overlapping PRs

This PR modifies files that are also changed by other open PRs:

This may cause merge conflicts or duplicated work. A maintainer will coordinate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

blank template missing from npm create emdash CLI

1 participant