@promakeai/cli 0.9.2 → 0.9.4

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/package.json CHANGED
@@ -1,57 +1,58 @@
1
- {
2
- "name": "@promakeai/cli",
3
- "version": "0.9.2",
4
- "type": "module",
5
- "bin": {
6
- "promake": "dist/index.js"
7
- },
8
- "files": [
9
- "dist/index.js",
10
- "dist/registry",
11
- "template"
12
- ],
13
- "scripts": {
14
- "dev": "bun run src/index.ts",
15
- "dev:app": "cd dev && bun run dev",
16
- "dev:populate": "bun run scripts/populate-dev.ts",
17
- "dev:fresh": "bun run dev:populate && bun run dev:app",
18
- "playground:create": "rm -rf playground && bun run dev -- create playground --template empty --pm bun",
19
- "playground:reset": "bun run playground:create",
20
- "playground:add": "cd playground && bun run ../src/index.ts add",
21
- "playground:ecommerce": "rm -rf playground && bun run dev -- create playground --template ecommerce --pm bun",
22
- "clean": "rimraf dist",
23
- "build": "bun run clean && bun run build:cli && bun run build:registry",
24
- "build:cli": "bun build src/index.ts --outdir dist --target node --minify",
25
- "build:registry": "bun run scripts/build-registry.ts",
26
- "typecheck": "tsc --noEmit",
27
- "prepublishOnly": "bun run build",
28
- "test": "bun test",
29
- "test:e2e": "bun run scripts/e2e-test.ts",
30
- "test:watch": "bun test --watch",
31
- "test:coverage": "bun test --coverage",
32
- "release": "bun run build && npm publish --access public"
33
- },
34
- "dependencies": {
35
- "adm-zip": "^0.5.16",
36
- "archiver": "^7.0.1",
37
- "chalk": "^5.3.0",
38
- "commander": "^12.1.0",
39
- "culori": "^4.0.2",
40
- "dotenv": "^17.2.3",
41
- "fs-extra": "^11.3.3",
42
- "glob": "^11.0.0",
43
- "ora": "^8.1.1",
44
- "prompts": "^2.4.2",
45
- "puppeteer-core": "^24.36.0"
46
- },
47
- "devDependencies": {
48
- "@types/archiver": "^7.0.0",
49
- "@types/bun": "^1.1.14",
50
- "@types/culori": "^4.0.1",
51
- "@types/fs-extra": "^11.0.4",
52
- "@types/node": "^22.10.2",
53
- "@types/prompts": "^2.4.9",
54
- "rimraf": "6.0.1",
55
- "typescript": "^5.7.2"
56
- }
1
+ {
2
+ "name": "@promakeai/cli",
3
+ "version": "0.9.4",
4
+ "type": "module",
5
+ "bin": {
6
+ "promake": "dist/index.js"
7
+ },
8
+ "files": [
9
+ "dist/index.js",
10
+ "dist/registry",
11
+ "template"
12
+ ],
13
+ "scripts": {
14
+ "dev": "bun run src/index.ts",
15
+ "dev:app": "cd dev && bun run dev",
16
+ "dev:populate": "bun run scripts/populate-dev.ts",
17
+ "dev:fresh": "bun run dev:populate && bun run dev:app",
18
+ "playground:create": "rm -rf playground && bun run dev -- create playground --template empty --pm bun",
19
+ "playground:reset": "bun run playground:create",
20
+ "playground:add": "cd playground && bun run ../src/index.ts add",
21
+ "playground:ecommerce": "rm -rf playground && bun run dev -- create playground --template ecommerce --pm bun",
22
+ "clean": "rimraf dist",
23
+ "build": "bun run clean && bun run build:cli && bun run build:registry",
24
+ "build:cli": "bun build src/index.ts --outdir dist --target node --minify",
25
+ "build:registry": "bun run scripts/build-registry.ts",
26
+ "typecheck": "tsc --noEmit",
27
+ "prepublishOnly": "bun run build",
28
+ "test": "bun test",
29
+ "test:e2e": "bun run scripts/e2e-test.ts",
30
+ "test:watch": "bun test --watch",
31
+ "test:coverage": "bun test --coverage",
32
+ "release": "bun run build && npm publish --access public"
33
+ },
34
+ "dependencies": {
35
+ "adm-zip": "^0.5.16",
36
+ "archiver": "^7.0.1",
37
+ "axios": "^1.13.6",
38
+ "chalk": "^5.3.0",
39
+ "commander": "^12.1.0",
40
+ "culori": "^4.0.2",
41
+ "dotenv": "^17.2.3",
42
+ "fs-extra": "^11.3.3",
43
+ "glob": "^11.0.0",
44
+ "ora": "^8.1.1",
45
+ "prompts": "^2.4.2",
46
+ "puppeteer-core": "^24.36.0"
47
+ },
48
+ "devDependencies": {
49
+ "@types/archiver": "^7.0.0",
50
+ "@types/bun": "^1.1.14",
51
+ "@types/culori": "^4.0.1",
52
+ "@types/fs-extra": "^11.0.4",
53
+ "@types/node": "^22.10.2",
54
+ "@types/prompts": "^2.4.9",
55
+ "rimraf": "6.0.1",
56
+ "typescript": "^5.7.2"
57
+ }
57
58
  }
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "name": "promake",
3
- "languages": [
4
- "en",
5
- "tr"
6
- ],
3
+ "languages": ["en", "tr"],
7
4
  "defaultLanguage": "en",
8
5
  "tables": {
9
6
  "blog_categories": {
@@ -71,9 +68,7 @@
71
68
  "type": "text"
72
69
  },
73
70
  "images": {
74
- "type": [
75
- "string"
76
- ]
71
+ "type": ["string"]
77
72
  },
78
73
  "author": {
79
74
  "type": "string",
@@ -92,14 +87,10 @@
92
87
  "type": "timestamp"
93
88
  },
94
89
  "tags": {
95
- "type": [
96
- "string"
97
- ]
90
+ "type": ["string"]
98
91
  },
99
92
  "categories": {
100
- "type": [
101
- "number"
102
- ],
93
+ "type": ["number"],
103
94
  "ref": "blog_categories"
104
95
  },
105
96
  "read_time": {
@@ -126,154 +117,6 @@
126
117
  "type": "text",
127
118
  "translatable": true
128
119
  }
129
- },
130
- "product_categories": {
131
- "$permissions": {
132
- "anon": ["read"],
133
- "user": ["read"],
134
- "admin": ["read", "create", "update", "delete"]
135
- },
136
- "id": {
137
- "type": "id"
138
- },
139
- "name": {
140
- "type": "string",
141
- "nullable": false,
142
- "translatable": true
143
- },
144
- "slug": {
145
- "type": "string",
146
- "nullable": false,
147
- "unique": true
148
- },
149
- "description": {
150
- "type": "text",
151
- "translatable": true
152
- },
153
- "image": {
154
- "type": "text"
155
- },
156
- "parent_id": {
157
- "type": "int",
158
- "ref": "product_categories"
159
- },
160
- "created_at": {
161
- "type": "timestamp"
162
- },
163
- "updated_at": {
164
- "type": "timestamp"
165
- }
166
- },
167
- "products": {
168
- "$permissions": {
169
- "anon": ["read"],
170
- "user": ["read"],
171
- "admin": ["read", "create", "update", "delete"]
172
- },
173
- "id": {
174
- "type": "id"
175
- },
176
- "name": {
177
- "type": "string",
178
- "nullable": false,
179
- "translatable": true
180
- },
181
- "slug": {
182
- "type": "string",
183
- "nullable": false,
184
- "unique": true
185
- },
186
- "description": {
187
- "type": "text",
188
- "translatable": true
189
- },
190
- "price": {
191
- "type": "decimal",
192
- "nullable": false
193
- },
194
- "sale_price": {
195
- "type": "decimal"
196
- },
197
- "on_sale": {
198
- "type": "bool",
199
- "default": false
200
- },
201
- "images": {
202
- "type": [
203
- "string"
204
- ]
205
- },
206
- "brand": {
207
- "type": "string",
208
- "translatable": true
209
- },
210
- "sku": {
211
- "type": "string"
212
- },
213
- "stock": {
214
- "type": "int",
215
- "default": 0
216
- },
217
- "tags": {
218
- "type": [
219
- "string"
220
- ]
221
- },
222
- "categories": {
223
- "type": [
224
- "number"
225
- ],
226
- "ref": "product_categories"
227
- },
228
- "rating": {
229
- "type": "decimal",
230
- "default": 0
231
- },
232
- "review_count": {
233
- "type": "int",
234
- "default": 0
235
- },
236
- "featured": {
237
- "type": "bool",
238
- "default": false
239
- },
240
- "is_new": {
241
- "type": "bool",
242
- "default": false
243
- },
244
- "published": {
245
- "type": "bool",
246
- "default": true
247
- },
248
- "specifications": {
249
- "type": "json"
250
- },
251
- "variants": {
252
- "type": [
253
- {
254
- "id": "string",
255
- "name": "string",
256
- "value": "string",
257
- "price?": "number",
258
- "image?": "string",
259
- "stockQuantity": "number"
260
- }
261
- ]
262
- },
263
- "created_at": {
264
- "type": "timestamp"
265
- },
266
- "updated_at": {
267
- "type": "timestamp"
268
- },
269
- "meta_description": {
270
- "type": "text",
271
- "translatable": true
272
- },
273
- "meta_keywords": {
274
- "type": "text",
275
- "translatable": true
276
- }
277
120
  }
278
121
  }
279
- }
122
+ }