create-deesse-app 0.4.4 → 0.5.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.
Files changed (72) hide show
  1. package/README.md +1 -2
  2. package/bin/cli.js +0 -0
  3. package/dist/bin/cli.js +0 -0
  4. package/dist/src/copy.d.ts +1 -1
  5. package/dist/src/copy.d.ts.map +1 -1
  6. package/dist/src/copy.js +3 -1
  7. package/dist/src/copy.js.map +1 -1
  8. package/dist/src/index.js +1 -1
  9. package/dist/src/index.js.map +1 -1
  10. package/dist/tsconfig.tsbuildinfo +1 -1
  11. package/package.json +11 -11
  12. package/templates/default/drizzle/0000_cheerful_clea.sql +58 -0
  13. package/templates/default/drizzle/meta/0000_snapshot.json +405 -0
  14. package/templates/default/drizzle/meta/_journal.json +13 -0
  15. package/templates/default/drizzle.config.ts +11 -0
  16. package/templates/default/next.config.ts +1 -1
  17. package/templates/default/package.json +1 -0
  18. package/templates/default/src/app/(deesse)/admin/[[...slug]]/page.tsx +2 -2
  19. package/templates/default/src/app/(deesse)/admin/layout.tsx +5 -2
  20. package/templates/default/src/app/layout.tsx +1 -1
  21. package/templates/default/src/db/schema/auth-schema.ts +100 -0
  22. package/templates/default/src/deesse.config.ts +10 -1
  23. package/templates/default/src/deesse.pages.tsx +1 -0
  24. package/templates/default/src/lib/auth.ts +3 -0
  25. package/templates/default/src/lib/client.ts +7 -0
  26. package/templates/default/src/lib/deesse.ts +5 -0
  27. package/templates/without-admin/AGENTS.md +5 -0
  28. package/templates/without-admin/CLAUDE.md +1 -0
  29. package/templates/without-admin/README.md +36 -0
  30. package/templates/without-admin/components.json +25 -0
  31. package/templates/without-admin/drizzle.config.ts +11 -0
  32. package/templates/without-admin/eslint.config.mjs +18 -0
  33. package/templates/without-admin/next.config.ts +7 -0
  34. package/templates/without-admin/package-lock.json +11412 -0
  35. package/templates/without-admin/package.json +41 -0
  36. package/templates/without-admin/postcss.config.mjs +7 -0
  37. package/templates/without-admin/public/file.svg +1 -0
  38. package/templates/without-admin/public/globe.svg +1 -0
  39. package/templates/without-admin/public/nesalia.svg +50 -0
  40. package/templates/without-admin/public/next.svg +1 -0
  41. package/templates/without-admin/public/vercel.svg +1 -0
  42. package/templates/without-admin/public/window.svg +1 -0
  43. package/templates/without-admin/src/app/(deesse)/api/[...slug]/route.ts +5 -0
  44. package/templates/without-admin/src/app/(frontend)/(auth)/login/page.tsx +85 -0
  45. package/templates/without-admin/src/app/(frontend)/(auth)/signup/page.tsx +90 -0
  46. package/templates/without-admin/src/app/(frontend)/home/page.tsx +19 -0
  47. package/templates/without-admin/src/app/(frontend)/layout.tsx +14 -0
  48. package/templates/without-admin/src/app/(frontend)/page.tsx +50 -0
  49. package/templates/without-admin/src/app/globals.css +130 -0
  50. package/templates/without-admin/src/app/icon.svg +109 -0
  51. package/templates/without-admin/src/app/layout.tsx +37 -0
  52. package/templates/without-admin/src/components/header.tsx +123 -0
  53. package/templates/without-admin/src/components/password-input.tsx +50 -0
  54. package/templates/without-admin/src/components/providers/index.tsx +11 -0
  55. package/templates/without-admin/src/components/providers/theme-provider.tsx +11 -0
  56. package/templates/without-admin/src/components/ui/alert-dialog.tsx +199 -0
  57. package/templates/without-admin/src/components/ui/avatar.tsx +112 -0
  58. package/templates/without-admin/src/components/ui/button.tsx +67 -0
  59. package/templates/without-admin/src/components/ui/dialog.tsx +168 -0
  60. package/templates/without-admin/src/components/ui/dropdown-menu.tsx +269 -0
  61. package/templates/without-admin/src/components/ui/input.tsx +19 -0
  62. package/templates/without-admin/src/components/ui/label.tsx +24 -0
  63. package/templates/without-admin/src/components/ui/sonner.tsx +49 -0
  64. package/templates/without-admin/src/components/ui/tooltip.tsx +57 -0
  65. package/templates/without-admin/src/db/schema/auth-schema.ts +100 -0
  66. package/templates/without-admin/src/db/schema/index.ts +1 -0
  67. package/templates/without-admin/src/deesse.config.ts +18 -0
  68. package/templates/without-admin/src/lib/client.ts +7 -0
  69. package/templates/without-admin/src/lib/deesse.ts +5 -0
  70. package/templates/without-admin/src/lib/utils.ts +6 -0
  71. package/templates/without-admin/tsconfig.json +34 -0
  72. package/templates/minimal/.gitkeep +0 -0
@@ -0,0 +1,18 @@
1
+ import { defineConfig } from 'deesse';
2
+ import { drizzle } from 'drizzle-orm/node-postgres';
3
+ import { Pool } from 'pg';
4
+ import { schema } from './db/schema';
5
+
6
+ export const config = defineConfig({
7
+ name: "DeesseJS App",
8
+ database: drizzle({
9
+ client: new Pool({
10
+ connectionString: process.env.DATABASE_URL,
11
+ }),
12
+ schema,
13
+ }),
14
+ secret: process.env.DEESSE_SECRET!,
15
+ auth: {
16
+ baseURL: process.env.NEXT_PUBLIC_BASE_URL || 'http://localhost:3000',
17
+ },
18
+ });
@@ -0,0 +1,7 @@
1
+ import { createClient } from "deesse";
2
+
3
+ export const client = createClient({
4
+ auth: {
5
+ baseURL: process.env.NEXT_PUBLIC_BASE_URL || 'http://localhost:3000',
6
+ },
7
+ });
@@ -0,0 +1,5 @@
1
+ import { getDeesse } from "deesse";
2
+ import { config } from "@deesse-config";
3
+
4
+ export const deesse = await getDeesse(config);
5
+ export const deesseAuth = deesse.auth;
@@ -0,0 +1,6 @@
1
+ import { clsx, type ClassValue } from "clsx"
2
+ import { twMerge } from "tailwind-merge"
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs))
6
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2017",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "esModuleInterop": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "bundler",
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "jsx": "react-jsx",
15
+ "incremental": true,
16
+ "plugins": [
17
+ {
18
+ "name": "next"
19
+ }
20
+ ],
21
+ "paths": {
22
+ "@/*": ["./src/*"]
23
+ }
24
+ },
25
+ "include": [
26
+ "next-env.d.ts",
27
+ "**/*.ts",
28
+ "**/*.tsx",
29
+ ".next/types/**/*.ts",
30
+ ".next/dev/types/**/*.ts",
31
+ "**/*.mts"
32
+ ],
33
+ "exclude": ["node_modules"]
34
+ }
File without changes