create-cloudflare 0.0.0-e8df68ee → 0.0.0-e93d240f

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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/angular/templates/tools/bundle.mjs +5 -2
  3. package/dist/cli.js +44312 -43505
  4. package/package.json +81 -73
  5. package/templates/chatgptPlugin/ts/README.md +3 -3
  6. package/templates/chatgptPlugin/ts/package.json +2 -2
  7. package/templates/chatgptPlugin/ts/src/search.ts +3 -7
  8. package/templates/chatgptPlugin/ts/wrangler.toml +2 -2
  9. package/templates/common/js/package.json +1 -2
  10. package/templates/common/js/wrangler.toml +2 -2
  11. package/templates/common/ts/package.json +1 -1
  12. package/templates/common/ts/wrangler.toml +2 -2
  13. package/templates/hello-world/js/package.json +1 -3
  14. package/templates/hello-world/js/wrangler.toml +2 -2
  15. package/templates/hello-world/ts/package.json +1 -1
  16. package/templates/hello-world/ts/wrangler.toml +2 -2
  17. package/templates/openapi/ts/README.md +25 -0
  18. package/templates/openapi/ts/package.json +18 -0
  19. package/templates/openapi/ts/src/endpoints/taskCreate.ts +48 -0
  20. package/templates/openapi/ts/src/endpoints/taskDelete.ts +55 -0
  21. package/templates/openapi/ts/src/endpoints/taskFetch.ts +74 -0
  22. package/templates/openapi/ts/src/endpoints/taskList.ts +66 -0
  23. package/templates/openapi/ts/src/index.ts +29 -0
  24. package/templates/openapi/ts/src/types.ts +9 -0
  25. package/templates/openapi/ts/tsconfig.json +32 -0
  26. package/templates/openapi/ts/wrangler.toml +3 -0
  27. package/templates/queues/js/package.json +1 -3
  28. package/templates/queues/js/wrangler.toml +4 -4
  29. package/templates/queues/ts/package.json +1 -1
  30. package/templates/queues/ts/wrangler.toml +4 -4
  31. package/templates/scheduled/js/package.json +1 -3
  32. package/templates/scheduled/js/wrangler.toml +2 -2
  33. package/templates/scheduled/ts/package.json +1 -1
  34. package/templates/scheduled/ts/wrangler.toml +1 -1
  35. /package/templates/common/js/src/{worker.js → index.js} +0 -0
  36. /package/templates/common/ts/src/{worker.ts → index.ts} +0 -0
  37. /package/templates/hello-world/js/src/{worker.js → index.js} +0 -0
  38. /package/templates/hello-world/ts/src/{worker.ts → index.ts} +0 -0
  39. /package/templates/queues/js/src/{worker.js → index.js} +0 -0
  40. /package/templates/queues/ts/src/{worker.ts → index.ts} +0 -0
  41. /package/templates/scheduled/js/src/{worker.js → index.js} +0 -0
  42. /package/templates/scheduled/ts/src/{worker.ts → index.ts} +0 -0
@@ -0,0 +1,32 @@
1
+ {
2
+ "compilerOptions": {
3
+ "allowJs": true,
4
+ "allowSyntheticDefaultImports": true,
5
+ "baseUrl": "src",
6
+ "declaration": true,
7
+ "sourceMap": true,
8
+ "esModuleInterop": true,
9
+ "inlineSourceMap": false,
10
+ "lib": ["esnext"],
11
+ "listEmittedFiles": false,
12
+ "listFiles": false,
13
+ "moduleResolution": "node",
14
+ "noFallthroughCasesInSwitch": true,
15
+ "pretty": true,
16
+ "resolveJsonModule": true,
17
+ "rootDir": ".",
18
+ "skipLibCheck": true,
19
+ "strict": false,
20
+ "traceResolution": false,
21
+ "outDir": "",
22
+ "target": "esnext",
23
+ "module": "esnext",
24
+ "types": [
25
+ "@types/node",
26
+ "@types/service-worker-mock",
27
+ "@cloudflare/workers-types"
28
+ ]
29
+ },
30
+ "exclude": ["node_modules", "dist", "tests"],
31
+ "include": ["src", "scripts"]
32
+ }
@@ -0,0 +1,3 @@
1
+ name = "<TBD>"
2
+ main = "src/index.ts"
3
+ compatibility_date = "<TBD>"
@@ -3,12 +3,10 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
10
- "@cloudflare/workers-types": "^4.20230419.0",
11
- "typescript": "^5.0.4",
12
10
  "wrangler": "^3.0.0"
13
11
  }
14
12
  }
@@ -1,16 +1,16 @@
1
1
  name = "<TBD>"
2
- main = "src/worker.js"
3
- compatibility_date = "2023-05-15"
2
+ main = "src/index.js"
3
+ compatibility_date = "<TBD>"
4
4
 
5
5
  # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
6
6
  # Docs: https://developers.cloudflare.com/queues/get-started
7
- # [[queues.producers]]
7
+ [[queues.producers]]
8
8
  binding = "MY_QUEUE"
9
9
  queue = "my-queue"
10
10
 
11
11
  # Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
12
12
  # Docs: https://developers.cloudflare.com/queues/get-started
13
- # [[queues.consumers]]
13
+ [[queues.consumers]]
14
14
  queue = "my-queue"
15
15
  # Optional: Configure batching and retries: https://developers.cloudflare.com/queues/learning/batching-retries/
16
16
  # max_batch_size = 10
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
@@ -1,16 +1,16 @@
1
1
  name = "<TBD>"
2
- main = "src/worker.ts"
3
- compatibility_date = "2023-05-15"
2
+ main = "src/index.ts"
3
+ compatibility_date = "<TBD>"
4
4
 
5
5
  # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
6
6
  # Docs: https://developers.cloudflare.com/queues/get-started
7
- # [[queues.producers]]
7
+ [[queues.producers]]
8
8
  binding = "MY_QUEUE"
9
9
  queue = "my-queue"
10
10
 
11
11
  # Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
12
12
  # Docs: https://developers.cloudflare.com/queues/get-started
13
- # [[queues.consumers]]
13
+ [[queues.consumers]]
14
14
  queue = "my-queue"
15
15
  # Optional: Configure batching and retries: https://developers.cloudflare.com/queues/learning/batching-retries/
16
16
  # max_batch_size = 10
@@ -3,12 +3,10 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
10
- "@cloudflare/workers-types": "^4.20230419.0",
11
- "typescript": "^5.0.4",
12
10
  "wrangler": "^3.0.0"
13
11
  }
14
12
  }
@@ -1,6 +1,6 @@
1
1
  name = "<TBD>"
2
- main = "src/worker.ts"
3
- compatibility_date = "2023-05-15"
2
+ main = "src/index.ts"
3
+ compatibility_date = "<TBD>"
4
4
 
5
5
  # Cron Triggers
6
6
  # Docs: https://developers.cloudflare.com/workers/platform/triggers/cron-triggers/
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
@@ -1,5 +1,5 @@
1
1
  name = "<TBD>"
2
- main = "src/worker.ts"
2
+ main = "src/index.ts"
3
3
  compatibility_date = "2023-05-15"
4
4
 
5
5
  # Cron Triggers
File without changes
File without changes
File without changes
File without changes