create-cloudflare 0.0.0-e33bb44a → 0.0.0-e3990bbf

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 (36) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.js +43232 -42461
  3. package/package.json +81 -73
  4. package/templates/chatgptPlugin/ts/README.md +2 -2
  5. package/templates/chatgptPlugin/ts/package.json +1 -1
  6. package/templates/chatgptPlugin/ts/src/search.ts +3 -7
  7. package/templates/common/js/package.json +0 -1
  8. package/templates/common/js/wrangler.toml +1 -1
  9. package/templates/common/ts/wrangler.toml +1 -1
  10. package/templates/hello-world/js/package.json +0 -2
  11. package/templates/hello-world/js/wrangler.toml +1 -1
  12. package/templates/hello-world/ts/wrangler.toml +1 -1
  13. package/templates/openapi/ts/README.md +25 -0
  14. package/templates/openapi/ts/package.json +18 -0
  15. package/templates/openapi/ts/src/endpoints/taskCreate.ts +48 -0
  16. package/templates/openapi/ts/src/endpoints/taskDelete.ts +55 -0
  17. package/templates/openapi/ts/src/endpoints/taskFetch.ts +74 -0
  18. package/templates/openapi/ts/src/endpoints/taskList.ts +66 -0
  19. package/templates/openapi/ts/src/index.ts +29 -0
  20. package/templates/openapi/ts/src/types.ts +9 -0
  21. package/templates/openapi/ts/tsconfig.json +32 -0
  22. package/templates/openapi/ts/wrangler.toml +3 -0
  23. package/templates/queues/js/package.json +0 -2
  24. package/templates/queues/js/wrangler.toml +3 -3
  25. package/templates/queues/ts/wrangler.toml +3 -3
  26. package/templates/scheduled/js/package.json +0 -2
  27. package/templates/scheduled/js/wrangler.toml +1 -1
  28. package/templates/scheduled/ts/wrangler.toml +1 -1
  29. /package/templates/common/js/src/{worker.js → index.js} +0 -0
  30. /package/templates/common/ts/src/{worker.ts → index.ts} +0 -0
  31. /package/templates/hello-world/js/src/{worker.js → index.js} +0 -0
  32. /package/templates/hello-world/ts/src/{worker.ts → index.ts} +0 -0
  33. /package/templates/queues/js/src/{worker.js → index.js} +0 -0
  34. /package/templates/queues/ts/src/{worker.ts → index.ts} +0 -0
  35. /package/templates/scheduled/js/src/{worker.js → index.js} +0 -0
  36. /package/templates/scheduled/ts/src/{worker.ts → index.ts} +0 -0
@@ -1,16 +1,16 @@
1
1
  name = "<TBD>"
2
- main = "src/worker.ts"
2
+ main = "src/index.ts"
3
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
@@ -7,8 +7,6 @@
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,5 +1,5 @@
1
1
  name = "<TBD>"
2
- main = "src/worker.ts"
2
+ main = "src/index.ts"
3
3
  compatibility_date = "<TBD>"
4
4
 
5
5
  # Cron Triggers
@@ -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