create-cloudflare 0.0.0-facb3ffc9 → 0.0.0-fbba583df

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 (106) hide show
  1. package/dist/cli.js +28282 -26413
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +13 -8
  4. package/templates/analog/templates/worker-configuration.d.ts +1 -1
  5. package/templates/angular/c3.ts +24 -5
  6. package/templates/astro/templates/ts/worker-configuration.d.ts +1 -1
  7. package/templates/common/ts/src/index.ts +1 -1
  8. package/templates/common/ts/worker-configuration.d.ts +1 -1
  9. package/templates/docusaurus/c3.ts +1 -0
  10. package/templates/hello-world/c3.ts +17 -1
  11. package/templates/hello-world/js/package.json +2 -2
  12. package/templates/hello-world/js/test/index.spec.js +1 -1
  13. package/templates/hello-world/js/vitest.config.js +1 -1
  14. package/templates/hello-world/js/{wrangler.json → wrangler.jsonc} +2 -2
  15. package/templates/hello-world/py/.python-version +1 -0
  16. package/templates/hello-world/py/README.md +23 -0
  17. package/templates/hello-world/py/pyproject.toml +9 -0
  18. package/templates/hello-world/py/uv.lock +22 -0
  19. package/templates/hello-world/py/{wrangler.json → wrangler.jsonc} +2 -2
  20. package/templates/hello-world/ts/package.json +2 -2
  21. package/templates/hello-world/ts/src/index.ts +1 -1
  22. package/templates/hello-world/ts/vitest.config.mts +1 -1
  23. package/templates/hello-world/ts/worker-configuration.d.ts +1 -1
  24. package/templates/hello-world/ts/{wrangler.json → wrangler.jsonc} +2 -2
  25. package/templates/hello-world-durable-object/js/src/index.js +3 -3
  26. package/templates/hello-world-durable-object/ts/src/index.ts +3 -3
  27. package/templates/hono/c3.ts +1 -0
  28. package/templates/hono/templates/worker-configuration.d.ts +1 -1
  29. package/templates/next/README.md +1 -1
  30. package/templates/next/c3.ts +12 -9
  31. package/templates/nuxt/templates/worker-configuration.d.ts +1 -1
  32. package/templates/openapi/ts/worker-configuration.d.ts +1 -1
  33. package/templates/pre-existing/c3.ts +1 -1
  34. package/templates/queues/ts/src/index.ts +1 -1
  35. package/templates/queues/ts/worker-configuration.d.ts +1 -1
  36. package/templates/qwik/c3.ts +3 -2
  37. package/templates/qwik/templates/worker-configuration.d.ts +1 -1
  38. package/templates/remix/templates/worker-configuration.d.ts +1 -1
  39. package/templates/scheduled/js/src/index.js +1 -1
  40. package/templates/scheduled/ts/src/index.ts +2 -2
  41. package/templates/scheduled/ts/worker-configuration.d.ts +1 -1
  42. package/templates-experimental/angular/c3.ts +23 -5
  43. package/templates-experimental/astro/templates/ts/worker-configuration.d.ts +1 -1
  44. package/templates-experimental/docusaurus/c3.ts +1 -0
  45. package/templates-experimental/hello-world-durable-object-with-assets/js/src/index.js +3 -3
  46. package/templates-experimental/hello-world-durable-object-with-assets/ts/src/index.ts +3 -3
  47. package/templates-experimental/hello-world-with-assets/js/package.json +2 -2
  48. package/templates-experimental/hello-world-with-assets/js/vitest.config.js +1 -1
  49. package/templates-experimental/hello-world-with-assets/ts/package.json +2 -2
  50. package/templates-experimental/hello-world-with-assets/ts/src/index.ts +1 -1
  51. package/templates-experimental/hello-world-with-assets/ts/vitest.config.mts +1 -1
  52. package/templates-experimental/hello-world-with-assets/ts/worker-configuration.d.ts +1 -1
  53. package/templates-experimental/hono/c3.ts +1 -0
  54. package/templates-experimental/hono/templates/worker-configuration.d.ts +1 -1
  55. package/templates-experimental/next/c3.ts +27 -11
  56. package/templates-experimental/nuxt/templates/worker-configuration.d.ts +1 -1
  57. package/templates-experimental/qwik/c3.ts +3 -2
  58. package/templates-experimental/qwik/templates/worker-configuration.d.ts +1 -1
  59. package/templates-experimental/react/c3.ts +182 -0
  60. package/templates-experimental/react/js/api/index.js +13 -0
  61. package/templates-experimental/react/js/src/App.jsx +58 -0
  62. package/templates-experimental/react/js/src/assets/Cloudflare_Logo.svg +26 -0
  63. package/templates-experimental/react/js/wrangler.json +9 -0
  64. package/templates-experimental/react/ts/api/index.ts +17 -0
  65. package/templates-experimental/react/ts/src/App.tsx +58 -0
  66. package/templates-experimental/react/ts/src/assets/Cloudflare_Logo.svg +26 -0
  67. package/templates-experimental/react/ts/tsconfig.worker.json +8 -0
  68. package/templates-experimental/react/ts/wrangler.json +9 -0
  69. package/templates/pre-existing/js/wrangler.json +0 -5
  70. /package/templates/analog/templates/{wrangler.json → wrangler.jsonc} +0 -0
  71. /package/templates/astro/templates/js/{wrangler.json → wrangler.jsonc} +0 -0
  72. /package/templates/astro/templates/ts/{wrangler.json → wrangler.jsonc} +0 -0
  73. /package/templates/common/js/{wrangler.json → wrangler.jsonc} +0 -0
  74. /package/templates/common/ts/{wrangler.json → wrangler.jsonc} +0 -0
  75. /package/templates/hello-world-durable-object/js/{wrangler.json → wrangler.jsonc} +0 -0
  76. /package/templates/hello-world-durable-object/ts/{wrangler.json → wrangler.jsonc} +0 -0
  77. /package/templates/hono/templates/{wrangler.json → wrangler.jsonc} +0 -0
  78. /package/templates/next/{wrangler.json → wrangler.jsonc} +0 -0
  79. /package/templates/nuxt/templates/{wrangler.json → wrangler.jsonc} +0 -0
  80. /package/templates/openapi/ts/{wrangler.json → wrangler.jsonc} +0 -0
  81. /package/templates/queues/js/{wrangler.json → wrangler.jsonc} +0 -0
  82. /package/templates/queues/ts/{wrangler.json → wrangler.jsonc} +0 -0
  83. /package/templates/qwik/templates/{wrangler.json → wrangler.jsonc} +0 -0
  84. /package/templates/remix/templates/{wrangler.json → wrangler.jsonc} +0 -0
  85. /package/templates/scheduled/js/{wrangler.json → wrangler.jsonc} +0 -0
  86. /package/templates/scheduled/ts/{wrangler.json → wrangler.jsonc} +0 -0
  87. /package/templates/solid/templates/{wrangler.json → wrangler.jsonc} +0 -0
  88. /package/templates/svelte/templates/{wrangler.json → wrangler.jsonc} +0 -0
  89. /package/templates-experimental/angular/templates/{wrangler.json → wrangler.jsonc} +0 -0
  90. /package/templates-experimental/astro/templates/js/{wrangler.json → wrangler.jsonc} +0 -0
  91. /package/templates-experimental/astro/templates/ts/{wrangler.json → wrangler.jsonc} +0 -0
  92. /package/templates-experimental/docusaurus/templates/{wrangler.json → wrangler.jsonc} +0 -0
  93. /package/templates-experimental/gatsby/templates/{wrangler.json → wrangler.jsonc} +0 -0
  94. /package/templates-experimental/hello-world-assets-only/templates/{wrangler.json → wrangler.jsonc} +0 -0
  95. /package/templates-experimental/hello-world-durable-object-with-assets/js/{wrangler.json → wrangler.jsonc} +0 -0
  96. /package/templates-experimental/hello-world-durable-object-with-assets/ts/{wrangler.json → wrangler.jsonc} +0 -0
  97. /package/templates-experimental/hello-world-with-assets/js/{wrangler.json → wrangler.jsonc} +0 -0
  98. /package/templates-experimental/hello-world-with-assets/py/{wrangler.json → wrangler.jsonc} +0 -0
  99. /package/templates-experimental/hello-world-with-assets/ts/{wrangler.json → wrangler.jsonc} +0 -0
  100. /package/templates-experimental/hono/templates/{wrangler.json → wrangler.jsonc} +0 -0
  101. /package/templates-experimental/next/templates/{wrangler.json → wrangler.jsonc} +0 -0
  102. /package/templates-experimental/nuxt/templates/{wrangler.json → wrangler.jsonc} +0 -0
  103. /package/templates-experimental/qwik/templates/{wrangler.json → wrangler.jsonc} +0 -0
  104. /package/templates-experimental/solid/templates/{wrangler.json → wrangler.jsonc} +0 -0
  105. /package/templates-experimental/svelte/templates/{wrangler.json → wrangler.jsonc} +0 -0
  106. /package/templates-experimental/vue/templates/{wrangler.json → wrangler.jsonc} +0 -0
@@ -0,0 +1,26 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 101.4 33.5">
2
+ <defs>
3
+ <style>
4
+ .a {
5
+ fill: #fff;
6
+ }
7
+
8
+ .b {
9
+ fill: #f48120;
10
+ }
11
+
12
+ .c {
13
+ fill: #faad3f;
14
+ }
15
+
16
+ .d {
17
+ fill: #404041;
18
+ }
19
+ </style>
20
+ </defs>
21
+ <title>Cloudflare logo</title>
22
+ <path class="a" d="M94.7,10.6,89.1,9.3l-1-.4-25.7.2V21.5l32.3.1Z"/>
23
+ <path class="b" d="M84.2,20.4a2.85546,2.85546,0,0,0-.3-2.6,3.09428,3.09428,0,0,0-2.1-1.1l-17.4-.2c-.1,0-.2-.1-.3-.1a.1875.1875,0,0,1,0-.3c.1-.2.2-.3.4-.3L82,15.6a6.29223,6.29223,0,0,0,5.1-3.8l1-2.6c0-.1.1-.2,0-.3A11.39646,11.39646,0,0,0,66.2,7.7a5.45941,5.45941,0,0,0-3.6-1A5.20936,5.20936,0,0,0,58,11.3a5.46262,5.46262,0,0,0,.1,1.8A7.30177,7.30177,0,0,0,51,20.4a4.102,4.102,0,0,0,.1,1.1.3193.3193,0,0,0,.3.3H83.5c.2,0,.4-.1.4-.3Z"/>
24
+ <path class="c" d="M89.7,9.2h-.5c-.1,0-.2.1-.3.2l-.7,2.4a2.85546,2.85546,0,0,0,.3,2.6,3.09428,3.09428,0,0,0,2.1,1.1l3.7.2c.1,0,.2.1.3.1a.1875.1875,0,0,1,0,.3c-.1.2-.2.3-.4.3l-3.8.2a6.29223,6.29223,0,0,0-5.1,3.8l-.2.9c-.1.1,0,.3.2.3H98.5a.26517.26517,0,0,0,.3-.3,10.87184,10.87184,0,0,0,.4-2.6,9.56045,9.56045,0,0,0-9.5-9.5"/>
25
+ <path class="d" d="M100.5,27.2a.9.9,0,1,1,.9-.9.89626.89626,0,0,1-.9.9m0-1.6a.7.7,0,1,0,.7.7.68354.68354,0,0,0-.7-.7m.4,1.2h-.2l-.2-.3h-.2v.3h-.2v-.9h.5a.26517.26517,0,0,1,.3.3c0,.1-.1.2-.2.3l.2.3Zm-.3-.5c.1,0,.1,0,.1-.1a.09794.09794,0,0,0-.1-.1h-.3v.3h.3Zm-89.7-.9h2.2v6h3.8v1.9h-6Zm8.3,3.9a4.10491,4.10491,0,0,1,4.3-4.1,4.02,4.02,0,0,1,4.2,4.1,4.10491,4.10491,0,0,1-4.3,4.1,4.07888,4.07888,0,0,1-4.2-4.1m6.3,0a2.05565,2.05565,0,0,0-2-2.2,2.1025,2.1025,0,0,0,0,4.2c1.2.2,2-.8,2-2m4.9.5V25.4h2.2v4.4c0,1.1.6,1.7,1.5,1.7a1.39926,1.39926,0,0,0,1.5-1.6V25.4h2.2v4.4c0,2.6-1.5,3.7-3.7,3.7-2.3-.1-3.7-1.2-3.7-3.7m10.7-4.4h3.1c2.8,0,4.5,1.6,4.5,3.9s-1.7,4-4.5,4h-3V25.4Zm3.1,5.9a2.00909,2.00909,0,1,0,0-4h-.9v4Zm7.6-5.9h6.3v1.9H54v1.3h3.7v1.8H54v2.9H51.8Zm9.4,0h2.2v6h3.8v1.9h-6Zm11.7-.1h2.2l3.4,8H76.1l-.6-1.4H72.4l-.6,1.4H69.5Zm2,4.9L74,28l-.9,2.2Zm6.4-4.8H85a3.41818,3.41818,0,0,1,2.6.9,2.62373,2.62373,0,0,1-.9,4.2l1.9,2.8H86.1l-1.6-2.4h-1v2.4H81.3Zm3.6,3.8c.7,0,1.2-.4,1.2-.9,0-.6-.5-.9-1.2-.9H83.5v1.9h1.4Zm6.5-3.8h6.4v1.8H93.6v1.2h3.8v1.8H93.6v1.2h4.3v1.9H91.4ZM6.1,30.3a1.97548,1.97548,0,0,1-1.8,1.2,2.1025,2.1025,0,0,1,0-4.2,2.0977,2.0977,0,0,1,1.9,1.3H8.5a4.13459,4.13459,0,0,0-4.2-3.3A4.1651,4.1651,0,0,0,0,29.4a4.07888,4.07888,0,0,0,4.2,4.1,4.31812,4.31812,0,0,0,4.2-3.2Z"/>
26
+ </svg>
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.node.json",
3
+ "compilerOptions": {
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.worker.tsbuildinfo",
5
+ "types": ["@cloudflare/workers-types/2023-07-01", "vite/client"],
6
+ },
7
+ "include": ["api"],
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "api/index.ts",
4
+ "compatibility_date": "<TBD>",
5
+ "assets": { "not_found_handling": "single-page-application", "binding": "ASSETS" },
6
+ "observability": {
7
+ "enabled": true
8
+ }
9
+ }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "<TBD>",
3
- "main": "src/index.js",
4
- "compatibility_date": "<TBD>"
5
- }