@homepages/create-workspace 0.9.0-dev-20260719224319 → 0.9.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/dist/index.js CHANGED
@@ -18,12 +18,23 @@ const NAME_RE = /^[a-z][a-z0-9-]*$/;
18
18
  * on fails at `npm install`, not at lint time, so this is not optional.
19
19
  */
20
20
  const ESLINT_PLUGIN_VERSION = "0.1.0";
21
+ /**
22
+ * The CLI's caret pin. Same reasoning as ESLINT_PLUGIN_VERSION: @homepages/template-cli
23
+ * versions independently of the kit, so it cannot be derived from this package's own
24
+ * version and is a committed constant, bumped when that package releases a new minor.
25
+ *
26
+ * It is what supplies the `template-kit` command the scaffolded scripts invoke — the
27
+ * kit no longer carries a bin — so a workspace missing it fails on `npm run dev` with
28
+ * "command not found", which reads as a broken scaffold rather than a missing pin.
29
+ */
30
+ const TEMPLATE_CLI_VERSION = "0.1.0";
21
31
  export async function scaffoldWorkspace(name, targetDir, opts) {
22
32
  await mkdir(targetDir, { recursive: true });
23
33
  await stampTree(join(ASSETS, "workspace"), targetDir, {
24
34
  WORKSPACE_NAME: name,
25
35
  KIT_VERSION: opts.kitVersion,
26
36
  ESLINT_PLUGIN_VERSION: opts.eslintPluginVersion ?? ESLINT_PLUGIN_VERSION,
37
+ TEMPLATE_CLI_VERSION: opts.templateCliVersion ?? TEMPLATE_CLI_VERSION,
27
38
  });
28
39
  await stampTree(join(ASSETS, "template"), join(targetDir, "templates", "starter"), {
29
40
  TEMPLATE_KEY: "starter",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homepages/create-workspace",
3
- "version": "0.9.0-dev-20260719224319",
3
+ "version": "0.9.0",
4
4
  "description": "Scaffold a HomePages template workspace.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -9,9 +9,12 @@ You are authoring HomePages marketing-section templates in this workspace.
9
9
  - **Templates live in `templates/`.** Each is a plain folder — not an npm package.
10
10
  Add one with `npx template-kit new <name>`; add a section with
11
11
  `npx template-kit new-section <name>`.
12
- - **One kit, one version.** `@homepages/template-kit` is the only toolchain
13
- dependency; every template shares it. Do not add per-template `package.json`,
14
- `tsconfig`, or `eslint` files there is exactly one of each, at this root.
12
+ - **One kit, one version.** `@homepages/template-kit` carries the authoring
13
+ contract every template imports; `@homepages/template-cli` provides the
14
+ `template-kit` command and `@homepages/eslint-plugin-template` the lint preset.
15
+ All three are declared once, at this root, and every template shares them. Do not
16
+ add per-template `package.json`, `tsconfig`, or `eslint` files — there is exactly
17
+ one of each, at this root.
15
18
  - **The docs corpus is your whole universe:** `node_modules/@homepages/template-kit/guide/`
16
19
  (`llms.txt` is the router). Read it before authoring; do not guess the contract.
17
20
 
@@ -7,9 +7,12 @@ You are authoring HomePages marketing-section templates in this workspace.
7
7
  - **Templates live in `templates/`.** Each is a plain folder — not an npm package.
8
8
  Add one with `npx template-kit new <name>`; add a section with
9
9
  `npx template-kit new-section <name>`.
10
- - **One kit, one version.** `@homepages/template-kit` is the only toolchain
11
- dependency; every template shares it. Do not add per-template `package.json`,
12
- `tsconfig`, or `eslint` files there is exactly one of each, at this root.
10
+ - **One kit, one version.** `@homepages/template-kit` carries the authoring
11
+ contract every template imports; `@homepages/template-cli` provides the
12
+ `template-kit` command and `@homepages/eslint-plugin-template` the lint preset.
13
+ All three are declared once, at this root, and every template shares them. Do not
14
+ add per-template `package.json`, `tsconfig`, or `eslint` files — there is exactly
15
+ one of each, at this root.
13
16
  - **The docs corpus is your whole universe:** `node_modules/@homepages/template-kit/guide/`
14
17
  (`llms.txt` is the router). Read it before authoring; do not guess the contract.
15
18
 
@@ -1,7 +1,10 @@
1
1
  # {{WORKSPACE_NAME}}
2
2
 
3
- A HomePages template workspace. Templates live in `templates/`. The kit toolchain
4
- is one dependency (`@homepages/template-kit`) shared by every template here.
3
+ A HomePages template workspace. Templates live in `templates/`. The toolchain is
4
+ declared once at this root — `@homepages/template-kit` (the authoring contract),
5
+ `@homepages/template-cli` (the `template-kit` command) and
6
+ `@homepages/eslint-plugin-template` (the lint preset) — and shared by every
7
+ template here.
5
8
 
6
9
  ## Commands
7
10
 
@@ -14,6 +14,7 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@homepages/eslint-plugin-template": "^{{ESLINT_PLUGIN_VERSION}}",
17
+ "@homepages/template-cli": "^{{TEMPLATE_CLI_VERSION}}",
17
18
  "@tailwindcss/cli": "^4.3.0",
18
19
  "@types/react": "^19.0.0",
19
20
  "@types/react-dom": "^19.0.0",