@batijs/cli 0.0.462 → 0.0.465
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 +3 -3
- package/dist/boilerplates/@batijs/authjs/files/global.d.ts +0 -2
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/cdk/bin/infrastructure.ts +3 -4
- package/dist/boilerplates/@batijs/aws/files/cdk/lib/vike-stack.ts +12 -12
- package/dist/boilerplates/@batijs/aws/files/tests/aws_handler.spec.ts +4 -3
- package/dist/boilerplates/@batijs/aws/types/cdk/lib/vike-stack.d.ts +1 -1
- package/dist/boilerplates/@batijs/biome/files/$biome.json.js +93 -0
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -4
- 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 +6 -6
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +0 -2
- package/dist/boilerplates/@batijs/d1/files/database/d1/helpers.ts +1 -0
- package/dist/boilerplates/@batijs/d1/files/global.d.ts +1 -3
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +5 -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 +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/queries/todos.ts +2 -1
- package/dist/boilerplates/@batijs/drizzle/files/drizzle.config.ts +1 -0
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.ts +1 -1
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.ts +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/express/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/express/files/express-entry.ts +2 -2
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/fastify/files/fastify-entry.ts +4 -4
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +4 -3
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/hono/files/entry_aws_lambda.ts +5 -5
- package/dist/boilerplates/@batijs/hono/files/hono-entry.node.ts +1 -1
- package/dist/boilerplates/@batijs/hono/files/hono-entry.ts +3 -3
- package/dist/boilerplates/@batijs/hono/types/entry_aws_lambda.d.ts +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/mantine/files/components/Link.tsx +1 -1
- package/dist/boilerplates/@batijs/mantine/files/layouts/LayoutDefault.tsx +3 -3
- package/dist/boilerplates/@batijs/mantine/files/layouts/theme.ts +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
- 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 +5 -5
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +9 -9
- 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/files/pages/+Head.tsx +12 -7
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/star-wars/@id/+data.ts +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/star-wars/index/+data.ts +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/todo/TodoList.tsx +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/react-sentry/files/pages/sentry/+Page.tsx +3 -2
- 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 +5 -5
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +6 -6
- 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/shadcn-ui/files/lib/utils.ts +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
- package/dist/boilerplates/@batijs/shared/files/package.json +2 -2
- package/dist/boilerplates/@batijs/shared/files/vite.config.ts +2 -1
- package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +4 -3
- package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +2 -2
- package/dist/boilerplates/@batijs/shared-no-db/files/database/todoItems.ts +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +4 -3
- package/dist/boilerplates/@batijs/shared-server/files/server/vike-handler.ts +2 -1
- package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +1 -1
- package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +3 -5
- package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +3 -2
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +7 -7
- 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/files/pages/+Head.tsx +1 -5
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/solid/files/pages/star-wars/@id/+data.ts +1 -1
- package/dist/boilerplates/@batijs/solid/files/pages/star-wars/index/+data.ts +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/solid-sentry/files/pages/sentry/+Page.tsx +2 -3
- 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 +4 -4
- package/dist/boilerplates/@batijs/sqlite/files/database/sqlite/db.ts +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +3 -5
- package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +2 -2
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +3 -3
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +4 -3
- package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +4 -4
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +8 -7
- package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.ts +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +5 -5
- 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/vercel/files/pages/$+config.ts.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +6 -6
- 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/files/layouts/LayoutDefault.vue +1 -0
- package/dist/boilerplates/@batijs/vue/files/pages/+Head.vue +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/star-wars/@id/+data.ts +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/star-wars/index/+data.ts +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/vue-sentry/files/sentry.browser.config.ts +3 -4
- package/dist/{chunk-EFIXXE6N.js → chunk-4TGDHMDE.js} +159734 -159712
- package/dist/index.js +5089 -5185
- package/dist/{jiti-EM3N2G3P-5LY37YR5.js → jiti-W5Y5D52V-VBLACVBV.js} +417 -417
- package/package.json +8 -8
- package/dist/boilerplates/@batijs/biome/files/biome.json +0 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Get, UniversalMiddleware } from "@universal-middleware/core";
|
|
2
1
|
import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
3
2
|
import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
4
|
-
import { D1Database } from "@cloudflare/workers-types";
|
|
3
|
+
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
|
+
import type { Get, UniversalMiddleware } from "@universal-middleware/core";
|
|
5
5
|
declare global {
|
|
6
6
|
namespace Universal {
|
|
7
7
|
interface Context {
|
|
@@ -8,7 +8,7 @@ const database =
|
|
|
8
8
|
// We create an in-memory database.
|
|
9
9
|
// - We use globalThis so that the database isn't reset upon HMR.
|
|
10
10
|
// - The database is reset when restarting the server, use a proper database (SQLite/PostgreSQL/...) if you want persistent data.
|
|
11
|
-
// biome-ignore lint:
|
|
11
|
+
// biome-ignore lint: ignore
|
|
12
12
|
((globalThis as unknown as { __database: { todos: TodoItem[] } }).__database ??= { todos: todosDefault });
|
|
13
13
|
|
|
14
14
|
const { todos } = database;
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
_Es
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -52,11 +52,11 @@ var require_package = __commonJS({
|
|
|
52
52
|
license: "MIT",
|
|
53
53
|
devDependencies: {
|
|
54
54
|
"@batijs/compile": "workspace:*",
|
|
55
|
-
"@cloudflare/workers-types": "^4.
|
|
55
|
+
"@cloudflare/workers-types": "^4.20250816.0",
|
|
56
56
|
"@types/node": "^20.19.9",
|
|
57
57
|
"@universal-middleware/core": "^0.4.9",
|
|
58
|
-
vike: "^0.4.
|
|
59
|
-
vite: "^7.
|
|
58
|
+
vike: "^0.4.237",
|
|
59
|
+
vite: "^7.1.2"
|
|
60
60
|
},
|
|
61
61
|
files: [
|
|
62
62
|
"dist/"
|
|
@@ -95,7 +95,7 @@ var require_package = __commonJS({
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
async function getPackageJson(props) {
|
|
98
|
-
const packageJson = await
|
|
98
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
99
99
|
return packageJson.addDependencies(["@universal-middleware/core"]);
|
|
100
100
|
}
|
|
101
101
|
export {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*# BATI include-if-imported #*/
|
|
2
2
|
// TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/server. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
|
|
3
|
-
|
|
4
|
-
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
5
|
-
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
3
|
+
|
|
6
4
|
import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
|
|
7
5
|
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
6
|
+
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
8
7
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
8
|
+
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
9
9
|
import type { D1Database } from "@cloudflare/workers-types";
|
|
10
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
10
11
|
|
|
11
12
|
export const createTodoHandler: Get<
|
|
12
13
|
[],
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*# BATI include-if-imported #*/
|
|
2
2
|
/// <reference lib="webworker" />
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
// TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/server. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
|
|
5
5
|
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
6
|
+
import { renderPage } from "vike/server";
|
|
6
7
|
|
|
7
8
|
export const vikeHandler: Get<[], UniversalHandler> = () => async (request, context, runtime) => {
|
|
8
9
|
const pageContextInit = { ...context, ...runtime, urlOriginal: request.url, headersOriginal: request.headers };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
1
|
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
3
2
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
4
3
|
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
5
5
|
export declare const createTodoHandler: Get<[
|
|
6
6
|
], UniversalHandler<Universal.Context & BATI.If<{
|
|
7
7
|
'BATI.has("sqlite") && !BATI.hasD1': {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
-
import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
3
|
-
import { D1Database } from "@cloudflare/workers-types";
|
|
1
|
+
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
+
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
3
|
+
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
4
|
|
|
5
5
|
//# BATI.hasDatabase
|
|
6
6
|
declare global {
|
|
@@ -15,5 +15,3 @@ declare global {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// https://vike.dev/data
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
|
|
3
4
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
5
|
+
import { todos } from "@batijs/shared-no-db/database/todoItems";
|
|
4
6
|
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
5
|
-
import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
|
|
6
7
|
import type { PageContextServer } from "vike/types";
|
|
7
8
|
|
|
8
9
|
export type Data = {
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
pEs
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/solid/dist/files/$README.md.js
|
|
12
12
|
async function getReadme(props) {
|
|
13
|
-
const content = await
|
|
13
|
+
const content = await pEs(props);
|
|
14
14
|
const about = `
|
|
15
15
|
|
|
16
16
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [SolidJS](https://www.solidjs.com/guides/getting-started).
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
_Es
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -52,12 +52,12 @@ var require_package = __commonJS({
|
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
54
|
"@types/node": "^20.19.9",
|
|
55
|
-
"solid-js": "^1.9.
|
|
56
|
-
tailwindcss: "^4.1.
|
|
55
|
+
"solid-js": "^1.9.9",
|
|
56
|
+
tailwindcss: "^4.1.12",
|
|
57
57
|
typescript: "^5.9.2",
|
|
58
|
-
vike: "^0.4.
|
|
58
|
+
vike: "^0.4.237",
|
|
59
59
|
"vike-solid": "^0.7.12",
|
|
60
|
-
vite: "^7.
|
|
60
|
+
vite: "^7.1.2",
|
|
61
61
|
"vite-plugin-solid": "^2.11.8"
|
|
62
62
|
},
|
|
63
63
|
dependencies: {
|
|
@@ -177,7 +177,7 @@ var require_package = __commonJS({
|
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
async function getPackageJson(props) {
|
|
180
|
-
const packageJson = await
|
|
180
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
181
181
|
return packageJson.addDevDependencies(["vite"]).addDependencies(["solid-js", "vike-solid", "vike"]);
|
|
182
182
|
}
|
|
183
183
|
export {
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
fEs
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/solid/dist/files/$tsconfig.json.js
|
|
12
12
|
async function getTsConfig(props) {
|
|
13
|
-
const tsConfig = await
|
|
13
|
+
const tsConfig = await fEs(props);
|
|
14
14
|
tsConfig.compilerOptions.jsx = "react-jsx";
|
|
15
15
|
tsConfig.compilerOptions.jsxImportSource = "solid-js";
|
|
16
16
|
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vike-solid/client"];
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../../chunk-
|
|
6
|
+
Vri,
|
|
7
|
+
dEs
|
|
8
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/solid/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
15
|
-
|
|
14
|
+
const mod = await dEs(props);
|
|
15
|
+
Vri(mod, {
|
|
16
16
|
from: "vike-solid/vite",
|
|
17
17
|
constructor: "vikeSolid"
|
|
18
18
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// https://vike.dev/data
|
|
2
2
|
|
|
3
3
|
import type { PageContextServer } from "vike/types";
|
|
4
|
-
import type { MovieDetails } from "../types.js";
|
|
5
4
|
import { useConfig } from "vike-solid/useConfig";
|
|
5
|
+
import type { MovieDetails } from "../types.js";
|
|
6
6
|
|
|
7
7
|
export type Data = Awaited<ReturnType<typeof data>>;
|
|
8
8
|
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
_Es
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,11 +51,11 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@sentry/solid": "^10.
|
|
54
|
+
"@sentry/solid": "^10.5.0",
|
|
55
55
|
"@types/node": "^20.19.9",
|
|
56
|
-
"solid-js": "^1.9.
|
|
56
|
+
"solid-js": "^1.9.9",
|
|
57
57
|
"vike-solid": "^0.7.12",
|
|
58
|
-
vite: "^7.
|
|
58
|
+
vite: "^7.1.2"
|
|
59
59
|
},
|
|
60
60
|
dependencies: {
|
|
61
61
|
"@batijs/core": "workspace:*"
|
|
@@ -95,7 +95,7 @@ var require_package = __commonJS({
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
async function getPackageJson(props) {
|
|
98
|
-
const packageJson = await
|
|
98
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
99
99
|
return packageJson.addDependencies(["@sentry/solid"]);
|
|
100
100
|
}
|
|
101
101
|
export {
|
|
@@ -27,14 +27,13 @@ export default function SolidSentryErrorPage() {
|
|
|
27
27
|
<p style={{ color: "red" }}>
|
|
28
28
|
<b>Sentry Config Error:</b> {sentryClientStatus().client_not_loaded ? "Client not loaded!" : ""}{" "}
|
|
29
29
|
{!sentryClientStatus().client_not_loaded && sentryClientStatus().dsn_missing ? "DSN is missing! " : ""}
|
|
30
|
-
{!sentryClientStatus().client_not_loaded && !sentryClientStatus().enabled
|
|
31
|
-
? "Client is not enabled! "
|
|
32
|
-
: ""}{" "}
|
|
30
|
+
{!sentryClientStatus().client_not_loaded && !sentryClientStatus().enabled ? "Client is not enabled! " : ""}{" "}
|
|
33
31
|
Vite Mode: {import.meta.env.PROD ? "PROD" : "DEV"}
|
|
34
32
|
</p>
|
|
35
33
|
)}
|
|
36
34
|
<div>
|
|
37
35
|
<button
|
|
36
|
+
type="button"
|
|
38
37
|
onClick={() => {
|
|
39
38
|
throw new Error(`This is a Solid SENTRY Browser Test! [${import.meta.env.DEV ? "DEV Mode" : "PROD Mode"}]`);
|
|
40
39
|
}}
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
$js
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ import "../../../../chunk-DHZ7AZKP.js";
|
|
|
12
12
|
async function getEnv(props) {
|
|
13
13
|
if (props.meta.BATI.hasD1) return;
|
|
14
14
|
const envContent = await props.readfile?.();
|
|
15
|
-
return
|
|
15
|
+
return $js(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
18
|
getEnv as default
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
pEs
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/sqlite/dist/files/$README.md.js
|
|
12
12
|
async function getReadme(props) {
|
|
13
|
-
const content = await
|
|
13
|
+
const content = await pEs(props);
|
|
14
14
|
const todo = `
|
|
15
15
|
## *Sqlite*
|
|
16
16
|
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
_Es
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -55,7 +55,7 @@ var require_package = __commonJS({
|
|
|
55
55
|
"@types/node": "^20.19.9",
|
|
56
56
|
"better-sqlite3": "^12.2.0",
|
|
57
57
|
dotenv: "^17.2.1",
|
|
58
|
-
tsx: "^4.20.
|
|
58
|
+
tsx: "^4.20.4"
|
|
59
59
|
},
|
|
60
60
|
dependencies: {
|
|
61
61
|
"@batijs/core": "workspace:*"
|
|
@@ -111,7 +111,7 @@ var require_package = __commonJS({
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
async function getPackageJson(props) {
|
|
114
|
-
const packageJson = await
|
|
114
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
115
115
|
return packageJson.setScript("sqlite:migrate", {
|
|
116
116
|
value: "tsx ./database/sqlite/schema/all.ts",
|
|
117
117
|
precedence: 1
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
_Es
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,13 +51,13 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@tailwindcss/vite": "^4.1.
|
|
54
|
+
"@tailwindcss/vite": "^4.1.12",
|
|
55
55
|
"@types/node": "^20.19.9",
|
|
56
56
|
autoprefixer: "^10.4.21",
|
|
57
57
|
daisyui: "^5.0.50",
|
|
58
|
-
tailwindcss: "^4.1.
|
|
59
|
-
vike: "^0.4.
|
|
60
|
-
vite: "^7.
|
|
58
|
+
tailwindcss: "^4.1.12",
|
|
59
|
+
vike: "^0.4.237",
|
|
60
|
+
vite: "^7.1.2"
|
|
61
61
|
},
|
|
62
62
|
dependencies: {
|
|
63
63
|
"@batijs/core": "workspace:*"
|
|
@@ -75,7 +75,7 @@ var require_package = __commonJS({
|
|
|
75
75
|
});
|
|
76
76
|
async function getPackageJson(props) {
|
|
77
77
|
const pkgjson = await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default);
|
|
78
|
-
const packageJson = await
|
|
78
|
+
const packageJson = await _Es(props, pkgjson);
|
|
79
79
|
return packageJson.addDevDependencies(["tailwindcss", "@tailwindcss/vite"]).addDevDependencies(["daisyui"], props.meta.BATI.has("daisyui"));
|
|
80
80
|
}
|
|
81
81
|
export {
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../../chunk-
|
|
6
|
+
Vri,
|
|
7
|
+
dEs
|
|
8
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/tailwindcss/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
15
|
-
|
|
14
|
+
const mod = await dEs(props);
|
|
15
|
+
Vri(mod, {
|
|
16
16
|
from: "@tailwindcss/vite",
|
|
17
17
|
constructor: "tailwindcss"
|
|
18
18
|
});
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
_Es
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,12 +51,12 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@cloudflare/workers-types": "^4.
|
|
54
|
+
"@cloudflare/workers-types": "^4.20250816.0",
|
|
55
55
|
"@types/node": "^20.19.9",
|
|
56
56
|
"@universal-middleware/core": "^0.4.9",
|
|
57
57
|
telefunc: "^0.2.8",
|
|
58
|
-
vike: "^0.4.
|
|
59
|
-
vite: "^7.
|
|
58
|
+
vike: "^0.4.237",
|
|
59
|
+
vite: "^7.1.2"
|
|
60
60
|
},
|
|
61
61
|
dependencies: {
|
|
62
62
|
"@batijs/core": "workspace:*"
|
|
@@ -91,7 +91,7 @@ var require_package = __commonJS({
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
async function getPackageJson(props) {
|
|
94
|
-
const packageJson = await
|
|
94
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
95
95
|
return packageJson.addDependencies(["telefunc", "@universal-middleware/core"]);
|
|
96
96
|
}
|
|
97
97
|
export {
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../../chunk-
|
|
6
|
+
Vri,
|
|
7
|
+
dEs
|
|
8
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/telefunc/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
15
|
-
|
|
14
|
+
const mod = await dEs(props);
|
|
15
|
+
Vri(mod, {
|
|
16
16
|
from: "telefunc/vite",
|
|
17
17
|
constructor: "telefunc",
|
|
18
18
|
imported: "telefunc"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
|
+
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
3
|
+
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
4
|
|
|
5
5
|
//# BATI.hasDatabase
|
|
6
6
|
declare module "telefunc" {
|
|
@@ -16,5 +16,3 @@ declare module "telefunc" {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// We use Telefunc (https://telefunc.com) for data mutations. Being able to use Telefunc for fetching initial data is work-in-progress (https://vike.dev/data-fetching#tools).
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
|
|
4
4
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
5
|
+
import { todos } from "@batijs/shared-no-db/database/todoItems";
|
|
5
6
|
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
6
|
-
import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
|
|
7
7
|
import { getContext } from "telefunc";
|
|
8
8
|
|
|
9
9
|
export async function onNewTodo({ text }: { text: string }) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { telefunc } from "telefunc";
|
|
2
|
-
// TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/server. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
|
|
3
|
-
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
4
1
|
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
5
2
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
6
3
|
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
|
+
// TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/server. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
|
|
5
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
6
|
+
import { telefunc } from "telefunc";
|
|
7
7
|
|
|
8
8
|
export const telefuncHandler: Get<[], UniversalHandler> = () => async (request, context, runtime) => {
|
|
9
9
|
const httpResponse = await telefunc({
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
_Es
|
|
7
|
+
} from "../../../../chunk-4TGDHMDE.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,12 +51,12 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@cloudflare/workers-types": "^4.
|
|
54
|
+
"@cloudflare/workers-types": "^4.20250816.0",
|
|
55
55
|
"@trpc/client": "^11.4.4",
|
|
56
56
|
"@trpc/server": "^11.4.4",
|
|
57
57
|
"@types/node": "^20.19.9",
|
|
58
58
|
"@universal-middleware/core": "^0.4.9",
|
|
59
|
-
vite: "^7.
|
|
59
|
+
vite: "^7.1.2"
|
|
60
60
|
},
|
|
61
61
|
dependencies: {
|
|
62
62
|
"@batijs/core": "workspace:*"
|
|
@@ -97,7 +97,7 @@ var require_package = __commonJS({
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
async function getPackageJson(props) {
|
|
100
|
-
const packageJson = await
|
|
100
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
101
101
|
return packageJson.addDependencies(["@trpc/server", "@trpc/client"]);
|
|
102
102
|
}
|
|
103
103
|
export {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*# BATI include-if-imported #*/
|
|
2
|
-
|
|
3
|
-
// TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/server. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
|
|
4
|
-
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
|
+
|
|
5
3
|
import type { D1Database } from "@cloudflare/workers-types";
|
|
6
4
|
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
|
|
5
|
+
// TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/server. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
|
|
6
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
7
|
+
import { appRouter } from "../trpc/server";
|
|
7
8
|
|
|
8
9
|
export const trpcHandler = ((endpoint) => (request, context, runtime) => {
|
|
9
10
|
return fetchRequestHandler({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { initTRPC } from "@trpc/server";
|
|
2
|
-
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
3
|
-
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
4
1
|
import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
|
|
5
2
|
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
3
|
+
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
6
4
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
7
|
-
import
|
|
5
|
+
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
6
|
+
import type { D1Database } from "@cloudflare/workers-types";
|
|
7
|
+
import { initTRPC } from "@trpc/server";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Initialization of tRPC backend
|