Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/breezy-cats-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"create-cloudflare": patch
---

rename hello world templates with assets

Worker + Assets -> SSR / full-stack app
Assets only -> Static site
8 changes: 4 additions & 4 deletions packages/create-cloudflare/e2e-tests/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(

expect(project.path).toExist();
expect(output).toContain(`category Hello World example`);
expect(output).toContain(`type Worker + Assets`);
expect(output).toContain(`type SSR / full-stack app`);
expect(output).toContain(`lang TypeScript`);
expect(output).toContain(`no deploy`);
},
Expand Down Expand Up @@ -177,7 +177,7 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(
);

expect(project.path).toExist();
expect(output).toContain(`type Worker + Assets`);
expect(output).toContain(`type SSR / full-stack app`);
expect(output).toContain(`lang TypeScript`);
expect(output).toContain(`no deploy`);
} finally {
Expand Down Expand Up @@ -548,9 +548,9 @@ describe.skipIf(frameworkToTest || isQuarantineMode())("help text", () => {
hello-world
For processing requests, transforming responses, or API endpoints
hello-world-assets-only
For static sites (including SPAs) or when using your own backend
For static sites or when using your own backend. Uses Workers Static Assets.
hello-world-with-assets
For static sites with an API or server-side rendering (SSR)
For sites with a backend API, or server-side rendering (SSR). Uses Static Assets with a Worker.
hello-world-durable-object
For multiplayer apps using WebSockets, or when you need synchronization
hello-world-durable-object-with-assets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const config: TemplateConfig = {
configVersion: 1,
id: "hello-world-assets-only",
path: "templates/hello-world-assets-only",
displayName: "Assets only",
displayName: "Static site",
description:
"For static sites (including SPAs) or when using your own backend",
"For static sites or when using your own backend. Uses Workers Static Assets.",
platform: "workers",
copyFiles: {
path: "./templates",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ const config: TemplateConfig = {
configVersion: 1,
id: "hello-world-with-assets",
path: "templates/hello-world-with-assets",
displayName: "Worker + Assets",
description: "For static sites with an API or server-side rendering (SSR)",
displayName: "SSR / full-stack app",
description:
"For sites with a backend API, or server-side rendering (SSR). Uses Static Assets with a Worker.",
platform: "workers",
copyFiles: {
variants: {
Expand Down
Loading