@catapultjs/deploy 0.12.0 → 0.13.0
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 +34 -13
- package/build/bin/run.js +18 -42
- package/build/bin/run.js.map +1 -1
- package/build/commands/config_validate.d.ts +7 -0
- package/build/commands/config_validate.js +45 -0
- package/build/commands/config_validate.js.map +1 -0
- package/build/commands/init.js +18 -2
- package/build/commands/init.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/src/config/json/loader.d.ts +4 -0
- package/build/src/config/json/loader.js +206 -0
- package/build/src/config/json/loader.js.map +1 -0
- package/build/src/config/json/recipe_registry.d.ts +3 -0
- package/build/src/config/json/recipe_registry.js +44 -0
- package/build/src/config/json/recipe_registry.js.map +1 -0
- package/build/src/config/json/schema.d.ts +45 -0
- package/build/src/config/json/schema.js +198 -0
- package/build/src/config/json/schema.js.map +1 -0
- package/build/src/config/loader.d.ts +2 -0
- package/build/src/config/loader.js +21 -0
- package/build/src/config/loader.js.map +1 -0
- package/build/src/config/resolve.d.ts +2 -0
- package/build/src/config/resolve.js +30 -0
- package/build/src/config/resolve.js.map +1 -0
- package/build/src/utils.js +8 -1
- package/build/src/utils.js.map +1 -1
- package/package.json +11 -6
- package/schema/deploy.schema.json +287 -0
- package/skills/catapultjs/SKILL.md +14 -11
- package/skills/catapultjs/references/cli.md +11 -2
- package/skills/catapultjs/references/config.md +133 -34
- package/skills/catapultjs/references/recipe.md +1 -1
- package/skills/catapultjs/references/recipes.md +4 -2
|
@@ -520,7 +520,7 @@ import '@catapultjs/deploy/recipes/directus'
|
|
|
520
520
|
import '@catapultjs/deploy/recipes/caddy'
|
|
521
521
|
```
|
|
522
522
|
|
|
523
|
-
Manages Caddy configuration. Does not deliver application code and does not reload Caddy by default unless `caddy_reload_after_publish` is set before
|
|
523
|
+
Manages Caddy configuration. Does not deliver application code and does not reload Caddy by default unless `caddy_reload_after_publish` is set before loading the recipe. Service management is intentionally separate; combine with `recipes/systemd` and set `systemd_service` to `caddy` when Caddy is managed by systemd.
|
|
524
524
|
|
|
525
525
|
> [!WARNING]
|
|
526
526
|
> Caddy must be able to traverse every parent directory of the configured web root and read the published files. Deploying under a private home directory such as `/home/deploy/...` may require extra permissions or ACLs. Prefer a web root under `/var/www/<app>` or `/srv/www/<app>` for static sites. On the server, use `namei -l /path/to/current/index.html` to inspect which directory blocks access.
|
|
@@ -545,9 +545,11 @@ Manages Caddy configuration. Does not deliver application code and does not relo
|
|
|
545
545
|
|
|
546
546
|
```typescript
|
|
547
547
|
set('caddy_reload_after_publish', true)
|
|
548
|
-
import
|
|
548
|
+
await import('@catapultjs/deploy/recipes/caddy')
|
|
549
549
|
```
|
|
550
550
|
|
|
551
|
+
Use a dynamic import when a recipe option changes pipeline wiring. Static ESM imports run before `set()` calls in the module body.
|
|
552
|
+
|
|
551
553
|
---
|
|
552
554
|
|
|
553
555
|
## `recipes/systemd`
|