@batijs/cli 0.0.499 → 0.0.501
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/{$README.md.js → $TODO.md.js} +7 -7
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +6 -46
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +59 -0
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/{$README.md.js → $TODO.md.js} +8 -10
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/{$README.md.js → $TODO.md.js} +7 -7
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +7 -13
- package/dist/boilerplates/@batijs/mantine/files/{layouts/Layout.tsx → pages/+Layout.tsx} +7 -2
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +25 -0
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/{$README.md.js → $TODO.md.js} +8 -11
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +9 -9
- 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/files/{layouts/Layout.tsx → pages/+Layout.tsx} +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +0 -4
- package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +1 -3
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -9
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +30 -0
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +4 -4
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +3 -3
- 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 +8 -9
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +32 -0
- package/dist/boilerplates/@batijs/shared/hooks/after.js +11 -9
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +9 -9
- 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/files/{layouts/Layout.tsx → pages/+Layout.tsx} +1 -1
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +0 -4
- package/dist/boilerplates/@batijs/solid/types/pages/+config.d.ts +0 -2
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/{$README.md.js → $TODO.md.js} +8 -8
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
- 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 +3 -3
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/vue/files/pages/+Head.vue +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +0 -4
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/boilerplates.json +11 -0
- package/dist/{chunk-EHN5UPTR.js → chunk-SXCPSC7N.js} +26951 -26979
- package/dist/index.js +25 -82
- package/package.json +5 -5
- package/dist/boilerplates/@batijs/mantine/files/layouts/theme.ts +0 -9
- package/dist/boilerplates/@batijs/mantine/types/layouts/theme.d.ts +0 -3
- /package/dist/boilerplates/@batijs/mantine/files/{layouts/style.css → pages/Layout.css} +0 -0
- /package/dist/boilerplates/@batijs/mantine/types/{layouts/Layout.d.ts → pages/+Layout.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/react/files/{layouts → pages}/Layout.css +0 -0
- /package/dist/boilerplates/@batijs/react/types/{layouts/Layout.d.ts → pages/+Layout.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/shadcn-ui/files/{layouts → pages}/!tailwind.css +0 -0
- /package/dist/boilerplates/@batijs/solid/files/{layouts → pages}/Layout.css +0 -0
- /package/dist/boilerplates/@batijs/solid/types/{layouts/Layout.d.ts → pages/+Layout.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/tailwindcss/files/{layouts → pages}/tailwind.css +0 -0
- /package/dist/boilerplates/@batijs/vue/files/{layouts/Layout.vue → pages/+Layout.vue} +0 -0
|
@@ -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
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -88,7 +88,7 @@ var require_package = __commonJS({
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
async function getPackageJson(props) {
|
|
91
|
-
const packageJson = await
|
|
91
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
92
92
|
return packageJson.setScript("shadcn", {
|
|
93
93
|
value: "npx shadcn@latest",
|
|
94
94
|
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
|
+
YEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.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 YEs(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
|
+
JEs,
|
|
7
|
+
hir
|
|
8
|
+
} from "../../../../chunk-SXCPSC7N.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 JEs(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 = `${hir("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,23 +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
|
-
|
|
10
|
-
} from "../../../../chunk-EHN5UPTR.js";
|
|
6
|
+
EBs,
|
|
7
|
+
SBs,
|
|
8
|
+
zEs
|
|
9
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
11
10
|
import "../../../../chunk-IAWYWZSL.js";
|
|
12
11
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
13
12
|
|
|
14
13
|
// ../../boilerplates/shared/dist/files/$README.md.js
|
|
15
14
|
async function getReadme(props) {
|
|
16
|
-
const content = await
|
|
15
|
+
const content = await zEs(props);
|
|
17
16
|
const flags = Array.from(props.meta.BATI).filter((f) => f !== "force").map((f) => `--${f}`).join(" ");
|
|
18
|
-
const v =
|
|
19
|
-
const intro = `Generated with [vike.dev/new](https://vike.dev/new)
|
|
17
|
+
const v = EBs();
|
|
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:
|
|
20
19
|
|
|
21
20
|
\`\`\`sh
|
|
22
|
-
${
|
|
21
|
+
${SBs()} ${flags}
|
|
23
22
|
\`\`\`
|
|
24
23
|
`;
|
|
25
24
|
content.addMarkdown(intro, {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
|
+
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
zEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
|
+
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
+
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
|
+
|
|
11
|
+
// ../../boilerplates/shared/dist/files/$TODO.md.js
|
|
12
|
+
async function getTodo(props) {
|
|
13
|
+
const content = await zEs(props);
|
|
14
|
+
content.addMarkdown("The following steps need to be performed before starting your application.", {
|
|
15
|
+
wrapper: {
|
|
16
|
+
section: "intro"
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
content.addMarkdown("", {
|
|
20
|
+
position: "after",
|
|
21
|
+
filter: {
|
|
22
|
+
section: "document"
|
|
23
|
+
},
|
|
24
|
+
wrapper: {
|
|
25
|
+
section: "features"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return content;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
getTodo as default
|
|
32
|
+
};
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
// hooks/after.ts
|
|
2
|
-
import { readFile, rename, writeFile } from "node:fs/promises";
|
|
2
|
+
import { readFile, rename, unlink, writeFile } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
async function
|
|
5
|
-
const content = await readFile(join(cwd,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"utf-8"
|
|
10
|
-
);
|
|
4
|
+
async function cleanupMarkdown(cwd, filename) {
|
|
5
|
+
const content = await readFile(join(cwd, filename), "utf8");
|
|
6
|
+
const trimmed = content.replaceAll(/<!--bati:.*-->/g, "").replaceAll(/\n\n+/g, "\n\n").trimStart();
|
|
7
|
+
await writeFile(join(cwd, filename), trimmed, "utf-8");
|
|
8
|
+
return trimmed;
|
|
11
9
|
}
|
|
12
10
|
async function renameGitIgnore(cwd) {
|
|
13
11
|
await rename(join(cwd, "gitignore"), join(cwd, ".gitignore"));
|
|
14
12
|
}
|
|
15
13
|
async function onafter(cwd, _meta) {
|
|
16
|
-
await
|
|
14
|
+
await cleanupMarkdown(cwd, "README.md");
|
|
15
|
+
const content = await cleanupMarkdown(cwd, "TODO.md");
|
|
16
|
+
if (content.trim() === "") {
|
|
17
|
+
await unlink(join(cwd, "TODO.md"));
|
|
18
|
+
}
|
|
17
19
|
await renameGitIgnore(cwd);
|
|
18
20
|
}
|
|
19
21
|
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
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -89,7 +89,7 @@ var require_package = __commonJS({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
async function getPackageJson(props) {
|
|
92
|
-
const packageJson = await
|
|
92
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
93
93
|
return packageJson.addDependencies(["@universal-middleware/core"]);
|
|
94
94
|
}
|
|
95
95
|
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
|
+
zEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.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 zEs(props);
|
|
14
14
|
const about = `
|
|
15
15
|
|
|
16
16
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [SolidJS](https://www.solidjs.com/guides/getting-started).
|
|
@@ -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
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -76,12 +76,12 @@ var require_package = __commonJS({
|
|
|
76
76
|
"./components/Link": {
|
|
77
77
|
types: "./dist/types/components/Link.d.ts"
|
|
78
78
|
},
|
|
79
|
-
"./layouts/Layout": {
|
|
80
|
-
types: "./dist/types/layouts/Layout.d.ts"
|
|
81
|
-
},
|
|
82
79
|
"./pages/+Head": {
|
|
83
80
|
types: "./dist/types/pages/+Head.d.ts"
|
|
84
81
|
},
|
|
82
|
+
"./pages/+Layout": {
|
|
83
|
+
types: "./dist/types/pages/+Layout.d.ts"
|
|
84
|
+
},
|
|
85
85
|
"./pages/+config": {
|
|
86
86
|
types: "./dist/types/pages/+config.d.ts"
|
|
87
87
|
},
|
|
@@ -127,12 +127,12 @@ var require_package = __commonJS({
|
|
|
127
127
|
"components/Link": [
|
|
128
128
|
"./dist/types/components/Link.d.ts"
|
|
129
129
|
],
|
|
130
|
-
"layouts/Layout": [
|
|
131
|
-
"./dist/types/layouts/Layout.d.ts"
|
|
132
|
-
],
|
|
133
130
|
"pages/+Head": [
|
|
134
131
|
"./dist/types/pages/+Head.d.ts"
|
|
135
132
|
],
|
|
133
|
+
"pages/+Layout": [
|
|
134
|
+
"./dist/types/pages/+Layout.d.ts"
|
|
135
|
+
],
|
|
136
136
|
"pages/+config": [
|
|
137
137
|
"./dist/types/pages/+config.d.ts"
|
|
138
138
|
],
|
|
@@ -178,7 +178,7 @@ var require_package = __commonJS({
|
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
async function getPackageJson(props) {
|
|
181
|
-
const packageJson = await
|
|
181
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
182
182
|
return packageJson.addDevDependencies(["vite"]).addDependencies(["solid-js", "vike-solid", "vike"]);
|
|
183
183
|
}
|
|
184
184
|
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
|
+
YEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.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 YEs(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
|
+
JEs,
|
|
7
|
+
Zti
|
|
8
|
+
} from "../../../../chunk-SXCPSC7N.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 JEs(props);
|
|
15
|
+
Zti(mod, {
|
|
16
16
|
from: "vike-solid/vite",
|
|
17
17
|
constructor: "vikeSolid"
|
|
18
18
|
});
|
|
@@ -3,7 +3,7 @@ import "./Layout.css";
|
|
|
3
3
|
import "./tailwind.css";
|
|
4
4
|
import type { JSX } from "solid-js";
|
|
5
5
|
import logoUrl from "../assets/logo.svg";
|
|
6
|
-
import { Link } from "../components/Link
|
|
6
|
+
import { Link } from "../components/Link";
|
|
7
7
|
|
|
8
8
|
export default function Layout(props: { children?: JSX.Element }) {
|
|
9
9
|
return (
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import type { Config } from "vike/types";
|
|
2
2
|
import vikePhoton from "vike-photon/config";
|
|
3
3
|
import vikeSolid from "vike-solid/config";
|
|
4
|
-
import Layout from "../layouts/Layout.js";
|
|
5
4
|
|
|
6
5
|
// Default config (can be overridden by pages)
|
|
7
6
|
// https://vike.dev/config
|
|
8
7
|
|
|
9
8
|
export default {
|
|
10
|
-
// https://vike.dev/Layout
|
|
11
|
-
Layout,
|
|
12
|
-
|
|
13
9
|
// https://vike.dev/head-tags
|
|
14
10
|
title: "My Vike App",
|
|
15
11
|
description: "Demo showcasing Vike",
|
|
@@ -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
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -95,7 +95,7 @@ var require_package = __commonJS({
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
async function getPackageJson(props) {
|
|
98
|
-
const packageJson = await
|
|
98
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
99
99
|
return packageJson.addDependencies(["@sentry/solid"]);
|
|
100
100
|
}
|
|
101
101
|
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
|
+
CBs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.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 CBs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
18
|
getEnv as default
|
|
@@ -3,19 +3,19 @@ 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
|
+
zEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
|
-
// ../../boilerplates/sqlite/dist/files/$
|
|
12
|
-
async function
|
|
11
|
+
// ../../boilerplates/sqlite/dist/files/$TODO.md.js
|
|
12
|
+
async function getTodo(props) {
|
|
13
13
|
if (props.meta.BATI.hasD1) return;
|
|
14
|
-
const content = await
|
|
14
|
+
const content = await zEs(props);
|
|
15
15
|
const todo = `
|
|
16
|
-
##
|
|
16
|
+
## Sqlite
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Ensure that \`DATABASE_URL\` is configured in \`.env\` file, then create the database:
|
|
19
19
|
\`\`\`bash
|
|
20
20
|
pnpm sqlite:migrate # creates sqlite tables
|
|
21
21
|
\`\`\`
|
|
@@ -24,5 +24,5 @@ pnpm sqlite:migrate # creates sqlite tables
|
|
|
24
24
|
return content;
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
getTodo as default
|
|
28
28
|
};
|
|
@@ -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
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -111,7 +111,7 @@ var require_package = __commonJS({
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
async function getPackageJson(props) {
|
|
114
|
-
const packageJson = await
|
|
114
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
115
115
|
return packageJson.setScript("sqlite:migrate", {
|
|
116
116
|
value: "tsx ./database/sqlite/schema/all.ts",
|
|
117
117
|
precedence: 1
|
|
@@ -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
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -75,7 +75,7 @@ var require_package = __commonJS({
|
|
|
75
75
|
});
|
|
76
76
|
async function getPackageJson(props) {
|
|
77
77
|
const pkgjson = await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default);
|
|
78
|
-
const packageJson = await
|
|
78
|
+
const packageJson = await WEs(props, pkgjson);
|
|
79
79
|
return packageJson.addDevDependencies(["tailwindcss", "@tailwindcss/vite"]).addDevDependencies(["daisyui"], props.meta.BATI.has("daisyui"));
|
|
80
80
|
}
|
|
81
81
|
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
|
+
JEs,
|
|
7
|
+
Zti
|
|
8
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/tailwindcss/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
15
|
-
|
|
14
|
+
const mod = await JEs(props);
|
|
15
|
+
Zti(mod, {
|
|
16
16
|
from: "@tailwindcss/vite",
|
|
17
17
|
constructor: "tailwindcss"
|
|
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
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -91,7 +91,7 @@ var require_package = __commonJS({
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
async function getPackageJson(props) {
|
|
94
|
-
const packageJson = await
|
|
94
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
95
95
|
return packageJson.addDependencies(["telefunc", "@universal-middleware/core"]);
|
|
96
96
|
}
|
|
97
97
|
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
|
+
JEs,
|
|
7
|
+
Zti
|
|
8
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/telefunc/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
15
|
-
|
|
14
|
+
const mod = await JEs(props);
|
|
15
|
+
Zti(mod, {
|
|
16
16
|
from: "telefunc/vite",
|
|
17
17
|
constructor: "telefunc",
|
|
18
18
|
imported: "telefunc"
|
|
@@ -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
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -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 WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
101
101
|
return packageJson.addDependencies(["@trpc/server", "@trpc/client"]);
|
|
102
102
|
}
|
|
103
103
|
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
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -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 WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
101
101
|
return packageJson.addDevDependencies(["zod"]).addDependencies(["@ts-rest/core", "@ts-rest/serverless", "@universal-middleware/core"]);
|
|
102
102
|
}
|
|
103
103
|
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
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -71,7 +71,7 @@ var require_package = __commonJS({
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
async function getPackageJson(props) {
|
|
74
|
-
const packageJson = await
|
|
74
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
75
75
|
return packageJson.removeScript("prod").addDependencies(["@photonjs/vercel"]);
|
|
76
76
|
}
|
|
77
77
|
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
|
+
JEs
|
|
7
|
+
} from "../../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vercel/dist/files/pages/$+config.ts.js
|
|
12
12
|
async function getViteConfig(props) {
|
|
13
|
-
const mod = await
|
|
13
|
+
const mod = await JEs(props);
|
|
14
14
|
mod.exports.default.prerender = true;
|
|
15
15
|
return mod.generate().code;
|
|
16
16
|
}
|
|
@@ -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
|
+
zEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vue/dist/files/$README.md.js
|
|
12
12
|
async function getReadme(props) {
|
|
13
|
-
const content = await
|
|
13
|
+
const content = await zEs(props);
|
|
14
14
|
const about = `
|
|
15
15
|
|
|
16
16
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [Vue](https://vuejs.org/guide/quick-start.html).
|