@promakeai/cli 0.4.5 → 0.4.6

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.
@@ -1,94 +1,94 @@
1
- {
2
- "name": "@promakeai/template",
3
- "private": true,
4
- "version": "0.1.0",
5
- "type": "module",
6
- "scripts": {
7
- "dev": "vite",
8
- "prebuild": "tsc -b || cd .",
9
- "build": "vite build",
10
- "typecheck": "tsc -b",
11
- "lint": "eslint .",
12
- "preview": "vite preview",
13
- "check": "tsc --noEmit",
14
- "format": "prettier --write ."
15
- },
16
- "dependencies": {
17
- "@hookform/resolvers": "^5.2.2",
18
- "@promakeai/customer-backend-client": "^1.1.0",
19
- "@promakeai/inspector": "^1.5.1",
20
- "@radix-ui/react-accordion": "^1.2.12",
21
- "@radix-ui/react-alert-dialog": "^1.1.15",
22
- "@radix-ui/react-aspect-ratio": "^1.1.8",
23
- "@radix-ui/react-avatar": "^1.1.11",
24
- "@radix-ui/react-checkbox": "^1.3.3",
25
- "@radix-ui/react-collapsible": "^1.1.12",
26
- "@radix-ui/react-context-menu": "^2.2.16",
27
- "@radix-ui/react-dialog": "^1.1.15",
28
- "@radix-ui/react-dropdown-menu": "^2.1.16",
29
- "@radix-ui/react-hover-card": "^1.1.15",
30
- "@radix-ui/react-label": "^2.1.8",
31
- "@radix-ui/react-menubar": "^1.1.16",
32
- "@radix-ui/react-navigation-menu": "^1.2.14",
33
- "@radix-ui/react-popover": "^1.1.15",
34
- "@radix-ui/react-progress": "^1.1.8",
35
- "@radix-ui/react-radio-group": "^1.3.8",
36
- "@radix-ui/react-scroll-area": "^1.2.10",
37
- "@radix-ui/react-select": "^2.2.6",
38
- "@radix-ui/react-separator": "^1.1.8",
39
- "@radix-ui/react-slider": "^1.3.6",
40
- "@radix-ui/react-slot": "^1.2.4",
41
- "@radix-ui/react-switch": "^1.2.6",
42
- "@radix-ui/react-tabs": "^1.1.13",
43
- "@radix-ui/react-toggle": "^1.1.10",
44
- "@radix-ui/react-toggle-group": "^1.1.11",
45
- "@radix-ui/react-tooltip": "^1.2.8",
46
- "@tailwindcss/vite": "^4.1.18",
47
- "@tanstack/react-query": "^5.90.17",
48
- "axios": "^1.13.2",
49
- "class-variance-authority": "^0.7.1",
50
- "clsx": "^2.1.1",
51
- "cmdk": "^1.1.1",
52
- "date-fns": "^4.1.0",
53
- "embla-carousel-react": "^8.6.0",
54
- "i18next": "^25.7.4",
55
- "i18next-browser-languagedetector": "^8.2.0",
56
- "input-otp": "^1.4.2",
57
- "lucide-react": "^0.562.0",
58
- "motion": "^12.26.2",
59
- "next-themes": "^0.4.6",
60
- "react": "^19.2.0",
61
- "react-day-picker": "^9.13.0",
62
- "react-dom": "^19.2.0",
63
- "react-hook-form": "^7.71.1",
64
- "react-i18next": "^16.5.3",
65
- "react-resizable-panels": "^4.4.1",
66
- "react-router": "^7.12.0",
67
- "recharts": "2.15.4",
68
- "sonner": "^2.0.7",
69
- "sql.js": "^1.13.0",
70
- "tailwind-merge": "^3.4.0",
71
- "tailwindcss": "^4.1.18",
72
- "vaul": "^1.1.2",
73
- "zod": "^4.3.5",
74
- "zustand": "^5.0.10"
75
- },
76
- "devDependencies": {
77
- "@eslint/js": "^9.39.1",
78
- "@types/node": "^25.0.8",
79
- "@types/react": "^19.2.5",
80
- "@types/react-dom": "^19.2.3",
81
- "@types/sql.js": "^1.4.9",
82
- "@vitejs/plugin-react": "^5.1.1",
83
- "eslint": "^9.39.1",
84
- "eslint-config-prettier": "^10.1.8",
85
- "eslint-plugin-react-hooks": "^7.0.1",
86
- "eslint-plugin-react-refresh": "^0.4.24",
87
- "globals": "^16.5.0",
88
- "prettier": "3.8.0",
89
- "tw-animate-css": "^1.4.0",
90
- "typescript": "~5.9.3",
91
- "typescript-eslint": "^8.46.4",
92
- "vite": "^7.2.4"
93
- }
1
+ {
2
+ "name": "@promakeai/template",
3
+ "private": true,
4
+ "version": "0.1.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "prebuild": "tsc -b || cd .",
9
+ "build": "vite build",
10
+ "typecheck": "tsc -b",
11
+ "lint": "eslint .",
12
+ "preview": "vite preview",
13
+ "check": "tsc --noEmit",
14
+ "format": "prettier --write ."
15
+ },
16
+ "dependencies": {
17
+ "@hookform/resolvers": "^5.2.2",
18
+ "@promakeai/customer-backend-client": "^1.1.0",
19
+ "@promakeai/inspector": "^1.5.1",
20
+ "@radix-ui/react-accordion": "^1.2.12",
21
+ "@radix-ui/react-alert-dialog": "^1.1.15",
22
+ "@radix-ui/react-aspect-ratio": "^1.1.8",
23
+ "@radix-ui/react-avatar": "^1.1.11",
24
+ "@radix-ui/react-checkbox": "^1.3.3",
25
+ "@radix-ui/react-collapsible": "^1.1.12",
26
+ "@radix-ui/react-context-menu": "^2.2.16",
27
+ "@radix-ui/react-dialog": "^1.1.15",
28
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
29
+ "@radix-ui/react-hover-card": "^1.1.15",
30
+ "@radix-ui/react-label": "^2.1.8",
31
+ "@radix-ui/react-menubar": "^1.1.16",
32
+ "@radix-ui/react-navigation-menu": "^1.2.14",
33
+ "@radix-ui/react-popover": "^1.1.15",
34
+ "@radix-ui/react-progress": "^1.1.8",
35
+ "@radix-ui/react-radio-group": "^1.3.8",
36
+ "@radix-ui/react-scroll-area": "^1.2.10",
37
+ "@radix-ui/react-select": "^2.2.6",
38
+ "@radix-ui/react-separator": "^1.1.8",
39
+ "@radix-ui/react-slider": "^1.3.6",
40
+ "@radix-ui/react-slot": "^1.2.4",
41
+ "@radix-ui/react-switch": "^1.2.6",
42
+ "@radix-ui/react-tabs": "^1.1.13",
43
+ "@radix-ui/react-toggle": "^1.1.10",
44
+ "@radix-ui/react-toggle-group": "^1.1.11",
45
+ "@radix-ui/react-tooltip": "^1.2.8",
46
+ "@tailwindcss/vite": "^4.1.18",
47
+ "@tanstack/react-query": "^5.90.17",
48
+ "axios": "^1.13.2",
49
+ "class-variance-authority": "^0.7.1",
50
+ "clsx": "^2.1.1",
51
+ "cmdk": "^1.1.1",
52
+ "date-fns": "^4.1.0",
53
+ "embla-carousel-react": "^8.6.0",
54
+ "i18next": "^25.7.4",
55
+ "i18next-browser-languagedetector": "^8.2.0",
56
+ "input-otp": "^1.4.2",
57
+ "lucide-react": "^0.562.0",
58
+ "motion": "^12.26.2",
59
+ "next-themes": "^0.4.6",
60
+ "react": "^19.2.0",
61
+ "react-day-picker": "^9.13.0",
62
+ "react-dom": "^19.2.0",
63
+ "react-hook-form": "^7.71.1",
64
+ "react-i18next": "^16.5.3",
65
+ "react-resizable-panels": "^4.4.1",
66
+ "react-router": "^7.12.0",
67
+ "recharts": "2.15.4",
68
+ "sonner": "^2.0.7",
69
+ "sql.js": "^1.13.0",
70
+ "tailwind-merge": "^3.4.0",
71
+ "tailwindcss": "^4.1.18",
72
+ "vaul": "^1.1.2",
73
+ "zod": "^4.3.5",
74
+ "zustand": "^5.0.10"
75
+ },
76
+ "devDependencies": {
77
+ "@eslint/js": "^9.39.1",
78
+ "@types/node": "^25.0.8",
79
+ "@types/react": "^19.2.5",
80
+ "@types/react-dom": "^19.2.3",
81
+ "@types/sql.js": "^1.4.9",
82
+ "@vitejs/plugin-react": "^5.1.1",
83
+ "eslint": "^9.39.1",
84
+ "eslint-config-prettier": "^10.1.8",
85
+ "eslint-plugin-react-hooks": "^7.0.1",
86
+ "eslint-plugin-react-refresh": "^0.4.24",
87
+ "globals": "^16.5.0",
88
+ "prettier": "3.8.0",
89
+ "tw-animate-css": "^1.4.0",
90
+ "typescript": "~5.9.3",
91
+ "typescript-eslint": "^8.46.4",
92
+ "vite": "^7.2.4"
93
+ }
94
94
  }
@@ -1,131 +1,131 @@
1
- import fs from "fs";
2
- import path from "path";
3
- import initSqlJs from "sql.js";
4
-
5
- async function createDatabase() {
6
- const SQL = await initSqlJs();
7
- const db = new SQL.Database();
8
-
9
- // ============================================
10
- // BLOG SISTEMI
11
- // ============================================
12
-
13
- db.exec(`
14
- CREATE TABLE blog_categories (
15
- id INTEGER PRIMARY KEY AUTOINCREMENT,
16
- name TEXT NOT NULL,
17
- slug TEXT UNIQUE NOT NULL,
18
- description TEXT,
19
- image TEXT,
20
- created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
21
- updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
22
- );
23
- `);
24
-
25
- db.exec(`
26
- CREATE TABLE posts (
27
- id INTEGER PRIMARY KEY AUTOINCREMENT,
28
- title TEXT NOT NULL,
29
- slug TEXT UNIQUE NOT NULL,
30
- content TEXT NOT NULL,
31
- excerpt TEXT,
32
- featured_image TEXT,
33
- images TEXT,
34
- author TEXT,
35
- author_avatar TEXT,
36
- created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
37
- published_at DATETIME DEFAULT CURRENT_TIMESTAMP,
38
- updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,
39
- tags TEXT,
40
- read_time INTEGER DEFAULT 0,
41
- view_count INTEGER DEFAULT 0,
42
- featured INTEGER DEFAULT 0,
43
- published INTEGER DEFAULT 1,
44
- meta_description TEXT,
45
- meta_keywords TEXT
46
- );
47
- `);
48
-
49
- db.exec(`
50
- CREATE TABLE post_categories (
51
- id INTEGER PRIMARY KEY AUTOINCREMENT,
52
- post_id INTEGER NOT NULL,
53
- category_id INTEGER NOT NULL,
54
- is_primary INTEGER DEFAULT 0,
55
- FOREIGN KEY (post_id) REFERENCES posts(id) ON DELETE CASCADE,
56
- FOREIGN KEY (category_id) REFERENCES blog_categories(id) ON DELETE CASCADE
57
- );
58
- `);
59
-
60
- // ============================================
61
- // E-COMMERCE SISTEMI
62
- // ============================================
63
-
64
- db.exec(`
65
- CREATE TABLE product_categories (
66
- id INTEGER PRIMARY KEY AUTOINCREMENT,
67
- name TEXT NOT NULL,
68
- slug TEXT UNIQUE NOT NULL,
69
- description TEXT,
70
- image TEXT,
71
- parent_id INTEGER,
72
- created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
73
- updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,
74
- FOREIGN KEY (parent_id) REFERENCES product_categories(id) ON DELETE SET NULL
75
- );
76
- `);
77
-
78
- db.exec(`
79
- CREATE TABLE products (
80
- id INTEGER PRIMARY KEY AUTOINCREMENT,
81
- name TEXT NOT NULL,
82
- slug TEXT UNIQUE NOT NULL,
83
- description TEXT,
84
- price REAL NOT NULL,
85
- sale_price REAL,
86
- on_sale INTEGER DEFAULT 0,
87
- images TEXT,
88
- brand TEXT,
89
- sku TEXT,
90
- stock INTEGER DEFAULT 0,
91
- tags TEXT,
92
- rating REAL DEFAULT 0,
93
- review_count INTEGER DEFAULT 0,
94
- featured INTEGER DEFAULT 0,
95
- is_new INTEGER DEFAULT 0,
96
- published INTEGER DEFAULT 1,
97
- specifications TEXT,
98
- variants TEXT,
99
- created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
100
- updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,
101
- meta_description TEXT,
102
- meta_keywords TEXT
103
- );
104
- `);
105
-
106
- db.exec(`
107
- CREATE TABLE product_category_relations (
108
- id INTEGER PRIMARY KEY AUTOINCREMENT,
109
- product_id INTEGER NOT NULL,
110
- category_id INTEGER NOT NULL,
111
- is_primary INTEGER DEFAULT 0,
112
- FOREIGN KEY (product_id) REFERENCES products(id) ON DELETE CASCADE,
113
- FOREIGN KEY (category_id) REFERENCES product_categories(id) ON DELETE CASCADE
114
- );
115
- `);
116
-
117
- // Database'i dosyaya kaydet
118
- const data = db.export();
119
- const buffer = Buffer.from(data);
120
-
121
- const outputPath = path.join(process.cwd(), "public/data/database.db");
122
- fs.mkdirSync(path.dirname(outputPath), { recursive: true });
123
- fs.writeFileSync(outputPath, buffer);
124
-
125
- console.log(`Database olusturuldu: ${outputPath}`);
126
- console.log("Tablolar (6):");
127
- console.log(" - blog_categories, posts, post_categories");
128
- console.log(" - product_categories, products, product_category_relations");
129
- }
130
-
131
- createDatabase().catch(console.error);
1
+ import fs from "fs";
2
+ import path from "path";
3
+ import initSqlJs from "sql.js";
4
+
5
+ async function createDatabase() {
6
+ const SQL = await initSqlJs();
7
+ const db = new SQL.Database();
8
+
9
+ // ============================================
10
+ // BLOG SISTEMI
11
+ // ============================================
12
+
13
+ db.exec(`
14
+ CREATE TABLE blog_categories (
15
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
16
+ name TEXT NOT NULL,
17
+ slug TEXT UNIQUE NOT NULL,
18
+ description TEXT,
19
+ image TEXT,
20
+ created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
21
+ updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
22
+ );
23
+ `);
24
+
25
+ db.exec(`
26
+ CREATE TABLE posts (
27
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
28
+ title TEXT NOT NULL,
29
+ slug TEXT UNIQUE NOT NULL,
30
+ content TEXT NOT NULL,
31
+ excerpt TEXT,
32
+ featured_image TEXT,
33
+ images TEXT,
34
+ author TEXT,
35
+ author_avatar TEXT,
36
+ created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
37
+ published_at DATETIME DEFAULT CURRENT_TIMESTAMP,
38
+ updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,
39
+ tags TEXT,
40
+ read_time INTEGER DEFAULT 0,
41
+ view_count INTEGER DEFAULT 0,
42
+ featured INTEGER DEFAULT 0,
43
+ published INTEGER DEFAULT 1,
44
+ meta_description TEXT,
45
+ meta_keywords TEXT
46
+ );
47
+ `);
48
+
49
+ db.exec(`
50
+ CREATE TABLE post_categories (
51
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
52
+ post_id INTEGER NOT NULL,
53
+ category_id INTEGER NOT NULL,
54
+ is_primary INTEGER DEFAULT 0,
55
+ FOREIGN KEY (post_id) REFERENCES posts(id) ON DELETE CASCADE,
56
+ FOREIGN KEY (category_id) REFERENCES blog_categories(id) ON DELETE CASCADE
57
+ );
58
+ `);
59
+
60
+ // ============================================
61
+ // E-COMMERCE SISTEMI
62
+ // ============================================
63
+
64
+ db.exec(`
65
+ CREATE TABLE product_categories (
66
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
67
+ name TEXT NOT NULL,
68
+ slug TEXT UNIQUE NOT NULL,
69
+ description TEXT,
70
+ image TEXT,
71
+ parent_id INTEGER,
72
+ created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
73
+ updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,
74
+ FOREIGN KEY (parent_id) REFERENCES product_categories(id) ON DELETE SET NULL
75
+ );
76
+ `);
77
+
78
+ db.exec(`
79
+ CREATE TABLE products (
80
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
81
+ name TEXT NOT NULL,
82
+ slug TEXT UNIQUE NOT NULL,
83
+ description TEXT,
84
+ price REAL NOT NULL,
85
+ sale_price REAL,
86
+ on_sale INTEGER DEFAULT 0,
87
+ images TEXT,
88
+ brand TEXT,
89
+ sku TEXT,
90
+ stock INTEGER DEFAULT 0,
91
+ tags TEXT,
92
+ rating REAL DEFAULT 0,
93
+ review_count INTEGER DEFAULT 0,
94
+ featured INTEGER DEFAULT 0,
95
+ is_new INTEGER DEFAULT 0,
96
+ published INTEGER DEFAULT 1,
97
+ specifications TEXT,
98
+ variants TEXT,
99
+ created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
100
+ updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,
101
+ meta_description TEXT,
102
+ meta_keywords TEXT
103
+ );
104
+ `);
105
+
106
+ db.exec(`
107
+ CREATE TABLE product_category_relations (
108
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
109
+ product_id INTEGER NOT NULL,
110
+ category_id INTEGER NOT NULL,
111
+ is_primary INTEGER DEFAULT 0,
112
+ FOREIGN KEY (product_id) REFERENCES products(id) ON DELETE CASCADE,
113
+ FOREIGN KEY (category_id) REFERENCES product_categories(id) ON DELETE CASCADE
114
+ );
115
+ `);
116
+
117
+ // Database'i dosyaya kaydet
118
+ const data = db.export();
119
+ const buffer = Buffer.from(data);
120
+
121
+ const outputPath = path.join(process.cwd(), "public/data/database.db");
122
+ fs.mkdirSync(path.dirname(outputPath), { recursive: true });
123
+ fs.writeFileSync(outputPath, buffer);
124
+
125
+ console.log(`Database olusturuldu: ${outputPath}`);
126
+ console.log("Tablolar (6):");
127
+ console.log(" - blog_categories, posts, post_categories");
128
+ console.log(" - product_categories, products, product_category_relations");
129
+ }
130
+
131
+ createDatabase().catch(console.error);
@@ -1,16 +1,16 @@
1
- import { TooltipProvider } from "@/components/ui/tooltip";
2
- import { GoogleAnalytics } from "@/components/GoogleAnalytics";
3
- import { ScriptInjector } from "@/components/ScriptInjector";
4
- import { Router } from "./router";
5
-
6
- const App = () => {
7
- return (
8
- <TooltipProvider>
9
- <GoogleAnalytics />
10
- <ScriptInjector />
11
- <Router />
12
- </TooltipProvider>
13
- );
14
- };
15
-
16
- export default App;
1
+ import { TooltipProvider } from "@/components/ui/tooltip";
2
+ import { GoogleAnalytics } from "@/components/GoogleAnalytics";
3
+ import { ScriptInjector } from "@/components/ScriptInjector";
4
+ import { Router } from "./router";
5
+
6
+ const App = () => {
7
+ return (
8
+ <TooltipProvider>
9
+ <GoogleAnalytics />
10
+ <ScriptInjector />
11
+ <Router />
12
+ </TooltipProvider>
13
+ );
14
+ };
15
+
16
+ export default App;