create-huenei-template 0.2.3 → 0.2.4

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 (86) hide show
  1. package/dist/templates/frontend/angular-base/.cursor/skills/angular-component/SKILL.md +288 -0
  2. package/dist/templates/frontend/angular-base/.cursor/skills/angular-component/references/component-patterns.md +358 -0
  3. package/dist/templates/frontend/angular-base/.cursor/skills/angular-di/SKILL.md +387 -0
  4. package/dist/templates/frontend/angular-base/.cursor/skills/angular-di/references/di-patterns.md +519 -0
  5. package/dist/templates/frontend/angular-base/.cursor/skills/angular-directives/SKILL.md +437 -0
  6. package/dist/templates/frontend/angular-base/.cursor/skills/angular-directives/references/directive-patterns.md +570 -0
  7. package/dist/templates/frontend/angular-base/.cursor/skills/angular-forms/SKILL.md +434 -0
  8. package/dist/templates/frontend/angular-base/.cursor/skills/angular-forms/references/form-patterns.md +398 -0
  9. package/dist/templates/frontend/angular-base/.cursor/skills/angular-http/SKILL.md +366 -0
  10. package/dist/templates/frontend/angular-base/.cursor/skills/angular-http/references/http-patterns.md +448 -0
  11. package/dist/templates/frontend/angular-base/.cursor/skills/angular-routing/SKILL.md +395 -0
  12. package/dist/templates/frontend/angular-base/.cursor/skills/angular-routing/references/routing-patterns.md +472 -0
  13. package/dist/templates/frontend/angular-base/.cursor/skills/angular-signals/SKILL.md +302 -0
  14. package/dist/templates/frontend/angular-base/.cursor/skills/angular-signals/references/signal-patterns.md +404 -0
  15. package/dist/templates/frontend/angular-base/.cursor/skills/angular-ssr/SKILL.md +435 -0
  16. package/dist/templates/frontend/angular-base/.cursor/skills/angular-ssr/references/ssr-patterns.md +497 -0
  17. package/dist/templates/frontend/angular-base/.cursor/skills/angular-testing/SKILL.md +660 -0
  18. package/dist/templates/frontend/angular-base/.cursor/skills/angular-testing/references/testing-patterns.md +707 -0
  19. package/dist/templates/frontend/angular-base/.cursor/skills/angular-tooling/SKILL.md +352 -0
  20. package/dist/templates/frontend/angular-base/.cursor/skills/angular-tooling/references/tooling-patterns.md +448 -0
  21. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-accessibility/SKILL.md +780 -0
  22. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-components/SKILL.md +718 -0
  23. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
  24. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
  25. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-animations/SKILL.md +432 -0
  26. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
  27. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-debugging/SKILL.md +354 -0
  28. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
  29. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-framework-integration/SKILL.md +578 -0
  30. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
  31. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
  32. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
  33. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
  34. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-mobile-first/SKILL.md +768 -0
  35. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-performance/SKILL.md +374 -0
  36. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
  37. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-plugins/SKILL.md +505 -0
  38. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
  39. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
  40. package/dist/templates/frontend/angular-base/.cursor/skills/web-design-guidelines/SKILL.md +39 -0
  41. package/dist/templates/frontend/angular-base/package.json +0 -1
  42. package/dist/templates/frontend/angular-base/pnpm-lock.yaml +8183 -0
  43. package/package.json +1 -1
  44. package/templates/frontend/angular-base/.cursor/skills/angular-component/SKILL.md +288 -0
  45. package/templates/frontend/angular-base/.cursor/skills/angular-component/references/component-patterns.md +358 -0
  46. package/templates/frontend/angular-base/.cursor/skills/angular-di/SKILL.md +387 -0
  47. package/templates/frontend/angular-base/.cursor/skills/angular-di/references/di-patterns.md +519 -0
  48. package/templates/frontend/angular-base/.cursor/skills/angular-directives/SKILL.md +437 -0
  49. package/templates/frontend/angular-base/.cursor/skills/angular-directives/references/directive-patterns.md +570 -0
  50. package/templates/frontend/angular-base/.cursor/skills/angular-forms/SKILL.md +434 -0
  51. package/templates/frontend/angular-base/.cursor/skills/angular-forms/references/form-patterns.md +398 -0
  52. package/templates/frontend/angular-base/.cursor/skills/angular-http/SKILL.md +366 -0
  53. package/templates/frontend/angular-base/.cursor/skills/angular-http/references/http-patterns.md +448 -0
  54. package/templates/frontend/angular-base/.cursor/skills/angular-routing/SKILL.md +395 -0
  55. package/templates/frontend/angular-base/.cursor/skills/angular-routing/references/routing-patterns.md +472 -0
  56. package/templates/frontend/angular-base/.cursor/skills/angular-signals/SKILL.md +302 -0
  57. package/templates/frontend/angular-base/.cursor/skills/angular-signals/references/signal-patterns.md +404 -0
  58. package/templates/frontend/angular-base/.cursor/skills/angular-ssr/SKILL.md +435 -0
  59. package/templates/frontend/angular-base/.cursor/skills/angular-ssr/references/ssr-patterns.md +497 -0
  60. package/templates/frontend/angular-base/.cursor/skills/angular-testing/SKILL.md +660 -0
  61. package/templates/frontend/angular-base/.cursor/skills/angular-testing/references/testing-patterns.md +707 -0
  62. package/templates/frontend/angular-base/.cursor/skills/angular-tooling/SKILL.md +352 -0
  63. package/templates/frontend/angular-base/.cursor/skills/angular-tooling/references/tooling-patterns.md +448 -0
  64. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-accessibility/SKILL.md +780 -0
  65. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-components/SKILL.md +718 -0
  66. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
  67. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
  68. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-animations/SKILL.md +432 -0
  69. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
  70. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-debugging/SKILL.md +354 -0
  71. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
  72. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-framework-integration/SKILL.md +578 -0
  73. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
  74. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
  75. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
  76. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
  77. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-mobile-first/SKILL.md +768 -0
  78. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-performance/SKILL.md +374 -0
  79. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
  80. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-plugins/SKILL.md +505 -0
  81. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
  82. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
  83. package/templates/frontend/angular-base/.cursor/skills/web-design-guidelines/SKILL.md +39 -0
  84. package/templates/frontend/angular-base/package.json +0 -1
  85. package/templates/frontend/angular-base/pnpm-lock.yaml +8183 -0
  86. package/templates/frontend/angular-base/package-lock.json +0 -13321
@@ -0,0 +1,352 @@
1
+ ---
2
+ name: angular-tooling
3
+ description: Use Angular CLI and development tools effectively in Angular v20+ projects. Use for project setup, code generation, building, testing, and configuration. Triggers on creating new projects, generating components/services/modules, configuring builds, running tests, or optimizing production builds.
4
+ ---
5
+
6
+ # Angular Tooling
7
+
8
+ Use Angular CLI and development tools for efficient Angular v20+ development.
9
+
10
+ ## Project Setup
11
+
12
+ ### Create New Project
13
+
14
+ ```bash
15
+ # Create new standalone project (default in v20+)
16
+ ng new my-app
17
+
18
+ # With specific options
19
+ ng new my-app --style=scss --routing --ssr=false
20
+
21
+ # Skip tests
22
+ ng new my-app --skip-tests
23
+
24
+ # Minimal setup
25
+ ng new my-app --minimal --inline-style --inline-template
26
+ ```
27
+
28
+ ### Project Structure
29
+
30
+ ```
31
+ my-app/
32
+ ├── src/
33
+ │ ├── app/
34
+ │ │ ├── app.component.ts
35
+ │ │ ├── app.config.ts
36
+ │ │ └── app.routes.ts
37
+ │ ├── index.html
38
+ │ ├── main.ts
39
+ │ └── styles.scss
40
+ ├── public/ # Static assets
41
+ ├── angular.json # CLI configuration
42
+ ├── package.json
43
+ ├── tsconfig.json
44
+ └── tsconfig.app.json
45
+ ```
46
+
47
+ ## Code Generation
48
+
49
+ ### Components
50
+
51
+ ```bash
52
+ # Generate component
53
+ ng generate component features/user-profile
54
+ ng g c features/user-profile # Short form
55
+
56
+ # With options
57
+ ng g c shared/button --inline-template --inline-style
58
+ ng g c features/dashboard --skip-tests
59
+ ng g c features/settings --change-detection=OnPush
60
+
61
+ # Flat (no folder)
62
+ ng g c shared/icon --flat
63
+
64
+ # Dry run (preview)
65
+ ng g c features/checkout --dry-run
66
+ ```
67
+
68
+ ### Services
69
+
70
+ ```bash
71
+ # Generate service (providedIn: 'root' by default)
72
+ ng g service services/auth
73
+ ng g s services/user
74
+
75
+ # Skip tests
76
+ ng g s services/api --skip-tests
77
+ ```
78
+
79
+ ### Other Schematics
80
+
81
+ ```bash
82
+ # Directive
83
+ ng g directive directives/highlight
84
+ ng g d directives/tooltip
85
+
86
+ # Pipe
87
+ ng g pipe pipes/truncate
88
+ ng g p pipes/date-format
89
+
90
+ # Guard (functional by default)
91
+ ng g guard guards/auth
92
+
93
+ # Interceptor (functional by default)
94
+ ng g interceptor interceptors/auth
95
+
96
+ # Interface
97
+ ng g interface models/user
98
+
99
+ # Enum
100
+ ng g enum models/status
101
+
102
+ # Class
103
+ ng g class models/product
104
+ ```
105
+
106
+ ### Generate with Path Alias
107
+
108
+ ```bash
109
+ # Components in feature folders
110
+ ng g c @features/products/product-list
111
+ ng g c @shared/ui/button
112
+ ```
113
+
114
+ ## Development Server
115
+
116
+ ```bash
117
+ # Start dev server
118
+ ng serve
119
+ ng s # Short form
120
+
121
+ # With options
122
+ ng serve --port 4201
123
+ ng serve --open # Open browser
124
+ ng serve --host 0.0.0.0 # Expose to network
125
+
126
+ # Production mode locally
127
+ ng serve --configuration=production
128
+
129
+ # With SSL
130
+ ng serve --ssl --ssl-key ./ssl/key.pem --ssl-cert ./ssl/cert.pem
131
+ ```
132
+
133
+ ## Building
134
+
135
+ ### Development Build
136
+
137
+ ```bash
138
+ ng build
139
+ ```
140
+
141
+ ### Production Build
142
+
143
+ ```bash
144
+ ng build --configuration=production
145
+ ng build -c production # Short form
146
+
147
+ # With specific options
148
+ ng build -c production --source-map=false
149
+ ng build -c production --named-chunks
150
+ ```
151
+
152
+ ### Build Output
153
+
154
+ ```
155
+ dist/my-app/
156
+ ├── browser/
157
+ │ ├── index.html
158
+ │ ├── main-[hash].js
159
+ │ ├── polyfills-[hash].js
160
+ │ └── styles-[hash].css
161
+ └── server/ # If SSR enabled
162
+ └── main.js
163
+ ```
164
+
165
+ ## Testing
166
+
167
+ ### Unit Tests
168
+
169
+ ```bash
170
+ # Run tests
171
+ ng test
172
+ ng t # Short form
173
+
174
+ # Single run (CI)
175
+ ng test --watch=false --browsers=ChromeHeadless
176
+
177
+ # With coverage
178
+ ng test --code-coverage
179
+
180
+ # Specific file
181
+ ng test --include=**/user.service.spec.ts
182
+ ```
183
+
184
+ ### E2E Tests
185
+
186
+ ```bash
187
+ # Run e2e (if configured)
188
+ ng e2e
189
+ ```
190
+
191
+ ## Linting
192
+
193
+ ```bash
194
+ # Run linter
195
+ ng lint
196
+
197
+ # Fix auto-fixable issues
198
+ ng lint --fix
199
+ ```
200
+
201
+ ## Configuration
202
+
203
+ ### angular.json Key Sections
204
+
205
+ ```json
206
+ {
207
+ "projects": {
208
+ "my-app": {
209
+ "architect": {
210
+ "build": {
211
+ "builder": "@angular-devkit/build-angular:application",
212
+ "options": {
213
+ "outputPath": "dist/my-app",
214
+ "index": "src/index.html",
215
+ "browser": "src/main.ts",
216
+ "polyfills": ["zone.js"],
217
+ "tsConfig": "tsconfig.app.json",
218
+ "assets": ["{ \"glob\": \"**/*\", \"input\": \"public\" }"],
219
+ "styles": ["src/styles.scss"],
220
+ "scripts": []
221
+ },
222
+ "configurations": {
223
+ "production": {
224
+ "budgets": [
225
+ {
226
+ "type": "initial",
227
+ "maximumWarning": "500kB",
228
+ "maximumError": "1MB"
229
+ }
230
+ ],
231
+ "outputHashing": "all"
232
+ },
233
+ "development": {
234
+ "optimization": false,
235
+ "extractLicenses": false,
236
+ "sourceMap": true
237
+ }
238
+ }
239
+ }
240
+ }
241
+ }
242
+ }
243
+ }
244
+ ```
245
+
246
+ ### Environment Configuration
247
+
248
+ ```typescript
249
+ // src/environments/environment.ts
250
+ export const environment = {
251
+ production: false,
252
+ apiUrl: 'http://localhost:3000/api',
253
+ };
254
+
255
+ // src/environments/environment.prod.ts
256
+ export const environment = {
257
+ production: true,
258
+ apiUrl: 'https://api.example.com',
259
+ };
260
+ ```
261
+
262
+ Configure in angular.json:
263
+
264
+ ```json
265
+ {
266
+ "configurations": {
267
+ "production": {
268
+ "fileReplacements": [
269
+ {
270
+ "replace": "src/environments/environment.ts",
271
+ "with": "src/environments/environment.prod.ts"
272
+ }
273
+ ]
274
+ }
275
+ }
276
+ }
277
+ ```
278
+
279
+ ## Adding Libraries
280
+
281
+ ### Angular Libraries
282
+
283
+ ```bash
284
+ # Add Angular Material
285
+ ng add @angular/material
286
+
287
+ # Add Angular PWA
288
+ ng add @angular/pwa
289
+
290
+ # Add Angular SSR
291
+ ng add @angular/ssr
292
+
293
+ # Add Angular Localize
294
+ ng add @angular/localize
295
+ ```
296
+
297
+ ### Third-Party Libraries
298
+
299
+ ```bash
300
+ # Install and configure
301
+ npm install @ngrx/signals
302
+
303
+ # Some libraries have schematics
304
+ ng add @ngrx/store
305
+ ```
306
+
307
+ ## Update Angular
308
+
309
+ ```bash
310
+ # Check for updates
311
+ ng update
312
+
313
+ # Update Angular core and CLI
314
+ ng update @angular/core @angular/cli
315
+
316
+ # Update all packages
317
+ ng update --all
318
+
319
+ # Force update (skip peer dependency checks)
320
+ ng update @angular/core @angular/cli --force
321
+ ```
322
+
323
+ ## Performance Analysis
324
+
325
+ ```bash
326
+ # Build with stats
327
+ ng build -c production --stats-json
328
+
329
+ # Analyze bundle (install esbuild-visualizer)
330
+ npx esbuild-visualizer --metadata dist/my-app/browser/stats.json --open
331
+ ```
332
+
333
+ ## Caching
334
+
335
+ ```bash
336
+ # Enable persistent build cache (default in v20+)
337
+ # Configured in angular.json:
338
+ {
339
+ "cli": {
340
+ "cache": {
341
+ "enabled": true,
342
+ "path": ".angular/cache",
343
+ "environment": "all"
344
+ }
345
+ }
346
+ }
347
+
348
+ # Clear cache
349
+ rm -rf .angular/cache
350
+ ```
351
+
352
+ For advanced configuration, see [references/tooling-patterns.md](references/tooling-patterns.md).