create-cloudflare 0.0.0-e33bb44a → 0.0.0-e4bb5f36
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.
- package/dist/cli.js +46282 -44617
- package/package.json +12 -5
- package/templates/common/js/package.json +0 -1
- package/templates/common/js/wrangler.toml +1 -1
- package/templates/common/ts/wrangler.toml +1 -1
- package/templates/hello-world/js/package.json +0 -2
- package/templates/hello-world/js/wrangler.toml +1 -1
- package/templates/hello-world/ts/wrangler.toml +1 -1
- package/templates/queues/js/package.json +0 -2
- package/templates/queues/js/wrangler.toml +3 -3
- package/templates/queues/ts/wrangler.toml +3 -3
- package/templates/scheduled/js/package.json +0 -2
- package/templates/scheduled/js/wrangler.toml +1 -1
- package/templates/scheduled/ts/wrangler.toml +1 -1
- /package/templates/common/js/src/{worker.js → index.js} +0 -0
- /package/templates/common/ts/src/{worker.ts → index.ts} +0 -0
- /package/templates/hello-world/js/src/{worker.js → index.js} +0 -0
- /package/templates/hello-world/ts/src/{worker.ts → index.ts} +0 -0
- /package/templates/queues/js/src/{worker.js → index.js} +0 -0
- /package/templates/queues/ts/src/{worker.ts → index.ts} +0 -0
- /package/templates/scheduled/js/src/{worker.js → index.js} +0 -0
- /package/templates/scheduled/ts/src/{worker.ts → index.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-e4bb5f36",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -26,14 +26,17 @@
|
|
|
26
26
|
"templates"
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "node scripts/build.
|
|
29
|
+
"build": "node -r esbuild-register scripts/build.ts",
|
|
30
30
|
"check:lint": "eslint .",
|
|
31
31
|
"check:type": "tsc",
|
|
32
32
|
"lint": "eslint",
|
|
33
33
|
"prepublishOnly": "npm run build",
|
|
34
|
-
"test:e2e": "
|
|
34
|
+
"test:e2e:cleanup": "node -r esbuild-register scripts/e2eCleanup.ts",
|
|
35
|
+
"test:e2e:npm": "npm run build && TEST_PM=npm vitest run --config ./vitest-e2e.config.ts",
|
|
36
|
+
"test:e2e:pnpm": "npm run build && TEST_PM=pnpm vitest run --config ./vitest-e2e.config.ts",
|
|
35
37
|
"test:unit": "vitest run --config ./vitest.config.ts",
|
|
36
|
-
"watch": "
|
|
38
|
+
"test:unit:watch": "vitest --config ./vitest.config.ts",
|
|
39
|
+
"watch": "node -r esbuild-register scripts/build.ts --watch"
|
|
37
40
|
},
|
|
38
41
|
"devDependencies": {
|
|
39
42
|
"@babel/parser": "^7.21.3",
|
|
@@ -44,6 +47,7 @@
|
|
|
44
47
|
"@cloudflare/workers-types": "^4.20230419.0",
|
|
45
48
|
"@types/command-exists": "^1.2.0",
|
|
46
49
|
"@types/cross-spawn": "^6.0.2",
|
|
50
|
+
"@types/dns2": "^2.0.3",
|
|
47
51
|
"@types/esprima": "^4.0.3",
|
|
48
52
|
"@types/node": "^18.15.3",
|
|
49
53
|
"@types/which-pm-runs": "^1.0.0",
|
|
@@ -53,11 +57,13 @@
|
|
|
53
57
|
"chalk": "^5.2.0",
|
|
54
58
|
"command-exists": "^1.2.9",
|
|
55
59
|
"cross-spawn": "^7.0.3",
|
|
60
|
+
"dns2": "^2.1.0",
|
|
56
61
|
"esbuild": "^0.17.12",
|
|
57
62
|
"execa": "^7.1.1",
|
|
58
63
|
"haikunator": "^2.1.2",
|
|
59
64
|
"log-update": "^5.0.1",
|
|
60
65
|
"open": "^8.4.0",
|
|
66
|
+
"pnpm": "^8.6.11",
|
|
61
67
|
"recast": "^0.22.0",
|
|
62
68
|
"semver": "^7.5.1",
|
|
63
69
|
"typescript": "^5.0.2",
|
|
@@ -66,7 +72,8 @@
|
|
|
66
72
|
"vitest": "^0.30.0",
|
|
67
73
|
"which-pm-runs": "^1.1.0",
|
|
68
74
|
"wrangler": "*",
|
|
69
|
-
"yargs": "^17.7.1"
|
|
75
|
+
"yargs": "^17.7.1",
|
|
76
|
+
"yarn": "^1.22.19"
|
|
70
77
|
},
|
|
71
78
|
"engines": {
|
|
72
79
|
"node": ">=16.13.0"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
name = "<TBD>"
|
|
2
|
-
main = "src/
|
|
2
|
+
main = "src/index.js"
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
name = "<TBD>"
|
|
2
|
-
main = "src/
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|