@zabaca/zbc 0.2.1 → 0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zabaca/zbc",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "Zabaca stack CLI — scaffold and deploy infrastructure",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -111,6 +111,12 @@ export const initCommand = defineCommand({
111
111
  console.warn(` warn: unknown --ci=${args.ci} (only "github" supported)`)
112
112
  }
113
113
 
114
+ // 7. Claude Code scaffolding (skip-if-exists, safe in either mode)
115
+ await copyTemplateFile(path.join(tplRoot, 'CLAUDE.md'), path.join(cwd, 'CLAUDE.md'), {
116
+ vars,
117
+ })
118
+ await copyTemplateDir(path.join(tplRoot, 'claude'), path.join(cwd, '.claude'))
119
+
114
120
  console.log('')
115
121
  console.log('✓ init done')
116
122
  console.log('')
@@ -0,0 +1,23 @@
1
+ # {{PROJECT_NAME}}
2
+
3
+ This project uses [zbc](https://github.com/Zabaca/zbc) for infrastructure scaffolding.
4
+
5
+ ## Layout
6
+
7
+ - `packages/infra/` — infrastructure code (zbc modules)
8
+ - `packages/infra/environments/` — per-environment config (`production`, `preview`)
9
+ - `packages/infra/modules/` — vendored infra modules (do not edit by hand)
10
+ - `zbc.config.ts` — project-level zbc config
11
+ - `.sops.yaml` — SOPS encryption rules for secrets
12
+
13
+ ## Common commands
14
+
15
+ - `bun install` — install dependencies
16
+ - `bunx @zabaca/zbc add <module>` — vendor an infra module (`turso`, `vercel`, `nats-server`)
17
+ - `bunx @zabaca/zbc apply <env>` — apply infrastructure for an environment
18
+ - `bunx @zabaca/zbc destroy <env>` — tear down an ephemeral environment
19
+
20
+ ## Conventions
21
+
22
+ - `packages/infra/modules/*` is vendored from `@zabaca/zbc`. Re-vendor with `zbc add` rather than editing in place.
23
+ - Secrets are SOPS-encrypted under `packages/infra/environments/<env>/`. Decrypt only when needed; never commit plaintext.
@@ -0,0 +1,11 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(bun:*)",
5
+ "Bash(bunx:*)",
6
+ "Bash(git:*)",
7
+ "Bash(gh:*)",
8
+ "Bash(zbc:*)"
9
+ ]
10
+ }
11
+ }