@batijs/cli 0.0.530 → 0.0.532
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/boilerplates/@batijs/auth0/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/auth0/files/$.env.js +6 -6
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +4 -4
- package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +4 -4
- package/dist/boilerplates/@batijs/authjs/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/aws/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +6 -6
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +6 -6
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$biome.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/cloudflare/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +6 -6
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/compiled/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/d1/bati.config.js +17 -1
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +6 -6
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +4 -4
- package/dist/boilerplates/@batijs/d1-sqlite/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/drizzle/bati.config.js +17 -1
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +6 -6
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/eslint/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/express/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/fastify/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/google-analytics/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/h3/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/hono/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/mantine/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/photon/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/plausible.io/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +4 -4
- package/dist/boilerplates/@batijs/pnpm/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +4 -4
- package/dist/boilerplates/@batijs/prettier/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/prisma/bati.config.js +13 -1
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +8 -6
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/react/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/react/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/react-sentry/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/sentry/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +5 -5
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +6 -6
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +8 -8
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +10 -10
- package/dist/boilerplates/@batijs/shadcn-ui/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +6 -6
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/shared/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +8 -8
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +4 -4
- package/dist/boilerplates/@batijs/shared-db/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/shared-todo/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/solid/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/solid-sentry/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/sqlite/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +8 -6
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/tailwindcss/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/telefunc/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/trpc/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/ts-rest/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/vercel/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +4 -4
- package/dist/boilerplates/@batijs/vue/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/vue-sentry/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +4 -4
- package/dist/{chunk-DHZ7AZKP.js → chunk-IHX3I5SM.js} +5 -0
- package/dist/{chunk-L2AHUKWS.js → chunk-IT2OMBYW.js} +126963 -126394
- package/dist/index.js +88 -39
- package/dist/{jiti-ZW3ADF2F-7XIEJQMO.js → jiti-ZW3ADF2F-2SLKRUEN.js} +1 -1
- package/dist/{prompt-HBAIF7ML.js → prompt-YBELZKBA.js} +1 -1
- package/dist/{src-5HGZFBZ3-KQZBBJSW.js → src-5HGZFBZ3-CGUDMVWF.js} +1 -1
- package/package.json +6 -6
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
gSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/solid/dist/files/$README.md.js
|
|
12
12
|
async function getReadme(props) {
|
|
13
|
-
const content = await
|
|
13
|
+
const content = await gSs(props);
|
|
14
14
|
const about = `
|
|
15
15
|
## Vike
|
|
16
16
|
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/solid/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -173,7 +173,7 @@ var require_package = __commonJS({
|
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
async function getPackageJson(props) {
|
|
176
|
-
const packageJson = await
|
|
176
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
177
177
|
return packageJson.addDevDependencies(["vite"]).addDependencies(["solid-js", "vike-solid", "vike"]);
|
|
178
178
|
}
|
|
179
179
|
export {
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
ySs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/solid/dist/files/$tsconfig.json.js
|
|
12
12
|
async function getTsConfig(props) {
|
|
13
|
-
const tsConfig = await
|
|
13
|
+
const tsConfig = await ySs(props);
|
|
14
14
|
tsConfig.compilerOptions.jsx = "react-jsx";
|
|
15
15
|
tsConfig.compilerOptions.jsxImportSource = "solid-js";
|
|
16
16
|
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vike-solid/client"];
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../../chunk-
|
|
6
|
+
TSs,
|
|
7
|
+
pri
|
|
8
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/solid/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
15
|
-
|
|
14
|
+
const mod = await TSs(props);
|
|
15
|
+
pri(mod, {
|
|
16
16
|
from: "vike-solid/vite",
|
|
17
17
|
constructor: "vikeSolid"
|
|
18
18
|
});
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/solid-sentry/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -85,7 +85,7 @@ var require_package = __commonJS({
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
async function getPackageJson(props) {
|
|
88
|
-
const packageJson = await
|
|
88
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
89
89
|
return packageJson.addDependencies(["@sentry/solid"]);
|
|
90
90
|
}
|
|
91
91
|
export {
|
|
@@ -3,13 +3,21 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
10
10
|
var bati_config_default = i({
|
|
11
11
|
if(meta) {
|
|
12
12
|
return meta.BATI.has("sqlite") && !meta.BATI.has("cloudflare");
|
|
13
|
+
},
|
|
14
|
+
nextSteps(_meta, packageManager) {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
type: "command",
|
|
18
|
+
step: `${packageManager} sqlite:migrate`
|
|
19
|
+
}
|
|
20
|
+
];
|
|
13
21
|
}
|
|
14
22
|
});
|
|
15
23
|
export {
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
r9s
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/sqlite/dist/files/$.env.js
|
|
12
12
|
async function getEnv(props) {
|
|
13
13
|
if (props.meta.BATI.hasD1) return;
|
|
14
14
|
const envContent = await props.readfile?.();
|
|
15
|
-
return
|
|
15
|
+
return r9s(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
18
|
getEnv as default
|
|
@@ -3,21 +3,23 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Nus,
|
|
7
|
+
gSs
|
|
8
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
11
|
|
|
11
12
|
// ../../boilerplates/sqlite/dist/files/$TODO.md.js
|
|
12
13
|
async function getTodo(props) {
|
|
13
14
|
if (props.meta.BATI.hasD1) return;
|
|
14
|
-
const content = await
|
|
15
|
+
const content = await gSs(props);
|
|
16
|
+
const pmCmd = Nus().run;
|
|
15
17
|
const todo = `
|
|
16
18
|
## Sqlite
|
|
17
19
|
|
|
18
|
-
Ensure that \`DATABASE_URL\` is configured in \`.env\` file, then create the database:
|
|
20
|
+
Ensure that \`DATABASE_URL\` is configured as desired in \`.env\` file, then create the database:
|
|
19
21
|
\`\`\`bash
|
|
20
|
-
|
|
22
|
+
${pmCmd} sqlite:migrate # creates sqlite tables
|
|
21
23
|
\`\`\`
|
|
22
24
|
`;
|
|
23
25
|
content.addMarkdownFeature(todo, "sqlite");
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/sqlite/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -53,9 +53,9 @@ var require_package = __commonJS({
|
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
54
|
"@types/better-sqlite3": "^7.6.13",
|
|
55
55
|
"@types/node": "^20.19.25",
|
|
56
|
-
"better-sqlite3": "^12.
|
|
56
|
+
"better-sqlite3": "^12.5.0",
|
|
57
57
|
dotenv: "^17.2.3",
|
|
58
|
-
tsx: "^4.
|
|
58
|
+
tsx: "^4.21.0"
|
|
59
59
|
},
|
|
60
60
|
dependencies: {
|
|
61
61
|
"@batijs/core": "workspace:*"
|
|
@@ -97,7 +97,7 @@ var require_package = __commonJS({
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
async function getPackageJson(props) {
|
|
100
|
-
const packageJson = await
|
|
100
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
101
101
|
return packageJson.setScript("sqlite:migrate", {
|
|
102
102
|
value: "tsx ./database/sqlite/schema/all.ts",
|
|
103
103
|
precedence: 1
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/tailwindcss/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -70,7 +70,7 @@ var require_package = __commonJS({
|
|
|
70
70
|
});
|
|
71
71
|
async function getPackageJson(props) {
|
|
72
72
|
const pkgjson = await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default);
|
|
73
|
-
const packageJson = await
|
|
73
|
+
const packageJson = await bSs(props, pkgjson);
|
|
74
74
|
return packageJson.addDevDependencies(["tailwindcss", "@tailwindcss/vite"]).addDevDependencies(["daisyui"], props.meta.BATI.has("daisyui"));
|
|
75
75
|
}
|
|
76
76
|
export {
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../../chunk-
|
|
6
|
+
TSs,
|
|
7
|
+
pri
|
|
8
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/tailwindcss/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
15
|
-
|
|
14
|
+
const mod = await TSs(props);
|
|
15
|
+
pri(mod, {
|
|
16
16
|
from: "@tailwindcss/vite",
|
|
17
17
|
constructor: "tailwindcss"
|
|
18
18
|
});
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/telefunc/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -85,7 +85,7 @@ var require_package = __commonJS({
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
async function getPackageJson(props) {
|
|
88
|
-
const packageJson = await
|
|
88
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
89
89
|
return packageJson.addDependencies(["telefunc", "@universal-middleware/core"]);
|
|
90
90
|
}
|
|
91
91
|
export {
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../../chunk-
|
|
6
|
+
TSs,
|
|
7
|
+
pri
|
|
8
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/telefunc/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
15
|
-
|
|
14
|
+
const mod = await TSs(props);
|
|
15
|
+
pri(mod, {
|
|
16
16
|
from: "telefunc/vite",
|
|
17
17
|
constructor: "telefunc",
|
|
18
18
|
imported: "telefunc"
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/trpc/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -91,7 +91,7 @@ var require_package = __commonJS({
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
async function getPackageJson(props) {
|
|
94
|
-
const packageJson = await
|
|
94
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
95
95
|
return packageJson.addDependencies(["@trpc/server", "@trpc/client"]);
|
|
96
96
|
}
|
|
97
97
|
export {
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/ts-rest/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -91,7 +91,7 @@ var require_package = __commonJS({
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
async function getPackageJson(props) {
|
|
94
|
-
const packageJson = await
|
|
94
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
95
95
|
return packageJson.addDevDependencies(["zod"]).addDependencies(["@ts-rest/core", "@ts-rest/serverless", "@universal-middleware/core"]);
|
|
96
96
|
}
|
|
97
97
|
export {
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vercel/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -51,7 +51,7 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@photonjs/vercel": "^0.1.
|
|
54
|
+
"@photonjs/vercel": "^0.1.15",
|
|
55
55
|
"@types/node": "^20.19.25",
|
|
56
56
|
h3: "~1.15.4",
|
|
57
57
|
vike: "^0.4.247",
|
|
@@ -67,7 +67,7 @@ var require_package = __commonJS({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
async function getPackageJson(props) {
|
|
70
|
-
const packageJson = await
|
|
70
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
71
71
|
return packageJson.removeScript("prod").addDevDependencies(["h3"]).addDependencies(["@photonjs/vercel"]);
|
|
72
72
|
}
|
|
73
73
|
export {
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../../chunk-
|
|
6
|
+
TSs
|
|
7
|
+
} from "../../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../../chunk-
|
|
9
|
+
import "../../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vercel/dist/files/pages/$+config.ts.js
|
|
12
12
|
async function getViteConfig(props) {
|
|
13
|
-
const mod = await
|
|
13
|
+
const mod = await TSs(props);
|
|
14
14
|
mod.exports.default.prerender = true;
|
|
15
15
|
return mod.generate().code;
|
|
16
16
|
}
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
gSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vue/dist/files/$README.md.js
|
|
12
12
|
async function getReadme(props) {
|
|
13
|
-
const content = await
|
|
13
|
+
const content = await gSs(props);
|
|
14
14
|
const about = `
|
|
15
15
|
## Vike
|
|
16
16
|
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vue/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -121,7 +121,7 @@ var require_package = __commonJS({
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
async function getPackageJson(props) {
|
|
124
|
-
const packageJson = await
|
|
124
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
125
125
|
return packageJson.addDevDependencies(["vite", "@vitejs/plugin-vue"]).addDependencies(["vike-vue", "vike", "vue"]).addDependencies(["vue-gtag"], props.meta.BATI.has("google-analytics"));
|
|
126
126
|
}
|
|
127
127
|
export {
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
ySs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vue/dist/files/$tsconfig.json.js
|
|
12
12
|
async function getTsConfig(props) {
|
|
13
|
-
const tsConfig = await
|
|
13
|
+
const tsConfig = await ySs(props);
|
|
14
14
|
return tsConfig;
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../../chunk-
|
|
6
|
+
TSs,
|
|
7
|
+
pri
|
|
8
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/vue/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
15
|
-
|
|
14
|
+
const mod = await TSs(props);
|
|
15
|
+
pri(mod, {
|
|
16
16
|
from: "@vitejs/plugin-vue",
|
|
17
17
|
constructor: "vue"
|
|
18
18
|
});
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vue-sentry/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -79,7 +79,7 @@ var require_package = __commonJS({
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
async function getPackageJson(props) {
|
|
82
|
-
const packageJson = await
|
|
82
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
83
83
|
return packageJson.addDependencies(["@sentry/vue"]);
|
|
84
84
|
}
|
|
85
85
|
export {
|