@batijs/cli 0.0.650 → 0.0.652
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/{asset-package.json-Wd5j3EKB.js → asset-package.json-0oMdGF0g.js} +1 -1
- package/dist/{asset-package.json-CFrBrqtV.js → asset-package.json-B0NdK0ho.js} +2 -2
- package/dist/{asset-package.json-9qjIK96w.js → asset-package.json-B8AVDNBU.js} +1 -1
- package/dist/{asset-package.json-By7CVlYM.js → asset-package.json-BklLTc-3.js} +2 -2
- package/dist/{asset-package.json-CAXFrLbi.js → asset-package.json-BmDnXWQm.js} +2 -2
- package/dist/{asset-package.json-PRKYrxEU.js → asset-package.json-BmtFF7PF.js} +1 -1
- package/dist/{asset-package.json-BkoVqsYe.js → asset-package.json-CDymEsIZ.js} +1 -1
- package/dist/{asset-package.json-C_aGwesI.js → asset-package.json-CEuTzbzC.js} +1 -1
- package/dist/{asset-package.json-Dcax-8-H.js → asset-package.json-CJw7XEsv.js} +4 -4
- package/dist/{asset-package.json-CBKGvpRO.js → asset-package.json-CS3bcBbB.js} +2 -2
- package/dist/{asset-package.json-BO_mG8iv.js → asset-package.json-CeCtp88g.js} +1 -1
- package/dist/{asset-package.json-BjED634i.js → asset-package.json-CuYvHpfF.js} +1 -1
- package/dist/{asset-package.json-IZ_nF8HA.js → asset-package.json-CvDm4Paq.js} +3 -3
- package/dist/{asset-package.json-2qBJNO7t.js → asset-package.json-D1flHhPS.js} +1 -1
- package/dist/{asset-package.json-F_LaGIFG.js → asset-package.json-DID-HIRh.js} +1 -1
- package/dist/{asset-package.json-Dp8_jZlq.js → asset-package.json-DP7v-FYq.js} +1 -1
- package/dist/{asset-package.json-DobDM57N.js → asset-package.json-DQGSDwIQ.js} +1 -1
- package/dist/{asset-package.json-B4-el3C8.js → asset-package.json-DSgQY-Gf.js} +3 -3
- package/dist/{asset-package.json-Bz2A-j3e.js → asset-package.json-DldqNQpY.js} +1 -1
- package/dist/{asset-package.json-D__Qv8zc.js → asset-package.json-NB4WcxPN.js} +1 -1
- package/dist/{asset-package.json-JX4l_iJo.js → asset-package.json-O4v_VJIB.js} +3 -3
- package/dist/{asset-package.json-BvDYjR1q.js → asset-package.json-QlrVXkbH.js} +3 -3
- package/dist/{asset-package.json-CEIIoP83.js → asset-package.json-UccRgYgA.js} +1 -1
- package/dist/{asset-package.json-BD7JeKOS.js → asset-package.json-oXC06ijh.js} +2 -2
- package/dist/{asset-package.json-CuqCIRq1.js → asset-package.json-uf2g2h8M.js} +1 -1
- package/dist/{asset-package2.json-BvSATRUX.js → asset-package2.json-BTOfT2Qt.js} +2 -2
- package/dist/{asset-package2.json-DPPOFRzH.js → asset-package2.json-BcQxgRCo.js} +1 -1
- package/dist/{asset-package2.json-4ZXPt1c-.js → asset-package2.json-Bn9yI1Th.js} +1 -1
- package/dist/{asset-package2.json-Cqt3zXsB.js → asset-package2.json-KyL19vnl.js} +1 -1
- package/dist/{asset-package2.json-B0r28M_8.js → asset-package2.json-tycQSmlY.js} +2 -2
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +1 -1
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/asset-package.json.mjs +4 -4
- package/dist/boilerplates/@batijs/aws/files/cdk/bin/infrastructure.ts +1 -1
- package/dist/boilerplates/@batijs/better-auth/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/better-auth/files/asset-package.json.mjs +3 -3
- package/dist/boilerplates/@batijs/better-auth/files/database/better-auth/migrate.ts +1 -3
- package/dist/boilerplates/@batijs/better-auth/files/database/drizzle/schema/auth.ts +5 -5
- package/dist/boilerplates/@batijs/better-auth/files/server/better-auth-handler.ts +2 -2
- package/dist/boilerplates/@batijs/better-auth/files/server/better-auth.ts +8 -8
- package/dist/boilerplates/@batijs/biome/files/$biome.json.js +3 -3
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/asset-package.json.mjs +2 -2
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +9 -9
- package/dist/boilerplates/@batijs/cloudflare/files/asset-package.json.mjs +3 -3
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +9 -9
- package/dist/boilerplates/@batijs/compiled/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/asset-package.json.mjs +2 -2
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/docker-compose/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/docker-compose/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/docker-compose/files/docker-compose.yml +6 -6
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/queries/todos.ts +10 -10
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/schema/todos.ts +2 -2
- package/dist/boilerplates/@batijs/drizzle/files/drizzle.config.ts +3 -3
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.mts +6 -6
- package/dist/boilerplates/@batijs/edgeone/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/elysia/files/+server.ts +1 -1
- package/dist/boilerplates/@batijs/elysia/files/server/elysia.ts +9 -9
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/eslint/files/eslint.config.ts +14 -14
- package/dist/boilerplates/@batijs/express/files/+server.ts +10 -10
- package/dist/boilerplates/@batijs/fastify/files/+server.ts +10 -10
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/+server.ts +2 -2
- package/dist/boilerplates/@batijs/hono/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/hono/files/entry_aws_lambda.ts +1 -3
- package/dist/boilerplates/@batijs/hono/files/server/hono.ts +9 -9
- package/dist/boilerplates/@batijs/kysely/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/kysely/files/$vite.config.ts.js +9 -12
- package/dist/boilerplates/@batijs/kysely/files/asset-package.json.mjs +2 -2
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/db.ts +5 -5
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrate.ts +2 -4
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrations/001_create_todos_table.ts +2 -3
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/queries/todos.ts +8 -8
- package/dist/boilerplates/@batijs/kysely/files/vite-plugin-input.ts +1 -2
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/queries/todos.d.mts +8 -8
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/asset-package.json.mjs +3 -3
- package/dist/boilerplates/@batijs/netlify/files/$vite.config.ts.js +8 -8
- package/dist/boilerplates/@batijs/oxlint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/oxlint/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/postgres/files/database/postgres/db.ts +1 -1
- package/dist/boilerplates/@batijs/postgres/files/database/postgres/schema/todos.ts +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/react/files/asset-package.json.mjs +3 -3
- package/dist/boilerplates/@batijs/react/files/assets/logo.svg +1 -0
- package/dist/boilerplates/@batijs/react/files/pages/+Head.tsx +6 -6
- package/dist/boilerplates/@batijs/react/files/pages/+Layout.tsx +14 -14
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +3 -3
- package/dist/boilerplates/@batijs/react/files/pages/index/+Page.tsx +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/index/Counter.tsx +3 -3
- package/dist/boilerplates/@batijs/react/files/pages/todo/TodoList.tsx +6 -6
- package/dist/boilerplates/@batijs/react-better-auth/files/pages/account/+Page.tsx +1 -1
- package/dist/boilerplates/@batijs/react-better-auth/files/pages/login/+Page.tsx +4 -4
- package/dist/boilerplates/@batijs/react-better-auth/files/pages/signup/+Page.tsx +4 -4
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +10 -10
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +12 -18
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -27
- package/dist/boilerplates/@batijs/shadcn-ui/files/asset-package.json.mjs +2 -2
- package/dist/boilerplates/@batijs/shared/files/vite.config.ts +1 -1
- package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +21 -21
- package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.mts +10 -10
- package/dist/boilerplates/@batijs/shared-env/files/server/env.ts +6 -4
- package/dist/boilerplates/@batijs/shared-env/files/server/load.ts +1 -1
- package/dist/boilerplates/@batijs/shared-env/types/server/env.d.mts +2 -2
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +16 -16
- package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.mts +10 -10
- package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +11 -11
- package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+config.ts +1 -4
- package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +5 -5
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/solid/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/solid/files/assets/logo.svg +1 -0
- package/dist/boilerplates/@batijs/solid/files/pages/+Head.tsx +3 -4
- package/dist/boilerplates/@batijs/solid/files/pages/+Layout.tsx +10 -10
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +3 -3
- package/dist/boilerplates/@batijs/solid/files/pages/index/Counter.tsx +2 -2
- package/dist/boilerplates/@batijs/solid/files/pages/todo/TodoList.tsx +6 -6
- package/dist/boilerplates/@batijs/solid-better-auth/files/pages/account/+Page.tsx +1 -1
- package/dist/boilerplates/@batijs/solid-better-auth/files/pages/login/+Page.tsx +4 -4
- package/dist/boilerplates/@batijs/solid-better-auth/files/pages/signup/+Page.tsx +4 -4
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/database/sqlite/db.ts +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/database/sqlite/schema/todos.ts +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/tailwindcss/files/asset-package.json.mjs +2 -2
- package/dist/boilerplates/@batijs/tailwindcss/files/pages/tailwind.css +2 -2
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +8 -8
- package/dist/boilerplates/@batijs/telefunc/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +12 -12
- package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +12 -12
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +4 -4
- package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +15 -15
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +15 -15
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +8 -8
- package/dist/boilerplates/@batijs/vercel/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/vue/files/asset-package.json.mjs +2 -2
- package/dist/boilerplates/@batijs/vue/files/assets/logo.svg +1 -0
- package/dist/boilerplates/@batijs/vue/files/components/Content.vue +2 -2
- package/dist/boilerplates/@batijs/vue/files/components/{Counter.vue → CounterButton.vue} +3 -3
- package/dist/boilerplates/@batijs/vue/files/components/Logo.vue +2 -2
- package/dist/boilerplates/@batijs/vue/files/components/Sidebar.vue +2 -2
- package/dist/boilerplates/@batijs/vue/files/pages/+Head.vue +2 -3
- package/dist/boilerplates/@batijs/vue/files/pages/+Layout.vue +7 -7
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +3 -3
- package/dist/boilerplates/@batijs/vue/files/pages/+onCreateApp.ts +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/index/+Page.vue +2 -2
- package/dist/boilerplates/@batijs/vue/files/pages/todo/TodoList.vue +8 -8
- package/dist/boilerplates/@batijs/vue/types/node_modules/.bun/{vike-vue@0.9.11+7230c3f931f788a8 → vike-vue@0.9.11+b486b24823877407}/node_modules/vike-vue/dist/types/VikeHooks.d.mts +1 -1
- package/dist/boilerplates/@batijs/vue/types/pages/+onCreateApp.d.mts +1 -1
- package/dist/boilerplates/@batijs/vue-better-auth/files/pages/account/+Page.vue +1 -1
- package/dist/boilerplates/@batijs/vue-better-auth/files/pages/login/+Page.vue +3 -3
- package/dist/boilerplates/@batijs/vue-better-auth/files/pages/signup/+Page.vue +2 -2
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/asset-package.json.mjs +2 -2
- package/dist/index.js +40 -43
- package/package.json +7 -7
- /package/dist/boilerplates/@batijs/vue/files/components/{Link.vue → NavLink.vue} +0 -0
- /package/dist/boilerplates/@batijs/vue/types/node_modules/.bun/{vike-vue@0.9.11+7230c3f931f788a8 → vike-vue@0.9.11+b486b24823877407}/node_modules/vike-vue/dist/types/public.d.mts +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/hono/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-DP7v-FYq.js").then((x) => x.default))).addDevDependencies(["@types/node", "vite"]).addDevDependencies(["@types/aws-lambda"], props.meta.BATI.has("aws")).addDependencies([
|
|
7
7
|
"@vikejs/hono",
|
|
8
8
|
"hono",
|
|
9
9
|
"vike"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (BATI.has("auth0") || BATI.hasDatabase) &&
|
|
1
|
+
// ($$.BATI.has("auth0") || $$.BATI.hasDatabase) && !$$.BATI.has("cloudflare")
|
|
2
2
|
import "@batijs/shared-env/server/load";
|
|
3
3
|
import type { Server } from "vike/types";
|
|
4
4
|
import { app } from "./server/hono";
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
fetch: app.fetch,
|
|
11
11
|
prod: {
|
|
12
12
|
port,
|
|
13
|
-
|
|
13
|
+
// $$.BATI.has("aws")
|
|
14
14
|
// We need to override static root config when deploying to AWS
|
|
15
15
|
static: `${process.cwd()}/dist/client`,
|
|
16
16
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// $$.keepFileIf($$.BATI.has("aws"))
|
|
2
2
|
/*
|
|
3
3
|
entry_aws_lambda.ts
|
|
4
4
|
|
|
@@ -8,7 +8,6 @@ Notes:
|
|
|
8
8
|
* The file name must not have any special characters or dots except for the extension. https://docs.aws.amazon.com/lambda/latest/api/API_CreateFunction.html#API_CreateFunction_RequestSyntax
|
|
9
9
|
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
11
|
import type { Handler } from "aws-lambda";
|
|
13
12
|
import { Hono } from "hono";
|
|
14
13
|
import type { LambdaContext, LambdaEvent } from "hono/aws-lambda";
|
|
@@ -25,4 +24,3 @@ const lambdaApp = new Hono<{ Bindings: Bindings }>();
|
|
|
25
24
|
|
|
26
25
|
lambdaApp.route("/", app as Hono);
|
|
27
26
|
export const handler: Handler = handle(lambdaApp);
|
|
28
|
-
/*{ /if }*/
|
|
@@ -12,31 +12,31 @@ function getApp() {
|
|
|
12
12
|
const app = new Hono();
|
|
13
13
|
|
|
14
14
|
vike(app, [
|
|
15
|
-
|
|
15
|
+
// $$.BATI.hasDbDemo
|
|
16
16
|
// Make database available in Context as `context.db`
|
|
17
17
|
dbMiddleware,
|
|
18
|
-
|
|
18
|
+
// $$.BATI.has("authjs") || $$.BATI.has("auth0")
|
|
19
19
|
// Append Auth.js session to context
|
|
20
20
|
authjsSessionMiddleware,
|
|
21
|
-
|
|
21
|
+
// $$.BATI.has("authjs") || $$.BATI.has("auth0")
|
|
22
22
|
// Auth.js route. See https://authjs.dev/getting-started/installation
|
|
23
23
|
authjsHandler,
|
|
24
|
-
|
|
24
|
+
// $$.BATI.has("better-auth")
|
|
25
25
|
// Append Better Auth user to context
|
|
26
26
|
betterAuthSessionMiddleware,
|
|
27
|
-
|
|
27
|
+
// $$.BATI.has("better-auth")
|
|
28
28
|
// Better Auth route. See https://better-auth.com/docs/installation
|
|
29
29
|
betterAuthHandler,
|
|
30
|
-
|
|
30
|
+
// $$.BATI.has("trpc")
|
|
31
31
|
// tRPC route. See https://trpc.io/docs/server/adapters
|
|
32
32
|
trpcHandler("/api/trpc"),
|
|
33
|
-
|
|
33
|
+
// $$.BATI.has("telefunc")
|
|
34
34
|
// Telefunc route. See https://telefunc.com
|
|
35
35
|
telefuncHandler,
|
|
36
|
-
|
|
36
|
+
// $$.BATI.has("ts-rest")
|
|
37
37
|
// ts-rest route. See https://ts-rest.com
|
|
38
38
|
tsRestHandler,
|
|
39
|
-
|
|
39
|
+
// !$$.BATI.has("telefunc") && !$$.BATI.has("trpc") && !$$.BATI.has("ts-rest")
|
|
40
40
|
createTodoHandler,
|
|
41
41
|
]);
|
|
42
42
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson, packageManager } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/kysely/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
const packageJson = await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
const packageJson = await loadPackageJson(props, await import("../../../../asset-package.json-BmDnXWQm.js").then((x) => x.default));
|
|
7
7
|
if (props.meta.BATI.hasD1) return packageJson.addDependencies(["kysely", "kysely-d1"]);
|
|
8
8
|
const hasPostgres = props.meta.BATI.has("postgres");
|
|
9
9
|
const bunDirect = packageManager().name === "bun" && hasPostgres;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { addVitePlugin,
|
|
3
|
+
import { addVitePlugin, transformConfig } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/kysely/dist/files/$vite.config.ts.mjs
|
|
5
|
-
|
|
5
|
+
function getViteConfig(props) {
|
|
6
6
|
if (props.meta.BATI.hasD1) return;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
entry: "database/kysely/migrate.ts"
|
|
15
|
-
}
|
|
7
|
+
return transformConfig(props, (root) => {
|
|
8
|
+
addVitePlugin(root, {
|
|
9
|
+
from: "./vite-plugin-input.js",
|
|
10
|
+
constructor: "inputPlugin",
|
|
11
|
+
named: true,
|
|
12
|
+
options: `{ name: "migrate", entry: "database/kysely/migrate.ts" }`
|
|
13
|
+
});
|
|
16
14
|
});
|
|
17
|
-
return mod.generate().code;
|
|
18
15
|
}
|
|
19
16
|
//#endregion
|
|
20
17
|
export { getViteConfig as default };
|
|
@@ -16,10 +16,10 @@ var package_default = {
|
|
|
16
16
|
"@batijs/compile": "workspace:*",
|
|
17
17
|
"@batijs/core": "workspace:*",
|
|
18
18
|
"@batijs/shared-env": "workspace:*",
|
|
19
|
-
"@cloudflare/workers-types": "^4.
|
|
19
|
+
"@cloudflare/workers-types": "^4.20260615.1",
|
|
20
20
|
"@types/better-sqlite3": "^7.6.13",
|
|
21
21
|
"@types/node": "^20.19.37",
|
|
22
|
-
"better-sqlite3": "^12.10.
|
|
22
|
+
"better-sqlite3": "^12.10.1",
|
|
23
23
|
"kysely": "^0.29.2",
|
|
24
24
|
"kysely-d1": "^0.4.0",
|
|
25
25
|
"kysely-postgres-js": "^3.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/* $$.keepFileIfImported */
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// !$$.BATI.hasD1
|
|
4
4
|
import "@batijs/shared-env/server/load";
|
|
5
5
|
import SQLite from "better-sqlite3";
|
|
6
6
|
import { Kysely, SqliteDialect } from "kysely";
|
|
@@ -9,7 +9,7 @@ import { PostgresJSDialect } from "kysely-postgres-js";
|
|
|
9
9
|
import postgres from "postgres";
|
|
10
10
|
import type { Database } from "./types";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// $$.BATI.has("sqlite") && !$$.BATI.hasD1
|
|
13
13
|
export function dbKysely() {
|
|
14
14
|
const dialect = new SqliteDialect({
|
|
15
15
|
database: new SQLite(process.env.DATABASE_URL),
|
|
@@ -19,14 +19,14 @@ export function dbKysely() {
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
// $$.BATI.hasD1
|
|
23
23
|
export function dbKyselyD1(d1: D1Database) {
|
|
24
24
|
return new Kysely<Database>({
|
|
25
25
|
dialect: new D1Dialect({ database: d1 }),
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
// $$.BATI.has("postgres")
|
|
30
30
|
export function dbKyselyPostgres() {
|
|
31
31
|
if (!process.env.DATABASE_URL) {
|
|
32
32
|
throw new Error("Missing DATABASE_URL in .env file");
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// $$.keepFileIf(!$$.BATI.hasD1)
|
|
3
2
|
import * as fs from "node:fs/promises";
|
|
4
3
|
import * as path from "node:path";
|
|
5
4
|
import { dirname } from "node:path";
|
|
@@ -11,7 +10,7 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
11
10
|
const __dirname = dirname(__filename);
|
|
12
11
|
|
|
13
12
|
async function migrateToLatest() {
|
|
14
|
-
const db = BATI.has("postgres") ? dbKyselyPostgres() : dbKysely();
|
|
13
|
+
const db = $$.BATI.has("postgres") ? dbKyselyPostgres() : dbKysely();
|
|
15
14
|
const migrator = new Migrator({
|
|
16
15
|
db,
|
|
17
16
|
provider: new FileMigrationProvider({
|
|
@@ -43,4 +42,3 @@ async function migrateToLatest() {
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
await migrateToLatest();
|
|
46
|
-
/*{ /if }*/
|
package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrations/001_create_todos_table.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
// $$.keepFileIf(!$$.BATI.hasD1)
|
|
2
2
|
import type { Kysely } from "kysely";
|
|
3
3
|
import type { Database } from "../types";
|
|
4
4
|
|
|
5
5
|
export async function up(db: Kysely<Database>): Promise<void> {
|
|
6
|
-
const withId = BATI.has("postgres")
|
|
6
|
+
const withId = $$.BATI.has("postgres")
|
|
7
7
|
? db.schema.createTable("todos").addColumn("id", "serial", (col) => col.primaryKey())
|
|
8
8
|
: db.schema.createTable("todos").addColumn("id", "integer", (col) => col.primaryKey().autoIncrement());
|
|
9
9
|
await withId.addColumn("text", "text", (col) => col.notNull()).execute();
|
|
@@ -12,4 +12,3 @@ export async function up(db: Kysely<Database>): Promise<void> {
|
|
|
12
12
|
export async function down(db: Kysely<Database>): Promise<void> {
|
|
13
13
|
await db.schema.dropTable("todos").execute();
|
|
14
14
|
}
|
|
15
|
-
/*{ /if }*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { dbKysely, dbKyselyD1, dbKyselyPostgres } from "../db";
|
|
2
2
|
|
|
3
3
|
export async function insertTodo(
|
|
4
|
-
db:
|
|
5
|
-
'BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
6
|
-
"
|
|
7
|
-
"BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
4
|
+
db: $$.If<{
|
|
5
|
+
'$$.BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
6
|
+
"!$$.BATI.hasD1": ReturnType<typeof dbKysely>;
|
|
7
|
+
"$$.BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
8
8
|
}>,
|
|
9
9
|
text: string,
|
|
10
10
|
) {
|
|
@@ -12,10 +12,10 @@ export async function insertTodo(
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export async function getAllTodos(
|
|
15
|
-
db:
|
|
16
|
-
'BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
17
|
-
"
|
|
18
|
-
"BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
15
|
+
db: $$.If<{
|
|
16
|
+
'$$.BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
17
|
+
"!$$.BATI.hasD1": ReturnType<typeof dbKysely>;
|
|
18
|
+
"$$.BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
19
19
|
}>,
|
|
20
20
|
) {
|
|
21
21
|
return await db.selectFrom("todos").selectAll().execute();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { dbKysely, dbKyselyD1, dbKyselyPostgres } from "../db.mjs";
|
|
2
2
|
|
|
3
3
|
//#region files/database/kysely/queries/todos.d.ts
|
|
4
|
-
declare function insertTodo(db:
|
|
5
|
-
'BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
6
|
-
"
|
|
7
|
-
"BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
4
|
+
declare function insertTodo(db: $$.If<{
|
|
5
|
+
'$$.BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
6
|
+
"!$$.BATI.hasD1": ReturnType<typeof dbKysely>;
|
|
7
|
+
"$$.BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
8
8
|
}>, text: string): Promise<{
|
|
9
9
|
id: number;
|
|
10
10
|
text: string;
|
|
11
11
|
}>;
|
|
12
|
-
declare function getAllTodos(db:
|
|
13
|
-
'BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
14
|
-
"
|
|
15
|
-
"BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
12
|
+
declare function getAllTodos(db: $$.If<{
|
|
13
|
+
'$$.BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
14
|
+
"!$$.BATI.hasD1": ReturnType<typeof dbKysely>;
|
|
15
|
+
"$$.BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
16
16
|
}>): Promise<{
|
|
17
17
|
id: number;
|
|
18
18
|
text: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/mantine/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-QlrVXkbH.js").then((x) => x.default))).addDevDependencies([
|
|
7
7
|
"postcss",
|
|
8
8
|
"postcss-preset-mantine",
|
|
9
9
|
"postcss-simple-vars"
|
|
@@ -16,8 +16,8 @@ var package_default = {
|
|
|
16
16
|
"@batijs/compile": "workspace:*",
|
|
17
17
|
"@batijs/core": "workspace:*",
|
|
18
18
|
"@batijs/react": "workspace:*",
|
|
19
|
-
"@mantine/core": "^9.3.
|
|
20
|
-
"@mantine/hooks": "^9.3.
|
|
19
|
+
"@mantine/core": "^9.3.1",
|
|
20
|
+
"@mantine/hooks": "^9.3.1",
|
|
21
21
|
"@types/node": "^20.19.37",
|
|
22
22
|
"@types/react": "^19.2.17",
|
|
23
23
|
"@types/react-dom": "^19.2.3",
|
|
@@ -26,7 +26,7 @@ var package_default = {
|
|
|
26
26
|
"postcss-simple-vars": "^7.0.1",
|
|
27
27
|
"react": "^19.2.7",
|
|
28
28
|
"react-dom": "^19.2.7",
|
|
29
|
-
"vike-react": "^0.6.
|
|
29
|
+
"vike-react": "^0.6.24",
|
|
30
30
|
"vite": "^8.0.16",
|
|
31
31
|
"vite-plugin-compiled-react": "^1.3.1"
|
|
32
32
|
},
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { addVitePlugin,
|
|
3
|
+
import { addVitePlugin, transformConfig } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/netlify/dist/files/$vite.config.ts.mjs
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
function getViteConfig(props) {
|
|
6
|
+
return transformConfig(props, (root) => {
|
|
7
|
+
addVitePlugin(root, {
|
|
8
|
+
from: "@netlify/vite-plugin",
|
|
9
|
+
constructor: "netlify",
|
|
10
|
+
options: `{ build: { enabled: true } }`
|
|
11
|
+
});
|
|
11
12
|
});
|
|
12
|
-
return mod.generate().code;
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
15
|
export { getViteConfig as default };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/oxlint/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
const packageJson = await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
const packageJson = await loadPackageJson(props, await import("../../../../asset-package.json-DQGSDwIQ.js").then((x) => x.default));
|
|
7
7
|
const gitIgnore = props.meta.BATI_IS_CI || props.meta.BATI_SKIP_GIT ? "--ignore-path .gitignore " : "";
|
|
8
8
|
return packageJson.setScript("lint", {
|
|
9
9
|
value: `oxlint --type-aware ${gitIgnore}.`,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/prettier/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-CuYvHpfF.js").then((x) => x.default))).addDevDependencies(["prettier"]);
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { getPackageJson as default };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/react/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-CvDm4Paq.js").then((x) => x.default))).addDevDependencies([
|
|
7
7
|
"vite",
|
|
8
8
|
"@vitejs/plugin-react",
|
|
9
9
|
"@types/react",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { addVitePlugin,
|
|
3
|
+
import { addVitePlugin, transformConfig } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/react/dist/files/$vite.config.ts.mjs
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
function getViteConfig(props) {
|
|
6
|
+
return transformConfig(props, (root) => {
|
|
7
|
+
addVitePlugin(root, {
|
|
8
|
+
from: "@vitejs/plugin-react",
|
|
9
|
+
constructor: "react"
|
|
10
|
+
});
|
|
10
11
|
});
|
|
11
|
-
return mod.generate().code;
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
14
|
export { getViteConfig as default };
|
|
@@ -23,17 +23,17 @@ var package_default = {
|
|
|
23
23
|
"@batijs/telefunc": "workspace:*",
|
|
24
24
|
"@batijs/trpc": "workspace:*",
|
|
25
25
|
"@batijs/ts-rest": "workspace:*",
|
|
26
|
-
"@mantine/core": "^9.3.
|
|
26
|
+
"@mantine/core": "^9.3.1",
|
|
27
27
|
"@types/node": "^20.19.37",
|
|
28
28
|
"@types/react": "^19.2.17",
|
|
29
29
|
"@types/react-dom": "^19.2.3",
|
|
30
30
|
"@vitejs/plugin-react": "^6.0.2",
|
|
31
31
|
"react": "^19.2.7",
|
|
32
32
|
"react-dom": "^19.2.7",
|
|
33
|
-
"tailwindcss": "^4.3.
|
|
33
|
+
"tailwindcss": "^4.3.1",
|
|
34
34
|
"typescript": "^6.0.3",
|
|
35
35
|
"vike": "0.4.259",
|
|
36
|
-
"vike-react": "^0.6.
|
|
36
|
+
"vike-react": "^0.6.24",
|
|
37
37
|
"vite": "^8.0.16",
|
|
38
38
|
"vite-plugin-compiled-react": "^1.3.1"
|
|
39
39
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<svg class="hammer" width="41.217" height="41.217" version="1.1" viewBox="-50 -50 41.217 41.217" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<title>Logo</title>
|
|
2
3
|
<defs>
|
|
3
4
|
<mask id="mask111">
|
|
4
5
|
<rect x="-19.21" y="-25.7" width="46.217" height="41.217" fill="url(#linearGradient115)"/>
|
|
@@ -4,21 +4,21 @@ import { ColorSchemeScript } from "@mantine/core";
|
|
|
4
4
|
import logoUrl from "../assets/logo.svg";
|
|
5
5
|
|
|
6
6
|
export function Head() {
|
|
7
|
-
if (BATI.has("plausible.io")) {
|
|
7
|
+
if ($$.BATI.has("plausible.io")) {
|
|
8
8
|
return (
|
|
9
9
|
<>
|
|
10
10
|
<link rel="icon" href={logoUrl} />
|
|
11
|
-
{BATI.has("mantine") ? <ColorSchemeScript /> : null}
|
|
11
|
+
{$$.BATI.has("mantine") ? <ColorSchemeScript /> : null}
|
|
12
12
|
{/* See https://plausible.io/docs/plausible-script */}
|
|
13
13
|
{/* TODO: update data-domain */}
|
|
14
14
|
<script defer data-domain="yourdomain.com" src="https://plausible.io/js/script.js"></script>
|
|
15
15
|
</>
|
|
16
16
|
);
|
|
17
|
-
} else if (BATI.has("google-analytics")) {
|
|
17
|
+
} else if ($$.BATI.has("google-analytics")) {
|
|
18
18
|
return (
|
|
19
19
|
<>
|
|
20
20
|
<link rel="icon" href={logoUrl} />
|
|
21
|
-
{BATI.has("mantine") ? <ColorSchemeScript /> : null}
|
|
21
|
+
{$$.BATI.has("mantine") ? <ColorSchemeScript /> : null}
|
|
22
22
|
<script
|
|
23
23
|
async
|
|
24
24
|
src={`https://www.googletagmanager.com/gtag/js?id=${import.meta.env.PUBLIC_ENV__GOOGLE_ANALYTICS}`}
|
|
@@ -36,11 +36,11 @@ export function Head() {
|
|
|
36
36
|
</>
|
|
37
37
|
);
|
|
38
38
|
} else {
|
|
39
|
-
if (BATI.has("mantine")) {
|
|
39
|
+
if ($$.BATI.has("mantine")) {
|
|
40
40
|
return (
|
|
41
41
|
<>
|
|
42
42
|
<link rel="icon" href={logoUrl} />
|
|
43
|
-
{BATI.has("mantine") ? <ColorSchemeScript /> : null}
|
|
43
|
+
{$$.BATI.has("mantine") ? <ColorSchemeScript /> : null}
|
|
44
44
|
</>
|
|
45
45
|
);
|
|
46
46
|
} else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Layout.css";
|
|
2
|
-
|
|
2
|
+
// $$.BATI.has("tailwindcss")
|
|
3
3
|
import "./tailwind.css";
|
|
4
4
|
import { AuthNav } from "@batijs/react-better-auth/components/AuthNav";
|
|
5
5
|
import logoUrl from "../assets/logo.svg";
|
|
@@ -8,15 +8,15 @@ import { Link } from "../components/Link";
|
|
|
8
8
|
export default function Layout({ children }: { children: React.ReactNode }) {
|
|
9
9
|
return (
|
|
10
10
|
<div
|
|
11
|
-
|
|
11
|
+
// $$.BATI.has("tailwindcss")
|
|
12
12
|
className={"flex max-w-5xl m-auto"}
|
|
13
|
-
|
|
13
|
+
// $$.BATI.has("compiled-css")
|
|
14
14
|
css={{
|
|
15
15
|
display: "flex",
|
|
16
16
|
maxWidth: 1024,
|
|
17
17
|
margin: "auto",
|
|
18
18
|
}}
|
|
19
|
-
|
|
19
|
+
// !$$.BATI.has("tailwindcss") && !$$.BATI.has("compiled-css")
|
|
20
20
|
style={{
|
|
21
21
|
display: "flex",
|
|
22
22
|
maxWidth: 900,
|
|
@@ -28,7 +28,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
|
|
|
28
28
|
<Link href="/">Welcome</Link>
|
|
29
29
|
<Link href="/todo">Todo</Link>
|
|
30
30
|
<Link href="/star-wars">Data Fetching</Link>
|
|
31
|
-
{BATI.has("better-auth") ? <AuthNav /> : null}
|
|
31
|
+
{$$.BATI.has("better-auth") ? <AuthNav /> : null}
|
|
32
32
|
</Sidebar>
|
|
33
33
|
<Content>{children}</Content>
|
|
34
34
|
</div>
|
|
@@ -39,9 +39,9 @@ function Sidebar({ children }: { children: React.ReactNode }) {
|
|
|
39
39
|
return (
|
|
40
40
|
<div
|
|
41
41
|
id="sidebar"
|
|
42
|
-
|
|
42
|
+
// $$.BATI.has("tailwindcss")
|
|
43
43
|
className={"p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200"}
|
|
44
|
-
|
|
44
|
+
// $$.BATI.has("compiled-css")
|
|
45
45
|
css={{
|
|
46
46
|
padding: 20,
|
|
47
47
|
display: "flex",
|
|
@@ -50,7 +50,7 @@ function Sidebar({ children }: { children: React.ReactNode }) {
|
|
|
50
50
|
lineHeight: "1.8em",
|
|
51
51
|
borderRight: "2px solid #eee",
|
|
52
52
|
}}
|
|
53
|
-
|
|
53
|
+
// !$$.BATI.has("tailwindcss") && !$$.BATI.has("compiled-css")
|
|
54
54
|
style={{
|
|
55
55
|
padding: 20,
|
|
56
56
|
flexShrink: 0,
|
|
@@ -70,15 +70,15 @@ function Content({ children }: { children: React.ReactNode }) {
|
|
|
70
70
|
<div id="page-container">
|
|
71
71
|
<div
|
|
72
72
|
id="page-content"
|
|
73
|
-
|
|
73
|
+
// $$.BATI.has("tailwindcss")
|
|
74
74
|
className={"p-5 pb-12 min-h-screen"}
|
|
75
|
-
|
|
75
|
+
// $$.BATI.has("compiled-css")
|
|
76
76
|
css={{
|
|
77
77
|
padding: 20,
|
|
78
78
|
paddingBottom: 48,
|
|
79
79
|
minHeight: "100vh",
|
|
80
80
|
}}
|
|
81
|
-
|
|
81
|
+
// !$$.BATI.has("tailwindcss") && !$$.BATI.has("compiled-css")
|
|
82
82
|
style={{
|
|
83
83
|
padding: 20,
|
|
84
84
|
paddingBottom: 50,
|
|
@@ -94,14 +94,14 @@ function Content({ children }: { children: React.ReactNode }) {
|
|
|
94
94
|
function Logo() {
|
|
95
95
|
return (
|
|
96
96
|
<div
|
|
97
|
-
|
|
97
|
+
// $$.BATI.has("tailwindcss")
|
|
98
98
|
className={"p-5 mb-2"}
|
|
99
|
-
|
|
99
|
+
// $$.BATI.has("compiled-css")
|
|
100
100
|
css={{
|
|
101
101
|
padding: 20,
|
|
102
102
|
marginBottom: 8,
|
|
103
103
|
}}
|
|
104
|
-
|
|
104
|
+
// !$$.BATI.has("tailwindcss") && !$$.BATI.has("compiled-css")
|
|
105
105
|
style={{
|
|
106
106
|
marginTop: 20,
|
|
107
107
|
marginBottom: 10,
|
|
@@ -9,14 +9,14 @@ const config: Config = {
|
|
|
9
9
|
title: "My Vike App",
|
|
10
10
|
description: "Demo showcasing Vike",
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// $$.BATI.has("auth0") || $$.BATI.has("authjs") || $$.BATI.has("better-auth")
|
|
13
13
|
passToClient: ["user"],
|
|
14
14
|
extends: [vikeReact],
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
// $$.BATI.has("vercel")
|
|
17
17
|
prerender: true,
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
// $$.BATI.hasUD && !$$.BATI.hasServer
|
|
20
20
|
// https://vike.dev/server
|
|
21
21
|
server: true,
|
|
22
22
|
};
|