@batijs/cli 0.0.461 → 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/client.d.ts +2 -2
- 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-FMU63FHF.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
- package/dist/boilerplates/@batijs/prettier/files/.prettierrc +0 -3
|
@@ -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/prisma/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
|
## *Prisma*
|
|
16
16
|
### Setup
|
|
@@ -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
|
-
"@prisma/client": "^6.
|
|
54
|
+
"@prisma/client": "^6.14.0",
|
|
55
55
|
"@types/node": "^20.19.9",
|
|
56
56
|
colorette: "^2.0.20",
|
|
57
|
-
prisma: "^6.
|
|
57
|
+
prisma: "^6.14.0"
|
|
58
58
|
},
|
|
59
59
|
dependencies: {
|
|
60
60
|
"@batijs/core": "workspace:*"
|
|
@@ -71,7 +71,7 @@ var require_package = __commonJS({
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
async function getPackageJson(props) {
|
|
74
|
-
const packageJson = await
|
|
74
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
75
75
|
return packageJson.setScript("prisma:studio", {
|
|
76
76
|
value: "prisma studio",
|
|
77
77
|
precedence: 1
|
|
@@ -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/react/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
|
## React
|
|
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
|
|
|
@@ -50,22 +50,22 @@ var require_package = __commonJS({
|
|
|
50
50
|
author: "",
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
|
-
"@babel/core": "^7.28.
|
|
53
|
+
"@babel/core": "^7.28.3",
|
|
54
54
|
"@babel/plugin-syntax-flow": "^7.27.1",
|
|
55
55
|
"@babel/plugin-transform-react-jsx": "^7.27.1",
|
|
56
56
|
"@batijs/compile": "workspace:*",
|
|
57
|
-
"@mantine/core": "^8.2.
|
|
57
|
+
"@mantine/core": "^8.2.5",
|
|
58
58
|
"@types/node": "^20.19.9",
|
|
59
|
-
"@types/react": "^19.1.
|
|
59
|
+
"@types/react": "^19.1.10",
|
|
60
60
|
"@types/react-dom": "^19.1.7",
|
|
61
61
|
"@vitejs/plugin-react": "^4.7.0",
|
|
62
62
|
react: "^19.1.1",
|
|
63
63
|
"react-dom": "^19.1.1",
|
|
64
|
-
tailwindcss: "^4.1.
|
|
64
|
+
tailwindcss: "^4.1.12",
|
|
65
65
|
typescript: "^5.9.2",
|
|
66
|
-
vike: "^0.4.
|
|
66
|
+
vike: "^0.4.237",
|
|
67
67
|
"vike-react": "^0.6.5",
|
|
68
|
-
vite: "^7.
|
|
68
|
+
vite: "^7.1.2",
|
|
69
69
|
"vite-plugin-compiled-react": "^1.3.1"
|
|
70
70
|
},
|
|
71
71
|
dependencies: {
|
|
@@ -185,7 +185,7 @@ var require_package = __commonJS({
|
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
async function getPackageJson(props) {
|
|
188
|
-
const packageJson = await
|
|
188
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
189
189
|
return packageJson.addDevDependencies(["vite", "@types/react", "@types/react-dom"]).addDependencies(["@vitejs/plugin-react", "react", "react-dom", "vike", "vike-react"]);
|
|
190
190
|
}
|
|
191
191
|
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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/react/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 = "react";
|
|
16
16
|
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vike-react"];
|
|
@@ -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/react/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: "@vitejs/plugin-react",
|
|
17
17
|
constructor: "react"
|
|
18
18
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// https://vike.dev/Head
|
|
2
2
|
|
|
3
|
-
import logoUrl from "../assets/logo.svg";
|
|
4
3
|
//# BATI.has("mantine")
|
|
5
4
|
import { ColorSchemeScript } from "@mantine/core";
|
|
5
|
+
import logoUrl from "../assets/logo.svg";
|
|
6
6
|
|
|
7
7
|
export default function HeadDefault() {
|
|
8
8
|
if (BATI.has("plausible.io")) {
|
|
@@ -25,6 +25,7 @@ export default function HeadDefault() {
|
|
|
25
25
|
src={`https://www.googletagmanager.com/gtag/js?id=${import.meta.env.PUBLIC_ENV__GOOGLE_ANALYTICS}`}
|
|
26
26
|
></script>
|
|
27
27
|
<script
|
|
28
|
+
// biome-ignore lint/security/noDangerouslySetInnerHtml: GTM
|
|
28
29
|
dangerouslySetInnerHTML={{
|
|
29
30
|
__html: `window.dataLayer = window.dataLayer || [];
|
|
30
31
|
function gtag(){dataLayer.push(arguments);}
|
|
@@ -36,11 +37,15 @@ export default function HeadDefault() {
|
|
|
36
37
|
</>
|
|
37
38
|
);
|
|
38
39
|
} else {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
if (BATI.has("mantine")) {
|
|
41
|
+
return (
|
|
42
|
+
<>
|
|
43
|
+
<link rel="icon" href={logoUrl} />
|
|
44
|
+
{BATI.has("mantine") ? <ColorSchemeScript /> : null}
|
|
45
|
+
</>
|
|
46
|
+
);
|
|
47
|
+
} else {
|
|
48
|
+
return <link rel="icon" href={logoUrl} />;
|
|
49
|
+
}
|
|
45
50
|
}
|
|
46
51
|
}
|
|
@@ -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-react/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-IAY736Z6.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
|
-
"@sentry/react": "^10.
|
|
54
|
+
"@sentry/react": "^10.5.0",
|
|
55
55
|
"@types/node": "^20.19.9",
|
|
56
|
-
"@types/react": "^19.1.
|
|
56
|
+
"@types/react": "^19.1.10",
|
|
57
57
|
"@types/react-dom": "^19.1.7",
|
|
58
58
|
react: "^19.1.1",
|
|
59
59
|
"react-dom": "^19.1.1",
|
|
60
|
-
vite: "^7.
|
|
60
|
+
vite: "^7.1.2"
|
|
61
61
|
},
|
|
62
62
|
dependencies: {
|
|
63
63
|
"@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(["@sentry/react"]);
|
|
102
102
|
}
|
|
103
103
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
1
|
import * as Sentry from "@sentry/react";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
3
|
|
|
4
4
|
export default function ReactSentryErrorPage() {
|
|
5
5
|
const [sentryClientStatus, setSentryClientStatus] = useState({
|
|
@@ -12,7 +12,7 @@ export default function ReactSentryErrorPage() {
|
|
|
12
12
|
setSentryClientStatus({
|
|
13
13
|
client_not_loaded: !options,
|
|
14
14
|
dsn_missing: (options?.dsn?.length ?? 0) < 2,
|
|
15
|
-
enabled:
|
|
15
|
+
enabled: options?.enabled ?? true,
|
|
16
16
|
});
|
|
17
17
|
console.log("Sentry DSN: ", options?.dsn);
|
|
18
18
|
}, []);
|
|
@@ -31,6 +31,7 @@ export default function ReactSentryErrorPage() {
|
|
|
31
31
|
)}
|
|
32
32
|
<div>
|
|
33
33
|
<button
|
|
34
|
+
type="button"
|
|
34
35
|
onClick={() => {
|
|
35
36
|
throw new Error(`This is a React SENTRY Browser Test! [${import.meta.env.DEV ? "DEV Mode" : "PROD Mode"}]`);
|
|
36
37
|
}}
|
|
@@ -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,13 +12,13 @@ import "../../../../chunk-DHZ7AZKP.js";
|
|
|
12
12
|
async function getServerlessEnv(props) {
|
|
13
13
|
const sentryDNS = process.env.TEST_SENTRY_DSN;
|
|
14
14
|
let envContent = await props.readfile?.();
|
|
15
|
-
envContent =
|
|
15
|
+
envContent = $js(
|
|
16
16
|
envContent,
|
|
17
17
|
"SENTRY_DSN",
|
|
18
18
|
sentryDNS ?? "",
|
|
19
19
|
"Sentry DNS. Used for Error Reporting on the Server"
|
|
20
20
|
);
|
|
21
|
-
envContent =
|
|
21
|
+
envContent = $js(
|
|
22
22
|
envContent,
|
|
23
23
|
"PUBLIC_ENV__SENTRY_DSN",
|
|
24
24
|
"",
|
|
@@ -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/sentry/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
|
## Sentry Browser / Error Tracking & Performance Monitoring
|
|
@@ -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,9 +51,9 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@sentry/vite-plugin": "^4.
|
|
54
|
+
"@sentry/vite-plugin": "^4.1.1",
|
|
55
55
|
"@types/node": "^20.19.9",
|
|
56
|
-
vite: "^7.
|
|
56
|
+
vite: "^7.1.2"
|
|
57
57
|
},
|
|
58
58
|
dependencies: {
|
|
59
59
|
"@batijs/core": "workspace:*"
|
|
@@ -82,7 +82,7 @@ var require_package = __commonJS({
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
async function getPackageJson(props) {
|
|
85
|
-
const packageJson = await
|
|
85
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
86
86
|
return packageJson.addDevDependencies(["@sentry/vite-plugin"]);
|
|
87
87
|
}
|
|
88
88
|
export {
|
|
@@ -3,17 +3,17 @@ 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
|
-
|
|
9
|
-
} from "../../../../chunk-
|
|
6
|
+
$ir,
|
|
7
|
+
Vri,
|
|
8
|
+
dEs
|
|
9
|
+
} from "../../../../chunk-IAY736Z6.js";
|
|
10
10
|
import "../../../../chunk-IAWYWZSL.js";
|
|
11
11
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
12
12
|
|
|
13
13
|
// ../../boilerplates/sentry/dist/files/$vite.config.ts.js
|
|
14
14
|
async function getViteConfig(props) {
|
|
15
|
-
const mod = await
|
|
16
|
-
|
|
15
|
+
const mod = await dEs(props);
|
|
16
|
+
Vri(mod, {
|
|
17
17
|
from: "@sentry/vite-plugin",
|
|
18
18
|
constructor: "sentryVitePlugin",
|
|
19
19
|
imported: "sentryVitePlugin",
|
|
@@ -21,7 +21,7 @@ async function getViteConfig(props) {
|
|
|
21
21
|
sourcemaps: { disable: false }
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
$ir(mod.exports.default.$args[0], { build: { sourcemap: true } });
|
|
25
25
|
return mod.generate().code;
|
|
26
26
|
}
|
|
27
27
|
export {
|
|
@@ -3,11 +3,11 @@ 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
|
-
|
|
9
|
-
|
|
10
|
-
} from "../../../../../chunk-
|
|
6
|
+
Vq,
|
|
7
|
+
dEs,
|
|
8
|
+
gNe,
|
|
9
|
+
pne
|
|
10
|
+
} from "../../../../../chunk-IAY736Z6.js";
|
|
11
11
|
import "../../../../../chunk-IAWYWZSL.js";
|
|
12
12
|
import "../../../../../chunk-DHZ7AZKP.js";
|
|
13
13
|
|
|
@@ -15,17 +15,17 @@ import "../../../../../chunk-DHZ7AZKP.js";
|
|
|
15
15
|
async function getViteConfig(props) {
|
|
16
16
|
let mod;
|
|
17
17
|
try {
|
|
18
|
-
mod = await
|
|
18
|
+
mod = await dEs(props);
|
|
19
19
|
} catch {
|
|
20
|
-
mod =
|
|
20
|
+
mod = gNe("");
|
|
21
21
|
}
|
|
22
22
|
if (!props.meta.BATI.has("vue")) {
|
|
23
23
|
mod.imports.$prepend({
|
|
24
24
|
from: "../sentry.browser.config",
|
|
25
25
|
imported: "sentryBrowserConfig"
|
|
26
26
|
});
|
|
27
|
-
const e =
|
|
28
|
-
const c =
|
|
27
|
+
const e = pne.functionCall("sentryBrowserConfig");
|
|
28
|
+
const c = Vq(e).code;
|
|
29
29
|
mod.$ast.body.splice(mod.$ast.body.length - 1, 0, c);
|
|
30
30
|
}
|
|
31
31
|
return mod.generate().code;
|
|
@@ -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/shadcn-ui/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
|
## shadcn/ui
|
|
@@ -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
|
|
|
@@ -56,10 +56,10 @@ var require_package = __commonJS({
|
|
|
56
56
|
autoprefixer: "^10.4.21",
|
|
57
57
|
"class-variance-authority": "^0.7.1",
|
|
58
58
|
clsx: "^2.1.1",
|
|
59
|
-
"lucide-react": "^0.
|
|
59
|
+
"lucide-react": "^0.539.0",
|
|
60
60
|
"tailwind-merge": "^3.3.1",
|
|
61
|
-
tailwindcss: "^4.1.
|
|
62
|
-
"tw-animate-css": "^1.3.
|
|
61
|
+
tailwindcss: "^4.1.12",
|
|
62
|
+
"tw-animate-css": "^1.3.7"
|
|
63
63
|
},
|
|
64
64
|
dependencies: {
|
|
65
65
|
"@batijs/core": "workspace:*"
|
|
@@ -88,7 +88,7 @@ var require_package = __commonJS({
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
async function getPackageJson(props) {
|
|
91
|
-
const packageJson = await
|
|
91
|
+
const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
92
92
|
return packageJson.setScript("shadcn", {
|
|
93
93
|
value: "npx shadcn@latest",
|
|
94
94
|
precedence: 1,
|
|
@@ -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-IAY736Z6.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/shadcn-ui/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.paths = {
|
|
15
15
|
...tsConfig.compilerOptions?.paths ?? {},
|
|
16
16
|
"@/*": ["./*"]
|
|
@@ -3,22 +3,22 @@ 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
|
+
dEs,
|
|
7
|
+
zir
|
|
8
|
+
} from "../../../../chunk-IAY736Z6.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/shadcn-ui/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
14
|
+
const mod = await dEs(props);
|
|
15
15
|
const replacement = `new URL("./", import.meta.url).pathname`;
|
|
16
16
|
addResolveAlias(mod, "@", replacement);
|
|
17
17
|
return mod.generate().code.replace(`"{{PLACEHOLDER_ALIAS}}"`, replacement);
|
|
18
18
|
}
|
|
19
19
|
function addResolveAlias(mod, find, replacement) {
|
|
20
20
|
const alias = mod.exports.default.$args[0]?.resolve?.alias ?? {};
|
|
21
|
-
const warnMsg = `${
|
|
21
|
+
const warnMsg = `${zir("WARN")}: new resolve.alias: \`"${find}":${replacement}\` replaced existing in vite.config.ts.`;
|
|
22
22
|
if (alias?.length === void 0) {
|
|
23
23
|
if (alias[find]) {
|
|
24
24
|
console.warn(warnMsg);
|
|
@@ -3,23 +3,23 @@ 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
|
-
|
|
9
|
-
|
|
10
|
-
} from "../../../../chunk-
|
|
6
|
+
Wjs,
|
|
7
|
+
Yjs,
|
|
8
|
+
pEs,
|
|
9
|
+
uSs
|
|
10
|
+
} from "../../../../chunk-IAY736Z6.js";
|
|
11
11
|
import "../../../../chunk-IAWYWZSL.js";
|
|
12
12
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
13
13
|
|
|
14
14
|
// ../../boilerplates/shared/dist/files/$README.md.js
|
|
15
15
|
async function getReadme(props) {
|
|
16
|
-
const content = await
|
|
16
|
+
const content = await pEs(props);
|
|
17
17
|
const flags = Array.from(props.meta.BATI).filter((f) => f !== "force").map((f) => `--${f}`).join(" ");
|
|
18
|
-
const v =
|
|
19
|
-
const intro = `Generated with [vike.dev/new](https://vike.dev/new) ${`(${
|
|
18
|
+
const v = Wjs();
|
|
19
|
+
const intro = `Generated with [vike.dev/new](https://vike.dev/new) ${`(${uSs.link(`https://www.npmjs.com/package/create-vike/v/${v.version}`, `version ${v.semver.at(-1)}`)})`} using this command:
|
|
20
20
|
|
|
21
21
|
\`\`\`sh
|
|
22
|
-
${
|
|
22
|
+
${Yjs()} ${flags}
|
|
23
23
|
\`\`\`
|
|
24
24
|
`;
|
|
25
25
|
content.addMarkdown(intro, {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
//# BATI.has("REMOVE-COMMENT") || "remove-comments-only"
|
|
2
2
|
/// <reference types="vite-plugin-vercel/types" />
|
|
3
3
|
/// <reference types="@batijs/core/types" />
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
import vike from "vike/plugin";
|
|
6
|
+
import { defineConfig } from "vite";
|
|
6
7
|
|
|
7
8
|
export default defineConfig({
|
|
8
9
|
plugins: [vike()],
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*# BATI include-if-imported #*/
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { getDbFromRuntime } from "@batijs/d1/database/d1/helpers";
|
|
3
4
|
import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
4
5
|
import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
6
|
+
import type { D1Database } from "@cloudflare/workers-types";
|
|
7
|
+
import type { Get, UniversalMiddleware } from "@universal-middleware/core";
|
|
7
8
|
|
|
8
9
|
//# BATI.hasDatabase
|
|
9
10
|
declare global {
|