@thinhnguyencth1204/nextcli 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +6 -2
  2. package/dist/cli.js +210 -75
  3. package/package.json +2 -1
  4. package/templates/next-base/PROJECT_STRUCTURE.md +88 -0
  5. package/templates/next-base/SETUP.md +86 -0
  6. package/templates/next-base/bun.lock +1443 -0
  7. package/templates/next-base/messages/vi/auth.json +18 -4
  8. package/templates/next-base/next-env.d.ts +3 -1
  9. package/templates/next-base/prisma/migrations/20260612000000_init/migration.sql +104 -0
  10. package/templates/next-base/prisma/migrations/migration_lock.toml +3 -0
  11. package/templates/next-base/prisma/schema.prisma +23 -9
  12. package/templates/next-base/public/logo.svg +4 -0
  13. package/templates/next-base/src/app/(auth)/change-password/layout.tsx +21 -0
  14. package/templates/next-base/src/app/(auth)/change-password/page.tsx +14 -0
  15. package/templates/next-base/src/app/(auth)/layout.tsx +3 -3
  16. package/templates/next-base/src/app/(auth)/sign-in/layout.tsx +17 -0
  17. package/templates/next-base/src/app/(dashboard)/layout.tsx +13 -1
  18. package/templates/next-base/src/app/api/v1/auth/change-password/route.ts +55 -0
  19. package/templates/next-base/src/app/api/v1/auth/login/route.ts +15 -5
  20. package/templates/next-base/src/app/api/v1/auth/me/route.ts +17 -19
  21. package/templates/next-base/src/app/api/v1/users/[id]/route.ts +104 -0
  22. package/templates/next-base/src/app/api/v1/users/route.ts +58 -0
  23. package/templates/next-base/src/app/globals.css +4 -0
  24. package/templates/next-base/src/app/layout.tsx +7 -3
  25. package/templates/next-base/src/components/branding/logo.tsx +27 -0
  26. package/templates/next-base/src/components/layout/private/app-sidebar.tsx +3 -4
  27. package/templates/next-base/src/components/layout/private/dashboard-layout.tsx +2 -1
  28. package/templates/next-base/src/config/branding.ts +14 -0
  29. package/templates/next-base/src/features/auth/components/account-panel.tsx +12 -7
  30. package/templates/next-base/src/features/auth/components/change-password-form.tsx +82 -0
  31. package/templates/next-base/src/features/auth/components/sign-in-form.tsx +18 -13
  32. package/templates/next-base/src/features/auth/validations.ts +7 -1
  33. package/templates/next-base/src/features/users/services.ts +132 -0
  34. package/templates/next-base/src/features/users/validations.ts +21 -0
  35. package/templates/next-base/src/instrumentation.ts +14 -0
  36. package/templates/next-base/src/lib/auth-client.ts +2 -2
  37. package/templates/next-base/src/lib/auth.ts +2 -2
  38. package/templates/next-base/src/lib/bootstrap.ts +96 -0
  39. package/templates/next-base/src/lib/constants.ts +7 -0
  40. package/templates/next-base/src/lib/rbac.ts +62 -0
  41. package/templates/next-base/tsconfig.json +29 -7
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ES2022",
4
- "lib": ["dom", "dom.iterable", "esnext"],
4
+ "lib": [
5
+ "dom",
6
+ "dom.iterable",
7
+ "esnext"
8
+ ],
5
9
  "allowJs": false,
6
10
  "skipLibCheck": true,
7
11
  "strict": true,
@@ -11,14 +15,32 @@
11
15
  "moduleResolution": "bundler",
12
16
  "resolveJsonModule": true,
13
17
  "isolatedModules": true,
14
- "jsx": "preserve",
15
- "types": ["node", "react", "react-dom"],
18
+ "jsx": "react-jsx",
19
+ "types": [
20
+ "node",
21
+ "react",
22
+ "react-dom"
23
+ ],
16
24
  "incremental": true,
17
- "plugins": [{ "name": "next" }],
25
+ "plugins": [
26
+ {
27
+ "name": "next"
28
+ }
29
+ ],
18
30
  "paths": {
19
- "@/*": ["./src/*"]
31
+ "@/*": [
32
+ "./src/*"
33
+ ]
20
34
  }
21
35
  },
22
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
23
- "exclude": ["node_modules"]
36
+ "include": [
37
+ "next-env.d.ts",
38
+ "**/*.ts",
39
+ "**/*.tsx",
40
+ ".next/types/**/*.ts",
41
+ ".next/dev/types/**/*.ts"
42
+ ],
43
+ "exclude": [
44
+ "node_modules"
45
+ ]
24
46
  }