@getvitops/create 0.4.0 → 0.6.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +129 -5
  2. package/README.md +7 -0
  3. package/package.json +17 -2
  4. package/templates/emdash/.env +1 -0
  5. package/templates/emdash/.github/workflows/ci.yml +12 -0
  6. package/templates/emdash/.github/workflows/deploy-dev.yml +17 -19
  7. package/templates/emdash/.github/workflows/deploy-prod.yml +17 -21
  8. package/templates/emdash/.github/workflows/promote.yml +8 -36
  9. package/templates/emdash/.mcp.json +4 -0
  10. package/templates/emdash/.nvmrc +1 -0
  11. package/templates/emdash/AGENTS.md +47 -0
  12. package/templates/emdash/README.md +4 -0
  13. package/templates/emdash/design-system.json +2 -2
  14. package/templates/emdash/package.json +1 -0
  15. package/templates/emdash/scripts/init-github.mjs +94 -10
  16. package/templates/emdash/src/assets/placeholder/wireframe-400x400.png +0 -0
  17. package/templates/emdash/src/assets/placeholder/wireframe-400x400.svg +1 -0
  18. package/templates/emdash/src/assets/placeholder/wireframe-400x600.png +0 -0
  19. package/templates/emdash/src/assets/placeholder/wireframe-400x600.svg +1 -0
  20. package/templates/emdash/src/assets/placeholder/wireframe-600x400.png +0 -0
  21. package/templates/emdash/src/assets/placeholder/wireframe-600x400.svg +1 -0
  22. package/templates/emdash/vite.config.ts +6 -0
  23. package/templates/static/.env +1 -0
  24. package/templates/static/.github/workflows/ci.yml +12 -0
  25. package/templates/static/.github/workflows/deploy-dev.yml +33 -0
  26. package/templates/static/.github/workflows/deploy-prod.yml +29 -0
  27. package/templates/static/.github/workflows/promote.yml +16 -0
  28. package/templates/static/.nvmrc +1 -0
  29. package/templates/static/AGENTS.md +57 -0
  30. package/templates/static/README.md +85 -0
  31. package/templates/static/_gitignore +24 -0
  32. package/templates/static/astro.config.mjs +19 -0
  33. package/templates/static/design-system.json +148 -0
  34. package/templates/static/package.json +39 -0
  35. package/templates/static/scripts/dev-wrangler-config.mjs +28 -0
  36. package/templates/static/scripts/init-github.mjs +186 -0
  37. package/templates/static/scripts/init-hosting.mjs +62 -0
  38. package/templates/static/src/assets/placeholder/wireframe-400x400.png +0 -0
  39. package/templates/static/src/assets/placeholder/wireframe-400x400.svg +1 -0
  40. package/templates/static/src/assets/placeholder/wireframe-400x600.png +0 -0
  41. package/templates/static/src/assets/placeholder/wireframe-400x600.svg +1 -0
  42. package/templates/static/src/assets/placeholder/wireframe-600x400.png +0 -0
  43. package/templates/static/src/assets/placeholder/wireframe-600x400.svg +1 -0
  44. package/templates/static/src/layouts/Layout.astro +26 -0
  45. package/templates/static/src/pages/404.astro +11 -0
  46. package/templates/static/src/pages/index.astro +13 -0
  47. package/templates/static/tsconfig.json +5 -0
  48. package/templates/static/wrangler.jsonc +15 -0
@@ -0,0 +1,186 @@
1
+ // One-time GitHub bootstrap: creates a GitHub repo named after this project
2
+ // (package.json name), pushes `main` + `dev`, makes `dev` the default branch,
3
+ // and provisions the branch-protection + environment policy the deploy
4
+ // workflows assume (deploy-dev on push to dev, deploy-prod on push to main,
5
+ // promote.yml between them):
6
+ //
7
+ // - `main` requires a PR + the `ci` status check — it only advances via
8
+ // promote.yml, never a direct push.
9
+ // - the `production` GitHub Environment requires review from an admin
10
+ // collaborator before deploy-prod.yml is allowed to run — this is the
11
+ // "promoting to prod needs admin sign-off" gate.
12
+ // - `dev` is left UNPROTECTED on purpose — that's what lets an agent (or
13
+ // anyone with push access) commit and merge there directly for
14
+ // integration; only the promotion to `main` is gated.
15
+ //
16
+ // pnpm run init:github # private repo (default)
17
+ // pnpm run init:github -- --public
18
+ // pnpm run init:github -- --dry-run
19
+ //
20
+ // Idempotent: safe to re-run — existing git repo, commits, dev branch, origin
21
+ // remote, branch protection and environments are all left alone or updated
22
+ // in place. Requires the GitHub CLI (`gh`), logged in (`gh auth login`).
23
+ //
24
+ // NOTE: branch protection and environment required-reviewers are GitHub
25
+ // Pro/Team features on a PRIVATE repo. Each `gh api` call below prints the
26
+ // manual equivalent and continues rather than aborting when it 403s.
27
+
28
+ import { execSync, spawnSync } from 'node:child_process';
29
+ import { readFileSync } from 'node:fs';
30
+
31
+ const args = new Set(process.argv.slice(2));
32
+ const dryRun = args.has('--dry-run');
33
+ const visibility = args.has('--public') ? '--public' : '--private';
34
+
35
+ const repoName = JSON.parse(readFileSync('package.json', 'utf8')).name.replace(/^@[^/]+\//, '');
36
+
37
+ function check(cmd) {
38
+ return spawnSync(cmd[0], cmd.slice(1), { encoding: 'utf8' });
39
+ }
40
+
41
+ function quiet(cmd) {
42
+ try {
43
+ return execSync(cmd, { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();
44
+ } catch {
45
+ return null;
46
+ }
47
+ }
48
+
49
+ function run(cmd) {
50
+ if (dryRun) {
51
+ console.log(`[dry-run] ${cmd}`);
52
+ return;
53
+ }
54
+ console.log(`$ ${cmd}`);
55
+ try {
56
+ execSync(cmd, { stdio: 'inherit' });
57
+ } catch {
58
+ console.error(
59
+ `\nERROR: \`${cmd}\` failed (see output above). Fix and re-run — the script is idempotent.`,
60
+ );
61
+ process.exit(1);
62
+ }
63
+ }
64
+
65
+ /**
66
+ * Like `run`, but for `gh api` calls that provision an org/plan-gated
67
+ * feature (branch protection, environment reviewers). A 403 there means the
68
+ * repo's plan doesn't support it — not that the bootstrap failed — so this
69
+ * prints the manual equivalent and keeps going instead of exiting.
70
+ */
71
+ function runPolicy(cmd, manualHint) {
72
+ if (dryRun) {
73
+ console.log(`[dry-run] ${cmd}`);
74
+ return;
75
+ }
76
+ console.log(`$ ${cmd}`);
77
+ const result = spawnSync(cmd, { shell: true, encoding: 'utf8' });
78
+ if (result.status === 0) return;
79
+ console.warn(
80
+ `\nWARNING: \`${cmd}\` failed (likely needs GitHub Pro/Team on a private repo).\n` +
81
+ `Set it up manually instead:\n ${manualHint}\n`,
82
+ );
83
+ }
84
+
85
+ // --- Preflight: gh installed and authenticated -------------------------------
86
+ if (check(['gh', '--version']).status !== 0) {
87
+ console.error('ERROR: the GitHub CLI (`gh`) is required. Install it from https://cli.github.com');
88
+ process.exit(1);
89
+ }
90
+ if (check(['gh', 'auth', 'status']).status !== 0) {
91
+ console.error('ERROR: `gh` is not logged in. Run `gh auth login` first.');
92
+ process.exit(1);
93
+ }
94
+
95
+ // --- Local git: repo, initial commit, main + dev branches --------------------
96
+ if (quiet('git rev-parse --is-inside-work-tree') === null) {
97
+ run('git init -b main');
98
+ }
99
+ if (quiet('git rev-parse HEAD') === null) {
100
+ run('git add -A');
101
+ run('git commit -m "Initial commit (scaffolded from @getvitops/create)"');
102
+ }
103
+
104
+ // The workflows key off `main`; normalize whatever the initial branch is.
105
+ const branch = quiet('git branch --show-current');
106
+ if (branch && branch !== 'main' && branch !== 'dev') {
107
+ run(`git branch -m ${branch} main`);
108
+ }
109
+ if (quiet('git show-ref --verify refs/heads/dev') === null) {
110
+ run('git branch dev main');
111
+ }
112
+
113
+ // --- GitHub: create repo (same name), push, default to dev -------------------
114
+ if (quiet('git remote get-url origin') === null) {
115
+ run(`gh repo create ${repoName} ${visibility} --source=. --remote=origin`);
116
+ } else {
117
+ console.log('origin remote already set — skipping `gh repo create`.');
118
+ }
119
+ run('git push -u origin main dev');
120
+ run('gh repo edit --default-branch dev');
121
+ run('git checkout dev');
122
+
123
+ // --- Policy: protect main, gate production behind admin review --------------
124
+ const nwo = quiet('gh repo view --json nameWithOwner -q .nameWithOwner');
125
+ if (nwo) {
126
+ runPolicy(
127
+ `gh api -X PUT repos/${nwo}/branches/main/protection --input - <<'JSON'
128
+ {
129
+ "required_status_checks": { "strict": true, "contexts": ["ci"] },
130
+ "enforce_admins": false,
131
+ "required_pull_request_reviews": { "required_approving_review_count": 1 },
132
+ "restrictions": null,
133
+ "allow_force_pushes": false,
134
+ "allow_deletions": false
135
+ }
136
+ JSON`,
137
+ `Settings → Branches → protect 'main' (require a PR, 1 approval, the 'ci' ` +
138
+ `status check, no force-push/deletion).`,
139
+ );
140
+
141
+ const admins = quiet(
142
+ `gh api repos/${nwo}/collaborators?permission=admin -q '[.[].login]' 2>/dev/null`,
143
+ );
144
+ const reviewers = admins
145
+ ? JSON.parse(admins).map((login) => ({ type: 'User', id_or_login: login }))
146
+ : [];
147
+
148
+ runPolicy(
149
+ `gh api -X PUT repos/${nwo}/environments/production --input - <<'JSON'
150
+ {
151
+ "reviewers": ${JSON.stringify(reviewers)},
152
+ "deployment_branch_policy": { "protected_branches": true, "custom_branch_policies": false }
153
+ }
154
+ JSON`,
155
+ `Settings → Environments → 'production' → require reviewers = your admins, ` +
156
+ `restrict deployment branches to 'main'. This is the prod-needs-admin-approval gate.`,
157
+ );
158
+
159
+ // `dev` gets an environment too (for the deploy-dev workflow's `environment:
160
+ // dev` reference), but deliberately no reviewers and no branch restriction —
161
+ // that's what keeps it open for direct pushes/merges.
162
+ runPolicy(
163
+ `gh api -X PUT repos/${nwo}/environments/dev --input - <<'JSON'
164
+ { "reviewers": [] }
165
+ JSON`,
166
+ `Settings → Environments → create 'dev' with no required reviewers.`,
167
+ );
168
+ } else {
169
+ console.warn('WARNING: could not resolve the repo name-with-owner; skipping policy setup.');
170
+ }
171
+
172
+ // --- What's left (manual, needs your Cloudflare account) ---------------------
173
+ console.log(`
174
+ Repo ready: main (protected, production) + dev (integration, default branch).
175
+ NOTE: the first workflow runs will fail until the secrets below exist.
176
+
177
+ Next steps:
178
+ 1. Dev resources: wrangler d1 create ${repoName}-dev (note the printed id)
179
+ wrangler r2 bucket create ${repoName}-media-dev
180
+ 2. Secrets: gh secret set CLOUDFLARE_API_TOKEN
181
+ gh secret set CLOUDFLARE_ACCOUNT_ID
182
+ gh secret set DEV_D1_ID
183
+ 3. Verify policy: Settings → Branches (main protected?) and
184
+ Settings → Environments → production (reviewers set?) —
185
+ printed above if this ran on a plan that supports them.
186
+ `);
@@ -0,0 +1,62 @@
1
+ // One-time hosting-platform setup for this static site.
2
+ //
3
+ // pnpm run init:hosting
4
+ // pnpm run init:hosting -- --dry-run
5
+ //
6
+ // There is no D1/R2 to provision here — a pure static build has no data
7
+ // layer — so this reduces to reading the Cloudflare account id from
8
+ // `wrangler whoami` and, when a GitHub repo is wired up (see
9
+ // init-github.mjs), setting it as a repo secret. The API token itself still
10
+ // has to be created by hand (the CLI can't mint one).
11
+ //
12
+ // Idempotent: safe to re-run. Requires wrangler auth (`npx wrangler login`).
13
+
14
+ import { execSync, spawnSync } from 'node:child_process';
15
+
16
+ const dryRun = process.argv.includes('--dry-run');
17
+
18
+ function quiet(cmd) {
19
+ try {
20
+ return execSync(cmd, { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();
21
+ } catch {
22
+ return null;
23
+ }
24
+ }
25
+
26
+ function run(cmd) {
27
+ if (dryRun) {
28
+ console.log(`[dry-run] ${cmd}`);
29
+ return;
30
+ }
31
+ console.log(`$ ${cmd}`);
32
+ execSync(cmd, { stdio: 'inherit' });
33
+ }
34
+
35
+ const whoami = spawnSync('npx', ['wrangler', 'whoami'], { encoding: 'utf8' });
36
+ if (whoami.status !== 0) {
37
+ console.error('ERROR: wrangler is not logged in. Run `npx wrangler login` first.');
38
+ process.exit(1);
39
+ }
40
+ // "Account Name | <32-hex account id>" table row in `wrangler whoami` output.
41
+ const accountId = (whoami.stdout.match(/\b([0-9a-f]{32})\b/) ?? [])[1] ?? null;
42
+
43
+ const hasGh = spawnSync('gh', ['auth', 'status'], { encoding: 'utf8' }).status === 0;
44
+ const hasOrigin = quiet('git remote get-url origin') !== null;
45
+ if (hasGh && hasOrigin && accountId) {
46
+ run(`gh secret set CLOUDFLARE_ACCOUNT_ID --body ${accountId}`);
47
+ } else {
48
+ console.log(
49
+ '\nSkipping GitHub secret (no gh auth, no origin remote, or no account id — run init:github first).',
50
+ );
51
+ }
52
+
53
+ console.log(`
54
+ Cloudflare account: ${accountId ?? '(not found — check `wrangler whoami`)'}
55
+
56
+ Still manual (CLI can't create API tokens):
57
+ 1. Create a token with Workers edit permission:
58
+ https://dash.cloudflare.com/profile/api-tokens
59
+ 2. gh secret set CLOUDFLARE_API_TOKEN
60
+
61
+ Prod/dev D1/R2 don't apply here — this is a pure static site.
62
+ `);
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"><rect width="100%" height="100%" fill="#DDDDDD"/><path fill="#999999" d="M87.3 204.72h11.66v-12.54q0-1.77.24-3.92zm17.36 0h4.82v3.79q0 .53-.35.91-.34.39-.98.39h-3.49v9.35h-5.7v-9.35H82.79q-.66 0-1.16-.42-.51-.41-.64-1.02l-.69-3.31 18.16-24.25h6.2zm35.59-4.72q0 5.01-1.08 8.71-1.07 3.69-2.97 6.1-1.89 2.42-4.47 3.59-2.59 1.18-5.58 1.18-3 0-5.55-1.18-2.56-1.17-4.44-3.59-1.88-2.41-2.94-6.1-1.06-3.7-1.06-8.71 0-5.03 1.06-8.72 1.06-3.68 2.94-6.09t4.44-3.59q2.55-1.18 5.55-1.18 2.99 0 5.58 1.18 2.58 1.18 4.47 3.59 1.9 2.41 2.97 6.09 1.08 3.69 1.08 8.72m-6.76 0q0-4.16-.61-6.89t-1.63-4.35q-1.02-1.61-2.35-2.26-1.32-.65-2.75-.65-1.41 0-2.72.65t-2.32 2.26q-1 1.62-1.6 4.35t-.6 6.89.6 6.89 1.6 4.35q1.01 1.61 2.32 2.26t2.72.65q1.43 0 2.75-.65 1.33-.65 2.35-2.26 1.02-1.62 1.63-4.35t.61-6.89m37.5 0q0 5.01-1.08 8.71-1.07 3.69-2.97 6.1-1.89 2.42-4.47 3.59-2.59 1.18-5.58 1.18-3 0-5.55-1.18-2.56-1.17-4.44-3.59-1.88-2.41-2.94-6.1-1.06-3.7-1.06-8.71 0-5.03 1.06-8.72 1.06-3.68 2.94-6.09t4.44-3.59q2.55-1.18 5.55-1.18 2.99 0 5.58 1.18 2.58 1.18 4.47 3.59 1.9 2.41 2.97 6.09 1.08 3.69 1.08 8.72m-6.76 0q0-4.16-.61-6.89t-1.63-4.35q-1.02-1.61-2.35-2.26-1.32-.65-2.75-.65-1.41 0-2.72.65t-2.32 2.26q-1 1.62-1.6 4.35t-.6 6.89.6 6.89 1.6 4.35q1.01 1.61 2.32 2.26t2.72.65q1.43 0 2.75-.65 1.33-.65 2.35-2.26 1.02-1.62 1.63-4.35t.61-6.89m48.84 10.39-3.47 3.42-8.99-8.99-9.06 9.04-3.47-3.42 9.06-9.09-8.64-8.64 3.45-3.44 8.64 8.64 8.58-8.59 3.5 3.45-8.61 8.61zm22.95-5.67h11.66v-12.54q0-1.77.24-3.92zm17.35 0h4.83v3.79q0 .53-.35.91-.34.39-.98.39h-3.5v9.35h-5.69v-9.35h-16.17q-.66 0-1.16-.42-.51-.41-.64-1.02l-.69-3.31 18.15-24.25h6.2zm35.59-4.72q0 5.01-1.07 8.71-1.07 3.69-2.97 6.1-1.89 2.42-4.48 3.59-2.58 1.18-5.57 1.18-3 0-5.56-1.18-2.55-1.17-4.43-3.59-1.89-2.41-2.95-6.1-1.06-3.7-1.06-8.71 0-5.03 1.06-8.72 1.06-3.68 2.95-6.09 1.88-2.41 4.43-3.59 2.56-1.18 5.56-1.18 2.99 0 5.57 1.18 2.59 1.18 4.48 3.59 1.9 2.41 2.97 6.09 1.07 3.69 1.07 8.72m-6.75 0q0-4.16-.61-6.89t-1.63-4.35q-1.02-1.61-2.35-2.26-1.32-.65-2.75-.65-1.41 0-2.72.65t-2.32 2.26q-1.01 1.62-1.6 4.35-.6 2.73-.6 6.89t.6 6.89q.59 2.73 1.6 4.35 1.01 1.61 2.32 2.26t2.72.65q1.43 0 2.75-.65 1.33-.65 2.35-2.26 1.02-1.62 1.63-4.35t.61-6.89m37.49 0q0 5.01-1.07 8.71-1.07 3.69-2.97 6.1-1.89 2.42-4.48 3.59-2.58 1.18-5.57 1.18-3 0-5.56-1.18-2.55-1.17-4.43-3.59-1.89-2.41-2.95-6.1-1.06-3.7-1.06-8.71 0-5.03 1.06-8.72 1.06-3.68 2.95-6.09 1.88-2.41 4.43-3.59 2.56-1.18 5.56-1.18 2.99 0 5.57 1.18 2.59 1.18 4.48 3.59 1.9 2.41 2.97 6.09 1.07 3.69 1.07 8.72m-6.75 0q0-4.16-.61-6.89t-1.63-4.35q-1.02-1.61-2.35-2.26-1.32-.65-2.75-.65-1.41 0-2.72.65t-2.32 2.26q-1.01 1.62-1.6 4.35-.6 2.73-.6 6.89t.6 6.89q.59 2.73 1.6 4.35 1.01 1.61 2.32 2.26t2.72.65q1.43 0 2.75-.65 1.33-.65 2.35-2.26 1.02-1.62 1.63-4.35t.61-6.89"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="400" height="600" viewBox="0 0 400 600"><rect width="100%" height="100%" fill="#DDDDDD"/><path fill="#999999" d="M87.3 304.72h11.66v-12.54q0-1.77.24-3.92zm17.36 0h4.82v3.79q0 .53-.35.91-.34.39-.98.39h-3.49v9.35h-5.7v-9.35H82.79q-.66 0-1.16-.42-.51-.41-.64-1.02l-.69-3.31 18.16-24.25h6.2zm35.59-4.72q0 5.01-1.08 8.71-1.07 3.69-2.97 6.1-1.89 2.42-4.47 3.59-2.59 1.18-5.58 1.18-3 0-5.55-1.18-2.56-1.17-4.44-3.59-1.88-2.41-2.94-6.1-1.06-3.7-1.06-8.71 0-5.03 1.06-8.72 1.06-3.68 2.94-6.09t4.44-3.59q2.55-1.18 5.55-1.18 2.99 0 5.58 1.18 2.58 1.18 4.47 3.59 1.9 2.41 2.97 6.09 1.08 3.69 1.08 8.72m-6.76 0q0-4.16-.61-6.89t-1.63-4.35q-1.02-1.61-2.35-2.26-1.32-.65-2.75-.65-1.41 0-2.72.65t-2.32 2.26q-1 1.62-1.6 4.35t-.6 6.89.6 6.89 1.6 4.35q1.01 1.61 2.32 2.26t2.72.65q1.43 0 2.75-.65 1.33-.65 2.35-2.26 1.02-1.62 1.63-4.35t.61-6.89m37.5 0q0 5.01-1.08 8.71-1.07 3.69-2.97 6.1-1.89 2.42-4.47 3.59-2.59 1.18-5.58 1.18-3 0-5.55-1.18-2.56-1.17-4.44-3.59-1.88-2.41-2.94-6.1-1.06-3.7-1.06-8.71 0-5.03 1.06-8.72 1.06-3.68 2.94-6.09t4.44-3.59q2.55-1.18 5.55-1.18 2.99 0 5.58 1.18 2.58 1.18 4.47 3.59 1.9 2.41 2.97 6.09 1.08 3.69 1.08 8.72m-6.76 0q0-4.16-.61-6.89t-1.63-4.35q-1.02-1.61-2.35-2.26-1.32-.65-2.75-.65-1.41 0-2.72.65t-2.32 2.26q-1 1.62-1.6 4.35t-.6 6.89.6 6.89 1.6 4.35q1.01 1.61 2.32 2.26t2.72.65q1.43 0 2.75-.65 1.33-.65 2.35-2.26 1.02-1.62 1.63-4.35t.61-6.89m48.84 10.39-3.47 3.42-8.99-8.99-9.06 9.04-3.47-3.42 9.06-9.09-8.64-8.64 3.45-3.44 8.64 8.64 8.58-8.59 3.5 3.45-8.61 8.61zm40.94-29.55-11.37 13.91-1.32 1.65q1.11-.56 2.4-.86 1.28-.31 2.76-.31 2.18 0 4.23.72 2.05.71 3.62 2.16 1.56 1.44 2.52 3.59.95 2.14.95 5 0 2.68-.98 5.03-.98 2.34-2.76 4.09-1.77 1.75-4.28 2.76-2.5 1-5.52 1-3.08 0-5.51-.98-2.44-.98-4.16-2.74-1.73-1.76-2.64-4.24-.92-2.48-.92-5.5 0-2.7 1.1-5.55t3.41-5.92l9.14-12.27q.48-.64 1.39-1.09.92-.45 2.11-.45zm-9.88 33.39q1.56 0 2.87-.53t2.25-1.48q.94-.96 1.47-2.24.53-1.29.53-2.8 0-1.64-.5-2.95t-1.43-2.23q-.93-.91-2.23-1.39-1.29-.48-2.86-.48-1.56 0-2.83.53-1.28.53-2.18 1.47t-1.4 2.23-.5 2.77q0 1.59.43 2.9.44 1.31 1.3 2.24t2.13 1.44q1.28.52 2.95.52M288.96 300q0 5.01-1.07 8.71-1.07 3.69-2.97 6.1-1.89 2.42-4.48 3.59-2.58 1.18-5.57 1.18-3 0-5.56-1.18-2.55-1.17-4.43-3.59-1.89-2.41-2.95-6.1-1.06-3.7-1.06-8.71 0-5.03 1.06-8.72 1.06-3.68 2.95-6.09 1.88-2.41 4.43-3.59 2.56-1.18 5.56-1.18 2.99 0 5.57 1.18 2.59 1.18 4.48 3.59 1.9 2.41 2.97 6.09 1.07 3.69 1.07 8.72m-6.75 0q0-4.16-.61-6.89t-1.63-4.35q-1.02-1.61-2.35-2.26-1.32-.65-2.75-.65-1.41 0-2.72.65t-2.32 2.26q-1.01 1.62-1.6 4.35-.6 2.73-.6 6.89t.6 6.89q.59 2.73 1.6 4.35 1.01 1.61 2.32 2.26t2.72.65q1.43 0 2.75-.65 1.33-.65 2.35-2.26 1.02-1.62 1.63-4.35t.61-6.89m37.49 0q0 5.01-1.07 8.71-1.07 3.69-2.97 6.1-1.89 2.42-4.48 3.59-2.58 1.18-5.57 1.18-3 0-5.56-1.18-2.55-1.17-4.43-3.59-1.89-2.41-2.95-6.1-1.06-3.7-1.06-8.71 0-5.03 1.06-8.72 1.06-3.68 2.95-6.09 1.88-2.41 4.43-3.59 2.56-1.18 5.56-1.18 2.99 0 5.57 1.18 2.59 1.18 4.48 3.59 1.9 2.41 2.97 6.09 1.07 3.69 1.07 8.72m-6.75 0q0-4.16-.61-6.89t-1.63-4.35q-1.02-1.61-2.35-2.26-1.32-.65-2.75-.65-1.41 0-2.72.65t-2.32 2.26q-1.01 1.62-1.6 4.35-.6 2.73-.6 6.89t.6 6.89q.59 2.73 1.6 4.35 1.01 1.61 2.32 2.26t2.72.65q1.43 0 2.75-.65 1.33-.65 2.35-2.26 1.02-1.62 1.63-4.35t.61-6.89"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="600" height="400" viewBox="0 0 600 400"><rect width="100%" height="100%" fill="#DDDDDD"/><path fill="#999999" d="m155.52 171.08-17.16 21-2 2.48q1.68-.84 3.62-1.3t4.18-.46q3.28 0 6.38 1.08t5.46 3.26 3.8 5.42 1.44 7.56q0 4.04-1.48 7.58t-4.16 6.18-6.46 4.16-8.34 1.52q-4.64 0-8.32-1.48t-6.28-4.14-3.98-6.4-1.38-8.3q0-4.08 1.66-8.38t5.14-8.94l13.8-18.52q.72-.96 2.1-1.64t3.18-.68zm-14.92 50.4q2.36 0 4.34-.8t3.4-2.24 2.22-3.38.8-4.22q0-2.48-.76-4.46t-2.16-3.36-3.36-2.1-4.32-.72-4.28.8-3.28 2.22-2.12 3.36-.76 4.18q0 2.4.66 4.38t1.96 3.38 3.22 2.18 4.44.78M208.28 200q0 7.56-1.62 13.14t-4.48 9.22-6.76 5.42-8.42 1.78-8.38-1.78-6.7-5.42-4.44-9.22-1.6-13.14q0-7.6 1.6-13.16t4.44-9.2 6.7-5.42 8.38-1.78 8.42 1.78 6.76 5.42 4.48 9.2 1.62 13.16m-10.2 0q0-6.28-.92-10.4t-2.46-6.56-3.54-3.42-4.16-.98q-2.12 0-4.1.98t-3.5 3.42-2.42 6.56-.9 10.4.9 10.4 2.42 6.56 3.5 3.42 4.1.98q2.16 0 4.16-.98t3.54-3.42 2.46-6.56.92-10.4m56.6 0q0 7.56-1.62 13.14t-4.48 9.22-6.76 5.42-8.42 1.78-8.38-1.78-6.7-5.42-4.44-9.22-1.6-13.14q0-7.6 1.6-13.16t4.44-9.2 6.7-5.42 8.38-1.78 8.42 1.78 6.76 5.42 4.48 9.2 1.62 13.16m-10.2 0q0-6.28-.92-10.4t-2.46-6.56-3.54-3.42-4.16-.98q-2.12 0-4.1.98t-3.5 3.42-2.42 6.56-.9 10.4.9 10.4 2.42 6.56 3.5 3.42 4.1.98q2.16 0 4.16-.98t3.54-3.42 2.46-6.56.92-10.4m73.72 15.68-5.24 5.16-13.56-13.56-13.68 13.64-5.24-5.16 13.68-13.72L281.12 189l5.2-5.2 13.04 13.04 12.96-12.96 5.28 5.2-13 13zm34.64-8.56h17.6V188.2q0-2.68.36-5.92zm26.2 0h7.28v5.72q0 .8-.52 1.38t-1.48.58h-5.28v14.12h-8.6V214.8h-24.4q-1 0-1.76-.62t-.96-1.54l-1.04-5 27.4-36.6h9.36zm53.72-7.12q0 7.56-1.62 13.14t-4.48 9.22-6.76 5.42-8.42 1.78-8.38-1.78-6.7-5.42-4.44-9.22-1.6-13.14q0-7.6 1.6-13.16t4.44-9.2 6.7-5.42 8.38-1.78 8.42 1.78 6.76 5.42 4.48 9.2 1.62 13.16m-10.2 0q0-6.28-.92-10.4t-2.46-6.56-3.54-3.42-4.16-.98q-2.12 0-4.1.98t-3.5 3.42-2.42 6.56-.9 10.4.9 10.4 2.42 6.56 3.5 3.42 4.1.98q2.16 0 4.16-.98t3.54-3.42 2.46-6.56.92-10.4m56.6 0q0 7.56-1.62 13.14t-4.48 9.22-6.76 5.42-8.42 1.78-8.38-1.78-6.7-5.42-4.44-9.22-1.6-13.14q0-7.6 1.6-13.16t4.44-9.2 6.7-5.42 8.38-1.78 8.42 1.78 6.76 5.42 4.48 9.2 1.62 13.16m-10.2 0q0-6.28-.92-10.4t-2.46-6.56-3.54-3.42-4.16-.98q-2.12 0-4.1.98t-3.5 3.42-2.42 6.56-.9 10.4.9 10.4 2.42 6.56 3.5 3.42 4.1.98q2.16 0 4.16-.98t3.54-3.42 2.46-6.56.92-10.4"/></svg>
@@ -0,0 +1,26 @@
1
+ ---
2
+ import VitopsHead from '@getvitops/astro/Head.astro';
3
+ import Seo from '@getvitops/astro/Seo.astro';
4
+ import '../styles/styles.css';
5
+
6
+ interface Props {
7
+ title?: string;
8
+ description?: string;
9
+ }
10
+
11
+ const { title, description } = Astro.props;
12
+ ---
13
+
14
+ <html lang="en">
15
+ <head>
16
+ <meta charset="utf-8" />
17
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
18
+ <VitopsHead />
19
+ <Seo title={title} description={description} />
20
+ </head>
21
+ <body>
22
+ <main class="centered rhythm">
23
+ <slot />
24
+ </main>
25
+ </body>
26
+ </html>
@@ -0,0 +1,11 @@
1
+ ---
2
+ import Layout from '../layouts/Layout.astro';
3
+ ---
4
+
5
+ <Layout title="Page not found">
6
+ <section class="rhythm">
7
+ <h1>Page not found</h1>
8
+ <p>The page you're looking for doesn't exist.</p>
9
+ <p><a href="/">Back to the home page</a></p>
10
+ </section>
11
+ </Layout>
@@ -0,0 +1,13 @@
1
+ ---
2
+ import Layout from '../layouts/Layout.astro';
3
+ ---
4
+
5
+ <Layout description="Scaffolded with @getvitops/create — a static Astro site with the Vitops design system pre-wired.">
6
+ <section class="rhythm">
7
+ <h1>Welcome</h1>
8
+ <p>
9
+ Edit <code>design-system.json</code> and run <code>pnpm run build:css</code> to regenerate
10
+ the framework CSS, or edit this page directly.
11
+ </p>
12
+ </section>
13
+ </Layout>
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "astro/tsconfigs/strict",
3
+ "include": [".astro/types.d.ts", "**/*"],
4
+ "exclude": ["dist", "public"]
5
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "node_modules/wrangler/config-schema.json",
3
+ "name": "my-static-site",
4
+ "compatibility_date": "2026-02-24",
5
+ // Pure static Astro output — Workers Static Assets, no adapter and no
6
+ // Worker script. This is the whole config: nothing else to provision.
7
+ "assets": {
8
+ "directory": "./dist",
9
+ },
10
+ // Custom domain: uncomment and set your apex. Cloudflare provisions the DNS
11
+ // record + TLS cert on deploy (the zone must already exist in the account).
12
+ // `pnpm run deploy:dev` rewrites this to `dev.<domain>` automatically (see
13
+ // scripts/dev-wrangler-config.mjs) — nothing to change for the dev deploy.
14
+ // "routes": [{ "pattern": "example.com", "custom_domain": true }],
15
+ }