@batijs/cli 0.0.287 → 0.0.289
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 +5 -5
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +7 -6
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +19 -46
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/tests/aws_handler.spec.ts +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +10 -18
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +21 -42
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -8
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +5 -8
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +91 -5
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +14 -19
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +11 -11
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +10 -37
- package/dist/boilerplates/@batijs/express/files/$package.json.js +15 -33
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +15 -33
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +4 -8
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +15 -36
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +12 -49
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +16 -39
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +4 -22
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +5 -9
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +12 -12
- package/dist/boilerplates/@batijs/react/files/$README.md.js +6 -5
- package/dist/boilerplates/@batijs/react/files/$package.json.js +6 -10
- 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 +5 -8
- 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/$package.json.js +4 -7
- 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 +16 -24
- 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 +33 -11
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +6 -10
- 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 +5 -8
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +7 -9
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +5 -13
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -9
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +4 -7
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +13 -22
- 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-sentry/files/$package.json.js +4 -7
- package/dist/{chunk-ZPMGCQ2D.js → chunk-TUL4TJRN.js} +118739 -115559
- package/dist/index.js +99 -20
- package/package.json +6 -6
- package/dist/boilerplates/@batijs/shared-no-db/files/$package.json.js +0 -94
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
3
|
+
Mhs,
|
|
4
|
+
uWs
|
|
5
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
6
6
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
7
|
|
|
8
8
|
// ../../boilerplates/hono/dist/files/$vite.config.ts.js
|
|
9
9
|
async function getViteConfig(props) {
|
|
10
|
-
const mod = await
|
|
11
|
-
|
|
10
|
+
const mod = await uWs(props);
|
|
11
|
+
Mhs(mod, {
|
|
12
12
|
from: "@hono/vite-dev-server",
|
|
13
13
|
constructor: "devServer",
|
|
14
14
|
options: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
vWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/lucia-auth/dist/files/$.env.js
|
|
@@ -9,13 +9,13 @@ async function getEnv(props) {
|
|
|
9
9
|
const githubClientId = process.env.TEST_GITHUB_CLIENT_ID;
|
|
10
10
|
const githubClientSecret = process.env.TEST_GITHUB_CLIENT_SECRET;
|
|
11
11
|
let envContent = await props.readfile?.();
|
|
12
|
-
envContent =
|
|
12
|
+
envContent = vWs(
|
|
13
13
|
envContent,
|
|
14
14
|
"GITHUB_CLIENT_ID",
|
|
15
15
|
githubClientId ?? "",
|
|
16
16
|
"GitHub Client ID. Used for authentication"
|
|
17
17
|
);
|
|
18
|
-
envContent =
|
|
18
|
+
envContent = vWs(
|
|
19
19
|
envContent,
|
|
20
20
|
"GITHUB_CLIENT_SECRET",
|
|
21
21
|
githubClientSecret ?? "",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/lucia-auth/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *Example: Lucia Auth with GitHub OAuth*
|
|
12
12
|
- Create a [GitHub OAuth app](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app). Set the Authorization callback URL to \`http://localhost:3000/api/login/github/callback\`.
|
|
@@ -26,8 +26,8 @@ GITHUB_CLIENT_SECRET=<Client Secret>
|
|
|
26
26
|
> GitHub login route : \`http://localhost:3000/api/login/github\`.
|
|
27
27
|
> Logout route : \`http://localhost:3000/api/auth/logout\`.
|
|
28
28
|
`;
|
|
29
|
-
content.
|
|
30
|
-
return content
|
|
29
|
+
content.addMarkdownFeature(todo, "lucia-auth");
|
|
30
|
+
return content;
|
|
31
31
|
}
|
|
32
32
|
export {
|
|
33
33
|
getReadme as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/lucia-auth/dist/files/$package.json.js
|
|
@@ -103,25 +102,8 @@ var require_package = __commonJS({
|
|
|
103
102
|
}
|
|
104
103
|
});
|
|
105
104
|
async function getPackageJson(props) {
|
|
106
|
-
const packageJson = await
|
|
107
|
-
|
|
108
|
-
devDependencies: ["@types/cookie"],
|
|
109
|
-
dependencies: [
|
|
110
|
-
"arctic",
|
|
111
|
-
"cookie",
|
|
112
|
-
"lucia",
|
|
113
|
-
"@universal-middleware/core",
|
|
114
|
-
"dotenv",
|
|
115
|
-
...props.meta.BATI.has("drizzle") ? ["@lucia-auth/adapter-drizzle"] : ["@lucia-auth/adapter-sqlite"]
|
|
116
|
-
]
|
|
117
|
-
});
|
|
118
|
-
if (!props.meta.BATI.hasD1) {
|
|
119
|
-
g7s(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default), {
|
|
120
|
-
devDependencies: ["@types/better-sqlite3"],
|
|
121
|
-
dependencies: ["better-sqlite3"]
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
return packageJson;
|
|
105
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
106
|
+
return packageJson.addDevDependencies(["@types/cookie"]).addDependencies(["arctic", "cookie", "lucia", "@universal-middleware/core", "dotenv"]).addDependencies(["@lucia-auth/adapter-drizzle"], props.meta.BATI.has("drizzle")).addDependencies(["@lucia-auth/adapter-sqlite"], !props.meta.BATI.has("drizzle")).addDevDependencies(["@types/better-sqlite3"], !props.meta.BATI.hasD1).addDependencies(["better-sqlite3"], !props.meta.BATI.hasD1);
|
|
125
107
|
}
|
|
126
108
|
export {
|
|
127
109
|
getPackageJson as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/mantine/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## Mantine
|
|
12
12
|
|
|
@@ -20,8 +20,8 @@ If you add more packages, make sure to update the \`layouts/LayoutDefault.tsx\`
|
|
|
20
20
|
|
|
21
21
|
The theme is defined in \`layouts/theme.ts\`.
|
|
22
22
|
`;
|
|
23
|
-
content.
|
|
24
|
-
return content
|
|
23
|
+
content.addMarkdownFeature(todo, "mantine");
|
|
24
|
+
return content;
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
27
|
getReadme as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/mantine/dist/files/$package.json.js
|
|
@@ -51,7 +50,7 @@ var require_package = __commonJS({
|
|
|
51
50
|
"@mantine/core": "^7.12.2",
|
|
52
51
|
"@mantine/hooks": "^7.12.2",
|
|
53
52
|
"@types/node": "^18.19.14",
|
|
54
|
-
"@types/react": "^18.3.
|
|
53
|
+
"@types/react": "^18.3.9",
|
|
55
54
|
"@types/react-dom": "^18.3.0",
|
|
56
55
|
postcss: "^8.4.47",
|
|
57
56
|
"postcss-preset-mantine": "^1.17.0",
|
|
@@ -113,11 +112,8 @@ var require_package = __commonJS({
|
|
|
113
112
|
}
|
|
114
113
|
});
|
|
115
114
|
async function getPackageJson(props) {
|
|
116
|
-
const packageJson = await
|
|
117
|
-
return
|
|
118
|
-
devDependencies: ["postcss", "postcss-preset-mantine", "postcss-simple-vars"],
|
|
119
|
-
dependencies: ["@mantine/core", "@mantine/hooks"]
|
|
120
|
-
});
|
|
115
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
116
|
+
return packageJson.addDevDependencies(["postcss", "postcss-preset-mantine", "postcss-simple-vars"]).addDependencies(["@mantine/core", "@mantine/hooks"]);
|
|
121
117
|
}
|
|
122
118
|
export {
|
|
123
119
|
getPackageJson as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/prettier/dist/files/$package.json.js
|
|
@@ -66,10 +65,8 @@ var require_package = __commonJS({
|
|
|
66
65
|
}
|
|
67
66
|
});
|
|
68
67
|
async function getPackageJson(props) {
|
|
69
|
-
const packageJson = await
|
|
70
|
-
return
|
|
71
|
-
devDependencies: ["prettier"]
|
|
72
|
-
});
|
|
68
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
69
|
+
return packageJson.addDevDependencies(["prettier"]);
|
|
73
70
|
}
|
|
74
71
|
export {
|
|
75
72
|
getPackageJson as default
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
vWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/prisma/dist/files/$.env.js
|
|
8
8
|
async function getEnv(props) {
|
|
9
9
|
const envContent = await props.readfile?.();
|
|
10
|
-
return
|
|
10
|
+
return vWs(
|
|
11
11
|
envContent,
|
|
12
12
|
"DATABASE_URL",
|
|
13
13
|
"postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/prisma/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *Prisma*
|
|
12
12
|
### Setup
|
|
@@ -16,8 +16,8 @@ pnpx prisma init
|
|
|
16
16
|
\`\`\`
|
|
17
17
|
|
|
18
18
|
then follow instructions at <https://www.prisma.io/docs/getting-started/quickstart#2-model-your-data-in-the-prisma-schema>`;
|
|
19
|
-
content.
|
|
20
|
-
return content
|
|
19
|
+
content.addMarkdownFeature(todo, "prisma");
|
|
20
|
+
return content;
|
|
21
21
|
}
|
|
22
22
|
export {
|
|
23
23
|
getReadme as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/prisma/dist/files/$package.json.js
|
|
@@ -48,10 +47,10 @@ var require_package = __commonJS({
|
|
|
48
47
|
license: "MIT",
|
|
49
48
|
devDependencies: {
|
|
50
49
|
"@batijs/compile": "workspace:*",
|
|
51
|
-
"@prisma/client": "^5.
|
|
50
|
+
"@prisma/client": "^5.20.0",
|
|
52
51
|
"@types/node": "^18.19.14",
|
|
53
52
|
colorette: "^2.0.20",
|
|
54
|
-
prisma: "^5.
|
|
53
|
+
prisma: "^5.20.0"
|
|
55
54
|
},
|
|
56
55
|
dependencies: {
|
|
57
56
|
"@batijs/core": "workspace:*"
|
|
@@ -68,13 +67,14 @@ var require_package = __commonJS({
|
|
|
68
67
|
}
|
|
69
68
|
});
|
|
70
69
|
async function getPackageJson(props) {
|
|
71
|
-
const packageJson = await
|
|
72
|
-
packageJson.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
71
|
+
return packageJson.setScript("prisma:studio", {
|
|
72
|
+
value: "prisma studio",
|
|
73
|
+
precedence: 1
|
|
74
|
+
}).setScript("prisma:generate", {
|
|
75
|
+
value: "prisma generate",
|
|
76
|
+
precedence: 1
|
|
77
|
+
}).addDevDependencies(["prisma"]).addDependencies(["@prisma/client"]);
|
|
78
78
|
}
|
|
79
79
|
export {
|
|
80
80
|
getPackageJson as default
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/react/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const about = `
|
|
11
|
+
## React
|
|
11
12
|
|
|
12
13
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [React](https://react.dev/learn).
|
|
13
14
|
|
|
@@ -40,8 +41,8 @@ SSR is enabled by default. You can [disable it](https://vike.dev/ssr) for all yo
|
|
|
40
41
|
### HTML Streaming
|
|
41
42
|
|
|
42
43
|
You can enable/disable [HTML streaming](https://vike.dev/stream) for all your pages, or only for some pages while still using it for others.`;
|
|
43
|
-
content.
|
|
44
|
-
return content
|
|
44
|
+
content.addMarkdownFeature(about, "react");
|
|
45
|
+
return content;
|
|
45
46
|
}
|
|
46
47
|
export {
|
|
47
48
|
getReadme as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/react/dist/files/$package.json.js
|
|
@@ -53,12 +52,12 @@ var require_package = __commonJS({
|
|
|
53
52
|
"@batijs/compile": "workspace:*",
|
|
54
53
|
"@mantine/core": "^7.12.2",
|
|
55
54
|
"@types/node": "^18.19.14",
|
|
56
|
-
"@types/react": "^18.3.
|
|
55
|
+
"@types/react": "^18.3.9",
|
|
57
56
|
"@types/react-dom": "^18.3.0",
|
|
58
57
|
"@vitejs/plugin-react": "^4.3.1",
|
|
59
58
|
react: "^18.3.1",
|
|
60
59
|
"react-dom": "^18.3.1",
|
|
61
|
-
tailwindcss: "^3.4.
|
|
60
|
+
tailwindcss: "^3.4.13",
|
|
62
61
|
typescript: "^5.6.2",
|
|
63
62
|
vike: "^0.4.196",
|
|
64
63
|
"vike-react": "^0.5.7",
|
|
@@ -182,11 +181,8 @@ var require_package = __commonJS({
|
|
|
182
181
|
}
|
|
183
182
|
});
|
|
184
183
|
async function getPackageJson(props) {
|
|
185
|
-
const packageJson = await
|
|
186
|
-
return
|
|
187
|
-
devDependencies: ["vite", "@types/react", "@types/react-dom"],
|
|
188
|
-
dependencies: ["@vitejs/plugin-react", "react", "react-dom", "vike", "vike-react"]
|
|
189
|
-
});
|
|
184
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
185
|
+
return packageJson.addDevDependencies(["vite", "@types/react", "@types/react-dom"]).addDependencies(["@vitejs/plugin-react", "react", "react-dom", "vike", "vike-react"]);
|
|
190
186
|
}
|
|
191
187
|
export {
|
|
192
188
|
getPackageJson as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
cWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/react/dist/files/$tsconfig.json.js
|
|
8
8
|
async function getTsConfig(props) {
|
|
9
|
-
const tsConfig = await
|
|
9
|
+
const tsConfig = await cWs(props);
|
|
10
10
|
tsConfig.compilerOptions.jsx = "preserve";
|
|
11
11
|
tsConfig.compilerOptions.jsxImportSource = "react";
|
|
12
12
|
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vike-react"];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
3
|
+
Mhs,
|
|
4
|
+
uWs
|
|
5
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
6
6
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
7
|
|
|
8
8
|
// ../../boilerplates/react/dist/files/$vite.config.ts.js
|
|
9
9
|
async function getViteConfig(props) {
|
|
10
|
-
const mod = await
|
|
10
|
+
const mod = await uWs(props);
|
|
11
11
|
const reactOptions = props.meta.BATI.has("vercel") && props.meta.BATI.has("hattip") ? { jsxRuntime: "classic" } : {};
|
|
12
|
-
|
|
12
|
+
Mhs(mod, {
|
|
13
13
|
from: "@vitejs/plugin-react",
|
|
14
14
|
constructor: "react",
|
|
15
15
|
options: reactOptions
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/react-sentry/dist/files/$package.json.js
|
|
@@ -50,7 +49,7 @@ var require_package = __commonJS({
|
|
|
50
49
|
"@batijs/compile": "workspace:*",
|
|
51
50
|
"@sentry/react": "^8.31.0",
|
|
52
51
|
"@types/node": "^18.19.14",
|
|
53
|
-
"@types/react": "^18.3.
|
|
52
|
+
"@types/react": "^18.3.9",
|
|
54
53
|
"@types/react-dom": "^18.3.0",
|
|
55
54
|
react: "^18.3.1",
|
|
56
55
|
"react-dom": "^18.3.1",
|
|
@@ -94,10 +93,8 @@ var require_package = __commonJS({
|
|
|
94
93
|
}
|
|
95
94
|
});
|
|
96
95
|
async function getPackageJson(props) {
|
|
97
|
-
const packageJson = await
|
|
98
|
-
return
|
|
99
|
-
dependencies: ["@sentry/react"]
|
|
100
|
-
});
|
|
96
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
97
|
+
return packageJson.addDependencies(["@sentry/react"]);
|
|
101
98
|
}
|
|
102
99
|
export {
|
|
103
100
|
getPackageJson as default
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
vWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/sentry/dist/files/$.env.js
|
|
8
8
|
async function getServerlessEnv(props) {
|
|
9
9
|
const sentryDNS = process.env.TEST_SENTRY_DSN;
|
|
10
10
|
let envContent = await props.readfile?.();
|
|
11
|
-
envContent =
|
|
11
|
+
envContent = vWs(
|
|
12
12
|
envContent,
|
|
13
13
|
"SENTRY_DSN",
|
|
14
14
|
sentryDNS ?? "",
|
|
15
15
|
"Sentry DNS. Used for Error Reporting on the Server"
|
|
16
16
|
);
|
|
17
|
-
envContent =
|
|
17
|
+
envContent = vWs(
|
|
18
18
|
envContent,
|
|
19
19
|
"PUBLIC_ENV__SENTRY_DSN",
|
|
20
20
|
"",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/sentry/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const about = `
|
|
11
11
|
|
|
12
12
|
## Sentry Browser / Error Tracking & Performance Monitoring
|
|
@@ -28,8 +28,8 @@ You have to configure \`SENTRY_ORG\`, \`SENTRY_PROJECT\` and \`SENTRY_AUTH_TOKEN
|
|
|
28
28
|
3. check your [Sentry Dashboard](https://sentry.io) for new Errors.
|
|
29
29
|
|
|
30
30
|
`;
|
|
31
|
-
content.
|
|
32
|
-
return content
|
|
31
|
+
content.addMarkdownFeature(about, "sentry");
|
|
32
|
+
return content;
|
|
33
33
|
}
|
|
34
34
|
export {
|
|
35
35
|
getReadme as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-ZPMGCQ2D.js";
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
6
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
6
|
|
|
8
7
|
// ../../boilerplates/sentry/dist/files/$package.json.js
|
|
@@ -79,10 +78,8 @@ var require_package = __commonJS({
|
|
|
79
78
|
}
|
|
80
79
|
});
|
|
81
80
|
async function getPackageJson(props) {
|
|
82
|
-
const packageJson = await
|
|
83
|
-
return
|
|
84
|
-
devDependencies: ["@sentry/vite-plugin"]
|
|
85
|
-
});
|
|
81
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
82
|
+
return packageJson.addDevDependencies(["@sentry/vite-plugin"]);
|
|
86
83
|
}
|
|
87
84
|
export {
|
|
88
85
|
getPackageJson as default
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "../../../../chunk-
|
|
3
|
+
$Gr,
|
|
4
|
+
Mhs,
|
|
5
|
+
uWs
|
|
6
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
7
7
|
import "../../../../chunk-LU7IBQI7.js";
|
|
8
8
|
|
|
9
9
|
// ../../boilerplates/sentry/dist/files/$vite.config.ts.js
|
|
10
10
|
async function getViteConfig(props) {
|
|
11
|
-
const mod = await
|
|
12
|
-
|
|
11
|
+
const mod = await uWs(props);
|
|
12
|
+
Mhs(mod, {
|
|
13
13
|
from: "@sentry/vite-plugin",
|
|
14
14
|
constructor: "sentryVitePlugin",
|
|
15
15
|
imported: "sentryVitePlugin",
|
|
@@ -17,7 +17,7 @@ async function getViteConfig(props) {
|
|
|
17
17
|
sourcemaps: { disable: false }
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
|
|
20
|
+
$Gr(mod.exports.default.$args[0], { build: { sourcemap: true } });
|
|
21
21
|
return mod.generate().code;
|
|
22
22
|
}
|
|
23
23
|
export {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "../../../../../chunk-
|
|
3
|
+
M8e,
|
|
4
|
+
dV,
|
|
5
|
+
uWs,
|
|
6
|
+
use
|
|
7
|
+
} from "../../../../../chunk-TUL4TJRN.js";
|
|
8
8
|
import "../../../../../chunk-LU7IBQI7.js";
|
|
9
9
|
|
|
10
10
|
// ../../boilerplates/sentry/dist/files/pages/$+client.ts.js
|
|
11
11
|
async function getViteConfig(props) {
|
|
12
12
|
let mod;
|
|
13
13
|
try {
|
|
14
|
-
mod = await
|
|
14
|
+
mod = await uWs(props);
|
|
15
15
|
} catch {
|
|
16
|
-
mod =
|
|
16
|
+
mod = M8e("");
|
|
17
17
|
}
|
|
18
18
|
if (!props.meta.BATI.has("vue")) {
|
|
19
19
|
mod.imports.$prepend({
|
|
20
20
|
from: "../sentry.browser.config",
|
|
21
21
|
imported: "sentryBrowserConfig"
|
|
22
22
|
});
|
|
23
|
-
const e =
|
|
24
|
-
const c =
|
|
23
|
+
const e = use.functionCall("sentryBrowserConfig");
|
|
24
|
+
const c = dV(e).code;
|
|
25
25
|
mod.$ast.body.splice(mod.$ast.body.length - 1, 0, c);
|
|
26
26
|
}
|
|
27
27
|
return mod.generate().code;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-TUL4TJRN.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/shadcn-ui/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const about = `
|
|
11
11
|
|
|
12
12
|
## shadcn/ui
|
|
@@ -33,8 +33,8 @@ async function getReadme(props) {
|
|
|
33
33
|
more [shadcn/ui components](https://ui.shadcn.com/docs/components/accordion)
|
|
34
34
|
|
|
35
35
|
`;
|
|
36
|
-
content.
|
|
37
|
-
return content
|
|
36
|
+
content.addMarkdownFeature(about, "shadcn-ui");
|
|
37
|
+
return content;
|
|
38
38
|
}
|
|
39
39
|
export {
|
|
40
40
|
getReadme as default
|