@promakeai/cli 0.9.0 → 0.9.3
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.
|
|
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
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"@types/
|
|
50
|
-
"@types/
|
|
51
|
-
"@types/
|
|
52
|
-
"@types/
|
|
53
|
-
"@types/
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@promakeai/cli",
|
|
3
|
+
"version": "0.9.3",
|
|
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
|
}
|
package/template/index.html
CHANGED
|
@@ -203,14 +203,17 @@
|
|
|
203
203
|
|
|
204
204
|
<!-- SEO -->
|
|
205
205
|
<title>Site Name</title>
|
|
206
|
-
<meta name="description" content="
|
|
206
|
+
<meta name="description" content="Built with Promake — a website created in minutes with AI." />
|
|
207
207
|
<meta name="author" content="Site Name" />
|
|
208
208
|
|
|
209
209
|
<!-- Open Graph -->
|
|
210
210
|
<meta property="og:title" content="Site Name" />
|
|
211
|
-
<meta property="og:description" content="
|
|
211
|
+
<meta property="og:description" content="Built with Promake — a website created in minutes with AI." />
|
|
212
212
|
<meta property="og:type" content="website" />
|
|
213
213
|
<meta property="og:image" content="" />
|
|
214
|
+
<meta property="og:url" content="" />
|
|
215
|
+
<meta property="og:site_name" content="Site Name" />
|
|
216
|
+
<meta property="og:locale" content="en" />
|
|
214
217
|
|
|
215
218
|
<!-- Twitter Card -->
|
|
216
219
|
<meta name="twitter:card" content="summary_large_image" />
|
|
@@ -222,6 +225,7 @@
|
|
|
222
225
|
|
|
223
226
|
<!-- Favicon -->
|
|
224
227
|
<link rel="icon" type="image/svg+xml" href="./favicon.svg" id="favicon" />
|
|
228
|
+
<link rel="apple-touch-icon" sizes="180x180" href="./favicon.svg" id="apple-touch-icon" />
|
|
225
229
|
|
|
226
230
|
<meta name="npm_status" content="active" />
|
|
227
231
|
</head>
|
|
@@ -28,6 +28,10 @@ function stripTrailingSlashes(value: string): string {
|
|
|
28
28
|
return value.replace(/\/+$/, '');
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
function ensureHttps(value: string): string {
|
|
32
|
+
return value.replace(/^http:\/\//i, 'https://');
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
export function MetriaAnalytics() {
|
|
32
36
|
const injected = useRef(false);
|
|
33
37
|
|
|
@@ -39,7 +43,7 @@ export function MetriaAnalytics() {
|
|
|
39
43
|
|
|
40
44
|
injected.current = true;
|
|
41
45
|
|
|
42
|
-
const normalizedServerUrl = stripTrailingSlashes(analyticsConfig.serverUrl);
|
|
46
|
+
const normalizedServerUrl = ensureHttps(stripTrailingSlashes(analyticsConfig.serverUrl));
|
|
43
47
|
const script = document.createElement('script');
|
|
44
48
|
script.async = true;
|
|
45
49
|
script.src = analyticsConfig.trackerScriptUrl;
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"seo": {
|
|
29
29
|
"title": "Site Name",
|
|
30
|
-
"description": "
|
|
30
|
+
"description": "Built with Promake — a website created in minutes with AI.",
|
|
31
31
|
"author": "Site Name",
|
|
32
32
|
"ogTitle": "Site Name",
|
|
33
|
-
"ogDescription": "
|
|
33
|
+
"ogDescription": "Built with Promake — a website created in minutes with AI.",
|
|
34
34
|
"ogImage": "",
|
|
35
35
|
"twitterSite": "",
|
|
36
36
|
"twitterImage": "",
|
|
@@ -31,7 +31,7 @@ export const usePageTitle = (options: UsePageTitleOptions = {}) => {
|
|
|
31
31
|
|
|
32
32
|
descriptionElement.setAttribute("content", metaDescription);
|
|
33
33
|
|
|
34
|
-
// Set favicon if provided
|
|
34
|
+
// Set favicon and apple-touch-icon if provided
|
|
35
35
|
if (constants.site.favicon) {
|
|
36
36
|
const faviconElement = document.querySelector(
|
|
37
37
|
"#favicon",
|
|
@@ -39,6 +39,12 @@ export const usePageTitle = (options: UsePageTitleOptions = {}) => {
|
|
|
39
39
|
if (faviconElement) {
|
|
40
40
|
faviconElement.href = constants.site.favicon;
|
|
41
41
|
}
|
|
42
|
+
const appleTouchIcon = document.querySelector(
|
|
43
|
+
"#apple-touch-icon",
|
|
44
|
+
) as HTMLLinkElement;
|
|
45
|
+
if (appleTouchIcon) {
|
|
46
|
+
appleTouchIcon.href = constants.site.favicon;
|
|
47
|
+
}
|
|
42
48
|
}
|
|
43
49
|
}, [options]);
|
|
44
50
|
|