create-cloudflare 0.0.0-9c15b6ea2 → 0.0.0-9c30aecaa

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 (92) hide show
  1. package/dist/cli.js +283 -246
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +8 -8
  4. package/templates/analog/c3.ts +0 -24
  5. package/templates/analog/templates/env.d.ts +1 -1
  6. package/templates/angular/pages/c3.ts +3 -3
  7. package/templates/angular/pages/templates/wrangler.jsonc +5 -0
  8. package/templates/angular/workers/c3.ts +1 -0
  9. package/templates/astro/workers/templates/js/wrangler.jsonc +2 -1
  10. package/templates/astro/workers/templates/ts/wrangler.jsonc +2 -1
  11. package/templates/common/ts/tsconfig.json +0 -3
  12. package/templates/docusaurus/pages/c3.ts +1 -0
  13. package/templates/docusaurus/workers/c3.ts +1 -0
  14. package/templates/gatsby/pages/c3.ts +1 -0
  15. package/templates/gatsby/workers/c3.ts +1 -0
  16. package/templates/hello-world/ts/test/index.spec.ts +0 -1
  17. package/templates/hello-world/ts/test/tsconfig.json +1 -1
  18. package/templates/hello-world/ts/tsconfig.json +0 -2
  19. package/templates/hello-world-assets-only/templates/public/index.html +1 -0
  20. package/templates/hello-world-assets-only/templates/wrangler.jsonc +1 -0
  21. package/templates/hello-world-durable-object/ts/tsconfig.json +0 -2
  22. package/templates/hello-world-durable-object-with-assets/js/public/index.html +1 -0
  23. package/templates/hello-world-durable-object-with-assets/js/wrangler.jsonc +1 -1
  24. package/templates/hello-world-durable-object-with-assets/py/public/index.html +1 -0
  25. package/templates/hello-world-durable-object-with-assets/py/wrangler.jsonc +1 -1
  26. package/templates/hello-world-durable-object-with-assets/ts/public/index.html +1 -0
  27. package/templates/hello-world-durable-object-with-assets/ts/tsconfig.json +0 -2
  28. package/templates/hello-world-durable-object-with-assets/ts/wrangler.jsonc +1 -1
  29. package/templates/hello-world-with-assets/js/public/index.html +1 -0
  30. package/templates/hello-world-with-assets/js/wrangler.jsonc +3 -2
  31. package/templates/hello-world-with-assets/py/public/index.html +1 -0
  32. package/templates/hello-world-with-assets/py/wrangler.jsonc +1 -1
  33. package/templates/hello-world-with-assets/ts/public/index.html +1 -0
  34. package/templates/hello-world-with-assets/ts/test/tsconfig.json +1 -1
  35. package/templates/hello-world-with-assets/ts/tsconfig.json +0 -2
  36. package/templates/hello-world-with-assets/ts/wrangler.jsonc +2 -2
  37. package/templates/hello-world-workflows/c3.ts +20 -0
  38. package/templates/hello-world-workflows/js/package.json +13 -0
  39. package/templates/hello-world-workflows/js/src/index.js +129 -0
  40. package/templates/hello-world-workflows/js/wrangler.jsonc +17 -0
  41. package/templates/hello-world-workflows/ts/package.json +15 -0
  42. package/templates/hello-world-workflows/ts/src/index.ts +111 -0
  43. package/templates/hello-world-workflows/ts/tsconfig.json +40 -0
  44. package/templates/hello-world-workflows/ts/wrangler.jsonc +17 -0
  45. package/templates/hono/pages/c3.ts +4 -1
  46. package/templates/hono/workers/c3.ts +3 -1
  47. package/templates/next/pages/c3.ts +6 -10
  48. package/templates/next/workers/c3.ts +7 -5
  49. package/templates/next/workers/templates/public/_headers +3 -0
  50. package/templates/nuxt/pages/c3.ts +2 -26
  51. package/templates/nuxt/pages/templates/env.d.ts +1 -1
  52. package/templates/nuxt/workers/c3.ts +2 -26
  53. package/templates/nuxt/workers/templates/env.d.ts +1 -1
  54. package/templates/openapi/ts/tsconfig.json +0 -1
  55. package/templates/queues/ts/tsconfig.json +0 -2
  56. package/templates/qwik/pages/c3.ts +1 -0
  57. package/templates/qwik/workers/c3.ts +1 -0
  58. package/templates/qwik/workers/templates/wrangler.jsonc +2 -1
  59. package/templates/react/pages/c3.ts +4 -2
  60. package/templates/react/pages/templates/wrangler.jsonc +5 -0
  61. package/templates/react/workers/ts/tsconfig.worker.json +1 -1
  62. package/templates/react-router/c3.ts +0 -12
  63. package/templates/remix/pages/c3.ts +1 -0
  64. package/templates/remix/pages/templates/worker-configuration.d.ts +1 -1
  65. package/templates/remix/workers/c3.ts +1 -0
  66. package/templates/scheduled/ts/tsconfig.json +0 -2
  67. package/templates/solid/c3.ts +1 -0
  68. package/templates/svelte/pages/c3.ts +3 -3
  69. package/templates/svelte/workers/c3.ts +3 -3
  70. package/templates/vue/pages/c3.ts +5 -3
  71. package/templates/vue/pages/templates/wrangler.jsonc +5 -0
  72. package/templates/vue/workers/ts/tsconfig.worker.json +1 -1
  73. package/templates-experimental/solid/c3.ts +1 -1
  74. package/templates/analog/templates/worker-configuration.d.ts +0 -4
  75. package/templates/astro/workers/templates/ts/worker-configuration.d.ts +0 -4
  76. package/templates/common/ts/worker-configuration.d.ts +0 -4
  77. package/templates/hello-world/ts/worker-configuration.d.ts +0 -8
  78. package/templates/hello-world-durable-object/ts/worker-configuration.d.ts +0 -7
  79. package/templates/hello-world-durable-object-with-assets/ts/worker-configuration.d.ts +0 -8
  80. package/templates/hello-world-with-assets/ts/worker-configuration.d.ts +0 -7
  81. package/templates/hono/pages/templates/worker-configuration.d.ts +0 -4
  82. package/templates/hono/workers/templates/worker-configuration.d.ts +0 -4
  83. package/templates/next/pages/env.d.ts +0 -5
  84. package/templates/next/workers/templates/cloudflare-env.d.ts +0 -5
  85. package/templates/nuxt/pages/templates/worker-configuration.d.ts +0 -4
  86. package/templates/nuxt/workers/templates/worker-configuration.d.ts +0 -4
  87. package/templates/openapi/ts/worker-configuration.d.ts +0 -4
  88. package/templates/queues/ts/worker-configuration.d.ts +0 -5
  89. package/templates/react/workers/ts/worker-configuration.d.ts +0 -5
  90. package/templates/react-router/templates/worker-configuration.d.ts +0 -8
  91. package/templates/scheduled/ts/worker-configuration.d.ts +0 -4
  92. package/templates/vue/workers/ts/worker-configuration.d.ts +0 -6
@@ -2,7 +2,7 @@
2
2
  "extends": "./tsconfig.node.json",
3
3
  "compilerOptions": {
4
4
  "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.worker.tsbuildinfo",
5
- "types": ["@cloudflare/workers-types/2023-07-01", "./worker-configuration.d.ts","vite/client"],
5
+ "types": [ "./worker-configuration.d.ts","vite/client"],
6
6
  },
7
7
  "include": ["server"],
8
8
  }
@@ -84,9 +84,9 @@ const config: TemplateConfig = {
84
84
  scripts: {
85
85
  preview: `${npm} run build && npx wrangler dev`,
86
86
  deploy: `${npm} run build && wrangler deploy`,
87
+ "cf-typegen": `wrangler types`,
87
88
  },
88
89
  }),
89
- compatibilityFlags: ["nodejs_compat"],
90
90
  devScript: "dev",
91
91
  deployScript: "deploy",
92
92
  previewScript: "preview",
@@ -1,4 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
4
- }
@@ -1,4 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
4
- }
@@ -1,4 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
4
- }
@@ -1,8 +0,0 @@
1
- // Generated by Wrangler by running `wrangler types --include-runtime=false` (hash: 2905fd8e181cd2f4083a615fa51f1913)
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- declare namespace Cloudflare {
4
- // eslint-disable-next-line @typescript-eslint/no-empty-interface,@typescript-eslint/no-empty-object-type
5
- interface Env {
6
- }
7
- }
8
- interface Env extends Cloudflare.Env {}
@@ -1,7 +0,0 @@
1
- // Generated by Wrangler by running `wrangler types --include-runtime=false` (hash: 4c81d17e8de07f650cddf73ce751ba8d)
2
- declare namespace Cloudflare {
3
- interface Env {
4
- MY_DURABLE_OBJECT: DurableObjectNamespace<import("./src/index").MyDurableObject>;
5
- }
6
- }
7
- interface Env extends Cloudflare.Env {}
@@ -1,8 +0,0 @@
1
- // Generated by Wrangler by running `wrangler types --include-runtime=false` (hash: 24be54e90498ce3774054fcb8bb2bc1a)
2
- declare namespace Cloudflare {
3
- interface Env {
4
- MY_DURABLE_OBJECT: DurableObjectNamespace<import("./src/index").MyDurableObject>;
5
- ASSETS: Fetcher;
6
- }
7
- }
8
- interface Env extends Cloudflare.Env {}
@@ -1,7 +0,0 @@
1
- // Generated by Wrangler by running `wrangler types --include-runtime=false` (hash: 187132f48ddf0f604882ba8213fe386f)
2
- declare namespace Cloudflare {
3
- interface Env {
4
- ASSETS: Fetcher;
5
- }
6
- }
7
- interface Env extends Cloudflare.Env {}
@@ -1,4 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface CloudflareBindings {
4
- }
@@ -1,4 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface CloudflareBindings {
4
- }
@@ -1,5 +0,0 @@
1
- // Generated by Wrangler
2
- // by running `wrangler types --env-interface CloudflareEnv env.d.ts`
3
-
4
- interface CloudflareEnv {
5
- }
@@ -1,5 +0,0 @@
1
- // Generated by Wrangler
2
- // by running `wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts`
3
-
4
- interface CloudflareEnv {
5
- }
@@ -1,4 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
4
- }
@@ -1,4 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
4
- }
@@ -1,4 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
4
- }
@@ -1,5 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
4
- MY_QUEUE: Queue;
5
- }
@@ -1,5 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
4
- ASSETS: Fetcher;
5
- }
@@ -1,8 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- declare namespace Cloudflare {
4
- interface Env {
5
- VALUE_FROM_CLOUDFLARE: "Hello from Cloudflare";
6
- }
7
- }
8
- interface Env extends Cloudflare.Env {}
@@ -1,4 +0,0 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
4
- }
@@ -1,6 +0,0 @@
1
- // Generated by Wrangler by running `wrangler types`
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
-
4
- interface Env {
5
- ASSETS: Fetcher;
6
- }