create-cloudflare 2.67.1 → 2.67.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/cli.js +2898 -2889
  2. package/package.json +7 -7
  3. package/templates/analog/c3.ts +2 -2
  4. package/templates/angular/pages/c3.ts +3 -3
  5. package/templates/angular/workers/c3.ts +3 -3
  6. package/templates/astro/pages/c3.ts +3 -3
  7. package/templates/astro/workers/c3.ts +3 -3
  8. package/templates/gatsby/pages/c3.ts +1 -1
  9. package/templates/gatsby/workers/c3.ts +1 -1
  10. package/templates/hono/pages/c3.ts +1 -1
  11. package/templates/hono/workers/c3.ts +1 -1
  12. package/templates/nuxt/pages/c3.ts +3 -3
  13. package/templates/nuxt/workers/c3.ts +3 -3
  14. package/templates/pre-existing/c3.ts +2 -2
  15. package/templates/qwik/pages/c3.ts +7 -4
  16. package/templates/qwik/workers/c3.ts +7 -4
  17. package/templates/react/pages/c3.ts +2 -2
  18. package/templates/react/workers/c3.ts +18 -13
  19. package/templates/react/workers/js/src/App.jsx +132 -42
  20. package/templates/react/workers/js/src/assets/cloudflare.svg +1 -0
  21. package/templates/react/workers/ts/src/App.tsx +132 -42
  22. package/templates/react/workers/ts/src/assets/cloudflare.svg +1 -0
  23. package/templates/react-router/c3.ts +1 -1
  24. package/templates/redwood/c3.ts +1 -1
  25. package/templates/solid/c3.ts +2 -2
  26. package/templates/svelte/pages/c3.ts +2 -2
  27. package/templates/svelte/workers/c3.ts +2 -2
  28. package/templates/tanstack-start/c3.ts +1 -1
  29. package/templates/vike/c3.ts +1 -1
  30. package/templates/vike/experimental-c3.ts +1 -1
  31. package/templates/vue/workers/c3.ts +6 -3
  32. package/templates/react/workers/js/src/App.css +0 -45
  33. package/templates/react/workers/js/src/assets/Cloudflare_Logo.svg +0 -53
  34. package/templates/react/workers/ts/src/App.css +0 -45
  35. package/templates/react/workers/ts/src/assets/Cloudflare_Logo.svg +0 -51
@@ -1,4 +1,4 @@
1
- import { logRaw } from "@cloudflare/cli";
1
+ import { logRaw } from "@cloudflare/cli-shared-helpers";
2
2
  import { runFrameworkGenerator } from "frameworks/index";
3
3
  import { detectPackageManager } from "helpers/packageManagers";
4
4
  import type { TemplateConfig } from "../../src/templates";
@@ -1,4 +1,4 @@
1
- import { logRaw } from "@cloudflare/cli";
1
+ import { logRaw } from "@cloudflare/cli-shared-helpers";
2
2
  import { runFrameworkGenerator } from "frameworks/index";
3
3
  import { detectPackageManager } from "helpers/packageManagers";
4
4
  import type { TemplateConfig } from "../../src/templates";
@@ -1,5 +1,5 @@
1
- import { logRaw, updateStatus } from "@cloudflare/cli";
2
- import { blue } from "@cloudflare/cli/colors";
1
+ import { logRaw, updateStatus } from "@cloudflare/cli-shared-helpers";
2
+ import { blue } from "@cloudflare/cli-shared-helpers/colors";
3
3
  import { mergeObjectProperties, transformFile } from "@cloudflare/codemod";
4
4
  import { runFrameworkGenerator } from "frameworks/index";
5
5
  import { usesTypescript } from "helpers/files";
@@ -1,6 +1,6 @@
1
1
  import { existsSync } from "node:fs";
2
- import { logRaw, updateStatus } from "@cloudflare/cli";
3
- import { blue, brandColor, dim } from "@cloudflare/cli/colors";
2
+ import { logRaw, updateStatus } from "@cloudflare/cli-shared-helpers";
3
+ import { blue, brandColor, dim } from "@cloudflare/cli-shared-helpers/colors";
4
4
  import { transformFile } from "@cloudflare/codemod";
5
5
  import { runFrameworkGenerator } from "frameworks/index";
6
6
  import { usesTypescript } from "helpers/files";
@@ -1,5 +1,5 @@
1
- import { logRaw, updateStatus } from "@cloudflare/cli";
2
- import { blue, brandColor, dim } from "@cloudflare/cli/colors";
1
+ import { logRaw, updateStatus } from "@cloudflare/cli-shared-helpers";
2
+ import { blue, brandColor, dim } from "@cloudflare/cli-shared-helpers/colors";
3
3
  import { transformFile } from "@cloudflare/codemod";
4
4
  import { runFrameworkGenerator } from "frameworks/index";
5
5
  import { usesTypescript } from "helpers/files";
@@ -1,4 +1,4 @@
1
- import { logRaw } from "@cloudflare/cli";
1
+ import { logRaw } from "@cloudflare/cli-shared-helpers";
2
2
  import { runFrameworkGenerator } from "frameworks/index";
3
3
  import { detectPackageManager } from "helpers/packageManagers";
4
4
  import type { TemplateConfig } from "../../src/templates";
@@ -1,4 +1,4 @@
1
- import { logRaw } from "@cloudflare/cli";
1
+ import { logRaw } from "@cloudflare/cli-shared-helpers";
2
2
  import { runFrameworkGenerator } from "frameworks/index";
3
3
  import type { TemplateConfig } from "../../src/templates";
4
4
  import type { C3Context } from "types";
@@ -1,4 +1,4 @@
1
- import { logRaw } from "@cloudflare/cli";
1
+ import { logRaw } from "@cloudflare/cli-shared-helpers";
2
2
  import { runFrameworkGenerator } from "frameworks/index";
3
3
  import type { TemplateConfig } from "../../src/templates";
4
4
  import type { C3Context } from "types";
@@ -1,6 +1,9 @@
1
- import { logRaw } from "@cloudflare/cli";
2
- import { brandColor, dim } from "@cloudflare/cli/colors";
3
- import { inputPrompt, spinner } from "@cloudflare/cli/interactive";
1
+ import { logRaw } from "@cloudflare/cli-shared-helpers";
2
+ import { brandColor, dim } from "@cloudflare/cli-shared-helpers/colors";
3
+ import {
4
+ inputPrompt,
5
+ spinner,
6
+ } from "@cloudflare/cli-shared-helpers/interactive";
4
7
  import { runFrameworkGenerator } from "frameworks/index";
5
8
  import { readJSON, usesTypescript, writeJSON } from "helpers/files";
6
9
  import { detectPackageManager } from "helpers/packageManagers";
@@ -1,45 +0,0 @@
1
- #root {
2
- max-width: 1280px;
3
- margin: 0 auto;
4
- padding: 2rem;
5
- text-align: center;
6
- }
7
-
8
- .logo {
9
- height: 6em;
10
- padding: 1.5em;
11
- will-change: filter;
12
- transition: filter 300ms;
13
- }
14
- .logo:hover {
15
- filter: drop-shadow(0 0 2em #646cffaa);
16
- }
17
- .logo.react:hover {
18
- filter: drop-shadow(0 0 2em #61dafbaa);
19
- }
20
- .logo.cloudflare:hover {
21
- filter: drop-shadow(0 0 2em #f6821faa);
22
- }
23
-
24
- @keyframes logo-spin {
25
- from {
26
- transform: rotate(0deg);
27
- }
28
- to {
29
- transform: rotate(360deg);
30
- }
31
- }
32
-
33
- @media (prefers-reduced-motion: no-preference) {
34
- a:nth-of-type(2) .logo {
35
- animation: logo-spin infinite 20s linear;
36
- }
37
- }
38
-
39
- .card {
40
- padding: 2em;
41
- }
42
-
43
- .read-the-docs {
44
- color: #888;
45
- }
@@ -1,53 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 822.8 355.5" style="enable-background:new 0 0 822.8 355.5;" xml:space="preserve">
5
- <style type="text/css">
6
- .st0{fill:#FFFFFF;}
7
- @media(prefers-color-scheme:light){.st0{fill:#404242;}}
8
- .st1{fill:#FFFFFF;}
9
- .st2{fill:#FBAE40;}
10
- .st3{fill:#F58220;}
11
- </style>
12
- <g id="Page-1">
13
- <path id="CLOUDFLARE-_xAE_" class="st0" d="M772.2,252.6c-3.4,0-6.1-2.7-6.1-6.1c0-3.3,2.7-6.1,6.1-6.1c3.3,0,6.1,2.7,6.1,6.1
14
- C778.3,249.8,775.5,252.6,772.2,252.6L772.2,252.6z M772.2,241.6c-2.7,0-4.9,2.2-4.9,4.9s2.2,4.9,4.9,4.9c2.7,0,4.9-2.2,4.9-4.9
15
- S774.9,241.6,772.2,241.6L772.2,241.6z M775.3,249.7h-1.4l-1.2-2.3h-1.6v2.3h-1.3V243h3.2c1.4,0,2.3,0.9,2.3,2.2c0,1-0.6,1.7-1.4,2
16
- L775.3,249.7z M772.9,246.2c0.5,0,1-0.3,1-1c0-0.8-0.4-1-1-1h-2v2H772.9z M136.7,239.8h15.6v42.5h27.1v13.6h-42.7V239.8z
17
- M195.5,268v-0.2c0-16.1,13-29.2,30.3-29.2s30.1,12.9,30.1,29v0.2c0,16.1-13,29.2-30.3,29.2S195.5,284.1,195.5,268z M240.1,268
18
- v-0.2c0-8.1-5.8-15.1-14.4-15.1c-8.5,0-14.2,6.9-14.2,15v0.2c0,8.1,5.8,15.1,14.3,15.1C234.4,283,240.1,276.1,240.1,268z
19
- M275,271.3v-31.5h15.8V271c0,8.1,4.1,11.9,10.3,11.9c6.2,0,10.3-3.7,10.3-11.5v-31.6h15.8v31.1c0,18.1-10.3,26-26.3,26
20
- C285,296.9,275,288.9,275,271.3z M351,239.8h21.6c20,0,31.7,11.5,31.7,27.7v0.2c0,16.2-11.8,28.2-32,28.2H351V239.8z M372.9,282.1
21
- c9.3,0,15.5-5.1,15.5-14.2v-0.2c0-9-6.2-14.2-15.5-14.2h-6.3V282L372.9,282.1L372.9,282.1z M426.9,239.8h44.9v13.6h-29.4v9.6H469
22
- v12.9h-26.6v20h-15.5V239.8z M493.4,239.8h15.5v42.5h27.2v13.6h-42.7V239.8z M576.7,239.4h15l23.9,56.5h-16.7l-4.1-10h-21.6l-4,10
23
- h-16.3L576.7,239.4z M590.4,273.8l-6.2-15.9l-6.3,15.9H590.4z M635.6,239.8h26.5c8.6,0,14.5,2.2,18.3,6.1c3.3,3.2,5,7.5,5,13.1v0.2
24
- c0,8.6-4.6,14.3-11.5,17.2l13.4,19.6h-18L658,279h-6.8v17h-15.6V239.8z M661.4,266.7c5.3,0,8.3-2.6,8.3-6.6v-0.2
25
- c0-4.4-3.2-6.6-8.4-6.6h-10.2v13.4H661.4z M707.8,239.8h45.1V253h-29.7v8.5h26.9v12.3h-26.9v8.9h30.1v13.2h-45.5V239.8z
26
- M102.7,274.6c-2.2,4.9-6.8,8.4-12.8,8.4c-8.5,0-14.3-7.1-14.3-15.1v-0.2c0-8.1,5.7-15,14.2-15c6.4,0,11.3,3.9,13.3,9.3h16.4
27
- c-2.6-13.4-14.4-23.3-29.6-23.3c-17.3,0-30.3,13.1-30.3,29.2v0.2c0,16.1,12.8,29,30.1,29c14.8,0,26.4-9.6,29.4-22.4L102.7,274.6z"
28
- />
29
- <path id="flare" class="st1" d="M734.5,150.4l-40.7-24.7c-0.6-0.1-4.4,0.3-6.4-0.7c-1.4-0.7-2.5-1.9-3.2-4c-3.2,0-175.5,0-175.5,0
30
- v91.8h225.8V150.4z"/>
31
- <path id="right-cloud" class="st2" d="M692.2,125.8c-0.8,0-1.5,0.6-1.8,1.4l-4.8,16.7c-2.1,7.2-1.3,13.8,2.2,18.7
32
- c3.2,4.5,8.6,7.1,15.1,7.4l26.2,1.6c0.8,0,1.5,0.4,1.9,1c0.4,0.6,0.5,1.5,0.3,2.2c-0.4,1.2-1.6,2.1-2.9,2.2l-27.3,1.6
33
- c-14.8,0.7-30.7,12.6-36.3,27.2l-2,5.1c-0.4,1,0.3,2,1.4,2H758c1.1,0,2.1-0.7,2.4-1.8c1.6-5.8,2.5-11.9,2.5-18.2
34
- c0-37-30.2-67.2-67.3-67.2C694.5,125.7,693.3,125.7,692.2,125.8z"/>
35
- <path id="left-cloud" class="st3" d="M656.4,204.6c2.1-7.2,1.3-13.8-2.2-18.7c-3.2-4.5-8.6-7.1-15.1-7.4L516,176.9
36
- c-0.8,0-1.5-0.4-1.9-1c-0.4-0.6-0.5-1.4-0.3-2.2c0.4-1.2,1.6-2.1,2.9-2.2l124.2-1.6c14.7-0.7,30.7-12.6,36.3-27.2l7.1-18.5
37
- c0.3-0.8,0.4-1.6,0.2-2.4c-8-36.2-40.3-63.2-78.9-63.2c-35.6,0-65.8,23-76.6,54.9c-7-5.2-15.9-8-25.5-7.1
38
- c-17.1,1.7-30.8,15.4-32.5,32.5c-0.4,4.4-0.1,8.7,0.9,12.7c-27.9,0.8-50.2,23.6-50.2,51.7c0,2.5,0.2,5,0.5,7.5
39
- c0.2,1.2,1.2,2.1,2.4,2.1h227.2c1.3,0,2.5-0.9,2.9-2.2L656.4,204.6z"/>
40
- </g>
41
- <g>
42
- </g>
43
- <g>
44
- </g>
45
- <g>
46
- </g>
47
- <g>
48
- </g>
49
- <g>
50
- </g>
51
- <g>
52
- </g>
53
- </svg>
@@ -1,45 +0,0 @@
1
- #root {
2
- max-width: 1280px;
3
- margin: 0 auto;
4
- padding: 2rem;
5
- text-align: center;
6
- }
7
-
8
- .logo {
9
- height: 6em;
10
- padding: 1.5em;
11
- will-change: filter;
12
- transition: filter 300ms;
13
- }
14
- .logo:hover {
15
- filter: drop-shadow(0 0 2em #646cffaa);
16
- }
17
- .logo.react:hover {
18
- filter: drop-shadow(0 0 2em #61dafbaa);
19
- }
20
- .logo.cloudflare:hover {
21
- filter: drop-shadow(0 0 2em #f6821faa);
22
- }
23
-
24
- @keyframes logo-spin {
25
- from {
26
- transform: rotate(0deg);
27
- }
28
- to {
29
- transform: rotate(360deg);
30
- }
31
- }
32
-
33
- @media (prefers-reduced-motion: no-preference) {
34
- a:nth-of-type(2) .logo {
35
- animation: logo-spin infinite 20s linear;
36
- }
37
- }
38
-
39
- .card {
40
- padding: 2em;
41
- }
42
-
43
- .read-the-docs {
44
- color: #888;
45
- }
@@ -1,51 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 822.8 355.5" style="enable-background:new 0 0 822.8 355.5;" xml:space="preserve">
5
- <style type="text/css">
6
- .st0{fill:#FFFFFF;}
7
- .st1{fill:#FBAE40;}
8
- .st2{fill:#F58220;}
9
- </style>
10
- <g id="Page-1">
11
- <path id="CLOUDFLARE-_xAE_" class="st0" d="M772.2,252.6c-3.4,0-6.1-2.7-6.1-6.1c0-3.3,2.7-6.1,6.1-6.1c3.3,0,6.1,2.7,6.1,6.1
12
- C778.3,249.8,775.5,252.6,772.2,252.6L772.2,252.6z M772.2,241.6c-2.7,0-4.9,2.2-4.9,4.9s2.2,4.9,4.9,4.9c2.7,0,4.9-2.2,4.9-4.9
13
- S774.9,241.6,772.2,241.6L772.2,241.6z M775.3,249.7h-1.4l-1.2-2.3h-1.6v2.3h-1.3V243h3.2c1.4,0,2.3,0.9,2.3,2.2c0,1-0.6,1.7-1.4,2
14
- L775.3,249.7z M772.9,246.2c0.5,0,1-0.3,1-1c0-0.8-0.4-1-1-1h-2v2H772.9z M136.7,239.8h15.6v42.5h27.1v13.6h-42.7V239.8z
15
- M195.5,268v-0.2c0-16.1,13-29.2,30.3-29.2s30.1,12.9,30.1,29v0.2c0,16.1-13,29.2-30.3,29.2S195.5,284.1,195.5,268z M240.1,268
16
- v-0.2c0-8.1-5.8-15.1-14.4-15.1c-8.5,0-14.2,6.9-14.2,15v0.2c0,8.1,5.8,15.1,14.3,15.1C234.4,283,240.1,276.1,240.1,268z
17
- M275,271.3v-31.5h15.8V271c0,8.1,4.1,11.9,10.3,11.9c6.2,0,10.3-3.7,10.3-11.5v-31.6h15.8v31.1c0,18.1-10.3,26-26.3,26
18
- C285,296.9,275,288.9,275,271.3z M351,239.8h21.6c20,0,31.7,11.5,31.7,27.7v0.2c0,16.2-11.8,28.2-32,28.2H351V239.8z M372.9,282.1
19
- c9.3,0,15.5-5.1,15.5-14.2v-0.2c0-9-6.2-14.2-15.5-14.2h-6.3V282L372.9,282.1L372.9,282.1z M426.9,239.8h44.9v13.6h-29.4v9.6H469
20
- v12.9h-26.6v20h-15.5V239.8z M493.4,239.8h15.5v42.5h27.2v13.6h-42.7V239.8z M576.7,239.4h15l23.9,56.5h-16.7l-4.1-10h-21.6l-4,10
21
- h-16.3L576.7,239.4z M590.4,273.8l-6.2-15.9l-6.3,15.9H590.4z M635.6,239.8h26.5c8.6,0,14.5,2.2,18.3,6.1c3.3,3.2,5,7.5,5,13.1v0.2
22
- c0,8.6-4.6,14.3-11.5,17.2l13.4,19.6h-18L658,279h-6.8v17h-15.6V239.8z M661.4,266.7c5.3,0,8.3-2.6,8.3-6.6v-0.2
23
- c0-4.4-3.2-6.6-8.4-6.6h-10.2v13.4H661.4z M707.8,239.8h45.1V253h-29.7v8.5h26.9v12.3h-26.9v8.9h30.1v13.2h-45.5V239.8z
24
- M102.7,274.6c-2.2,4.9-6.8,8.4-12.8,8.4c-8.5,0-14.3-7.1-14.3-15.1v-0.2c0-8.1,5.7-15,14.2-15c6.4,0,11.3,3.9,13.3,9.3h16.4
25
- c-2.6-13.4-14.4-23.3-29.6-23.3c-17.3,0-30.3,13.1-30.3,29.2v0.2c0,16.1,12.8,29,30.1,29c14.8,0,26.4-9.6,29.4-22.4L102.7,274.6z"
26
- />
27
- <path id="flare" class="st0" d="M734.5,150.4l-40.7-24.7c-0.6-0.1-4.4,0.3-6.4-0.7c-1.4-0.7-2.5-1.9-3.2-4c-3.2,0-175.5,0-175.5,0
28
- v91.8h225.8V150.4z"/>
29
- <path id="right-cloud" class="st1" d="M692.2,125.8c-0.8,0-1.5,0.6-1.8,1.4l-4.8,16.7c-2.1,7.2-1.3,13.8,2.2,18.7
30
- c3.2,4.5,8.6,7.1,15.1,7.4l26.2,1.6c0.8,0,1.5,0.4,1.9,1c0.4,0.6,0.5,1.5,0.3,2.2c-0.4,1.2-1.6,2.1-2.9,2.2l-27.3,1.6
31
- c-14.8,0.7-30.7,12.6-36.3,27.2l-2,5.1c-0.4,1,0.3,2,1.4,2H758c1.1,0,2.1-0.7,2.4-1.8c1.6-5.8,2.5-11.9,2.5-18.2
32
- c0-37-30.2-67.2-67.3-67.2C694.5,125.7,693.3,125.7,692.2,125.8z"/>
33
- <path id="left-cloud" class="st2" d="M656.4,204.6c2.1-7.2,1.3-13.8-2.2-18.7c-3.2-4.5-8.6-7.1-15.1-7.4L516,176.9
34
- c-0.8,0-1.5-0.4-1.9-1c-0.4-0.6-0.5-1.4-0.3-2.2c0.4-1.2,1.6-2.1,2.9-2.2l124.2-1.6c14.7-0.7,30.7-12.6,36.3-27.2l7.1-18.5
35
- c0.3-0.8,0.4-1.6,0.2-2.4c-8-36.2-40.3-63.2-78.9-63.2c-35.6,0-65.8,23-76.6,54.9c-7-5.2-15.9-8-25.5-7.1
36
- c-17.1,1.7-30.8,15.4-32.5,32.5c-0.4,4.4-0.1,8.7,0.9,12.7c-27.9,0.8-50.2,23.6-50.2,51.7c0,2.5,0.2,5,0.5,7.5
37
- c0.2,1.2,1.2,2.1,2.4,2.1h227.2c1.3,0,2.5-0.9,2.9-2.2L656.4,204.6z"/>
38
- </g>
39
- <g>
40
- </g>
41
- <g>
42
- </g>
43
- <g>
44
- </g>
45
- <g>
46
- </g>
47
- <g>
48
- </g>
49
- <g>
50
- </g>
51
- </svg>