fix(cli): scaffold lints clean on fresh init + project-local new-page#9
Merged
Conversation
Quick-start fixes after the 0.4.0 platform-ization release: - Scaffold no longer ships design/welcome.tsx (referenced the removed welcome-view pattern → fresh `npm run lint` failed). design/ and mock/ ship empty (.gitkeep only) - omit-design lint exits 0 with a friendly note when design/ has no .tsx files (was a noisy ESLint "no files matching" error) - omit-design new-page rewritten to copy from <project>/patterns/<id>/ template.tmpl.tsx instead of the removed preset-mobile/templates/ path. Helpful "no patterns yet — run /distill-patterns-from-prd or /add-pattern" hint when patterns/ is empty - Scaffold CLAUDE.md / README purged of stale references (PATTERNS.md in preset-mobile, patterns.config.json, the 8 starter list). app/App.tsx redirect falls back to /workspace when design/ has no entries - README.md / README.zh-CN.md Quick start + Five-minute tour rewritten around the PRD → distill → new-design flow Bumps cli 0.4.0 → 0.4.1 (patch; no API surface changes — fixes only). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Quick-start fixes after the 0.4.0 platform-ization release exposed a few rough edges:
design/welcome.tsxwith@pattern: welcome-view— butpatterns/is empty in new projects → freshnpm run lintfaileddesign/welcome.tsx+mock/onboarding.ts. Ship emptydesign/andmock/(just.gitkeep).omit-design linton emptydesign/errored withNo files matching the pattern "design/**/*.tsx" were founddesign/up front, emit✓ no design/*.tsx files yet — nothing to lintand exit 0.omit-design new-pageread fromnode_modules/@omit-design/preset-mobile/templates/— that dir doesn't exist (preset-mobile stopped shipping templates in 0.3.x)<project>/patterns/<id>/template.tmpl.tsx. Whenpatterns/is empty, suggest/distill-patterns-from-prdor/add-pattern.CLAUDE.md.tmpl/README.md.tmplreferenced removed concepts (PATTERNS.md in preset-mobile,patterns.config.json, the 8-starter list)app/App.tsxredirect hard-coded/designs/main/welcome(which no longer exists)/workspacewhendesign/is empty.README.md+README.zh-CN.mdQuick start said "Your single starter design lives at design/welcome.tsx" and Five-minute tour rannew-page list-view design/orders/listpackages/cli/README.mdlisted 6 skills (missingdistill-patterns-from-prd+bootstrap-from-figma) and pointed at wrong scaffold pathBumps cli 0.4.0 → 0.4.1. No other packages need a bump (no surface change to engine / dev-server / preset).
Test plan
bun run build— all packages greenomit-design init demo→design/,mock/,patterns/each contain only.gitkeepbun install && bun run lint→✓ no design/*.tsx files yet — nothing to lint(exit 0)omit-design new-page list-view design/orders/liston emptypatterns/→ helpful error pointing at distill/add-pattern, exit 1Publish plan
After merge, on
main:Only
clineeds a republish — preset-mobile / engine / dev-server / eslint-plugin unchanged this cycle.🤖 Generated with Claude Code