@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,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("auth0");
|
|
13
|
+
},
|
|
14
|
+
nextSteps(_meta, _packageManager, { bold }) {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
type: "text",
|
|
18
|
+
step: `Add the Auth0 configuration to the .env file. Check ${bold("TODO.md")} for details`
|
|
19
|
+
}
|
|
20
|
+
];
|
|
13
21
|
}
|
|
14
22
|
});
|
|
15
23
|
export {
|
|
@@ -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
|
+
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/auth0/dist/files/$.env.js
|
|
12
12
|
async function getEnv(props) {
|
|
@@ -15,9 +15,9 @@ async function getEnv(props) {
|
|
|
15
15
|
const auth0ClientSecret = process.env.TEST_AUTH0_CLIENT_SECRET;
|
|
16
16
|
const auth0BaseUrl = process.env.TEST_AUTH0_ISSUER_BASE_URL;
|
|
17
17
|
let envContent = await props.readfile?.();
|
|
18
|
-
envContent =
|
|
19
|
-
envContent =
|
|
20
|
-
envContent =
|
|
18
|
+
envContent = r9s(envContent, "AUTH0_CLIENT_ID", auth0ClientId ?? "", "Auth0 Client ID");
|
|
19
|
+
envContent = r9s(envContent, "AUTH0_CLIENT_SECRET", auth0ClientSecret ?? "", "Auth0 Client Secret");
|
|
20
|
+
envContent = r9s(envContent, "AUTH0_ISSUER_BASE_URL", auth0BaseUrl ?? "", "Auth0 base URL");
|
|
21
21
|
return envContent;
|
|
22
22
|
}
|
|
23
23
|
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
|
+
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/auth0/dist/files/$TODO.md.js
|
|
12
12
|
async function getTodo(props) {
|
|
13
|
-
const content = await
|
|
13
|
+
const content = await gSs(props);
|
|
14
14
|
const todo = `
|
|
15
15
|
## Auth0
|
|
16
16
|
|
|
@@ -3,15 +3,15 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
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/auth0/dist/files/$wrangler.jsonc.js
|
|
12
12
|
async function getEnv(props) {
|
|
13
13
|
if (!props.meta.BATI.has("cloudflare")) return;
|
|
14
|
-
const wrangler = await
|
|
14
|
+
const wrangler = await ySs(props);
|
|
15
15
|
const auth0ClientId = process.env.TEST_AUTH0_CLIENT_ID;
|
|
16
16
|
const auth0ClientSecret = process.env.TEST_AUTH0_CLIENT_SECRET;
|
|
17
17
|
const auth0BaseUrl = process.env.TEST_AUTH0_ISSUER_BASE_URL;
|
|
@@ -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/authjs/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -77,7 +77,7 @@ var require_package = __commonJS({
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
async function getPackageJson(props) {
|
|
80
|
-
const packageJson = await
|
|
80
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
81
81
|
return packageJson.addDependencies(["@auth/core", "@universal-middleware/core"]);
|
|
82
82
|
}
|
|
83
83
|
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
|
|
@@ -11,6 +11,14 @@ var bati_config_default = i({
|
|
|
11
11
|
if(meta) {
|
|
12
12
|
return meta.BATI.has("aws");
|
|
13
13
|
},
|
|
14
|
+
nextSteps(_meta, _packageManager, { bold }) {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
type: "text",
|
|
18
|
+
step: `Ensure that AWS credentials are configured. Check ${bold("TODO.md")} for details`
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
},
|
|
14
22
|
enforce: "post"
|
|
15
23
|
});
|
|
16
24
|
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
|
+
Nus,
|
|
7
|
+
gSs
|
|
8
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/aws/dist/files/$README.md.js
|
|
13
13
|
async function getReadme(props) {
|
|
14
|
-
const content = await
|
|
15
|
-
const pmCmd =
|
|
14
|
+
const content = await gSs(props);
|
|
15
|
+
const pmCmd = Nus().run;
|
|
16
16
|
const about = `
|
|
17
17
|
## AWS CDK Deployment
|
|
18
18
|
|
|
@@ -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
|
+
Nus,
|
|
7
|
+
gSs
|
|
8
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/aws/dist/files/$TODO.md.js
|
|
13
13
|
async function getTodo(props) {
|
|
14
|
-
const content = await
|
|
15
|
-
const pmCmd =
|
|
14
|
+
const content = await gSs(props);
|
|
15
|
+
const pmCmd = Nus().run;
|
|
16
16
|
const todo = `
|
|
17
17
|
## AWS CDK Deployment
|
|
18
18
|
|
|
@@ -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/aws/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -54,15 +54,15 @@ var require_package = __commonJS({
|
|
|
54
54
|
"@types/node": "^20.19.25",
|
|
55
55
|
"@types/which": "^3.0.4",
|
|
56
56
|
"aws-cdk": "^2.1033.0",
|
|
57
|
-
"aws-cdk-lib": "^2.
|
|
57
|
+
"aws-cdk-lib": "^2.230.0",
|
|
58
58
|
cdk: "^2.1033.0",
|
|
59
59
|
constructs: "^10.4.3",
|
|
60
60
|
esbuild: "^0.27.0",
|
|
61
61
|
"npm-run-all2": "^8.0.4",
|
|
62
62
|
"source-map-support": "^0.5.21",
|
|
63
|
-
tsx: "^4.
|
|
63
|
+
tsx: "^4.21.0",
|
|
64
64
|
typescript: "^5.9.3",
|
|
65
|
-
vitest: "^4.0.
|
|
65
|
+
vitest: "^4.0.14",
|
|
66
66
|
which: "^6.0.0"
|
|
67
67
|
},
|
|
68
68
|
dependencies: {
|
|
@@ -105,7 +105,7 @@ var require_package = __commonJS({
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
async function getPackageJson(props) {
|
|
108
|
-
const packageJson = await
|
|
108
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
109
109
|
return packageJson.setScript("test", {
|
|
110
110
|
value: "vitest",
|
|
111
111
|
precedence: 0
|
|
@@ -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/aws/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.types = [
|
|
15
15
|
...tsConfig.compilerOptions.types ?? [],
|
|
16
16
|
"@types/node",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
|
-
import "../../../../chunk-
|
|
5
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/aws/dist/files/$vite.config.ts.js
|
|
8
8
|
var plugin = `{
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
|
-
import "../../../../../chunk-
|
|
5
|
+
import "../../../../../chunk-IHX3I5SM.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/aws/dist/files/cdk/$stack-name-suffix.json.js
|
|
8
8
|
async function getDataJson() {
|
|
@@ -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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
|
-
import "../../../../chunk-
|
|
5
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/biome/dist/files/$biome.json.js
|
|
8
8
|
async function getBiomeJson(props) {
|
|
@@ -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/biome/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -52,7 +52,7 @@ var require_package = __commonJS({
|
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
54
|
"@biomejs/biome": "2.3.7",
|
|
55
|
-
"@biomejs/wasm-nodejs": "^2.3.
|
|
55
|
+
"@biomejs/wasm-nodejs": "^2.3.8",
|
|
56
56
|
"@types/node": "^20.19.25"
|
|
57
57
|
},
|
|
58
58
|
dependencies: {
|
|
@@ -65,7 +65,7 @@ var require_package = __commonJS({
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
async function getPackageJson(props) {
|
|
68
|
-
const packageJson = await
|
|
68
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
69
69
|
return packageJson.setScript("lint", {
|
|
70
70
|
value: "biome lint --write .",
|
|
71
71
|
precedence: 0
|
|
@@ -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
|
|
@@ -11,6 +11,14 @@ var bati_config_default = i({
|
|
|
11
11
|
if(meta) {
|
|
12
12
|
return meta.BATI.has("cloudflare");
|
|
13
13
|
},
|
|
14
|
+
nextSteps(_meta, packageManager) {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
type: "command",
|
|
18
|
+
step: `${packageManager} wrangler types`
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
},
|
|
14
22
|
enforce: "post"
|
|
15
23
|
});
|
|
16
24
|
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
|
+
Nus,
|
|
7
|
+
gSs
|
|
8
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/cloudflare/dist/files/$TODO.md.js
|
|
13
13
|
async function getTodo(props) {
|
|
14
|
-
const content = await
|
|
15
|
-
const pmCmd =
|
|
14
|
+
const content = await gSs(props);
|
|
15
|
+
const pmCmd = Nus().run;
|
|
16
16
|
const todo = `
|
|
17
17
|
## Cloudflare Workers
|
|
18
18
|
|
|
@@ -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/cloudflare/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -51,9 +51,9 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@photonjs/cloudflare": "^0.1.
|
|
54
|
+
"@photonjs/cloudflare": "^0.1.9",
|
|
55
55
|
"@types/node": "^20.19.25",
|
|
56
|
-
wrangler: "^4.
|
|
56
|
+
wrangler: "^4.51.0"
|
|
57
57
|
},
|
|
58
58
|
dependencies: {
|
|
59
59
|
"@batijs/core": "workspace:*"
|
|
@@ -77,7 +77,7 @@ var require_package = __commonJS({
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
async function getPackageJson(props) {
|
|
80
|
-
const packageJson = await
|
|
80
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
81
81
|
return packageJson.removeScript("prod").setScript("deploy", {
|
|
82
82
|
value: "vike build && wrangler deploy",
|
|
83
83
|
precedence: 25,
|
|
@@ -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/cloudflare/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.types = [...tsConfig.compilerOptions.types ?? [], "./worker-configuration.d.ts"];
|
|
15
15
|
return tsConfig;
|
|
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,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/compiled/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -66,7 +66,7 @@ var require_package = __commonJS({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
async function getPackageJson(props) {
|
|
69
|
-
const packageJson = await
|
|
69
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
70
70
|
return packageJson.addDevDependencies(["vite-plugin-compiled-react"]).addDependencies(["@compiled/react"]);
|
|
71
71
|
}
|
|
72
72
|
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/compiled/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: "vite-plugin-compiled-react",
|
|
17
17
|
constructor: "compiled",
|
|
18
18
|
imported: "compiled",
|
|
@@ -3,13 +3,29 @@ 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.hasD1;
|
|
13
|
+
},
|
|
14
|
+
nextSteps(meta, packageManager) {
|
|
15
|
+
const step = {
|
|
16
|
+
type: "command",
|
|
17
|
+
step: `${packageManager} wrangler d1 create my-vike-demo-database`
|
|
18
|
+
};
|
|
19
|
+
if (!meta.BATI.has("drizzle")) {
|
|
20
|
+
return [
|
|
21
|
+
step,
|
|
22
|
+
{
|
|
23
|
+
type: "command",
|
|
24
|
+
step: `${packageManager} d1:migrate`
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
return [step];
|
|
13
29
|
}
|
|
14
30
|
});
|
|
15
31
|
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
|
+
Nus,
|
|
7
|
+
gSs
|
|
8
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/d1/dist/files/$TODO.md.js
|
|
13
13
|
async function getTodo(props) {
|
|
14
|
-
const content = await
|
|
15
|
-
const pmCmd =
|
|
14
|
+
const content = await gSs(props);
|
|
15
|
+
const pmCmd = Nus().run;
|
|
16
16
|
const todo = `
|
|
17
17
|
## Cloudflare D1
|
|
18
18
|
|
|
@@ -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/d1/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -54,7 +54,7 @@ var require_package = __commonJS({
|
|
|
54
54
|
"@types/node": "^20.19.25",
|
|
55
55
|
"@universal-middleware/core": "^0.4.13",
|
|
56
56
|
vike: "^0.4.247",
|
|
57
|
-
wrangler: "^4.
|
|
57
|
+
wrangler: "^4.51.0"
|
|
58
58
|
},
|
|
59
59
|
dependencies: {
|
|
60
60
|
"@batijs/core": "workspace:*"
|
|
@@ -78,7 +78,7 @@ var require_package = __commonJS({
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
async function getPackageJson(props) {
|
|
81
|
-
const packageJson = await
|
|
81
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
82
82
|
return packageJson.addDevDependencies(["@universal-middleware/core"]);
|
|
83
83
|
}
|
|
84
84
|
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/d1/dist/files/$wrangler.jsonc.js
|
|
12
12
|
async function getToml(props) {
|
|
13
|
-
const wrangler = await
|
|
13
|
+
const wrangler = await ySs(props);
|
|
14
14
|
wrangler.d1_databases ??= [];
|
|
15
15
|
wrangler.d1_databases.push({
|
|
16
16
|
binding: "DB",
|
|
@@ -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/d1-sqlite/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -77,7 +77,7 @@ var require_package = __commonJS({
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
async function getPackageJson(props) {
|
|
80
|
-
const packageJson = await
|
|
80
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
81
81
|
return packageJson.setScript("d1:migrate", {
|
|
82
82
|
value: "wrangler d1 migrations apply MY_VIKE_DEMO_DATABASE --local",
|
|
83
83
|
precedence: 0
|