@getvitops/create 0.3.0 → 0.3.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,100 @@
1
+ # @getvitops/create
2
+
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - a334049: Make the semantic icon mapping reachable, and fail the build on unresolvable names.
8
+
9
+ `generateIconInclude()` — declare the semantic icon names a site needs plus which sets to draw
10
+ them from, get back the `include` map that keeps the bundle to just those glyphs — already existed
11
+ but was unreachable: it lived in `@getvitops/core/src/utils/`, which the package doesn't export.
12
+ It has moved to `@getvitops/utils` (a build-time concern, in the build-time utilities package),
13
+ which `@getvitops/astro` re-exports wholesale. So from `astro.config.mjs`:
14
+
15
+ ```js
16
+ import { generateIconInclude } from '@getvitops/astro';
17
+ import icon from 'astro-icon';
18
+
19
+ integrations: [
20
+ icon({
21
+ include: generateIconInclude({
22
+ ui: 'fa7-solid',
23
+ brand: 'simple-icons',
24
+ semantic: ['menu', 'close', 'search', 'github'],
25
+ }),
26
+ }),
27
+ ];
28
+ // → { "fa7-solid": ["bars","xmark","magnifying-glass"], "simple-icons": ["github"] }
29
+ ```
30
+
31
+ Swapping `ui` to `'lucide'` yields `{ lucide: ["menu","x","search"] }` from the same declaration —
32
+ which is the point: the semantic names are what your markup commits to, and the set is a config
33
+ choice. The output shape is the `include` both `astro-icon` and `astro-iconset` accept, so the
34
+ mapping doesn't tie you to either.
35
+
36
+ **Unresolvable names are now a build error.** Previously they were skipped silently, so swapping
37
+ sets appeared to succeed and the gaps surfaced as missing glyphs in production. The error names
38
+ every offender; an unknown set name throws too, listing the known sets.
39
+
40
+ Also fixes `@getvitops/create`'s emdash template, which pinned `@getvitops/astro: ^0.4.0` — a range
41
+ that stopped resolving when astro joined the fixed group at 0.7.0, so scaffolded projects were
42
+ stuck on the old line.
43
+
44
+ ## 0.3.1
45
+
46
+ ### Patch Changes
47
+
48
+ - 44de07f: Shared toolchain version + changelogs that reach consumers.
49
+ - **`@getvitops/astro` now shares the toolchain version** (`core`/`generator`/`utils`/`cli`/`vite`),
50
+ so it moves from its own `0.4.x` line onto the group's. The number changes; the package does not —
51
+ install it at the same version as `@getvitops/cli`. It was already being bumped on every toolchain
52
+ release by its dependency updates, and it depends on core, generator, utils _and_ vite, so a
53
+ separate version line cost the same churn while leaving the compatible pairing implicit. The
54
+ lockstep is load-bearing: the generator ships a snapshot of core's CSS + web-component bundles
55
+ while the Astro integration copies the _installed_ core's bundles, so mismatched versions can leave
56
+ the CSS and the components disagreeing.
57
+
58
+ - **Every package now ships its `CHANGELOG.md` in the published tarball.** npm does not include
59
+ changelogs by default, so none of this history previously reached anyone who installed the
60
+ packages. Per-package history now reads from `node_modules/@getvitops/<pkg>/CHANGELOG.md`;
61
+ curated toolchain-level release notes live in the repo's root `CHANGELOG.md`.
62
+
63
+ ## 0.3.0
64
+
65
+ ### Minor Changes
66
+
67
+ - emdash template: hosting is now a configurable seam — astro.config resolves
68
+ adapter + database/storage via `vitopsHosting()` from `@getvitops/emdash`
69
+ (^0.2.0), documented in the new README "Hosting" section. New
70
+ `pnpm run init:hosting` provisions the platform: on cloudflare it creates the
71
+ isolated dev D1 + R2 via wrangler and sets the `DEV_D1_ID` /
72
+ `CLOUDFLARE_ACCOUNT_ID` repo secrets via `gh` (idempotent, `--dry-run`;
73
+ `--target node` prints the Node-host switch steps). Also preconfigures
74
+ permission allows for the Astro/EmDash docs MCP tools in `.claude/settings.json`.
75
+
76
+ ## 0.2.0
77
+
78
+ ### Minor Changes
79
+
80
+ - emdash template: `pnpm run init:github` — one-time GitHub bootstrap via the
81
+ `gh` CLI. Creates a repo named after the project, makes the initial commit if
82
+ needed, pushes `main` + `dev`, sets `dev` as the default branch, and prints
83
+ the remaining manual steps (dev D1/R2, secrets, branch protection).
84
+ Idempotent, with `--dry-run` and `--public` flags.
85
+
86
+ ## 0.1.0
87
+
88
+ ### Minor Changes
89
+
90
+ - New `@getvitops/create` package: `vp create` org templates for the Vitops
91
+ design system. First template: `emdash` — an EmDash CMS website on Cloudflare
92
+ Workers (D1 + R2) with `@getvitops/astro` (design-system CSS, favicons,
93
+ web-component runtime), `@getvitops/emdash` (editor blocks), and
94
+ `@getvitops/cli` pre-wired, plus a seed with a `pages` collection, menus, and
95
+ starter content — home, about, terms, privacy, 404 (published via the setup
96
+ wizard's "include sample content" option). Ships a dev → main promotion flow
97
+ (auto-deploying `dev`/`main` workflows, a manual promote workflow + matching
98
+ `promote` agent skill, and an isolated dev worker config), the Astro + EmDash
99
+ docs MCP servers in `.mcp.json`, and a Claude Code web hook that provisions
100
+ Node 24 + pnpm. Scaffold with `vp create @getvitops:emdash`.
package/README.md CHANGED
@@ -72,3 +72,10 @@ provisions the D1/R2 resources on first deploy).
72
72
 
73
73
  Template dependencies must use concrete npm ranges (no `workspace:*` /
74
74
  `catalog:` — the scaffolded project lives outside this monorepo).
75
+
76
+ ## Changelog
77
+
78
+ This package's history: [`CHANGELOG.md`](./CHANGELOG.md) (shipped in the npm tarball, so it
79
+ also reads from `node_modules/@getvitops/create/CHANGELOG.md`). This package versions
80
+ independently of the `@getvitops` toolchain (`core`/`generator`/`utils`/`cli`/`vite`/`astro`,
81
+ which share one version).
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@getvitops/create",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Project templates for the Vitops design system — scaffold wired-up sites with `vp create @getvitops`.",
5
5
  "license": "MIT",
6
6
  "files": [
7
- "templates"
7
+ "templates",
8
+ "CHANGELOG.md"
8
9
  ],
9
10
  "type": "module",
10
11
  "publishConfig": {
@@ -19,8 +19,8 @@
19
19
  "@astrojs/cloudflare": "^14.0.0",
20
20
  "@astrojs/react": "^6.0.0",
21
21
  "@emdash-cms/cloudflare": "^0.31.0",
22
- "@getvitops/astro": "^0.4.0",
23
- "@getvitops/emdash": "^0.2.0",
22
+ "@getvitops/astro": "^0.7.0",
23
+ "@getvitops/emdash": "^0.2.1",
24
24
  "astro": "^7.1.2",
25
25
  "emdash": "^0.31.0",
26
26
  "react": "^19.2.4",