@batijs/cli 0.0.287 → 0.0.288
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/boilerplates/@batijs/auth0/files/$.env.js +5 -5
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +19 -46
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/tests/aws_handler.spec.ts +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +10 -18
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +21 -42
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -8
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +5 -8
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +91 -5
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +14 -19
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +11 -11
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +10 -37
- package/dist/boilerplates/@batijs/express/files/$package.json.js +15 -33
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +15 -33
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +4 -8
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +15 -36
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +12 -49
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +16 -39
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +4 -22
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +5 -9
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +12 -12
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +6 -10
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +5 -8
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +7 -7
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +16 -24
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +6 -10
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +5 -8
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +7 -9
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +5 -13
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +12 -12
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -9
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +13 -22
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +4 -7
- package/dist/{chunk-ZPMGCQ2D.js → chunk-BX6YHROU.js} +55914 -55882
- package/dist/index.js +25 -20
- package/package.json +6 -6
- package/dist/boilerplates/@batijs/shared-no-db/files/$package.json.js +0 -94
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/shared-server/dist/files/$package.json.js
|
|
@@ -93,10 +92,8 @@ var require_package = __commonJS({
|
|
|
93
92
|
}
|
|
94
93
|
});
|
|
95
94
|
async function getPackageJson(props) {
|
|
96
|
-
const packageJson = await
|
|
97
|
-
return
|
|
98
|
-
dependencies: ["@universal-middleware/core"]
|
|
99
|
-
});
|
|
95
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
96
|
+
return packageJson.addDependencies(["@universal-middleware/core"]);
|
|
100
97
|
}
|
|
101
98
|
export {
|
|
102
99
|
getPackageJson as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
TLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/solid/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await TLs(props);
|
|
10
10
|
const about = `
|
|
11
11
|
|
|
12
12
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [SolidJS](https://www.solidjs.com/guides/getting-started).
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/solid/dist/files/$package.json.js
|
|
@@ -49,8 +48,8 @@ var require_package = __commonJS({
|
|
|
49
48
|
devDependencies: {
|
|
50
49
|
"@batijs/compile": "workspace:*",
|
|
51
50
|
"@types/node": "^18.19.14",
|
|
52
|
-
"solid-js": "^1.8.
|
|
53
|
-
tailwindcss: "^3.4.
|
|
51
|
+
"solid-js": "^1.8.23",
|
|
52
|
+
tailwindcss: "^3.4.13",
|
|
54
53
|
typescript: "^5.6.2",
|
|
55
54
|
vike: "^0.4.196",
|
|
56
55
|
"vike-solid": "^0.7.5",
|
|
@@ -174,11 +173,8 @@ var require_package = __commonJS({
|
|
|
174
173
|
}
|
|
175
174
|
});
|
|
176
175
|
async function getPackageJson(props) {
|
|
177
|
-
const packageJson = await
|
|
178
|
-
return
|
|
179
|
-
devDependencies: ["vite"],
|
|
180
|
-
dependencies: ["solid-js", "vike-solid", "vike"]
|
|
181
|
-
});
|
|
176
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
177
|
+
return packageJson.addDevDependencies(["vite"]).addDependencies(["solid-js", "vike-solid", "vike"]);
|
|
182
178
|
}
|
|
183
179
|
export {
|
|
184
180
|
getPackageJson as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
SLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/solid/dist/files/$tsconfig.json.js
|
|
8
8
|
async function getTsConfig(props) {
|
|
9
|
-
const tsConfig = await
|
|
9
|
+
const tsConfig = await SLs(props);
|
|
10
10
|
tsConfig.compilerOptions.jsx = "preserve";
|
|
11
11
|
tsConfig.compilerOptions.jsxImportSource = "solid-js";
|
|
12
12
|
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vike-solid/client"];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
3
|
+
ELs,
|
|
4
|
+
Pus
|
|
5
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
6
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
7
|
|
|
8
8
|
// ../../boilerplates/solid/dist/files/$vite.config.ts.js
|
|
9
9
|
async function getViteConfig(props) {
|
|
10
|
-
const mod = await
|
|
11
|
-
|
|
10
|
+
const mod = await ELs(props);
|
|
11
|
+
Pus(mod, {
|
|
12
12
|
from: "vike-solid/vite",
|
|
13
13
|
constructor: "vikeSolid"
|
|
14
14
|
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/solid-sentry/dist/files/$package.json.js
|
|
@@ -50,7 +49,7 @@ var require_package = __commonJS({
|
|
|
50
49
|
"@batijs/compile": "workspace:*",
|
|
51
50
|
"@sentry/solid": "^8.31.0",
|
|
52
51
|
"@types/node": "^18.19.14",
|
|
53
|
-
"solid-js": "^1.8.
|
|
52
|
+
"solid-js": "^1.8.23",
|
|
54
53
|
"vike-solid": "^0.7.5",
|
|
55
54
|
vite: "^5.4.7"
|
|
56
55
|
},
|
|
@@ -92,10 +91,8 @@ var require_package = __commonJS({
|
|
|
92
91
|
}
|
|
93
92
|
});
|
|
94
93
|
async function getPackageJson(props) {
|
|
95
|
-
const packageJson = await
|
|
96
|
-
return
|
|
97
|
-
dependencies: ["@sentry/solid"]
|
|
98
|
-
});
|
|
94
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
95
|
+
return packageJson.addDependencies(["@sentry/solid"]);
|
|
99
96
|
}
|
|
100
97
|
export {
|
|
101
98
|
getPackageJson as default
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
LLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/sqlite/dist/files/$.env.js
|
|
8
8
|
async function getEnv(props) {
|
|
9
9
|
if (props.meta.BATI.hasD1) return;
|
|
10
10
|
const envContent = await props.readfile?.();
|
|
11
|
-
return
|
|
11
|
+
return LLs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
14
|
getEnv as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
TLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/sqlite/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await TLs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *Sqlite*
|
|
12
12
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/sqlite/dist/files/$package.json.js
|
|
@@ -120,12 +119,11 @@ var require_package = __commonJS({
|
|
|
120
119
|
}
|
|
121
120
|
});
|
|
122
121
|
async function getPackageJson(props) {
|
|
123
|
-
const packageJson = await
|
|
124
|
-
packageJson.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
});
|
|
122
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
123
|
+
return packageJson.setScript("sqlite:migrate", {
|
|
124
|
+
value: "tsx ./database/sqlite/schema/all.ts",
|
|
125
|
+
precedence: 1
|
|
126
|
+
}).addDevDependencies(["@types/better-sqlite3"]).addDevDependencies(["tsx"], ["sqlite:migrate"]).addDependencies(["better-sqlite3", "dotenv"]);
|
|
129
127
|
}
|
|
130
128
|
export {
|
|
131
129
|
getPackageJson as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/tailwindcss/dist/files/$package.json.js
|
|
@@ -52,7 +51,7 @@ var require_package = __commonJS({
|
|
|
52
51
|
autoprefixer: "^10.4.20",
|
|
53
52
|
daisyui: "^4.12.10",
|
|
54
53
|
postcss: "^8.4.47",
|
|
55
|
-
tailwindcss: "^3.4.
|
|
54
|
+
tailwindcss: "^3.4.13",
|
|
56
55
|
vike: "^0.4.196",
|
|
57
56
|
vite: "^5.4.7"
|
|
58
57
|
},
|
|
@@ -89,15 +88,8 @@ var require_package = __commonJS({
|
|
|
89
88
|
}
|
|
90
89
|
});
|
|
91
90
|
async function getPackageJson(props) {
|
|
92
|
-
const packageJson = await
|
|
93
|
-
return
|
|
94
|
-
devDependencies: [
|
|
95
|
-
"tailwindcss",
|
|
96
|
-
"postcss",
|
|
97
|
-
"autoprefixer",
|
|
98
|
-
...props.meta.BATI.has("daisyui") ? ["daisyui"] : []
|
|
99
|
-
]
|
|
100
|
-
});
|
|
91
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
92
|
+
return packageJson.addDevDependencies(["tailwindcss", "postcss", "autoprefixer"]).addDevDependencies(["daisyui"], props.meta.BATI.has("daisyui"));
|
|
101
93
|
}
|
|
102
94
|
export {
|
|
103
95
|
getPackageJson as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/telefunc/dist/files/$package.json.js
|
|
@@ -88,10 +87,8 @@ var require_package = __commonJS({
|
|
|
88
87
|
}
|
|
89
88
|
});
|
|
90
89
|
async function getPackageJson(props) {
|
|
91
|
-
const packageJson = await
|
|
92
|
-
return
|
|
93
|
-
dependencies: ["telefunc", "@universal-middleware/core"]
|
|
94
|
-
});
|
|
90
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
91
|
+
return packageJson.addDependencies(["telefunc", "@universal-middleware/core"]);
|
|
95
92
|
}
|
|
96
93
|
export {
|
|
97
94
|
getPackageJson as default
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
3
|
+
ELs,
|
|
4
|
+
Pus
|
|
5
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
6
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
7
|
|
|
8
8
|
// ../../boilerplates/telefunc/dist/files/$vite.config.ts.js
|
|
9
9
|
async function getViteConfig(props) {
|
|
10
|
-
const mod = await
|
|
11
|
-
|
|
10
|
+
const mod = await ELs(props);
|
|
11
|
+
Pus(mod, {
|
|
12
12
|
from: "telefunc/vite",
|
|
13
13
|
constructor: "telefunc",
|
|
14
14
|
imported: "telefunc"
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/trpc/dist/files/$package.json.js
|
|
@@ -94,10 +93,8 @@ var require_package = __commonJS({
|
|
|
94
93
|
}
|
|
95
94
|
});
|
|
96
95
|
async function getPackageJson(props) {
|
|
97
|
-
const packageJson = await
|
|
98
|
-
return
|
|
99
|
-
dependencies: ["@trpc/server", "@trpc/client"]
|
|
100
|
-
});
|
|
96
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
97
|
+
return packageJson.addDependencies(["@trpc/server", "@trpc/client"]);
|
|
101
98
|
}
|
|
102
99
|
export {
|
|
103
100
|
getPackageJson as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const trpcHandler: (endpoint: string) => (request: Request, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
|
|
1
|
+
export declare const trpcHandler: (endpoint: string) => (request: Request<unknown, CfProperties<unknown>>, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
|
|
@@ -3,11 +3,11 @@ export declare const trpc: {
|
|
|
3
3
|
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
|
4
4
|
_config: import("@trpc/server").RootConfig<{
|
|
5
5
|
ctx: object & {
|
|
6
|
-
db: ReturnType<
|
|
6
|
+
db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
|
|
7
7
|
} & {
|
|
8
|
-
db: ReturnType<
|
|
8
|
+
db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
|
|
9
9
|
} & {
|
|
10
|
-
db: ReturnType<
|
|
10
|
+
db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
|
|
11
11
|
} & {
|
|
12
12
|
db: import("@cloudflare/workers-types").D1Database;
|
|
13
13
|
};
|
|
@@ -16,11 +16,11 @@ export declare const trpc: {
|
|
|
16
16
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
17
17
|
}>;
|
|
18
18
|
_ctx_out: object & {
|
|
19
|
-
db: ReturnType<
|
|
19
|
+
db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
|
|
20
20
|
} & {
|
|
21
|
-
db: ReturnType<
|
|
21
|
+
db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
|
|
22
22
|
} & {
|
|
23
|
-
db: ReturnType<
|
|
23
|
+
db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
|
|
24
24
|
} & {
|
|
25
25
|
db: import("@cloudflare/workers-types").D1Database;
|
|
26
26
|
};
|
|
@@ -37,11 +37,11 @@ export declare const trpc: {
|
|
|
37
37
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
38
38
|
_config: import("@trpc/server").RootConfig<{
|
|
39
39
|
ctx: object & {
|
|
40
|
-
db: ReturnType<
|
|
40
|
+
db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
|
|
41
41
|
} & {
|
|
42
|
-
db: ReturnType<
|
|
42
|
+
db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
|
|
43
43
|
} & {
|
|
44
|
-
db: ReturnType<
|
|
44
|
+
db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
|
|
45
45
|
} & {
|
|
46
46
|
db: import("@cloudflare/workers-types").D1Database;
|
|
47
47
|
};
|
|
@@ -51,11 +51,11 @@ export declare const trpc: {
|
|
|
51
51
|
}>;
|
|
52
52
|
_meta: object;
|
|
53
53
|
_ctx_out: object & {
|
|
54
|
-
db: ReturnType<
|
|
54
|
+
db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
|
|
55
55
|
} & {
|
|
56
|
-
db: ReturnType<
|
|
56
|
+
db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
|
|
57
57
|
} & {
|
|
58
|
-
db: ReturnType<
|
|
58
|
+
db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
|
|
59
59
|
} & {
|
|
60
60
|
db: import("@cloudflare/workers-types").D1Database;
|
|
61
61
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/ts-rest/dist/files/$package.json.js
|
|
@@ -94,12 +93,8 @@ var require_package = __commonJS({
|
|
|
94
93
|
}
|
|
95
94
|
});
|
|
96
95
|
async function getPackageJson(props) {
|
|
97
|
-
const packageJson = await
|
|
98
|
-
|
|
99
|
-
dependencies: ["@ts-rest/core", "@ts-rest/serverless", "@universal-middleware/core"],
|
|
100
|
-
devDependencies: ["zod"]
|
|
101
|
-
});
|
|
102
|
-
return packageJson;
|
|
96
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
97
|
+
return packageJson.addDevDependencies(["zod"]).addDependencies(["@ts-rest/core", "@ts-rest/serverless", "@universal-middleware/core"]);
|
|
103
98
|
}
|
|
104
99
|
export {
|
|
105
100
|
getPackageJson as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/vercel/dist/files/$package.json.js
|
|
@@ -69,10 +68,8 @@ var require_package = __commonJS({
|
|
|
69
68
|
}
|
|
70
69
|
});
|
|
71
70
|
async function getPackageJson(props) {
|
|
72
|
-
const packageJson = await
|
|
73
|
-
return
|
|
74
|
-
dependencies: ["vite-plugin-vercel", "@vite-plugin-vercel/vike"]
|
|
75
|
-
});
|
|
71
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
72
|
+
return packageJson.addDependencies(["vite-plugin-vercel", "@vite-plugin-vercel/vike"]);
|
|
76
73
|
}
|
|
77
74
|
export {
|
|
78
75
|
getPackageJson as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
SLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/vercel/dist/files/$tsconfig.json.js
|
|
8
8
|
async function getTsConfig(props) {
|
|
9
|
-
const tsConfig = await
|
|
9
|
+
const tsConfig = await SLs(props);
|
|
10
10
|
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vite-plugin-vercel/types"];
|
|
11
11
|
return tsConfig;
|
|
12
12
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
3
|
+
ELs,
|
|
4
|
+
Pus
|
|
5
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
6
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
7
|
|
|
8
8
|
// ../../boilerplates/vercel/dist/files/$vite.config.ts.js
|
|
9
9
|
async function getViteConfig(props) {
|
|
10
|
-
const mod = await
|
|
10
|
+
const mod = await ELs(props);
|
|
11
11
|
const options = props.meta.BATI.has("express") || props.meta.BATI.has("fastify") ? {
|
|
12
12
|
source: "/.*"
|
|
13
13
|
} : void 0;
|
|
14
|
-
|
|
14
|
+
Pus(mod, {
|
|
15
15
|
from: "vite-plugin-vercel",
|
|
16
16
|
constructor: "vercel",
|
|
17
17
|
options
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
TLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/vue/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await TLs(props);
|
|
10
10
|
const about = `
|
|
11
11
|
|
|
12
12
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [Vue](https://vuejs.org/guide/quick-start.html).
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/vue/dist/files/$package.json.js
|
|
@@ -52,7 +51,7 @@ var require_package = __commonJS({
|
|
|
52
51
|
"@vitejs/plugin-vue": "^5.1.4",
|
|
53
52
|
"@vue/compiler-sfc": "^3.5.8",
|
|
54
53
|
"@vue/server-renderer": "^3.5.8",
|
|
55
|
-
tailwindcss: "^3.4.
|
|
54
|
+
tailwindcss: "^3.4.13",
|
|
56
55
|
typescript: "^5.6.2",
|
|
57
56
|
"unplugin-vue-markdown": "^0.26.2",
|
|
58
57
|
vike: "^0.4.196",
|
|
@@ -124,24 +123,16 @@ var require_package = __commonJS({
|
|
|
124
123
|
}
|
|
125
124
|
});
|
|
126
125
|
async function getPackageJson(props) {
|
|
127
|
-
const packageJson = await
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"@vue/compiler-sfc",
|
|
138
|
-
"@vue/server-renderer",
|
|
139
|
-
"unplugin-vue-markdown",
|
|
140
|
-
"vike-vue",
|
|
141
|
-
"vike",
|
|
142
|
-
"vue"
|
|
143
|
-
]
|
|
144
|
-
});
|
|
126
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
127
|
+
return packageJson.addDevDependencies(["vite"]).addDependencies([
|
|
128
|
+
"@vitejs/plugin-vue",
|
|
129
|
+
"@vue/compiler-sfc",
|
|
130
|
+
"@vue/server-renderer",
|
|
131
|
+
"unplugin-vue-markdown",
|
|
132
|
+
"vike-vue",
|
|
133
|
+
"vike",
|
|
134
|
+
"vue"
|
|
135
|
+
]).addDependencies(["vue-gtag"], props.meta.BATI.has("google-analytics"));
|
|
145
136
|
}
|
|
146
137
|
export {
|
|
147
138
|
getPackageJson as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
SLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/vue/dist/files/$tsconfig.json.js
|
|
8
8
|
async function getTsConfig(props) {
|
|
9
|
-
const tsConfig = await
|
|
9
|
+
const tsConfig = await SLs(props);
|
|
10
10
|
tsConfig.compilerOptions.jsx = "preserve";
|
|
11
11
|
tsConfig.compilerOptions.jsxImportSource = "vue";
|
|
12
12
|
return tsConfig;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
3
|
+
ELs,
|
|
4
|
+
Pus
|
|
5
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
6
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
7
|
|
|
8
8
|
// ../../boilerplates/vue/dist/files/$vite.config.ts.js
|
|
9
9
|
async function getViteConfig(props) {
|
|
10
|
-
const mod = await
|
|
11
|
-
|
|
10
|
+
const mod = await ELs(props);
|
|
11
|
+
Pus(mod, {
|
|
12
12
|
from: "@vitejs/plugin-vue",
|
|
13
13
|
constructor: "vue",
|
|
14
14
|
options: {
|
|
15
15
|
include: [/\.vue$/, /\.md$/]
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
|
|
18
|
+
Pus(mod, {
|
|
19
19
|
from: "unplugin-vue-markdown/vite",
|
|
20
20
|
constructor: "md",
|
|
21
21
|
options: {}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/vue-sentry/dist/files/$package.json.js
|
|
@@ -86,10 +85,8 @@ var require_package = __commonJS({
|
|
|
86
85
|
}
|
|
87
86
|
});
|
|
88
87
|
async function getPackageJson(props) {
|
|
89
|
-
const packageJson = await
|
|
90
|
-
return
|
|
91
|
-
dependencies: ["@sentry/vue"]
|
|
92
|
-
});
|
|
88
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
89
|
+
return packageJson.addDependencies(["@sentry/vue"]);
|
|
93
90
|
}
|
|
94
91
|
export {
|
|
95
92
|
getPackageJson as default
|