@donotdev/cli 0.0.31 → 0.0.33
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/dependencies-matrix.json +10 -11
- package/dist/bin/commands/make-admin.js +90 -90
- package/dist/bin/dndev.js +1 -1
- package/dist/bin/donotdev.js +1 -1
- package/package.json +1 -1
- package/templates/app-next/src/app/ClientLayout.tsx.example +1 -0
- package/templates/app-next/src/locales/home_en.json.example +6 -6
- package/templates/app-next/src/pages/HomePage.tsx.example +1 -1
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
- package/templates/root-consumer/.claude/settings.json.example +6 -0
- package/templates/root-consumer/.claude/statusline.py.example +79 -0
- package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +3 -3
- package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +1 -6
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +252 -252
- package/templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example +174 -174
- package/templates/root-consumer/guides/wai-way/page_patterns.md.example +70 -34
- package/templates/app-demo/stats.html.example +0 -4949
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +0 -50
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: build
|
|
3
|
-
description: Implement features using framework defaults. Use AFTER /design. Activates WAI-WAY Phase 3 COMPOSE.
|
|
4
|
-
argument-hint: [requirement or LLD reference]
|
|
5
|
-
disable-model-invocation: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Build — Compose the App
|
|
9
|
-
|
|
10
|
-
**WORKFLOW:** `/brainstorm` → `/design` → `/build` → `/polish`
|
|
11
|
-
|
|
12
|
-
## Step 0 — Start Phase (MANDATORY)
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
start_phase(3)
|
|
16
|
-
```
|
|
17
|
-
Do NOT write code without this call.
|
|
18
|
-
|
|
19
|
-
## Step 1 — Prepare
|
|
20
|
-
|
|
21
|
-
**Input:** $ARGUMENTS (LLD from `/design` or direct requirement)
|
|
22
|
-
|
|
23
|
-
1. Read LLD if it exists
|
|
24
|
-
2. **STOP before every `@donotdev` import** → call `lookup_symbol({ symbol: "Name" })`. No exceptions. Do NOT guess props, hooks, or APIs.
|
|
25
|
-
3. Import convention: always `@donotdev/<package>` — never sub-paths. Only exceptions: `@donotdev/core/server`, `@donotdev/core/vite`, `@donotdev/core/next`, `@donotdev/core/functions`.
|
|
26
|
-
|
|
27
|
-
## Step 2 — Build in phases
|
|
28
|
-
|
|
29
|
-
1. **Entities** — create entity files
|
|
30
|
-
2. **Routes** — create route config
|
|
31
|
-
3. **Auth** — if needed
|
|
32
|
-
4. **Pages** — using framework defaults only (no styling, no customization)
|
|
33
|
-
5. **Custom components** — if any
|
|
34
|
-
6. **Integration** — wire everything together
|
|
35
|
-
|
|
36
|
-
Rules:
|
|
37
|
-
- Framework defaults ONLY — styling deferred to `/polish`
|
|
38
|
-
- Hardcode all strings — i18n deferred to `/polish`
|
|
39
|
-
- Run `dndev tc` after every file change — fix errors immediately
|
|
40
|
-
- Validate each phase before proceeding
|
|
41
|
-
|
|
42
|
-
## Step 3 — Complete Phase
|
|
43
|
-
|
|
44
|
-
When all pages built and `dndev tc` passes:
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
complete_phase({ files: ["src/pages/...all files..."], summary: "N pages composed, all type-checking" })
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
Wait for user `approve_phase()` → then proceed to `/polish`.
|