Skip to content

Remove blank template from CLI#852

Merged
ascorbic merged 1 commit intomainfrom
opencode/issue238-20260430132629
Apr 30, 2026
Merged

Remove blank template from CLI#852
ascorbic merged 1 commit intomainfrom
opencode/issue238-20260430132629

Conversation

@ask-bonk
Copy link
Copy Markdown
Contributor

@ask-bonk ask-bonk Bot commented Apr 30, 2026

Summary

The issue reporter selected Cloudflare Workers in the CLI, where blank was never listed (only blog, starter, marketing, portfolio exist for Cloudflare). The blank entry only appeared in the Node.js path. The maintainer's resolution was to remove blank entirely — starter is the minimal-content template, on both platforms.

Changes

  • packages/create-emdash/src/index.ts — removed the blank entry from NODE_TEMPLATES. The picker now offers the same four templates (Blog, Starter, Marketing, Portfolio) on both Node and Cloudflare.
  • scripts/sync-templates-repo.mjs — removed "blank" from the list of templates synced to the public emdash-cms/templates repo, so the next sync will stop publishing it.
  • packages/core/tests/integration/smoke/site-matrix-smoke.test.ts — removed the templates/blank entry from the runtime smoke matrix. The boot test is what was tying CI to that template; the cross-cutting "Required files" check at the bottom of template-smoke.test.ts walks templates/* via the filesystem, so it'll just stop covering blank if/when the directory is removed.
  • .changeset/remove-blank-template-from-cli.mdpatch bump for create-emdash describing the user-facing change.

Docs check

I grepped docs/ for blank references — the only matches are HTML target="_blank" (link attributes, unrelated). The "blank template referenced in the docs" the maintainer mentioned in the second comment doesn't appear to be in the current docs site; the references that exist are all in code (CLI, sync script, smoke test) and are now removed.

Out of scope but worth flagging

  • templates/blank/ directory still exists in the monorepo. With the CLI and sync removed, it's effectively dead code — but deleting it would cascade into pnpm-lock.yaml, the @emdash-cms/template-blank package being removed from the workspace, and a CHANGELOG marker for that template. That feels like a separate cleanup decision; happy to do it in a follow-up if you want.
  • packages/create-emdash/CHANGELOG.md mentions blank historically (line 49). I left that alone — it's an accurate record of what shipped in that release.
  • Comment in template-smoke.test.ts:329 says "blank template has no seed, already filtered". Still factually correct (the loop filters by existsSync(seedPath)); didn't touch unrelated code.

Lint is clean for the files I changed (the 25 pre-existing diagnostics across other files are unrelated and present on main).

Closes #238

github run

Co-authored-by: ascorbic <ascorbic@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 30, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-perf-coordinator e290ccd Apr 30 2026, 01:32 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 30, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-i18n e290ccd Apr 30 2026, 01:32 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 30, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-demo-cache e290ccd Apr 30 2026, 01:33 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 30, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
docs e290ccd Apr 30 2026, 01:33 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 30, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-playground e290ccd Apr 30 2026, 01:33 PM

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 30, 2026

🦋 Changeset detected

Latest commit: e290ccd

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

This PR includes changesets to release 13 packages
Name Type
create-emdash Patch
emdash Patch
@emdash-cms/admin Patch
@emdash-cms/auth Patch
@emdash-cms/blocks Patch
@emdash-cms/cloudflare Patch
@emdash-cms/gutenberg-to-portable-text Patch
@emdash-cms/x402 Patch
@emdash-cms/fixture-perf-site Patch
@emdash-cms/perf-demo-site Patch
@emdash-cms/cache-demo-site Patch
@emdash-cms/auth-atproto Patch
@emdash-cms/plugin-embeds 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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 30, 2026

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@852

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@852

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@852

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@852

emdash

npm i https://pkg.pr.new/emdash@852

create-emdash

npm i https://pkg.pr.new/create-emdash@852

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@852

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@852

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@852

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@852

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@852

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@852

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@852

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@852

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@852

commit: e290ccd

@github-actions
Copy link
Copy Markdown
Contributor

PR template validation failed

Please fix the following issues by editing your PR description:

  • This PR does not use the required PR template. Please edit the description to use the PR template. Copy it into your PR description and fill out all sections.

See CONTRIBUTING.md for the full contribution policy.

@ascorbic ascorbic merged commit e73bb5f into main Apr 30, 2026
35 of 36 checks passed
@ascorbic ascorbic deleted the opencode/issue238-20260430132629 branch April 30, 2026 13:43
@emdashbot emdashbot Bot mentioned this pull request Apr 30, 2026
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