create-cloudflare 0.0.0-e2234bbc → 0.0.0-e2a6fa40
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 +47554 -46831
- package/package.json +81 -73
- package/templates/common/js/wrangler.toml +1 -1
- package/templates/common/ts/wrangler.toml +1 -1
- package/templates/hello-world/js/wrangler.toml +1 -1
- package/templates/hello-world/ts/wrangler.toml +1 -1
- package/templates/queues/js/wrangler.toml +3 -3
- package/templates/queues/ts/wrangler.toml +3 -3
- 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,74 +1,82 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
2
|
+
"name": "create-cloudflare",
|
|
3
|
+
"version": "0.0.0-e2a6fa40",
|
|
4
|
+
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cloudflare",
|
|
7
|
+
"workers",
|
|
8
|
+
"cloudflare workers",
|
|
9
|
+
"serverless",
|
|
10
|
+
"serverless application"
|
|
11
|
+
],
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/cloudflare/workers-sdk.git",
|
|
15
|
+
"directory": "packages/create-cloudflare"
|
|
16
|
+
},
|
|
17
|
+
"license": "MIT OR Apache-2.0",
|
|
18
|
+
"author": "wrangler@cloudflare.com",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./dist/cli.js"
|
|
21
|
+
},
|
|
22
|
+
"main": "./dist/cli.js",
|
|
23
|
+
"bin": "./dist/cli.js",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"templates"
|
|
27
|
+
],
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@babel/parser": "^7.21.3",
|
|
30
|
+
"@babel/types": "^7.21.4",
|
|
31
|
+
"@clack/prompts": "^0.6.3",
|
|
32
|
+
"@cloudflare/eslint-config-worker": "*",
|
|
33
|
+
"@cloudflare/workers-types": "^4.20230419.0",
|
|
34
|
+
"@types/command-exists": "^1.2.0",
|
|
35
|
+
"@types/cross-spawn": "^6.0.2",
|
|
36
|
+
"@types/dns2": "^2.0.3",
|
|
37
|
+
"@types/esprima": "^4.0.3",
|
|
38
|
+
"@types/node": "^18.15.3",
|
|
39
|
+
"@types/which-pm-runs": "^1.0.0",
|
|
40
|
+
"@types/yargs": "^17.0.22",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
42
|
+
"@typescript-eslint/parser": "^5.55.0",
|
|
43
|
+
"chalk": "^5.2.0",
|
|
44
|
+
"command-exists": "^1.2.9",
|
|
45
|
+
"cross-spawn": "^7.0.3",
|
|
46
|
+
"dns2": "^2.1.0",
|
|
47
|
+
"esbuild": "^0.17.12",
|
|
48
|
+
"execa": "^7.1.1",
|
|
49
|
+
"haikunator": "^2.1.2",
|
|
50
|
+
"log-update": "^5.0.1",
|
|
51
|
+
"open": "^8.4.0",
|
|
52
|
+
"pnpm": "^8.6.11",
|
|
53
|
+
"recast": "^0.22.0",
|
|
54
|
+
"semver": "^7.5.1",
|
|
55
|
+
"typescript": "^5.0.2",
|
|
56
|
+
"undici": "5.20.0",
|
|
57
|
+
"vite-tsconfig-paths": "^4.0.8",
|
|
58
|
+
"vitest": "^0.30.0",
|
|
59
|
+
"which-pm-runs": "^1.1.0",
|
|
60
|
+
"yargs": "^17.7.1",
|
|
61
|
+
"yarn": "^1.22.19",
|
|
62
|
+
"@clack/core": "^0.3.2",
|
|
63
|
+
"@types/semver": "^7.5.1",
|
|
64
|
+
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
65
|
+
"wrangler": "3.7.0"
|
|
66
|
+
},
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": ">=16.13.0"
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"build": "node -r esbuild-register scripts/build.ts",
|
|
72
|
+
"check:lint": "eslint .",
|
|
73
|
+
"check:type": "tsc",
|
|
74
|
+
"lint": "eslint",
|
|
75
|
+
"test:e2e:cleanup": "node -r esbuild-register scripts/e2eCleanup.ts",
|
|
76
|
+
"test:e2e:npm": "pnpm run build && TEST_PM=npm vitest run --config ./vitest-e2e.config.ts",
|
|
77
|
+
"test:e2e:pnpm": "pnpm run build && TEST_PM=pnpm vitest run --config ./vitest-e2e.config.ts",
|
|
78
|
+
"test:unit": "vitest run --config ./vitest.config.ts",
|
|
79
|
+
"test:unit:watch": "vitest --config ./vitest.config.ts",
|
|
80
|
+
"watch": "node -r esbuild-register scripts/build.ts --watch"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -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
|