@batijs/cli 0.0.462 → 0.0.464
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/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-IAY736Z6.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
|
@@ -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-IAY736Z6.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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/drizzle/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
|
## *Drizzle*
|
|
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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -103,7 +103,7 @@ var require_package = __commonJS({
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
async function getPackageJson(props) {
|
|
106
|
-
const packageJson = await
|
|
106
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
107
107
|
return packageJson.setScript("drizzle:generate", {
|
|
108
108
|
value: "drizzle-kit generate",
|
|
109
109
|
precedence: 20
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { D1Database } from "@cloudflare/workers-types";
|
|
1
2
|
import Database from "better-sqlite3";
|
|
2
3
|
import { drizzle as drizzleSqlite } from "drizzle-orm/better-sqlite3";
|
|
3
4
|
import { drizzle as drizzleD1 } from "drizzle-orm/d1";
|
|
4
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
5
5
|
|
|
6
6
|
//# !BATI.hasD1
|
|
7
7
|
export function dbSqlite() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Database from "better-sqlite3";
|
|
2
1
|
import type { D1Database } from "@cloudflare/workers-types";
|
|
2
|
+
import Database from "better-sqlite3";
|
|
3
3
|
export declare function dbSqlite(): import("drizzle-orm/better-sqlite3").BetterSQLite3Database<Record<string, never>> & {
|
|
4
4
|
$client: Database.Database;
|
|
5
5
|
};
|
|
@@ -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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,15 +51,15 @@ var require_package = __commonJS({
|
|
|
51
51
|
},
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:^",
|
|
54
|
-
"@eslint/js": "^9.
|
|
55
|
-
eslint: "^9.
|
|
54
|
+
"@eslint/js": "^9.33.0",
|
|
55
|
+
eslint: "^9.33.0",
|
|
56
56
|
"eslint-config-prettier": "^10.1.8",
|
|
57
57
|
"eslint-plugin-prettier": "^5.5.4",
|
|
58
58
|
"eslint-plugin-react": "^7.37.5",
|
|
59
59
|
"eslint-plugin-solid": "^0.14.5",
|
|
60
60
|
"eslint-plugin-vue": "^10.4.0",
|
|
61
61
|
globals: "^16.3.0",
|
|
62
|
-
"typescript-eslint": "^8.39.
|
|
62
|
+
"typescript-eslint": "^8.39.1",
|
|
63
63
|
"vue-eslint-parser": "^10.2.0"
|
|
64
64
|
},
|
|
65
65
|
dependencies: {
|
|
@@ -89,7 +89,7 @@ var require_package = __commonJS({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
async function getPackageJson(props) {
|
|
92
|
-
const packageJson = await
|
|
92
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
93
93
|
return packageJson.setScript("lint", {
|
|
94
94
|
value: "eslint .",
|
|
95
95
|
precedence: 0
|
|
@@ -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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -60,9 +60,9 @@ var require_package = __commonJS({
|
|
|
60
60
|
dotenv: "^17.2.1",
|
|
61
61
|
express: "^5.1.0",
|
|
62
62
|
telefunc: "^0.2.8",
|
|
63
|
-
tsx: "^4.20.
|
|
64
|
-
vike: "^0.4.
|
|
65
|
-
vite: "^7.
|
|
63
|
+
tsx: "^4.20.4",
|
|
64
|
+
vike: "^0.4.237",
|
|
65
|
+
vite: "^7.1.2"
|
|
66
66
|
},
|
|
67
67
|
dependencies: {
|
|
68
68
|
"@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.setScript("dev", {
|
|
96
96
|
value: "tsx ./express-entry.ts",
|
|
97
97
|
precedence: 20,
|
|
@@ -3,14 +3,14 @@ import "dotenv/config";
|
|
|
3
3
|
import { dirname } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
|
|
6
|
+
import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
|
|
6
7
|
import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
|
|
7
8
|
import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
|
|
8
9
|
import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
|
|
10
|
+
import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
|
|
9
11
|
import { tsRestHandler } from "@batijs/ts-rest/server/ts-rest-handler";
|
|
10
12
|
import { createHandler, createMiddleware } from "@universal-middleware/express";
|
|
11
|
-
import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
|
|
12
13
|
import express from "express";
|
|
13
|
-
import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
|
|
14
14
|
import { createDevMiddleware } from "vike";
|
|
15
15
|
|
|
16
16
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -60,11 +60,11 @@ var require_package = __commonJS({
|
|
|
60
60
|
"@universal-middleware/fastify": "^0.5.20",
|
|
61
61
|
"cross-env": "^10.0.0",
|
|
62
62
|
dotenv: "^17.2.1",
|
|
63
|
-
fastify: "^5.
|
|
63
|
+
fastify: "^5.5.0",
|
|
64
64
|
telefunc: "^0.2.8",
|
|
65
|
-
tsx: "^4.20.
|
|
66
|
-
vike: "^0.4.
|
|
67
|
-
vite: "^7.
|
|
65
|
+
tsx: "^4.20.4",
|
|
66
|
+
vike: "^0.4.237",
|
|
67
|
+
vite: "^7.1.2"
|
|
68
68
|
},
|
|
69
69
|
dependencies: {
|
|
70
70
|
"@batijs/core": "workspace:*"
|
|
@@ -93,7 +93,7 @@ var require_package = __commonJS({
|
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
async function getPackageJson(props) {
|
|
96
|
-
const packageJson = await
|
|
96
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
97
97
|
return packageJson.setScript("dev", {
|
|
98
98
|
value: "tsx ./fastify-entry.ts",
|
|
99
99
|
precedence: 20,
|
|
@@ -3,14 +3,14 @@ import "dotenv/config";
|
|
|
3
3
|
import { dirname } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
|
|
6
|
+
import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
|
|
6
7
|
import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
|
|
7
8
|
import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
|
|
8
9
|
import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
|
|
10
|
+
import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
|
|
9
11
|
import { tsRestHandler } from "@batijs/ts-rest/server/ts-rest-handler";
|
|
10
|
-
import Fastify from "fastify";
|
|
11
12
|
import { createHandler, createMiddleware } from "@universal-middleware/fastify";
|
|
12
|
-
import
|
|
13
|
-
import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
|
|
13
|
+
import Fastify from "fastify";
|
|
14
14
|
import { createDevMiddleware } from "vike";
|
|
15
15
|
|
|
16
16
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -25,7 +25,7 @@ async function startServer() {
|
|
|
25
25
|
// Avoid pre-parsing body, otherwise it will cause issue with universal handlers
|
|
26
26
|
// This will probably change in the future though, you can follow https://github.com/magne4000/universal-middleware for updates
|
|
27
27
|
app.removeAllContentTypeParsers();
|
|
28
|
-
app.addContentTypeParser("*",
|
|
28
|
+
app.addContentTypeParser("*", (_request, _payload, done) => {
|
|
29
29
|
done(null, "");
|
|
30
30
|
});
|
|
31
31
|
|
|
@@ -3,15 +3,15 @@ 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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/google-analytics/dist/files/$.env.js
|
|
12
12
|
async function getEnv(props) {
|
|
13
13
|
const envContent = await props.readfile?.();
|
|
14
|
-
return
|
|
14
|
+
return $js(
|
|
15
15
|
envContent,
|
|
16
16
|
"PUBLIC_ENV__GOOGLE_ANALYTICS",
|
|
17
17
|
"G-XXXXXXXXXX",
|
|
@@ -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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -63,9 +63,9 @@ var require_package = __commonJS({
|
|
|
63
63
|
h3: "~1.15.4",
|
|
64
64
|
"serve-static": "^2.2.0",
|
|
65
65
|
telefunc: "^0.2.8",
|
|
66
|
-
tsx: "^4.20.
|
|
67
|
-
vike: "^0.4.
|
|
68
|
-
vite: "^7.
|
|
66
|
+
tsx: "^4.20.4",
|
|
67
|
+
vike: "^0.4.237",
|
|
68
|
+
vite: "^7.1.2"
|
|
69
69
|
},
|
|
70
70
|
dependencies: {
|
|
71
71
|
"@batijs/core": "workspace:*"
|
|
@@ -94,7 +94,7 @@ var require_package = __commonJS({
|
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
async function getPackageJson(props) {
|
|
97
|
-
const packageJson = await
|
|
97
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
98
98
|
return packageJson.setScript("dev", {
|
|
99
99
|
value: "tsx ./h3-entry.ts",
|
|
100
100
|
precedence: 20,
|
|
@@ -4,6 +4,7 @@ import { createServer, type IncomingMessage, type ServerResponse } from "node:ht
|
|
|
4
4
|
import { dirname } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
|
|
7
|
+
import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
|
|
7
8
|
import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
|
|
8
9
|
import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
|
|
9
10
|
import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
|
|
@@ -13,10 +14,9 @@ import installCrypto from "@hattip/polyfills/crypto";
|
|
|
13
14
|
import installGetSetCookie from "@hattip/polyfills/get-set-cookie";
|
|
14
15
|
import installWhatwgNodeFetch from "@hattip/polyfills/whatwg-node";
|
|
15
16
|
import { type NodeHTTPCreateContextFnOptions, nodeHTTPRequestHandler } from "@trpc/server/adapters/node-http";
|
|
17
|
+
import { createHandler, createMiddleware, getContext } from "@universal-middleware/h3";
|
|
16
18
|
import { createApp, createRouter, eventHandler, fromNodeMiddleware, toNodeListener } from "h3";
|
|
17
19
|
import serveStatic from "serve-static";
|
|
18
|
-
import { createHandler, createMiddleware, getContext } from "@universal-middleware/h3";
|
|
19
|
-
import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
|
|
20
20
|
import { createDevMiddleware } from "vike";
|
|
21
21
|
|
|
22
22
|
installWhatwgNodeFetch();
|
|
@@ -85,10 +85,11 @@ async function startServer() {
|
|
|
85
85
|
nodeHTTPRequestHandler({
|
|
86
86
|
req: event.node.req,
|
|
87
87
|
res: event.node.res,
|
|
88
|
+
// biome-ignore lint/style/noNonNullAssertion: param exists
|
|
88
89
|
path: event.context.params!.path,
|
|
89
90
|
router: appRouter,
|
|
90
91
|
createContext({ req, res }: NodeHTTPCreateContextFnOptions<IncomingMessage, ServerResponse>) {
|
|
91
|
-
return { ...getContext(event)
|
|
92
|
+
return { ...getContext(event), req, res } as BATI.Any;
|
|
92
93
|
},
|
|
93
94
|
}),
|
|
94
95
|
),
|
|
@@ -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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -52,8 +52,8 @@ var require_package = __commonJS({
|
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@auth/core": "^0.40.0",
|
|
54
54
|
"@batijs/compile": "workspace:*",
|
|
55
|
-
"@cloudflare/workers-types": "^4.
|
|
56
|
-
"@hono/node-server": "^1.
|
|
55
|
+
"@cloudflare/workers-types": "^4.20250816.0",
|
|
56
|
+
"@hono/node-server": "^1.19.0",
|
|
57
57
|
"@hono/vite-dev-server": "^0.20.1",
|
|
58
58
|
"@trpc/server": "^11.4.4",
|
|
59
59
|
"@types/aws-lambda": "^8.10.152",
|
|
@@ -61,11 +61,11 @@ var require_package = __commonJS({
|
|
|
61
61
|
"@universal-middleware/hono": "^0.4.16",
|
|
62
62
|
"cross-env": "^10.0.0",
|
|
63
63
|
dotenv: "^17.2.1",
|
|
64
|
-
hono: "^4.
|
|
64
|
+
hono: "^4.9.2",
|
|
65
65
|
telefunc: "^0.2.8",
|
|
66
|
-
tsx: "^4.20.
|
|
67
|
-
vike: "^0.4.
|
|
68
|
-
vite: "^7.
|
|
66
|
+
tsx: "^4.20.4",
|
|
67
|
+
vike: "^0.4.237",
|
|
68
|
+
vite: "^7.1.2"
|
|
69
69
|
},
|
|
70
70
|
dependencies: {
|
|
71
71
|
"@batijs/core": "workspace:*"
|
|
@@ -106,7 +106,7 @@ var require_package = __commonJS({
|
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
async function getPackageJson(props) {
|
|
109
|
-
const packageJson = await
|
|
109
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
110
110
|
return packageJson.setScript("dev", {
|
|
111
111
|
value: "vike dev",
|
|
112
112
|
precedence: 20,
|
|
@@ -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-IAY736Z6.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/hono/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: "@hono/vite-dev-server",
|
|
17
17
|
constructor: "devServer",
|
|
18
18
|
options: {
|
|
@@ -9,12 +9,12 @@ Notes:
|
|
|
9
9
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import
|
|
12
|
+
import app from "@batijs/hono/hono-entry"; // file is provided by hono
|
|
13
13
|
import { serveStatic } from "@hono/node-server/serve-static";
|
|
14
|
+
import type { APIGatewayProxyResult, Handler } from "aws-lambda";
|
|
15
|
+
import { Hono } from "hono";
|
|
16
|
+
import type { LambdaContext, LambdaEvent } from "hono/aws-lambda";
|
|
14
17
|
import { handle } from "hono/aws-lambda";
|
|
15
|
-
import type { LambdaEvent, LambdaContext } from "hono/aws-lambda";
|
|
16
|
-
import app from "@batijs/hono/hono-entry"; // file is provided by hono
|
|
17
|
-
import type { Handler, APIGatewayProxyResult } from "aws-lambda";
|
|
18
18
|
|
|
19
19
|
type Bindings = {
|
|
20
20
|
event: LambdaEvent;
|
|
@@ -30,7 +30,7 @@ lambdaApp.use(
|
|
|
30
30
|
}),
|
|
31
31
|
);
|
|
32
32
|
|
|
33
|
-
lambdaApp.route("/", app
|
|
33
|
+
lambdaApp.route("/", app as Hono);
|
|
34
34
|
const awsHandler = handle(lambdaApp);
|
|
35
35
|
|
|
36
36
|
export const handler: Handler<LambdaEvent, APIGatewayProxyResult> = awsHandler;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// BATI.has("auth0") || BATI.hasDatabase
|
|
2
2
|
import "dotenv/config";
|
|
3
3
|
import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
|
|
4
|
+
import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
|
|
4
5
|
import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
|
|
5
6
|
import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
|
|
6
7
|
import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
|
|
8
|
+
import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
|
|
7
9
|
import { tsRestHandler } from "@batijs/ts-rest/server/ts-rest-handler";
|
|
10
|
+
import { createHandler, createMiddleware } from "@universal-middleware/hono";
|
|
8
11
|
import { Hono } from "hono";
|
|
9
12
|
import { handle } from "hono/vercel";
|
|
10
|
-
import { createHandler, createMiddleware } from "@universal-middleware/hono";
|
|
11
|
-
import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
|
|
12
|
-
import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
|
|
13
13
|
|
|
14
14
|
const app = new Hono();
|
|
15
15
|
|
|
@@ -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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/mantine/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
|
## Mantine
|
|
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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,10 +51,10 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@mantine/core": "^8.2.
|
|
55
|
-
"@mantine/hooks": "^8.2.
|
|
54
|
+
"@mantine/core": "^8.2.5",
|
|
55
|
+
"@mantine/hooks": "^8.2.5",
|
|
56
56
|
"@types/node": "^20.19.9",
|
|
57
|
-
"@types/react": "^19.1.
|
|
57
|
+
"@types/react": "^19.1.10",
|
|
58
58
|
"@types/react-dom": "^19.1.7",
|
|
59
59
|
postcss: "^8.5.6",
|
|
60
60
|
"postcss-preset-mantine": "^1.18.0",
|
|
@@ -62,7 +62,7 @@ var require_package = __commonJS({
|
|
|
62
62
|
react: "^19.1.1",
|
|
63
63
|
"react-dom": "^19.1.1",
|
|
64
64
|
"vike-react": "^0.6.5",
|
|
65
|
-
vite: "^7.
|
|
65
|
+
vite: "^7.1.2",
|
|
66
66
|
"vite-plugin-compiled-react": "^1.3.1"
|
|
67
67
|
},
|
|
68
68
|
dependencies: {
|
|
@@ -110,7 +110,7 @@ var require_package = __commonJS({
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
async function getPackageJson(props) {
|
|
113
|
-
const packageJson = await
|
|
113
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
114
114
|
return packageJson.addDevDependencies(["postcss", "postcss-preset-mantine", "postcss-simple-vars"]).addDependencies(["@mantine/core", "@mantine/hooks"]);
|
|
115
115
|
}
|
|
116
116
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { usePageContext } from "vike-react/usePageContext";
|
|
2
1
|
import { NavLink } from "@mantine/core";
|
|
2
|
+
import { usePageContext } from "vike-react/usePageContext";
|
|
3
3
|
|
|
4
4
|
export function Link({ href, label }: { href: string; label: string }) {
|
|
5
5
|
const pageContext = usePageContext();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "@mantine/core/styles.css";
|
|
2
|
-
import { AppShell, Burger, Group, Image, MantineProvider } from "@mantine/core";
|
|
3
|
-
import { useDisclosure } from "@mantine/hooks";
|
|
4
|
-
import theme from "./theme.js";
|
|
5
2
|
|
|
6
3
|
import logoUrl from "@batijs/react/assets/logo.svg";
|
|
4
|
+
import { AppShell, Burger, Group, Image, MantineProvider } from "@mantine/core";
|
|
5
|
+
import { useDisclosure } from "@mantine/hooks";
|
|
7
6
|
import { Link } from "../components/Link";
|
|
7
|
+
import theme from "./theme.js";
|
|
8
8
|
|
|
9
9
|
export default function LayoutDefault({ children }: { children: React.ReactNode }) {
|
|
10
10
|
const [opened, { toggle }] = useDisclosure();
|
|
@@ -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
|
+
hEs
|
|
7
|
+
} from "../../../../chunk-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -28,7 +28,7 @@ async function getPnpmWorkspace(props) {
|
|
|
28
28
|
];
|
|
29
29
|
const intersection = intersect(dependenciesApproveBuild, deps);
|
|
30
30
|
if (intersection.length === 0) return;
|
|
31
|
-
const pnpmWorkspace = await
|
|
31
|
+
const pnpmWorkspace = await hEs(props, { fallbackEmpty: true });
|
|
32
32
|
if (!pnpmWorkspace.has("onlyBuiltDependencies")) {
|
|
33
33
|
pnpmWorkspace.set("onlyBuiltDependencies", []);
|
|
34
34
|
}
|
|
@@ -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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -69,7 +69,7 @@ var require_package = __commonJS({
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
async function getPackageJson(props) {
|
|
72
|
-
const packageJson = await
|
|
72
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
73
73
|
return packageJson.addDevDependencies(["prettier"]);
|
|
74
74
|
}
|
|
75
75
|
export {
|
|
@@ -3,15 +3,15 @@ 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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/prisma/dist/files/$.env.js
|
|
12
12
|
async function getEnv(props) {
|
|
13
13
|
const envContent = await props.readfile?.();
|
|
14
|
-
return
|
|
14
|
+
return $js(
|
|
15
15
|
envContent,
|
|
16
16
|
"DATABASE_URL",
|
|
17
17
|
"postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public",
|