create-cloudflare 0.0.0-68faf67f → 0.0.0-69577b93
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 +11 -6
- package/package.json +3 -3
- package/templates/astro/templates/wrangler.toml +1 -0
- package/templates/common/js/wrangler.toml +1 -0
- package/templates/common/ts/wrangler.toml +1 -0
- package/templates/hello-world/js/package.json +2 -1
- package/templates/hello-world/js/test/index.spec.js +1 -1
- package/templates/hello-world/js/wrangler.toml +1 -0
- package/templates/hello-world/ts/test/index.spec.ts +2 -2
- package/templates/hello-world/ts/wrangler.toml +1 -0
- package/templates/hello-world-durable-object/js/wrangler.toml +1 -0
- package/templates/hello-world-durable-object/ts/wrangler.toml +1 -0
- package/templates/hello-world-python/py/wrangler.toml +95 -0
- package/templates/next/wrangler.toml +1 -0
- package/templates/nuxt/templates/wrangler.toml +1 -0
- package/templates/openapi/ts/wrangler.toml +1 -0
- package/templates/pre-existing/js/wrangler.toml +1 -0
- package/templates/queues/js/wrangler.toml +1 -0
- package/templates/queues/ts/wrangler.toml +1 -0
- package/templates/qwik/templates/wrangler.toml +1 -0
- package/templates/remix/templates/wrangler.toml +1 -0
- package/templates/scheduled/js/wrangler.toml +1 -0
- package/templates/scheduled/ts/wrangler.toml +1 -0
- package/templates/svelte/js/wrangler.toml +1 -0
- package/templates/svelte/ts/wrangler.toml +1 -0
package/dist/cli.js
CHANGED
|
@@ -3897,7 +3897,7 @@ var init_args = __esm({
|
|
|
3897
3897
|
var version, devDependencies;
|
|
3898
3898
|
var init_package = __esm({
|
|
3899
3899
|
"package.json"() {
|
|
3900
|
-
version = "0.0.0-
|
|
3900
|
+
version = "0.0.0-69577b93";
|
|
3901
3901
|
devDependencies = {
|
|
3902
3902
|
"@babel/parser": "^7.21.3",
|
|
3903
3903
|
"@babel/types": "^7.21.4",
|
|
@@ -3905,7 +3905,7 @@ var init_package = __esm({
|
|
|
3905
3905
|
"@cloudflare/cli": "workspace:*",
|
|
3906
3906
|
"@cloudflare/eslint-config-worker": "*",
|
|
3907
3907
|
"@cloudflare/workers-tsconfig": "workspace:*",
|
|
3908
|
-
"@cloudflare/workers-types": "^4.
|
|
3908
|
+
"@cloudflare/workers-types": "^4.20240405.0",
|
|
3909
3909
|
"@iarna/toml": "^3.0.0",
|
|
3910
3910
|
"@types/command-exists": "^1.2.0",
|
|
3911
3911
|
"@types/cross-spawn": "^6.0.2",
|
|
@@ -24603,7 +24603,7 @@ var init_package2 = __esm({
|
|
|
24603
24603
|
"additionally it also contains a map that maps frameworks to their respective clis"
|
|
24604
24604
|
],
|
|
24605
24605
|
dependencies: {
|
|
24606
|
-
"create-astro": "4.7.
|
|
24606
|
+
"create-astro": "4.7.5",
|
|
24607
24607
|
"@angular/create": "17.2.3",
|
|
24608
24608
|
"create-docusaurus": "3.1.1",
|
|
24609
24609
|
"create-hono": "0.5.0",
|
|
@@ -24613,7 +24613,7 @@ var init_package2 = __esm({
|
|
|
24613
24613
|
"create-remix": "2.8.1",
|
|
24614
24614
|
"create-solid": "0.5.5",
|
|
24615
24615
|
"create-svelte": "6.0.10",
|
|
24616
|
-
"create-vue": "3.
|
|
24616
|
+
"create-vue": "3.10.2",
|
|
24617
24617
|
gatsby: "5.13.3",
|
|
24618
24618
|
nuxi: "3.11.1"
|
|
24619
24619
|
},
|
|
@@ -24686,7 +24686,12 @@ var init_accounts = __esm({
|
|
|
24686
24686
|
s.start(`Selecting Cloudflare account ${dim("retrieving accounts")}`);
|
|
24687
24687
|
const accounts = await listAccounts();
|
|
24688
24688
|
let accountId;
|
|
24689
|
-
|
|
24689
|
+
const numAccounts = Object.keys(accounts).length;
|
|
24690
|
+
if (numAccounts === 0) {
|
|
24691
|
+
throw new Error(
|
|
24692
|
+
"Unable to find any accounts to deploy to! Please ensure you're logged in as a user that can deploy Workers."
|
|
24693
|
+
);
|
|
24694
|
+
} else if (numAccounts === 1) {
|
|
24690
24695
|
const accountName2 = Object.keys(accounts)[0];
|
|
24691
24696
|
accountId = accounts[accountName2];
|
|
24692
24697
|
s.stop(`${brandColor("account")} ${dim(accountName2)}`);
|
|
@@ -77671,7 +77676,7 @@ init_command();
|
|
|
77671
77676
|
init_packageManagers();
|
|
77672
77677
|
|
|
77673
77678
|
// ../wrangler/package.json
|
|
77674
|
-
var version2 = "3.
|
|
77679
|
+
var version2 = "3.50.0";
|
|
77675
77680
|
|
|
77676
77681
|
// src/git.ts
|
|
77677
77682
|
init_package();
|
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-69577b93",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@babel/types": "^7.21.4",
|
|
31
31
|
"@clack/prompts": "^0.6.3",
|
|
32
32
|
"@cloudflare/eslint-config-worker": "*",
|
|
33
|
-
"@cloudflare/workers-types": "^4.
|
|
33
|
+
"@cloudflare/workers-types": "^4.20240405.0",
|
|
34
34
|
"@iarna/toml": "^3.0.0",
|
|
35
35
|
"@types/command-exists": "^1.2.0",
|
|
36
36
|
"@types/cross-spawn": "^6.0.2",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"yargs": "^17.7.1",
|
|
70
70
|
"yarn": "^1.22.19",
|
|
71
71
|
"@cloudflare/cli": "1.1.1",
|
|
72
|
-
"wrangler": "3.
|
|
72
|
+
"wrangler": "3.50.0",
|
|
73
73
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
@@ -14,7 +14,7 @@ describe("Hello World worker", () => {
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
it("responds with Hello World! (integration style)", async () => {
|
|
17
|
-
const response = await SELF.fetch(
|
|
17
|
+
const response = await SELF.fetch("http://example.com");
|
|
18
18
|
expect(await response.text()).toMatchInlineSnapshot(`"Hello World!"`);
|
|
19
19
|
});
|
|
20
20
|
});
|
|
@@ -19,7 +19,7 @@ describe("Hello World worker", () => {
|
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
it("responds with Hello World! (integration style)", async () => {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
const response = await SELF.fetch("https://example.com");
|
|
23
|
+
expect(await response.text()).toMatchInlineSnapshot(`"Hello World!"`);
|
|
24
24
|
});
|
|
25
25
|
});
|
|
@@ -1,4 +1,99 @@
|
|
|
1
|
+
#:schema node_modules/wrangler/config-schema.json
|
|
1
2
|
name = "<TBD>"
|
|
2
3
|
main = "src/entry.py"
|
|
3
4
|
compatibility_flags = ["python_workers"]
|
|
4
5
|
compatibility_date = "<TBD>"
|
|
6
|
+
|
|
7
|
+
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
|
|
8
|
+
# Note: Use secrets to store sensitive data.
|
|
9
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
|
|
10
|
+
# [vars]
|
|
11
|
+
# MY_VARIABLE = "production_value"
|
|
12
|
+
|
|
13
|
+
# Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network
|
|
14
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
|
|
15
|
+
# [ai]
|
|
16
|
+
# binding = "AI"
|
|
17
|
+
|
|
18
|
+
# Bind an Analytics Engine dataset. Use Analytics Engine to write analytics within your Pages Function.
|
|
19
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
|
|
20
|
+
# [[analytics_engine_datasets]]
|
|
21
|
+
# binding = "MY_DATASET"
|
|
22
|
+
|
|
23
|
+
# Bind a headless browser instance running on Cloudflare's global network.
|
|
24
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering
|
|
25
|
+
# [browser]
|
|
26
|
+
# binding = "MY_BROWSER"
|
|
27
|
+
|
|
28
|
+
# Bind a D1 database. D1 is Cloudflare’s native serverless SQL database.
|
|
29
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases
|
|
30
|
+
# [[d1_databases]]
|
|
31
|
+
# binding = "MY_DB"
|
|
32
|
+
# database_name = "my-database"
|
|
33
|
+
# database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
34
|
+
|
|
35
|
+
# Bind a dispatch namespace. Use Workers for Platforms to deploy serverless functions programmatically on behalf of your customers.
|
|
36
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms
|
|
37
|
+
# [[dispatch_namespaces]]
|
|
38
|
+
# binding = "MY_DISPATCHER"
|
|
39
|
+
# namespace = "my-namespace"
|
|
40
|
+
|
|
41
|
+
# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
|
|
42
|
+
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
|
|
43
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
|
|
44
|
+
# [[durable_objects.bindings]]
|
|
45
|
+
# name = "MY_DURABLE_OBJECT"
|
|
46
|
+
# class_name = "MyDurableObject"
|
|
47
|
+
|
|
48
|
+
# Durable Object migrations.
|
|
49
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
|
|
50
|
+
# [[migrations]]
|
|
51
|
+
# tag = "v1"
|
|
52
|
+
# new_classes = ["MyDurableObject"]
|
|
53
|
+
|
|
54
|
+
# Bind a Hyperdrive configuration. Use to accelerate access to your existing databases from Cloudflare Workers.
|
|
55
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive
|
|
56
|
+
# [[hyperdrive]]
|
|
57
|
+
# binding = "MY_HYPERDRIVE"
|
|
58
|
+
# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
59
|
+
|
|
60
|
+
# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
|
|
61
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
|
|
62
|
+
# [[kv_namespaces]]
|
|
63
|
+
# binding = "MY_KV_NAMESPACE"
|
|
64
|
+
# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
65
|
+
|
|
66
|
+
# Bind an mTLS certificate. Use to present a client certificate when communicating with another service.
|
|
67
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates
|
|
68
|
+
# [[mtls_certificates]]
|
|
69
|
+
# binding = "MY_CERTIFICATE"
|
|
70
|
+
# certificate_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
71
|
+
|
|
72
|
+
# Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
|
|
73
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
|
|
74
|
+
# [[queues.producers]]
|
|
75
|
+
# binding = "MY_QUEUE"
|
|
76
|
+
# queue = "my-queue"
|
|
77
|
+
|
|
78
|
+
# Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
|
|
79
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
|
|
80
|
+
# [[queues.consumers]]
|
|
81
|
+
# queue = "my-queue"
|
|
82
|
+
|
|
83
|
+
# Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
|
|
84
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
|
|
85
|
+
# [[r2_buckets]]
|
|
86
|
+
# binding = "MY_BUCKET"
|
|
87
|
+
# bucket_name = "my-bucket"
|
|
88
|
+
|
|
89
|
+
# Bind another Worker service. Use this binding to call another Worker without network overhead.
|
|
90
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
|
|
91
|
+
# [[services]]
|
|
92
|
+
# binding = "MY_SERVICE"
|
|
93
|
+
# service = "my-service"
|
|
94
|
+
|
|
95
|
+
# Bind a Vectorize index. Use to store and query vector embeddings for semantic search, classification and other vector search use-cases.
|
|
96
|
+
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes
|
|
97
|
+
# [[vectorize]]
|
|
98
|
+
# binding = "MY_INDEX"
|
|
99
|
+
# index_name = "my-index"
|