create-cloudflare 0.0.0-67fc01c9 → 0.0.0-68faf67f

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "0.0.0-67fc01c9",
3
+ "version": "0.0.0-68faf67f",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -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
- "@cloudflare/workers-tsconfig": "0.0.0",
71
- "wrangler": "3.36.0"
72
+ "wrangler": "3.44.0",
73
+ "@cloudflare/workers-tsconfig": "0.0.0"
72
74
  },
73
75
  "engines": {
74
76
  "node": ">=18.14.1"
@@ -46,9 +46,9 @@ const updateAstroConfig = () => {
46
46
  n.node.arguments = [
47
47
  b.objectExpression([
48
48
  b.objectProperty(
49
- b.identifier("runtime"),
49
+ b.identifier("platformProxy"),
50
50
  b.objectExpression([
51
- b.objectProperty(b.identifier("mode"), b.stringLiteral("local")),
51
+ b.objectProperty(b.identifier("enabled"), b.booleanLiteral(true)),
52
52
  ])
53
53
  ),
54
54
  ]),
@@ -1,4 +1,5 @@
1
- type Runtime = import("@astrojs/cloudflare").DirectoryRuntime<Env>;
1
+ type Runtime = import("@astrojs/cloudflare").Runtime<Env>;
2
+
2
3
  declare namespace App {
3
4
  interface Locals extends Runtime {}
4
5
  }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ configVersion: 1,
3
+ id: "hello-world-python",
4
+ displayName: '"Hello World" Worker (Python)',
5
+ platform: "workers",
6
+ copyFiles: {
7
+ path: "./py",
8
+ },
9
+ };
@@ -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/
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "deploy": "wrangler deploy",
7
+ "dev": "wrangler dev",
8
+ "start": "wrangler dev"
9
+ },
10
+ "devDependencies": {
11
+ "wrangler": "^3.0.0"
12
+ }
13
+ }
@@ -0,0 +1,4 @@
1
+ from js import Response
2
+
3
+ async def on_fetch(request, env):
4
+ return Response.new("Hello World!")
@@ -0,0 +1,4 @@
1
+ name = "<TBD>"
2
+ main = "src/entry.py"
3
+ compatibility_flags = ["python_workers"]
4
+ compatibility_date = "<TBD>"