@batijs/cli 0.0.516 → 0.0.518
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +3 -3
- package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +26 -0
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +5 -5
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +31 -0
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/cloudflare/files/wrangler.jsonc +6 -0
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +25 -0
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +5 -5
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/express/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/express/files/server/entry.ts +1 -1
- package/dist/boilerplates/@batijs/express/types/server/entry.d.ts +1 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/fastify/files/server/entry.ts +3 -3
- package/dist/boilerplates/@batijs/fastify/types/server/entry.d.ts +1 -2
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/hono/files/entry_aws_lambda.ts +2 -2
- package/dist/boilerplates/@batijs/hono/files/server/entry.ts +1 -1
- package/dist/boilerplates/@batijs/hono/types/server/entry.d.ts +1 -2
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +3 -3
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/prettier/files/.prettierrc +3 -0
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +7 -7
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +3 -3
- package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +2 -2
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +8 -7
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +7 -7
- package/dist/{chunk-HKWAALEK.js → chunk-5DFJDTFL.js} +56761 -56450
- package/dist/index.js +2645 -14145
- package/package.json +8 -8
- package/dist/boilerplates/@batijs/auth0/files/$wrangler.toml.js +0 -32
- package/dist/boilerplates/@batijs/cloudflare/files/wrangler.toml +0 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +0 -26
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
xxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,13 +51,13 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@sentry/react": "^10.
|
|
55
|
-
"@types/node": "^20.19.
|
|
56
|
-
"@types/react": "^19.2.
|
|
54
|
+
"@sentry/react": "^10.27.0",
|
|
55
|
+
"@types/node": "^20.19.25",
|
|
56
|
+
"@types/react": "^19.2.7",
|
|
57
57
|
"@types/react-dom": "^19.2.3",
|
|
58
58
|
react: "^19.2.0",
|
|
59
59
|
"react-dom": "^19.2.0",
|
|
60
|
-
vite: "^7.2.
|
|
60
|
+
vite: "^7.2.4"
|
|
61
61
|
},
|
|
62
62
|
dependencies: {
|
|
63
63
|
"@batijs/core": "workspace:*"
|
|
@@ -87,7 +87,7 @@ var require_package = __commonJS({
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
async function getPackageJson(props) {
|
|
90
|
-
const packageJson = await
|
|
90
|
+
const packageJson = await xxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
91
91
|
return packageJson.addDependencies(["@sentry/react"]);
|
|
92
92
|
}
|
|
93
93
|
export {
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
lUs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -12,13 +12,13 @@ import "../../../../chunk-DHZ7AZKP.js";
|
|
|
12
12
|
async function getServerlessEnv(props) {
|
|
13
13
|
const sentryDNS = process.env.TEST_SENTRY_DSN;
|
|
14
14
|
let envContent = await props.readfile?.();
|
|
15
|
-
envContent =
|
|
15
|
+
envContent = lUs(
|
|
16
16
|
envContent,
|
|
17
17
|
"SENTRY_DSN",
|
|
18
18
|
sentryDNS ?? "",
|
|
19
19
|
"Sentry DNS. Used for Error Reporting on the Server"
|
|
20
20
|
);
|
|
21
|
-
envContent =
|
|
21
|
+
envContent = lUs(
|
|
22
22
|
envContent,
|
|
23
23
|
"PUBLIC_ENV__SENTRY_DSN",
|
|
24
24
|
"",
|
|
@@ -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
|
+
Sxs,
|
|
7
|
+
Wfs
|
|
8
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/sentry/dist/files/$README.md.js
|
|
13
13
|
async function getReadme(props) {
|
|
14
|
-
const content = await
|
|
15
|
-
const pmCmd =
|
|
14
|
+
const content = await Sxs(props);
|
|
15
|
+
const pmCmd = Wfs().run;
|
|
16
16
|
const about = `
|
|
17
17
|
|
|
18
18
|
## Sentry Browser / Error Tracking & Performance Monitoring
|
|
@@ -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
|
+
Sxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/sentry/dist/files/$TODO.md.js
|
|
12
12
|
async function getTodo(props) {
|
|
13
|
-
const content = await
|
|
13
|
+
const content = await Sxs(props);
|
|
14
14
|
const about = `
|
|
15
15
|
|
|
16
16
|
## Sentry Browser / Error Tracking & Performance Monitoring
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
xxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,9 +51,9 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@sentry/vite-plugin": "^4.6.
|
|
55
|
-
"@types/node": "^20.19.
|
|
56
|
-
vite: "^7.2.
|
|
54
|
+
"@sentry/vite-plugin": "^4.6.1",
|
|
55
|
+
"@types/node": "^20.19.25",
|
|
56
|
+
vite: "^7.2.4"
|
|
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 xxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
81
81
|
return packageJson.addDevDependencies(["@sentry/vite-plugin"]);
|
|
82
82
|
}
|
|
83
83
|
export {
|
|
@@ -3,17 +3,17 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "../../../../chunk-
|
|
6
|
+
Cxs,
|
|
7
|
+
Lir,
|
|
8
|
+
Tri
|
|
9
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
10
10
|
import "../../../../chunk-IAWYWZSL.js";
|
|
11
11
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
12
12
|
|
|
13
13
|
// ../../boilerplates/sentry/dist/files/$vite.config.ts.js
|
|
14
14
|
async function getViteConfig(props) {
|
|
15
|
-
const mod = await
|
|
16
|
-
|
|
15
|
+
const mod = await Cxs(props);
|
|
16
|
+
Tri(mod, {
|
|
17
17
|
from: "@sentry/vite-plugin",
|
|
18
18
|
constructor: "sentryVitePlugin",
|
|
19
19
|
imported: "sentryVitePlugin",
|
|
@@ -21,7 +21,7 @@ async function getViteConfig(props) {
|
|
|
21
21
|
sourcemaps: { disable: false }
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
Lir(mod.exports.default.$args[0], { build: { sourcemap: true } });
|
|
25
25
|
return mod.generate().code;
|
|
26
26
|
}
|
|
27
27
|
export {
|
|
@@ -3,11 +3,11 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "../../../../../chunk-
|
|
6
|
+
Cme,
|
|
7
|
+
Cxs,
|
|
8
|
+
IK,
|
|
9
|
+
NR
|
|
10
|
+
} from "../../../../../chunk-5DFJDTFL.js";
|
|
11
11
|
import "../../../../../chunk-IAWYWZSL.js";
|
|
12
12
|
import "../../../../../chunk-DHZ7AZKP.js";
|
|
13
13
|
|
|
@@ -15,17 +15,17 @@ import "../../../../../chunk-DHZ7AZKP.js";
|
|
|
15
15
|
async function getViteConfig(props) {
|
|
16
16
|
let mod;
|
|
17
17
|
try {
|
|
18
|
-
mod = await
|
|
18
|
+
mod = await Cxs(props);
|
|
19
19
|
} catch {
|
|
20
|
-
mod =
|
|
20
|
+
mod = Cme("");
|
|
21
21
|
}
|
|
22
22
|
if (!props.meta.BATI.has("vue")) {
|
|
23
23
|
mod.imports.$prepend({
|
|
24
24
|
from: "../sentry.browser.config",
|
|
25
25
|
imported: "sentryBrowserConfig"
|
|
26
26
|
});
|
|
27
|
-
const e =
|
|
28
|
-
const c =
|
|
27
|
+
const e = IK.functionCall("sentryBrowserConfig");
|
|
28
|
+
const c = NR(e).code;
|
|
29
29
|
mod.$ast.body.splice(mod.$ast.body.length - 1, 0, c);
|
|
30
30
|
}
|
|
31
31
|
return mod.generate().code;
|
|
@@ -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
|
+
Sxs,
|
|
7
|
+
Wfs
|
|
8
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/shadcn-ui/dist/files/$README.md.js
|
|
13
13
|
async function getReadme(props) {
|
|
14
|
-
const content = await
|
|
15
|
-
const pmCmd =
|
|
14
|
+
const content = await Sxs(props);
|
|
15
|
+
const pmCmd = Wfs().run;
|
|
16
16
|
const about = `
|
|
17
17
|
|
|
18
18
|
## shadcn/ui
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
xxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -52,11 +52,11 @@ var require_package = __commonJS({
|
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
54
|
"@radix-ui/react-icons": "^1.3.2",
|
|
55
|
-
"@types/node": "^20.19.
|
|
55
|
+
"@types/node": "^20.19.25",
|
|
56
56
|
autoprefixer: "^10.4.22",
|
|
57
57
|
"class-variance-authority": "^0.7.1",
|
|
58
58
|
clsx: "^2.1.1",
|
|
59
|
-
"lucide-react": "^0.
|
|
59
|
+
"lucide-react": "^0.554.0",
|
|
60
60
|
"tailwind-merge": "^3.4.0",
|
|
61
61
|
tailwindcss: "^4.1.17",
|
|
62
62
|
"tw-animate-css": "^1.4.0"
|
|
@@ -83,7 +83,7 @@ var require_package = __commonJS({
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
async function getPackageJson(props) {
|
|
86
|
-
const packageJson = await
|
|
86
|
+
const packageJson = await xxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
87
87
|
return packageJson.setScript("shadcn", {
|
|
88
88
|
value: "npx shadcn@latest",
|
|
89
89
|
precedence: 1,
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
Exs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/shadcn-ui/dist/files/$tsconfig.json.js
|
|
12
12
|
async function getTsConfig(props) {
|
|
13
|
-
const tsConfig = await
|
|
13
|
+
const tsConfig = await Exs(props);
|
|
14
14
|
tsConfig.compilerOptions.paths = {
|
|
15
15
|
...tsConfig.compilerOptions?.paths ?? {},
|
|
16
16
|
"@/*": ["./*"]
|
|
@@ -3,22 +3,22 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../../chunk-
|
|
6
|
+
Cxs,
|
|
7
|
+
kir
|
|
8
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/shadcn-ui/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
14
|
+
const mod = await Cxs(props);
|
|
15
15
|
const replacement = `new URL("./", import.meta.url).pathname`;
|
|
16
16
|
addResolveAlias(mod, "@", replacement);
|
|
17
17
|
return mod.generate().code.replace(`"{{PLACEHOLDER_ALIAS}}"`, replacement);
|
|
18
18
|
}
|
|
19
19
|
function addResolveAlias(mod, find, replacement) {
|
|
20
20
|
const alias = mod.exports.default.$args[0]?.resolve?.alias ?? {};
|
|
21
|
-
const warnMsg = `${
|
|
21
|
+
const warnMsg = `${kir("WARN")}: new resolve.alias: \`"${find}":${replacement}\` replaced existing in vite.config.ts.`;
|
|
22
22
|
if (alias?.length === void 0) {
|
|
23
23
|
if (alias[find]) {
|
|
24
24
|
console.warn(warnMsg);
|
|
@@ -3,22 +3,22 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "../../../../chunk-
|
|
6
|
+
Sxs,
|
|
7
|
+
aUs,
|
|
8
|
+
sUs
|
|
9
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
10
10
|
import "../../../../chunk-IAWYWZSL.js";
|
|
11
11
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
12
12
|
|
|
13
13
|
// ../../boilerplates/shared/dist/files/$README.md.js
|
|
14
14
|
async function getReadme(props) {
|
|
15
|
-
const content = await
|
|
15
|
+
const content = await Sxs(props);
|
|
16
16
|
const flags = Array.from(props.meta.BATI).filter((f) => f !== "force").map((f) => `--${f}`).join(" ");
|
|
17
|
-
const v =
|
|
17
|
+
const v = aUs();
|
|
18
18
|
const intro = `Generated with [vike.dev/new](https://vike.dev/new) ([version ${v.semver.at(-1)}](https://www.npmjs.com/package/create-vike/v/${v.version})) using this command:
|
|
19
19
|
|
|
20
20
|
\`\`\`sh
|
|
21
|
-
${
|
|
21
|
+
${sUs()} ${flags}
|
|
22
22
|
\`\`\`
|
|
23
23
|
`;
|
|
24
24
|
content.addMarkdown(intro, {
|
|
@@ -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
|
+
Sxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/shared/dist/files/$TODO.md.js
|
|
12
12
|
var todoIntro = "The following steps need to be performed before starting your application.";
|
|
13
13
|
async function getTodo(props) {
|
|
14
|
-
const content = await
|
|
14
|
+
const content = await Sxs(props);
|
|
15
15
|
content.addMarkdown(todoIntro, {
|
|
16
16
|
wrapper: {
|
|
17
17
|
section: "intro"
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
xxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -52,11 +52,11 @@ var require_package = __commonJS({
|
|
|
52
52
|
license: "MIT",
|
|
53
53
|
devDependencies: {
|
|
54
54
|
"@batijs/compile": "workspace:*",
|
|
55
|
-
"@cloudflare/workers-types": "^4.
|
|
56
|
-
"@types/node": "^20.19.
|
|
55
|
+
"@cloudflare/workers-types": "^4.20251121.0",
|
|
56
|
+
"@types/node": "^20.19.25",
|
|
57
57
|
"@universal-middleware/core": "^0.4.13",
|
|
58
58
|
vike: "^0.4.247",
|
|
59
|
-
vite: "^7.2.
|
|
59
|
+
vite: "^7.2.4"
|
|
60
60
|
},
|
|
61
61
|
files: [
|
|
62
62
|
"dist/"
|
|
@@ -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 xxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
81
81
|
return packageJson.addDependencies(["@universal-middleware/core"]);
|
|
82
82
|
}
|
|
83
83
|
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
|
+
Sxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.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 Sxs(props);
|
|
14
14
|
const about = `
|
|
15
15
|
## Vike
|
|
16
16
|
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
xxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,14 +51,14 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@types/node": "^20.19.
|
|
54
|
+
"@types/node": "^20.19.25",
|
|
55
55
|
"solid-js": "^1.9.10",
|
|
56
56
|
tailwindcss: "^4.1.17",
|
|
57
57
|
typescript: "^5.9.3",
|
|
58
58
|
vike: "^0.4.247",
|
|
59
|
-
"vike-photon": "^0.1.
|
|
59
|
+
"vike-photon": "^0.1.19",
|
|
60
60
|
"vike-solid": "^0.7.13",
|
|
61
|
-
vite: "^7.2.
|
|
61
|
+
vite: "^7.2.4",
|
|
62
62
|
"vite-plugin-solid": "^2.11.10"
|
|
63
63
|
},
|
|
64
64
|
dependencies: {
|
|
@@ -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 xxs(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
|
+
Exs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.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 Exs(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
|
+
Cxs,
|
|
7
|
+
Tri
|
|
8
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.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 Cxs(props);
|
|
15
|
+
Tri(mod, {
|
|
16
16
|
from: "vike-solid/vite",
|
|
17
17
|
constructor: "vikeSolid"
|
|
18
18
|
});
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
xxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,11 +51,11 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@sentry/solid": "^10.
|
|
55
|
-
"@types/node": "^20.19.
|
|
54
|
+
"@sentry/solid": "^10.27.0",
|
|
55
|
+
"@types/node": "^20.19.25",
|
|
56
56
|
"solid-js": "^1.9.10",
|
|
57
57
|
"vike-solid": "^0.7.13",
|
|
58
|
-
vite: "^7.2.
|
|
58
|
+
vite: "^7.2.4"
|
|
59
59
|
},
|
|
60
60
|
dependencies: {
|
|
61
61
|
"@batijs/core": "workspace:*"
|
|
@@ -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 xxs(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,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
lUs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ import "../../../../chunk-DHZ7AZKP.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 lUs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
18
|
getEnv as default
|
|
@@ -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
|
+
Sxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/sqlite/dist/files/$TODO.md.js
|
|
12
12
|
async function getTodo(props) {
|
|
13
13
|
if (props.meta.BATI.hasD1) return;
|
|
14
|
-
const content = await
|
|
14
|
+
const content = await Sxs(props);
|
|
15
15
|
const todo = `
|
|
16
16
|
## Sqlite
|
|
17
17
|
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
xxs
|
|
7
|
+
} from "../../../../chunk-5DFJDTFL.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -52,8 +52,8 @@ var require_package = __commonJS({
|
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
54
|
"@types/better-sqlite3": "^7.6.13",
|
|
55
|
-
"@types/node": "^20.19.
|
|
56
|
-
"better-sqlite3": "^12.4.
|
|
55
|
+
"@types/node": "^20.19.25",
|
|
56
|
+
"better-sqlite3": "^12.4.6",
|
|
57
57
|
dotenv: "^17.2.3",
|
|
58
58
|
tsx: "^4.20.6"
|
|
59
59
|
},
|
|
@@ -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 xxs(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
|