create-cloudflare 0.0.0-e8df68ee → 0.0.0-e9fae558
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/angular/templates/tools/bundle.mjs +5 -2
- package/dist/cli.js +47619 -45918
- package/package.json +13 -6
- package/templates/chatgptPlugin/ts/README.md +1 -1
- package/templates/chatgptPlugin/ts/package.json +1 -1
- package/templates/chatgptPlugin/ts/wrangler.toml +2 -2
- package/templates/common/js/package.json +1 -2
- package/templates/common/js/wrangler.toml +2 -2
- package/templates/common/ts/package.json +1 -1
- package/templates/common/ts/wrangler.toml +2 -2
- package/templates/hello-world/js/package.json +1 -3
- package/templates/hello-world/js/wrangler.toml +2 -2
- package/templates/hello-world/ts/package.json +1 -1
- package/templates/hello-world/ts/wrangler.toml +2 -2
- package/templates/queues/js/package.json +1 -3
- package/templates/queues/js/wrangler.toml +4 -4
- package/templates/queues/ts/package.json +1 -1
- package/templates/queues/ts/wrangler.toml +4 -4
- package/templates/scheduled/js/package.json +1 -3
- package/templates/scheduled/js/wrangler.toml +2 -2
- package/templates/scheduled/ts/package.json +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-e9fae558",
|
|
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,20 +57,23 @@
|
|
|
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",
|
|
64
|
-
"undici": "
|
|
70
|
+
"undici": "5.20.0",
|
|
65
71
|
"vite-tsconfig-paths": "^4.0.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"
|
|
@@ -12,7 +12,7 @@ The sample plugin allows ChatGPT users to search for repositories using GitHub's
|
|
|
12
12
|
1. Install [wrangler](https://developers.cloudflare.com/workers/cli-wrangler/install-update), the Cloudflare Workers CLI
|
|
13
13
|
2. Clone this project and install dependencies with `npm install`
|
|
14
14
|
3. Run `wrangler login` to login to your Cloudflare account in wrangler
|
|
15
|
-
4. Run `wrangler
|
|
15
|
+
4. Run `wrangler deploy` to publish the plugin to Cloudflare Workers
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
name = "
|
|
1
|
+
name = "<TBD>"
|
|
2
2
|
main = "src/index.ts"
|
|
3
|
-
compatibility_date = "
|
|
3
|
+
compatibility_date = "<TBD>"
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"deploy": "wrangler
|
|
6
|
+
"deploy": "wrangler deploy",
|
|
7
7
|
"start": "wrangler dev"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@cloudflare/workers-types": "^4.20230419.0",
|
|
11
10
|
"itty-router": "^3.0.12",
|
|
12
11
|
"wrangler": "^3.0.0"
|
|
13
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name = "<TBD>"
|
|
2
|
-
main = "src/
|
|
3
|
-
compatibility_date = "
|
|
2
|
+
main = "src/index.js"
|
|
3
|
+
compatibility_date = "<TBD>"
|
|
4
4
|
|
|
5
5
|
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
|
|
6
6
|
# Note: Use secrets to store sensitive data.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name = "<TBD>"
|
|
2
|
-
main = "src/
|
|
3
|
-
compatibility_date = "
|
|
2
|
+
main = "src/index.ts"
|
|
3
|
+
compatibility_date = "<TBD>"
|
|
4
4
|
|
|
5
5
|
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
|
|
6
6
|
# Note: Use secrets to store sensitive data.
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"deploy": "wrangler
|
|
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/
|
|
3
|
-
compatibility_date = "
|
|
2
|
+
main = "src/index.js"
|
|
3
|
+
compatibility_date = "<TBD>"
|
|
4
4
|
|
|
5
5
|
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
|
|
6
6
|
# Note: Use secrets to store sensitive data.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name = "<TBD>"
|
|
2
|
-
main = "src/
|
|
3
|
-
compatibility_date = "
|
|
2
|
+
main = "src/index.ts"
|
|
3
|
+
compatibility_date = "<TBD>"
|
|
4
4
|
|
|
5
5
|
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
|
|
6
6
|
# Note: Use secrets to store sensitive data.
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"deploy": "wrangler
|
|
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/
|
|
3
|
-
compatibility_date = "
|
|
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
|
-
|
|
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/
|
|
3
|
-
compatibility_date = "
|
|
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
|
-
|
|
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
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"deploy": "wrangler
|
|
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
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|