@batijs/cli 0.0.296 → 0.0.298
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 +6 -6
- 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 +7 -7
- 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 +3 -3
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +5 -5
- 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 +6 -6
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +1 -0
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.ts +1 -0
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/express/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +7 -7
- 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 +6 -6
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +8 -8
- 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 +8 -8
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +6 -6
- 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 +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +7 -7
- 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 +5 -5
- 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 +6 -6
- 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/files/package.json +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +5 -5
- 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 +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +1 -0
- package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +8 -8
- 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 +5 -5
- 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/{chunk-SHECMR3J.js → chunk-ZZTH5CWB.js} +54173 -54157
- package/dist/index.js +20 -20
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/fastify/dist/files/$package.json.js
|
|
@@ -46,21 +46,21 @@ var require_package = __commonJS({
|
|
|
46
46
|
author: "",
|
|
47
47
|
license: "MIT",
|
|
48
48
|
devDependencies: {
|
|
49
|
-
"@auth/core": "^0.37.
|
|
49
|
+
"@auth/core": "^0.37.2",
|
|
50
50
|
"@batijs/compile": "workspace:*",
|
|
51
51
|
"@fastify/middie": "^9.0.2",
|
|
52
|
-
"@fastify/static": "^8.0.
|
|
52
|
+
"@fastify/static": "^8.0.2",
|
|
53
53
|
"@trpc/server": "^10.45.2",
|
|
54
54
|
"@types/express": "^4.17.21",
|
|
55
55
|
"@types/node": "^18.19.55",
|
|
56
|
-
"@universal-middleware/fastify": "^0.3.
|
|
56
|
+
"@universal-middleware/fastify": "^0.3.6",
|
|
57
57
|
"cross-env": "^7.0.3",
|
|
58
58
|
dotenv: "^16.4.5",
|
|
59
59
|
fastify: "^5.0.0",
|
|
60
60
|
telefunc: "^0.1.79",
|
|
61
61
|
tsx: "^4.19.1",
|
|
62
62
|
vike: "^0.4.199",
|
|
63
|
-
vite: "^5.4.
|
|
63
|
+
vite: "^5.4.9"
|
|
64
64
|
},
|
|
65
65
|
dependencies: {
|
|
66
66
|
"@batijs/core": "workspace:*"
|
|
@@ -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 HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
93
93
|
return packageJson.setScript("dev", {
|
|
94
94
|
value: "tsx ./fastify-entry.ts",
|
|
95
95
|
precedence: 20,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
c$s
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/firebase-auth/dist/files/$.env.js
|
|
8
8
|
async function getEnv(props) {
|
|
9
9
|
const envContent = await props.readfile?.();
|
|
10
|
-
return
|
|
10
|
+
return c$s(
|
|
11
11
|
envContent,
|
|
12
12
|
"GOOGLE_APPLICATION_CREDENTIALS",
|
|
13
13
|
"firebase/service-account.json",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
GJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/firebase-auth/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await GJs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *Firebase*
|
|
12
12
|
- You first need to **[Create a Firebase project](https://firebase.google.com/docs/web/setup#create-project)**.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/firebase-auth/dist/files/$package.json.js
|
|
@@ -56,7 +56,7 @@ var require_package = __commonJS({
|
|
|
56
56
|
"firebase-admin": "^12.6.0",
|
|
57
57
|
firebaseui: "^6.1.0",
|
|
58
58
|
vike: "^0.4.199",
|
|
59
|
-
vite: "^5.4.
|
|
59
|
+
vite: "^5.4.9"
|
|
60
60
|
},
|
|
61
61
|
dependencies: {
|
|
62
62
|
"@batijs/core": "workspace:*"
|
|
@@ -115,7 +115,7 @@ var require_package = __commonJS({
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
async function getPackageJson(props) {
|
|
118
|
-
const packageJson = await
|
|
118
|
+
const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
119
119
|
return packageJson.addDevDependencies(["@types/cookie"]).addDependencies(["firebase", "firebase-admin", "firebaseui", "cookie", "@universal-middleware/core", "dotenv"]);
|
|
120
120
|
}
|
|
121
121
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
c$s
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.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 c$s(
|
|
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
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/h3/dist/files/$package.json.js
|
|
@@ -46,14 +46,14 @@ var require_package = __commonJS({
|
|
|
46
46
|
author: "",
|
|
47
47
|
license: "MIT",
|
|
48
48
|
devDependencies: {
|
|
49
|
-
"@auth/core": "^0.37.
|
|
49
|
+
"@auth/core": "^0.37.2",
|
|
50
50
|
"@batijs/compile": "workspace:*",
|
|
51
51
|
"@hattip/polyfills": "^0.0.48",
|
|
52
52
|
"@trpc/server": "^10.45.2",
|
|
53
53
|
"@types/express": "^4.17.21",
|
|
54
54
|
"@types/node": "^18.19.55",
|
|
55
55
|
"@types/serve-static": "^1.15.7",
|
|
56
|
-
"@universal-middleware/h3": "^0.2.
|
|
56
|
+
"@universal-middleware/h3": "^0.2.8",
|
|
57
57
|
"cross-env": "^7.0.3",
|
|
58
58
|
dotenv: "^16.4.5",
|
|
59
59
|
h3: "~1.13.0",
|
|
@@ -61,7 +61,7 @@ var require_package = __commonJS({
|
|
|
61
61
|
telefunc: "^0.1.79",
|
|
62
62
|
tsx: "^4.19.1",
|
|
63
63
|
vike: "^0.4.199",
|
|
64
|
-
vite: "^5.4.
|
|
64
|
+
vite: "^5.4.9"
|
|
65
65
|
},
|
|
66
66
|
dependencies: {
|
|
67
67
|
"@batijs/core": "workspace:*"
|
|
@@ -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 HJs(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
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/hattip/dist/files/$package.json.js
|
|
@@ -46,9 +46,9 @@ var require_package = __commonJS({
|
|
|
46
46
|
author: "",
|
|
47
47
|
license: "MIT",
|
|
48
48
|
devDependencies: {
|
|
49
|
-
"@auth/core": "^0.37.
|
|
49
|
+
"@auth/core": "^0.37.2",
|
|
50
50
|
"@batijs/compile": "workspace:*",
|
|
51
|
-
"@cloudflare/workers-types": "^4.
|
|
51
|
+
"@cloudflare/workers-types": "^4.20241018.0",
|
|
52
52
|
"@hattip/adapter-aws-lambda": "^0.0.48",
|
|
53
53
|
"@hattip/adapter-node": "^0.0.48",
|
|
54
54
|
"@hattip/adapter-vercel-edge": "^0.0.48",
|
|
@@ -66,7 +66,7 @@ var require_package = __commonJS({
|
|
|
66
66
|
hattip: "^0.0.33",
|
|
67
67
|
telefunc: "^0.1.79",
|
|
68
68
|
vike: "^0.4.199",
|
|
69
|
-
vite: "^5.4.
|
|
69
|
+
vite: "^5.4.9"
|
|
70
70
|
},
|
|
71
71
|
dependencies: {
|
|
72
72
|
"@batijs/core": "workspace:*"
|
|
@@ -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 HJs(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
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/hono/dist/files/$package.json.js
|
|
@@ -46,22 +46,22 @@ var require_package = __commonJS({
|
|
|
46
46
|
author: "",
|
|
47
47
|
license: "MIT",
|
|
48
48
|
devDependencies: {
|
|
49
|
-
"@auth/core": "^0.37.
|
|
49
|
+
"@auth/core": "^0.37.2",
|
|
50
50
|
"@batijs/compile": "workspace:*",
|
|
51
|
-
"@cloudflare/workers-types": "^4.
|
|
51
|
+
"@cloudflare/workers-types": "^4.20241018.0",
|
|
52
52
|
"@hono/node-server": "^1.13.2",
|
|
53
53
|
"@hono/vite-dev-server": "^0.16.0",
|
|
54
54
|
"@trpc/server": "^10.45.2",
|
|
55
55
|
"@types/aws-lambda": "^8.10.145",
|
|
56
56
|
"@types/node": "^18.19.55",
|
|
57
|
-
"@universal-middleware/hono": "^0.2.
|
|
57
|
+
"@universal-middleware/hono": "^0.2.12",
|
|
58
58
|
"cross-env": "^7.0.3",
|
|
59
59
|
dotenv: "^16.4.5",
|
|
60
|
-
hono: "^4.6.
|
|
60
|
+
hono: "^4.6.5",
|
|
61
61
|
telefunc: "^0.1.79",
|
|
62
62
|
tsx: "^4.19.1",
|
|
63
63
|
vike: "^0.4.199",
|
|
64
|
-
vite: "^5.4.
|
|
64
|
+
vite: "^5.4.9"
|
|
65
65
|
},
|
|
66
66
|
dependencies: {
|
|
67
67
|
"@batijs/core": "workspace:*"
|
|
@@ -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 HJs(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
|
+
XJs,
|
|
4
|
+
sys
|
|
5
|
+
} from "../../../../chunk-ZZTH5CWB.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 XJs(props);
|
|
11
|
+
sys(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
|
+
c$s
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.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 = c$s(
|
|
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 = c$s(
|
|
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
|
+
GJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.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 GJs(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
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/lucia-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
|
-
"@cloudflare/workers-types": "^4.
|
|
50
|
+
"@cloudflare/workers-types": "^4.20241018.0",
|
|
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.11",
|
|
@@ -55,13 +55,13 @@ var require_package = __commonJS({
|
|
|
55
55
|
"@types/node": "^18.19.55",
|
|
56
56
|
"@universal-middleware/core": "^0.2.13",
|
|
57
57
|
arctic: "^1.9.2",
|
|
58
|
-
"better-sqlite3": "^11.
|
|
58
|
+
"better-sqlite3": "^11.4.0",
|
|
59
59
|
cookie: "^1.0.1",
|
|
60
60
|
dotenv: "^16.4.5",
|
|
61
|
-
"drizzle-orm": "^0.
|
|
62
|
-
lucia: "^3.2.
|
|
61
|
+
"drizzle-orm": "^0.35.2",
|
|
62
|
+
lucia: "^3.2.2",
|
|
63
63
|
vike: "^0.4.199",
|
|
64
|
-
vite: "^5.4.
|
|
64
|
+
vite: "^5.4.9"
|
|
65
65
|
},
|
|
66
66
|
dependencies: {
|
|
67
67
|
"@batijs/core": "workspace:*"
|
|
@@ -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 HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
106
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);
|
|
107
107
|
}
|
|
108
108
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
GJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.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 GJs(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
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/mantine/dist/files/$package.json.js
|
|
@@ -47,8 +47,8 @@ var require_package = __commonJS({
|
|
|
47
47
|
license: "MIT",
|
|
48
48
|
devDependencies: {
|
|
49
49
|
"@batijs/compile": "workspace:*",
|
|
50
|
-
"@mantine/core": "^7.13.
|
|
51
|
-
"@mantine/hooks": "^7.13.
|
|
50
|
+
"@mantine/core": "^7.13.3",
|
|
51
|
+
"@mantine/hooks": "^7.13.3",
|
|
52
52
|
"@types/node": "^18.19.55",
|
|
53
53
|
"@types/react": "^18.3.11",
|
|
54
54
|
"@types/react-dom": "^18.3.1",
|
|
@@ -58,7 +58,7 @@ var require_package = __commonJS({
|
|
|
58
58
|
react: "^18.3.1",
|
|
59
59
|
"react-dom": "^18.3.1",
|
|
60
60
|
"vike-react": "^0.5.7",
|
|
61
|
-
vite: "^5.4.
|
|
61
|
+
vite: "^5.4.9",
|
|
62
62
|
"vite-plugin-compiled-react": "^1.1.3"
|
|
63
63
|
},
|
|
64
64
|
dependencies: {
|
|
@@ -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 HJs(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
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/prettier/dist/files/$package.json.js
|
|
@@ -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 HJs(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
|
+
c$s
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.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 c$s(
|
|
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
|
+
GJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.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 GJs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *Prisma*
|
|
12
12
|
### Setup
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/prisma/dist/files/$package.json.js
|
|
@@ -47,10 +47,10 @@ var require_package = __commonJS({
|
|
|
47
47
|
license: "MIT",
|
|
48
48
|
devDependencies: {
|
|
49
49
|
"@batijs/compile": "workspace:*",
|
|
50
|
-
"@prisma/client": "^5.
|
|
50
|
+
"@prisma/client": "^5.21.1",
|
|
51
51
|
"@types/node": "^18.19.55",
|
|
52
52
|
colorette: "^2.0.20",
|
|
53
|
-
prisma: "^5.
|
|
53
|
+
prisma: "^5.21.1"
|
|
54
54
|
},
|
|
55
55
|
dependencies: {
|
|
56
56
|
"@batijs/core": "workspace:*"
|
|
@@ -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 HJs(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
|
+
GJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.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 GJs(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
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/react/dist/files/$package.json.js
|
|
@@ -50,18 +50,18 @@ var require_package = __commonJS({
|
|
|
50
50
|
"@babel/plugin-syntax-flow": "^7.25.7",
|
|
51
51
|
"@babel/plugin-transform-react-jsx": "^7.25.7",
|
|
52
52
|
"@batijs/compile": "workspace:*",
|
|
53
|
-
"@mantine/core": "^7.13.
|
|
53
|
+
"@mantine/core": "^7.13.3",
|
|
54
54
|
"@types/node": "^18.19.55",
|
|
55
55
|
"@types/react": "^18.3.11",
|
|
56
56
|
"@types/react-dom": "^18.3.1",
|
|
57
|
-
"@vitejs/plugin-react": "^4.3.
|
|
57
|
+
"@vitejs/plugin-react": "^4.3.3",
|
|
58
58
|
react: "^18.3.1",
|
|
59
59
|
"react-dom": "^18.3.1",
|
|
60
|
-
tailwindcss: "^3.4.
|
|
60
|
+
tailwindcss: "^3.4.14",
|
|
61
61
|
typescript: "^5.6.3",
|
|
62
62
|
vike: "^0.4.199",
|
|
63
63
|
"vike-react": "^0.5.7",
|
|
64
|
-
vite: "^5.4.
|
|
64
|
+
vite: "^5.4.9",
|
|
65
65
|
"vite-plugin-compiled-react": "^1.1.3"
|
|
66
66
|
},
|
|
67
67
|
dependencies: {
|
|
@@ -181,7 +181,7 @@ var require_package = __commonJS({
|
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
async function getPackageJson(props) {
|
|
184
|
-
const packageJson = await
|
|
184
|
+
const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
185
185
|
return packageJson.addDevDependencies(["vite", "@types/react", "@types/react-dom"]).addDependencies(["@vitejs/plugin-react", "react", "react-dom", "vike", "vike-react"]);
|
|
186
186
|
}
|
|
187
187
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
KJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.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 KJs(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
|
+
XJs,
|
|
4
|
+
sys
|
|
5
|
+
} from "../../../../chunk-ZZTH5CWB.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 XJs(props);
|
|
11
11
|
const reactOptions = props.meta.BATI.has("vercel") && props.meta.BATI.has("hattip") ? { jsxRuntime: "classic" } : {};
|
|
12
|
-
|
|
12
|
+
sys(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
|
+
HJs
|
|
4
|
+
} from "../../../../chunk-ZZTH5CWB.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/react-sentry/dist/files/$package.json.js
|
|
@@ -53,7 +53,7 @@ var require_package = __commonJS({
|
|
|
53
53
|
"@types/react-dom": "^18.3.1",
|
|
54
54
|
react: "^18.3.1",
|
|
55
55
|
"react-dom": "^18.3.1",
|
|
56
|
-
vite: "^5.4.
|
|
56
|
+
vite: "^5.4.9"
|
|
57
57
|
},
|
|
58
58
|
dependencies: {
|
|
59
59
|
"@batijs/core": "workspace:*"
|
|
@@ -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 HJs(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 {
|