create-cloudflare 0.0.0-4e0f6f4b → 0.0.0-4e63ec08
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 +19107 -18534
- package/package.json +6 -4
- package/templates/astro/c3.ts +2 -2
- package/templates/astro/snippets/runtimeDeclaration.ts +2 -1
- 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/c3.ts +9 -0
- package/templates/hello-world-python/py/__dot__gitignore +68 -0
- package/templates/hello-world-python/py/package.json +13 -0
- package/templates/hello-world-python/py/src/entry.py +4 -0
- package/templates/hello-world-python/py/wrangler.toml +5 -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4e63ec08",
|
|
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",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"execa": "^7.1.1",
|
|
56
56
|
"glob": "^10.3.3",
|
|
57
57
|
"haikunator": "^2.1.2",
|
|
58
|
+
"indent-string": "^5.0.0",
|
|
58
59
|
"magic-string": "^0.30.5",
|
|
59
60
|
"open": "^8.4.0",
|
|
60
61
|
"pnpm": "^8.10.0",
|
|
@@ -64,11 +65,12 @@
|
|
|
64
65
|
"undici": "5.28.3",
|
|
65
66
|
"vite-tsconfig-paths": "^4.0.8",
|
|
66
67
|
"which-pm-runs": "^1.1.0",
|
|
68
|
+
"wrap-ansi": "^9.0.0",
|
|
67
69
|
"yargs": "^17.7.1",
|
|
68
70
|
"yarn": "^1.22.19",
|
|
69
71
|
"@cloudflare/cli": "1.1.1",
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
+
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
73
|
+
"wrangler": "3.49.0"
|
|
72
74
|
},
|
|
73
75
|
"engines": {
|
|
74
76
|
"node": ">=18.14.1"
|
package/templates/astro/c3.ts
CHANGED
|
@@ -46,9 +46,9 @@ const updateAstroConfig = () => {
|
|
|
46
46
|
n.node.arguments = [
|
|
47
47
|
b.objectExpression([
|
|
48
48
|
b.objectProperty(
|
|
49
|
-
b.identifier("
|
|
49
|
+
b.identifier("platformProxy"),
|
|
50
50
|
b.objectExpression([
|
|
51
|
-
b.objectProperty(b.identifier("
|
|
51
|
+
b.objectProperty(b.identifier("enabled"), b.booleanLiteral(true)),
|
|
52
52
|
])
|
|
53
53
|
),
|
|
54
54
|
]),
|
|
@@ -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
|
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
|
|
3
|
+
logs
|
|
4
|
+
_.log
|
|
5
|
+
npm-debug.log_
|
|
6
|
+
yarn-debug.log*
|
|
7
|
+
yarn-error.log*
|
|
8
|
+
lerna-debug.log*
|
|
9
|
+
.pnpm-debug.log*
|
|
10
|
+
|
|
11
|
+
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
12
|
+
|
|
13
|
+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
|
14
|
+
|
|
15
|
+
# Runtime data
|
|
16
|
+
|
|
17
|
+
pids
|
|
18
|
+
_.pid
|
|
19
|
+
_.seed
|
|
20
|
+
\*.pid.lock
|
|
21
|
+
|
|
22
|
+
# Dependency directories
|
|
23
|
+
|
|
24
|
+
node_modules/
|
|
25
|
+
jspm_packages/
|
|
26
|
+
|
|
27
|
+
# TypeScript cache
|
|
28
|
+
|
|
29
|
+
\*.tsbuildinfo
|
|
30
|
+
|
|
31
|
+
# Optional npm cache directory
|
|
32
|
+
|
|
33
|
+
.npm
|
|
34
|
+
|
|
35
|
+
# Optional eslint cache
|
|
36
|
+
|
|
37
|
+
.eslintcache
|
|
38
|
+
|
|
39
|
+
# Optional stylelint cache
|
|
40
|
+
|
|
41
|
+
.stylelintcache
|
|
42
|
+
|
|
43
|
+
# Optional REPL history
|
|
44
|
+
|
|
45
|
+
.node_repl_history
|
|
46
|
+
|
|
47
|
+
# Output of 'npm pack'
|
|
48
|
+
|
|
49
|
+
\*.tgz
|
|
50
|
+
|
|
51
|
+
# dotenv environment variable files
|
|
52
|
+
|
|
53
|
+
.env
|
|
54
|
+
.env.development.local
|
|
55
|
+
.env.test.local
|
|
56
|
+
.env.production.local
|
|
57
|
+
.env.local
|
|
58
|
+
|
|
59
|
+
# public
|
|
60
|
+
|
|
61
|
+
# Stores VSCode versions used for testing VSCode extensions
|
|
62
|
+
|
|
63
|
+
.vscode-test
|
|
64
|
+
|
|
65
|
+
# wrangler project
|
|
66
|
+
|
|
67
|
+
.dev.vars
|
|
68
|
+
.wrangler/
|