create-huenei-template 0.2.2

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 (1355) hide show
  1. package/README.md +132 -0
  2. package/bin/create-huenei-template.js +2 -0
  3. package/dist/config/templates.js +54 -0
  4. package/dist/core/dependency-manager.js +55 -0
  5. package/dist/core/errors.js +43 -0
  6. package/dist/core/file-operations.js +25 -0
  7. package/dist/core/prompts.js +183 -0
  8. package/dist/core/template-resolver.js +18 -0
  9. package/dist/index.js +85 -0
  10. package/dist/templates/backend/.gitkeep +1 -0
  11. package/dist/templates/backend/nestjs-api/.prettierrc +4 -0
  12. package/dist/templates/backend/nestjs-api/README.md +98 -0
  13. package/dist/templates/backend/nestjs-api/eslint.config.mjs +35 -0
  14. package/dist/templates/backend/nestjs-api/nest-cli.json +8 -0
  15. package/dist/templates/backend/nestjs-api/package.json +71 -0
  16. package/dist/templates/backend/nestjs-api/pnpm-lock.yaml +6233 -0
  17. package/dist/templates/backend/nestjs-api/src/app.controller.spec.ts +22 -0
  18. package/dist/templates/backend/nestjs-api/src/app.controller.ts +12 -0
  19. package/dist/templates/backend/nestjs-api/src/app.module.ts +10 -0
  20. package/dist/templates/backend/nestjs-api/src/app.service.ts +8 -0
  21. package/dist/templates/backend/nestjs-api/src/main.ts +8 -0
  22. package/dist/templates/backend/nestjs-api/test/app.e2e-spec.ts +25 -0
  23. package/dist/templates/backend/nestjs-api/test/jest-e2e.json +9 -0
  24. package/dist/templates/backend/nestjs-api/tsconfig.build.json +4 -0
  25. package/dist/templates/backend/nestjs-api/tsconfig.json +25 -0
  26. package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/new-endpoint.md +209 -0
  27. package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/new-model.md +201 -0
  28. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/api-rest.mdc +126 -0
  29. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/authentication-security.mdc +86 -0
  30. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/dto-validation.mdc +93 -0
  31. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/general-rules.mdc +126 -0
  32. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/nestjs-architecture.mdc +83 -0
  33. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/prisma-standards.mdc +90 -0
  34. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/swagger-documentation.mdc +90 -0
  35. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  36. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/docker-expert/SKILL.md +409 -0
  37. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  38. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  39. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  40. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  41. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/postgresql-table-design/SKILL.md +202 -0
  42. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/prisma-expert/SKILL.md +355 -0
  43. package/dist/templates/backend/nestjs-api-postgres/.dockerignore +50 -0
  44. package/dist/templates/backend/nestjs-api-postgres/.env.example +18 -0
  45. package/dist/templates/backend/nestjs-api-postgres/.env.test +18 -0
  46. package/dist/templates/backend/nestjs-api-postgres/.prettierrc +4 -0
  47. package/dist/templates/backend/nestjs-api-postgres/README.md +1502 -0
  48. package/dist/templates/backend/nestjs-api-postgres/docker-compose.yml +24 -0
  49. package/dist/templates/backend/nestjs-api-postgres/eslint.config.mjs +41 -0
  50. package/dist/templates/backend/nestjs-api-postgres/nest-cli.json +8 -0
  51. package/dist/templates/backend/nestjs-api-postgres/package.json +107 -0
  52. package/dist/templates/backend/nestjs-api-postgres/prisma/migrations/20260126125423_init/migration.sql +84 -0
  53. package/dist/templates/backend/nestjs-api-postgres/prisma/migrations/migration_lock.toml +3 -0
  54. package/dist/templates/backend/nestjs-api-postgres/prisma/schema.prisma +76 -0
  55. package/dist/templates/backend/nestjs-api-postgres/prisma/seed.ts +220 -0
  56. package/dist/templates/backend/nestjs-api-postgres/prisma.config.ts +10 -0
  57. package/dist/templates/backend/nestjs-api-postgres/src/app.module.ts +39 -0
  58. package/dist/templates/backend/nestjs-api-postgres/src/app.service.ts +8 -0
  59. package/dist/templates/backend/nestjs-api-postgres/src/auth/auth.controller.ts +36 -0
  60. package/dist/templates/backend/nestjs-api-postgres/src/auth/auth.module.ts +22 -0
  61. package/dist/templates/backend/nestjs-api-postgres/src/auth/auth.service.ts +63 -0
  62. package/dist/templates/backend/nestjs-api-postgres/src/auth/decorators/roles.decorator.ts +5 -0
  63. package/dist/templates/backend/nestjs-api-postgres/src/auth/dto/login-response.dto.ts +23 -0
  64. package/dist/templates/backend/nestjs-api-postgres/src/auth/dto/login.dto.ts +27 -0
  65. package/dist/templates/backend/nestjs-api-postgres/src/auth/guards/jwt-auth.guard.ts +20 -0
  66. package/dist/templates/backend/nestjs-api-postgres/src/auth/guards/roles.guard.ts +23 -0
  67. package/dist/templates/backend/nestjs-api-postgres/src/auth/strategies/jwt.strategy.ts +32 -0
  68. package/dist/templates/backend/nestjs-api-postgres/src/auth/types.ts +18 -0
  69. package/dist/templates/backend/nestjs-api-postgres/src/common/dto/paginated-response.dto.ts +16 -0
  70. package/dist/templates/backend/nestjs-api-postgres/src/common/dto/pagination.dto.ts +31 -0
  71. package/dist/templates/backend/nestjs-api-postgres/src/common/filters/http-exception.filter.ts +53 -0
  72. package/dist/templates/backend/nestjs-api-postgres/src/config/env.validation.ts +41 -0
  73. package/dist/templates/backend/nestjs-api-postgres/src/health/health.controller.ts +35 -0
  74. package/dist/templates/backend/nestjs-api-postgres/src/health/health.module.ts +7 -0
  75. package/dist/templates/backend/nestjs-api-postgres/src/main.ts +87 -0
  76. package/dist/templates/backend/nestjs-api-postgres/src/posts/dto/create-post.dto.ts +32 -0
  77. package/dist/templates/backend/nestjs-api-postgres/src/posts/dto/post-response.dto.ts +41 -0
  78. package/dist/templates/backend/nestjs-api-postgres/src/posts/dto/update-post.dto.ts +31 -0
  79. package/dist/templates/backend/nestjs-api-postgres/src/posts/posts.controller.ts +161 -0
  80. package/dist/templates/backend/nestjs-api-postgres/src/posts/posts.module.ts +12 -0
  81. package/dist/templates/backend/nestjs-api-postgres/src/posts/posts.service.ts +171 -0
  82. package/dist/templates/backend/nestjs-api-postgres/src/prisma/prisma.module.ts +9 -0
  83. package/dist/templates/backend/nestjs-api-postgres/src/prisma/prisma.service.ts +27 -0
  84. package/dist/templates/backend/nestjs-api-postgres/src/users/constants/settings.constants.ts +9 -0
  85. package/dist/templates/backend/nestjs-api-postgres/src/users/dto/profile-response.dto.ts +39 -0
  86. package/dist/templates/backend/nestjs-api-postgres/src/users/dto/settings-response.dto.ts +18 -0
  87. package/dist/templates/backend/nestjs-api-postgres/src/users/dto/update-profile.dto.ts +48 -0
  88. package/dist/templates/backend/nestjs-api-postgres/src/users/dto/update-settings.dto.ts +40 -0
  89. package/dist/templates/backend/nestjs-api-postgres/src/users/dto/user-response.dto.ts +18 -0
  90. package/dist/templates/backend/nestjs-api-postgres/src/users/profile.service.ts +49 -0
  91. package/dist/templates/backend/nestjs-api-postgres/src/users/settings.service.ts +82 -0
  92. package/dist/templates/backend/nestjs-api-postgres/src/users/users.controller.ts +102 -0
  93. package/dist/templates/backend/nestjs-api-postgres/src/users/users.module.ts +14 -0
  94. package/dist/templates/backend/nestjs-api-postgres/src/users/users.service.ts +27 -0
  95. package/dist/templates/backend/nestjs-api-postgres/test/README.md +412 -0
  96. package/dist/templates/backend/nestjs-api-postgres/test/e2e/auth.e2e-spec.ts +147 -0
  97. package/dist/templates/backend/nestjs-api-postgres/test/e2e/health.e2e-spec.ts +62 -0
  98. package/dist/templates/backend/nestjs-api-postgres/test/e2e/posts.e2e-spec.ts +407 -0
  99. package/dist/templates/backend/nestjs-api-postgres/test/e2e/users.e2e-spec.ts +287 -0
  100. package/dist/templates/backend/nestjs-api-postgres/test/fixtures/test-data.ts +109 -0
  101. package/dist/templates/backend/nestjs-api-postgres/test/helpers/auth.helper.ts +54 -0
  102. package/dist/templates/backend/nestjs-api-postgres/test/helpers/db.helper.ts +73 -0
  103. package/dist/templates/backend/nestjs-api-postgres/test/jest-e2e.json +12 -0
  104. package/dist/templates/backend/nestjs-api-postgres/test/setup-e2e.ts +8 -0
  105. package/dist/templates/backend/nestjs-api-postgres/test/unit/app.service.spec.ts +24 -0
  106. package/dist/templates/backend/nestjs-api-postgres/test/unit/auth.controller.spec.ts +91 -0
  107. package/dist/templates/backend/nestjs-api-postgres/test/unit/auth.service.spec.ts +161 -0
  108. package/dist/templates/backend/nestjs-api-postgres/test/unit/health.controller.spec.ts +78 -0
  109. package/dist/templates/backend/nestjs-api-postgres/test/unit/http-exception.filter.spec.ts +150 -0
  110. package/dist/templates/backend/nestjs-api-postgres/test/unit/jwt-auth.guard.spec.ts +50 -0
  111. package/dist/templates/backend/nestjs-api-postgres/test/unit/jwt.strategy.spec.ts +41 -0
  112. package/dist/templates/backend/nestjs-api-postgres/test/unit/posts.controller.spec.ts +249 -0
  113. package/dist/templates/backend/nestjs-api-postgres/test/unit/posts.service.spec.ts +328 -0
  114. package/dist/templates/backend/nestjs-api-postgres/test/unit/profile.service.spec.ts +146 -0
  115. package/dist/templates/backend/nestjs-api-postgres/test/unit/settings.service.spec.ts +242 -0
  116. package/dist/templates/backend/nestjs-api-postgres/test/unit/users.controller.spec.ts +178 -0
  117. package/dist/templates/backend/nestjs-api-postgres/test/unit/users.service.spec.ts +96 -0
  118. package/dist/templates/backend/nestjs-api-postgres/tsconfig.build.json +4 -0
  119. package/dist/templates/backend/nestjs-api-postgres/tsconfig.json +28 -0
  120. package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/new-endpoint.md +209 -0
  121. package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/new-model.md +201 -0
  122. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/api-rest.mdc +126 -0
  123. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/authentication-security.mdc +86 -0
  124. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/dto-validation.mdc +93 -0
  125. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/general-rules.mdc +126 -0
  126. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/nestjs-architecture.mdc +83 -0
  127. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/prisma-standards.mdc +90 -0
  128. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/swagger-documentation.mdc +90 -0
  129. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  130. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  131. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  132. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  133. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  134. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/prisma-expert/SKILL.md +355 -0
  135. package/dist/templates/backend/nestjs-api-sqlite/.env.example +4 -0
  136. package/dist/templates/backend/nestjs-api-sqlite/.env.test +4 -0
  137. package/dist/templates/backend/nestjs-api-sqlite/.prettierrc +4 -0
  138. package/dist/templates/backend/nestjs-api-sqlite/FINAL_IMPLEMENTATION_SUMMARY.md +537 -0
  139. package/dist/templates/backend/nestjs-api-sqlite/IMPLEMENTATION_REPORT.md +229 -0
  140. package/dist/templates/backend/nestjs-api-sqlite/IMPLEMENTATION_SUMMARY.md +275 -0
  141. package/dist/templates/backend/nestjs-api-sqlite/PRISMA_7_MIGRATION.md +175 -0
  142. package/dist/templates/backend/nestjs-api-sqlite/README.md +1464 -0
  143. package/dist/templates/backend/nestjs-api-sqlite/SWAGGER_INTEGRATION.md +194 -0
  144. package/dist/templates/backend/nestjs-api-sqlite/TESTING_IMPLEMENTATION_REPORT.md +368 -0
  145. package/dist/templates/backend/nestjs-api-sqlite/TESTING_SUMMARY.md +293 -0
  146. package/dist/templates/backend/nestjs-api-sqlite/Untitled +218 -0
  147. package/dist/templates/backend/nestjs-api-sqlite/eslint.config.mjs +41 -0
  148. package/dist/templates/backend/nestjs-api-sqlite/nest-cli.json +8 -0
  149. package/dist/templates/backend/nestjs-api-sqlite/package.json +105 -0
  150. package/dist/templates/backend/nestjs-api-sqlite/pnpm-lock.yaml +7630 -0
  151. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123190258_init/migration.sql +12 -0
  152. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123205000_add_roles_and_posts/migration.sql +32 -0
  153. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124163749_init_with_profile_and_settings/migration.sql +33 -0
  154. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124190929_add_render_model/migration.sql +13 -0
  155. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124200534_add_post_indexes/migration.sql +16 -0
  156. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/migration_lock.toml +3 -0
  157. package/dist/templates/backend/nestjs-api-sqlite/prisma/schema.prisma +76 -0
  158. package/dist/templates/backend/nestjs-api-sqlite/prisma/seed.ts +218 -0
  159. package/dist/templates/backend/nestjs-api-sqlite/prisma.config.ts +10 -0
  160. package/dist/templates/backend/nestjs-api-sqlite/src/app.module.ts +39 -0
  161. package/dist/templates/backend/nestjs-api-sqlite/src/app.service.ts +8 -0
  162. package/dist/templates/backend/nestjs-api-sqlite/src/auth/auth.controller.ts +36 -0
  163. package/dist/templates/backend/nestjs-api-sqlite/src/auth/auth.module.ts +22 -0
  164. package/dist/templates/backend/nestjs-api-sqlite/src/auth/auth.service.ts +63 -0
  165. package/dist/templates/backend/nestjs-api-sqlite/src/auth/decorators/roles.decorator.ts +5 -0
  166. package/dist/templates/backend/nestjs-api-sqlite/src/auth/dto/login-response.dto.ts +23 -0
  167. package/dist/templates/backend/nestjs-api-sqlite/src/auth/dto/login.dto.ts +27 -0
  168. package/dist/templates/backend/nestjs-api-sqlite/src/auth/guards/jwt-auth.guard.ts +20 -0
  169. package/dist/templates/backend/nestjs-api-sqlite/src/auth/guards/roles.guard.ts +23 -0
  170. package/dist/templates/backend/nestjs-api-sqlite/src/auth/strategies/jwt.strategy.ts +32 -0
  171. package/dist/templates/backend/nestjs-api-sqlite/src/auth/types.ts +18 -0
  172. package/dist/templates/backend/nestjs-api-sqlite/src/common/dto/paginated-response.dto.ts +16 -0
  173. package/dist/templates/backend/nestjs-api-sqlite/src/common/dto/pagination.dto.ts +31 -0
  174. package/dist/templates/backend/nestjs-api-sqlite/src/common/filters/http-exception.filter.ts +53 -0
  175. package/dist/templates/backend/nestjs-api-sqlite/src/config/env.validation.ts +35 -0
  176. package/dist/templates/backend/nestjs-api-sqlite/src/health/health.controller.ts +35 -0
  177. package/dist/templates/backend/nestjs-api-sqlite/src/health/health.module.ts +7 -0
  178. package/dist/templates/backend/nestjs-api-sqlite/src/main.ts +87 -0
  179. package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/create-post.dto.ts +32 -0
  180. package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/post-response.dto.ts +41 -0
  181. package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/update-post.dto.ts +31 -0
  182. package/dist/templates/backend/nestjs-api-sqlite/src/posts/posts.controller.ts +161 -0
  183. package/dist/templates/backend/nestjs-api-sqlite/src/posts/posts.module.ts +12 -0
  184. package/dist/templates/backend/nestjs-api-sqlite/src/posts/posts.service.ts +171 -0
  185. package/dist/templates/backend/nestjs-api-sqlite/src/prisma/prisma.module.ts +9 -0
  186. package/dist/templates/backend/nestjs-api-sqlite/src/prisma/prisma.service.ts +29 -0
  187. package/dist/templates/backend/nestjs-api-sqlite/src/users/constants/settings.constants.ts +9 -0
  188. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/profile-response.dto.ts +39 -0
  189. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/settings-response.dto.ts +18 -0
  190. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/update-profile.dto.ts +48 -0
  191. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/update-settings.dto.ts +40 -0
  192. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/user-response.dto.ts +18 -0
  193. package/dist/templates/backend/nestjs-api-sqlite/src/users/profile.service.ts +49 -0
  194. package/dist/templates/backend/nestjs-api-sqlite/src/users/settings.service.ts +82 -0
  195. package/dist/templates/backend/nestjs-api-sqlite/src/users/users.controller.ts +102 -0
  196. package/dist/templates/backend/nestjs-api-sqlite/src/users/users.module.ts +14 -0
  197. package/dist/templates/backend/nestjs-api-sqlite/src/users/users.service.ts +27 -0
  198. package/dist/templates/backend/nestjs-api-sqlite/test/README.md +412 -0
  199. package/dist/templates/backend/nestjs-api-sqlite/test/e2e/auth.e2e-spec.ts +147 -0
  200. package/dist/templates/backend/nestjs-api-sqlite/test/e2e/health.e2e-spec.ts +62 -0
  201. package/dist/templates/backend/nestjs-api-sqlite/test/e2e/posts.e2e-spec.ts +407 -0
  202. package/dist/templates/backend/nestjs-api-sqlite/test/e2e/users.e2e-spec.ts +287 -0
  203. package/dist/templates/backend/nestjs-api-sqlite/test/fixtures/test-data.ts +109 -0
  204. package/dist/templates/backend/nestjs-api-sqlite/test/helpers/auth.helper.ts +54 -0
  205. package/dist/templates/backend/nestjs-api-sqlite/test/helpers/db.helper.ts +72 -0
  206. package/dist/templates/backend/nestjs-api-sqlite/test/jest-e2e.json +12 -0
  207. package/dist/templates/backend/nestjs-api-sqlite/test/setup-e2e.ts +8 -0
  208. package/dist/templates/backend/nestjs-api-sqlite/test/unit/app.service.spec.ts +24 -0
  209. package/dist/templates/backend/nestjs-api-sqlite/test/unit/auth.controller.spec.ts +91 -0
  210. package/dist/templates/backend/nestjs-api-sqlite/test/unit/auth.service.spec.ts +161 -0
  211. package/dist/templates/backend/nestjs-api-sqlite/test/unit/health.controller.spec.ts +78 -0
  212. package/dist/templates/backend/nestjs-api-sqlite/test/unit/http-exception.filter.spec.ts +150 -0
  213. package/dist/templates/backend/nestjs-api-sqlite/test/unit/jwt-auth.guard.spec.ts +50 -0
  214. package/dist/templates/backend/nestjs-api-sqlite/test/unit/jwt.strategy.spec.ts +41 -0
  215. package/dist/templates/backend/nestjs-api-sqlite/test/unit/posts.controller.spec.ts +249 -0
  216. package/dist/templates/backend/nestjs-api-sqlite/test/unit/posts.service.spec.ts +328 -0
  217. package/dist/templates/backend/nestjs-api-sqlite/test/unit/profile.service.spec.ts +146 -0
  218. package/dist/templates/backend/nestjs-api-sqlite/test/unit/settings.service.spec.ts +242 -0
  219. package/dist/templates/backend/nestjs-api-sqlite/test/unit/users.controller.spec.ts +178 -0
  220. package/dist/templates/backend/nestjs-api-sqlite/test/unit/users.service.spec.ts +96 -0
  221. package/dist/templates/backend/nestjs-api-sqlite/tsconfig.build.json +4 -0
  222. package/dist/templates/backend/nestjs-api-sqlite/tsconfig.json +28 -0
  223. package/dist/templates/frontend/angular-base/.agents/skills/angular-component/SKILL.md +288 -0
  224. package/dist/templates/frontend/angular-base/.agents/skills/angular-component/references/component-patterns.md +358 -0
  225. package/dist/templates/frontend/angular-base/.agents/skills/angular-di/SKILL.md +387 -0
  226. package/dist/templates/frontend/angular-base/.agents/skills/angular-di/references/di-patterns.md +519 -0
  227. package/dist/templates/frontend/angular-base/.agents/skills/angular-directives/SKILL.md +437 -0
  228. package/dist/templates/frontend/angular-base/.agents/skills/angular-directives/references/directive-patterns.md +570 -0
  229. package/dist/templates/frontend/angular-base/.agents/skills/angular-forms/SKILL.md +434 -0
  230. package/dist/templates/frontend/angular-base/.agents/skills/angular-forms/references/form-patterns.md +398 -0
  231. package/dist/templates/frontend/angular-base/.agents/skills/angular-http/SKILL.md +366 -0
  232. package/dist/templates/frontend/angular-base/.agents/skills/angular-http/references/http-patterns.md +448 -0
  233. package/dist/templates/frontend/angular-base/.agents/skills/angular-routing/SKILL.md +395 -0
  234. package/dist/templates/frontend/angular-base/.agents/skills/angular-routing/references/routing-patterns.md +472 -0
  235. package/dist/templates/frontend/angular-base/.agents/skills/angular-signals/SKILL.md +302 -0
  236. package/dist/templates/frontend/angular-base/.agents/skills/angular-signals/references/signal-patterns.md +404 -0
  237. package/dist/templates/frontend/angular-base/.agents/skills/angular-ssr/SKILL.md +435 -0
  238. package/dist/templates/frontend/angular-base/.agents/skills/angular-ssr/references/ssr-patterns.md +497 -0
  239. package/dist/templates/frontend/angular-base/.agents/skills/angular-testing/SKILL.md +660 -0
  240. package/dist/templates/frontend/angular-base/.agents/skills/angular-testing/references/testing-patterns.md +707 -0
  241. package/dist/templates/frontend/angular-base/.agents/skills/angular-tooling/SKILL.md +352 -0
  242. package/dist/templates/frontend/angular-base/.agents/skills/angular-tooling/references/tooling-patterns.md +448 -0
  243. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-accessibility/SKILL.md +780 -0
  244. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-components/SKILL.md +718 -0
  245. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
  246. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
  247. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/SKILL.md +432 -0
  248. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
  249. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/SKILL.md +354 -0
  250. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
  251. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/SKILL.md +578 -0
  252. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
  253. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
  254. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
  255. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
  256. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-mobile-first/SKILL.md +768 -0
  257. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/SKILL.md +374 -0
  258. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
  259. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-plugins/SKILL.md +505 -0
  260. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
  261. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
  262. package/dist/templates/frontend/angular-base/.agents/skills/web-design-guidelines/SKILL.md +39 -0
  263. package/dist/templates/frontend/angular-base/.cursor/mcp.json +12 -0
  264. package/dist/templates/frontend/angular-base/.cursor/rules/angular-expert.mdc +153 -0
  265. package/dist/templates/frontend/angular-base/.editorconfig +17 -0
  266. package/dist/templates/frontend/angular-base/.eslintrc.json +52 -0
  267. package/dist/templates/frontend/angular-base/.github/workflows/ci.yml +122 -0
  268. package/dist/templates/frontend/angular-base/.husky/pre-commit +1 -0
  269. package/dist/templates/frontend/angular-base/.husky/pre-push +1 -0
  270. package/dist/templates/frontend/angular-base/.postcssrc.json +5 -0
  271. package/dist/templates/frontend/angular-base/.prettierignore +8 -0
  272. package/dist/templates/frontend/angular-base/.prettierrc.json +15 -0
  273. package/dist/templates/frontend/angular-base/.vscode/extensions.json +4 -0
  274. package/dist/templates/frontend/angular-base/.vscode/launch.json +20 -0
  275. package/dist/templates/frontend/angular-base/.vscode/mcp.json +9 -0
  276. package/dist/templates/frontend/angular-base/.vscode/tasks.json +42 -0
  277. package/dist/templates/frontend/angular-base/CONTRIBUTING.md +230 -0
  278. package/dist/templates/frontend/angular-base/README.md +383 -0
  279. package/dist/templates/frontend/angular-base/angular.json +84 -0
  280. package/dist/templates/frontend/angular-base/cypress/e2e/app.cy.ts +39 -0
  281. package/dist/templates/frontend/angular-base/cypress/e2e/auth.cy.ts +196 -0
  282. package/dist/templates/frontend/angular-base/cypress/e2e/dashboard.cy.ts +56 -0
  283. package/dist/templates/frontend/angular-base/cypress/e2e/home.cy.ts +35 -0
  284. package/dist/templates/frontend/angular-base/cypress/fixtures/example.json +4 -0
  285. package/dist/templates/frontend/angular-base/cypress/support/commands.ts +8 -0
  286. package/dist/templates/frontend/angular-base/cypress/support/e2e.ts +11 -0
  287. package/dist/templates/frontend/angular-base/cypress.config.ts +11 -0
  288. package/dist/templates/frontend/angular-base/docs/ARCHITECTURE.md +337 -0
  289. package/dist/templates/frontend/angular-base/docs/AUTHENTICATION.md +491 -0
  290. package/dist/templates/frontend/angular-base/docs/DEPLOYMENT.md +507 -0
  291. package/dist/templates/frontend/angular-base/docs/FEATURES.md +404 -0
  292. package/dist/templates/frontend/angular-base/docs/TESTING.md +418 -0
  293. package/dist/templates/frontend/angular-base/docs/THEMING.md +333 -0
  294. package/dist/templates/frontend/angular-base/docs/UI_LIBRARIES.md +380 -0
  295. package/dist/templates/frontend/angular-base/docs/USER_PROFILE_FLOW.md +431 -0
  296. package/dist/templates/frontend/angular-base/package-lock.json +13321 -0
  297. package/dist/templates/frontend/angular-base/package.json +93 -0
  298. package/dist/templates/frontend/angular-base/public/favicon.ico +0 -0
  299. package/dist/templates/frontend/angular-base/src/app/app.config.server.ts +14 -0
  300. package/dist/templates/frontend/angular-base/src/app/app.config.ts +32 -0
  301. package/dist/templates/frontend/angular-base/src/app/app.css +0 -0
  302. package/dist/templates/frontend/angular-base/src/app/app.html +1 -0
  303. package/dist/templates/frontend/angular-base/src/app/app.routes.server.ts +28 -0
  304. package/dist/templates/frontend/angular-base/src/app/app.routes.ts +67 -0
  305. package/dist/templates/frontend/angular-base/src/app/app.spec.ts +23 -0
  306. package/dist/templates/frontend/angular-base/src/app/app.ts +12 -0
  307. package/dist/templates/frontend/angular-base/src/app/core/guards/admin.guard.ts +16 -0
  308. package/dist/templates/frontend/angular-base/src/app/core/guards/auth.guard.spec.ts +43 -0
  309. package/dist/templates/frontend/angular-base/src/app/core/guards/auth.guard.ts +15 -0
  310. package/dist/templates/frontend/angular-base/src/app/core/index.ts +10 -0
  311. package/dist/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.spec.ts +43 -0
  312. package/dist/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.ts +53 -0
  313. package/dist/templates/frontend/angular-base/src/app/core/services/auth.service.spec.ts +33 -0
  314. package/dist/templates/frontend/angular-base/src/app/core/services/auth.service.ts +91 -0
  315. package/dist/templates/frontend/angular-base/src/app/core/services/theme.service.spec.ts +33 -0
  316. package/dist/templates/frontend/angular-base/src/app/core/services/theme.service.ts +136 -0
  317. package/dist/templates/frontend/angular-base/src/app/features/admin/index.ts +3 -0
  318. package/dist/templates/frontend/angular-base/src/app/features/admin/routes.ts +21 -0
  319. package/dist/templates/frontend/angular-base/src/app/features/admin/users/models/admin-user.model.ts +32 -0
  320. package/dist/templates/frontend/angular-base/src/app/features/admin/users/pages/user-form.page.ts +279 -0
  321. package/dist/templates/frontend/angular-base/src/app/features/admin/users/pages/user-list.page.ts +336 -0
  322. package/dist/templates/frontend/angular-base/src/app/features/admin/users/services/admin-user.service.ts +151 -0
  323. package/dist/templates/frontend/angular-base/src/app/features/auth/index.ts +2 -0
  324. package/dist/templates/frontend/angular-base/src/app/features/auth/models/auth.model.ts +39 -0
  325. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/login.page.spec.ts +44 -0
  326. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/login.page.ts +187 -0
  327. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.spec.ts +48 -0
  328. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.ts +171 -0
  329. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.spec.ts +53 -0
  330. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.ts +269 -0
  331. package/dist/templates/frontend/angular-base/src/app/features/auth/routes.ts +22 -0
  332. package/dist/templates/frontend/angular-base/src/app/features/customers/index.ts +3 -0
  333. package/dist/templates/frontend/angular-base/src/app/features/customers/models/customer.model.ts +41 -0
  334. package/dist/templates/frontend/angular-base/src/app/features/customers/pages/customer-detail.page.ts +299 -0
  335. package/dist/templates/frontend/angular-base/src/app/features/customers/pages/customer-form.page.ts +302 -0
  336. package/dist/templates/frontend/angular-base/src/app/features/customers/pages/customer-list.page.ts +439 -0
  337. package/dist/templates/frontend/angular-base/src/app/features/customers/routes.ts +21 -0
  338. package/dist/templates/frontend/angular-base/src/app/features/customers/services/customer.service.ts +162 -0
  339. package/dist/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.spec.ts +23 -0
  340. package/dist/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.ts +52 -0
  341. package/dist/templates/frontend/angular-base/src/app/features/dashboard/index.ts +1 -0
  342. package/dist/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.spec.ts +21 -0
  343. package/dist/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.ts +122 -0
  344. package/dist/templates/frontend/angular-base/src/app/features/dashboard/routes.ts +8 -0
  345. package/dist/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.spec.ts +37 -0
  346. package/dist/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.ts +48 -0
  347. package/dist/templates/frontend/angular-base/src/app/features/errors/index.ts +1 -0
  348. package/dist/templates/frontend/angular-base/src/app/features/errors/pages/forbidden.page.ts +50 -0
  349. package/dist/templates/frontend/angular-base/src/app/features/errors/pages/maintenance.page.ts +46 -0
  350. package/dist/templates/frontend/angular-base/src/app/features/errors/pages/not-found.page.ts +49 -0
  351. package/dist/templates/frontend/angular-base/src/app/features/errors/pages/server-error.page.ts +60 -0
  352. package/dist/templates/frontend/angular-base/src/app/features/errors/routes.ts +25 -0
  353. package/dist/templates/frontend/angular-base/src/app/features/home/index.ts +1 -0
  354. package/dist/templates/frontend/angular-base/src/app/features/home/pages/home.page.spec.ts +23 -0
  355. package/dist/templates/frontend/angular-base/src/app/features/home/pages/home.page.ts +105 -0
  356. package/dist/templates/frontend/angular-base/src/app/features/home/routes.ts +8 -0
  357. package/dist/templates/frontend/angular-base/src/app/features/projects/index.ts +3 -0
  358. package/dist/templates/frontend/angular-base/src/app/features/projects/models/project.model.ts +48 -0
  359. package/dist/templates/frontend/angular-base/src/app/features/projects/pages/project-detail.page.ts +444 -0
  360. package/dist/templates/frontend/angular-base/src/app/features/projects/pages/project-form.page.ts +393 -0
  361. package/dist/templates/frontend/angular-base/src/app/features/projects/pages/project-list.page.ts +411 -0
  362. package/dist/templates/frontend/angular-base/src/app/features/projects/routes.ts +21 -0
  363. package/dist/templates/frontend/angular-base/src/app/features/projects/services/project.service.ts +227 -0
  364. package/dist/templates/frontend/angular-base/src/app/features/reports/index.ts +3 -0
  365. package/dist/templates/frontend/angular-base/src/app/features/reports/models/report.model.ts +27 -0
  366. package/dist/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.html +246 -0
  367. package/dist/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.ts +135 -0
  368. package/dist/templates/frontend/angular-base/src/app/features/reports/routes.ts +13 -0
  369. package/dist/templates/frontend/angular-base/src/app/features/reports/services/report.service.ts +141 -0
  370. package/dist/templates/frontend/angular-base/src/app/features/user/index.ts +3 -0
  371. package/dist/templates/frontend/angular-base/src/app/features/user/models/user.model.ts +23 -0
  372. package/dist/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.spec.ts +27 -0
  373. package/dist/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.ts +414 -0
  374. package/dist/templates/frontend/angular-base/src/app/features/user/pages/profile.page.spec.ts +39 -0
  375. package/dist/templates/frontend/angular-base/src/app/features/user/pages/profile.page.ts +232 -0
  376. package/dist/templates/frontend/angular-base/src/app/features/user/pages/settings.page.spec.ts +28 -0
  377. package/dist/templates/frontend/angular-base/src/app/features/user/pages/settings.page.ts +284 -0
  378. package/dist/templates/frontend/angular-base/src/app/features/user/routes.ts +21 -0
  379. package/dist/templates/frontend/angular-base/src/app/features/user/services/user.service.ts +74 -0
  380. package/dist/templates/frontend/angular-base/src/app/layout/footer/footer.component.spec.ts +25 -0
  381. package/dist/templates/frontend/angular-base/src/app/layout/footer/footer.component.ts +67 -0
  382. package/dist/templates/frontend/angular-base/src/app/layout/index.ts +3 -0
  383. package/dist/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.spec.ts +23 -0
  384. package/dist/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.ts +30 -0
  385. package/dist/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.spec.ts +23 -0
  386. package/dist/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.ts +293 -0
  387. package/dist/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.spec.ts +36 -0
  388. package/dist/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.ts +70 -0
  389. package/dist/templates/frontend/angular-base/src/app/shared/components/button/button.component.spec.ts +44 -0
  390. package/dist/templates/frontend/angular-base/src/app/shared/components/button/button.component.ts +64 -0
  391. package/dist/templates/frontend/angular-base/src/app/shared/components/card/card.component.spec.ts +29 -0
  392. package/dist/templates/frontend/angular-base/src/app/shared/components/card/card.component.ts +60 -0
  393. package/dist/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.spec.ts +49 -0
  394. package/dist/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.ts +280 -0
  395. package/dist/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.spec.ts +36 -0
  396. package/dist/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.ts +56 -0
  397. package/dist/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.spec.ts +32 -0
  398. package/dist/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.ts +131 -0
  399. package/dist/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.spec.ts +38 -0
  400. package/dist/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.ts +194 -0
  401. package/dist/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.spec.ts +37 -0
  402. package/dist/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.ts +125 -0
  403. package/dist/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.spec.ts +30 -0
  404. package/dist/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.ts +55 -0
  405. package/dist/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.spec.ts +49 -0
  406. package/dist/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.ts +101 -0
  407. package/dist/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.spec.ts +65 -0
  408. package/dist/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.ts +219 -0
  409. package/dist/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.spec.ts +33 -0
  410. package/dist/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.ts +25 -0
  411. package/dist/templates/frontend/angular-base/src/app/shared/index.ts +18 -0
  412. package/dist/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.spec.ts +29 -0
  413. package/dist/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.ts +39 -0
  414. package/dist/templates/frontend/angular-base/src/environments/environment.development.ts +4 -0
  415. package/dist/templates/frontend/angular-base/src/environments/environment.ts +4 -0
  416. package/dist/templates/frontend/angular-base/src/index.html +44 -0
  417. package/dist/templates/frontend/angular-base/src/main.server.ts +7 -0
  418. package/dist/templates/frontend/angular-base/src/main.ts +5 -0
  419. package/dist/templates/frontend/angular-base/src/server.ts +66 -0
  420. package/dist/templates/frontend/angular-base/src/styles.css +209 -0
  421. package/dist/templates/frontend/angular-base/src/test-setup.ts +10 -0
  422. package/dist/templates/frontend/angular-base/tsconfig.app.json +17 -0
  423. package/dist/templates/frontend/angular-base/tsconfig.json +41 -0
  424. package/dist/templates/frontend/angular-base/tsconfig.spec.json +15 -0
  425. package/dist/templates/frontend/angular-base/vitest.config.ts +25 -0
  426. package/dist/templates/frontend/react-vite/.cursor/skills/architecture/SKILL.md +26 -0
  427. package/dist/templates/frontend/react-vite/.cursor/skills/components-shadcn/SKILL.md +23 -0
  428. package/dist/templates/frontend/react-vite/.cursor/skills/daisyui/SKILL.md +98 -0
  429. package/dist/templates/frontend/react-vite/.cursor/skills/routing/SKILL.md +32 -0
  430. package/dist/templates/frontend/react-vite/.cursor/skills/testing/SKILL.md +55 -0
  431. package/dist/templates/frontend/react-vite/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
  432. package/dist/templates/frontend/react-vite/.cursor/skills/ui-and-styling/SKILL.md +32 -0
  433. package/dist/templates/frontend/react-vite/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
  434. package/dist/templates/frontend/react-vite/.prettierrc +6 -0
  435. package/dist/templates/frontend/react-vite/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
  436. package/dist/templates/frontend/react-vite/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
  437. package/dist/templates/frontend/react-vite/.vscode/extensions.json +7 -0
  438. package/dist/templates/frontend/react-vite/README.md +75 -0
  439. package/dist/templates/frontend/react-vite/components.json +22 -0
  440. package/dist/templates/frontend/react-vite/eslint.config.js +31 -0
  441. package/dist/templates/frontend/react-vite/index.html +13 -0
  442. package/dist/templates/frontend/react-vite/package.json +62 -0
  443. package/dist/templates/frontend/react-vite/pnpm-lock.yaml +4487 -0
  444. package/dist/templates/frontend/react-vite/pnpm-workspace.yaml +2 -0
  445. package/dist/templates/frontend/react-vite/src/assets/react.svg +1 -0
  446. package/dist/templates/frontend/react-vite/src/components/ui/badge.tsx +37 -0
  447. package/dist/templates/frontend/react-vite/src/components/ui/breadcrumb.tsx +106 -0
  448. package/dist/templates/frontend/react-vite/src/components/ui/button.tsx +58 -0
  449. package/dist/templates/frontend/react-vite/src/components/ui/card.tsx +72 -0
  450. package/dist/templates/frontend/react-vite/src/components/ui/form.tsx +165 -0
  451. package/dist/templates/frontend/react-vite/src/components/ui/input.tsx +22 -0
  452. package/dist/templates/frontend/react-vite/src/components/ui/label.tsx +24 -0
  453. package/dist/templates/frontend/react-vite/src/components/ui/password-input.tsx +41 -0
  454. package/dist/templates/frontend/react-vite/src/components/ui/separator.tsx +28 -0
  455. package/dist/templates/frontend/react-vite/src/components/ui/tabs.tsx +62 -0
  456. package/dist/templates/frontend/react-vite/src/components/ui/textarea.tsx +21 -0
  457. package/dist/templates/frontend/react-vite/src/index.css +104 -0
  458. package/dist/templates/frontend/react-vite/src/lib/queryClient.ts +11 -0
  459. package/dist/templates/frontend/react-vite/src/lib/utils.ts +6 -0
  460. package/dist/templates/frontend/react-vite/src/main.tsx +33 -0
  461. package/dist/templates/frontend/react-vite/src/routeTree.gen.ts +77 -0
  462. package/dist/templates/frontend/react-vite/src/router.tsx +13 -0
  463. package/dist/templates/frontend/react-vite/src/routes/__root.tsx +82 -0
  464. package/dist/templates/frontend/react-vite/src/routes/index.tsx +187 -0
  465. package/dist/templates/frontend/react-vite/src/routes/otra-ruta.tsx +319 -0
  466. package/dist/templates/frontend/react-vite/src/test/setup.ts +1 -0
  467. package/dist/templates/frontend/react-vite/tsconfig.app.json +34 -0
  468. package/dist/templates/frontend/react-vite/tsconfig.json +10 -0
  469. package/dist/templates/frontend/react-vite/tsconfig.node.json +26 -0
  470. package/dist/templates/frontend/react-vite/vite.config.ts +22 -0
  471. package/dist/templates/frontend/react-vite/vitest.config.ts +9 -0
  472. package/dist/templates/frontend/react-vite-help/.cursor/skills/architecture/SKILL.md +26 -0
  473. package/dist/templates/frontend/react-vite-help/.cursor/skills/components-shadcn/SKILL.md +23 -0
  474. package/dist/templates/frontend/react-vite-help/.cursor/skills/daisyui/SKILL.md +98 -0
  475. package/dist/templates/frontend/react-vite-help/.cursor/skills/routing/SKILL.md +32 -0
  476. package/dist/templates/frontend/react-vite-help/.cursor/skills/testing/SKILL.md +55 -0
  477. package/dist/templates/frontend/react-vite-help/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
  478. package/dist/templates/frontend/react-vite-help/.cursor/skills/ui-and-styling/SKILL.md +32 -0
  479. package/dist/templates/frontend/react-vite-help/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
  480. package/dist/templates/frontend/react-vite-help/.prettierrc +6 -0
  481. package/dist/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
  482. package/dist/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
  483. package/dist/templates/frontend/react-vite-help/.vscode/extensions.json +7 -0
  484. package/dist/templates/frontend/react-vite-help/README.md +75 -0
  485. package/dist/templates/frontend/react-vite-help/components.json +22 -0
  486. package/dist/templates/frontend/react-vite-help/eslint.config.js +31 -0
  487. package/dist/templates/frontend/react-vite-help/index.html +13 -0
  488. package/dist/templates/frontend/react-vite-help/package.json +62 -0
  489. package/dist/templates/frontend/react-vite-help/pnpm-lock.yaml +4487 -0
  490. package/dist/templates/frontend/react-vite-help/pnpm-workspace.yaml +2 -0
  491. package/dist/templates/frontend/react-vite-help/src/assets/react.svg +1 -0
  492. package/dist/templates/frontend/react-vite-help/src/components/documentacion/entorno.tsx +99 -0
  493. package/dist/templates/frontend/react-vite-help/src/components/documentacion/estructura.tsx +100 -0
  494. package/dist/templates/frontend/react-vite-help/src/components/documentacion/figma-mcp.tsx +200 -0
  495. package/dist/templates/frontend/react-vite-help/src/components/documentacion/inicio.tsx +69 -0
  496. package/dist/templates/frontend/react-vite-help/src/components/documentacion/instalacion.tsx +72 -0
  497. package/dist/templates/frontend/react-vite-help/src/components/documentacion/personalizacion.tsx +163 -0
  498. package/dist/templates/frontend/react-vite-help/src/components/documentacion/rutas.tsx +138 -0
  499. package/dist/templates/frontend/react-vite-help/src/components/documentacion/stack.tsx +401 -0
  500. package/dist/templates/frontend/react-vite-help/src/components/ui/badge.tsx +37 -0
  501. package/dist/templates/frontend/react-vite-help/src/components/ui/breadcrumb.tsx +106 -0
  502. package/dist/templates/frontend/react-vite-help/src/components/ui/button.tsx +58 -0
  503. package/dist/templates/frontend/react-vite-help/src/components/ui/card.tsx +72 -0
  504. package/dist/templates/frontend/react-vite-help/src/components/ui/form.tsx +165 -0
  505. package/dist/templates/frontend/react-vite-help/src/components/ui/input.tsx +22 -0
  506. package/dist/templates/frontend/react-vite-help/src/components/ui/label.tsx +24 -0
  507. package/dist/templates/frontend/react-vite-help/src/components/ui/password-input.tsx +41 -0
  508. package/dist/templates/frontend/react-vite-help/src/components/ui/separator.tsx +28 -0
  509. package/dist/templates/frontend/react-vite-help/src/components/ui/tabs.tsx +62 -0
  510. package/dist/templates/frontend/react-vite-help/src/components/ui/textarea.tsx +21 -0
  511. package/dist/templates/frontend/react-vite-help/src/data/proyectos.json +56 -0
  512. package/dist/templates/frontend/react-vite-help/src/index.css +104 -0
  513. package/dist/templates/frontend/react-vite-help/src/lib/queryClient.ts +11 -0
  514. package/dist/templates/frontend/react-vite-help/src/lib/utils.ts +6 -0
  515. package/dist/templates/frontend/react-vite-help/src/main.tsx +33 -0
  516. package/dist/templates/frontend/react-vite-help/src/routeTree.gen.ts +241 -0
  517. package/dist/templates/frontend/react-vite-help/src/router.tsx +13 -0
  518. package/dist/templates/frontend/react-vite-help/src/routes/__root.tsx +92 -0
  519. package/dist/templates/frontend/react-vite-help/src/routes/auth/iniciar-sesion.tsx +139 -0
  520. package/dist/templates/frontend/react-vite-help/src/routes/auth/registro.tsx +205 -0
  521. package/dist/templates/frontend/react-vite-help/src/routes/contacto.tsx +60 -0
  522. package/dist/templates/frontend/react-vite-help/src/routes/dashbord.tsx +9 -0
  523. package/dist/templates/frontend/react-vite-help/src/routes/documentacion.tsx +80 -0
  524. package/dist/templates/frontend/react-vite-help/src/routes/index.test.tsx +42 -0
  525. package/dist/templates/frontend/react-vite-help/src/routes/index.tsx +211 -0
  526. package/dist/templates/frontend/react-vite-help/src/routes/perfil.tsx +9 -0
  527. package/dist/templates/frontend/react-vite-help/src/routes/proyectos.$proyectoId.tsx +156 -0
  528. package/dist/templates/frontend/react-vite-help/src/routes/proyectos.tsx +93 -0
  529. package/dist/templates/frontend/react-vite-help/src/test/setup.ts +1 -0
  530. package/dist/templates/frontend/react-vite-help/tsconfig.app.json +34 -0
  531. package/dist/templates/frontend/react-vite-help/tsconfig.json +10 -0
  532. package/dist/templates/frontend/react-vite-help/tsconfig.node.json +26 -0
  533. package/dist/templates/frontend/react-vite-help/vite.config.ts +22 -0
  534. package/dist/templates/frontend/react-vite-help/vitest.config.ts +9 -0
  535. package/dist/templates/mobile/.gitkeep +1 -0
  536. package/dist/templates/mobile/expo-base/.cursor/rules/general-rules.mdc +231 -0
  537. package/dist/templates/mobile/expo-base/.cursor/rules/react-native-rules.mdc +1348 -0
  538. package/dist/templates/mobile/expo-base/.env +1 -0
  539. package/dist/templates/mobile/expo-base/.husky/commit-msg +4 -0
  540. package/dist/templates/mobile/expo-base/.husky/pre-commit +1 -0
  541. package/dist/templates/mobile/expo-base/.lintstagedrc.js +25 -0
  542. package/dist/templates/mobile/expo-base/.prettierignore +10 -0
  543. package/dist/templates/mobile/expo-base/.prettierrc +11 -0
  544. package/dist/templates/mobile/expo-base/.vscode/extensions.json +1 -0
  545. package/dist/templates/mobile/expo-base/.vscode/settings.json +7 -0
  546. package/dist/templates/mobile/expo-base/CHANGELOG.md +155 -0
  547. package/dist/templates/mobile/expo-base/IMPLEMENTATION_SUMMARY.md +413 -0
  548. package/dist/templates/mobile/expo-base/README.md +510 -0
  549. package/dist/templates/mobile/expo-base/SETUP_NOTES.md +233 -0
  550. package/dist/templates/mobile/expo-base/TEMPLATE_USAGE.md +623 -0
  551. package/dist/templates/mobile/expo-base/WARP.md +123 -0
  552. package/dist/templates/mobile/expo-base/app/(public)/_layout.tsx +21 -0
  553. package/dist/templates/mobile/expo-base/app/(public)/forgot-password.tsx +3 -0
  554. package/dist/templates/mobile/expo-base/app/(public)/login.tsx +3 -0
  555. package/dist/templates/mobile/expo-base/app/(public)/register.tsx +3 -0
  556. package/dist/templates/mobile/expo-base/app/(tabs)/_layout.tsx +60 -0
  557. package/dist/templates/mobile/expo-base/app/(tabs)/explore.tsx +235 -0
  558. package/dist/templates/mobile/expo-base/app/(tabs)/index.tsx +290 -0
  559. package/dist/templates/mobile/expo-base/app/(tabs)/profile.tsx +3 -0
  560. package/dist/templates/mobile/expo-base/app/_layout.tsx +143 -0
  561. package/dist/templates/mobile/expo-base/app/modal.tsx +29 -0
  562. package/dist/templates/mobile/expo-base/app/onboarding.tsx +3 -0
  563. package/dist/templates/mobile/expo-base/app/profile/_layout.tsx +44 -0
  564. package/dist/templates/mobile/expo-base/app/profile/change-password.tsx +3 -0
  565. package/dist/templates/mobile/expo-base/app/profile/edit.tsx +3 -0
  566. package/dist/templates/mobile/expo-base/app/settings/_layout.tsx +62 -0
  567. package/dist/templates/mobile/expo-base/app/settings/about.tsx +3 -0
  568. package/dist/templates/mobile/expo-base/app/settings/index.tsx +3 -0
  569. package/dist/templates/mobile/expo-base/app/settings/language.tsx +3 -0
  570. package/dist/templates/mobile/expo-base/app/settings/notifications.tsx +3 -0
  571. package/dist/templates/mobile/expo-base/app/settings/theme.tsx +3 -0
  572. package/dist/templates/mobile/expo-base/app.json +31 -0
  573. package/dist/templates/mobile/expo-base/commitlint.config.js +50 -0
  574. package/dist/templates/mobile/expo-base/docs/ARCHITECTURE.md +565 -0
  575. package/dist/templates/mobile/expo-base/docs/CI_CD.md +461 -0
  576. package/dist/templates/mobile/expo-base/docs/COMPONENTS.md +1103 -0
  577. package/dist/templates/mobile/expo-base/docs/CONTRIBUTING.md +733 -0
  578. package/dist/templates/mobile/expo-base/docs/DESIGN_TOKENS.md +832 -0
  579. package/dist/templates/mobile/expo-base/docs/GIT_CONVENTIONS.md +411 -0
  580. package/dist/templates/mobile/expo-base/docs/I18N.md +701 -0
  581. package/dist/templates/mobile/expo-base/docs/TESTING.md +565 -0
  582. package/dist/templates/mobile/expo-base/docs/THEMING.md +753 -0
  583. package/dist/templates/mobile/expo-base/docs/VERSIONING.md +518 -0
  584. package/dist/templates/mobile/expo-base/eslint.config.js +180 -0
  585. package/dist/templates/mobile/expo-base/jest.config.js +51 -0
  586. package/dist/templates/mobile/expo-base/jest.setup.js +106 -0
  587. package/dist/templates/mobile/expo-base/package.json +74 -0
  588. package/dist/templates/mobile/expo-base/pnpm-lock.yaml +11354 -0
  589. package/dist/templates/mobile/expo-base/pnpm-workspace.yaml +4 -0
  590. package/dist/templates/mobile/expo-base/src/__tests__/helpers/test-utils.tsx +77 -0
  591. package/dist/templates/mobile/expo-base/src/__tests__/mocks/api.ts +65 -0
  592. package/dist/templates/mobile/expo-base/src/__tests__/mocks/i18n.ts +22 -0
  593. package/dist/templates/mobile/expo-base/src/__tests__/mocks/index.ts +7 -0
  594. package/dist/templates/mobile/expo-base/src/__tests__/mocks/navigation.ts +47 -0
  595. package/dist/templates/mobile/expo-base/src/__tests__/mocks/theme.ts +46 -0
  596. package/dist/templates/mobile/expo-base/src/assets/images/android-icon-background.png +0 -0
  597. package/dist/templates/mobile/expo-base/src/assets/images/android-icon-foreground.png +0 -0
  598. package/dist/templates/mobile/expo-base/src/assets/images/android-icon-monochrome.png +0 -0
  599. package/dist/templates/mobile/expo-base/src/assets/images/favicon.png +0 -0
  600. package/dist/templates/mobile/expo-base/src/assets/images/icon.png +0 -0
  601. package/dist/templates/mobile/expo-base/src/assets/images/partial-react-logo.png +0 -0
  602. package/dist/templates/mobile/expo-base/src/assets/images/react-logo.png +0 -0
  603. package/dist/templates/mobile/expo-base/src/assets/images/react-logo@2x.png +0 -0
  604. package/dist/templates/mobile/expo-base/src/assets/images/react-logo@3x.png +0 -0
  605. package/dist/templates/mobile/expo-base/src/assets/images/splash-icon.png +0 -0
  606. package/dist/templates/mobile/expo-base/src/components/external-link.tsx +25 -0
  607. package/dist/templates/mobile/expo-base/src/components/feedback/empty-state.tsx +150 -0
  608. package/dist/templates/mobile/expo-base/src/components/feedback/error-boundary.tsx +145 -0
  609. package/dist/templates/mobile/expo-base/src/components/feedback/error-screen.tsx +121 -0
  610. package/dist/templates/mobile/expo-base/src/components/feedback/index.ts +11 -0
  611. package/dist/templates/mobile/expo-base/src/components/feedback/loading.tsx +155 -0
  612. package/dist/templates/mobile/expo-base/src/components/haptic-tab.tsx +18 -0
  613. package/dist/templates/mobile/expo-base/src/components/hello-wave.tsx +19 -0
  614. package/dist/templates/mobile/expo-base/src/components/layout/column.tsx +49 -0
  615. package/dist/templates/mobile/expo-base/src/components/layout/container.tsx +41 -0
  616. package/dist/templates/mobile/expo-base/src/components/layout/index.ts +14 -0
  617. package/dist/templates/mobile/expo-base/src/components/layout/row.tsx +52 -0
  618. package/dist/templates/mobile/expo-base/src/components/layout/screen.tsx +110 -0
  619. package/dist/templates/mobile/expo-base/src/components/layout/section.tsx +37 -0
  620. package/dist/templates/mobile/expo-base/src/components/parallax-scroll-view.tsx +79 -0
  621. package/dist/templates/mobile/expo-base/src/components/themed-text.tsx +60 -0
  622. package/dist/templates/mobile/expo-base/src/components/themed-view.tsx +14 -0
  623. package/dist/templates/mobile/expo-base/src/components/ui/__tests__/button.test.tsx +206 -0
  624. package/dist/templates/mobile/expo-base/src/components/ui/avatar.tsx +141 -0
  625. package/dist/templates/mobile/expo-base/src/components/ui/badge.tsx +175 -0
  626. package/dist/templates/mobile/expo-base/src/components/ui/button.tsx +247 -0
  627. package/dist/templates/mobile/expo-base/src/components/ui/card.tsx +127 -0
  628. package/dist/templates/mobile/expo-base/src/components/ui/collapsible.tsx +45 -0
  629. package/dist/templates/mobile/expo-base/src/components/ui/divider.tsx +50 -0
  630. package/dist/templates/mobile/expo-base/src/components/ui/icon-symbol.ios.tsx +32 -0
  631. package/dist/templates/mobile/expo-base/src/components/ui/icon-symbol.tsx +41 -0
  632. package/dist/templates/mobile/expo-base/src/components/ui/icon.tsx +137 -0
  633. package/dist/templates/mobile/expo-base/src/components/ui/index.ts +20 -0
  634. package/dist/templates/mobile/expo-base/src/components/ui/input.tsx +242 -0
  635. package/dist/templates/mobile/expo-base/src/constants/theme.ts +53 -0
  636. package/dist/templates/mobile/expo-base/src/contexts/auth-context.tsx +246 -0
  637. package/dist/templates/mobile/expo-base/src/contexts/index.ts +8 -0
  638. package/dist/templates/mobile/expo-base/src/contexts/query-client.tsx +43 -0
  639. package/dist/templates/mobile/expo-base/src/contexts/theme-context.tsx +111 -0
  640. package/dist/templates/mobile/expo-base/src/features/auth/forgot-password-screen.tsx +164 -0
  641. package/dist/templates/mobile/expo-base/src/features/auth/index.ts +7 -0
  642. package/dist/templates/mobile/expo-base/src/features/auth/login-screen.tsx +177 -0
  643. package/dist/templates/mobile/expo-base/src/features/auth/register-screen.tsx +220 -0
  644. package/dist/templates/mobile/expo-base/src/features/onboarding/README.md +190 -0
  645. package/dist/templates/mobile/expo-base/src/features/onboarding/index.ts +7 -0
  646. package/dist/templates/mobile/expo-base/src/features/onboarding/onboarding-debug.tsx +120 -0
  647. package/dist/templates/mobile/expo-base/src/features/onboarding/onboarding-screen.tsx +242 -0
  648. package/dist/templates/mobile/expo-base/src/features/onboarding/onboarding-utils.ts +49 -0
  649. package/dist/templates/mobile/expo-base/src/features/profile/change-password-screen.tsx +154 -0
  650. package/dist/templates/mobile/expo-base/src/features/profile/edit-profile-screen.tsx +183 -0
  651. package/dist/templates/mobile/expo-base/src/features/profile/index.ts +7 -0
  652. package/dist/templates/mobile/expo-base/src/features/profile/profile-screen.tsx +177 -0
  653. package/dist/templates/mobile/expo-base/src/features/settings/about-screen.tsx +167 -0
  654. package/dist/templates/mobile/expo-base/src/features/settings/index.ts +9 -0
  655. package/dist/templates/mobile/expo-base/src/features/settings/language-settings-screen.tsx +97 -0
  656. package/dist/templates/mobile/expo-base/src/features/settings/notifications-settings-screen.tsx +128 -0
  657. package/dist/templates/mobile/expo-base/src/features/settings/settings-screen.tsx +141 -0
  658. package/dist/templates/mobile/expo-base/src/features/settings/theme-settings-screen.tsx +149 -0
  659. package/dist/templates/mobile/expo-base/src/hooks/__tests__/use-theme.test.ts +151 -0
  660. package/dist/templates/mobile/expo-base/src/hooks/index.ts +13 -0
  661. package/dist/templates/mobile/expo-base/src/hooks/use-api.ts +206 -0
  662. package/dist/templates/mobile/expo-base/src/hooks/use-auth.ts +7 -0
  663. package/dist/templates/mobile/expo-base/src/hooks/use-color-scheme.ts +19 -0
  664. package/dist/templates/mobile/expo-base/src/hooks/use-color-scheme.web.ts +31 -0
  665. package/dist/templates/mobile/expo-base/src/hooks/use-theme-color.ts +21 -0
  666. package/dist/templates/mobile/expo-base/src/hooks/use-theme.ts +60 -0
  667. package/dist/templates/mobile/expo-base/src/hooks/use-translation.ts +48 -0
  668. package/dist/templates/mobile/expo-base/src/i18n/index.ts +113 -0
  669. package/dist/templates/mobile/expo-base/src/i18n/locales/en-US.json +134 -0
  670. package/dist/templates/mobile/expo-base/src/i18n/locales/es-AR.json +134 -0
  671. package/dist/templates/mobile/expo-base/src/scripts/reset-project.js +112 -0
  672. package/dist/templates/mobile/expo-base/src/services/api/client.ts +190 -0
  673. package/dist/templates/mobile/expo-base/src/services/api/endpoints.ts +45 -0
  674. package/dist/templates/mobile/expo-base/src/services/api/index.ts +7 -0
  675. package/dist/templates/mobile/expo-base/src/services/storage/secure-storage.ts +56 -0
  676. package/dist/templates/mobile/expo-base/src/theme/colors.ts +147 -0
  677. package/dist/templates/mobile/expo-base/src/theme/index.ts +40 -0
  678. package/dist/templates/mobile/expo-base/src/theme/semantic-colors.ts +221 -0
  679. package/dist/templates/mobile/expo-base/src/theme/shadows.ts +123 -0
  680. package/dist/templates/mobile/expo-base/src/theme/spacing.ts +118 -0
  681. package/dist/templates/mobile/expo-base/src/theme/theme-config.ts +111 -0
  682. package/dist/templates/mobile/expo-base/src/theme/tokens.ts +218 -0
  683. package/dist/templates/mobile/expo-base/src/theme/typography.ts +152 -0
  684. package/dist/templates/mobile/expo-base/src/types/index.ts +6 -0
  685. package/dist/templates/mobile/expo-base/src/types/models.ts +153 -0
  686. package/dist/templates/mobile/expo-base/src/types/navigation.ts +67 -0
  687. package/dist/templates/mobile/expo-base/src/utils/__tests__/validators.test.ts +312 -0
  688. package/dist/templates/mobile/expo-base/src/utils/constants.ts +167 -0
  689. package/dist/templates/mobile/expo-base/src/utils/formatters.ts +222 -0
  690. package/dist/templates/mobile/expo-base/src/utils/index.ts +7 -0
  691. package/dist/templates/mobile/expo-base/src/utils/validators.ts +187 -0
  692. package/dist/templates/mobile/expo-base/tsconfig.json +26 -0
  693. package/dist/test-cli.js +40 -0
  694. package/dist/types/index.js +1 -0
  695. package/package.json +25 -0
  696. package/templates/backend/.gitkeep +1 -0
  697. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-endpoint.md +209 -0
  698. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-model.md +201 -0
  699. package/templates/backend/nestjs-api-postgres/.cursor/rules/api-rest.mdc +126 -0
  700. package/templates/backend/nestjs-api-postgres/.cursor/rules/authentication-security.mdc +86 -0
  701. package/templates/backend/nestjs-api-postgres/.cursor/rules/dto-validation.mdc +93 -0
  702. package/templates/backend/nestjs-api-postgres/.cursor/rules/general-rules.mdc +126 -0
  703. package/templates/backend/nestjs-api-postgres/.cursor/rules/nestjs-architecture.mdc +83 -0
  704. package/templates/backend/nestjs-api-postgres/.cursor/rules/prisma-standards.mdc +90 -0
  705. package/templates/backend/nestjs-api-postgres/.cursor/rules/swagger-documentation.mdc +90 -0
  706. package/templates/backend/nestjs-api-postgres/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  707. package/templates/backend/nestjs-api-postgres/.cursor/skills/docker-expert/SKILL.md +409 -0
  708. package/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  709. package/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  710. package/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  711. package/templates/backend/nestjs-api-postgres/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  712. package/templates/backend/nestjs-api-postgres/.cursor/skills/postgresql-table-design/SKILL.md +202 -0
  713. package/templates/backend/nestjs-api-postgres/.cursor/skills/prisma-expert/SKILL.md +355 -0
  714. package/templates/backend/nestjs-api-postgres/.dockerignore +50 -0
  715. package/templates/backend/nestjs-api-postgres/.env.example +18 -0
  716. package/templates/backend/nestjs-api-postgres/.env.test +18 -0
  717. package/templates/backend/nestjs-api-postgres/.prettierrc +4 -0
  718. package/templates/backend/nestjs-api-postgres/README.md +1502 -0
  719. package/templates/backend/nestjs-api-postgres/docker-compose.yml +24 -0
  720. package/templates/backend/nestjs-api-postgres/eslint.config.mjs +41 -0
  721. package/templates/backend/nestjs-api-postgres/nest-cli.json +8 -0
  722. package/templates/backend/nestjs-api-postgres/package.json +107 -0
  723. package/templates/backend/nestjs-api-postgres/prisma/migrations/20260126125423_init/migration.sql +84 -0
  724. package/templates/backend/nestjs-api-postgres/prisma/migrations/migration_lock.toml +3 -0
  725. package/templates/backend/nestjs-api-postgres/prisma/schema.prisma +76 -0
  726. package/templates/backend/nestjs-api-postgres/prisma/seed.ts +220 -0
  727. package/templates/backend/nestjs-api-postgres/prisma.config.ts +10 -0
  728. package/templates/backend/nestjs-api-postgres/src/app.module.ts +39 -0
  729. package/templates/backend/nestjs-api-postgres/src/app.service.ts +8 -0
  730. package/templates/backend/nestjs-api-postgres/src/auth/auth.controller.ts +36 -0
  731. package/templates/backend/nestjs-api-postgres/src/auth/auth.module.ts +22 -0
  732. package/templates/backend/nestjs-api-postgres/src/auth/auth.service.ts +63 -0
  733. package/templates/backend/nestjs-api-postgres/src/auth/decorators/roles.decorator.ts +5 -0
  734. package/templates/backend/nestjs-api-postgres/src/auth/dto/login-response.dto.ts +23 -0
  735. package/templates/backend/nestjs-api-postgres/src/auth/dto/login.dto.ts +27 -0
  736. package/templates/backend/nestjs-api-postgres/src/auth/guards/jwt-auth.guard.ts +20 -0
  737. package/templates/backend/nestjs-api-postgres/src/auth/guards/roles.guard.ts +23 -0
  738. package/templates/backend/nestjs-api-postgres/src/auth/strategies/jwt.strategy.ts +32 -0
  739. package/templates/backend/nestjs-api-postgres/src/auth/types.ts +18 -0
  740. package/templates/backend/nestjs-api-postgres/src/common/dto/paginated-response.dto.ts +16 -0
  741. package/templates/backend/nestjs-api-postgres/src/common/dto/pagination.dto.ts +31 -0
  742. package/templates/backend/nestjs-api-postgres/src/common/filters/http-exception.filter.ts +53 -0
  743. package/templates/backend/nestjs-api-postgres/src/config/env.validation.ts +41 -0
  744. package/templates/backend/nestjs-api-postgres/src/health/health.controller.ts +35 -0
  745. package/templates/backend/nestjs-api-postgres/src/health/health.module.ts +7 -0
  746. package/templates/backend/nestjs-api-postgres/src/main.ts +87 -0
  747. package/templates/backend/nestjs-api-postgres/src/posts/dto/create-post.dto.ts +32 -0
  748. package/templates/backend/nestjs-api-postgres/src/posts/dto/post-response.dto.ts +41 -0
  749. package/templates/backend/nestjs-api-postgres/src/posts/dto/update-post.dto.ts +31 -0
  750. package/templates/backend/nestjs-api-postgres/src/posts/posts.controller.ts +161 -0
  751. package/templates/backend/nestjs-api-postgres/src/posts/posts.module.ts +12 -0
  752. package/templates/backend/nestjs-api-postgres/src/posts/posts.service.ts +171 -0
  753. package/templates/backend/nestjs-api-postgres/src/prisma/prisma.module.ts +9 -0
  754. package/templates/backend/nestjs-api-postgres/src/prisma/prisma.service.ts +27 -0
  755. package/templates/backend/nestjs-api-postgres/src/users/constants/settings.constants.ts +9 -0
  756. package/templates/backend/nestjs-api-postgres/src/users/dto/profile-response.dto.ts +39 -0
  757. package/templates/backend/nestjs-api-postgres/src/users/dto/settings-response.dto.ts +18 -0
  758. package/templates/backend/nestjs-api-postgres/src/users/dto/update-profile.dto.ts +48 -0
  759. package/templates/backend/nestjs-api-postgres/src/users/dto/update-settings.dto.ts +40 -0
  760. package/templates/backend/nestjs-api-postgres/src/users/dto/user-response.dto.ts +18 -0
  761. package/templates/backend/nestjs-api-postgres/src/users/profile.service.ts +49 -0
  762. package/templates/backend/nestjs-api-postgres/src/users/settings.service.ts +82 -0
  763. package/templates/backend/nestjs-api-postgres/src/users/users.controller.ts +102 -0
  764. package/templates/backend/nestjs-api-postgres/src/users/users.module.ts +14 -0
  765. package/templates/backend/nestjs-api-postgres/src/users/users.service.ts +27 -0
  766. package/templates/backend/nestjs-api-postgres/test/README.md +412 -0
  767. package/templates/backend/nestjs-api-postgres/test/e2e/auth.e2e-spec.ts +147 -0
  768. package/templates/backend/nestjs-api-postgres/test/e2e/health.e2e-spec.ts +62 -0
  769. package/templates/backend/nestjs-api-postgres/test/e2e/posts.e2e-spec.ts +407 -0
  770. package/templates/backend/nestjs-api-postgres/test/e2e/users.e2e-spec.ts +287 -0
  771. package/templates/backend/nestjs-api-postgres/test/fixtures/test-data.ts +109 -0
  772. package/templates/backend/nestjs-api-postgres/test/helpers/auth.helper.ts +54 -0
  773. package/templates/backend/nestjs-api-postgres/test/helpers/db.helper.ts +73 -0
  774. package/templates/backend/nestjs-api-postgres/test/jest-e2e.json +12 -0
  775. package/templates/backend/nestjs-api-postgres/test/setup-e2e.ts +8 -0
  776. package/templates/backend/nestjs-api-postgres/test/unit/app.service.spec.ts +24 -0
  777. package/templates/backend/nestjs-api-postgres/test/unit/auth.controller.spec.ts +91 -0
  778. package/templates/backend/nestjs-api-postgres/test/unit/auth.service.spec.ts +161 -0
  779. package/templates/backend/nestjs-api-postgres/test/unit/health.controller.spec.ts +78 -0
  780. package/templates/backend/nestjs-api-postgres/test/unit/http-exception.filter.spec.ts +150 -0
  781. package/templates/backend/nestjs-api-postgres/test/unit/jwt-auth.guard.spec.ts +50 -0
  782. package/templates/backend/nestjs-api-postgres/test/unit/jwt.strategy.spec.ts +41 -0
  783. package/templates/backend/nestjs-api-postgres/test/unit/posts.controller.spec.ts +249 -0
  784. package/templates/backend/nestjs-api-postgres/test/unit/posts.service.spec.ts +328 -0
  785. package/templates/backend/nestjs-api-postgres/test/unit/profile.service.spec.ts +146 -0
  786. package/templates/backend/nestjs-api-postgres/test/unit/settings.service.spec.ts +242 -0
  787. package/templates/backend/nestjs-api-postgres/test/unit/users.controller.spec.ts +178 -0
  788. package/templates/backend/nestjs-api-postgres/test/unit/users.service.spec.ts +96 -0
  789. package/templates/backend/nestjs-api-postgres/tsconfig.build.json +4 -0
  790. package/templates/backend/nestjs-api-postgres/tsconfig.json +28 -0
  791. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-endpoint.md +209 -0
  792. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-model.md +201 -0
  793. package/templates/backend/nestjs-api-sqlite/.cursor/rules/api-rest.mdc +126 -0
  794. package/templates/backend/nestjs-api-sqlite/.cursor/rules/authentication-security.mdc +86 -0
  795. package/templates/backend/nestjs-api-sqlite/.cursor/rules/dto-validation.mdc +93 -0
  796. package/templates/backend/nestjs-api-sqlite/.cursor/rules/general-rules.mdc +126 -0
  797. package/templates/backend/nestjs-api-sqlite/.cursor/rules/nestjs-architecture.mdc +83 -0
  798. package/templates/backend/nestjs-api-sqlite/.cursor/rules/prisma-standards.mdc +90 -0
  799. package/templates/backend/nestjs-api-sqlite/.cursor/rules/swagger-documentation.mdc +90 -0
  800. package/templates/backend/nestjs-api-sqlite/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  801. package/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  802. package/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  803. package/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  804. package/templates/backend/nestjs-api-sqlite/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  805. package/templates/backend/nestjs-api-sqlite/.cursor/skills/prisma-expert/SKILL.md +355 -0
  806. package/templates/backend/nestjs-api-sqlite/.env.example +4 -0
  807. package/templates/backend/nestjs-api-sqlite/.env.test +4 -0
  808. package/templates/backend/nestjs-api-sqlite/.prettierrc +4 -0
  809. package/templates/backend/nestjs-api-sqlite/README.md +1464 -0
  810. package/templates/backend/nestjs-api-sqlite/eslint.config.mjs +41 -0
  811. package/templates/backend/nestjs-api-sqlite/nest-cli.json +8 -0
  812. package/templates/backend/nestjs-api-sqlite/package.json +105 -0
  813. package/templates/backend/nestjs-api-sqlite/pnpm-lock.yaml +7630 -0
  814. package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123190258_init/migration.sql +12 -0
  815. package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123205000_add_roles_and_posts/migration.sql +32 -0
  816. package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124163749_init_with_profile_and_settings/migration.sql +33 -0
  817. package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124190929_add_render_model/migration.sql +13 -0
  818. package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124200534_add_post_indexes/migration.sql +16 -0
  819. package/templates/backend/nestjs-api-sqlite/prisma/migrations/migration_lock.toml +3 -0
  820. package/templates/backend/nestjs-api-sqlite/prisma/schema.prisma +76 -0
  821. package/templates/backend/nestjs-api-sqlite/prisma/seed.ts +218 -0
  822. package/templates/backend/nestjs-api-sqlite/prisma.config.ts +10 -0
  823. package/templates/backend/nestjs-api-sqlite/src/app.module.ts +39 -0
  824. package/templates/backend/nestjs-api-sqlite/src/app.service.ts +8 -0
  825. package/templates/backend/nestjs-api-sqlite/src/auth/auth.controller.ts +36 -0
  826. package/templates/backend/nestjs-api-sqlite/src/auth/auth.module.ts +22 -0
  827. package/templates/backend/nestjs-api-sqlite/src/auth/auth.service.ts +63 -0
  828. package/templates/backend/nestjs-api-sqlite/src/auth/decorators/roles.decorator.ts +5 -0
  829. package/templates/backend/nestjs-api-sqlite/src/auth/dto/login-response.dto.ts +23 -0
  830. package/templates/backend/nestjs-api-sqlite/src/auth/dto/login.dto.ts +27 -0
  831. package/templates/backend/nestjs-api-sqlite/src/auth/guards/jwt-auth.guard.ts +20 -0
  832. package/templates/backend/nestjs-api-sqlite/src/auth/guards/roles.guard.ts +23 -0
  833. package/templates/backend/nestjs-api-sqlite/src/auth/strategies/jwt.strategy.ts +32 -0
  834. package/templates/backend/nestjs-api-sqlite/src/auth/types.ts +18 -0
  835. package/templates/backend/nestjs-api-sqlite/src/common/dto/paginated-response.dto.ts +16 -0
  836. package/templates/backend/nestjs-api-sqlite/src/common/dto/pagination.dto.ts +31 -0
  837. package/templates/backend/nestjs-api-sqlite/src/common/filters/http-exception.filter.ts +53 -0
  838. package/templates/backend/nestjs-api-sqlite/src/config/env.validation.ts +35 -0
  839. package/templates/backend/nestjs-api-sqlite/src/health/health.controller.ts +35 -0
  840. package/templates/backend/nestjs-api-sqlite/src/health/health.module.ts +7 -0
  841. package/templates/backend/nestjs-api-sqlite/src/main.ts +87 -0
  842. package/templates/backend/nestjs-api-sqlite/src/posts/dto/create-post.dto.ts +32 -0
  843. package/templates/backend/nestjs-api-sqlite/src/posts/dto/post-response.dto.ts +41 -0
  844. package/templates/backend/nestjs-api-sqlite/src/posts/dto/update-post.dto.ts +31 -0
  845. package/templates/backend/nestjs-api-sqlite/src/posts/posts.controller.ts +161 -0
  846. package/templates/backend/nestjs-api-sqlite/src/posts/posts.module.ts +12 -0
  847. package/templates/backend/nestjs-api-sqlite/src/posts/posts.service.ts +171 -0
  848. package/templates/backend/nestjs-api-sqlite/src/prisma/prisma.module.ts +9 -0
  849. package/templates/backend/nestjs-api-sqlite/src/prisma/prisma.service.ts +29 -0
  850. package/templates/backend/nestjs-api-sqlite/src/users/constants/settings.constants.ts +9 -0
  851. package/templates/backend/nestjs-api-sqlite/src/users/dto/profile-response.dto.ts +39 -0
  852. package/templates/backend/nestjs-api-sqlite/src/users/dto/settings-response.dto.ts +18 -0
  853. package/templates/backend/nestjs-api-sqlite/src/users/dto/update-profile.dto.ts +48 -0
  854. package/templates/backend/nestjs-api-sqlite/src/users/dto/update-settings.dto.ts +40 -0
  855. package/templates/backend/nestjs-api-sqlite/src/users/dto/user-response.dto.ts +18 -0
  856. package/templates/backend/nestjs-api-sqlite/src/users/profile.service.ts +49 -0
  857. package/templates/backend/nestjs-api-sqlite/src/users/settings.service.ts +82 -0
  858. package/templates/backend/nestjs-api-sqlite/src/users/users.controller.ts +102 -0
  859. package/templates/backend/nestjs-api-sqlite/src/users/users.module.ts +14 -0
  860. package/templates/backend/nestjs-api-sqlite/src/users/users.service.ts +27 -0
  861. package/templates/backend/nestjs-api-sqlite/test/README.md +412 -0
  862. package/templates/backend/nestjs-api-sqlite/test/e2e/auth.e2e-spec.ts +147 -0
  863. package/templates/backend/nestjs-api-sqlite/test/e2e/health.e2e-spec.ts +62 -0
  864. package/templates/backend/nestjs-api-sqlite/test/e2e/posts.e2e-spec.ts +407 -0
  865. package/templates/backend/nestjs-api-sqlite/test/e2e/users.e2e-spec.ts +287 -0
  866. package/templates/backend/nestjs-api-sqlite/test/fixtures/test-data.ts +109 -0
  867. package/templates/backend/nestjs-api-sqlite/test/helpers/auth.helper.ts +54 -0
  868. package/templates/backend/nestjs-api-sqlite/test/helpers/db.helper.ts +72 -0
  869. package/templates/backend/nestjs-api-sqlite/test/jest-e2e.json +12 -0
  870. package/templates/backend/nestjs-api-sqlite/test/setup-e2e.ts +8 -0
  871. package/templates/backend/nestjs-api-sqlite/test/unit/app.service.spec.ts +24 -0
  872. package/templates/backend/nestjs-api-sqlite/test/unit/auth.controller.spec.ts +91 -0
  873. package/templates/backend/nestjs-api-sqlite/test/unit/auth.service.spec.ts +161 -0
  874. package/templates/backend/nestjs-api-sqlite/test/unit/health.controller.spec.ts +78 -0
  875. package/templates/backend/nestjs-api-sqlite/test/unit/http-exception.filter.spec.ts +150 -0
  876. package/templates/backend/nestjs-api-sqlite/test/unit/jwt-auth.guard.spec.ts +50 -0
  877. package/templates/backend/nestjs-api-sqlite/test/unit/jwt.strategy.spec.ts +41 -0
  878. package/templates/backend/nestjs-api-sqlite/test/unit/posts.controller.spec.ts +249 -0
  879. package/templates/backend/nestjs-api-sqlite/test/unit/posts.service.spec.ts +328 -0
  880. package/templates/backend/nestjs-api-sqlite/test/unit/profile.service.spec.ts +146 -0
  881. package/templates/backend/nestjs-api-sqlite/test/unit/settings.service.spec.ts +242 -0
  882. package/templates/backend/nestjs-api-sqlite/test/unit/users.controller.spec.ts +178 -0
  883. package/templates/backend/nestjs-api-sqlite/test/unit/users.service.spec.ts +96 -0
  884. package/templates/backend/nestjs-api-sqlite/tsconfig.build.json +4 -0
  885. package/templates/backend/nestjs-api-sqlite/tsconfig.json +28 -0
  886. package/templates/frontend/angular-base/.agents/skills/angular-component/SKILL.md +288 -0
  887. package/templates/frontend/angular-base/.agents/skills/angular-component/references/component-patterns.md +358 -0
  888. package/templates/frontend/angular-base/.agents/skills/angular-di/SKILL.md +387 -0
  889. package/templates/frontend/angular-base/.agents/skills/angular-di/references/di-patterns.md +519 -0
  890. package/templates/frontend/angular-base/.agents/skills/angular-directives/SKILL.md +437 -0
  891. package/templates/frontend/angular-base/.agents/skills/angular-directives/references/directive-patterns.md +570 -0
  892. package/templates/frontend/angular-base/.agents/skills/angular-forms/SKILL.md +434 -0
  893. package/templates/frontend/angular-base/.agents/skills/angular-forms/references/form-patterns.md +398 -0
  894. package/templates/frontend/angular-base/.agents/skills/angular-http/SKILL.md +366 -0
  895. package/templates/frontend/angular-base/.agents/skills/angular-http/references/http-patterns.md +448 -0
  896. package/templates/frontend/angular-base/.agents/skills/angular-routing/SKILL.md +395 -0
  897. package/templates/frontend/angular-base/.agents/skills/angular-routing/references/routing-patterns.md +472 -0
  898. package/templates/frontend/angular-base/.agents/skills/angular-signals/SKILL.md +302 -0
  899. package/templates/frontend/angular-base/.agents/skills/angular-signals/references/signal-patterns.md +404 -0
  900. package/templates/frontend/angular-base/.agents/skills/angular-ssr/SKILL.md +435 -0
  901. package/templates/frontend/angular-base/.agents/skills/angular-ssr/references/ssr-patterns.md +497 -0
  902. package/templates/frontend/angular-base/.agents/skills/angular-testing/SKILL.md +660 -0
  903. package/templates/frontend/angular-base/.agents/skills/angular-testing/references/testing-patterns.md +707 -0
  904. package/templates/frontend/angular-base/.agents/skills/angular-tooling/SKILL.md +352 -0
  905. package/templates/frontend/angular-base/.agents/skills/angular-tooling/references/tooling-patterns.md +448 -0
  906. package/templates/frontend/angular-base/.agents/skills/tailwindcss-accessibility/SKILL.md +780 -0
  907. package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-components/SKILL.md +718 -0
  908. package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
  909. package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
  910. package/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/SKILL.md +432 -0
  911. package/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
  912. package/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/SKILL.md +354 -0
  913. package/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
  914. package/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/SKILL.md +578 -0
  915. package/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
  916. package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
  917. package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
  918. package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
  919. package/templates/frontend/angular-base/.agents/skills/tailwindcss-mobile-first/SKILL.md +768 -0
  920. package/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/SKILL.md +374 -0
  921. package/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
  922. package/templates/frontend/angular-base/.agents/skills/tailwindcss-plugins/SKILL.md +505 -0
  923. package/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
  924. package/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
  925. package/templates/frontend/angular-base/.agents/skills/web-design-guidelines/SKILL.md +39 -0
  926. package/templates/frontend/angular-base/.cursor/mcp.json +12 -0
  927. package/templates/frontend/angular-base/.cursor/rules/angular-expert.mdc +153 -0
  928. package/templates/frontend/angular-base/.editorconfig +17 -0
  929. package/templates/frontend/angular-base/.eslintrc.json +52 -0
  930. package/templates/frontend/angular-base/.github/workflows/ci.yml +122 -0
  931. package/templates/frontend/angular-base/.husky/pre-commit +1 -0
  932. package/templates/frontend/angular-base/.husky/pre-push +1 -0
  933. package/templates/frontend/angular-base/.postcssrc.json +5 -0
  934. package/templates/frontend/angular-base/.prettierignore +8 -0
  935. package/templates/frontend/angular-base/.prettierrc.json +15 -0
  936. package/templates/frontend/angular-base/.vscode/extensions.json +4 -0
  937. package/templates/frontend/angular-base/.vscode/launch.json +20 -0
  938. package/templates/frontend/angular-base/.vscode/mcp.json +9 -0
  939. package/templates/frontend/angular-base/.vscode/tasks.json +42 -0
  940. package/templates/frontend/angular-base/CONTRIBUTING.md +230 -0
  941. package/templates/frontend/angular-base/README.md +383 -0
  942. package/templates/frontend/angular-base/angular.json +84 -0
  943. package/templates/frontend/angular-base/cypress/e2e/app.cy.ts +39 -0
  944. package/templates/frontend/angular-base/cypress/e2e/auth.cy.ts +196 -0
  945. package/templates/frontend/angular-base/cypress/e2e/dashboard.cy.ts +56 -0
  946. package/templates/frontend/angular-base/cypress/e2e/home.cy.ts +35 -0
  947. package/templates/frontend/angular-base/cypress/fixtures/example.json +4 -0
  948. package/templates/frontend/angular-base/cypress/support/commands.ts +8 -0
  949. package/templates/frontend/angular-base/cypress/support/e2e.ts +11 -0
  950. package/templates/frontend/angular-base/cypress.config.ts +11 -0
  951. package/templates/frontend/angular-base/docs/ARCHITECTURE.md +337 -0
  952. package/templates/frontend/angular-base/docs/AUTHENTICATION.md +491 -0
  953. package/templates/frontend/angular-base/docs/DEPLOYMENT.md +507 -0
  954. package/templates/frontend/angular-base/docs/FEATURES.md +404 -0
  955. package/templates/frontend/angular-base/docs/TESTING.md +418 -0
  956. package/templates/frontend/angular-base/docs/THEMING.md +333 -0
  957. package/templates/frontend/angular-base/docs/UI_LIBRARIES.md +380 -0
  958. package/templates/frontend/angular-base/docs/USER_PROFILE_FLOW.md +431 -0
  959. package/templates/frontend/angular-base/package-lock.json +13321 -0
  960. package/templates/frontend/angular-base/package.json +93 -0
  961. package/templates/frontend/angular-base/public/favicon.ico +0 -0
  962. package/templates/frontend/angular-base/src/app/app.config.server.ts +14 -0
  963. package/templates/frontend/angular-base/src/app/app.config.ts +32 -0
  964. package/templates/frontend/angular-base/src/app/app.css +0 -0
  965. package/templates/frontend/angular-base/src/app/app.html +1 -0
  966. package/templates/frontend/angular-base/src/app/app.routes.server.ts +28 -0
  967. package/templates/frontend/angular-base/src/app/app.routes.ts +67 -0
  968. package/templates/frontend/angular-base/src/app/app.spec.ts +23 -0
  969. package/templates/frontend/angular-base/src/app/app.ts +12 -0
  970. package/templates/frontend/angular-base/src/app/core/guards/admin.guard.ts +16 -0
  971. package/templates/frontend/angular-base/src/app/core/guards/auth.guard.spec.ts +43 -0
  972. package/templates/frontend/angular-base/src/app/core/guards/auth.guard.ts +15 -0
  973. package/templates/frontend/angular-base/src/app/core/index.ts +10 -0
  974. package/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.spec.ts +43 -0
  975. package/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.ts +53 -0
  976. package/templates/frontend/angular-base/src/app/core/services/auth.service.spec.ts +33 -0
  977. package/templates/frontend/angular-base/src/app/core/services/auth.service.ts +91 -0
  978. package/templates/frontend/angular-base/src/app/core/services/theme.service.spec.ts +33 -0
  979. package/templates/frontend/angular-base/src/app/core/services/theme.service.ts +136 -0
  980. package/templates/frontend/angular-base/src/app/features/admin/index.ts +3 -0
  981. package/templates/frontend/angular-base/src/app/features/admin/routes.ts +21 -0
  982. package/templates/frontend/angular-base/src/app/features/admin/users/models/admin-user.model.ts +32 -0
  983. package/templates/frontend/angular-base/src/app/features/admin/users/pages/user-form.page.ts +279 -0
  984. package/templates/frontend/angular-base/src/app/features/admin/users/pages/user-list.page.ts +336 -0
  985. package/templates/frontend/angular-base/src/app/features/admin/users/services/admin-user.service.ts +151 -0
  986. package/templates/frontend/angular-base/src/app/features/auth/index.ts +2 -0
  987. package/templates/frontend/angular-base/src/app/features/auth/models/auth.model.ts +39 -0
  988. package/templates/frontend/angular-base/src/app/features/auth/pages/login.page.spec.ts +44 -0
  989. package/templates/frontend/angular-base/src/app/features/auth/pages/login.page.ts +187 -0
  990. package/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.spec.ts +48 -0
  991. package/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.ts +171 -0
  992. package/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.spec.ts +53 -0
  993. package/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.ts +269 -0
  994. package/templates/frontend/angular-base/src/app/features/auth/routes.ts +22 -0
  995. package/templates/frontend/angular-base/src/app/features/customers/index.ts +3 -0
  996. package/templates/frontend/angular-base/src/app/features/customers/models/customer.model.ts +41 -0
  997. package/templates/frontend/angular-base/src/app/features/customers/pages/customer-detail.page.ts +299 -0
  998. package/templates/frontend/angular-base/src/app/features/customers/pages/customer-form.page.ts +302 -0
  999. package/templates/frontend/angular-base/src/app/features/customers/pages/customer-list.page.ts +439 -0
  1000. package/templates/frontend/angular-base/src/app/features/customers/routes.ts +21 -0
  1001. package/templates/frontend/angular-base/src/app/features/customers/services/customer.service.ts +162 -0
  1002. package/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.spec.ts +23 -0
  1003. package/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.ts +52 -0
  1004. package/templates/frontend/angular-base/src/app/features/dashboard/index.ts +1 -0
  1005. package/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.spec.ts +21 -0
  1006. package/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.ts +122 -0
  1007. package/templates/frontend/angular-base/src/app/features/dashboard/routes.ts +8 -0
  1008. package/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.spec.ts +37 -0
  1009. package/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.ts +48 -0
  1010. package/templates/frontend/angular-base/src/app/features/errors/index.ts +1 -0
  1011. package/templates/frontend/angular-base/src/app/features/errors/pages/forbidden.page.ts +50 -0
  1012. package/templates/frontend/angular-base/src/app/features/errors/pages/maintenance.page.ts +46 -0
  1013. package/templates/frontend/angular-base/src/app/features/errors/pages/not-found.page.ts +49 -0
  1014. package/templates/frontend/angular-base/src/app/features/errors/pages/server-error.page.ts +60 -0
  1015. package/templates/frontend/angular-base/src/app/features/errors/routes.ts +25 -0
  1016. package/templates/frontend/angular-base/src/app/features/home/index.ts +1 -0
  1017. package/templates/frontend/angular-base/src/app/features/home/pages/home.page.spec.ts +23 -0
  1018. package/templates/frontend/angular-base/src/app/features/home/pages/home.page.ts +105 -0
  1019. package/templates/frontend/angular-base/src/app/features/home/routes.ts +8 -0
  1020. package/templates/frontend/angular-base/src/app/features/projects/index.ts +3 -0
  1021. package/templates/frontend/angular-base/src/app/features/projects/models/project.model.ts +48 -0
  1022. package/templates/frontend/angular-base/src/app/features/projects/pages/project-detail.page.ts +444 -0
  1023. package/templates/frontend/angular-base/src/app/features/projects/pages/project-form.page.ts +393 -0
  1024. package/templates/frontend/angular-base/src/app/features/projects/pages/project-list.page.ts +411 -0
  1025. package/templates/frontend/angular-base/src/app/features/projects/routes.ts +21 -0
  1026. package/templates/frontend/angular-base/src/app/features/projects/services/project.service.ts +227 -0
  1027. package/templates/frontend/angular-base/src/app/features/reports/index.ts +3 -0
  1028. package/templates/frontend/angular-base/src/app/features/reports/models/report.model.ts +27 -0
  1029. package/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.html +246 -0
  1030. package/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.ts +135 -0
  1031. package/templates/frontend/angular-base/src/app/features/reports/routes.ts +13 -0
  1032. package/templates/frontend/angular-base/src/app/features/reports/services/report.service.ts +141 -0
  1033. package/templates/frontend/angular-base/src/app/features/user/index.ts +3 -0
  1034. package/templates/frontend/angular-base/src/app/features/user/models/user.model.ts +23 -0
  1035. package/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.spec.ts +27 -0
  1036. package/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.ts +414 -0
  1037. package/templates/frontend/angular-base/src/app/features/user/pages/profile.page.spec.ts +39 -0
  1038. package/templates/frontend/angular-base/src/app/features/user/pages/profile.page.ts +232 -0
  1039. package/templates/frontend/angular-base/src/app/features/user/pages/settings.page.spec.ts +28 -0
  1040. package/templates/frontend/angular-base/src/app/features/user/pages/settings.page.ts +284 -0
  1041. package/templates/frontend/angular-base/src/app/features/user/routes.ts +21 -0
  1042. package/templates/frontend/angular-base/src/app/features/user/services/user.service.ts +74 -0
  1043. package/templates/frontend/angular-base/src/app/layout/footer/footer.component.spec.ts +25 -0
  1044. package/templates/frontend/angular-base/src/app/layout/footer/footer.component.ts +67 -0
  1045. package/templates/frontend/angular-base/src/app/layout/index.ts +3 -0
  1046. package/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.spec.ts +23 -0
  1047. package/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.ts +30 -0
  1048. package/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.spec.ts +23 -0
  1049. package/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.ts +293 -0
  1050. package/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.spec.ts +36 -0
  1051. package/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.ts +70 -0
  1052. package/templates/frontend/angular-base/src/app/shared/components/button/button.component.spec.ts +44 -0
  1053. package/templates/frontend/angular-base/src/app/shared/components/button/button.component.ts +64 -0
  1054. package/templates/frontend/angular-base/src/app/shared/components/card/card.component.spec.ts +29 -0
  1055. package/templates/frontend/angular-base/src/app/shared/components/card/card.component.ts +60 -0
  1056. package/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.spec.ts +49 -0
  1057. package/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.ts +280 -0
  1058. package/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.spec.ts +36 -0
  1059. package/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.ts +56 -0
  1060. package/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.spec.ts +32 -0
  1061. package/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.ts +131 -0
  1062. package/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.spec.ts +38 -0
  1063. package/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.ts +194 -0
  1064. package/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.spec.ts +37 -0
  1065. package/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.ts +125 -0
  1066. package/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.spec.ts +30 -0
  1067. package/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.ts +55 -0
  1068. package/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.spec.ts +49 -0
  1069. package/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.ts +101 -0
  1070. package/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.spec.ts +65 -0
  1071. package/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.ts +219 -0
  1072. package/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.spec.ts +33 -0
  1073. package/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.ts +25 -0
  1074. package/templates/frontend/angular-base/src/app/shared/index.ts +18 -0
  1075. package/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.spec.ts +29 -0
  1076. package/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.ts +39 -0
  1077. package/templates/frontend/angular-base/src/environments/environment.development.ts +4 -0
  1078. package/templates/frontend/angular-base/src/environments/environment.ts +4 -0
  1079. package/templates/frontend/angular-base/src/index.html +44 -0
  1080. package/templates/frontend/angular-base/src/main.server.ts +7 -0
  1081. package/templates/frontend/angular-base/src/main.ts +5 -0
  1082. package/templates/frontend/angular-base/src/server.ts +66 -0
  1083. package/templates/frontend/angular-base/src/styles.css +209 -0
  1084. package/templates/frontend/angular-base/src/test-setup.ts +10 -0
  1085. package/templates/frontend/angular-base/tsconfig.app.json +17 -0
  1086. package/templates/frontend/angular-base/tsconfig.json +41 -0
  1087. package/templates/frontend/angular-base/tsconfig.spec.json +15 -0
  1088. package/templates/frontend/angular-base/vitest.config.ts +25 -0
  1089. package/templates/frontend/react-vite/.cursor/skills/architecture/SKILL.md +26 -0
  1090. package/templates/frontend/react-vite/.cursor/skills/components-shadcn/SKILL.md +23 -0
  1091. package/templates/frontend/react-vite/.cursor/skills/daisyui/SKILL.md +98 -0
  1092. package/templates/frontend/react-vite/.cursor/skills/routing/SKILL.md +32 -0
  1093. package/templates/frontend/react-vite/.cursor/skills/testing/SKILL.md +55 -0
  1094. package/templates/frontend/react-vite/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
  1095. package/templates/frontend/react-vite/.cursor/skills/ui-and-styling/SKILL.md +32 -0
  1096. package/templates/frontend/react-vite/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
  1097. package/templates/frontend/react-vite/.prettierrc +6 -0
  1098. package/templates/frontend/react-vite/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
  1099. package/templates/frontend/react-vite/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
  1100. package/templates/frontend/react-vite/.vscode/extensions.json +7 -0
  1101. package/templates/frontend/react-vite/README.md +75 -0
  1102. package/templates/frontend/react-vite/components.json +22 -0
  1103. package/templates/frontend/react-vite/eslint.config.js +31 -0
  1104. package/templates/frontend/react-vite/index.html +13 -0
  1105. package/templates/frontend/react-vite/package.json +62 -0
  1106. package/templates/frontend/react-vite/pnpm-lock.yaml +4487 -0
  1107. package/templates/frontend/react-vite/pnpm-workspace.yaml +2 -0
  1108. package/templates/frontend/react-vite/src/assets/react.svg +1 -0
  1109. package/templates/frontend/react-vite/src/components/ui/badge.tsx +37 -0
  1110. package/templates/frontend/react-vite/src/components/ui/breadcrumb.tsx +106 -0
  1111. package/templates/frontend/react-vite/src/components/ui/button.tsx +58 -0
  1112. package/templates/frontend/react-vite/src/components/ui/card.tsx +72 -0
  1113. package/templates/frontend/react-vite/src/components/ui/form.tsx +165 -0
  1114. package/templates/frontend/react-vite/src/components/ui/input.tsx +22 -0
  1115. package/templates/frontend/react-vite/src/components/ui/label.tsx +24 -0
  1116. package/templates/frontend/react-vite/src/components/ui/password-input.tsx +41 -0
  1117. package/templates/frontend/react-vite/src/components/ui/separator.tsx +28 -0
  1118. package/templates/frontend/react-vite/src/components/ui/tabs.tsx +62 -0
  1119. package/templates/frontend/react-vite/src/components/ui/textarea.tsx +21 -0
  1120. package/templates/frontend/react-vite/src/index.css +104 -0
  1121. package/templates/frontend/react-vite/src/lib/queryClient.ts +11 -0
  1122. package/templates/frontend/react-vite/src/lib/utils.ts +6 -0
  1123. package/templates/frontend/react-vite/src/main.tsx +33 -0
  1124. package/templates/frontend/react-vite/src/routeTree.gen.ts +77 -0
  1125. package/templates/frontend/react-vite/src/router.tsx +13 -0
  1126. package/templates/frontend/react-vite/src/routes/__root.tsx +82 -0
  1127. package/templates/frontend/react-vite/src/routes/index.tsx +187 -0
  1128. package/templates/frontend/react-vite/src/routes/otra-ruta.tsx +319 -0
  1129. package/templates/frontend/react-vite/src/test/setup.ts +1 -0
  1130. package/templates/frontend/react-vite/tsconfig.app.json +34 -0
  1131. package/templates/frontend/react-vite/tsconfig.json +10 -0
  1132. package/templates/frontend/react-vite/tsconfig.node.json +26 -0
  1133. package/templates/frontend/react-vite/vite.config.ts +22 -0
  1134. package/templates/frontend/react-vite/vitest.config.ts +9 -0
  1135. package/templates/frontend/react-vite-help/.cursor/skills/architecture/SKILL.md +26 -0
  1136. package/templates/frontend/react-vite-help/.cursor/skills/components-shadcn/SKILL.md +23 -0
  1137. package/templates/frontend/react-vite-help/.cursor/skills/daisyui/SKILL.md +98 -0
  1138. package/templates/frontend/react-vite-help/.cursor/skills/routing/SKILL.md +32 -0
  1139. package/templates/frontend/react-vite-help/.cursor/skills/testing/SKILL.md +55 -0
  1140. package/templates/frontend/react-vite-help/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
  1141. package/templates/frontend/react-vite-help/.cursor/skills/ui-and-styling/SKILL.md +32 -0
  1142. package/templates/frontend/react-vite-help/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
  1143. package/templates/frontend/react-vite-help/.prettierrc +6 -0
  1144. package/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
  1145. package/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
  1146. package/templates/frontend/react-vite-help/.vscode/extensions.json +7 -0
  1147. package/templates/frontend/react-vite-help/README.md +75 -0
  1148. package/templates/frontend/react-vite-help/components.json +22 -0
  1149. package/templates/frontend/react-vite-help/eslint.config.js +31 -0
  1150. package/templates/frontend/react-vite-help/index.html +13 -0
  1151. package/templates/frontend/react-vite-help/package.json +62 -0
  1152. package/templates/frontend/react-vite-help/pnpm-lock.yaml +4487 -0
  1153. package/templates/frontend/react-vite-help/pnpm-workspace.yaml +2 -0
  1154. package/templates/frontend/react-vite-help/src/assets/react.svg +1 -0
  1155. package/templates/frontend/react-vite-help/src/components/documentacion/entorno.tsx +99 -0
  1156. package/templates/frontend/react-vite-help/src/components/documentacion/estructura.tsx +100 -0
  1157. package/templates/frontend/react-vite-help/src/components/documentacion/figma-mcp.tsx +200 -0
  1158. package/templates/frontend/react-vite-help/src/components/documentacion/inicio.tsx +69 -0
  1159. package/templates/frontend/react-vite-help/src/components/documentacion/instalacion.tsx +72 -0
  1160. package/templates/frontend/react-vite-help/src/components/documentacion/personalizacion.tsx +163 -0
  1161. package/templates/frontend/react-vite-help/src/components/documentacion/rutas.tsx +138 -0
  1162. package/templates/frontend/react-vite-help/src/components/documentacion/stack.tsx +401 -0
  1163. package/templates/frontend/react-vite-help/src/components/ui/badge.tsx +37 -0
  1164. package/templates/frontend/react-vite-help/src/components/ui/breadcrumb.tsx +106 -0
  1165. package/templates/frontend/react-vite-help/src/components/ui/button.tsx +58 -0
  1166. package/templates/frontend/react-vite-help/src/components/ui/card.tsx +72 -0
  1167. package/templates/frontend/react-vite-help/src/components/ui/form.tsx +165 -0
  1168. package/templates/frontend/react-vite-help/src/components/ui/input.tsx +22 -0
  1169. package/templates/frontend/react-vite-help/src/components/ui/label.tsx +24 -0
  1170. package/templates/frontend/react-vite-help/src/components/ui/password-input.tsx +41 -0
  1171. package/templates/frontend/react-vite-help/src/components/ui/separator.tsx +28 -0
  1172. package/templates/frontend/react-vite-help/src/components/ui/tabs.tsx +62 -0
  1173. package/templates/frontend/react-vite-help/src/components/ui/textarea.tsx +21 -0
  1174. package/templates/frontend/react-vite-help/src/data/proyectos.json +56 -0
  1175. package/templates/frontend/react-vite-help/src/index.css +104 -0
  1176. package/templates/frontend/react-vite-help/src/lib/queryClient.ts +11 -0
  1177. package/templates/frontend/react-vite-help/src/lib/utils.ts +6 -0
  1178. package/templates/frontend/react-vite-help/src/main.tsx +33 -0
  1179. package/templates/frontend/react-vite-help/src/routeTree.gen.ts +241 -0
  1180. package/templates/frontend/react-vite-help/src/router.tsx +13 -0
  1181. package/templates/frontend/react-vite-help/src/routes/__root.tsx +92 -0
  1182. package/templates/frontend/react-vite-help/src/routes/auth/iniciar-sesion.tsx +139 -0
  1183. package/templates/frontend/react-vite-help/src/routes/auth/registro.tsx +205 -0
  1184. package/templates/frontend/react-vite-help/src/routes/contacto.tsx +60 -0
  1185. package/templates/frontend/react-vite-help/src/routes/dashbord.tsx +9 -0
  1186. package/templates/frontend/react-vite-help/src/routes/documentacion.tsx +80 -0
  1187. package/templates/frontend/react-vite-help/src/routes/index.test.tsx +42 -0
  1188. package/templates/frontend/react-vite-help/src/routes/index.tsx +211 -0
  1189. package/templates/frontend/react-vite-help/src/routes/perfil.tsx +9 -0
  1190. package/templates/frontend/react-vite-help/src/routes/proyectos.$proyectoId.tsx +156 -0
  1191. package/templates/frontend/react-vite-help/src/routes/proyectos.tsx +93 -0
  1192. package/templates/frontend/react-vite-help/src/test/setup.ts +1 -0
  1193. package/templates/frontend/react-vite-help/tsconfig.app.json +34 -0
  1194. package/templates/frontend/react-vite-help/tsconfig.json +10 -0
  1195. package/templates/frontend/react-vite-help/tsconfig.node.json +26 -0
  1196. package/templates/frontend/react-vite-help/vite.config.ts +22 -0
  1197. package/templates/frontend/react-vite-help/vitest.config.ts +9 -0
  1198. package/templates/mobile/.gitkeep +1 -0
  1199. package/templates/mobile/expo-base/.cursor/rules/general-rules.mdc +231 -0
  1200. package/templates/mobile/expo-base/.cursor/rules/react-native-rules.mdc +1348 -0
  1201. package/templates/mobile/expo-base/.env +1 -0
  1202. package/templates/mobile/expo-base/.husky/commit-msg +4 -0
  1203. package/templates/mobile/expo-base/.husky/pre-commit +1 -0
  1204. package/templates/mobile/expo-base/.lintstagedrc.js +25 -0
  1205. package/templates/mobile/expo-base/.prettierignore +10 -0
  1206. package/templates/mobile/expo-base/.prettierrc +11 -0
  1207. package/templates/mobile/expo-base/.vscode/extensions.json +1 -0
  1208. package/templates/mobile/expo-base/.vscode/settings.json +7 -0
  1209. package/templates/mobile/expo-base/CHANGELOG.md +155 -0
  1210. package/templates/mobile/expo-base/IMPLEMENTATION_SUMMARY.md +413 -0
  1211. package/templates/mobile/expo-base/README.md +510 -0
  1212. package/templates/mobile/expo-base/SETUP_NOTES.md +233 -0
  1213. package/templates/mobile/expo-base/TEMPLATE_USAGE.md +623 -0
  1214. package/templates/mobile/expo-base/WARP.md +123 -0
  1215. package/templates/mobile/expo-base/app/(public)/_layout.tsx +21 -0
  1216. package/templates/mobile/expo-base/app/(public)/forgot-password.tsx +3 -0
  1217. package/templates/mobile/expo-base/app/(public)/login.tsx +3 -0
  1218. package/templates/mobile/expo-base/app/(public)/register.tsx +3 -0
  1219. package/templates/mobile/expo-base/app/(tabs)/_layout.tsx +60 -0
  1220. package/templates/mobile/expo-base/app/(tabs)/explore.tsx +235 -0
  1221. package/templates/mobile/expo-base/app/(tabs)/index.tsx +290 -0
  1222. package/templates/mobile/expo-base/app/(tabs)/profile.tsx +3 -0
  1223. package/templates/mobile/expo-base/app/_layout.tsx +143 -0
  1224. package/templates/mobile/expo-base/app/modal.tsx +29 -0
  1225. package/templates/mobile/expo-base/app/onboarding.tsx +3 -0
  1226. package/templates/mobile/expo-base/app/profile/_layout.tsx +44 -0
  1227. package/templates/mobile/expo-base/app/profile/change-password.tsx +3 -0
  1228. package/templates/mobile/expo-base/app/profile/edit.tsx +3 -0
  1229. package/templates/mobile/expo-base/app/settings/_layout.tsx +62 -0
  1230. package/templates/mobile/expo-base/app/settings/about.tsx +3 -0
  1231. package/templates/mobile/expo-base/app/settings/index.tsx +3 -0
  1232. package/templates/mobile/expo-base/app/settings/language.tsx +3 -0
  1233. package/templates/mobile/expo-base/app/settings/notifications.tsx +3 -0
  1234. package/templates/mobile/expo-base/app/settings/theme.tsx +3 -0
  1235. package/templates/mobile/expo-base/app.json +31 -0
  1236. package/templates/mobile/expo-base/commitlint.config.js +50 -0
  1237. package/templates/mobile/expo-base/docs/ARCHITECTURE.md +565 -0
  1238. package/templates/mobile/expo-base/docs/CI_CD.md +461 -0
  1239. package/templates/mobile/expo-base/docs/COMPONENTS.md +1103 -0
  1240. package/templates/mobile/expo-base/docs/CONTRIBUTING.md +733 -0
  1241. package/templates/mobile/expo-base/docs/DESIGN_TOKENS.md +832 -0
  1242. package/templates/mobile/expo-base/docs/GIT_CONVENTIONS.md +411 -0
  1243. package/templates/mobile/expo-base/docs/I18N.md +701 -0
  1244. package/templates/mobile/expo-base/docs/TESTING.md +565 -0
  1245. package/templates/mobile/expo-base/docs/THEMING.md +753 -0
  1246. package/templates/mobile/expo-base/docs/VERSIONING.md +518 -0
  1247. package/templates/mobile/expo-base/eslint.config.js +180 -0
  1248. package/templates/mobile/expo-base/jest.config.js +51 -0
  1249. package/templates/mobile/expo-base/jest.setup.js +106 -0
  1250. package/templates/mobile/expo-base/package.json +74 -0
  1251. package/templates/mobile/expo-base/pnpm-lock.yaml +11354 -0
  1252. package/templates/mobile/expo-base/pnpm-workspace.yaml +4 -0
  1253. package/templates/mobile/expo-base/src/__tests__/helpers/test-utils.tsx +77 -0
  1254. package/templates/mobile/expo-base/src/__tests__/mocks/api.ts +65 -0
  1255. package/templates/mobile/expo-base/src/__tests__/mocks/i18n.ts +22 -0
  1256. package/templates/mobile/expo-base/src/__tests__/mocks/index.ts +7 -0
  1257. package/templates/mobile/expo-base/src/__tests__/mocks/navigation.ts +47 -0
  1258. package/templates/mobile/expo-base/src/__tests__/mocks/theme.ts +46 -0
  1259. package/templates/mobile/expo-base/src/assets/images/android-icon-background.png +0 -0
  1260. package/templates/mobile/expo-base/src/assets/images/android-icon-foreground.png +0 -0
  1261. package/templates/mobile/expo-base/src/assets/images/android-icon-monochrome.png +0 -0
  1262. package/templates/mobile/expo-base/src/assets/images/favicon.png +0 -0
  1263. package/templates/mobile/expo-base/src/assets/images/icon.png +0 -0
  1264. package/templates/mobile/expo-base/src/assets/images/partial-react-logo.png +0 -0
  1265. package/templates/mobile/expo-base/src/assets/images/react-logo.png +0 -0
  1266. package/templates/mobile/expo-base/src/assets/images/react-logo@2x.png +0 -0
  1267. package/templates/mobile/expo-base/src/assets/images/react-logo@3x.png +0 -0
  1268. package/templates/mobile/expo-base/src/assets/images/splash-icon.png +0 -0
  1269. package/templates/mobile/expo-base/src/components/external-link.tsx +25 -0
  1270. package/templates/mobile/expo-base/src/components/feedback/empty-state.tsx +150 -0
  1271. package/templates/mobile/expo-base/src/components/feedback/error-boundary.tsx +145 -0
  1272. package/templates/mobile/expo-base/src/components/feedback/error-screen.tsx +121 -0
  1273. package/templates/mobile/expo-base/src/components/feedback/index.ts +11 -0
  1274. package/templates/mobile/expo-base/src/components/feedback/loading.tsx +155 -0
  1275. package/templates/mobile/expo-base/src/components/haptic-tab.tsx +18 -0
  1276. package/templates/mobile/expo-base/src/components/hello-wave.tsx +19 -0
  1277. package/templates/mobile/expo-base/src/components/layout/column.tsx +49 -0
  1278. package/templates/mobile/expo-base/src/components/layout/container.tsx +41 -0
  1279. package/templates/mobile/expo-base/src/components/layout/index.ts +14 -0
  1280. package/templates/mobile/expo-base/src/components/layout/row.tsx +52 -0
  1281. package/templates/mobile/expo-base/src/components/layout/screen.tsx +110 -0
  1282. package/templates/mobile/expo-base/src/components/layout/section.tsx +37 -0
  1283. package/templates/mobile/expo-base/src/components/parallax-scroll-view.tsx +79 -0
  1284. package/templates/mobile/expo-base/src/components/themed-text.tsx +60 -0
  1285. package/templates/mobile/expo-base/src/components/themed-view.tsx +14 -0
  1286. package/templates/mobile/expo-base/src/components/ui/__tests__/button.test.tsx +206 -0
  1287. package/templates/mobile/expo-base/src/components/ui/avatar.tsx +141 -0
  1288. package/templates/mobile/expo-base/src/components/ui/badge.tsx +175 -0
  1289. package/templates/mobile/expo-base/src/components/ui/button.tsx +247 -0
  1290. package/templates/mobile/expo-base/src/components/ui/card.tsx +127 -0
  1291. package/templates/mobile/expo-base/src/components/ui/collapsible.tsx +45 -0
  1292. package/templates/mobile/expo-base/src/components/ui/divider.tsx +50 -0
  1293. package/templates/mobile/expo-base/src/components/ui/icon-symbol.ios.tsx +32 -0
  1294. package/templates/mobile/expo-base/src/components/ui/icon-symbol.tsx +41 -0
  1295. package/templates/mobile/expo-base/src/components/ui/icon.tsx +137 -0
  1296. package/templates/mobile/expo-base/src/components/ui/index.ts +20 -0
  1297. package/templates/mobile/expo-base/src/components/ui/input.tsx +242 -0
  1298. package/templates/mobile/expo-base/src/constants/theme.ts +53 -0
  1299. package/templates/mobile/expo-base/src/contexts/auth-context.tsx +246 -0
  1300. package/templates/mobile/expo-base/src/contexts/index.ts +8 -0
  1301. package/templates/mobile/expo-base/src/contexts/query-client.tsx +43 -0
  1302. package/templates/mobile/expo-base/src/contexts/theme-context.tsx +111 -0
  1303. package/templates/mobile/expo-base/src/features/auth/forgot-password-screen.tsx +164 -0
  1304. package/templates/mobile/expo-base/src/features/auth/index.ts +7 -0
  1305. package/templates/mobile/expo-base/src/features/auth/login-screen.tsx +177 -0
  1306. package/templates/mobile/expo-base/src/features/auth/register-screen.tsx +220 -0
  1307. package/templates/mobile/expo-base/src/features/onboarding/README.md +190 -0
  1308. package/templates/mobile/expo-base/src/features/onboarding/index.ts +7 -0
  1309. package/templates/mobile/expo-base/src/features/onboarding/onboarding-debug.tsx +120 -0
  1310. package/templates/mobile/expo-base/src/features/onboarding/onboarding-screen.tsx +242 -0
  1311. package/templates/mobile/expo-base/src/features/onboarding/onboarding-utils.ts +49 -0
  1312. package/templates/mobile/expo-base/src/features/profile/change-password-screen.tsx +154 -0
  1313. package/templates/mobile/expo-base/src/features/profile/edit-profile-screen.tsx +183 -0
  1314. package/templates/mobile/expo-base/src/features/profile/index.ts +7 -0
  1315. package/templates/mobile/expo-base/src/features/profile/profile-screen.tsx +177 -0
  1316. package/templates/mobile/expo-base/src/features/settings/about-screen.tsx +167 -0
  1317. package/templates/mobile/expo-base/src/features/settings/index.ts +9 -0
  1318. package/templates/mobile/expo-base/src/features/settings/language-settings-screen.tsx +97 -0
  1319. package/templates/mobile/expo-base/src/features/settings/notifications-settings-screen.tsx +128 -0
  1320. package/templates/mobile/expo-base/src/features/settings/settings-screen.tsx +141 -0
  1321. package/templates/mobile/expo-base/src/features/settings/theme-settings-screen.tsx +149 -0
  1322. package/templates/mobile/expo-base/src/hooks/__tests__/use-theme.test.ts +151 -0
  1323. package/templates/mobile/expo-base/src/hooks/index.ts +13 -0
  1324. package/templates/mobile/expo-base/src/hooks/use-api.ts +206 -0
  1325. package/templates/mobile/expo-base/src/hooks/use-auth.ts +7 -0
  1326. package/templates/mobile/expo-base/src/hooks/use-color-scheme.ts +19 -0
  1327. package/templates/mobile/expo-base/src/hooks/use-color-scheme.web.ts +31 -0
  1328. package/templates/mobile/expo-base/src/hooks/use-theme-color.ts +21 -0
  1329. package/templates/mobile/expo-base/src/hooks/use-theme.ts +60 -0
  1330. package/templates/mobile/expo-base/src/hooks/use-translation.ts +48 -0
  1331. package/templates/mobile/expo-base/src/i18n/index.ts +113 -0
  1332. package/templates/mobile/expo-base/src/i18n/locales/en-US.json +134 -0
  1333. package/templates/mobile/expo-base/src/i18n/locales/es-AR.json +134 -0
  1334. package/templates/mobile/expo-base/src/scripts/reset-project.js +112 -0
  1335. package/templates/mobile/expo-base/src/services/api/client.ts +190 -0
  1336. package/templates/mobile/expo-base/src/services/api/endpoints.ts +45 -0
  1337. package/templates/mobile/expo-base/src/services/api/index.ts +7 -0
  1338. package/templates/mobile/expo-base/src/services/storage/secure-storage.ts +56 -0
  1339. package/templates/mobile/expo-base/src/theme/colors.ts +147 -0
  1340. package/templates/mobile/expo-base/src/theme/index.ts +40 -0
  1341. package/templates/mobile/expo-base/src/theme/semantic-colors.ts +221 -0
  1342. package/templates/mobile/expo-base/src/theme/shadows.ts +123 -0
  1343. package/templates/mobile/expo-base/src/theme/spacing.ts +118 -0
  1344. package/templates/mobile/expo-base/src/theme/theme-config.ts +111 -0
  1345. package/templates/mobile/expo-base/src/theme/tokens.ts +218 -0
  1346. package/templates/mobile/expo-base/src/theme/typography.ts +152 -0
  1347. package/templates/mobile/expo-base/src/types/index.ts +6 -0
  1348. package/templates/mobile/expo-base/src/types/models.ts +153 -0
  1349. package/templates/mobile/expo-base/src/types/navigation.ts +67 -0
  1350. package/templates/mobile/expo-base/src/utils/__tests__/validators.test.ts +312 -0
  1351. package/templates/mobile/expo-base/src/utils/constants.ts +167 -0
  1352. package/templates/mobile/expo-base/src/utils/formatters.ts +222 -0
  1353. package/templates/mobile/expo-base/src/utils/index.ts +7 -0
  1354. package/templates/mobile/expo-base/src/utils/validators.ts +187 -0
  1355. package/templates/mobile/expo-base/tsconfig.json +26 -0
@@ -0,0 +1,519 @@
1
+ # Angular Dependency Injection Patterns
2
+
3
+ ## Table of Contents
4
+ - [Service Patterns](#service-patterns)
5
+ - [Abstract Classes as Tokens](#abstract-classes-as-tokens)
6
+ - [Hierarchical Injection](#hierarchical-injection)
7
+ - [Dynamic Providers](#dynamic-providers)
8
+ - [Testing with DI](#testing-with-di)
9
+ - [DestroyRef and Cleanup](#destroyref-and-cleanup)
10
+
11
+ ## Service Patterns
12
+
13
+ ### Facade Service
14
+
15
+ Combine multiple services into a single API:
16
+
17
+ ```typescript
18
+ @Injectable({ providedIn: 'root' })
19
+ export class ShopFacade {
20
+ private productService = inject(Product);
21
+ private cartService = inject(Cart);
22
+ private orderService = inject(Order);
23
+
24
+ // Expose combined state
25
+ readonly products = this.productService.products;
26
+ readonly cart = this.cartService.items;
27
+ readonly cartTotal = this.cartService.total;
28
+
29
+ // Unified actions
30
+ addToCart(productId: string, quantity: number) {
31
+ const product = this.productService.getById(productId);
32
+ if (product) {
33
+ this.cartService.add(product, quantity);
34
+ }
35
+ }
36
+
37
+ async checkout() {
38
+ const items = this.cartService.items();
39
+ const order = await this.orderService.create(items);
40
+ this.cartService.clear();
41
+ return order;
42
+ }
43
+ }
44
+ ```
45
+
46
+ ### State Service Pattern
47
+
48
+ ```typescript
49
+ interface UserState {
50
+ user: User | null;
51
+ loading: boolean;
52
+ error: string | null;
53
+ }
54
+
55
+ @Injectable({ providedIn: 'root' })
56
+ export class UserState {
57
+ private state = signal<UserState>({
58
+ user: null,
59
+ loading: false,
60
+ error: null,
61
+ });
62
+
63
+ // Selectors
64
+ readonly user = computed(() => this.state().user);
65
+ readonly loading = computed(() => this.state().loading);
66
+ readonly error = computed(() => this.state().error);
67
+ readonly isAuthenticated = computed(() => this.state().user !== null);
68
+
69
+ // Actions
70
+ setUser(user: User) {
71
+ this.state.update(s => ({ ...s, user, loading: false, error: null }));
72
+ }
73
+
74
+ setLoading() {
75
+ this.state.update(s => ({ ...s, loading: true, error: null }));
76
+ }
77
+
78
+ setError(error: string) {
79
+ this.state.update(s => ({ ...s, loading: false, error }));
80
+ }
81
+
82
+ clear() {
83
+ this.state.set({ user: null, loading: false, error: null });
84
+ }
85
+ }
86
+ ```
87
+
88
+ ### Repository Pattern
89
+
90
+ ```typescript
91
+ // Generic repository interface
92
+ export abstract class Repository<T extends { id: string }> {
93
+ abstract getAll(): Promise<T[]>;
94
+ abstract getById(id: string): Promise<T | null>;
95
+ abstract create(item: Omit<T, 'id'>): Promise<T>;
96
+ abstract update(id: string, item: Partial<T>): Promise<T>;
97
+ abstract delete(id: string): Promise<void>;
98
+ }
99
+
100
+ // HTTP implementation
101
+ @Injectable()
102
+ export class HttpUserRepo extends Repository<User> {
103
+ private http = inject(HttpClient);
104
+ private apiUrl = inject(API_URL);
105
+
106
+ async getAll(): Promise<User[]> {
107
+ return firstValueFrom(this.http.get<User[]>(`${this.apiUrl}/users`));
108
+ }
109
+
110
+ async getById(id: string): Promise<User | null> {
111
+ return firstValueFrom(
112
+ this.http.get<User>(`${this.apiUrl}/users/${id}`).pipe(
113
+ catchError(() => of(null))
114
+ )
115
+ );
116
+ }
117
+
118
+ async create(user: Omit<User, 'id'>): Promise<User> {
119
+ return firstValueFrom(this.http.post<User>(`${this.apiUrl}/users`, user));
120
+ }
121
+
122
+ async update(id: string, user: Partial<User>): Promise<User> {
123
+ return firstValueFrom(this.http.patch<User>(`${this.apiUrl}/users/${id}`, user));
124
+ }
125
+
126
+ async delete(id: string): Promise<void> {
127
+ await firstValueFrom(this.http.delete(`${this.apiUrl}/users/${id}`));
128
+ }
129
+ }
130
+
131
+ // Provide implementation
132
+ { provide: Repository, useClass: HttpUserRepo }
133
+ ```
134
+
135
+ ## Abstract Classes as Tokens
136
+
137
+ Use abstract classes for better type safety:
138
+
139
+ ```typescript
140
+ // Abstract service definition
141
+ export abstract class Logger {
142
+ abstract log(message: string): void;
143
+ abstract error(message: string, error?: Error): void;
144
+ abstract warn(message: string): void;
145
+ }
146
+
147
+ // Console implementation
148
+ @Injectable()
149
+ export class ConsoleLog extends Logger {
150
+ log(message: string) {
151
+ console.log(`[LOG] ${message}`);
152
+ }
153
+
154
+ error(message: string, error?: Error) {
155
+ console.error(`[ERROR] ${message}`, error);
156
+ }
157
+
158
+ warn(message: string) {
159
+ console.warn(`[WARN] ${message}`);
160
+ }
161
+ }
162
+
163
+ // Remote implementation
164
+ @Injectable()
165
+ export class RemoteLog extends Logger {
166
+ private http = inject(HttpClient);
167
+
168
+ log(message: string) {
169
+ this.send('log', message);
170
+ }
171
+
172
+ error(message: string, error?: Error) {
173
+ this.send('error', message, error);
174
+ }
175
+
176
+ warn(message: string) {
177
+ this.send('warn', message);
178
+ }
179
+
180
+ private send(level: string, message: string, error?: Error) {
181
+ this.http.post('/api/logs', { level, message, error: error?.message }).subscribe();
182
+ }
183
+ }
184
+
185
+ // Provide based on environment
186
+ {
187
+ provide: Logger,
188
+ useClass: environment.production ? RemoteLog : ConsoleLog,
189
+ }
190
+
191
+ // Inject using abstract class
192
+ @Injectable({ providedIn: 'root' })
193
+ export class User {
194
+ private logger = inject(Logger);
195
+
196
+ createUser(user: UserData) {
197
+ this.logger.log(`Creating user: ${user.email}`);
198
+ // ...
199
+ }
200
+ }
201
+ ```
202
+
203
+ ## Hierarchical Injection
204
+
205
+ ### Component Tree Injection
206
+
207
+ ```typescript
208
+ // Parent provides service
209
+ @Component({
210
+ selector: 'app-form-container',
211
+ providers: [FormState],
212
+ template: `
213
+ <app-form-header />
214
+ <app-form-body />
215
+ <app-form-footer />
216
+ `,
217
+ })
218
+ export class FormContainer {
219
+ private formState = inject(FormState);
220
+ }
221
+
222
+ // Children share same instance
223
+ @Component({
224
+ selector: 'app-form-body',
225
+ template: `...`,
226
+ })
227
+ export class FormBody {
228
+ // Gets same instance as parent
229
+ private formState = inject(FormState);
230
+ }
231
+
232
+ // Grandchildren also share
233
+ @Component({
234
+ selector: 'app-form-field',
235
+ template: `...`,
236
+ })
237
+ export class FormField {
238
+ // Gets same instance from ancestor
239
+ private formState = inject(FormState);
240
+ }
241
+ ```
242
+
243
+ ### viewProviders vs providers
244
+
245
+ ```typescript
246
+ @Component({
247
+ selector: 'app-tabs',
248
+ // providers: Available to component AND content children
249
+ providers: [TabsSvc],
250
+
251
+ // viewProviders: Available to component AND view children only
252
+ // NOT available to content children (<ng-content>)
253
+ viewProviders: [InternalTabs],
254
+
255
+ template: `
256
+ <div class="tabs">
257
+ <ng-content /> <!-- Content children can't access viewProviders -->
258
+ </div>
259
+ `,
260
+ })
261
+ export class Tabs {}
262
+ ```
263
+
264
+ ## Dynamic Providers
265
+
266
+ ### Feature Flags
267
+
268
+ ```typescript
269
+ export const FEATURE_FLAGS = new InjectionToken<FeatureFlags>('FeatureFlags');
270
+
271
+ interface FeatureFlags {
272
+ newDashboard: boolean;
273
+ betaFeatures: boolean;
274
+ experimentalApi: boolean;
275
+ }
276
+
277
+ // Load from API
278
+ {
279
+ provide: FEATURE_FLAGS,
280
+ useFactory: async () => {
281
+ const response = await fetch('/api/features');
282
+ return response.json();
283
+ },
284
+ }
285
+
286
+ // Use in components
287
+ @Component({...})
288
+ export class Dashboard {
289
+ private features = inject(FEATURE_FLAGS);
290
+
291
+ showNewDashboard = this.features.newDashboard;
292
+ }
293
+ ```
294
+
295
+ ### Platform-Specific Services
296
+
297
+ ```typescript
298
+ export abstract class Storage {
299
+ abstract get(key: string): string | null;
300
+ abstract set(key: string, value: string): void;
301
+ abstract remove(key: string): void;
302
+ }
303
+
304
+ @Injectable()
305
+ export class BrowserStorage extends Storage {
306
+ get(key: string) { return localStorage.getItem(key); }
307
+ set(key: string, value: string) { localStorage.setItem(key, value); }
308
+ remove(key: string) { localStorage.removeItem(key); }
309
+ }
310
+
311
+ @Injectable()
312
+ export class ServerStorage extends Storage {
313
+ private store = new Map<string, string>();
314
+
315
+ get(key: string) { return this.store.get(key) ?? null; }
316
+ set(key: string, value: string) { this.store.set(key, value); }
317
+ remove(key: string) { this.store.delete(key); }
318
+ }
319
+
320
+ // Provide based on platform
321
+ import { PLATFORM_ID, isPlatformBrowser } from '@angular/common';
322
+
323
+ {
324
+ provide: Storage,
325
+ useFactory: (platformId: object) => {
326
+ return isPlatformBrowser(platformId)
327
+ ? new BrowserStorage()
328
+ : new ServerStorage();
329
+ },
330
+ deps: [PLATFORM_ID],
331
+ }
332
+ ```
333
+
334
+ ## Testing with DI
335
+
336
+ ### Mocking Services
337
+
338
+ ```typescript
339
+ describe('UserCmpt', () => {
340
+ let userServiceSpy: jasmine.SpyObj<User>;
341
+
342
+ beforeEach(async () => {
343
+ userServiceSpy = jasmine.createSpyObj('User', ['getUser', 'updateUser']);
344
+ userServiceSpy.getUser.and.returnValue(of({ id: '1', name: 'Test' }));
345
+
346
+ await TestBed.configureTestingModule({
347
+ imports: [UserCmpt],
348
+ providers: [
349
+ { provide: User, useValue: userServiceSpy },
350
+ ],
351
+ }).compileComponents();
352
+ });
353
+
354
+ it('should load user', () => {
355
+ const fixture = TestBed.createComponent(UserCmpt);
356
+ fixture.detectChanges();
357
+
358
+ expect(userServiceSpy.getUser).toHaveBeenCalled();
359
+ });
360
+ });
361
+ ```
362
+
363
+ ### Overriding Providers
364
+
365
+ ```typescript
366
+ describe('with different config', () => {
367
+ beforeEach(async () => {
368
+ await TestBed.configureTestingModule({
369
+ imports: [App],
370
+ })
371
+ .overrideProvider(APP_CONFIG, {
372
+ useValue: { apiUrl: 'http://test-api.com' },
373
+ })
374
+ .compileComponents();
375
+ });
376
+ });
377
+ ```
378
+
379
+ ### Testing Injection Tokens
380
+
381
+ ```typescript
382
+ describe('API_URL token', () => {
383
+ it('should provide correct URL', () => {
384
+ TestBed.configureTestingModule({
385
+ providers: [
386
+ { provide: API_URL, useValue: 'https://api.test.com' },
387
+ ],
388
+ });
389
+
390
+ const apiUrl = TestBed.inject(API_URL);
391
+ expect(apiUrl).toBe('https://api.test.com');
392
+ });
393
+ });
394
+ ```
395
+
396
+ ## DestroyRef and Cleanup
397
+
398
+ ### Automatic Cleanup
399
+
400
+ ```typescript
401
+ import { DestroyRef, inject } from '@angular/core';
402
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
403
+
404
+ @Component({...})
405
+ export class Data {
406
+ private destroyRef = inject(DestroyRef);
407
+ private dataService = inject(DataSvc);
408
+
409
+ constructor() {
410
+ // Auto-unsubscribe when component destroys
411
+ this.dataService.data$
412
+ .pipe(takeUntilDestroyed())
413
+ .subscribe(data => {
414
+ console.log(data);
415
+ });
416
+ }
417
+
418
+ // Or use DestroyRef directly
419
+ ngOnInit() {
420
+ const subscription = this.dataService.updates$.subscribe();
421
+
422
+ this.destroyRef.onDestroy(() => {
423
+ subscription.unsubscribe();
424
+ console.log('Cleaned up!');
425
+ });
426
+ }
427
+ }
428
+ ```
429
+
430
+ ### In Services
431
+
432
+ ```typescript
433
+ @Injectable()
434
+ export class WebSocket {
435
+ private destroyRef = inject(DestroyRef);
436
+ private socket: WebSocket | null = null;
437
+
438
+ constructor() {
439
+ this.destroyRef.onDestroy(() => {
440
+ this.socket?.close();
441
+ });
442
+ }
443
+
444
+ connect(url: string) {
445
+ this.socket = new WebSocket(url);
446
+ }
447
+ }
448
+ ```
449
+
450
+ ### takeUntilDestroyed Outside Constructor
451
+
452
+ ```typescript
453
+ @Component({...})
454
+ export class My {
455
+ private destroyRef = inject(DestroyRef);
456
+
457
+ loadData() {
458
+ // Pass destroyRef when using outside constructor
459
+ this.http.get('/api/data')
460
+ .pipe(takeUntilDestroyed(this.destroyRef))
461
+ .subscribe();
462
+ }
463
+ }
464
+ ```
465
+
466
+ ## Injection Context Utilities
467
+
468
+ ### assertInInjectionContext
469
+
470
+ ```typescript
471
+ import { assertInInjectionContext, inject } from '@angular/core';
472
+
473
+ export function injectLogger(): Logger {
474
+ assertInInjectionContext(injectLogger);
475
+ return inject(Logger);
476
+ }
477
+
478
+ // Usage - must be called in injection context
479
+ @Component({...})
480
+ export class My2 {
481
+ private logger = injectLogger(); // OK
482
+
483
+ someMethod() {
484
+ // injectLogger(); // ERROR - not in injection context
485
+ }
486
+ }
487
+ ```
488
+
489
+ ### Custom inject Functions
490
+
491
+ ```typescript
492
+ // Create reusable injection utilities
493
+ export function injectRouteParam(param: string): Signal<string | null> {
494
+ assertInInjectionContext(injectRouteParam);
495
+
496
+ const route = inject(ActivatedRoute);
497
+ return toSignal(
498
+ route.paramMap.pipe(map(params => params.get(param))),
499
+ { initialValue: null }
500
+ );
501
+ }
502
+
503
+ export function injectQueryParam(param: string): Signal<string | null> {
504
+ assertInInjectionContext(injectQueryParam);
505
+
506
+ const route = inject(ActivatedRoute);
507
+ return toSignal(
508
+ route.queryParamMap.pipe(map(params => params.get(param))),
509
+ { initialValue: null }
510
+ );
511
+ }
512
+
513
+ // Usage
514
+ @Component({...})
515
+ export class UserCmpt {
516
+ userId = injectRouteParam('id');
517
+ tab = injectQueryParam('tab');
518
+ }
519
+ ```