@milesroxas/create-design-hub 0.6.2 → 0.7.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/package.json +2 -2
- package/template/.env.example +6 -7
- package/template/AGENTS.md +2 -2
- package/template/README.md +1 -1
- package/template/proxy.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milesroxas/create-design-hub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Create a Design Hub project: the thin folder of prototypes, kit materials and docs that installs the @milesroxas/design-hub package. Runs as `npm create @milesroxas/design-hub`.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
],
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@biomejs/biome": "2.6.3",
|
|
35
|
-
"@milesroxas/design-hub": "0.
|
|
35
|
+
"@milesroxas/design-hub": "0.7.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"check": "biome check --config-path ../design-hub/configs/biome .",
|
package/template/.env.example
CHANGED
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
# machine at the time. Never commit .env.
|
|
3
3
|
PORT=
|
|
4
4
|
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
#
|
|
9
|
-
|
|
10
|
-
#
|
|
11
|
-
# session cookie so a password guess cannot be turned into a forged cookie.
|
|
5
|
+
# The gate for the deployed prototypes (proxy.ts). Each person signs in with
|
|
6
|
+
# their own one-time link; this secret signs their session cookie. Set it in the
|
|
7
|
+
# Vercel project's Environment Variables for Production and Preview; `pnpm
|
|
8
|
+
# bootstrap --vercel <project>` does it. Never commit it, never send it.
|
|
9
|
+
# GATE_SECRET: 32+ random bytes, base64 or hex (openssl rand -base64 32).
|
|
10
|
+
# Replacing it signs everyone out.
|
|
12
11
|
GATE_SECRET=
|
|
13
12
|
|
|
14
13
|
# Optional: TypeSafe's Jev checks (the fidelity guard, the pre-flight, comment
|
package/template/AGENTS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The contract for every coding agent in this project (Claude, Codex, Cursor, others). `CLAUDE.md` points here.
|
|
4
4
|
|
|
5
|
-
This project holds prototypes, the materials they are drawn with, and the documents around them. Its tracks, in `.design-hub/project.json`, say what kind of engagement it is: **product** (app screens, handed to the client's engineers as a spec), **website** (pages on a CMS: Webflow, Payload, WordPress or EmDash), **brand** (collateral: social posts, slides, print), or any mix. Read it before starting work; `pnpm tracks` prints it. The hub that lists and serves them, the review panel, the
|
|
5
|
+
This project holds prototypes, the materials they are drawn with, and the documents around them. Its tracks, in `.design-hub/project.json`, say what kind of engagement it is: **product** (app screens, handed to the client's engineers as a spec), **website** (pages on a CMS: Webflow, Payload, WordPress or EmDash), **brand** (collateral: social posts, slides, print), or any mix. Read it before starting work; `pnpm tracks` prints it. The hub that lists and serves them, the review panel, the sign-in gate and the `design-hub` command are the `@milesroxas/design-hub` package in `node_modules`: never edit it, never read it to do prototype work. Everything an agent touches is in this folder.
|
|
6
6
|
|
|
7
7
|
## Why it works this way
|
|
8
8
|
|
|
@@ -134,7 +134,7 @@ The `miles-*` skills in `.claude/skills/` come from the `@milesroxas/design-hub`
|
|
|
134
134
|
| `miles-new-feature` | Starting a feature or a prototype: the folder, the README, `docs/sprints/<feature>/`. |
|
|
135
135
|
| `miles-get-hostile` | Writing `fixtures.json` or deciding what an edge case looks like. |
|
|
136
136
|
| `miles-paper-to-prototype` | Every Paper MCP read. Maps Paper output onto the kit's tokens and components. |
|
|
137
|
-
| `miles-deploy` | Deploying, sharing or updating the link, signing in to Vercel,
|
|
137
|
+
| `miles-deploy` | Deploying, sharing or updating the link, signing in to Vercel, adding people and sending each their sign-in link, a new link for another device, how long access lasts, turning on comments, checking the work before any of those. The user never types these commands: run them and send any link they must click. |
|
|
138
138
|
| `miles-review` | Comments from the deployed prototypes, and who may comment. |
|
|
139
139
|
| `miles-port` | Turning an approved prototype into production. |
|
|
140
140
|
| `miles-brand` | Brand collateral: social posts, slides, print; artboards, formats and export. |
|
package/template/README.md
CHANGED
|
@@ -19,6 +19,6 @@ Not a developer? The [guide](https://github.com/milesroxas/design-hub/tree/main/
|
|
|
19
19
|
| `DESIGN.md`, `PRODUCT.md` | The recorded design system and who the product is for. |
|
|
20
20
|
| `.claude/` | Claude Code hooks and the `miles-*` skills (`pnpm skills` refreshes them from the package and adds any script they need). |
|
|
21
21
|
|
|
22
|
-
The rules for people and agents are in [AGENTS.md](AGENTS.md). Sharing a link,
|
|
22
|
+
The rules for people and agents are in [AGENTS.md](AGENTS.md). Sharing a link, who can sign in and review comments: ask Claude to share, add someone or turn on comments (the `miles-deploy` and `miles-review` skills run every command), or `pnpm commands` for every command.
|
|
23
23
|
|
|
24
24
|
Design Hub upgrades itself when a Claude Code session starts here. To upgrade by hand: `pnpm exec design-hub upgrade`. To turn the automatic upgrade off: `DESIGN_HUB_AUTO_UPDATE=0` in `.env`.
|
package/template/proxy.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The
|
|
1
|
+
// The sign-in gate in front of every deployed path (vercel.json, proxy.entrypoint).
|
|
2
2
|
import { createProxy } from '@milesroxas/design-hub/vercel';
|
|
3
3
|
|
|
4
4
|
export default createProxy({ siteName: 'Prototypes' });
|