create-landing-app 0.2.2 → 0.2.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/dist/prompts.js
CHANGED
|
@@ -10,40 +10,13 @@ export async function runPrompts() {
|
|
|
10
10
|
const packageManager = await select({
|
|
11
11
|
message: "Package manager?",
|
|
12
12
|
options: [
|
|
13
|
-
{ value: "bun", label: "bun" },
|
|
14
13
|
{ value: "pnpm", label: "pnpm" },
|
|
14
|
+
{ value: "bun", label: "bun" },
|
|
15
15
|
{ value: "yarn", label: "yarn" },
|
|
16
16
|
],
|
|
17
17
|
});
|
|
18
18
|
if (isCancel(packageManager))
|
|
19
19
|
return null;
|
|
20
|
-
const i18n = await select({
|
|
21
|
-
message: "i18n / Translation?",
|
|
22
|
-
options: [
|
|
23
|
-
{ value: "none", label: "None" },
|
|
24
|
-
{ value: "dict", label: "Dictionary-based (no extra deps)" },
|
|
25
|
-
],
|
|
26
|
-
});
|
|
27
|
-
if (isCancel(i18n))
|
|
28
|
-
return null;
|
|
29
|
-
const stateManagement = await select({
|
|
30
|
-
message: "State management?",
|
|
31
|
-
options: [
|
|
32
|
-
{ value: "none", label: "None (recommended for simple sites)" },
|
|
33
|
-
{ value: "zustand", label: "Zustand" },
|
|
34
|
-
],
|
|
35
|
-
});
|
|
36
|
-
if (isCancel(stateManagement))
|
|
37
|
-
return null;
|
|
38
|
-
const dataFetching = await select({
|
|
39
|
-
message: "Data fetching?",
|
|
40
|
-
options: [
|
|
41
|
-
{ value: "none", label: "None" },
|
|
42
|
-
{ value: "tanstack-query", label: "TanStack Query" },
|
|
43
|
-
],
|
|
44
|
-
});
|
|
45
|
-
if (isCancel(dataFetching))
|
|
46
|
-
return null;
|
|
47
20
|
const blog = await confirm({ message: "Include Blog section?" });
|
|
48
21
|
if (isCancel(blog))
|
|
49
22
|
return null;
|
|
@@ -53,9 +26,9 @@ export async function runPrompts() {
|
|
|
53
26
|
return {
|
|
54
27
|
projectName: String(projectName).trim(),
|
|
55
28
|
packageManager: packageManager,
|
|
56
|
-
i18n:
|
|
57
|
-
stateManagement:
|
|
58
|
-
dataFetching:
|
|
29
|
+
i18n: "dict",
|
|
30
|
+
stateManagement: "zustand",
|
|
31
|
+
dataFetching: "tanstack-query",
|
|
59
32
|
blog: Boolean(blog),
|
|
60
33
|
docker: Boolean(docker),
|
|
61
34
|
};
|
package/package.json
CHANGED
|
@@ -18,6 +18,8 @@ const eslintConfig = [
|
|
|
18
18
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
19
19
|
// React hooks rules
|
|
20
20
|
"react-hooks/exhaustive-deps": "warn",
|
|
21
|
+
// Allow raw <img> elements — Next.js Image optimization is opt-in
|
|
22
|
+
"@next/next/no-img-element": "off",
|
|
21
23
|
},
|
|
22
24
|
},
|
|
23
25
|
];
|