create-huenei-template 0.2.18 → 0.3.1
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.
- package/dist/templates/frontend/hub-pre-sales/.cursor/context/pre-sales.md +3 -2
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/architech.mdc +13 -1
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/component-patterns.mdc +1 -1
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/gsap-animations.mdc +46 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/pre-sales-mode.mdc +2 -1
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/restrictions.mdc +3 -1
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/animate/SKILL.md +23 -10
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/delight/SKILL.md +3 -4
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-core/SKILL.md +254 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-frameworks/SKILL.md +266 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-performance/SKILL.md +79 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-plugins/SKILL.md +433 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-react/SKILL.md +136 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-scrolltrigger/SKILL.md +296 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-timeline/SKILL.md +107 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-utils/SKILL.md +284 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/overdrive/SKILL.md +1 -1
- package/dist/templates/frontend/hub-pre-sales/AGENTS.md +13 -3
- package/dist/templates/frontend/hub-pre-sales/README.md +2 -1
- package/dist/templates/frontend/hub-pre-sales/package.json +84 -82
- package/dist/templates/frontend/hub-pre-sales/src/lib/gsap.ts +6 -0
- package/dist/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -199
- package/dist/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
- package/dist/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -74
- package/dist/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -104
- package/dist/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -41
- package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -296
- package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -301
- package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -301
- package/dist/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -58
- package/dist/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
- package/dist/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
- package/dist/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -57
- package/dist/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -121
- package/dist/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
- package/dist/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -179
- package/dist/templates/frontend/pre-sales/src/data/dashboard.ts +249 -249
- package/dist/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -73
- package/dist/templates/frontend/pre-sales/src/index.css +282 -282
- package/dist/templates/frontend/pre-sales/src/routes/__root.tsx +62 -62
- package/dist/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -173
- package/dist/templates/frontend/react-vite/.npmrc.example +28 -0
- package/dist/templates/frontend/react-vite/README.md +17 -0
- package/dist/templates/frontend/react-vite/eslint.config.js +41 -31
- package/dist/templates/frontend/react-vite/package.json +2 -0
- package/dist/templates/frontend/react-vite/src/index.css +3 -15
- package/dist/templates/frontend/react-vite/src/main.tsx +36 -33
- package/dist/templates/frontend/react-vite/src/routes/__root.tsx +3 -3
- package/dist/templates/frontend/react-vite/src/routes/index.tsx +185 -187
- package/dist/templates/frontend/react-vite/src/routes/ui-components.tsx +698 -922
- package/dist/templates/frontend/react-vite/vite.config.ts +7 -2
- package/dist/templates/frontend/react-vite-help/.vscode/settings.json +26 -0
- package/dist/templates/mobile/expo-base/package.json +3 -2
- package/dist/templates/mobile/expo-base/pnpm-workspace.yaml +3 -0
- package/dist/templates/mobile/expo-base/src/features/auth/login-screen.tsx +144 -177
- package/dist/templates/mobile/expo-base/src/i18n/locales/en-US.json +136 -134
- package/dist/templates/mobile/expo-base/src/i18n/locales/es-AR.json +136 -134
- package/package.json +1 -1
- package/templates/frontend/hub-pre-sales/.cursor/context/pre-sales.md +3 -2
- package/templates/frontend/hub-pre-sales/.cursor/rules/architech.mdc +13 -1
- package/templates/frontend/hub-pre-sales/.cursor/rules/component-patterns.mdc +1 -1
- package/templates/frontend/hub-pre-sales/.cursor/rules/gsap-animations.mdc +46 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/pre-sales-mode.mdc +2 -1
- package/templates/frontend/hub-pre-sales/.cursor/rules/restrictions.mdc +3 -1
- package/templates/frontend/hub-pre-sales/.cursor/skills/animate/SKILL.md +23 -10
- package/templates/frontend/hub-pre-sales/.cursor/skills/delight/SKILL.md +3 -4
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-core/SKILL.md +254 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-frameworks/SKILL.md +266 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-performance/SKILL.md +79 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-plugins/SKILL.md +433 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-react/SKILL.md +136 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-scrolltrigger/SKILL.md +296 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-timeline/SKILL.md +107 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-utils/SKILL.md +284 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/overdrive/SKILL.md +1 -1
- package/templates/frontend/hub-pre-sales/AGENTS.md +13 -3
- package/templates/frontend/hub-pre-sales/README.md +2 -1
- package/templates/frontend/hub-pre-sales/package.json +84 -82
- package/templates/frontend/hub-pre-sales/pnpm-lock.yaml +6597 -6575
- package/templates/frontend/hub-pre-sales/skills-lock.json +53 -0
- package/templates/frontend/hub-pre-sales/src/lib/gsap.ts +6 -0
- package/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -199
- package/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
- package/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -74
- package/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -104
- package/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -41
- package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -296
- package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -301
- package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -301
- package/templates/frontend/pre-sales/pnpm-lock.yaml +6448 -6448
- package/templates/frontend/pre-sales/skills-lock.json +10 -10
- package/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -58
- package/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
- package/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
- package/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -57
- package/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -121
- package/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
- package/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -179
- package/templates/frontend/pre-sales/src/data/dashboard.ts +249 -249
- package/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -73
- package/templates/frontend/pre-sales/src/index.css +282 -282
- package/templates/frontend/pre-sales/src/routes/__root.tsx +62 -62
- package/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -173
- package/templates/frontend/react-vite/.npmrc.example +28 -0
- package/templates/frontend/react-vite/README.md +17 -0
- package/templates/frontend/react-vite/eslint.config.js +41 -31
- package/templates/frontend/react-vite/package.json +2 -0
- package/templates/frontend/react-vite/pnpm-lock.yaml +535 -13
- package/templates/frontend/react-vite/src/index.css +3 -15
- package/templates/frontend/react-vite/src/main.tsx +36 -33
- package/templates/frontend/react-vite/src/routes/__root.tsx +3 -3
- package/templates/frontend/react-vite/src/routes/index.tsx +185 -187
- package/templates/frontend/react-vite/src/routes/ui-components.tsx +698 -922
- package/templates/frontend/react-vite/vite.config.ts +7 -2
- package/templates/frontend/react-vite-help/.vscode/settings.json +26 -0
- package/templates/mobile/expo-base/package.json +3 -2
- package/templates/mobile/expo-base/pnpm-lock.yaml +10240 -11354
- package/templates/mobile/expo-base/pnpm-workspace.yaml +3 -0
- package/templates/mobile/expo-base/src/features/auth/login-screen.tsx +144 -177
- package/templates/mobile/expo-base/src/i18n/locales/en-US.json +136 -134
- package/templates/mobile/expo-base/src/i18n/locales/es-AR.json +136 -134
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/nestjs-code-reviewer.md +0 -54
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/prisma-guardian.md +0 -67
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/test-runner.md +0 -57
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/commands/new-endpoint.md +0 -209
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/commands/new-model.md +0 -201
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/autoTestOnStop.ts +0 -127
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/blockDangerous.ts +0 -98
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/ensureTestsExist.ts +0 -405
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/formatOnEdit.ts +0 -70
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/protectSecrets.ts +0 -101
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/sessionInit.ts +0 -104
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/validatePrisma.ts +0 -121
- package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks.json +0 -46
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/nestjs-code-reviewer.md +0 -54
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/prisma-guardian.md +0 -67
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/test-runner.md +0 -57
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/commands/new-endpoint.md +0 -209
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/commands/new-model.md +0 -201
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/autoTestOnStop.ts +0 -127
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/blockDangerous.ts +0 -98
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/ensureTestsExist.ts +0 -405
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/formatOnEdit.ts +0 -70
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/protectSecrets.ts +0 -101
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/sessionInit.ts +0 -104
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/validatePrisma.ts +0 -121
- package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks.json +0 -46
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/nestjs-code-reviewer.md +0 -23
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/sequelize-guardian.md +0 -37
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/test-runner.md +0 -33
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/commands/new-endpoint.md +0 -76
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/commands/new-model.md +0 -85
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/autoTestOnStop.ts +0 -127
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/blockDangerous.ts +0 -98
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/ensureTestsExist.ts +0 -397
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/formatOnEdit.ts +0 -66
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/protectSecrets.ts +0 -101
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/sessionInit.ts +0 -104
- package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks.json +0 -41
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/nestjs-code-reviewer.md +0 -23
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/sequelize-guardian.md +0 -37
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/test-runner.md +0 -33
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/commands/new-endpoint.md +0 -76
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/commands/new-model.md +0 -85
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/autoTestOnStop.ts +0 -127
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/blockDangerous.ts +0 -98
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/ensureTestsExist.ts +0 -397
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/formatOnEdit.ts +0 -66
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/protectSecrets.ts +0 -101
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/sessionInit.ts +0 -104
- package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks.json +0 -41
- package/templates/backend/nestjs-api-postgres/.cursor/agents/nestjs-code-reviewer.md +0 -54
- package/templates/backend/nestjs-api-postgres/.cursor/agents/prisma-guardian.md +0 -62
- package/templates/backend/nestjs-api-postgres/.cursor/agents/security-auditor.md +0 -71
- package/templates/backend/nestjs-api-postgres/.cursor/agents/test-runner.md +0 -58
- package/templates/backend/nestjs-api-postgres/.cursor/commands/add-pagination.md +0 -235
- package/templates/backend/nestjs-api-postgres/.cursor/commands/add-seed.md +0 -160
- package/templates/backend/nestjs-api-postgres/.cursor/commands/add-tests.md +0 -322
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-endpoint.md +0 -209
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-guard.md +0 -195
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-interceptor.md +0 -188
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-middleware.md +0 -176
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-model.md +0 -201
- package/templates/backend/nestjs-api-postgres/.cursor/hooks/auto-retry.ts +0 -62
- package/templates/backend/nestjs-api-postgres/.cursor/hooks/block-dangerous.ts +0 -202
- package/templates/backend/nestjs-api-postgres/.cursor/hooks/format-and-validate.ts +0 -124
- package/templates/backend/nestjs-api-postgres/.cursor/hooks/protect-secrets.ts +0 -105
- package/templates/backend/nestjs-api-postgres/.cursor/hooks/session-context.ts +0 -130
- package/templates/backend/nestjs-api-postgres/.cursor/hooks.json +0 -36
- package/templates/backend/nestjs-api-postgres/.cursor/mcp.json +0 -21
- package/templates/backend/nestjs-api-sqlite/.cursor/agents/code-reviewer.md +0 -153
- package/templates/backend/nestjs-api-sqlite/.cursor/agents/nestjs-architect.md +0 -138
- package/templates/backend/nestjs-api-sqlite/.cursor/agents/prisma-analyst.md +0 -164
- package/templates/backend/nestjs-api-sqlite/.cursor/agents/security-auditor.md +0 -150
- package/templates/backend/nestjs-api-sqlite/.cursor/agents/test-engineer.md +0 -290
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-pagination.md +0 -235
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-seed.md +0 -172
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-tests.md +0 -322
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-endpoint.md +0 -209
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-guard.md +0 -195
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-interceptor.md +0 -188
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-middleware.md +0 -176
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-model.md +0 -201
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks/auto-format.ts +0 -80
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks/block-dangerous-commands.ts +0 -144
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks/prisma-schema-watcher.ts +0 -64
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks/protect-sensitive-files.ts +0 -122
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks/session-context.ts +0 -105
- package/templates/backend/nestjs-api-sqlite/.cursor/hooks.json +0 -18
- package/templates/backend/nestjs-api-sqlite/.cursor/mcp.json +0 -17
- package/templates/backend/nestjs-api-sqlserver/.cursor/agents/nestjs-code-reviewer.md +0 -54
- package/templates/backend/nestjs-api-sqlserver/.cursor/agents/prisma-guardian.md +0 -67
- package/templates/backend/nestjs-api-sqlserver/.cursor/agents/test-runner.md +0 -57
- package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-endpoint.md +0 -209
- package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-model.md +0 -201
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/autoTestOnStop.ts +0 -127
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/blockDangerous.ts +0 -98
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/ensureTestsExist.ts +0 -405
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/formatOnEdit.ts +0 -70
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/protectSecrets.ts +0 -101
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/sessionInit.ts +0 -104
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/validatePrisma.ts +0 -121
- package/templates/backend/nestjs-api-sqlserver/.cursor/hooks.json +0 -46
- package/templates/frontend/angular-base/.cursor/agents/accessibility-reviewer.md +0 -67
- package/templates/frontend/angular-base/.cursor/agents/angular-code-reviewer.md +0 -60
- package/templates/frontend/angular-base/.cursor/agents/qa-test-expert.md +0 -70
- package/templates/frontend/angular-base/.cursor/agents/security-auditor.md +0 -58
- package/templates/frontend/angular-base/.cursor/commands/add-e2e-test.md +0 -236
- package/templates/frontend/angular-base/.cursor/commands/new-component.md +0 -211
- package/templates/frontend/angular-base/.cursor/commands/new-form.md +0 -284
- package/templates/frontend/angular-base/.cursor/commands/new-interceptor.md +0 -257
- package/templates/frontend/angular-base/.cursor/commands/new-page.md +0 -215
- package/templates/frontend/angular-base/.cursor/commands/new-service.md +0 -203
- package/templates/frontend/angular-base/.cursor/hooks/auto-format.ts +0 -70
- package/templates/frontend/angular-base/.cursor/hooks/auto-test-on-stop.ts +0 -113
- package/templates/frontend/angular-base/.cursor/hooks/block-dangerous-commands.ts +0 -160
- package/templates/frontend/angular-base/.cursor/hooks/ensure-tests-exist.ts +0 -363
- package/templates/frontend/angular-base/.cursor/hooks/protect-sensitive-files.ts +0 -118
- package/templates/frontend/angular-base/.cursor/hooks/session-context.ts +0 -110
- package/templates/frontend/angular-base/.cursor/hooks.json +0 -41
- package/templates/frontend/angular-base/.cursor/mcp.json +0 -21
- package/templates/frontend/angular-nx/.cursor/agents/angular-code-reviewer.md +0 -64
- package/templates/frontend/angular-nx/.cursor/agents/ci-watcher.md +0 -480
- package/templates/frontend/angular-nx/.cursor/agents/nx-architecture-guardian.md +0 -69
- package/templates/frontend/angular-nx/.cursor/agents/qa-test-expert.md +0 -75
- package/templates/frontend/angular-nx/.cursor/agents/security-auditor.md +0 -61
- package/templates/frontend/angular-nx/.cursor/commands/ci-monitor.md +0 -428
- package/templates/frontend/angular-nx/.cursor/hooks/auto-format.ts +0 -70
- package/templates/frontend/angular-nx/.cursor/hooks/auto-test-on-stop.ts +0 -115
- package/templates/frontend/angular-nx/.cursor/hooks/block-dangerous-commands.ts +0 -188
- package/templates/frontend/angular-nx/.cursor/hooks/ensure-tests-exist.ts +0 -399
- package/templates/frontend/angular-nx/.cursor/hooks/protect-sensitive-files.ts +0 -128
- package/templates/frontend/angular-nx/.cursor/hooks/session-context.ts +0 -121
- package/templates/frontend/angular-nx/.cursor/hooks.json +0 -41
- package/templates/frontend/angular-nx/.cursor/mcp.json +0 -12
- package/templates/frontend/hub-pre-sales/.cursor/agents/frontend-senior.agent.md +0 -49
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-builder.agent.md +0 -98
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +0 -36
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-refactor.agent.md +0 -54
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-validator.agent.md +0 -69
- package/templates/frontend/hub-pre-sales/.cursor/agents/qa-test-expert.agent.md +0 -48
- package/templates/frontend/hub-pre-sales/.cursor/agents/security-expert.agent.md +0 -39
- package/templates/frontend/hub-pre-sales/.cursor/agents/ux-ui-expert.agent.md +0 -45
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-calendar.md +0 -151
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-chart.md +0 -148
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-dashboard.md +0 -135
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-form.md +0 -128
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-login.md +0 -160
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-map.md +0 -172
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-route.md +0 -211
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-screen.md +0 -118
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-table.md +0 -156
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-tests.md +0 -269
- package/templates/frontend/hub-pre-sales/.cursor/commands/mock-backend.md +0 -139
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-component.md +0 -192
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-form.md +0 -268
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-page.md +0 -203
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-query.md +0 -287
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-table.md +0 -299
- package/templates/frontend/hub-pre-sales/.cursor/commands/prepare-preview.md +0 -48
- package/templates/frontend/hub-pre-sales/.cursor/commands/refactor-ui.md +0 -94
- package/templates/frontend/hub-pre-sales/.cursor/commands/ver-demo.md +0 -58
- package/templates/frontend/hub-pre-sales/.cursor/hooks/checkFileLength.ts +0 -69
- package/templates/frontend/hub-pre-sales/.cursor/hooks/injectPreSalesContext.ts +0 -103
- package/templates/frontend/hub-pre-sales/.cursor/hooks.json +0 -23
- package/templates/frontend/hub-pre-sales/.cursor/mcp.json +0 -17
- package/templates/frontend/pre-sales/.cursor/agents/frontend-senior.agent.md +0 -49
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-builder.agent.md +0 -92
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +0 -36
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-deploy.agent.md +0 -87
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-refactor.agent.md +0 -54
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-validator.agent.md +0 -69
- package/templates/frontend/pre-sales/.cursor/agents/qa-test-expert.agent.md +0 -48
- package/templates/frontend/pre-sales/.cursor/agents/security-expert.agent.md +0 -39
- package/templates/frontend/pre-sales/.cursor/agents/ux-ui-expert.agent.md +0 -45
- package/templates/frontend/pre-sales/.cursor/commands/add-calendar.md +0 -151
- package/templates/frontend/pre-sales/.cursor/commands/add-chart.md +0 -148
- package/templates/frontend/pre-sales/.cursor/commands/add-dashboard.md +0 -135
- package/templates/frontend/pre-sales/.cursor/commands/add-form.md +0 -128
- package/templates/frontend/pre-sales/.cursor/commands/add-login.md +0 -160
- package/templates/frontend/pre-sales/.cursor/commands/add-map.md +0 -172
- package/templates/frontend/pre-sales/.cursor/commands/add-route.md +0 -211
- package/templates/frontend/pre-sales/.cursor/commands/add-screen.md +0 -118
- package/templates/frontend/pre-sales/.cursor/commands/add-table.md +0 -156
- package/templates/frontend/pre-sales/.cursor/commands/add-tests.md +0 -269
- package/templates/frontend/pre-sales/.cursor/commands/deploy-demo.md +0 -73
- package/templates/frontend/pre-sales/.cursor/commands/mock-backend.md +0 -139
- package/templates/frontend/pre-sales/.cursor/commands/new-component.md +0 -192
- package/templates/frontend/pre-sales/.cursor/commands/new-form.md +0 -268
- package/templates/frontend/pre-sales/.cursor/commands/new-page.md +0 -203
- package/templates/frontend/pre-sales/.cursor/commands/new-query.md +0 -287
- package/templates/frontend/pre-sales/.cursor/commands/new-table.md +0 -299
- package/templates/frontend/pre-sales/.cursor/commands/prepare-deploy.md +0 -135
- package/templates/frontend/pre-sales/.cursor/commands/refactor-ui.md +0 -94
- package/templates/frontend/pre-sales/.cursor/commands/ver-demo.md +0 -58
- package/templates/frontend/pre-sales/.cursor/hooks/checkFileLength.ts +0 -69
- package/templates/frontend/pre-sales/.cursor/hooks/ensureTestsExist.ts +0 -220
- package/templates/frontend/pre-sales/.cursor/hooks/injectPreSalesContext.ts +0 -97
- package/templates/frontend/pre-sales/.cursor/hooks.json +0 -23
- package/templates/frontend/pre-sales/.cursor/mcp.json +0 -13
- package/templates/frontend/react-ssr/.cursor/agents/accessibility-reviewer.md +0 -22
- package/templates/frontend/react-ssr/.cursor/agents/nextjs-code-reviewer.md +0 -24
- package/templates/frontend/react-ssr/.cursor/agents/react-test-expert.md +0 -32
- package/templates/frontend/react-ssr/.cursor/agents/security-auditor.md +0 -25
- package/templates/frontend/react-ssr/.cursor/commands/new-component.md +0 -97
- package/templates/frontend/react-ssr/.cursor/commands/new-page.md +0 -95
- package/templates/frontend/react-ssr/.cursor/commands/new-prisma-model.md +0 -66
- package/templates/frontend/react-ssr/.cursor/commands/new-server-action.md +0 -89
- package/templates/frontend/react-ssr/.cursor/hooks/auto-format.ts +0 -64
- package/templates/frontend/react-ssr/.cursor/hooks/auto-test-on-stop.ts +0 -94
- package/templates/frontend/react-ssr/.cursor/hooks/block-dangerous-commands.ts +0 -120
- package/templates/frontend/react-ssr/.cursor/hooks/ensure-tests-exist.ts +0 -209
- package/templates/frontend/react-ssr/.cursor/hooks/protect-sensitive-files.ts +0 -101
- package/templates/frontend/react-ssr/.cursor/hooks/session-context.ts +0 -93
- package/templates/frontend/react-ssr/.cursor/hooks/tsconfig.json +0 -10
- package/templates/frontend/react-ssr/.cursor/hooks.json +0 -41
- package/templates/frontend/react-vite/.cursor/agents/frontend-senior.agent.md +0 -49
- package/templates/frontend/react-vite/.cursor/agents/qa-test-expert.agent.md +0 -126
- package/templates/frontend/react-vite/.cursor/agents/security-expert.agent.md +0 -39
- package/templates/frontend/react-vite/.cursor/agents/ux-ui-expert.agent.md +0 -45
- package/templates/frontend/react-vite/.cursor/commands/add-route.md +0 -211
- package/templates/frontend/react-vite/.cursor/commands/add-tests.md +0 -269
- package/templates/frontend/react-vite/.cursor/commands/new-component.md +0 -232
- package/templates/frontend/react-vite/.cursor/commands/new-form.md +0 -268
- package/templates/frontend/react-vite/.cursor/commands/new-page.md +0 -203
- package/templates/frontend/react-vite/.cursor/commands/new-query.md +0 -287
- package/templates/frontend/react-vite/.cursor/commands/new-table.md +0 -299
- package/templates/frontend/react-vite/.cursor/hooks/autoTestOnStop.ts +0 -117
- package/templates/frontend/react-vite/.cursor/hooks/blockDangerous.ts +0 -75
- package/templates/frontend/react-vite/.cursor/hooks/ensureTestsExist.ts +0 -306
- package/templates/frontend/react-vite/.cursor/hooks/formatOnEdit.ts +0 -49
- package/templates/frontend/react-vite/.cursor/hooks/protectSecrets.ts +0 -88
- package/templates/frontend/react-vite/.cursor/hooks/sessionInit.ts +0 -77
- package/templates/frontend/react-vite/.cursor/hooks.json +0 -41
- package/templates/frontend/react-vite/.cursor/mcp.json +0 -17
- package/templates/frontend/react-vite-help/.cursor/RECONSTRUCTION-PROMPT.md +0 -738
- package/templates/frontend/react-vite-help/.cursor/agents/frontend-senior.agent.md +0 -49
- package/templates/frontend/react-vite-help/.cursor/agents/qa-test-expert.agent.md +0 -49
- package/templates/frontend/react-vite-help/.cursor/agents/security-expert.agent.md +0 -39
- package/templates/frontend/react-vite-help/.cursor/agents/ux-ui-expert.agent.md +0 -45
- package/templates/frontend/react-vite-help/.cursor/commands/add-route.md +0 -211
- package/templates/frontend/react-vite-help/.cursor/commands/add-tests.md +0 -269
- package/templates/frontend/react-vite-help/.cursor/commands/new-component.md +0 -232
- package/templates/frontend/react-vite-help/.cursor/commands/new-form.md +0 -268
- package/templates/frontend/react-vite-help/.cursor/commands/new-page.md +0 -203
- package/templates/frontend/react-vite-help/.cursor/commands/new-query.md +0 -287
- package/templates/frontend/react-vite-help/.cursor/commands/new-table.md +0 -299
- package/templates/frontend/react-vite-help/.cursor/hooks/ensureTestsExist.ts +0 -220
- package/templates/frontend/react-vite-help/.cursor/hooks.json +0 -10
- package/templates/frontend/react-vite-help/.cursor/mcp.json +0 -17
- package/templates/mobile/expo-base/.cursor/agents/api-integration.md +0 -139
- package/templates/mobile/expo-base/.cursor/agents/feature-architect.md +0 -131
- package/templates/mobile/expo-base/.cursor/agents/i18n-manager.md +0 -147
- package/templates/mobile/expo-base/.cursor/agents/quality-reviewer.md +0 -137
- package/templates/mobile/expo-base/.cursor/agents/testing-specialist.md +0 -123
- package/templates/mobile/expo-base/.cursor/agents/theme-engineer.md +0 -106
- package/templates/mobile/expo-base/.cursor/commands/add-translation.md +0 -184
- package/templates/mobile/expo-base/.cursor/commands/new-api-service.md +0 -280
- package/templates/mobile/expo-base/.cursor/commands/new-component.md +0 -298
- package/templates/mobile/expo-base/.cursor/commands/new-hook.md +0 -291
- package/templates/mobile/expo-base/.cursor/commands/new-modal.md +0 -345
- package/templates/mobile/expo-base/.cursor/commands/new-screen.md +0 -267
- package/templates/mobile/expo-base/.cursor/commands/new-tab.md +0 -238
- package/templates/mobile/expo-base/.cursor/mcp.json +0 -21
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cursor afterFileEdit hook: detecta archivos editados sin cobertura de tests
|
|
3
|
-
* y genera un scaffold de test siguiendo patrones de add-tests.md
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as fs from 'node:fs'
|
|
7
|
-
import * as path from 'node:path'
|
|
8
|
-
|
|
9
|
-
interface AfterFileEditPayload {
|
|
10
|
-
file_path: string
|
|
11
|
-
workspace_roots: string[]
|
|
12
|
-
edits?: unknown[]
|
|
13
|
-
hook_event_name?: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function readStdin(): Promise<string> {
|
|
17
|
-
return new Promise((resolve) => {
|
|
18
|
-
let data = ''
|
|
19
|
-
process.stdin.setEncoding('utf8')
|
|
20
|
-
process.stdin.on('data', (chunk: string) => {
|
|
21
|
-
data += chunk
|
|
22
|
-
})
|
|
23
|
-
process.stdin.on('end', () => resolve(data))
|
|
24
|
-
process.stdin.on('error', () => resolve(''))
|
|
25
|
-
})
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function normalizePath(p: string, root: string): string {
|
|
29
|
-
const normalized = path.normalize(p)
|
|
30
|
-
if (path.isAbsolute(normalized)) {
|
|
31
|
-
return path.relative(root, normalized)
|
|
32
|
-
}
|
|
33
|
-
return normalized
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const EXCLUDED_FILES = [
|
|
37
|
-
'setup.ts',
|
|
38
|
-
'routeTree.gen.ts',
|
|
39
|
-
'main.tsx',
|
|
40
|
-
'router.tsx',
|
|
41
|
-
'queryClient.ts',
|
|
42
|
-
]
|
|
43
|
-
|
|
44
|
-
function isExcluded(filePath: string): boolean {
|
|
45
|
-
const basename = path.basename(filePath)
|
|
46
|
-
if (EXCLUDED_FILES.includes(basename)) return true
|
|
47
|
-
if (/\.(test|spec)\.(ts|tsx)$/.test(filePath)) return true
|
|
48
|
-
return false
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
type FileType = 'component' | 'route' | 'hook' | 'util' | null
|
|
52
|
-
|
|
53
|
-
function getFileType(relativePath: string): FileType {
|
|
54
|
-
const normalized = relativePath.replace(/\\/g, '/')
|
|
55
|
-
if (normalized.includes('/components/') && (normalized.endsWith('.tsx') || normalized.endsWith('.ts'))) {
|
|
56
|
-
return 'component'
|
|
57
|
-
}
|
|
58
|
-
if (normalized.includes('/routes/') && normalized.endsWith('.tsx')) {
|
|
59
|
-
return 'route'
|
|
60
|
-
}
|
|
61
|
-
if (normalized.includes('/hooks/') && (normalized.endsWith('.ts') || normalized.endsWith('.tsx'))) {
|
|
62
|
-
return 'hook'
|
|
63
|
-
}
|
|
64
|
-
if (/use[a-zA-Z]+\.(ts|tsx)$/.test(path.basename(normalized))) {
|
|
65
|
-
return 'hook'
|
|
66
|
-
}
|
|
67
|
-
if (normalized.includes('/lib/') && normalized.endsWith('.ts')) {
|
|
68
|
-
return 'util'
|
|
69
|
-
}
|
|
70
|
-
if (normalized.includes('/services/') && normalized.endsWith('.ts')) {
|
|
71
|
-
return 'util'
|
|
72
|
-
}
|
|
73
|
-
return null
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function getTestPath(root: string, relativePath: string): string | null {
|
|
77
|
-
const normalized = relativePath.replace(/\\/g, '/')
|
|
78
|
-
if (!normalized.startsWith('src/')) return null
|
|
79
|
-
const ext = normalized.endsWith('.tsx') ? '.tsx' : '.ts'
|
|
80
|
-
const pathWithoutExt = normalized.replace(/\.(tsx?)$/, '')
|
|
81
|
-
const pathInTests = pathWithoutExt.replace(/^src\//, 'src/__tests__/') + `.test${ext}`
|
|
82
|
-
return path.join(root, pathInTests)
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function testExists(root: string, relativePath: string): boolean {
|
|
86
|
-
const testPath = getTestPath(root, relativePath)
|
|
87
|
-
if (!testPath) return true
|
|
88
|
-
return fs.existsSync(testPath)
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function getComponentName(filePath: string): string {
|
|
92
|
-
const base = path.basename(filePath, path.extname(filePath))
|
|
93
|
-
if (base === 'index') {
|
|
94
|
-
const parent = path.basename(path.dirname(filePath))
|
|
95
|
-
return parent.charAt(0).toUpperCase() + parent.slice(1)
|
|
96
|
-
}
|
|
97
|
-
return base.charAt(0).toUpperCase() + base.slice(1)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function getImportPath(relativePath: string): string {
|
|
101
|
-
return '@/' + relativePath.replace(/\\/g, '/').replace(/^src\//, '').replace(/\.(tsx?)$/, '')
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function scaffoldComponent(relativePath: string, componentName: string): string {
|
|
105
|
-
const importPath = getImportPath(relativePath)
|
|
106
|
-
return `import { describe, it, expect } from 'vitest'
|
|
107
|
-
import { render } from '@testing-library/react'
|
|
108
|
-
import { ${componentName} } from '${importPath}'
|
|
109
|
-
|
|
110
|
-
describe('${componentName}', () => {
|
|
111
|
-
it('debería renderizar correctamente', () => {
|
|
112
|
-
const { container } = render(<${componentName} />)
|
|
113
|
-
expect(container.firstChild).toBeInTheDocument()
|
|
114
|
-
})
|
|
115
|
-
})
|
|
116
|
-
`
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function scaffoldRoute(relativePath: string): string {
|
|
120
|
-
const fileName = path.basename(relativePath, path.extname(relativePath))
|
|
121
|
-
const routeName = fileName.charAt(0).toUpperCase() + fileName.slice(1).replace(/-([a-z])/g, (_, c) => c.toUpperCase())
|
|
122
|
-
const importPath = getImportPath(relativePath)
|
|
123
|
-
return `import { describe, it, expect } from 'vitest'
|
|
124
|
-
import { render } from '@testing-library/react'
|
|
125
|
-
import { Route } from '${importPath}'
|
|
126
|
-
|
|
127
|
-
const Component = Route.options.component
|
|
128
|
-
|
|
129
|
-
describe('${routeName} Page', () => {
|
|
130
|
-
it('debería renderizar correctamente', () => {
|
|
131
|
-
const { container } = render(<Component />)
|
|
132
|
-
expect(container.firstChild).toBeInTheDocument()
|
|
133
|
-
})
|
|
134
|
-
})
|
|
135
|
-
`
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function scaffoldHook(relativePath: string): string {
|
|
139
|
-
const base = path.basename(relativePath, path.extname(relativePath))
|
|
140
|
-
const camelName = base.replace(/-([a-z])/g, (_, c) => c.toUpperCase())
|
|
141
|
-
const importPath = getImportPath(relativePath)
|
|
142
|
-
return `import { describe, it, expect } from 'vitest'
|
|
143
|
-
import { renderHook } from '@testing-library/react'
|
|
144
|
-
import { ${camelName} } from '${importPath}'
|
|
145
|
-
|
|
146
|
-
describe('${camelName}', () => {
|
|
147
|
-
it('debería funcionar correctamente', () => {
|
|
148
|
-
const { result } = renderHook(() => ${camelName}())
|
|
149
|
-
expect(result).toBeDefined()
|
|
150
|
-
})
|
|
151
|
-
})
|
|
152
|
-
`
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
function scaffoldUtil(relativePath: string): string {
|
|
156
|
-
const base = path.basename(relativePath, path.extname(relativePath))
|
|
157
|
-
const importPath = getImportPath(relativePath)
|
|
158
|
-
return `import { describe, it, expect } from 'vitest'
|
|
159
|
-
import * as module from '${importPath}'
|
|
160
|
-
|
|
161
|
-
describe('${base}', () => {
|
|
162
|
-
it('debería exportar las funciones esperadas', () => {
|
|
163
|
-
expect(module).toBeDefined()
|
|
164
|
-
})
|
|
165
|
-
})
|
|
166
|
-
`
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
async function main(): Promise<void> {
|
|
170
|
-
try {
|
|
171
|
-
const raw = await readStdin()
|
|
172
|
-
if (!raw?.trim()) return
|
|
173
|
-
|
|
174
|
-
const cleaned = raw.replace(/^\uFEFF/, '').trim()
|
|
175
|
-
const payload = JSON.parse(cleaned) as AfterFileEditPayload
|
|
176
|
-
const { file_path, workspace_roots } = payload
|
|
177
|
-
if (!file_path || !Array.isArray(workspace_roots) || workspace_roots.length === 0) return
|
|
178
|
-
|
|
179
|
-
const root = path.resolve(workspace_roots[0])
|
|
180
|
-
const relativePath = normalizePath(file_path, root)
|
|
181
|
-
const absSourcePath = path.join(root, relativePath)
|
|
182
|
-
|
|
183
|
-
if (!relativePath.replace(/\\/g, '/').startsWith('src/')) return
|
|
184
|
-
if (isExcluded(relativePath)) return
|
|
185
|
-
|
|
186
|
-
const fileType = getFileType(relativePath)
|
|
187
|
-
if (!fileType) return
|
|
188
|
-
|
|
189
|
-
if (testExists(root, relativePath)) return
|
|
190
|
-
|
|
191
|
-
const absTestPath = getTestPath(root, relativePath)!
|
|
192
|
-
const componentName = getComponentName(absSourcePath)
|
|
193
|
-
|
|
194
|
-
let content: string
|
|
195
|
-
switch (fileType) {
|
|
196
|
-
case 'component':
|
|
197
|
-
content = scaffoldComponent(relativePath, componentName)
|
|
198
|
-
break
|
|
199
|
-
case 'route':
|
|
200
|
-
content = scaffoldRoute(relativePath)
|
|
201
|
-
break
|
|
202
|
-
case 'hook':
|
|
203
|
-
content = scaffoldHook(relativePath)
|
|
204
|
-
break
|
|
205
|
-
case 'util':
|
|
206
|
-
content = scaffoldUtil(relativePath)
|
|
207
|
-
break
|
|
208
|
-
default:
|
|
209
|
-
return
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
fs.mkdirSync(path.dirname(absTestPath), { recursive: true })
|
|
213
|
-
fs.writeFileSync(absTestPath, content, 'utf8')
|
|
214
|
-
console.error(`[ensureTestsExist] Scaffold creado: ${path.relative(root, absTestPath)}`)
|
|
215
|
-
} catch (err) {
|
|
216
|
-
console.error('[ensureTestsExist] Error:', err instanceof Error ? err.message : String(err))
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
main()
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cursor sessionStart hook: inyecta contexto de pre-venta al inicio de cada sesión.
|
|
3
|
-
* Refuerza las reglas del proyecto sin depender de que el agente las recuerde.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
interface SessionStartPayload {
|
|
7
|
-
session_id: string;
|
|
8
|
-
is_background_agent: boolean;
|
|
9
|
-
composer_mode?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface SessionStartOutput {
|
|
13
|
-
additional_context?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function readStdin(): Promise<string> {
|
|
17
|
-
return new Promise((resolve) => {
|
|
18
|
-
let data = "";
|
|
19
|
-
process.stdin.setEncoding("utf8");
|
|
20
|
-
process.stdin.on("data", (chunk: string) => {
|
|
21
|
-
data += chunk;
|
|
22
|
-
});
|
|
23
|
-
process.stdin.on("end", () => resolve(data));
|
|
24
|
-
process.stdin.on("error", () => resolve(""));
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const PRE_SALES_CONTEXT = `
|
|
29
|
-
## Contexto de Sesión: Proyecto Pre-Venta
|
|
30
|
-
|
|
31
|
-
Este es un entorno de PRE-VENTA con restricciones estrictas:
|
|
32
|
-
|
|
33
|
-
- En la PRIMERA interacción, activar PLAN MODE antes de generar código.
|
|
34
|
-
- En la PRIMERA interacción, verificar si existe .cursor/rules/domain-business.mdc.
|
|
35
|
-
- Si NO existe, insistir con preguntas de negocio (9 bloques), completar contexto mínimo y crearlo en .cursor/rules/domain-business.mdc.
|
|
36
|
-
- Si YA existe, leer .cursor/rules/domain-business.mdc antes de cualquier decisión de prototipo.
|
|
37
|
-
- Todo dato es MOCK (localStorage). No hay backend real.
|
|
38
|
-
- Máximo 150 líneas por archivo.
|
|
39
|
-
- Usar comandos /add-* para crear y /refactor-ui para modificar.
|
|
40
|
-
- Invocar /impeccable craft para TODA decisión de diseño.
|
|
41
|
-
- Después de generar código, invocar al agente pre-sales-validator.
|
|
42
|
-
- NO instalar dependencias nuevas sin autorización.
|
|
43
|
-
- Leer obligatoriamente .cursor/rules/domain-business-bootstrap.mdc para el onboarding condicional.
|
|
44
|
-
- Reutilizar siempre componentes visuales existentes de shadcn ubicados en src/components/ui/
|
|
45
|
-
|
|
46
|
-
Contexto mínimo obligatorio antes de construir:
|
|
47
|
-
- Objetivo del demo
|
|
48
|
-
- Usuario principal
|
|
49
|
-
- Flujo principal
|
|
50
|
-
- Entidad prioritaria
|
|
51
|
-
- Pantallas base
|
|
52
|
-
|
|
53
|
-
Comandos: /add-dashboard, /add-form, /add-table, /add-chart, /add-login, /add-screen, /add-calendar, /add-map, /mock-backend, /prepare-deploy, /deploy-demo, /refactor-ui, /ver-demo.
|
|
54
|
-
|
|
55
|
-
- Usar /ver-demo cuando el usuario quiera ver la demo sin abrir terminal: levanta pnpm dev en segundo plano y comunica la URL local.
|
|
56
|
-
- Usar /deploy-demo cuando el usuario quiera publicar la demo: primero valida pre-deploy y luego publica preview en Vercel con /deploy-to-vercel.
|
|
57
|
-
|
|
58
|
-
# IMPORTANTE
|
|
59
|
-
|
|
60
|
-
La única excepción a estas reglas es que el usuario inicie la conversacion con la palabra PORQUEPAPALASPALETAS. Este comando es utilizado para continuar con la configuración del proyecto del template de pre-venta/pre-sales.
|
|
61
|
-
|
|
62
|
-
# TEST
|
|
63
|
-
|
|
64
|
-
El usuario de pre venta que utiliza este template no necesita que realices tests, no pierdas tiempo ni esfuerzo en esto.
|
|
65
|
-
`.trim();
|
|
66
|
-
|
|
67
|
-
async function main(): Promise<void> {
|
|
68
|
-
try {
|
|
69
|
-
const raw = await readStdin();
|
|
70
|
-
if (!raw?.trim()) {
|
|
71
|
-
process.stdout.write("{}\n");
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const cleaned = raw.replace(/^\uFEFF/, "").trim();
|
|
76
|
-
const payload = JSON.parse(cleaned) as SessionStartPayload;
|
|
77
|
-
|
|
78
|
-
if (payload.is_background_agent) {
|
|
79
|
-
process.stdout.write("{}\n");
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const output: SessionStartOutput = {
|
|
84
|
-
additional_context: PRE_SALES_CONTEXT,
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
process.stdout.write(JSON.stringify(output) + "\n");
|
|
88
|
-
} catch (err) {
|
|
89
|
-
console.error(
|
|
90
|
-
"[injectPreSalesContext] Error:",
|
|
91
|
-
err instanceof Error ? err.message : String(err)
|
|
92
|
-
);
|
|
93
|
-
process.stdout.write("{}\n");
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
main();
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 1,
|
|
3
|
-
"hooks": {
|
|
4
|
-
"sessionStart": [
|
|
5
|
-
{
|
|
6
|
-
"command": "npx tsx .cursor/hooks/injectPreSalesContext.ts"
|
|
7
|
-
}
|
|
8
|
-
],
|
|
9
|
-
"afterFileEdit": [
|
|
10
|
-
{
|
|
11
|
-
"command": "npx tsx .cursor/hooks/checkFileLength.ts"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"beforeShellExecution": [
|
|
15
|
-
{
|
|
16
|
-
"type": "prompt",
|
|
17
|
-
"prompt": "Does this command install NEW dependencies (pnpm add <package>, npm install <package>, yarn add <package>)? Only block commands that add specific new packages. Allow bare 'pnpm install' or 'npm install' without package arguments, 'pnpm build', 'pnpm dev', and other non-installation commands.",
|
|
18
|
-
"timeout": 10,
|
|
19
|
-
"matcher": "pnpm add|npm install|yarn add"
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: accessibility-reviewer
|
|
3
|
-
description: "Reviews WCAG 2.2 compliance for React components using shadcn/ui and DaisyUI. Use when building or reviewing UI components, forms, navigation, or interactive elements."
|
|
4
|
-
model: fast
|
|
5
|
-
readonly: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are an accessibility expert reviewing React 19 components built with shadcn/ui, DaisyUI, and Tailwind CSS v4.
|
|
9
|
-
|
|
10
|
-
When invoked, audit the specified files or components for:
|
|
11
|
-
|
|
12
|
-
1. **ARIA attributes**: Verify interactive elements have proper roles, labels, and states. shadcn/ui uses Radix primitives (generally accessible), but custom wrappers may lose attributes.
|
|
13
|
-
2. **Keyboard navigation**: All interactive elements must be focusable and operable via keyboard. Check `tabIndex`, `onKeyDown` handlers.
|
|
14
|
-
3. **Form labels**: Every input must have an associated `<label>` or `aria-label`. Check `src/app/auth/` forms and `src/components/ui/input.tsx`.
|
|
15
|
-
4. **Color contrast**: DaisyUI theme "huenei" uses custom colors — verify primary (#ff8300 on white) meets 4.5:1 ratio for normal text.
|
|
16
|
-
5. **Focus indicators**: Verify focus rings are visible. Tailwind `focus-visible:` utilities should be present.
|
|
17
|
-
6. **Error messages**: Form errors must be linked via `aria-describedby` or `aria-errormessage`.
|
|
18
|
-
7. **Page structure**: Proper heading hierarchy (h1 → h2 → h3). One `<main>` per page. Landmarks used correctly.
|
|
19
|
-
8. **Images and icons**: Lucide icons in interactive context need `aria-label`. Decorative icons need `aria-hidden="true"`.
|
|
20
|
-
|
|
21
|
-
Report:
|
|
22
|
-
- Issue, WCAG criterion, severity, and fix recommendation for each finding.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: nextjs-code-reviewer
|
|
3
|
-
description: "Reviews Next.js 16 code for correct Server/Client Component usage, data fetching patterns, proxy.ts conventions, and cache revalidation. Use when reviewing React components, pages, layouts, or server actions in this project."
|
|
4
|
-
model: fast
|
|
5
|
-
readonly: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are an expert Next.js 16 code reviewer specializing in App Router, Server Components, and React 19 patterns.
|
|
9
|
-
|
|
10
|
-
When invoked, analyze the code and check for:
|
|
11
|
-
|
|
12
|
-
1. **Server vs Client Components**: Verify `"use client"` is only where needed. Pages should be Server Components by default. Client Components use `-client.tsx` suffix.
|
|
13
|
-
2. **Data fetching**: Server Components should fetch data directly with Prisma. No `fetch()` to own API routes from Server Components.
|
|
14
|
-
3. **Server Actions**: Must be in `src/actions/` with `"use server"`. Must validate with Zod and check `auth()` session before mutations.
|
|
15
|
-
4. **Revalidation**: After mutations, ensure `revalidatePath()` is called for affected routes.
|
|
16
|
-
5. **proxy.ts**: Next.js 16 uses `proxy.ts` (NOT `middleware.ts`). Export must be named `proxy`.
|
|
17
|
-
6. **Imports**: Use `@/*` path alias. No relative imports climbing out of `src/`.
|
|
18
|
-
7. **Naming**: Files kebab-case, components PascalCase, actions camelCase with Spanish verbs.
|
|
19
|
-
8. **Providers**: Only `src/components/providers.tsx` should wrap with SessionProvider/QueryClientProvider.
|
|
20
|
-
|
|
21
|
-
Report format:
|
|
22
|
-
- List of issues found with file paths and line references
|
|
23
|
-
- Severity (error / warning / suggestion)
|
|
24
|
-
- Recommended fix for each issue
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: react-test-expert
|
|
3
|
-
description: "Generates and runs tests with Vitest 4 + Testing Library for React components, hooks, utils, and server actions. Use proactively when creating new components or when test coverage is needed."
|
|
4
|
-
model: inherit
|
|
5
|
-
readonly: false
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are a testing expert for React 19 + Next.js 16 projects using Vitest 4 and Testing Library.
|
|
9
|
-
|
|
10
|
-
When invoked:
|
|
11
|
-
|
|
12
|
-
1. **Identify what needs testing**: Check which files in `src/components/`, `src/hooks/`, `src/lib/`, `src/actions/` lack corresponding test files in `src/__tests__/`.
|
|
13
|
-
2. **Generate test files** following project conventions:
|
|
14
|
-
- Location: `src/__tests__/<category>/<filename>.test.{ts,tsx}`
|
|
15
|
-
- Import from `vitest` (`describe`, `it`, `expect`)
|
|
16
|
-
- Use `@testing-library/react` for component tests (`render`, `screen`, `userEvent`)
|
|
17
|
-
- Use `@testing-library/jest-dom` matchers
|
|
18
|
-
- Mock server-side dependencies (Prisma, auth) with `vi.mock()`
|
|
19
|
-
3. **Run tests**: Execute `pnpm test -- --run` to verify tests pass.
|
|
20
|
-
4. **Fix failures**: If tests fail, analyze output and fix the test (not the source code unless there's a real bug).
|
|
21
|
-
|
|
22
|
-
Test structure:
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
import { describe, it, expect } from "vitest";
|
|
26
|
-
// For components:
|
|
27
|
-
import { render, screen } from "@testing-library/react";
|
|
28
|
-
import userEvent from "@testing-library/user-event";
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Coverage targets: `src/components/`, `src/hooks/`, `src/lib/`, `src/actions/`.
|
|
32
|
-
Config: `vitest.config.ts`, setup: `src/test/setup.ts`.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: security-auditor
|
|
3
|
-
description: "Audits security vulnerabilities in Next.js SSR apps: XSS, auth bypass, data exposure in Client Components, SQL injection, secret leaks. Use when reviewing auth flows, server actions, or API routes."
|
|
4
|
-
model: fast
|
|
5
|
-
readonly: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are a security auditor specializing in Next.js full-stack applications with Auth.js and Prisma.
|
|
9
|
-
|
|
10
|
-
When invoked, perform a security audit checking:
|
|
11
|
-
|
|
12
|
-
1. **Auth bypass**: Server Actions must call `auth()` and verify `session.user.id` before mutations. Check `src/actions/*.ts`.
|
|
13
|
-
2. **Data exposure**: Client Components must NOT receive sensitive data (passwords, tokens). Verify serialized props.
|
|
14
|
-
3. **XSS in Server Components**: Verify no raw HTML injection. Check `dangerouslySetInnerHTML` usage.
|
|
15
|
-
4. **Prisma queries**: Verify parameterized queries only (Prisma handles this, but check for raw queries).
|
|
16
|
-
5. **Environment secrets**: `.env` must NOT be committed. Verify `NEXTAUTH_SECRET`, `DATABASE_URL` are in `.env.example` without values.
|
|
17
|
-
6. **proxy.ts coverage**: Verify all sensitive routes are in `protectedRoutes` array.
|
|
18
|
-
7. **CSRF protection**: Server Actions have built-in CSRF via Next.js, but verify no custom fetch bypasses.
|
|
19
|
-
8. **Password handling**: bcryptjs with salt rounds >= 12. Never log or return passwords.
|
|
20
|
-
9. **Session strategy**: JWT is used — verify token callbacks don't expose sensitive fields.
|
|
21
|
-
|
|
22
|
-
Report format:
|
|
23
|
-
- **CRITICAL**: Issues requiring immediate fix
|
|
24
|
-
- **WARNING**: Potential vulnerabilities
|
|
25
|
-
- **INFO**: Best practice recommendations
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# new-component
|
|
2
|
-
|
|
3
|
-
**Objetivo:** Crear un componente React reutilizable en `src/components/` con Tailwind + shadcn/ui y scaffold de test.
|
|
4
|
-
|
|
5
|
-
## Instrucciones para Cursor
|
|
6
|
-
|
|
7
|
-
1. Solicitar al usuario:
|
|
8
|
-
- **Nombre del componente** (PascalCase): ej. `UserCard`, `ProjectTable`
|
|
9
|
-
- **Tipo**: Server Component o Client Component
|
|
10
|
-
- **Ubicación**: `src/components/` (general) o `src/components/ui/` (primitivo UI)
|
|
11
|
-
- **¿Necesita variantes?** (sí → usar cva de class-variance-authority)
|
|
12
|
-
|
|
13
|
-
2. Determinar nombre de archivo: kebab-case del nombre del componente
|
|
14
|
-
- `UserCard` → `user-card.tsx`
|
|
15
|
-
- `ProjectTable` → `project-table.tsx`
|
|
16
|
-
|
|
17
|
-
3. Crear el componente:
|
|
18
|
-
|
|
19
|
-
**Client Component (con interactividad):**
|
|
20
|
-
|
|
21
|
-
```tsx
|
|
22
|
-
"use client";
|
|
23
|
-
|
|
24
|
-
import { cn } from "@/lib/utils";
|
|
25
|
-
|
|
26
|
-
interface <Nombre>Props {
|
|
27
|
-
className?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function <Nombre>({ className }: <Nombre>Props) {
|
|
31
|
-
return (
|
|
32
|
-
<div className={cn("", className)}>
|
|
33
|
-
{/* Contenido */}
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
**Server Component (solo presentación):**
|
|
40
|
-
|
|
41
|
-
```tsx
|
|
42
|
-
import { cn } from "@/lib/utils";
|
|
43
|
-
|
|
44
|
-
interface <Nombre>Props {
|
|
45
|
-
className?: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function <Nombre>({ className }: <Nombre>Props) {
|
|
49
|
-
return (
|
|
50
|
-
<div className={cn("", className)}>
|
|
51
|
-
{/* Contenido */}
|
|
52
|
-
</div>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
**Con variantes (cva):**
|
|
58
|
-
|
|
59
|
-
```tsx
|
|
60
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
61
|
-
import { cn } from "@/lib/utils";
|
|
62
|
-
|
|
63
|
-
const <nombre>Variants = cva("base-classes", {
|
|
64
|
-
variants: {
|
|
65
|
-
variant: { default: "...", outline: "..." },
|
|
66
|
-
size: { sm: "...", md: "...", lg: "..." },
|
|
67
|
-
},
|
|
68
|
-
defaultVariants: { variant: "default", size: "md" },
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
interface <Nombre>Props extends VariantProps<typeof <nombre>Variants> {
|
|
72
|
-
className?: string;
|
|
73
|
-
}
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
4. Crear scaffold de test en `src/__tests__/components/<nombre>.test.tsx`:
|
|
77
|
-
|
|
78
|
-
```tsx
|
|
79
|
-
import { describe, it, expect } from "vitest";
|
|
80
|
-
import { render, screen } from "@testing-library/react";
|
|
81
|
-
import { <Nombre> } from "@/components/<archivo>";
|
|
82
|
-
|
|
83
|
-
describe("<Nombre>", () => {
|
|
84
|
-
it("renders correctly", () => {
|
|
85
|
-
render(<<Nombre> />);
|
|
86
|
-
// Verificar renderizado
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Reglas a respetar
|
|
92
|
-
|
|
93
|
-
- Client Components: `"use client"` + sufijo `-client.tsx` si son compañeros de un Server Component
|
|
94
|
-
- Componentes standalone no necesitan sufijo `-client`
|
|
95
|
-
- Usar `cn()` de `@/lib/utils` para merge de clases
|
|
96
|
-
- shadcn/ui components van en `src/components/ui/`
|
|
97
|
-
- Sin barrel exports — importar directamente desde el archivo
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
# new-page
|
|
2
|
-
|
|
3
|
-
**Objetivo:** Crear una nueva página Next.js 16 App Router con Server Component, Client Component opcional, y archivos auxiliares.
|
|
4
|
-
|
|
5
|
-
## Instrucciones para Cursor
|
|
6
|
-
|
|
7
|
-
1. Solicitar al usuario:
|
|
8
|
-
- **Nombre de la ruta** (en español, kebab-case): ej. `gestion-usuarios`
|
|
9
|
-
- **¿Requiere autenticación?** (sí → colocar dentro de `(authenticated)/`, no → en `src/app/`)
|
|
10
|
-
- **¿Necesita Client Component?** (sí → generar archivo `-client.tsx`)
|
|
11
|
-
|
|
12
|
-
2. Crear la estructura de archivos:
|
|
13
|
-
|
|
14
|
-
**Si requiere autenticación:**
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
src/app/(authenticated)/<nombre-ruta>/
|
|
18
|
-
├── page.tsx # Server Component
|
|
19
|
-
├── <nombre>-client.tsx # Client Component (si aplica)
|
|
20
|
-
├── loading.tsx # Loading UI
|
|
21
|
-
└── error.tsx # Error boundary
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
**Si NO requiere autenticación:**
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
src/app/<nombre-ruta>/
|
|
28
|
-
├── page.tsx
|
|
29
|
-
├── <nombre>-client.tsx (si aplica)
|
|
30
|
-
├── loading.tsx
|
|
31
|
-
└── error.tsx
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
3. `page.tsx` (Server Component):
|
|
35
|
-
|
|
36
|
-
```tsx
|
|
37
|
-
import { auth } from "@/auth"; // Solo si requiere auth
|
|
38
|
-
import { prisma } from "@/lib/prisma"; // Si necesita datos
|
|
39
|
-
import { NombreClient } from "./<nombre>-client";
|
|
40
|
-
|
|
41
|
-
export default async function NombrePage() {
|
|
42
|
-
// Obtener datos con Prisma directamente
|
|
43
|
-
return <NombreClient />;
|
|
44
|
-
}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
4. `-client.tsx` (Client Component):
|
|
48
|
-
|
|
49
|
-
```tsx
|
|
50
|
-
"use client";
|
|
51
|
-
export function NombreClient() {
|
|
52
|
-
return <div>...</div>;
|
|
53
|
-
}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
5. `loading.tsx`:
|
|
57
|
-
|
|
58
|
-
```tsx
|
|
59
|
-
export default function Loading() {
|
|
60
|
-
return (
|
|
61
|
-
<div className="flex items-center justify-center min-h-screen">
|
|
62
|
-
<span className="loading loading-spinner loading-lg" />
|
|
63
|
-
</div>
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
6. `error.tsx`:
|
|
69
|
-
```tsx
|
|
70
|
-
"use client";
|
|
71
|
-
export default function Error({
|
|
72
|
-
error,
|
|
73
|
-
reset,
|
|
74
|
-
}: {
|
|
75
|
-
error: Error;
|
|
76
|
-
reset: () => void;
|
|
77
|
-
}) {
|
|
78
|
-
return (
|
|
79
|
-
<div className="text-center p-8">
|
|
80
|
-
<h2 className="text-2xl font-bold mb-4">Algo salió mal</h2>
|
|
81
|
-
<button className="btn btn-primary" onClick={reset}>
|
|
82
|
-
Intentar de nuevo
|
|
83
|
-
</button>
|
|
84
|
-
</div>
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
## Reglas a respetar
|
|
90
|
-
|
|
91
|
-
- Nombres de carpeta en español kebab-case
|
|
92
|
-
- Componentes en PascalCase
|
|
93
|
-
- Usar path alias `@/*`
|
|
94
|
-
- DaisyUI para clases de UI (btn, loading, card)
|
|
95
|
-
- Si la ruta requiere auth, el proxy.ts ya la protege si está en `(authenticated)`
|