@batijs/cli 0.0.311 → 0.0.313
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 +3 -3
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +4 -4
- 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 -4
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +12 -8
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +4 -4
- 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 +4 -4
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +6 -4
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/express/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +4 -4
- 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 +3 -3
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +6 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
- 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 +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +4 -4
- 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 +9 -9
- package/dist/boilerplates/@batijs/shared/hooks/after.js +21 -0
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +4 -4
- 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 +4 -4
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +4 -4
- 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 +3 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +4 -4
- 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 -4
- package/dist/boilerplates/boilerplates.json +2 -1
- package/dist/{chunk-XBRZBI3K.js → chunk-BOFKQILG.js} +105869 -106391
- package/dist/index.js +21 -95
- package/dist/{jiti-GY3WFVF7-AVYYESPC.js → jiti-QYPC42DC-IKOSD6A6.js} +1106 -1102
- package/package.json +6 -6
- package/dist/boilerplates/@batijs/shared/files/.gitignore +0 -146
- /package/dist/boilerplates/@batijs/{prettier/files/.prettierignore → shared/files/gitignore} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/firebase-auth/dist/files/$package.json.js
|
|
@@ -47,7 +47,7 @@ var require_package = __commonJS({
|
|
|
47
47
|
license: "MIT",
|
|
48
48
|
devDependencies: {
|
|
49
49
|
"@batijs/compile": "workspace:*",
|
|
50
|
-
"@types/node": "^18.19.
|
|
50
|
+
"@types/node": "^18.19.67",
|
|
51
51
|
"@universal-middleware/core": "^0.3.0",
|
|
52
52
|
cookie: "^1.0.2",
|
|
53
53
|
dotenv: "^16.4.5",
|
|
@@ -114,7 +114,7 @@ var require_package = __commonJS({
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
async function getPackageJson(props) {
|
|
117
|
-
const packageJson = await
|
|
117
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
118
118
|
return packageJson.addDependencies([
|
|
119
119
|
"firebase",
|
|
120
120
|
"firebase-admin",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
sXs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/google-analytics/dist/files/$.env.js
|
|
8
8
|
async function getEnv(props) {
|
|
9
9
|
const envContent = await props.readfile?.();
|
|
10
|
-
return
|
|
10
|
+
return sXs(
|
|
11
11
|
envContent,
|
|
12
12
|
"PUBLIC_ENV__GOOGLE_ANALYTICS",
|
|
13
13
|
"G-XXXXXXXXXX",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/h3/dist/files/$package.json.js
|
|
@@ -51,7 +51,7 @@ var require_package = __commonJS({
|
|
|
51
51
|
"@hattip/polyfills": "^0.0.49",
|
|
52
52
|
"@trpc/server": "^10.45.2",
|
|
53
53
|
"@types/express": "^4.17.21",
|
|
54
|
-
"@types/node": "^18.19.
|
|
54
|
+
"@types/node": "^18.19.67",
|
|
55
55
|
"@types/serve-static": "^1.15.7",
|
|
56
56
|
"@universal-middleware/h3": "^0.3.0",
|
|
57
57
|
"cross-env": "^7.0.3",
|
|
@@ -90,7 +90,7 @@ var require_package = __commonJS({
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
async function getPackageJson(props) {
|
|
93
|
-
const packageJson = await
|
|
93
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
94
94
|
return packageJson.setScript("dev", {
|
|
95
95
|
value: "tsx ./h3-entry.ts",
|
|
96
96
|
precedence: 20,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/hattip/dist/files/$package.json.js
|
|
@@ -59,7 +59,7 @@ var require_package = __commonJS({
|
|
|
59
59
|
"@hattip/walk": "^0.0.49",
|
|
60
60
|
"@trpc/server": "^10.45.2",
|
|
61
61
|
"@types/aws-lambda": "^8.10.146",
|
|
62
|
-
"@types/node": "^18.19.
|
|
62
|
+
"@types/node": "^18.19.67",
|
|
63
63
|
"@universal-middleware/hattip": "^0.3.0",
|
|
64
64
|
"cross-env": "^7.0.3",
|
|
65
65
|
dotenv: "^16.4.5",
|
|
@@ -101,7 +101,7 @@ var require_package = __commonJS({
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
async function getPackageJson(props) {
|
|
104
|
-
const packageJson = await
|
|
104
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
105
105
|
return packageJson.setScript("dev", {
|
|
106
106
|
value: "hattip serve ./hattip-entry.ts --client",
|
|
107
107
|
precedence: 20,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/hono/dist/files/$package.json.js
|
|
@@ -53,7 +53,7 @@ var require_package = __commonJS({
|
|
|
53
53
|
"@hono/vite-dev-server": "^0.17.0",
|
|
54
54
|
"@trpc/server": "^10.45.2",
|
|
55
55
|
"@types/aws-lambda": "^8.10.146",
|
|
56
|
-
"@types/node": "^18.19.
|
|
56
|
+
"@types/node": "^18.19.67",
|
|
57
57
|
"@universal-middleware/hono": "^0.3.0",
|
|
58
58
|
"cross-env": "^7.0.3",
|
|
59
59
|
dotenv: "^16.4.5",
|
|
@@ -102,7 +102,7 @@ var require_package = __commonJS({
|
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
async function getPackageJson(props) {
|
|
105
|
-
const packageJson = await
|
|
105
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
106
106
|
return packageJson.setScript("dev", {
|
|
107
107
|
value: "vite",
|
|
108
108
|
precedence: 20,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
3
|
+
GHs,
|
|
4
|
+
Ibs
|
|
5
|
+
} from "../../../../chunk-BOFKQILG.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 GHs(props);
|
|
11
|
+
Ibs(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
|
+
sXs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.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 = sXs(
|
|
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 = sXs(
|
|
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
|
+
WHs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.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 WHs(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\`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/lucia-auth/dist/files/$package.json.js
|
|
@@ -51,7 +51,7 @@ var require_package = __commonJS({
|
|
|
51
51
|
"@lucia-auth/adapter-drizzle": "^1.1.0",
|
|
52
52
|
"@lucia-auth/adapter-sqlite": "^3.0.2",
|
|
53
53
|
"@types/better-sqlite3": "^7.6.12",
|
|
54
|
-
"@types/node": "^18.19.
|
|
54
|
+
"@types/node": "^18.19.67",
|
|
55
55
|
"@universal-middleware/core": "^0.3.0",
|
|
56
56
|
arctic: "^2.3.0",
|
|
57
57
|
"better-sqlite3": "^11.6.0",
|
|
@@ -101,7 +101,7 @@ var require_package = __commonJS({
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
async function getPackageJson(props) {
|
|
104
|
-
const packageJson = await
|
|
104
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
105
105
|
return packageJson.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);
|
|
106
106
|
}
|
|
107
107
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
WHs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.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 WHs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## Mantine
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/mantine/dist/files/$package.json.js
|
|
@@ -49,7 +49,7 @@ var require_package = __commonJS({
|
|
|
49
49
|
"@batijs/compile": "workspace:*",
|
|
50
50
|
"@mantine/core": "^7.14.3",
|
|
51
51
|
"@mantine/hooks": "^7.14.3",
|
|
52
|
-
"@types/node": "^18.19.
|
|
52
|
+
"@types/node": "^18.19.67",
|
|
53
53
|
"@types/react": "^18.3.12",
|
|
54
54
|
"@types/react-dom": "^18.3.1",
|
|
55
55
|
postcss: "^8.4.49",
|
|
@@ -112,7 +112,7 @@ var require_package = __commonJS({
|
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
async function getPackageJson(props) {
|
|
115
|
-
const packageJson = await
|
|
115
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
116
116
|
return packageJson.addDevDependencies(["postcss", "postcss-preset-mantine", "postcss-simple-vars"]).addDependencies(["@mantine/core", "@mantine/hooks"]);
|
|
117
117
|
}
|
|
118
118
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/panda-css/dist/files/$package.json.js
|
|
@@ -48,7 +48,7 @@ var require_package = __commonJS({
|
|
|
48
48
|
devDependencies: {
|
|
49
49
|
"@batijs/compile": "workspace:*",
|
|
50
50
|
"@pandacss/dev": "^0.48.0",
|
|
51
|
-
"@types/node": "^18.19.
|
|
51
|
+
"@types/node": "^18.19.67",
|
|
52
52
|
postcss: "^8.4.49"
|
|
53
53
|
},
|
|
54
54
|
dependencies: {
|
|
@@ -84,7 +84,7 @@ var require_package = __commonJS({
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
async function getPackageJson(props) {
|
|
87
|
-
const packageJson = await
|
|
87
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
88
88
|
return packageJson.setScript("prepare", {
|
|
89
89
|
value: "panda codegen",
|
|
90
90
|
precedence: 20
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/prettier/dist/files/$package.json.js
|
|
@@ -47,7 +47,7 @@ var require_package = __commonJS({
|
|
|
47
47
|
license: "MIT",
|
|
48
48
|
devDependencies: {
|
|
49
49
|
"@batijs/compile": "workspace:*",
|
|
50
|
-
"@types/node": "^18.19.
|
|
50
|
+
"@types/node": "^18.19.67",
|
|
51
51
|
prettier: "^3.4.1"
|
|
52
52
|
},
|
|
53
53
|
dependencies: {
|
|
@@ -65,7 +65,7 @@ var require_package = __commonJS({
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
async function getPackageJson(props) {
|
|
68
|
-
const packageJson = await
|
|
68
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
69
69
|
return packageJson.addDevDependencies(["prettier"]);
|
|
70
70
|
}
|
|
71
71
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
sXs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.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 sXs(
|
|
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
|
+
WHs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.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 WHs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *Prisma*
|
|
12
12
|
### Setup
|
|
@@ -16,7 +16,9 @@ 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.addMarkdownFeature(todo, "prisma"
|
|
19
|
+
content.addMarkdownFeature(todo, "prisma", {
|
|
20
|
+
position: "before"
|
|
21
|
+
});
|
|
20
22
|
return content;
|
|
21
23
|
}
|
|
22
24
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/prisma/dist/files/$package.json.js
|
|
@@ -48,7 +48,7 @@ var require_package = __commonJS({
|
|
|
48
48
|
devDependencies: {
|
|
49
49
|
"@batijs/compile": "workspace:*",
|
|
50
50
|
"@prisma/client": "^5.22.0",
|
|
51
|
-
"@types/node": "^18.19.
|
|
51
|
+
"@types/node": "^18.19.67",
|
|
52
52
|
colorette: "^2.0.20",
|
|
53
53
|
prisma: "^5.22.0"
|
|
54
54
|
},
|
|
@@ -67,7 +67,7 @@ var require_package = __commonJS({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
async function getPackageJson(props) {
|
|
70
|
-
const packageJson = await
|
|
70
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
71
71
|
return packageJson.setScript("prisma:studio", {
|
|
72
72
|
value: "prisma studio",
|
|
73
73
|
precedence: 1
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
WHs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.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 WHs(props);
|
|
10
10
|
const about = `
|
|
11
11
|
## React
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/react/dist/files/$package.json.js
|
|
@@ -53,7 +53,7 @@ var require_package = __commonJS({
|
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
54
|
"@mantine/core": "^7.14.3",
|
|
55
55
|
"@pandacss/dev": "^0.48.0",
|
|
56
|
-
"@types/node": "^18.19.
|
|
56
|
+
"@types/node": "^18.19.67",
|
|
57
57
|
"@types/react": "^18.3.12",
|
|
58
58
|
"@types/react-dom": "^18.3.1",
|
|
59
59
|
"@vitejs/plugin-react": "^4.3.4",
|
|
@@ -183,7 +183,7 @@ var require_package = __commonJS({
|
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
async function getPackageJson(props) {
|
|
186
|
-
const packageJson = await
|
|
186
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
187
187
|
return packageJson.addDevDependencies(["vite", "@types/react", "@types/react-dom"]).addDependencies(["@vitejs/plugin-react", "react", "react-dom", "vike", "vike-react"]);
|
|
188
188
|
}
|
|
189
189
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
JHs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.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 JHs(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
|
+
GHs,
|
|
4
|
+
Ibs
|
|
5
|
+
} from "../../../../chunk-BOFKQILG.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 GHs(props);
|
|
11
11
|
const reactOptions = props.meta.BATI.has("vercel") && props.meta.BATI.has("hattip") ? { jsxRuntime: "classic" } : {};
|
|
12
|
-
|
|
12
|
+
Ibs(mod, {
|
|
13
13
|
from: "@vitejs/plugin-react",
|
|
14
14
|
constructor: "react",
|
|
15
15
|
options: reactOptions
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/react-sentry/dist/files/$package.json.js
|
|
@@ -48,7 +48,7 @@ var require_package = __commonJS({
|
|
|
48
48
|
devDependencies: {
|
|
49
49
|
"@batijs/compile": "workspace:*",
|
|
50
50
|
"@sentry/react": "^8.41.0",
|
|
51
|
-
"@types/node": "^18.19.
|
|
51
|
+
"@types/node": "^18.19.67",
|
|
52
52
|
"@types/react": "^18.3.12",
|
|
53
53
|
"@types/react-dom": "^18.3.1",
|
|
54
54
|
react: "^18.3.1",
|
|
@@ -93,7 +93,7 @@ var require_package = __commonJS({
|
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
async function getPackageJson(props) {
|
|
96
|
-
const packageJson = await
|
|
96
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
97
97
|
return packageJson.addDependencies(["@sentry/react"]);
|
|
98
98
|
}
|
|
99
99
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
sXs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.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 = sXs(
|
|
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 = sXs(
|
|
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
|
+
WHs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.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 WHs(props);
|
|
10
10
|
const about = `
|
|
11
11
|
|
|
12
12
|
## Sentry Browser / Error Tracking & Performance Monitoring
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
$Hs
|
|
4
|
+
} from "../../../../chunk-BOFKQILG.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/sentry/dist/files/$package.json.js
|
|
@@ -48,7 +48,7 @@ var require_package = __commonJS({
|
|
|
48
48
|
devDependencies: {
|
|
49
49
|
"@batijs/compile": "workspace:*",
|
|
50
50
|
"@sentry/vite-plugin": "^2.22.6",
|
|
51
|
-
"@types/node": "^18.19.
|
|
51
|
+
"@types/node": "^18.19.67",
|
|
52
52
|
vite: "^5.4.11"
|
|
53
53
|
},
|
|
54
54
|
dependencies: {
|
|
@@ -78,7 +78,7 @@ var require_package = __commonJS({
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
async function getPackageJson(props) {
|
|
81
|
-
const packageJson = await
|
|
81
|
+
const packageJson = await $Hs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
82
82
|
return packageJson.addDevDependencies(["@sentry/vite-plugin"]);
|
|
83
83
|
}
|
|
84
84
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "../../../../chunk-
|
|
3
|
+
GHs,
|
|
4
|
+
Ibs,
|
|
5
|
+
vXr
|
|
6
|
+
} from "../../../../chunk-BOFKQILG.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 GHs(props);
|
|
12
|
+
Ibs(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
|
+
vXr(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
|
+
GHs,
|
|
4
|
+
IV,
|
|
5
|
+
vse,
|
|
6
|
+
y5e
|
|
7
|
+
} from "../../../../../chunk-BOFKQILG.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 GHs(props);
|
|
15
15
|
} catch {
|
|
16
|
-
mod =
|
|
16
|
+
mod = y5e("");
|
|
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 = vse.functionCall("sentryBrowserConfig");
|
|
24
|
+
const c = IV(e).code;
|
|
25
25
|
mod.$ast.body.splice(mod.$ast.body.length - 1, 0, c);
|
|
26
26
|
}
|
|
27
27
|
return mod.generate().code;
|