@openelement/create 1.0.0-alpha.11 → 1.0.0-alpha.12

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/README.md CHANGED
@@ -4,10 +4,11 @@ Project scaffolding CLI for openElement applications.
4
4
 
5
5
  Docs and guides: <https://openelement.org>.
6
6
 
7
- > 1.0 Alpha line: the supported creation entry for Element and Router. The
8
- > published npm versions and dist-tags are registry truth (query them with
9
- > `npm view @openelement/create dist-tags`); `latest` stays on the stable 0.43
10
- > line until a separately admitted stable release.
7
+ > 1.0 line: the supported creation entry for Element and Router. The published
8
+ > npm versions and dist-tags are registry truth (query them with
9
+ > `npm view @openelement/create dist-tags`); `latest` rides the 1.0 line since
10
+ > the alpha.11 ruling, so a versionless install resolves the current 1.0
11
+ > prerelease.
11
12
 
12
13
  `@openelement/create` generates a new openElement project from ONE template —
13
14
  the showcase starter: a static-first landing page with two islands, a fully
@@ -18,7 +19,7 @@ Node/pnpm project.
18
19
  ## Usage (1.0 Alpha)
19
20
 
20
21
  ```bash
21
- npm create @openelement@alpha my-app
22
+ npm create @openelement my-app
22
23
  ```
23
24
 
24
25
  The CLI scaffolds, initializes git (when git is available), detects a package
@@ -37,20 +38,21 @@ accepts the default). Non-interactive runs (CI, packed consumers) skip the
37
38
  prompt and take the defaults; pass `-t` to pin the template explicitly.
38
39
 
39
40
  ```bash
40
- npx @openelement/create@alpha my-app --no-install --no-git -t showcase
41
+ npx @openelement/create my-app --no-install --no-git -t showcase
41
42
  ```
42
43
 
43
- `npm create @openelement@alpha` rides npm's initializer alias: a bare `@scope`
44
- resolves to `@scope/create` at the same tag, so the canonical spelling names
45
- the scope, and npm runs this package's generator. The version `@alpha` resolves
46
- to is registered in
47
- `the tracked release-state manifest` (currently `1.0.0-alpha.10`, a new baseline —
44
+ `npm create @openelement` rides npm's initializer alias: a bare `@scope`
45
+ resolves to `@scope/create` at the scope's default dist-tag — with no tag in
46
+ the command, that is `latest`, which the 1.0 line rides — so the canonical
47
+ spelling names no tag, and npm runs this package's generator. The version a
48
+ versionless install resolves is registered in
49
+ `the tracked release-state manifest` (currently `1.0.0-alpha.11`, a new baseline —
48
50
  not a 0.x upgrade, with no migration path from 0.x). Pin that exact version
49
51
  when reproducibility matters (verify against the live registry with
50
- `npm view @openelement/create dist-tags.alpha`):
52
+ `npm view @openelement/create dist-tags`):
51
53
 
52
54
  ```bash
53
- npm create @openelement@1.0.0-alpha.10 my-app
55
+ npm create @openelement@1.0.0-alpha.11 my-app
54
56
  ```
55
57
 
56
58
  The generated starter pins the exact `@openelement/*` versions it was built
@@ -68,8 +70,8 @@ generated project. The packed package ships two equivalent npm bins
68
70
  form must name one explicitly:
69
71
 
70
72
  ```bash
71
- npx @openelement/create@alpha my-app
72
- pnpm dlx --package=@openelement/create@alpha openelement-create my-app
73
+ npx @openelement/create my-app
74
+ pnpm dlx --package=@openelement/create openelement-create my-app
73
75
  ```
74
76
 
75
77
  The scaffolded project itself is Node-native: Node.js 24.2+ and
@@ -77,9 +79,9 @@ pnpm run its scripts.
77
79
 
78
80
  ## Stable 0.43 (maintenance line)
79
81
 
80
- The stable 0.43 line is still published, but it is not the Alpha install path.
81
- A versionless install resolves the npm `latest` dist-tag to it; pin the line
82
- explicitly instead:
82
+ The stable 0.43 line is still published, but it is not the 1.0 install path.
83
+ A versionless install resolves the npm `latest` dist-tag to the 1.0 line; pin
84
+ the maintenance line explicitly instead:
83
85
 
84
86
  ```bash
85
87
  npm create @openelement@0.43 my-app
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openelement/create",
3
- "version": "1.0.0-alpha.11",
3
+ "version": "1.0.0-alpha.12",
4
4
  "type": "module",
5
5
  "main": "./src/cli.js",
6
6
  "types": "./src/cli.d.ts",
package/src/cli.js CHANGED
@@ -118,7 +118,7 @@ function parseArgs(argv) {
118
118
  }
119
119
  function printUsage() {
120
120
  console.log(`Usage (Alpha): ${createInstallCommand()}`);
121
- console.log("(a versionless install resolves the stable 0.43 line)");
121
+ console.log("(a versionless install resolves latest — the current 1.0 line)");
122
122
  console.log(` -t, --template <name> scaffold template (default: ${TEMPLATE_NAME})`);
123
123
  console.log(" --install / --no-install");
124
124
  console.log(" install dependencies after scaffolding (default: install)");
@@ -18,24 +18,32 @@ export declare const CREATE_PACKAGE_SPECIFIER = "@openelement/create";
18
18
  /**
19
19
  * The scope `npm create` resolves to {@linkcode CREATE_PACKAGE_SPECIFIER}:
20
20
  * npm's initializer alias maps a bare `@scope` (optionally `@scope@<tag>`) to
21
- * `@scope/create` at the same tag, so the canonical spelling never repeats the
22
- * `/create` suffix (owner-verified against npm's init alias rules).
21
+ * `@scope/create` at the same tag — untagged, at the scope's default dist-tag
22
+ * — so the canonical spelling never repeats the `/create` suffix
23
+ * (owner-verified against npm's init alias rules).
23
24
  */
24
25
  export declare const CREATE_NPM_CREATE_SCOPE = "@openelement";
25
- /** The dist-tag the documented install resolves; the exact version is registry truth. */
26
- export declare const CREATE_INSTALL_TAG = "alpha";
26
+ /**
27
+ * The dist-tag a versionless documented install resolves: npm's scope alias
28
+ * defaults to `latest`, which the 1.0 line rides since the alpha.11 ruling.
29
+ * The exact version is registry truth; the canonical spelling names no tag.
30
+ */
31
+ export declare const CREATE_INSTALL_TAG = "latest";
27
32
  /** Placeholder the usage text and the docs use in place of a project name. */
28
33
  export declare const CREATE_PROJECT_PLACEHOLDER = "<project-name>";
29
34
  /**
30
35
  * The documented install command shapes, all verified against the published
31
36
  * two-bin artifact (bins `openelement-create` and `create-openelement`, both
32
37
  * `src/cli.js`; npm 11 / pnpm 12):
33
- * - canonical: `npm create @openelement@<tag> <name>` — npm's `@scope`
34
- * initializer alias resolves it to `@openelement/create@<tag>` (#1507
35
- * revision, 2026-10-05; the former canonical `npm exec <pkg>@<tag> -- <name>`
36
- * remains a verified spelling through the same artifact)
37
- * - short form: `npx <pkg>@<tag> <name>`
38
- * - pnpm: `pnpm dlx --package=<pkg>@<tag> openelement-create <name>` — the
38
+ * - canonical: `npm create @openelement <name>` — versionless, so npm's
39
+ * `@scope` initializer alias resolves it to `@openelement/create` at the
40
+ * scope's default dist-tag `latest`, which the 1.0 line rides (the
41
+ * alpha.11 latest ruling). An explicit `@<tag>` remains a verified
42
+ * spelling for channel-specific copies (pins and other channels); the
43
+ * former canonical `npm exec <pkg>@<tag> -- <name>` remains a verified
44
+ * spelling through the same artifact (#1507 revision, 2026-10-05)
45
+ * - short form: `npx <pkg> <name>` (untagged resolves `latest`)
46
+ * - pnpm: `pnpm dlx --package=<pkg> openelement-create <name>` — the
39
47
  * explicit `--package` plus bin is required because the packed package
40
48
  * ships two bins, so a bare `pnpm dlx <pkg>` cannot resolve one (and no
41
49
  * package named `create-openelement` exists on the registry).
@@ -18,24 +18,32 @@ const CREATE_PACKAGE_SPECIFIER = "@openelement/create";
18
18
  /**
19
19
  * The scope `npm create` resolves to {@linkcode CREATE_PACKAGE_SPECIFIER}:
20
20
  * npm's initializer alias maps a bare `@scope` (optionally `@scope@<tag>`) to
21
- * `@scope/create` at the same tag, so the canonical spelling never repeats the
22
- * `/create` suffix (owner-verified against npm's init alias rules).
21
+ * `@scope/create` at the same tag — untagged, at the scope's default dist-tag
22
+ * — so the canonical spelling never repeats the `/create` suffix
23
+ * (owner-verified against npm's init alias rules).
23
24
  */
24
25
  const CREATE_NPM_CREATE_SCOPE = "@openelement";
25
- /** The dist-tag the documented install resolves; the exact version is registry truth. */
26
- const CREATE_INSTALL_TAG = "alpha";
26
+ /**
27
+ * The dist-tag a versionless documented install resolves: npm's scope alias
28
+ * defaults to `latest`, which the 1.0 line rides since the alpha.11 ruling.
29
+ * The exact version is registry truth; the canonical spelling names no tag.
30
+ */
31
+ const CREATE_INSTALL_TAG = "latest";
27
32
  /** Placeholder the usage text and the docs use in place of a project name. */
28
33
  const CREATE_PROJECT_PLACEHOLDER = "<project-name>";
29
34
  /**
30
35
  * The documented install command shapes, all verified against the published
31
36
  * two-bin artifact (bins `openelement-create` and `create-openelement`, both
32
37
  * `src/cli.js`; npm 11 / pnpm 12):
33
- * - canonical: `npm create @openelement@<tag> <name>` — npm's `@scope`
34
- * initializer alias resolves it to `@openelement/create@<tag>` (#1507
35
- * revision, 2026-10-05; the former canonical `npm exec <pkg>@<tag> -- <name>`
36
- * remains a verified spelling through the same artifact)
37
- * - short form: `npx <pkg>@<tag> <name>`
38
- * - pnpm: `pnpm dlx --package=<pkg>@<tag> openelement-create <name>` — the
38
+ * - canonical: `npm create @openelement <name>` — versionless, so npm's
39
+ * `@scope` initializer alias resolves it to `@openelement/create` at the
40
+ * scope's default dist-tag `latest`, which the 1.0 line rides (the
41
+ * alpha.11 latest ruling). An explicit `@<tag>` remains a verified
42
+ * spelling for channel-specific copies (pins and other channels); the
43
+ * former canonical `npm exec <pkg>@<tag> -- <name>` remains a verified
44
+ * spelling through the same artifact (#1507 revision, 2026-10-05)
45
+ * - short form: `npx <pkg> <name>` (untagged resolves `latest`)
46
+ * - pnpm: `pnpm dlx --package=<pkg> openelement-create <name>` — the
39
47
  * explicit `--package` plus bin is required because the packed package
40
48
  * ships two bins, so a bare `pnpm dlx <pkg>` cannot resolve one (and no
41
49
  * package named `create-openelement` exists on the registry).
@@ -45,8 +53,7 @@ const CREATE_PROJECT_PLACEHOLDER = "<project-name>";
45
53
  * invoked through plain Node tooling.
46
54
  */
47
55
  function createInstallCommand(projectName = CREATE_PROJECT_PLACEHOLDER, options = {}) {
48
- const tag = options.tag ?? "alpha";
49
- return `npm create ${CREATE_NPM_CREATE_SCOPE}@${tag} ${projectName}`;
56
+ return `npm create ${options.tag === void 0 ? CREATE_NPM_CREATE_SCOPE : `${CREATE_NPM_CREATE_SCOPE}@${options.tag}`} ${projectName}`;
50
57
  }
51
58
  //#endregion
52
59
  export { CREATE_INSTALL_TAG, CREATE_NPM_CREATE_SCOPE, CREATE_PACKAGE_SPECIFIER, CREATE_PROJECT_PLACEHOLDER, createInstallCommand };
package/src/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  //#region src/version.ts
2
2
  /** The published CLI version, embedded so packed npm installs are self-contained. */
3
- const CREATE_VERSION = "1.0.0-alpha.11";
3
+ const CREATE_VERSION = "1.0.0-alpha.12";
4
4
  /**
5
5
  * The Vite release pinned into the generated starter's package.json (the
6
6
  * `${v.vite}` scaffold token in the npm/pnpm starter). Embedded for the same
@@ -1,7 +1,7 @@
1
1
  # openElement Showcase
2
2
 
3
3
  Generated by [`@openelement/create`](https://www.npmjs.com/package/@openelement/create) —
4
- scaffold it elsewhere with `npm create @openelement@1.0.0-alpha.10 <project-name>` —
4
+ scaffold it elsewhere with `npm create @openelement <project-name>` —
5
5
  a static-first openElement app that shows its own costs. The landing page
6
6
  carries two islands (`my-counter`, an interactive counter, and `live-timer`,
7
7
  a client-only elapsed-time readout); every other page, including `/about`,
@@ -1,6 +1,9 @@
1
1
 
2
2
  :host { display: inline-block; }
3
3
  .timer-row { display: inline-flex; gap: 0.6rem; align-items: baseline; }
4
- .value { min-width: 6ch; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.4rem; color: var(--brand); }
4
+ /* #1582: the selector names the id the class renders (#elapsed) — a
5
+ `.value` selector matched nothing, so the clock lost its brand color
6
+ and tabular figures. */
7
+ #elapsed { min-width: 6ch; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.4rem; color: var(--brand); }
5
8
  .unit { color: var(--ink-soft); font-size: 0.85rem; }
6
9
 
@@ -10,9 +10,10 @@
10
10
  component sheets use, each seated on a role so the dark and
11
11
  forced-colors pairs below apply everywhere.
12
12
 
13
- `pnpm dev` serves this file directly (the #1558 authored-sheet path); the
14
- build compiles it through the router's Tailwind preset into the linked,
15
- layer-ordered bundle.
13
+ `pnpm dev` and the build both compile this file through the router's
14
+ Tailwind preset: dev serves the compile from
15
+ /.openElement/tailwind-preset/entry.css and links it in the document head,
16
+ the build emits the same compile as the layer-ordered linked bundle.
16
17
  ═══════════════════════════════════════════════════════════════════════ */
17
18
 
18
19
  @theme {
@@ -158,7 +159,11 @@ body {
158
159
  }
159
160
 
160
161
  /* Automatic dark for the starter palette (no runtime): the role sheet's
161
- data-theme pairs above cover runtime-toggled themes. */
162
+ data-theme pairs above cover runtime-toggled themes. The --brand pair joins
163
+ the dark side here (#1582): the light violet-700 reads ≈2.8:1 on zinc-950,
164
+ so the alias pair mirrors the data-theme dark roles (violet-400 on
165
+ violet-950 ink — 6.98:1 / 5.36:1), and the referenced soft/ok aliases take
166
+ the dark secondary surface instead of the light violet-100. */
162
167
  @media (prefers-color-scheme: dark) {
163
168
  :root {
164
169
  --paper: var(--color-zinc-950);
@@ -166,5 +171,9 @@ body {
166
171
  --ink: var(--color-zinc-50);
167
172
  --ink-soft: var(--color-zinc-400);
168
173
  --line: var(--color-zinc-800);
174
+ --brand: var(--color-violet-400);
175
+ --brand-ink: var(--color-violet-950);
176
+ --brand-soft: var(--color-zinc-800);
177
+ --ok: var(--color-zinc-800);
169
178
  }
170
179
  }
@@ -2,8 +2,9 @@
2
2
  //
3
3
  // Every option below is OPTIONAL. With an empty object, options come from the
4
4
  // file conventions:
5
- // - design tokens: app/styles/theme.css (the @theme role sheet; dev serves
6
- // it directly, the build compiles it through the `tailwind` key below)
5
+ // - design tokens: app/styles/theme.css (the @theme role sheet; dev compiles
6
+ // it through the `tailwind` key below and serves the result as a linked
7
+ // sheet, the build emits the same compile as /assets/open-tailwind.css)
7
8
  // - app shell: app/islands/app-shell.tsx (auto-registered; the file is
8
9
  // deletable and pages still render)
9
10
  // - document head: app/head.tsx (structural head content: meta tags, font
@@ -23,11 +24,12 @@ import { defineConfig } from '@openelement/router';
23
24
 
24
25
  export default defineConfig({
25
26
  // The Tailwind preset — the single-default scaffold form. The roles in
26
- // app/styles/theme.css compile into the preset's linked, layer-ordered
27
- // bundle (/assets/open-tailwind.css) after the SSG render; the path climbs
28
- // out of the preset's build-time staging entry (.openElement/
29
- // tailwind-preset/), the file the @import resolves from. `pnpm dev` serves
30
- // the authored sheet directly.
27
+ // app/styles/theme.css compile into the preset's deliverable both ways: dev
28
+ // serves the compile from /.openElement/tailwind-preset/entry.css and links
29
+ // it in the document head, the build emits the same compile as the
30
+ // layer-ordered /assets/open-tailwind.css after the SSG render. The path
31
+ // climbs out of the preset's staging entry (.openElement/tailwind-preset/),
32
+ // the file the @import resolves from.
31
33
  tailwind: { theme: ['../../app/styles/theme.css'] },
32
34
  head: {
33
35
  // Titles default to the package.json "name"; this overrides the document