@powerlines/plugin-cloudflare 0.6.324 → 0.6.325

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.
Files changed (2) hide show
  1. package/README.md +35 -0
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -74,6 +74,41 @@ A Powerlines plugin that assists in deployments to Cloudflare and provides runti
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Deploys to Cloudflare and adds the `cloudflare` builtin module at runtime
80
+ - Composes the `unenv` and Pulumi plugins; resolves entries to Worker modules at `build` (`pre`)
81
+ - Exposes `cloudflare.wrangler` and `cloudflare.workers` context plus worker/entry/env-builtin components
82
+ - Wrangler helpers under `./helpers/wrangler` and worker-module types under `./types/*`
83
+
84
+ ## Usage
85
+
86
+ Install the plugin:
87
+
88
+ ```bash
89
+ pnpm add @powerlines/plugin-cloudflare
90
+ ```
91
+
92
+ Register it in `powerlines.config.ts`:
93
+
94
+ ```ts
95
+ import { defineConfig } from "powerlines";
96
+ import { plugin as cloudflare } from "@powerlines/plugin-cloudflare";
97
+
98
+ export default defineConfig({
99
+ plugins: [
100
+ cloudflare({
101
+ accountId: process.env.CLOUDFLARE_ACCOUNT_ID,
102
+ configPath: "./wrangler.toml"
103
+ })
104
+ ]
105
+ });
106
+ ```
107
+
108
+ Requires peers `wrangler`, `@cloudflare/unenv-preset`, `@cloudflare/workers-types`, and `zod`, installed by the consumer.
109
+
110
+ Run the Powerlines build for your project to activate the plugin.
111
+
77
112
  ## Installing
78
113
 
79
114
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-cloudflare",
3
- "version": "0.6.324",
3
+ "version": "0.6.325",
4
4
  "private": false,
5
5
  "description": "A Powerlines plugin that provides integration with Cloudflare services.",
6
6
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
@@ -210,12 +210,12 @@
210
210
  "@alloy-js/core": "^0.24.1",
211
211
  "@alloy-js/typescript": "^0.24.0",
212
212
  "@power-plant/alloy-js": "^0.0.95",
213
- "@powerlines/plugin-env": "^0.16.425",
214
- "@powerlines/plugin-pulumi": "^0.6.319",
215
- "@powerlines/plugin-unenv": "^0.1.667",
213
+ "@powerlines/plugin-env": "^0.16.426",
214
+ "@powerlines/plugin-pulumi": "^0.6.320",
215
+ "@powerlines/plugin-unenv": "^0.1.668",
216
216
  "@pulumi/cloudflare": "^6.23.1",
217
217
  "@pulumi/pulumi": "^3.271.0",
218
- "@storm-software/config-tools": "^1.190.151",
218
+ "@storm-software/config-tools": "^1.190.154",
219
219
  "@stryke/hash": "^0.13.71",
220
220
  "@stryke/helpers": "^0.10.56",
221
221
  "@stryke/path": "^0.29.43",
@@ -223,17 +223,17 @@
223
223
  "@stryke/type-checks": "^0.6.49",
224
224
  "@stryke/types": "^0.12.44",
225
225
  "defu": "^6.1.7",
226
- "powerlines": "^0.47.216"
226
+ "powerlines": "^0.47.217"
227
227
  },
228
228
  "devDependencies": {
229
229
  "@cloudflare/unenv-preset": "^2.16.2",
230
230
  "@cloudflare/workers-types": "^4.20260702.1",
231
- "@powerlines/plugin-alloy": "^0.26.314",
232
- "@powerlines/plugin-plugin": "^0.12.629",
231
+ "@powerlines/plugin-alloy": "^0.26.315",
232
+ "@powerlines/plugin-plugin": "^0.12.630",
233
233
  "@types/node": "^25.9.9",
234
234
  "wrangler": "^4.152.0",
235
235
  "zod": "^4.6.7"
236
236
  },
237
237
  "publishConfig": { "access": "public" },
238
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
238
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
239
239
  }