@getvitops/create 0.5.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 (46) hide show
  1. package/CHANGELOG.md +13 -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 +4 -0
  12. package/templates/emdash/README.md +4 -0
  13. package/templates/emdash/design-system.json +1 -1
  14. package/templates/emdash/scripts/init-github.mjs +94 -10
  15. package/templates/emdash/src/assets/placeholder/wireframe-400x400.png +0 -0
  16. package/templates/emdash/src/assets/placeholder/wireframe-400x400.svg +1 -0
  17. package/templates/emdash/src/assets/placeholder/wireframe-400x600.png +0 -0
  18. package/templates/emdash/src/assets/placeholder/wireframe-400x600.svg +1 -0
  19. package/templates/emdash/src/assets/placeholder/wireframe-600x400.png +0 -0
  20. package/templates/emdash/src/assets/placeholder/wireframe-600x400.svg +1 -0
  21. package/templates/static/.env +1 -0
  22. package/templates/static/.github/workflows/ci.yml +12 -0
  23. package/templates/static/.github/workflows/deploy-dev.yml +33 -0
  24. package/templates/static/.github/workflows/deploy-prod.yml +29 -0
  25. package/templates/static/.github/workflows/promote.yml +16 -0
  26. package/templates/static/.nvmrc +1 -0
  27. package/templates/static/AGENTS.md +57 -0
  28. package/templates/static/README.md +85 -0
  29. package/templates/static/_gitignore +24 -0
  30. package/templates/static/astro.config.mjs +19 -0
  31. package/templates/static/design-system.json +148 -0
  32. package/templates/static/package.json +39 -0
  33. package/templates/static/scripts/dev-wrangler-config.mjs +28 -0
  34. package/templates/static/scripts/init-github.mjs +186 -0
  35. package/templates/static/scripts/init-hosting.mjs +62 -0
  36. package/templates/static/src/assets/placeholder/wireframe-400x400.png +0 -0
  37. package/templates/static/src/assets/placeholder/wireframe-400x400.svg +1 -0
  38. package/templates/static/src/assets/placeholder/wireframe-400x600.png +0 -0
  39. package/templates/static/src/assets/placeholder/wireframe-400x600.svg +1 -0
  40. package/templates/static/src/assets/placeholder/wireframe-600x400.png +0 -0
  41. package/templates/static/src/assets/placeholder/wireframe-600x400.svg +1 -0
  42. package/templates/static/src/layouts/Layout.astro +26 -0
  43. package/templates/static/src/pages/404.astro +11 -0
  44. package/templates/static/src/pages/index.astro +13 -0
  45. package/templates/static/tsconfig.json +5 -0
  46. package/templates/static/wrangler.jsonc +15 -0
@@ -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
+ }