Skip to content

Commit c8ec8bb

Browse files
examples: complete WP8.2 - examples/web with Next.js 14 blueprint demo
Created comprehensive Next.js 14 example application (~800 lines, 15 files): Application Structure: - README.md (~400 lines) * Comprehensive setup and usage guide * 10-step workflow walkthrough * Testing instructions * Troubleshooting section * Quick start in <5 commands Configuration Files: - package.json (Next.js 14, TypeScript, Jest, Testing Library) - tsconfig.json (strict TypeScript configuration) - next.config.js (Next.js configuration) - .eslintrc.json (ESLint rules) - jest.config.js + jest.setup.js (Jest configuration) - .gitignore (standard Next.js gitignore) Source Files: - src/app/layout.tsx (root layout with metadata) - src/app/page.tsx (demo home page with documentation links) - src/app/globals.css (professional responsive design) - src/app/__tests__/page.test.tsx (example Jest test) Example Data: - plan.json (5-task Todo app plan with dependencies) * Task 1: Project structure * Task 2: Data model (dependency for tasks 3-5) * Task 3: List UI (depends on task 2) * Task 4: CRUD operations (depends on tasks 2, 3) * Task 5: Filtering (depends on tasks 2, 3, 4) - test-data/example-issue.json (sample issue format from workflow) - test-data/example-pr.json (sample PR format from workflow) Features: ✅ Works out of the box (`pnpm install && pnpm dev`) ✅ All quality checks pass (lint, type-check, test, build) ✅ Pre-configured for blueprint workflows ✅ Comprehensive README with step-by-step guide ✅ Example plan demonstrates dependencies ✅ Professional UI with responsive design ✅ Clear learning path for new users Quality Checks: - pnpm run lint ✅ (ESLint validation) - pnpm run type-check ✅ (TypeScript strict) - pnpm run test ✅ (Jest with React Testing Library) - pnpm run build ✅ (Production build) Progress Update: - Phase 3: 80% → 87% complete (12/15 → 13/15 deliverables) - WP8: 25% → 50% complete (1/4 → 2/4 deliverables) - ✅ scenarios.md (~1,100 lines) - ✅ examples/web (~800 lines, 15 files) - ⏳ examples/mobile (next) - ⏳ examples/fullstack Also updated: - .gitignore (removed examples/ exclusion to include new examples) 🎯 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7c93ebb commit c8ec8bb

18 files changed

Lines changed: 1129 additions & 38 deletions

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
examples/
21
anthropics-claude-code-gh-actions.md
32
claude-code-github-document.md
43
gh-workflow-master-instructions.md

.phase3-state.md

Lines changed: 53 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Phase 3 Implementation State
22

33
**Date**: 2025-11-06
4-
**Status**: In Progress (80% Complete)
4+
**Status**: In Progress (87% Complete)
55

66
---
77

@@ -12,9 +12,9 @@
1212
### Implementation Progress
1313
- **Phase 1**: ✅ 100% Complete (19 files, 3,342 lines) - Workflows + Composites + Templates
1414
- **Phase 2**: ✅ 100% Complete (12 files, 8,738 lines) - Slash Commands + Agents
15-
- **Phase 3**: 🟡 80% Complete (12/15 deliverables, ~13,200 lines documented)
15+
- **Phase 3**: 🟡 87% Complete (13/15 deliverables, ~14,000 lines documented)
1616

17-
**Total**: 35 core files + 10 docs + 10 setup files + 1 test doc = 56 deliverables (~25,400 lines)
17+
**Total**: 35 core files + 10 docs + 10 setup files + 1 test doc + 1 web example = 57 deliverables (~26,200 lines)
1818

1919
---
2020

@@ -237,9 +237,9 @@
237237
- Exit code 0 (success) or 1 (failure) for CI integration
238238
- Summary report with statistics
239239

240-
### Session 9 - Testing Scenarios (1/4 deliverables) ✅ STARTED
240+
### Session 9 - Testing Scenarios (1/4 deliverables) ✅
241241

242-
**Commit [current]** - Test Scenarios:
242+
**Commit e83dc1b** - Test Scenarios:
243243

244244
17. **tests/scenarios.md** (COMPLETE - ~1,100 lines)
245245
- Comprehensive end-to-end test scenarios document
@@ -265,15 +265,46 @@
265265
- Test summary template
266266
- Certification section
267267

268+
### Session 10 - Web Example (2/4 deliverables) ✅
269+
270+
**Commit [current]** - Web Example:
271+
272+
18. **examples/web/** (COMPLETE - ~800 lines)
273+
- Minimal working Next.js 14 application with blueprint pre-configured
274+
- Complete application files:
275+
* README.md (~400 lines - comprehensive setup and usage guide)
276+
* package.json (Next.js 14, TypeScript, Jest, Testing Library)
277+
* tsconfig.json (TypeScript strict configuration)
278+
* next.config.js (Next.js configuration)
279+
* .gitignore (standard Next.js gitignore)
280+
* .eslintrc.json (ESLint configuration)
281+
* jest.config.js + jest.setup.js (Jest configuration)
282+
- Source files:
283+
* src/app/layout.tsx (root layout with metadata)
284+
* src/app/page.tsx (home page with demo content)
285+
* src/app/globals.css (global styles)
286+
* src/app/__tests__/page.test.tsx (example test)
287+
- Example data:
288+
* plan.json (5-task Todo app plan with dependencies)
289+
* test-data/example-issue.json (sample issue format)
290+
* test-data/example-pr.json (sample PR format)
291+
- Features:
292+
* Works out of the box (`pnpm install && pnpm dev`)
293+
* All quality checks pass (lint, type-check, test, build)
294+
* Pre-configured for blueprint workflows
295+
* Comprehensive README with 10-step workflow guide
296+
* Sample plan demonstrates dependencies and priorities
297+
* Professional UI with responsive design
298+
268299
---
269300

270301
## Remaining Phase 3 Work
271302

272303
### WP6: Core Documentation ✅ COMPLETE (8/8 files)
273304
### WP7: Setup Automation ✅ COMPLETE (10 files: 1 wizard + 6 configs + 1 validator)
274-
### WP8: Testing & Examples 🟡 25% COMPLETE (1/4 deliverables)
305+
### WP8: Testing & Examples 🟡 50% COMPLETE (2/4 deliverables)
275306
- ✅ tests/scenarios.md - 8 end-to-end test scenarios (~1,100 lines)
276-
- examples/web/ - Minimal Next.js example with blueprint
307+
- examples/web/ - Minimal Next.js example (~800 lines)
277308
- ⏳ examples/mobile/ - Minimal Expo/React Native example
278309
- ⏳ examples/fullstack/ - Minimal MERN stack example
279310

@@ -364,35 +395,35 @@ CLAUDE.md ✅ (updated)
364395
**🎉 WP6 (Core Documentation) COMPLETE!**
365396
**🎉 WP7 (Setup Automation) COMPLETE!**
366397
**🎉 scenarios.md COMPLETE!**
398+
**🎉 examples/web/ COMPLETE!**
367399

368-
**Continue WP8: Testing & Examples** (3 remaining deliverables - 2-3 hours)
400+
**Continue WP8: Testing & Examples** (2 remaining deliverables - 1-2 hours)
369401

370-
**Next Deliverable**: `examples/web/` - Minimal Next.js example
402+
**Next Deliverable**: `examples/mobile/` - Minimal Expo/React Native example
371403

372404
**Structure**:
373405
```
374-
examples/web/
406+
examples/mobile/
375407
├── README.md (setup and usage instructions)
376-
├── package.json (Next.js 14+ with TypeScript)
408+
├── package.json (Expo SDK 50+)
409+
├── app.json (Expo configuration)
410+
├── App.tsx (main app component)
377411
├── src/
378-
│ └── app/
379-
│ ├── page.tsx (simple home page)
380-
│ └── layout.tsx
381-
├── .github/ (blueprint workflows - copied)
382-
├── plan.json (example 5-task plan)
383-
├── .gitignore
412+
│ ├── screens/ (example screens)
413+
│ └── components/ (shared components)
414+
├── plan.json (example 5-task mobile plan)
384415
└── test-data/
385416
├── example-issue.json
386417
└── example-pr.json
387418
```
388419

389420
**Requirements**:
390-
- Minimal working Next.js app
421+
- Minimal working Expo app
391422
- Pre-configured with blueprint workflows
392-
- Example plan with 5 realistic tasks
393-
- Works out of the box (`pnpm install && pnpm dev`)
394-
- Clear README with setup steps
395-
- Sample test data for demonstrations
423+
- Example plan with 5 mobile-specific tasks
424+
- Works with Expo Go (`pnpm start`)
425+
- Clear README with mobile-specific setup
426+
- Sample test data
396427

397428
**Estimated**: 1 hour
398429

CLAUDE.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ claudecode-github-bluprint/
194194
---
195195

196196
### **Phase 3: Documentation & Polish** (Week 3)
197-
**Status**: 🟡 In Progress (80% Complete - 12/15 deliverables)
197+
**Status**: 🟡 In Progress (87% Complete - 13/15 deliverables)
198198

199199
**Detailed Work Plan**: See `docs/PHASE3_WORKPLAN.md` for comprehensive implementation guide
200200

@@ -225,27 +225,29 @@ claudecode-github-bluprint/
225225
- [x] configs/standard-fullstack.json (pre-built configuration)
226226
- [x] configs/custom-template.json (customization template)
227227
- [x] validate.sh (546 lines - post-setup validation)
228-
- [x] **WP8: Testing & Examples** 🟡 25% (1/4 deliverables - 1 hour completed)
228+
- [x] **WP8: Testing & Examples** 🟡 50% (2/4 deliverables - 2 hours completed)
229229
- [x] scenarios.md (~1,100 lines - 8 end-to-end test scenarios)
230-
- [ ] examples/web (minimal Next.js app)
230+
- [x] examples/web (~800 lines - Next.js 14 example)
231231
- [ ] examples/mobile (minimal Expo app)
232232
- [ ] examples/fullstack (minimal MERN stack)
233233

234-
**Phase 3 Status**: 12/15 deliverables complete (~13,200 lines documented)
234+
**Phase 3 Status**: 13/15 deliverables complete (~14,000 lines documented)
235235
- **Commit 2ce8c02**: README.md + QUICK_START.md (735 lines)
236236
- **Commit dc116d1**: COMPLETE_SETUP.md + TROUBLESHOOTING.md (1,582 lines)
237237
- **Commit f098a82**: WORKFLOWS.md (2,555 lines)
238238
- **Commit efed977**: COMMANDS.md (3,078 lines)
239239
- **Commit b99caa0**: CUSTOMIZATION.md (989 lines)
240240
- **Commit 9d2afcb**: ARCHITECTURE.md (1,287 lines) + WP6 COMPLETE
241241
- **Commit 1bb36ee**: wizard.sh + 6 configs + validate.sh (~1,329 lines) + WP7 COMPLETE
242-
- **Commit [current]**: scenarios.md (~1,100 lines)
242+
- **Commit e83dc1b**: scenarios.md (~1,100 lines)
243+
- **Commit [current]**: examples/web (~800 lines)
243244

244245
**🎉 WP6 (Core Documentation) COMPLETE!**
245246
**🎉 WP7 (Setup Automation) COMPLETE!**
246247
**🎉 scenarios.md COMPLETE!**
248+
**🎉 examples/web/ COMPLETE!**
247249

248-
**Next**: WP8 - Testing & Examples (3 example projects: web, mobile, fullstack)
250+
**Next**: WP8 - Testing & Examples (2 remaining: mobile + fullstack)
249251

250252
---
251253

@@ -324,17 +326,17 @@ The blueprint supports three strategies (user choice):
324326

325327
## 🚦 Current Status
326328

327-
**Phase**: 2 ✅ **COMPLETE** | Phase 3 (Documentation) 🟡 **IN PROGRESS** (80%)
329+
**Phase**: 2 ✅ **COMPLETE** | Phase 3 (Documentation) 🟡 **IN PROGRESS** (87%)
328330
**Week**: 3
329331
**Last Updated**: 2025-11-06
330332
**Overall Progress**:
331333
- Phase 1: ✅ 100% Complete (19 files, 3,342 lines)
332334
- Phase 2: ✅ 100% Complete (12 files, 8,738 lines)
333-
- Phase 3: 🟡 80% Complete (12/15 deliverables, ~13,200 lines documented)
335+
- Phase 3: 🟡 87% Complete (13/15 deliverables, ~14,000 lines documented)
334336
- **WP6: Core Documentation** ✅ 100% COMPLETE (8/8 files)
335337
- **WP7: Setup Automation** ✅ 100% COMPLETE (10 files: wizard + 6 configs + validator)
336-
- **WP8: Testing & Examples** 🟡 25% COMPLETE (1/4 deliverables: scenarios.md)
337-
**Total Implementation**: 31 core files + 8 docs + 10 setup files + 1 test doc = 50 deliverables (~25,400 lines)
338+
- **WP8: Testing & Examples** 🟡 50% COMPLETE (2/4 deliverables: scenarios + web example)
339+
**Total Implementation**: 31 core files + 8 docs + 10 setup files + 1 test doc + 1 web example = 51 deliverables (~26,200 lines)
338340

339341
### Completed ✅
340342
- ✅ PRD created (implementation.md)
@@ -395,13 +397,14 @@ The blueprint supports three strategies (user choice):
395397
- TROUBLESHOOTING.md (1000+ lines - comprehensive issue resolution)
396398
- **Commit dc116d1**: 1,582 lines added
397399

398-
**🔄 PHASE 3 IN PROGRESS! 12/15 deliverables complete (80%)**
400+
**🔄 PHASE 3 IN PROGRESS! 13/15 deliverables complete (87%)**
399401
**🎉 WP6 (Core Documentation) 100% COMPLETE!**
400402
**🎉 WP7 (Setup Automation) 100% COMPLETE!**
401403
**🎉 scenarios.md COMPLETE!**
404+
**🎉 examples/web/ COMPLETE!**
402405

403406
### Next Steps
404-
**Phase 3: Documentation & Polish** (Week 3 - 80% Complete)
407+
**Phase 3: Documentation & Polish** (Week 3 - 87% Complete)
405408

406409
**✅ WP6: Core Documentation (COMPLETE)**
407410
- ✅ README.md (professional first impression)
@@ -423,10 +426,10 @@ The blueprint supports three strategies (user choice):
423426
- ✅ configs/custom-template.json (customization template)
424427
- ✅ validate.sh (post-setup validation - 546 lines)
425428

426-
**✅ WP8: Testing & Examples (25% COMPLETE - 3 remaining)**
429+
**✅ WP8: Testing & Examples (50% COMPLETE - 2 remaining)**
427430
- ✅ tests/scenarios.md (8 end-to-end test scenarios - ~1,100 lines)
428-
- examples/web/ (Next.js example) - NEXT
429-
- ⏳ examples/mobile/ (Expo example)
431+
- examples/web/ (Next.js 14 example - ~800 lines, 15 files)
432+
- ⏳ examples/mobile/ (Expo example) - NEXT
430433
- ⏳ examples/fullstack/ (MERN example)
431434

432435
See `docs/PHASE3_WORKPLAN.md` for detailed Phase 3 implementation plan

examples/web/.eslintrc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": ["next/core-web-vitals", "next/typescript"],
3+
"rules": {
4+
"no-console": ["warn", { "allow": ["warn", "error"] }],
5+
"no-unused-vars": "off",
6+
"@typescript-eslint/no-unused-vars": [
7+
"error",
8+
{
9+
"argsIgnorePattern": "^_",
10+
"varsIgnorePattern": "^_"
11+
}
12+
]
13+
}
14+
}

examples/web/.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Dependencies
2+
node_modules
3+
/.pnp
4+
.pnp.js
5+
6+
# Testing
7+
/coverage
8+
9+
# Next.js
10+
/.next/
11+
/out/
12+
next-env.d.ts
13+
14+
# Production
15+
/build
16+
/dist
17+
18+
# Misc
19+
.DS_Store
20+
*.pem
21+
22+
# Debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
pnpm-debug.log*
27+
28+
# Local env files
29+
.env
30+
.env*.local
31+
32+
# Vercel
33+
.vercel
34+
35+
# TypeScript
36+
*.tsbuildinfo
37+
38+
# IDE
39+
.vscode
40+
.idea

0 commit comments

Comments
 (0)