@adlas/create-app 1.0.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.
Files changed (79) hide show
  1. package/README.md +476 -0
  2. package/dist/cli.d.ts +3 -0
  3. package/dist/cli.d.ts.map +1 -0
  4. package/dist/cli.js +39 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/commands/figma.d.ts +16 -0
  7. package/dist/commands/figma.d.ts.map +1 -0
  8. package/dist/commands/figma.js +172 -0
  9. package/dist/commands/figma.js.map +1 -0
  10. package/dist/commands/index.d.ts +5 -0
  11. package/dist/commands/index.d.ts.map +1 -0
  12. package/dist/commands/index.js +5 -0
  13. package/dist/commands/index.js.map +1 -0
  14. package/dist/commands/init.d.ts +8 -0
  15. package/dist/commands/init.d.ts.map +1 -0
  16. package/dist/commands/init.js +1471 -0
  17. package/dist/commands/init.js.map +1 -0
  18. package/dist/commands/swagger.d.ts +16 -0
  19. package/dist/commands/swagger.d.ts.map +1 -0
  20. package/dist/commands/swagger.js +404 -0
  21. package/dist/commands/swagger.js.map +1 -0
  22. package/dist/commands/update.d.ts +15 -0
  23. package/dist/commands/update.d.ts.map +1 -0
  24. package/dist/commands/update.js +93 -0
  25. package/dist/commands/update.js.map +1 -0
  26. package/package.json +63 -0
  27. package/templates/.vscode/extensions.json +9 -0
  28. package/templates/.vscode/launch.json +26 -0
  29. package/templates/.vscode/settings.json +67 -0
  30. package/templates/.vscode/tasks.json +21 -0
  31. package/templates/boilerplate/config/fonts.ts +10 -0
  32. package/templates/boilerplate/config/navigationUrls.ts +47 -0
  33. package/templates/boilerplate/config/site.ts +96 -0
  34. package/templates/boilerplate/libs/I18n.ts +15 -0
  35. package/templates/boilerplate/libs/I18nNavigation.ts +5 -0
  36. package/templates/boilerplate/libs/I18nRouting.ts +9 -0
  37. package/templates/boilerplate/libs/env.ts +21 -0
  38. package/templates/boilerplate/libs/react-query/ReactQueryProvider.tsx +21 -0
  39. package/templates/boilerplate/libs/react-query/index.ts +2 -0
  40. package/templates/boilerplate/libs/react-query/queryClient.ts +62 -0
  41. package/templates/boilerplate/libs/react-query/queryKeys.ts +5 -0
  42. package/templates/boilerplate/public/images/index.ts +1 -0
  43. package/templates/boilerplate/reset.d.ts +2 -0
  44. package/templates/boilerplate/styles/globals.css +308 -0
  45. package/templates/boilerplate/types/i18n.ts +10 -0
  46. package/templates/boilerplate/types/locale.ts +8 -0
  47. package/templates/boilerplate/utils/file/fileConfig.ts +123 -0
  48. package/templates/boilerplate/utils/file/fileValidation.ts +78 -0
  49. package/templates/boilerplate/utils/file/imageCompression.ts +182 -0
  50. package/templates/boilerplate/utils/file/index.ts +3 -0
  51. package/templates/boilerplate/utils/helpers.ts +55 -0
  52. package/templates/boilerplate/validations/auth.validation.ts +92 -0
  53. package/templates/boilerplate/validations/commonValidations.ts +258 -0
  54. package/templates/boilerplate/validations/zodErrorMap.ts +101 -0
  55. package/templates/configs/.env.example +8 -0
  56. package/templates/configs/.prettierignore +23 -0
  57. package/templates/configs/.prettierrc.cjs +26 -0
  58. package/templates/configs/.prettierrc.icons.cjs +11 -0
  59. package/templates/configs/Dockerfile +6 -0
  60. package/templates/configs/commitlint.config.ts +8 -0
  61. package/templates/configs/eslint.config.mjs +119 -0
  62. package/templates/configs/knip.config.ts +32 -0
  63. package/templates/configs/lefthook.yml +42 -0
  64. package/templates/configs/lint-staged.config.js +8 -0
  65. package/templates/configs/next.config.template.ts +77 -0
  66. package/templates/configs/next.config.ts +43 -0
  67. package/templates/configs/package.json +75 -0
  68. package/templates/configs/postcss.config.mjs +15 -0
  69. package/templates/configs/svgr.config.mjs +129 -0
  70. package/templates/configs/tsconfig.json +75 -0
  71. package/templates/docs/AI_QUICK_REFERENCE.md +379 -0
  72. package/templates/docs/ARCHITECTURE_PATTERNS.md +927 -0
  73. package/templates/docs/DOCUMENTATION_INDEX.md +411 -0
  74. package/templates/docs/FIGMA_TO_CODE_GUIDE.md +768 -0
  75. package/templates/docs/IMPLEMENTATION_GUIDE.md +892 -0
  76. package/templates/docs/PROJECT_OVERVIEW.md +302 -0
  77. package/templates/docs/REFACTOR_PROGRESS.md +1113 -0
  78. package/templates/docs/SHADCN_TO_HEROUI_MIGRATION.md +1375 -0
  79. package/templates/docs/UI_COMPONENTS_GUIDE.md +893 -0
@@ -0,0 +1,411 @@
1
+ # Documentation Index
2
+
3
+ Central hub for all documentation in the Berndorf e-commerce project. Use this index to quickly find the information you need.
4
+
5
+ ## Overview
6
+
7
+ This documentation suite provides comprehensive guidance for implementing features in the Berndorf e-commerce project. Each document serves a specific purpose and covers different aspects of development.
8
+
9
+ ## Documentation Files
10
+
11
+ ### 1. AI_QUICK_REFERENCE.md
12
+
13
+ **Purpose:** Quick reference guide for AI and developers
14
+
15
+ **Use When:**
16
+ - Starting a new feature
17
+ - Need a quick reminder of patterns
18
+ - Looking for code templates
19
+ - Checking DO/DON'T rules
20
+
21
+ **Contains:**
22
+ - Critical rules (DO/DON'T)
23
+ - Available UI components list
24
+ - Code templates (ready to copy)
25
+ - Styling quick reference
26
+ - Common patterns
27
+ - Implementation workflow
28
+ - Quick checklist
29
+
30
+ **Best For:**
31
+ - Fast lookups
32
+ - Code snippets
33
+ - Rule verification
34
+ - Daily development
35
+
36
+ **Link:** [AI_QUICK_REFERENCE.md](./AI_QUICK_REFERENCE.md)
37
+
38
+ ---
39
+
40
+ ### 2. UI_COMPONENTS_GUIDE.md
41
+
42
+ **Purpose:** Complete reference for all UI components
43
+
44
+ **Use When:**
45
+ - Building forms
46
+ - Creating layouts
47
+ - Need component props
48
+ - Checking available variants
49
+ - Looking for usage examples
50
+
51
+ **Contains:**
52
+ - All UI components from `/src/components/ui/`
53
+ - Component props and types
54
+ - Variants and options
55
+ - Usage examples
56
+ - Best practices
57
+ - Element components from `/src/components/elements/`
58
+ - Component patterns
59
+
60
+ **Best For:**
61
+ - Component selection
62
+ - Props reference
63
+ - Implementation examples
64
+ - Component discovery
65
+
66
+ **Link:** [UI_COMPONENTS_GUIDE.md](./UI_COMPONENTS_GUIDE.md)
67
+
68
+ ---
69
+
70
+ ### 3. ARCHITECTURE_PATTERNS.md
71
+
72
+ **Purpose:** Architectural patterns and best practices
73
+
74
+ **Use When:**
75
+ - Creating a new service module
76
+ - Setting up state management
77
+ - Implementing data fetching
78
+ - Need validation patterns
79
+ - Creating server actions
80
+
81
+ **Contains:**
82
+ - Service module pattern (complete structure)
83
+ - State management with Zustand
84
+ - Data fetching with React Query
85
+ - Form patterns with react-hook-form
86
+ - Validation patterns with Zod
87
+ - i18n patterns with next-intl
88
+ - Authentication patterns
89
+ - API communication patterns
90
+ - Complete code examples
91
+
92
+ **Best For:**
93
+ - Feature architecture
94
+ - Pattern reference
95
+ - Code organization
96
+ - Best practices
97
+
98
+ **Link:** [ARCHITECTURE_PATTERNS.md](./ARCHITECTURE_PATTERNS.md)
99
+
100
+ ---
101
+
102
+ ### 4. IMPLEMENTATION_GUIDE.md
103
+
104
+ **Purpose:** Step-by-step implementation guide
105
+
106
+ **Use When:**
107
+ - Implementing a new feature from scratch
108
+ - Need step-by-step instructions
109
+ - Creating service modules
110
+ - Need implementation checklist
111
+ - Troubleshooting issues
112
+
113
+ **Contains:**
114
+ - Pre-implementation checklist
115
+ - Step-by-step implementation process
116
+ - Service module creation
117
+ - Translation setup
118
+ - Component creation
119
+ - Form implementation
120
+ - Quality checklist
121
+ - Troubleshooting guide
122
+ - Complete example implementation
123
+
124
+ **Best For:**
125
+ - Feature implementation
126
+ - Step-by-step guidance
127
+ - Checklists
128
+ - Troubleshooting
129
+
130
+ **Link:** [IMPLEMENTATION_GUIDE.md](./IMPLEMENTATION_GUIDE.md)
131
+
132
+ ---
133
+
134
+ ### 5. FIGMA_TO_CODE_GUIDE.md
135
+
136
+ **Purpose:** Convert Figma designs to code
137
+
138
+ **Use When:**
139
+ - Implementing from Figma designs
140
+ - Using Figma MCP Server
141
+ - Mapping design tokens
142
+ - Need component mapping rules
143
+ - Analyzing designs
144
+
145
+ **Contains:**
146
+ - Figma MCP Server usage
147
+ - Design analysis workflow
148
+ - Design token mapping (colors, spacing, typography)
149
+ - Component mapping rules
150
+ - AI decision tree
151
+ - Figma to code examples
152
+ - Quality checklist
153
+
154
+ **Best For:**
155
+ - Design implementation
156
+ - Token mapping
157
+ - Component selection from design
158
+ - Design analysis
159
+
160
+ **Link:** [FIGMA_TO_CODE_GUIDE.md](./FIGMA_TO_CODE_GUIDE.md)
161
+
162
+ ---
163
+
164
+ ## Usage Scenarios
165
+
166
+ ### Scenario 1: Starting a New Feature
167
+
168
+ **Workflow:**
169
+
170
+ 1. **Read:** `IMPLEMENTATION_GUIDE.md` - Pre-implementation checklist
171
+ 2. **Refer to:** `ARCHITECTURE_PATTERNS.md` - Service module structure
172
+ 3. **Use:** `AI_QUICK_REFERENCE.md` - Code templates
173
+ 4. **Check:** `UI_COMPONENTS_GUIDE.md` - Available components
174
+ 5. **Follow:** `IMPLEMENTATION_GUIDE.md` - Step-by-step process
175
+
176
+ ### Scenario 2: Implementing from Figma
177
+
178
+ **Workflow:**
179
+
180
+ 1. **Read:** `FIGMA_TO_CODE_GUIDE.md` - Design analysis workflow
181
+ 2. **Use:** Figma MCP Server - Analyze design
182
+ 3. **Map:** Design tokens to project tokens
183
+ 4. **Check:** `UI_COMPONENTS_GUIDE.md` - Component mapping
184
+ 5. **Refer to:** `AI_QUICK_REFERENCE.md` - Code templates
185
+ 6. **Implement:** Following patterns from `ARCHITECTURE_PATTERNS.md`
186
+
187
+ ### Scenario 3: Creating a Form
188
+
189
+ **Workflow:**
190
+
191
+ 1. **Check:** `UI_COMPONENTS_GUIDE.md` - Form components
192
+ 2. **Refer to:** `ARCHITECTURE_PATTERNS.md` - Form patterns
193
+ 3. **Use:** `AI_QUICK_REFERENCE.md` - Form template
194
+ 4. **Follow:** `IMPLEMENTATION_GUIDE.md` - Quality checklist
195
+
196
+ ### Scenario 4: Debugging an Issue
197
+
198
+ **Workflow:**
199
+
200
+ 1. **Check:** `IMPLEMENTATION_GUIDE.md` - Troubleshooting section
201
+ 2. **Verify:** `AI_QUICK_REFERENCE.md` - Rules and patterns
202
+ 3. **Review:** `ARCHITECTURE_PATTERNS.md` - Correct patterns
203
+ 4. **Test:** Against examples in respective guides
204
+
205
+ ### Scenario 5: Quick Component Lookup
206
+
207
+ **Workflow:**
208
+
209
+ 1. **Check:** `AI_QUICK_REFERENCE.md` - Available components
210
+ 2. **Details:** `UI_COMPONENTS_GUIDE.md` - Component props and examples
211
+ 3. **Implement:** Using code from guides
212
+
213
+ ---
214
+
215
+ ## Quick Links by Topic
216
+
217
+ ### Components
218
+
219
+ - **List of components:** [AI_QUICK_REFERENCE.md](./AI_QUICK_REFERENCE.md#available-ui-components)
220
+ - **Detailed component guide:** [UI_COMPONENTS_GUIDE.md](./UI_COMPONENTS_GUIDE.md)
221
+ - **Component patterns:** [UI_COMPONENTS_GUIDE.md](./UI_COMPONENTS_GUIDE.md#component-usage-patterns)
222
+
223
+ ### Forms
224
+
225
+ - **Form components:** [UI_COMPONENTS_GUIDE.md](./UI_COMPONENTS_GUIDE.md#form-components)
226
+ - **Form patterns:** [ARCHITECTURE_PATTERNS.md](./ARCHITECTURE_PATTERNS.md#form-patterns)
227
+ - **Form template:** [AI_QUICK_REFERENCE.md](./AI_QUICK_REFERENCE.md#5-form-with-validation)
228
+ - **Form implementation:** [IMPLEMENTATION_GUIDE.md](./IMPLEMENTATION_GUIDE.md#step-11-create-form-components)
229
+
230
+ ### State Management
231
+
232
+ - **Zustand patterns:** [ARCHITECTURE_PATTERNS.md](./ARCHITECTURE_PATTERNS.md#state-management-with-zustand)
233
+ - **Store template:** [AI_QUICK_REFERENCE.md](./AI_QUICK_REFERENCE.md#4-zustand-store)
234
+ - **Store creation:** [IMPLEMENTATION_GUIDE.md](./IMPLEMENTATION_GUIDE.md#step-7-create-zustand-store-if-needed)
235
+
236
+ ### Data Fetching
237
+
238
+ - **React Query patterns:** [ARCHITECTURE_PATTERNS.md](./ARCHITECTURE_PATTERNS.md#data-fetching-with-react-query)
239
+ - **Query template:** [AI_QUICK_REFERENCE.md](./AI_QUICK_REFERENCE.md#3-react-query-hook)
240
+ - **Query implementation:** [IMPLEMENTATION_GUIDE.md](./IMPLEMENTATION_GUIDE.md#step-5-create-react-query-hooks)
241
+
242
+ ### Validation
243
+
244
+ - **Validation patterns:** [ARCHITECTURE_PATTERNS.md](./ARCHITECTURE_PATTERNS.md#validation-patterns)
245
+ - **Zod schemas:** [ARCHITECTURE_PATTERNS.md](./ARCHITECTURE_PATTERNS.md#zod-schema-patterns)
246
+
247
+ ### Styling
248
+
249
+ - **Styling reference:** [AI_QUICK_REFERENCE.md](./AI_QUICK_REFERENCE.md#styling-quick-reference)
250
+ - **Design tokens:** [FIGMA_TO_CODE_GUIDE.md](./FIGMA_TO_CODE_GUIDE.md#design-token-mapping)
251
+ - **Color mapping:** [FIGMA_TO_CODE_GUIDE.md](./FIGMA_TO_CODE_GUIDE.md#color-mapping)
252
+ - **Spacing mapping:** [FIGMA_TO_CODE_GUIDE.md](./FIGMA_TO_CODE_GUIDE.md#spacing-mapping)
253
+
254
+ ### Translations
255
+
256
+ - **i18n patterns:** [ARCHITECTURE_PATTERNS.md](./ARCHITECTURE_PATTERNS.md#internationalization-i18n)
257
+ - **Translation usage:** [AI_QUICK_REFERENCE.md](./AI_QUICK_REFERENCE.md#7-translation-usage)
258
+ - **Translation setup:** [IMPLEMENTATION_GUIDE.md](./IMPLEMENTATION_GUIDE.md#step-9-add-translations)
259
+
260
+ ### Service Modules
261
+
262
+ - **Service pattern:** [ARCHITECTURE_PATTERNS.md](./ARCHITECTURE_PATTERNS.md#service-module-pattern)
263
+ - **Complete example:** [ARCHITECTURE_PATTERNS.md](./ARCHITECTURE_PATTERNS.md#complete-example-product-service-module)
264
+ - **Implementation steps:** [IMPLEMENTATION_GUIDE.md](./IMPLEMENTATION_GUIDE.md#step-1-create-service-module-structure)
265
+
266
+ ### Figma to Code
267
+
268
+ - **Figma MCP usage:** [FIGMA_TO_CODE_GUIDE.md](./FIGMA_TO_CODE_GUIDE.md#figma-mcp-server-usage)
269
+ - **Design analysis:** [FIGMA_TO_CODE_GUIDE.md](./FIGMA_TO_CODE_GUIDE.md#design-analysis-workflow)
270
+ - **Component mapping:** [FIGMA_TO_CODE_GUIDE.md](./FIGMA_TO_CODE_GUIDE.md#component-mapping-rules)
271
+ - **Examples:** [FIGMA_TO_CODE_GUIDE.md](./FIGMA_TO_CODE_GUIDE.md#examples)
272
+
273
+ ---
274
+
275
+ ## Visual Guide
276
+
277
+ ```
278
+ ┌─────────────────────────────────────────────────────────────┐
279
+ │ DOCUMENTATION SUITE │
280
+ └─────────────────────────────────────────────────────────────┘
281
+
282
+ ┌───────────────────┼───────────────────┐
283
+ │ │ │
284
+ ▼ ▼ ▼
285
+ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐
286
+ │ Quick Start │ │ Components │ │ Architecture │
287
+ │ │ │ │ │ │
288
+ │ AI_QUICK_ │ │ UI_COMPONENTS_│ │ ARCHITECTURE_ │
289
+ │ REFERENCE.md │ │ GUIDE.md │ │ PATTERNS.md │
290
+ │ │ │ │ │ │
291
+ │ • Rules │ │ • All UI │ │ • Service │
292
+ │ • Templates │ │ components │ │ modules │
293
+ │ • Patterns │ │ • Props │ │ • State mgmt │
294
+ │ • Checklists │ │ • Examples │ │ • Data fetch │
295
+ └───────────────┘ └───────────────┘ └───────────────┘
296
+ │ │ │
297
+ └───────────────────┼───────────────────┘
298
+
299
+ ┌───────────────────┼───────────────────┐
300
+ │ │ │
301
+ ▼ ▼ ▼
302
+ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐
303
+ │Implementation │ │ Figma to │ │Documentation │
304
+ │ │ │ Code │ │ Index │
305
+ │ IMPLEMENTATION│ │ │ │ │
306
+ │ _GUIDE.md │ │ FIGMA_TO_ │ │ DOCUMENTATION_│
307
+ │ │ │ CODE_GUIDE.md │ │ INDEX.md │
308
+ │ • Steps │ │ │ │ │
309
+ │ • Checklists │ │ • MCP Server │ │ • Overview │
310
+ │ • Trouble- │ │ • Token map │ │ • Scenarios │
311
+ │ shooting │ │ • Examples │ │ • Quick links │
312
+ └───────────────┘ └───────────────┘ └───────────────┘
313
+ ```
314
+
315
+ ---
316
+
317
+ ## Documentation Maintenance
318
+
319
+ ### Updating Documentation
320
+
321
+ When updating any documentation file:
322
+
323
+ 1. **Update the file** with new information
324
+ 2. **Update this index** if structure changes
325
+ 3. **Update cross-references** in related files
326
+ 4. **Test examples** to ensure they work
327
+ 5. **Update version** or date if applicable
328
+
329
+ ### Adding New Documentation
330
+
331
+ When adding a new documentation file:
332
+
333
+ 1. **Create the file** with clear structure
334
+ 2. **Add entry to this index** with description
335
+ 3. **Add cross-references** from related files
336
+ 4. **Update visual guide** if needed
337
+ 5. **Update usage scenarios** if applicable
338
+
339
+ ---
340
+
341
+ ## Best Practices
342
+
343
+ ### For AI Assistants
344
+
345
+ 1. **Start with Quick Reference** for fast lookups
346
+ 2. **Deep dive into specific guides** for detailed information
347
+ 3. **Follow implementation steps** from Implementation Guide
348
+ 4. **Use examples** as templates, not just reference
349
+ 5. **Cross-reference** between documents for complete understanding
350
+
351
+ ### For Developers
352
+
353
+ 1. **Bookmark this index** for quick access
354
+ 2. **Use search** (Cmd/Ctrl + F) within documents
355
+ 3. **Follow checklists** to ensure quality
356
+ 4. **Refer to examples** when in doubt
357
+ 5. **Keep documentation open** while implementing
358
+
359
+ ### For Teams
360
+
361
+ 1. **Share this index** with new team members
362
+ 2. **Update documentation** as patterns evolve
363
+ 3. **Contribute examples** from real implementations
364
+ 4. **Report issues** in documentation
365
+ 5. **Suggest improvements** based on usage
366
+
367
+ ---
368
+
369
+ ## Summary
370
+
371
+ This documentation suite covers:
372
+
373
+ 1. **Quick Reference** - Fast lookups and templates
374
+ 2. **UI Components** - All available components
375
+ 3. **Architecture** - Patterns and best practices
376
+ 4. **Implementation** - Step-by-step guides
377
+ 5. **Figma to Code** - Design implementation
378
+ 6. **This Index** - Navigation and overview
379
+
380
+ Use this index as your starting point for any development task in the Berndorf e-commerce project.
381
+
382
+ ---
383
+
384
+ ## Need Help?
385
+
386
+ If you can't find what you're looking for:
387
+
388
+ 1. **Check this index** - Use Quick Links section
389
+ 2. **Search within files** - Use Cmd/Ctrl + F
390
+ 3. **Check related sections** - Cross-references
391
+ 4. **Review examples** - Often contain what you need
392
+ 5. **Check troubleshooting** - In Implementation Guide
393
+
394
+ ---
395
+
396
+ ## Version Information
397
+
398
+ **Documentation Suite Version:** 1.0
399
+ **Last Updated:** 2025-11-27
400
+ **Project:** Berndorf E-commerce (Next.js 15, HeroUI, TypeScript)
401
+ **Tech Stack:**
402
+ - Next.js 15.5.4
403
+ - React 19.2.0
404
+ - HeroUI 2.8.5
405
+ - TypeScript 5.9.3
406
+ - Tailwind CSS 4.1.17
407
+ - Zustand 5.0.8
408
+ - React Query 5.90.7
409
+ - react-hook-form 7.66.0
410
+ - Zod 4.1.12
411
+ - next-intl 4.5.0