@batijs/cli 0.0.632 → 0.0.634
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/cli.js +1 -0
- package/dist/{asset-env-Jk0sS-Q2.js → asset-env-DvKtWq7P.js} +6 -3
- package/dist/{asset-package.json-_46wnXn0.js → asset-package.json-87voLq6K.js} +1 -1
- package/dist/{asset-package.json-Buap0IPy.js → asset-package.json-B5iJDDzy.js} +1 -1
- package/dist/{asset-package.json-DKULIe-Z.js → asset-package.json-BCcXIWVE.js} +1 -1
- package/dist/{asset-package.json-DwayG2zN.js → asset-package.json-BQcL6ZKp.js} +1 -1
- package/dist/{asset-package.json-CDtoELCL.js → asset-package.json-BUSZr8_T.js} +7 -1
- package/dist/{asset-package.json-Ce3xlNdW.js → asset-package.json-BWSL6HTp.js} +1 -1
- package/dist/{asset-package.json-C-4KYYPE.js → asset-package.json-BjED634i.js} +1 -1
- package/dist/{asset-package.json-DSiZMeZh.js → asset-package.json-BkoVqsYe.js} +1 -1
- package/dist/{asset-package.json-BWBP2Nt4.js → asset-package.json-C3G5RoOK.js} +7 -1
- package/dist/{asset-package.json-CZGfrRCF.js → asset-package.json-CBsEdGlU.js} +6 -1
- package/dist/{asset-package.json-B-yhAahL.js → asset-package.json-CITuyODW.js} +1 -1
- package/dist/{asset-package.json-bQWZqYy0.js → asset-package.json-CLW5VUJP.js} +1 -1
- package/dist/{asset-package.json-ByyswJWS.js → asset-package.json-CXa26JLJ.js} +6 -1
- package/dist/{asset-package.json-BI-447Lf.js → asset-package.json-CZi_LoZe.js} +1 -1
- package/dist/{asset-package.json-s_vdtPYz.js → asset-package.json-Cp3NIISN.js} +7 -1
- package/dist/{asset-package.json-W0eT5YjJ.js → asset-package.json-CpJdnsXW.js} +3 -2
- package/dist/{asset-package.json-CrS3d_nT.js → asset-package.json-D1r58j8O.js} +1 -1
- package/dist/{asset-package.json-DoD27uYD.js → asset-package.json-D35e8CSx.js} +6 -4
- package/dist/asset-package.json-D5lEjBIT.js +41 -0
- package/dist/{asset-package.json-CtehZhRD.js → asset-package.json-DBz6f4sF.js} +2 -1
- package/dist/{asset-package.json-Y6cFx6TQ.js → asset-package.json-DE57wDL_.js} +1 -1
- package/dist/{asset-package.json-DO3v_Kz2.js → asset-package.json-DF5wt8rf.js} +1 -1
- package/dist/{asset-package.json-CNxKHE48.js → asset-package.json-DFkWjswB.js} +1 -1
- package/dist/{asset-package.json-EFYfsuao.js → asset-package.json-DGCqj3n1.js} +1 -1
- package/dist/{asset-package.json-D9HnGbn-.js → asset-package.json-DMDnsP2J.js} +7 -1
- package/dist/{asset-package.json-Cx9SXQz5.js → asset-package.json-DOKdYRCj.js} +1 -1
- package/dist/{asset-package.json-BKz7RIOA.js → asset-package.json-DcJFVtbo.js} +5 -2
- package/dist/{asset-package.json-DpL_QsSj.js → asset-package.json-DqGXTjLe.js} +1 -1
- package/dist/{asset-package.json-C8HDeufh.js → asset-package.json-DuJ-aQDX.js} +1 -1
- package/dist/{asset-package.json-DoCvkWCH.js → asset-package.json-Ulc6XDpU.js} +5 -1
- package/dist/{asset-package.json-CVDwQcJT.js → asset-package.json-WOGFbHRZ.js} +6 -1
- package/dist/{asset-package.json-Ddsv5ylk.js → asset-package.json-_607AoXW.js} +1 -1
- package/dist/{asset-package.json-DnspyDBy.js → asset-package.json-iI866f-q.js} +1 -1
- package/dist/{asset-package.json-f63TVKbb.js → asset-package.json-latJAGGO.js} +5 -1
- package/dist/{asset-package.json-DoZ5D9Nf.js → asset-package.json-wG-7DxN0.js} +1 -1
- package/dist/{asset-package2.json-JaXo-ozU.js → asset-package2.json-BdcK4vtT.js} +1 -1
- package/dist/{asset-package.json-1rjGQ0pD.js → asset-package2.json-Cqt3zXsB.js} +6 -1
- package/dist/{asset-package2.json-BdZNR8Cf.js → asset-package2.json-DND0OHll.js} +1 -1
- package/dist/{asset-package2.json-CGHsBMPO.js → asset-package2.json-DvwuT6bu.js} +1 -1
- package/dist/{asset-package2.json-CBe-SDVa.js → asset-package2.json-KbYXaPND.js} +5 -1
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +0 -0
- 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/types/server/authjs-handler.d.mts +2 -3
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/aws/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +0 -0
- package/dist/boilerplates/@batijs/aws/types/vitest.config.d.mts +1 -3
- package/dist/boilerplates/@batijs/biome/files/$biome.json.js +0 -0
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/cloudflare/files/$wrangler.jsonc.js +0 -0
- package/dist/boilerplates/@batijs/cloudflare/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/compiled/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +0 -0
- package/dist/boilerplates/@batijs/d1/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/d1-kysely/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1-kysely/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/bati.config.mjs +1 -1
- 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/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/docker-compose/files/$.dockerignore.js +0 -0
- package/dist/boilerplates/@batijs/docker-compose/files/$Dockerfile.js +17 -9
- package/dist/boilerplates/@batijs/docker-compose/files/$docker-compose.yml.js +1 -1
- package/dist/boilerplates/@batijs/{dokploy → docker-compose}/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/docker-compose/files/asset-env.mjs +6 -3
- package/dist/boilerplates/@batijs/{dokploy → docker-compose}/files/asset-package.json.mjs +5 -3
- package/dist/boilerplates/@batijs/docker-compose/files/docker-compose.yml +25 -2
- package/dist/boilerplates/@batijs/dokploy/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +5 -2
- package/dist/boilerplates/@batijs/drizzle/files/asset-package.json.mjs +3 -2
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +11 -1
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/queries/todos.ts +6 -3
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/schema/todos.ts +11 -5
- package/dist/boilerplates/@batijs/drizzle/files/drizzle.config.ts +1 -1
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.mts +7 -5
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.mts +5 -50
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/todos.d.mts +45 -5
- package/dist/boilerplates/@batijs/drizzle/types/drizzle.config.d.mts +1 -2
- package/dist/boilerplates/@batijs/edgeone/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/edgeone/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/edgeone/files/asset-package.json.mjs +1 -1
- 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/types/eslint.config.d.mts +1 -3
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/+server.ts +1 -1
- package/dist/boilerplates/@batijs/express/files/asset-package.json.mjs +7 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/+server.ts +1 -1
- package/dist/boilerplates/@batijs/fastify/files/asset-package.json.mjs +7 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/+server.ts +1 -1
- package/dist/boilerplates/@batijs/h3/files/asset-package.json.mjs +7 -1
- package/dist/boilerplates/@batijs/h3/types/+server.d.mts +1 -2
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/asset-package.json.mjs +7 -1
- package/dist/boilerplates/@batijs/hono/files/server/hono.ts +1 -1
- package/dist/boilerplates/@batijs/hono/types/+server.d.mts +1 -2
- package/dist/boilerplates/@batijs/hono/types/entry_aws_lambda.d.mts +2 -2
- package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.d.mts +1 -1
- package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.mts +1 -1
- package/dist/boilerplates/@batijs/hono/types/server/hono.d.mts +1 -2
- package/dist/boilerplates/@batijs/kysely/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/kysely/files/$package.json.js +6 -8
- package/dist/boilerplates/@batijs/kysely/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/kysely/files/asset-package.json.mjs +5 -2
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/db.ts +13 -1
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrate.ts +2 -2
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrations/001_create_todos_table.ts +4 -5
- package/dist/boilerplates/@batijs/kysely/files/database/kysely/queries/todos.ts +3 -1
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/db.d.mts +2 -1
- package/dist/boilerplates/@batijs/kysely/types/database/kysely/queries/todos.d.mts +3 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/asset-package.json.mjs +2 -1
- package/dist/boilerplates/@batijs/mantine/types/components/Link.d.mts +1 -3
- package/dist/boilerplates/@batijs/mantine/types/pages/+Layout.d.mts +1 -2
- package/dist/boilerplates/@batijs/netlify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/netlify/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/netlify/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/oxlint/files/$.oxlintrc.json.js +0 -0
- 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/plausible.io/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +0 -0
- package/dist/boilerplates/@batijs/postgres/bati.config.mjs +25 -0
- package/dist/boilerplates/@batijs/postgres/files/$TODO.md.js +25 -0
- package/dist/boilerplates/@batijs/postgres/files/$package.json.js +15 -0
- package/dist/boilerplates/@batijs/postgres/files/asset-package.json.mjs +39 -0
- package/dist/boilerplates/@batijs/postgres/files/database/postgres/db.ts +15 -0
- package/dist/boilerplates/@batijs/postgres/files/database/postgres/queries/todos.ts +9 -0
- package/dist/boilerplates/@batijs/postgres/files/database/postgres/schema/all.ts +1 -0
- package/dist/boilerplates/@batijs/postgres/files/database/postgres/schema/todos.ts +16 -0
- package/dist/boilerplates/@batijs/postgres/types/database/postgres/db.d.mts +6 -0
- package/dist/boilerplates/@batijs/postgres/types/database/postgres/queries/todos.d.mts +10 -0
- package/dist/boilerplates/@batijs/postgres/types/database/postgres/schema/all.d.mts +1 -0
- package/dist/boilerplates/@batijs/postgres/types/database/postgres/schema/todos.d.mts +1 -0
- 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/prisma/bati.config.mjs +6 -12
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +4 -3
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/react/files/asset-package.json.mjs +5 -1
- package/dist/boilerplates/@batijs/react/types/components/Link.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/+Head.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/+Layout.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/_error/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/index/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/index/Counter.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/todo/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/react/types/pages/todo/TodoList.d.mts +1 -3
- 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/react-sentry/types/pages/sentry/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/sentry/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +0 -0
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/shadcn-ui/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/shared/files/$.env.js +0 -0
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +0 -0
- package/dist/boilerplates/@batijs/shared/files/$package.json.js +0 -0
- package/dist/boilerplates/@batijs/shared/types/vite.config.d.mts +1 -3
- package/dist/boilerplates/@batijs/shared-db/bati.config.mjs +26 -12
- package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +25 -15
- package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.mts +9 -5
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/asset-package.json.mjs +6 -1
- package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +13 -6
- package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.mts +15 -5
- package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +9 -5
- package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +7 -2
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/solid/files/asset-package.json.mjs +5 -1
- package/dist/boilerplates/@batijs/solid/types/components/Link.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/+Head.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/_error/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/index/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/index/Counter.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/todo/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/solid/types/pages/todo/TodoList.d.mts +1 -3
- 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/solid-sentry/types/pages/sentry/+Page.d.mts +1 -3
- package/dist/boilerplates/@batijs/sqlite/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +0 -0
- 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/types/database/sqlite/queries/todos.d.mts +1 -2
- package/dist/boilerplates/@batijs/storybook/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/storybook/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/tailwindcss/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/telefunc/files/asset-package.json.mjs +6 -1
- package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +9 -6
- package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +6 -2
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +9 -4
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/asset-package.json.mjs +6 -1
- package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +13 -6
- package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.mts +1 -3
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.mts +16 -16
- package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.mts +31 -13
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/asset-package.json.mjs +6 -1
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +13 -6
- package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/client.d.mts +4 -6
- package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/contract.d.mts +3 -5
- package/dist/boilerplates/@batijs/universal-deploy/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/universal-deploy/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/vercel/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +0 -0
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +0 -0
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +0 -0
- package/dist/boilerplates/@batijs/vue/files/asset-package.json.mjs +5 -1
- package/dist/boilerplates/@batijs/vue/types/node_modules/{.pnpm/vike-vue@0.9.11_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0_vike@0.4.259_@cloudflare+wor_b1aa379fdc40687889ee6b09fc0f5338 → .bun/vike-vue@0.9.11+39ad969b3c081d25}/node_modules/vike-vue/dist/types/VikeHooks.d.mts +2 -2
- package/dist/boilerplates/@batijs/vue/types/pages/+onCreateApp.d.mts +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/boilerplates.json +6 -0
- package/dist/index.js +55 -37
- package/package.json +14 -12
- package/LICENSE.md +0 -9
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/index.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/alb.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/amplify-resolver.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-authorizer.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/autoscaling.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cdk-custom-resource.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudformation-custom-resource.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudfront-request.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-alarm.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-events.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-logs.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codebuild-cloudwatch-state.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codecommit.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/create-auth-challenge.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-sms-sender.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/define-auth-challenge.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/inbound-federation.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-signup.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v2.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v3.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/verify-auth-challenge-response.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/eventbridge.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/guard-duty-event-notification.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/iot-authorizer.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/iot.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/kinesis-firehose-transformation.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lambda-function-url.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lex-v2.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lex.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/msk.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3-batch.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3-event-notification.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/secretsmanager.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/self-managed-kafka.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/ses.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/sns.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/sqs.d.mts +0 -0
- /package/dist/boilerplates/@batijs/hono/types/node_modules/{.pnpm → .bun}/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/transfer-family-authorizer.d.mts +0 -0
- /package/dist/boilerplates/@batijs/vue/types/node_modules/{.pnpm/vike-vue@0.9.11_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0_vike@0.4.259_@cloudflare+wor_b1aa379fdc40687889ee6b09fc0f5338 → .bun/vike-vue@0.9.11+39ad969b3c081d25}/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/edgeone/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-DqGXTjLe.js").then((x) => x.default))).addDevDependencies(["@edgeone/vite"]);
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { getPackageJson as default };
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/eslint/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-DE57wDL_.js").then((x) => x.default))).setScript("lint", {
|
|
7
7
|
value: "eslint .",
|
|
8
8
|
precedence: 0
|
|
9
9
|
}).addDevDependencies([
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as _$typescript_eslint0 from "typescript-eslint";
|
|
2
|
-
|
|
3
1
|
//#region files/eslint.config.d.ts
|
|
4
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("typescript-eslint").FlatConfig.ConfigArray;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { _default as default };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/express/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-BUSZr8_T.js").then((x) => x.default))).addDevDependencies([
|
|
7
7
|
"@types/express",
|
|
8
8
|
"@types/node",
|
|
9
9
|
"vite"
|
|
@@ -14,8 +14,14 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@auth/core": "^0.41.2",
|
|
17
|
+
"@batijs/authjs": "workspace:*",
|
|
17
18
|
"@batijs/compile": "workspace:*",
|
|
18
|
-
"@batijs/core": "workspace
|
|
19
|
+
"@batijs/core": "workspace:*",
|
|
20
|
+
"@batijs/shared-db": "workspace:*",
|
|
21
|
+
"@batijs/shared-server": "workspace:*",
|
|
22
|
+
"@batijs/telefunc": "workspace:*",
|
|
23
|
+
"@batijs/trpc": "workspace:*",
|
|
24
|
+
"@batijs/ts-rest": "workspace:*",
|
|
19
25
|
"@trpc/server": "^11.17.0",
|
|
20
26
|
"@types/express": "^5.0.6",
|
|
21
27
|
"@types/node": "^20.19.37",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/fastify/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-C3G5RoOK.js").then((x) => x.default))).addDevDependencies(["@types/node", "vite"]).addDependencies([
|
|
7
7
|
"@vikejs/fastify",
|
|
8
8
|
"fastify",
|
|
9
9
|
"fastify-raw-body",
|
|
@@ -14,8 +14,14 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@auth/core": "^0.41.2",
|
|
17
|
+
"@batijs/authjs": "workspace:*",
|
|
17
18
|
"@batijs/compile": "workspace:*",
|
|
18
|
-
"@batijs/core": "workspace
|
|
19
|
+
"@batijs/core": "workspace:*",
|
|
20
|
+
"@batijs/shared-db": "workspace:*",
|
|
21
|
+
"@batijs/shared-server": "workspace:*",
|
|
22
|
+
"@batijs/telefunc": "workspace:*",
|
|
23
|
+
"@batijs/trpc": "workspace:*",
|
|
24
|
+
"@batijs/ts-rest": "workspace:*",
|
|
19
25
|
"@trpc/server": "^11.17.0",
|
|
20
26
|
"@types/express": "^5.0.6",
|
|
21
27
|
"@types/node": "^20.19.37",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/h3/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-Cp3NIISN.js").then((x) => x.default))).addDevDependencies(["@types/node", "vite"]).addDependencies([
|
|
7
7
|
"h3",
|
|
8
8
|
"vike",
|
|
9
9
|
"@vikejs/h3",
|
|
@@ -14,8 +14,14 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@auth/core": "^0.41.2",
|
|
17
|
+
"@batijs/authjs": "workspace:*",
|
|
17
18
|
"@batijs/compile": "workspace:*",
|
|
18
|
-
"@batijs/core": "workspace
|
|
19
|
+
"@batijs/core": "workspace:*",
|
|
20
|
+
"@batijs/shared-db": "workspace:*",
|
|
21
|
+
"@batijs/shared-server": "workspace:*",
|
|
22
|
+
"@batijs/telefunc": "workspace:*",
|
|
23
|
+
"@batijs/trpc": "workspace:*",
|
|
24
|
+
"@batijs/ts-rest": "workspace:*",
|
|
19
25
|
"@trpc/server": "^11.17.0",
|
|
20
26
|
"@types/express": "^5.0.6",
|
|
21
27
|
"@types/node": "^20.19.37",
|
|
@@ -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-DMDnsP2J.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"
|
|
@@ -14,8 +14,14 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@auth/core": "^0.41.2",
|
|
17
|
+
"@batijs/authjs": "workspace:*",
|
|
17
18
|
"@batijs/compile": "workspace:*",
|
|
18
|
-
"@batijs/core": "workspace
|
|
19
|
+
"@batijs/core": "workspace:*",
|
|
20
|
+
"@batijs/shared-db": "workspace:*",
|
|
21
|
+
"@batijs/shared-server": "workspace:*",
|
|
22
|
+
"@batijs/telefunc": "workspace:*",
|
|
23
|
+
"@batijs/trpc": "workspace:*",
|
|
24
|
+
"@batijs/ts-rest": "workspace:*",
|
|
19
25
|
"@trpc/server": "^11.17.0",
|
|
20
26
|
"@types/aws-lambda": "^8.10.161",
|
|
21
27
|
"@types/node": "^20.19.37",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as _$hono from "hono";
|
|
2
1
|
//#region files/+server.d.ts
|
|
3
2
|
declare const _default: {
|
|
4
|
-
fetch: (request: Request, Env?: unknown, executionCtx?:
|
|
3
|
+
fetch: (request: Request, Env?: unknown, executionCtx?: import("hono").ExecutionContext) => Response | Promise<Response>;
|
|
5
4
|
prod: {
|
|
6
5
|
port: number;
|
|
7
6
|
static: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Handler } from "./node_modules/.
|
|
2
|
-
import { APIGatewayProxyResult } from "./node_modules/.
|
|
1
|
+
import { Handler } from "./node_modules/.bun/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.mjs";
|
|
2
|
+
import { APIGatewayProxyResult } from "./node_modules/.bun/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.mjs";
|
|
3
3
|
import { LambdaEvent } from "hono/aws-lambda";
|
|
4
4
|
|
|
5
5
|
//#region files/entry_aws_lambda.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Writable } from "node:stream";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.
|
|
3
|
+
//#region ../../node_modules/.bun/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The interface that AWS Lambda will invoke your handler with.
|
|
6
6
|
* There are more specialized types for many cases where AWS services
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.
|
|
1
|
+
//#region ../../node_modules/.bun/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
|
|
4
4
|
* @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as _$hono_types0 from "hono/types";
|
|
3
2
|
|
|
4
3
|
//#region files/server/hono.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
4
|
+
declare const app: Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
6
5
|
//#endregion
|
|
7
6
|
export { app };
|
|
File without changes
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { loadPackageJson } from "@batijs/core";
|
|
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-DcJFVtbo.js").then((x) => x.default));
|
|
7
7
|
if (props.meta.BATI.hasD1) return packageJson.addDependencies(["kysely", "kysely-d1"]);
|
|
8
|
+
const hasPostgres = props.meta.BATI.has("postgres");
|
|
9
|
+
const bunDirect = packageManager().name === "bun" && hasPostgres;
|
|
8
10
|
return packageJson.setScript("kysely:migrate", {
|
|
9
|
-
value: "tsx ./database/kysely/migrate.ts
|
|
11
|
+
value: `${bunDirect ? "bun" : "tsx"} ./database/kysely/migrate.ts`,
|
|
10
12
|
precedence: 20
|
|
11
|
-
}).addDevDependencies(["@types/better-sqlite3"]).addDevDependencies(["tsx"], ["kysely:migrate"]).addDependencies([
|
|
12
|
-
"better-sqlite3",
|
|
13
|
-
"dotenv",
|
|
14
|
-
"kysely"
|
|
15
|
-
]);
|
|
13
|
+
}).addDevDependencies(["@types/better-sqlite3"], !hasPostgres).addDevDependencies(["tsx"], ["kysely:migrate"], !bunDirect).addDependencies(["dotenv", "kysely"]).addDependencies(["better-sqlite3"], !hasPostgres).addDependencies(["postgres", "kysely-postgres-js"], hasPostgres);
|
|
16
14
|
}
|
|
17
15
|
//#endregion
|
|
18
16
|
export { getPackageJson as default };
|
|
File without changes
|
|
@@ -14,7 +14,7 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@batijs/compile": "workspace:*",
|
|
17
|
-
"@batijs/core": "workspace
|
|
17
|
+
"@batijs/core": "workspace:*",
|
|
18
18
|
"@cloudflare/workers-types": "^4.20260525.1",
|
|
19
19
|
"@types/better-sqlite3": "^7.6.13",
|
|
20
20
|
"@types/node": "^20.19.37",
|
|
@@ -22,7 +22,10 @@ var package_default = {
|
|
|
22
22
|
"dotenv": "^17.4.2",
|
|
23
23
|
"kysely": "^0.29.2",
|
|
24
24
|
"kysely-d1": "^0.4.0",
|
|
25
|
-
"
|
|
25
|
+
"kysely-postgres-js": "^2.0.0",
|
|
26
|
+
"postgres": "^3.4.7",
|
|
27
|
+
"tsx": "^4.22.3",
|
|
28
|
+
"vite": "^8.0.14"
|
|
26
29
|
},
|
|
27
30
|
files: ["dist/"],
|
|
28
31
|
exports: {
|
|
@@ -5,9 +5,11 @@ import "dotenv/config";
|
|
|
5
5
|
import SQLite from "better-sqlite3";
|
|
6
6
|
import { Kysely, SqliteDialect } from "kysely";
|
|
7
7
|
import { D1Dialect } from "kysely-d1";
|
|
8
|
+
import { PostgresJSDialect } from "kysely-postgres-js";
|
|
9
|
+
import postgres from "postgres";
|
|
8
10
|
import type { Database } from "./types";
|
|
9
11
|
|
|
10
|
-
//# !BATI.hasD1
|
|
12
|
+
//# BATI.has("sqlite") && !BATI.hasD1
|
|
11
13
|
export function dbKysely() {
|
|
12
14
|
const dialect = new SqliteDialect({
|
|
13
15
|
database: new SQLite(process.env.DATABASE_URL),
|
|
@@ -23,3 +25,13 @@ export function dbKyselyD1(d1: D1Database) {
|
|
|
23
25
|
dialect: new D1Dialect({ database: d1 }),
|
|
24
26
|
});
|
|
25
27
|
}
|
|
28
|
+
|
|
29
|
+
//# BATI.has("postgres")
|
|
30
|
+
export function dbKyselyPostgres() {
|
|
31
|
+
if (!process.env.DATABASE_URL) {
|
|
32
|
+
throw new Error("Missing DATABASE_URL in .env file");
|
|
33
|
+
}
|
|
34
|
+
return new Kysely<Database>({
|
|
35
|
+
dialect: new PostgresJSDialect({ postgres: postgres(process.env.DATABASE_URL) }),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -5,13 +5,13 @@ import * as path from "node:path";
|
|
|
5
5
|
import { dirname } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import { FileMigrationProvider, Migrator } from "kysely/migration";
|
|
8
|
-
import { dbKysely } from "./db";
|
|
8
|
+
import { dbKysely, dbKyselyPostgres } from "./db";
|
|
9
9
|
|
|
10
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
11
11
|
const __dirname = dirname(__filename);
|
|
12
12
|
|
|
13
13
|
async function migrateToLatest() {
|
|
14
|
-
const db = dbKysely();
|
|
14
|
+
const db = BATI.has("postgres") ? dbKyselyPostgres() : dbKysely();
|
|
15
15
|
const migrator = new Migrator({
|
|
16
16
|
db,
|
|
17
17
|
provider: new FileMigrationProvider({
|
package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrations/001_create_todos_table.ts
CHANGED
|
@@ -3,11 +3,10 @@ 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
|
-
|
|
7
|
-
.createTable("todos")
|
|
8
|
-
.addColumn("id", "integer", (col) => col.primaryKey().autoIncrement())
|
|
9
|
-
|
|
10
|
-
.execute();
|
|
6
|
+
const withId = BATI.has("postgres")
|
|
7
|
+
? db.schema.createTable("todos").addColumn("id", "serial", (col) => col.primaryKey())
|
|
8
|
+
: db.schema.createTable("todos").addColumn("id", "integer", (col) => col.primaryKey().autoIncrement());
|
|
9
|
+
await withId.addColumn("text", "text", (col) => col.notNull()).execute();
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export async function down(db: Kysely<Database>): Promise<void> {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { dbKysely, dbKyselyD1 } from "../db";
|
|
1
|
+
import type { dbKysely, dbKyselyD1, dbKyselyPostgres } from "../db";
|
|
2
2
|
|
|
3
3
|
export async function insertTodo(
|
|
4
4
|
db: BATI.If<{
|
|
5
|
+
'BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
5
6
|
"!BATI.hasD1": ReturnType<typeof dbKysely>;
|
|
6
7
|
"BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
7
8
|
}>,
|
|
@@ -12,6 +13,7 @@ export async function insertTodo(
|
|
|
12
13
|
|
|
13
14
|
export async function getAllTodos(
|
|
14
15
|
db: BATI.If<{
|
|
16
|
+
'BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
15
17
|
"!BATI.hasD1": ReturnType<typeof dbKysely>;
|
|
16
18
|
"BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
17
19
|
}>,
|
|
@@ -4,5 +4,6 @@ import { Kysely } from "kysely";
|
|
|
4
4
|
//#region files/database/kysely/db.d.ts
|
|
5
5
|
declare function dbKysely(): Kysely<Database>;
|
|
6
6
|
declare function dbKyselyD1(d1: D1Database): Kysely<Database>;
|
|
7
|
+
declare function dbKyselyPostgres(): Kysely<Database>;
|
|
7
8
|
//#endregion
|
|
8
|
-
export { dbKysely, dbKyselyD1 };
|
|
9
|
+
export { dbKysely, dbKyselyD1, dbKyselyPostgres };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { dbKysely, dbKyselyD1 } from "../db.mjs";
|
|
1
|
+
import { dbKysely, dbKyselyD1, dbKyselyPostgres } from "../db.mjs";
|
|
2
2
|
|
|
3
3
|
//#region files/database/kysely/queries/todos.d.ts
|
|
4
4
|
declare function insertTodo(db: BATI.If<{
|
|
5
|
+
'BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
5
6
|
"!BATI.hasD1": ReturnType<typeof dbKysely>;
|
|
6
7
|
"BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
7
8
|
}>, text: string): Promise<{
|
|
@@ -9,6 +10,7 @@ declare function insertTodo(db: BATI.If<{
|
|
|
9
10
|
text: string;
|
|
10
11
|
}>;
|
|
11
12
|
declare function getAllTodos(db: BATI.If<{
|
|
13
|
+
'BATI.has("postgres")': ReturnType<typeof dbKyselyPostgres>;
|
|
12
14
|
"!BATI.hasD1": ReturnType<typeof dbKysely>;
|
|
13
15
|
"BATI.hasD1": ReturnType<typeof dbKyselyD1>;
|
|
14
16
|
}>): Promise<{
|
|
File without changes
|
|
@@ -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-DBz6f4sF.js").then((x) => x.default))).addDevDependencies([
|
|
7
7
|
"postcss",
|
|
8
8
|
"postcss-preset-mantine",
|
|
9
9
|
"postcss-simple-vars"
|
|
@@ -14,7 +14,8 @@ var package_default = {
|
|
|
14
14
|
license: "MIT",
|
|
15
15
|
devDependencies: {
|
|
16
16
|
"@batijs/compile": "workspace:*",
|
|
17
|
-
"@batijs/core": "workspace
|
|
17
|
+
"@batijs/core": "workspace:*",
|
|
18
|
+
"@batijs/react": "workspace:*",
|
|
18
19
|
"@mantine/core": "^9.2.1",
|
|
19
20
|
"@mantine/hooks": "^9.2.1",
|
|
20
21
|
"@types/node": "^20.19.37",
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
1
|
//#region files/components/Link.d.ts
|
|
4
2
|
declare function Link({
|
|
5
3
|
href,
|
|
@@ -7,6 +5,6 @@ declare function Link({
|
|
|
7
5
|
}: {
|
|
8
6
|
href: string;
|
|
9
7
|
label: string;
|
|
10
|
-
}):
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { Link };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
//#region files/pages/+Layout.d.ts
|
|
3
2
|
declare function Layout({
|
|
4
3
|
children
|
|
5
4
|
}: {
|
|
6
5
|
children: React.ReactNode;
|
|
7
|
-
}):
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
//#endregion
|
|
9
8
|
export { Layout as default };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/netlify/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-DF5wt8rf.js").then((x) => x.default))).addDevDependencies(["@netlify/vite-plugin"]);
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { getPackageJson as default };
|
|
File without changes
|
|
File without changes
|
|
@@ -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-CLW5VUJP.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}.`,
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region ../../packages/core/dist/config.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (!e) throw Error(t);
|
|
4
|
+
}
|
|
5
|
+
function t(t) {
|
|
6
|
+
return `enforce` in t && e(t.enforce === `pre` || t.enforce === `post`, `'enforce' must be 'pre' or 'post', was ${t.enforce}`), `if` in t && e(typeof t.if == `function`, `'if' must be a function`), `nextSteps` in t && e(typeof t.nextSteps == `function`, `'nextSteps' must be a function`), `knip` in t && (e(typeof t.knip == `object` && t.knip !== null, `'knip' must be an object`), `entry` in t.knip && e(Array.isArray(t.knip.entry), `'knip.entry' must be an array`), `ignoreDependencies` in t.knip && e(Array.isArray(t.knip.ignoreDependencies), `'knip.ignoreDependencies' must be an array`), `ignore` in t.knip && e(Array.isArray(t.knip.ignore), `'knip.ignore' must be an array`), `vite` in t.knip && e(typeof t.knip.vite == `boolean`, `'knip.vite' must be a boolean`)), `env` in t && e(typeof t.env == `function`, `'env' must be a function of meta`), t;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region bati.config.ts
|
|
10
|
+
var bati_config_default = t({
|
|
11
|
+
if(meta) {
|
|
12
|
+
return meta.BATI.has("postgres") && !meta.BATI.hasOrm;
|
|
13
|
+
},
|
|
14
|
+
nextSteps(_meta, packageManager, { bold }) {
|
|
15
|
+
return [{
|
|
16
|
+
type: "text",
|
|
17
|
+
step: `Set your ${bold("DATABASE_URL")} in .env and provide a PostgreSQL server — see ${bold("TODO.md")}`
|
|
18
|
+
}, {
|
|
19
|
+
type: "command",
|
|
20
|
+
step: `${packageManager} postgres:migrate`
|
|
21
|
+
}];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { bati_config_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { loadMarkdown, packageManager } from "@batijs/core";
|
|
4
|
+
//#region ../../boilerplates/postgres/dist/files/$TODO.md.mjs
|
|
5
|
+
async function getTodo(props) {
|
|
6
|
+
const content = await loadMarkdown(props);
|
|
7
|
+
const pmCmd = packageManager().run;
|
|
8
|
+
const todo = `
|
|
9
|
+
## PostgreSQL
|
|
10
|
+
|
|
11
|
+
${props.meta.BATI.has("docker") ? "The Docker setup provisions a PostgreSQL server for you via `docker-compose.yml`." : "Bati only installs the `postgres` client — **bring your own PostgreSQL server** (a local install, a managed instance, or e.g. `docker run -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres`)."}
|
|
12
|
+
|
|
13
|
+
Set \`DATABASE_URL\` in \`.env\` to your connection string, then create the example table:
|
|
14
|
+
\`\`\`bash
|
|
15
|
+
${pmCmd} postgres:migrate # creates the \`todos\` table
|
|
16
|
+
\`\`\`
|
|
17
|
+
|
|
18
|
+
Queries use [postgres.js](https://github.com/porsager/postgres). See \`database/postgres/\` for the
|
|
19
|
+
client, schema and example queries.
|
|
20
|
+
`;
|
|
21
|
+
content.addMarkdownFeature(todo, "postgres");
|
|
22
|
+
return content;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { getTodo as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { loadPackageJson, packageManager } from "@batijs/core";
|
|
4
|
+
//#region ../../boilerplates/postgres/dist/files/$package.json.mjs
|
|
5
|
+
async function getPackageJson(props) {
|
|
6
|
+
const packageJson = await loadPackageJson(props, await import("../../../../asset-package.json-D5lEjBIT.js").then((x) => x.default));
|
|
7
|
+
const bun = packageManager().name === "bun";
|
|
8
|
+
packageJson.setScript("postgres:migrate", {
|
|
9
|
+
value: `${bun ? "bun" : "tsx"} ./database/postgres/schema/all.ts`,
|
|
10
|
+
precedence: 1
|
|
11
|
+
}).addDependencies(["postgres", "dotenv"]).addDevDependencies(["tsx"], ["postgres:migrate"], !bun);
|
|
12
|
+
return packageJson;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getPackageJson as default };
|