Skip to content

Commit 5ace43b

Browse files
authored
rename c3 options (#8874)
1 parent 05b1e83 commit 5ace43b

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.changeset/breezy-cats-trade.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
rename hello world templates with assets
6+
7+
Worker + Assets -> SSR / full-stack app
8+
Assets only -> Static site

packages/create-cloudflare/e2e-tests/cli.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(
8383

8484
expect(project.path).toExist();
8585
expect(output).toContain(`category Hello World example`);
86-
expect(output).toContain(`type Worker + Assets`);
86+
expect(output).toContain(`type SSR / full-stack app`);
8787
expect(output).toContain(`lang TypeScript`);
8888
expect(output).toContain(`no deploy`);
8989
},
@@ -177,7 +177,7 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(
177177
);
178178

179179
expect(project.path).toExist();
180-
expect(output).toContain(`type Worker + Assets`);
180+
expect(output).toContain(`type SSR / full-stack app`);
181181
expect(output).toContain(`lang TypeScript`);
182182
expect(output).toContain(`no deploy`);
183183
} finally {
@@ -548,9 +548,9 @@ describe.skipIf(frameworkToTest || isQuarantineMode())("help text", () => {
548548
hello-world
549549
For processing requests, transforming responses, or API endpoints
550550
hello-world-assets-only
551-
For static sites (including SPAs) or when using your own backend
551+
For static sites or when using your own backend. Uses Workers Static Assets.
552552
hello-world-with-assets
553-
For static sites with an API or server-side rendering (SSR)
553+
For sites with a backend API, or server-side rendering (SSR). Uses Static Assets with a Worker.
554554
hello-world-durable-object
555555
For multiplayer apps using WebSockets, or when you need synchronization
556556
hello-world-durable-object-with-assets

packages/create-cloudflare/templates/hello-world-assets-only/c3.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const config: TemplateConfig = {
44
configVersion: 1,
55
id: "hello-world-assets-only",
66
path: "templates/hello-world-assets-only",
7-
displayName: "Assets only",
7+
displayName: "Static site",
88
description:
9-
"For static sites (including SPAs) or when using your own backend",
9+
"For static sites or when using your own backend. Uses Workers Static Assets.",
1010
platform: "workers",
1111
copyFiles: {
1212
path: "./templates",

packages/create-cloudflare/templates/hello-world-with-assets/c3.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ const config: TemplateConfig = {
44
configVersion: 1,
55
id: "hello-world-with-assets",
66
path: "templates/hello-world-with-assets",
7-
displayName: "Worker + Assets",
8-
description: "For static sites with an API or server-side rendering (SSR)",
7+
displayName: "SSR / full-stack app",
8+
description:
9+
"For sites with a backend API, or server-side rendering (SSR). Uses Static Assets with a Worker.",
910
platform: "workers",
1011
copyFiles: {
1112
variants: {

0 commit comments

Comments
 (0)