@batijs/cli 0.0.286 → 0.0.288
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 +10 -5
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +24 -47
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +8 -3
- package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +3 -1
- package/dist/boilerplates/@batijs/aws/files/tests/aws_handler.spec.ts +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +15 -19
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +26 -42
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +8 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +10 -4
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +9 -10
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +10 -4
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +8 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +5 -2
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +96 -5
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +8 -3
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +19 -21
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +16 -13
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +15 -38
- package/dist/boilerplates/@batijs/express/files/$package.json.js +20 -34
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +20 -34
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +8 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +9 -10
- package/dist/boilerplates/@batijs/firebase-auth/files/firebase/$service-account.json.js +3 -1
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +8 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +20 -37
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +17 -49
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +21 -40
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +10 -4
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +9 -4
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +9 -17
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +10 -11
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +8 -3
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +17 -14
- package/dist/boilerplates/@batijs/react/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +11 -12
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +8 -3
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +10 -4
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +9 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +12 -5
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +14 -6
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +21 -25
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +8 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +10 -4
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +14 -6
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +11 -12
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +8 -3
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +10 -4
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +8 -3
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +12 -11
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +10 -15
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +10 -4
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +9 -11
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +8 -3
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +10 -4
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +8 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +18 -24
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +8 -3
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +11 -5
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +9 -9
- package/dist/chunk-BX6YHROU.js +202587 -0
- package/dist/chunk-LU7IBQI7.js +39 -0
- package/dist/index.js +776 -41
- package/dist/lib-NAFETZUN-TE4QDL3A.js +28258 -0
- package/package.json +6 -6
- package/dist/boilerplates/@batijs/shared-no-db/files/$package.json.js +0 -91
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/react-sentry/dist/files/$package.json.js
|
|
1
8
|
var __create = Object.create;
|
|
2
9
|
var __defProp = Object.defineProperty;
|
|
3
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -23,8 +30,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
30
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
31
|
mod
|
|
25
32
|
));
|
|
26
|
-
|
|
27
|
-
// package.json
|
|
28
33
|
var require_package = __commonJS({
|
|
29
34
|
"package.json"(exports, module) {
|
|
30
35
|
module.exports = {
|
|
@@ -44,7 +49,7 @@ var require_package = __commonJS({
|
|
|
44
49
|
"@batijs/compile": "workspace:*",
|
|
45
50
|
"@sentry/react": "^8.31.0",
|
|
46
51
|
"@types/node": "^18.19.14",
|
|
47
|
-
"@types/react": "^18.3.
|
|
52
|
+
"@types/react": "^18.3.9",
|
|
48
53
|
"@types/react-dom": "^18.3.0",
|
|
49
54
|
react: "^18.3.1",
|
|
50
55
|
"react-dom": "^18.3.1",
|
|
@@ -87,14 +92,9 @@ var require_package = __commonJS({
|
|
|
87
92
|
};
|
|
88
93
|
}
|
|
89
94
|
});
|
|
90
|
-
|
|
91
|
-
// files/$package.json.ts
|
|
92
|
-
import { addDependency, loadAsJson } from "@batijs/core";
|
|
93
95
|
async function getPackageJson(props) {
|
|
94
|
-
const packageJson = await
|
|
95
|
-
return
|
|
96
|
-
dependencies: ["@sentry/react"]
|
|
97
|
-
});
|
|
96
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
97
|
+
return packageJson.addDependencies(["@sentry/react"]);
|
|
98
98
|
}
|
|
99
99
|
export {
|
|
100
100
|
getPackageJson as default
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
LLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/sentry/dist/files/$.env.js
|
|
3
8
|
async function getServerlessEnv(props) {
|
|
4
9
|
const sentryDNS = process.env.TEST_SENTRY_DSN;
|
|
5
10
|
let envContent = await props.readfile?.();
|
|
6
|
-
envContent =
|
|
11
|
+
envContent = LLs(
|
|
7
12
|
envContent,
|
|
8
13
|
"SENTRY_DSN",
|
|
9
14
|
sentryDNS ?? "",
|
|
10
15
|
"Sentry DNS. Used for Error Reporting on the Server"
|
|
11
16
|
);
|
|
12
|
-
envContent =
|
|
17
|
+
envContent = LLs(
|
|
13
18
|
envContent,
|
|
14
19
|
"PUBLIC_ENV__SENTRY_DSN",
|
|
15
20
|
"",
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
TLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/sentry/dist/files/$README.md.js
|
|
3
8
|
async function getReadme(props) {
|
|
4
|
-
const content = await
|
|
9
|
+
const content = await TLs(props);
|
|
5
10
|
const about = `
|
|
6
11
|
|
|
7
12
|
## Sentry Browser / Error Tracking & Performance Monitoring
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/sentry/dist/files/$package.json.js
|
|
1
8
|
var __create = Object.create;
|
|
2
9
|
var __defProp = Object.defineProperty;
|
|
3
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -23,8 +30,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
30
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
31
|
mod
|
|
25
32
|
));
|
|
26
|
-
|
|
27
|
-
// package.json
|
|
28
33
|
var require_package = __commonJS({
|
|
29
34
|
"package.json"(exports, module) {
|
|
30
35
|
module.exports = {
|
|
@@ -72,14 +77,9 @@ var require_package = __commonJS({
|
|
|
72
77
|
};
|
|
73
78
|
}
|
|
74
79
|
});
|
|
75
|
-
|
|
76
|
-
// files/$package.json.ts
|
|
77
|
-
import { addDependency, loadAsJson } from "@batijs/core";
|
|
78
80
|
async function getPackageJson(props) {
|
|
79
|
-
const packageJson = await
|
|
80
|
-
return
|
|
81
|
-
devDependencies: ["@sentry/vite-plugin"]
|
|
82
|
-
});
|
|
81
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
82
|
+
return packageJson.addDevDependencies(["@sentry/vite-plugin"]);
|
|
83
83
|
}
|
|
84
84
|
export {
|
|
85
85
|
getPackageJson as default
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ELs,
|
|
4
|
+
Pus,
|
|
5
|
+
cWr
|
|
6
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
7
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
8
|
+
|
|
9
|
+
// ../../boilerplates/sentry/dist/files/$vite.config.ts.js
|
|
3
10
|
async function getViteConfig(props) {
|
|
4
|
-
const mod = await
|
|
5
|
-
|
|
11
|
+
const mod = await ELs(props);
|
|
12
|
+
Pus(mod, {
|
|
6
13
|
from: "@sentry/vite-plugin",
|
|
7
14
|
constructor: "sentryVitePlugin",
|
|
8
15
|
imported: "sentryVitePlugin",
|
|
@@ -10,7 +17,7 @@ async function getViteConfig(props) {
|
|
|
10
17
|
sourcemaps: { disable: false }
|
|
11
18
|
}
|
|
12
19
|
});
|
|
13
|
-
|
|
20
|
+
cWr(mod.exports.default.$args[0], { build: { sourcemap: true } });
|
|
14
21
|
return mod.generate().code;
|
|
15
22
|
}
|
|
16
23
|
export {
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ELs,
|
|
4
|
+
JLe,
|
|
5
|
+
Uie,
|
|
6
|
+
eV
|
|
7
|
+
} from "../../../../../chunk-BX6YHROU.js";
|
|
8
|
+
import "../../../../../chunk-LU7IBQI7.js";
|
|
9
|
+
|
|
10
|
+
// ../../boilerplates/sentry/dist/files/pages/$+client.ts.js
|
|
3
11
|
async function getViteConfig(props) {
|
|
4
12
|
let mod;
|
|
5
13
|
try {
|
|
6
|
-
mod = await
|
|
14
|
+
mod = await ELs(props);
|
|
7
15
|
} catch {
|
|
8
|
-
mod =
|
|
16
|
+
mod = JLe("");
|
|
9
17
|
}
|
|
10
18
|
if (!props.meta.BATI.has("vue")) {
|
|
11
19
|
mod.imports.$prepend({
|
|
12
20
|
from: "../sentry.browser.config",
|
|
13
21
|
imported: "sentryBrowserConfig"
|
|
14
22
|
});
|
|
15
|
-
const e =
|
|
16
|
-
const c =
|
|
23
|
+
const e = Uie.functionCall("sentryBrowserConfig");
|
|
24
|
+
const c = eV(e).code;
|
|
17
25
|
mod.$ast.body.splice(mod.$ast.body.length - 1, 0, c);
|
|
18
26
|
}
|
|
19
27
|
return mod.generate().code;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
TLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/shadcn-ui/dist/files/$README.md.js
|
|
3
8
|
async function getReadme(props) {
|
|
4
|
-
const content = await
|
|
9
|
+
const content = await TLs(props);
|
|
5
10
|
const about = `
|
|
6
11
|
|
|
7
12
|
## shadcn/ui
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/shadcn-ui/dist/files/$package.json.js
|
|
1
8
|
var __create = Object.create;
|
|
2
9
|
var __defProp = Object.defineProperty;
|
|
3
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -23,8 +30,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
30
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
31
|
mod
|
|
25
32
|
));
|
|
26
|
-
|
|
27
|
-
// package.json
|
|
28
33
|
var require_package = __commonJS({
|
|
29
34
|
"package.json"(exports, module) {
|
|
30
35
|
module.exports = {
|
|
@@ -48,7 +53,7 @@ var require_package = __commonJS({
|
|
|
48
53
|
clsx: "^2.1.1",
|
|
49
54
|
"lucide-react": "^0.445.0",
|
|
50
55
|
"tailwind-merge": "^2.5.2",
|
|
51
|
-
tailwindcss: "^3.4.
|
|
56
|
+
tailwindcss: "^3.4.13",
|
|
52
57
|
"tailwindcss-animate": "^1.0.7"
|
|
53
58
|
},
|
|
54
59
|
dependencies: {
|
|
@@ -83,29 +88,20 @@ var require_package = __commonJS({
|
|
|
83
88
|
};
|
|
84
89
|
}
|
|
85
90
|
});
|
|
86
|
-
|
|
87
|
-
// files/$package.json.ts
|
|
88
|
-
import { addDependency, loadAsJson, setScripts } from "@batijs/core";
|
|
89
91
|
async function getPackageJson(props) {
|
|
90
|
-
const packageJson = await
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"clsx",
|
|
104
|
-
"tailwind-merge",
|
|
105
|
-
"lucide-react",
|
|
106
|
-
"@radix-ui/react-icons"
|
|
107
|
-
]
|
|
108
|
-
});
|
|
92
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
93
|
+
return packageJson.setScript("shadcn", {
|
|
94
|
+
value: "npx shadcn@latest",
|
|
95
|
+
precedence: 1,
|
|
96
|
+
warnIfReplaced: true
|
|
97
|
+
}).addDependencies([
|
|
98
|
+
"tailwindcss-animate",
|
|
99
|
+
"class-variance-authority",
|
|
100
|
+
"clsx",
|
|
101
|
+
"tailwind-merge",
|
|
102
|
+
"lucide-react",
|
|
103
|
+
"@radix-ui/react-icons"
|
|
104
|
+
]);
|
|
109
105
|
}
|
|
110
106
|
export {
|
|
111
107
|
getPackageJson as default
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
SLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/shadcn-ui/dist/files/$tsconfig.json.js
|
|
3
8
|
async function getTsConfig(props) {
|
|
4
|
-
const tsConfig = await
|
|
9
|
+
const tsConfig = await SLs(props);
|
|
5
10
|
tsConfig.compilerOptions.paths = {
|
|
6
11
|
...tsConfig.compilerOptions?.paths ?? {},
|
|
7
12
|
"@/*": ["./*"]
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ELs,
|
|
4
|
+
iWr
|
|
5
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
7
|
+
|
|
8
|
+
// ../../boilerplates/shadcn-ui/dist/files/$vite.config.ts.js
|
|
3
9
|
async function getViteConfig(props) {
|
|
4
|
-
const mod = await
|
|
10
|
+
const mod = await ELs(props);
|
|
5
11
|
const replacement = `new URL("./", import.meta.url).pathname`;
|
|
6
12
|
addResolveAlias(mod, "@", replacement);
|
|
7
13
|
return mod.generate().code.replace(`"{{PLACEHOLDER_ALIAS}}"`, replacement);
|
|
8
14
|
}
|
|
9
15
|
function addResolveAlias(mod, find, replacement) {
|
|
10
16
|
const alias = mod.exports.default.$args[0]?.resolve?.alias ?? {};
|
|
11
|
-
const warnMsg = `${
|
|
17
|
+
const warnMsg = `${iWr("WARN")}: new resolve.alias: \`"${find}":${replacement}\` replaced existing in vite.config.ts.`;
|
|
12
18
|
if (alias?.length === void 0) {
|
|
13
19
|
if (alias[find]) {
|
|
14
20
|
console.warn(warnMsg);
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
GLs,
|
|
4
|
+
KLs,
|
|
5
|
+
TLs,
|
|
6
|
+
sOs
|
|
7
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
8
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
9
|
+
|
|
10
|
+
// ../../boilerplates/shared/dist/files/$README.md.js
|
|
3
11
|
async function getReadme(props) {
|
|
4
|
-
const content = await
|
|
12
|
+
const content = await TLs(props);
|
|
5
13
|
const flags = Array.from(props.meta.BATI).filter((f) => f !== "force").map((f) => `--${f}`).join(" ");
|
|
6
|
-
const v =
|
|
7
|
-
const intro = `Generated with [Bati](https://batijs.dev) ${`(${
|
|
14
|
+
const v = GLs();
|
|
15
|
+
const intro = `Generated with [Bati](https://batijs.dev) ${`(${sOs.link("https://www.npmjs.com/package/create-bati/v/" + v.version, "version " + v.semver.at(-1))})`} using this command:
|
|
8
16
|
|
|
9
17
|
\`\`\`sh
|
|
10
|
-
${
|
|
18
|
+
${KLs()} ${flags}
|
|
11
19
|
\`\`\`
|
|
12
20
|
`;
|
|
13
21
|
content.addIntro(intro);
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/shared-server/dist/files/$package.json.js
|
|
1
8
|
var __create = Object.create;
|
|
2
9
|
var __defProp = Object.defineProperty;
|
|
3
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -23,8 +30,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
30
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
31
|
mod
|
|
25
32
|
));
|
|
26
|
-
|
|
27
|
-
// package.json
|
|
28
33
|
var require_package = __commonJS({
|
|
29
34
|
"package.json"(exports, module) {
|
|
30
35
|
module.exports = {
|
|
@@ -86,14 +91,9 @@ var require_package = __commonJS({
|
|
|
86
91
|
};
|
|
87
92
|
}
|
|
88
93
|
});
|
|
89
|
-
|
|
90
|
-
// files/$package.json.ts
|
|
91
|
-
import { addDependency, loadAsJson } from "@batijs/core";
|
|
92
94
|
async function getPackageJson(props) {
|
|
93
|
-
const packageJson = await
|
|
94
|
-
return
|
|
95
|
-
dependencies: ["@universal-middleware/core"]
|
|
96
|
-
});
|
|
95
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
96
|
+
return packageJson.addDependencies(["@universal-middleware/core"]);
|
|
97
97
|
}
|
|
98
98
|
export {
|
|
99
99
|
getPackageJson as default
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
TLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/solid/dist/files/$README.md.js
|
|
3
8
|
async function getReadme(props) {
|
|
4
|
-
const content = await
|
|
9
|
+
const content = await TLs(props);
|
|
5
10
|
const about = `
|
|
6
11
|
|
|
7
12
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [SolidJS](https://www.solidjs.com/guides/getting-started).
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/solid/dist/files/$package.json.js
|
|
1
8
|
var __create = Object.create;
|
|
2
9
|
var __defProp = Object.defineProperty;
|
|
3
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -23,8 +30,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
30
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
31
|
mod
|
|
25
32
|
));
|
|
26
|
-
|
|
27
|
-
// package.json
|
|
28
33
|
var require_package = __commonJS({
|
|
29
34
|
"package.json"(exports, module) {
|
|
30
35
|
module.exports = {
|
|
@@ -43,8 +48,8 @@ var require_package = __commonJS({
|
|
|
43
48
|
devDependencies: {
|
|
44
49
|
"@batijs/compile": "workspace:*",
|
|
45
50
|
"@types/node": "^18.19.14",
|
|
46
|
-
"solid-js": "^1.8.
|
|
47
|
-
tailwindcss: "^3.4.
|
|
51
|
+
"solid-js": "^1.8.23",
|
|
52
|
+
tailwindcss: "^3.4.13",
|
|
48
53
|
typescript: "^5.6.2",
|
|
49
54
|
vike: "^0.4.196",
|
|
50
55
|
"vike-solid": "^0.7.5",
|
|
@@ -167,15 +172,9 @@ var require_package = __commonJS({
|
|
|
167
172
|
};
|
|
168
173
|
}
|
|
169
174
|
});
|
|
170
|
-
|
|
171
|
-
// files/$package.json.ts
|
|
172
|
-
import { addDependency, loadAsJson } from "@batijs/core";
|
|
173
175
|
async function getPackageJson(props) {
|
|
174
|
-
const packageJson = await
|
|
175
|
-
return
|
|
176
|
-
devDependencies: ["vite"],
|
|
177
|
-
dependencies: ["solid-js", "vike-solid", "vike"]
|
|
178
|
-
});
|
|
176
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
177
|
+
return packageJson.addDevDependencies(["vite"]).addDependencies(["solid-js", "vike-solid", "vike"]);
|
|
179
178
|
}
|
|
180
179
|
export {
|
|
181
180
|
getPackageJson as default
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
SLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/solid/dist/files/$tsconfig.json.js
|
|
3
8
|
async function getTsConfig(props) {
|
|
4
|
-
const tsConfig = await
|
|
9
|
+
const tsConfig = await SLs(props);
|
|
5
10
|
tsConfig.compilerOptions.jsx = "preserve";
|
|
6
11
|
tsConfig.compilerOptions.jsxImportSource = "solid-js";
|
|
7
12
|
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vike-solid/client"];
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ELs,
|
|
4
|
+
Pus
|
|
5
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
6
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
7
|
+
|
|
8
|
+
// ../../boilerplates/solid/dist/files/$vite.config.ts.js
|
|
3
9
|
async function getViteConfig(props) {
|
|
4
|
-
const mod = await
|
|
5
|
-
|
|
10
|
+
const mod = await ELs(props);
|
|
11
|
+
Pus(mod, {
|
|
6
12
|
from: "vike-solid/vite",
|
|
7
13
|
constructor: "vikeSolid"
|
|
8
14
|
});
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/solid-sentry/dist/files/$package.json.js
|
|
1
8
|
var __create = Object.create;
|
|
2
9
|
var __defProp = Object.defineProperty;
|
|
3
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -23,8 +30,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
30
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
31
|
mod
|
|
25
32
|
));
|
|
26
|
-
|
|
27
|
-
// package.json
|
|
28
33
|
var require_package = __commonJS({
|
|
29
34
|
"package.json"(exports, module) {
|
|
30
35
|
module.exports = {
|
|
@@ -44,7 +49,7 @@ var require_package = __commonJS({
|
|
|
44
49
|
"@batijs/compile": "workspace:*",
|
|
45
50
|
"@sentry/solid": "^8.31.0",
|
|
46
51
|
"@types/node": "^18.19.14",
|
|
47
|
-
"solid-js": "^1.8.
|
|
52
|
+
"solid-js": "^1.8.23",
|
|
48
53
|
"vike-solid": "^0.7.5",
|
|
49
54
|
vite: "^5.4.7"
|
|
50
55
|
},
|
|
@@ -85,14 +90,9 @@ var require_package = __commonJS({
|
|
|
85
90
|
};
|
|
86
91
|
}
|
|
87
92
|
});
|
|
88
|
-
|
|
89
|
-
// files/$package.json.ts
|
|
90
|
-
import { addDependency, loadAsJson } from "@batijs/core";
|
|
91
93
|
async function getPackageJson(props) {
|
|
92
|
-
const packageJson = await
|
|
93
|
-
return
|
|
94
|
-
dependencies: ["@sentry/solid"]
|
|
95
|
-
});
|
|
94
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
95
|
+
return packageJson.addDependencies(["@sentry/solid"]);
|
|
96
96
|
}
|
|
97
97
|
export {
|
|
98
98
|
getPackageJson as default
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
LLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/sqlite/dist/files/$.env.js
|
|
3
8
|
async function getEnv(props) {
|
|
4
9
|
if (props.meta.BATI.hasD1) return;
|
|
5
10
|
const envContent = await props.readfile?.();
|
|
6
|
-
return
|
|
11
|
+
return LLs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
|
|
7
12
|
}
|
|
8
13
|
export {
|
|
9
14
|
getEnv as default
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
TLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/sqlite/dist/files/$README.md.js
|
|
3
8
|
async function getReadme(props) {
|
|
4
|
-
const content = await
|
|
9
|
+
const content = await TLs(props);
|
|
5
10
|
const todo = `
|
|
6
11
|
## *Sqlite*
|
|
7
12
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
xLs
|
|
4
|
+
} from "../../../../chunk-BX6YHROU.js";
|
|
5
|
+
import "../../../../chunk-LU7IBQI7.js";
|
|
6
|
+
|
|
7
|
+
// ../../boilerplates/sqlite/dist/files/$package.json.js
|
|
1
8
|
var __create = Object.create;
|
|
2
9
|
var __defProp = Object.defineProperty;
|
|
3
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -23,8 +30,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
30
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
31
|
mod
|
|
25
32
|
));
|
|
26
|
-
|
|
27
|
-
// package.json
|
|
28
33
|
var require_package = __commonJS({
|
|
29
34
|
"package.json"(exports, module) {
|
|
30
35
|
module.exports = {
|
|
@@ -113,16 +118,12 @@ var require_package = __commonJS({
|
|
|
113
118
|
};
|
|
114
119
|
}
|
|
115
120
|
});
|
|
116
|
-
|
|
117
|
-
// files/$package.json.ts
|
|
118
|
-
import { addDependency, loadAsJson } from "@batijs/core";
|
|
119
121
|
async function getPackageJson(props) {
|
|
120
|
-
const packageJson = await
|
|
121
|
-
packageJson.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
});
|
|
122
|
+
const packageJson = await xLs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
123
|
+
return packageJson.setScript("sqlite:migrate", {
|
|
124
|
+
value: "tsx ./database/sqlite/schema/all.ts",
|
|
125
|
+
precedence: 1
|
|
126
|
+
}).addDevDependencies(["@types/better-sqlite3"]).addDevDependencies(["tsx"], ["sqlite:migrate"]).addDependencies(["better-sqlite3", "dotenv"]);
|
|
126
127
|
}
|
|
127
128
|
export {
|
|
128
129
|
getPackageJson as default
|