-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: consolidate design folders under design/ #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
29014b6
c7117d2
0c4f894
7cf260e
c58514f
fb78042
af4007e
9ee7923
c7d9178
4ace7a4
6f2355e
a4d59ba
30e341b
3f68fd2
700ec11
2e576ac
8581a62
b4e3838
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,8 +10,8 @@ | |
| Stacks: html-tailwind, react, nextjs | ||
|
|
||
| Persistence (Master + Overrides pattern): | ||
| --persist Save design system to design-system/MASTER.md | ||
| --page Also create a page-specific override file in design-system/pages/ | ||
| --persist Save design system to design/system/MASTER.md | ||
| --page Also create a page-specific override file in design/system/pages/ | ||
| """ | ||
|
|
||
| import argparse | ||
|
|
@@ -65,8 +65,8 @@ def format_output(result): | |
| parser.add_argument("--project-name", "-p", type=str, default=None, help="Project name for design system output") | ||
| parser.add_argument("--format", "-f", choices=["ascii", "markdown"], default="ascii", help="Output format for design system") | ||
| # Persistence (Master + Overrides pattern) | ||
| parser.add_argument("--persist", action="store_true", help="Save design system to design-system/MASTER.md (creates hierarchical structure)") | ||
| parser.add_argument("--page", type=str, default=None, help="Create page-specific override file in design-system/pages/") | ||
| parser.add_argument("--persist", action="store_true", help="Save design system to design/system/MASTER.md (creates hierarchical structure)") | ||
| parser.add_argument("--page", type=str, default=None, help="Create page-specific override file in design/system/pages/") | ||
| parser.add_argument("--output-dir", "-o", type=str, default=None, help="Output directory for persisted files (default: current directory)") | ||
|
|
||
| args = parser.parse_args() | ||
|
|
@@ -87,13 +87,13 @@ def format_output(result): | |
| if args.persist: | ||
| project_slug = args.project_name.lower().replace(' ', '-') if args.project_name else "default" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Persistence confirmation message shows wrong directory when --project-name is omitted When Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||
| print("\n" + "=" * 60) | ||
| print(f"✅ Design system persisted to design-system/{project_slug}/") | ||
| print(f" 📄 design-system/{project_slug}/MASTER.md (Global Source of Truth)") | ||
| print(f"✅ Design system persisted to design/system/{project_slug}/") | ||
| print(f" 📄 design/system/{project_slug}/MASTER.md (Global Source of Truth)") | ||
| if args.page: | ||
| page_filename = args.page.lower().replace(' ', '-') | ||
| print(f" 📄 design-system/{project_slug}/pages/{page_filename}.md (Page Overrides)") | ||
| print(f" 📄 design/system/{project_slug}/pages/{page_filename}.md (Page Overrides)") | ||
| print("") | ||
| print(f"📖 Usage: When building a page, check design-system/{project_slug}/pages/[page].md first.") | ||
| print(f"📖 Usage: When building a page, check design/system/{project_slug}/pages/[page].md first.") | ||
| print(f" If exists, its rules override MASTER.md. Otherwise, use MASTER.md.") | ||
| print("=" * 60) | ||
| # Stack search | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.