@willbooster/wb 23.2.1 → 23.3.1
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/README.md +19 -2
- package/dist/index.js +52 -52
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
purpose: Developers and AI agents run the same commands in every WillBooster repository, whatever its framework or deploy target.
|
|
3
|
+
goals:
|
|
4
|
+
- One command verifies, tests, starts, or deploys a project on every stack WillBooster uses.
|
|
5
|
+
- The output of a failed command is all an AI agent needs to fix the failure.
|
|
6
|
+
- Commands print to standard output only what an AI agent needs to act on, leaving out everything else.
|
|
7
|
+
nonGoals:
|
|
8
|
+
- Running on Windows.
|
|
9
|
+
---
|
|
10
|
+
|
|
1
11
|
# @willbooster/wb
|
|
2
12
|
|
|
3
13
|
`wb` offers a collection of reusable npm scripts, designed primarily for WillBooster Inc. but with potential utility for other projects as well.
|
|
@@ -149,9 +159,16 @@ Options:
|
|
|
149
159
|
--help Show help [boolean]
|
|
150
160
|
```
|
|
151
161
|
|
|
152
|
-
##
|
|
162
|
+
## Cloudflare Container rollouts
|
|
163
|
+
|
|
164
|
+
`wb deploy --containers-rollout=<mode>` forwards the selected mode to Wrangler for build validation and deployment:
|
|
165
|
+
|
|
166
|
+
- `none` deploys Worker code and secrets without container image lookup, build, push, or reuse.
|
|
167
|
+
- `gradual` and `immediate` reuse published images from unchanged committed build contexts before deploying with the selected rollout mode.
|
|
168
|
+
|
|
169
|
+
Omitting the option uses the normal Wrangler deployment without image reuse.
|
|
153
170
|
|
|
154
|
-
|
|
171
|
+
Image reuse supports single-image container entries with `image` and either `name` or `class_name`. Docker is required on a cache miss. Commit the Dockerfile inside its Git build context. Builds exclude untracked and generated files and reject uncommitted changes to tracked context files.
|
|
155
172
|
|
|
156
173
|
The reuse key includes the deployment's Worker name, the context's Git tree, the relative Dockerfile path, `image_vars`, and `linux/amd64`. Changes to tracked documentation or files excluded by `.dockerignore` also rebuild the image. To refresh external dependencies, update the committed context. Serialize deployments of the same Worker. Changes to other container settings can still trigger replacement by Cloudflare.
|
|
157
174
|
|