@codabytez/create-next-template 0.1.6 → 0.1.8
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/index.js +17 -7
- package/package.json +1 -1
- package/templates/base/eslint.config.mjs +4 -12
package/dist/index.js
CHANGED
|
@@ -109,10 +109,8 @@ var BASE_DEV_DEPS = {
|
|
|
109
109
|
// Code quality
|
|
110
110
|
eslint: "^10.1.0",
|
|
111
111
|
"eslint-config-next": "^16.2.0",
|
|
112
|
-
"@eslint/eslintrc": "^3.3.5",
|
|
113
112
|
prettier: "^3.8.1",
|
|
114
113
|
"eslint-config-prettier": "^10.1.8",
|
|
115
|
-
"eslint-plugin-prettier": "^5.5.5",
|
|
116
114
|
// Git hooks
|
|
117
115
|
husky: "^9.1.7",
|
|
118
116
|
"lint-staged": "^16.4.0"
|
|
@@ -460,10 +458,10 @@ async function main() {
|
|
|
460
458
|
const packageManager = await p2.select({
|
|
461
459
|
message: "Which package manager?",
|
|
462
460
|
options: [
|
|
463
|
-
{ value: "npm", label: "npm" },
|
|
464
461
|
{ value: "pnpm", label: "pnpm" },
|
|
465
462
|
{ value: "yarn", label: "yarn" },
|
|
466
|
-
{ value: "bun", label: "bun" }
|
|
463
|
+
{ value: "bun", label: "bun" },
|
|
464
|
+
{ value: "npm", label: "npm" }
|
|
467
465
|
]
|
|
468
466
|
});
|
|
469
467
|
if (p2.isCancel(packageManager)) {
|
|
@@ -486,9 +484,21 @@ async function main() {
|
|
|
486
484
|
},
|
|
487
485
|
{ value: "extraIcons", label: "Extra Icons", hint: "iconsax-reactjs" },
|
|
488
486
|
{ value: "auth", label: "Auth", hint: "Clerk" },
|
|
489
|
-
{
|
|
490
|
-
|
|
491
|
-
|
|
487
|
+
{
|
|
488
|
+
value: "prisma",
|
|
489
|
+
label: "Database \u2014 Prisma",
|
|
490
|
+
hint: "Prisma + PostgreSQL"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
value: "convex",
|
|
494
|
+
label: "Database \u2014 Convex",
|
|
495
|
+
hint: "Convex real-time backend"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
value: "appwrite",
|
|
499
|
+
label: "Database \u2014 Appwrite",
|
|
500
|
+
hint: "Appwrite BaaS"
|
|
501
|
+
},
|
|
492
502
|
{ value: "ui", label: "UI Components", hint: "shadcn/ui" }
|
|
493
503
|
],
|
|
494
504
|
required: false
|
package/package.json
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
-
import prettier from "eslint-plugin-prettier/recommended";
|
|
5
|
-
|
|
6
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
-
const __dirname = dirname(__filename);
|
|
8
|
-
|
|
9
|
-
const compat = new FlatCompat({ baseDirectory: __dirname });
|
|
1
|
+
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
|
|
2
|
+
import eslintConfigPrettier from "eslint-config-prettier";
|
|
10
3
|
|
|
11
4
|
const eslintConfig = [
|
|
12
|
-
...
|
|
13
|
-
|
|
5
|
+
...nextCoreWebVitals,
|
|
6
|
+
eslintConfigPrettier,
|
|
14
7
|
{
|
|
15
8
|
rules: {
|
|
16
|
-
"prettier/prettier": "error",
|
|
17
9
|
"no-console": ["error", { allow: ["warn", "error"] }],
|
|
18
10
|
"no-debugger": "error",
|
|
19
11
|
"@typescript-eslint/no-unused-vars": [
|