@batijs/cli 0.0.188 → 0.0.189
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/edgedb/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/prettier/files/$.eslintrc.json.js +1 -2
- package/dist/boilerplates/@batijs/react/files/$.eslintrc.json.js +1 -2
- package/dist/boilerplates/@batijs/react/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/react/files/pages/+onPageTransitionEnd.ts +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/+onPageTransitionStart.ts +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/_error/+Page.tsx +6 -7
- package/dist/boilerplates/@batijs/react/files/pages/star-wars/@id/+data.ts +2 -2
- package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +11 -0
- package/dist/boilerplates/@batijs/solid/files/$.eslintrc.json.js +1 -2
- package/dist/boilerplates/@batijs/solid/files/pages/+onPageTransitionEnd.ts +1 -1
- package/dist/boilerplates/@batijs/solid/files/pages/+onPageTransitionStart.ts +1 -1
- package/dist/boilerplates/@batijs/solid/files/pages/star-wars/@id/+data.ts +2 -2
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$.eslintrc.json.js +1 -2
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/vue/files/pages/+onPageTransitionEnd.ts +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/+onPageTransitionStart.ts +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/star-wars/@id/+data.ts +2 -2
- package/dist/index.js +3 -3
- package/package.json +7 -7
|
@@ -41,7 +41,7 @@ var require_package = __commonJS({
|
|
|
41
41
|
author: "",
|
|
42
42
|
license: "MIT",
|
|
43
43
|
devDependencies: {
|
|
44
|
-
"@auth/core": "^0.
|
|
44
|
+
"@auth/core": "^0.31.0",
|
|
45
45
|
"@batijs/compile": "workspace:*",
|
|
46
46
|
"@batijs/firebase-auth": "workspace:*",
|
|
47
47
|
"@batijs/trpc": "workspace:*",
|
|
@@ -56,7 +56,7 @@ var require_package = __commonJS({
|
|
|
56
56
|
"express-openid-connect": "^2.17.1",
|
|
57
57
|
"firebase-admin": "^12.1.0",
|
|
58
58
|
telefunc: "^0.1.72",
|
|
59
|
-
tsx: "^4.
|
|
59
|
+
tsx: "^4.10.1",
|
|
60
60
|
vike: "^0.4.171",
|
|
61
61
|
"vike-authjs": "^0.1.5",
|
|
62
62
|
vite: "^5.2.11"
|
|
@@ -41,7 +41,7 @@ var require_package = __commonJS({
|
|
|
41
41
|
author: "",
|
|
42
42
|
license: "MIT",
|
|
43
43
|
devDependencies: {
|
|
44
|
-
"@auth/core": "^0.
|
|
44
|
+
"@auth/core": "^0.31.0",
|
|
45
45
|
"@batijs/compile": "workspace:*",
|
|
46
46
|
"@batijs/firebase-auth": "workspace:*",
|
|
47
47
|
"@batijs/trpc": "workspace:^",
|
|
@@ -59,7 +59,7 @@ var require_package = __commonJS({
|
|
|
59
59
|
fastify: "^4.27.0",
|
|
60
60
|
"firebase-admin": "^12.1.0",
|
|
61
61
|
telefunc: "^0.1.72",
|
|
62
|
-
tsx: "^4.
|
|
62
|
+
tsx: "^4.10.1",
|
|
63
63
|
vike: "^0.4.171",
|
|
64
64
|
"vike-authjs": "^0.1.5",
|
|
65
65
|
vite: "^5.2.11"
|
|
@@ -41,7 +41,7 @@ var require_package = __commonJS({
|
|
|
41
41
|
author: "",
|
|
42
42
|
license: "MIT",
|
|
43
43
|
devDependencies: {
|
|
44
|
-
"@auth/core": "^0.
|
|
44
|
+
"@auth/core": "^0.31.0",
|
|
45
45
|
"@batijs/compile": "workspace:*",
|
|
46
46
|
"@batijs/firebase-auth": "workspace:*",
|
|
47
47
|
"@batijs/trpc": "workspace:^",
|
|
@@ -57,7 +57,7 @@ var require_package = __commonJS({
|
|
|
57
57
|
h3: "~1.11.1",
|
|
58
58
|
"serve-static": "^1.15.0",
|
|
59
59
|
telefunc: "^0.1.72",
|
|
60
|
-
tsx: "^4.
|
|
60
|
+
tsx: "^4.10.1",
|
|
61
61
|
vike: "^0.4.171",
|
|
62
62
|
"vike-authjs": "^0.1.5",
|
|
63
63
|
vite: "^5.2.11"
|
|
@@ -41,21 +41,21 @@ var require_package = __commonJS({
|
|
|
41
41
|
author: "",
|
|
42
42
|
license: "MIT",
|
|
43
43
|
devDependencies: {
|
|
44
|
-
"@auth/core": "^0.
|
|
44
|
+
"@auth/core": "^0.31.0",
|
|
45
45
|
"@batijs/compile": "workspace:*",
|
|
46
46
|
"@batijs/firebase-auth": "workspace:*",
|
|
47
47
|
"@batijs/trpc": "workspace:^",
|
|
48
48
|
"@hono/node-server": "^1.11.1",
|
|
49
|
-
"@hono/vite-dev-server": "^0.12.
|
|
49
|
+
"@hono/vite-dev-server": "^0.12.1",
|
|
50
50
|
"@trpc/server": "^10.45.2",
|
|
51
51
|
"@types/node": "^18.19.14",
|
|
52
52
|
"firebase-admin": "^12.1.0",
|
|
53
|
-
hono: "^4.
|
|
53
|
+
hono: "^4.3.6",
|
|
54
54
|
telefunc: "^0.1.72",
|
|
55
|
-
tsx: "^4.
|
|
56
|
-
vike: "^0.4.
|
|
55
|
+
tsx: "^4.10.1",
|
|
56
|
+
vike: "^0.4.171",
|
|
57
57
|
"vike-authjs": "^0.1.5",
|
|
58
|
-
vite: "^5.2.
|
|
58
|
+
vite: "^5.2.11"
|
|
59
59
|
},
|
|
60
60
|
dependencies: {
|
|
61
61
|
"@batijs/core": "workspace:*"
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// files/$.eslintrc.json.ts
|
|
2
2
|
import { loadAsJson } from "@batijs/core";
|
|
3
3
|
async function getEslintConfig(props) {
|
|
4
|
-
if (!props.meta.BATI.has("eslint"))
|
|
5
|
-
return;
|
|
4
|
+
if (!props.meta.BATI.has("eslint")) return;
|
|
6
5
|
const eslintConfig = await loadAsJson(props);
|
|
7
6
|
eslintConfig.extends.push("prettier");
|
|
8
7
|
return eslintConfig;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// files/$.eslintrc.json.ts
|
|
2
2
|
import { loadAsJson } from "@batijs/core";
|
|
3
3
|
async function getEslintConfig(props) {
|
|
4
|
-
if (!props.meta.BATI.has("eslint"))
|
|
5
|
-
return;
|
|
4
|
+
if (!props.meta.BATI.has("eslint")) return;
|
|
6
5
|
const eslintConfig = await loadAsJson(props);
|
|
7
6
|
eslintConfig.extends = eslintConfig.extends.filter(
|
|
8
7
|
(p) => p !== "eslint:recommended" && p !== "plugin:@typescript-eslint/recommended"
|
|
@@ -46,7 +46,7 @@ var require_package = __commonJS({
|
|
|
46
46
|
"@babel/plugin-transform-react-jsx": "^7.23.4",
|
|
47
47
|
"@batijs/compile": "workspace:*",
|
|
48
48
|
"@types/node": "^18.19.14",
|
|
49
|
-
"@types/react": "^18.3.
|
|
49
|
+
"@types/react": "^18.3.2",
|
|
50
50
|
"@types/react-dom": "^18.3.0",
|
|
51
51
|
"@vitejs/plugin-react": "^4.2.1",
|
|
52
52
|
"cross-fetch": "^4.0.0",
|
|
@@ -56,7 +56,7 @@ var require_package = __commonJS({
|
|
|
56
56
|
tailwindcss: "^3.4.3",
|
|
57
57
|
typescript: "^5.4.5",
|
|
58
58
|
vike: "^0.4.171",
|
|
59
|
-
"vike-react": "^0.4.
|
|
59
|
+
"vike-react": "^0.4.9",
|
|
60
60
|
vite: "^5.2.11"
|
|
61
61
|
},
|
|
62
62
|
dependencies: {
|
|
@@ -2,5 +2,5 @@ import type { OnPageTransitionEndAsync } from "vike/types";
|
|
|
2
2
|
|
|
3
3
|
export const onPageTransitionEnd: OnPageTransitionEndAsync = async () => {
|
|
4
4
|
console.log("Page transition end");
|
|
5
|
-
document.querySelector("body")
|
|
5
|
+
document.querySelector("body")?.classList.remove("page-is-transitioning");
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import type { OnPageTransitionStartAsync } from "vike/types";
|
|
|
2
2
|
|
|
3
3
|
export const onPageTransitionStart: OnPageTransitionStartAsync = async () => {
|
|
4
4
|
console.log("Page transition start");
|
|
5
|
-
document.querySelector("body")
|
|
5
|
+
document.querySelector("body")?.classList.add("page-is-transitioning");
|
|
6
6
|
};
|
|
@@ -10,12 +10,11 @@ export default function Page() {
|
|
|
10
10
|
<p>This page could not be found.</p>
|
|
11
11
|
</>
|
|
12
12
|
);
|
|
13
|
-
} else {
|
|
14
|
-
return (
|
|
15
|
-
<>
|
|
16
|
-
<h1>500 Internal Server Error</h1>
|
|
17
|
-
<p>Something went wrong.</p>
|
|
18
|
-
</>
|
|
19
|
-
);
|
|
20
13
|
}
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
<h1>500 Internal Server Error</h1>
|
|
17
|
+
<p>Something went wrong.</p>
|
|
18
|
+
</>
|
|
19
|
+
);
|
|
21
20
|
}
|
|
@@ -17,6 +17,6 @@ export const data = async (pageContext: PageContextServer) => {
|
|
|
17
17
|
|
|
18
18
|
function minimize(movie: MovieDetails): MovieDetails {
|
|
19
19
|
const { id, title, release_date, director, producer } = movie;
|
|
20
|
-
|
|
21
|
-
return
|
|
20
|
+
const minimizedMovie = { id, title, release_date, director, producer };
|
|
21
|
+
return minimizedMovie;
|
|
22
22
|
}
|
|
@@ -58,6 +58,11 @@ declare const _default: {
|
|
|
58
58
|
server: true;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
+
onBeforeRenderClient: {
|
|
62
|
+
env: {
|
|
63
|
+
client: true;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
61
66
|
onAfterRenderClient: {
|
|
62
67
|
env: {
|
|
63
68
|
client: true;
|
|
@@ -80,6 +85,12 @@ declare const _default: {
|
|
|
80
85
|
config: true;
|
|
81
86
|
};
|
|
82
87
|
};
|
|
88
|
+
reactStrictMode: {
|
|
89
|
+
env: {
|
|
90
|
+
client: true;
|
|
91
|
+
server: true;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
83
94
|
};
|
|
84
95
|
};
|
|
85
96
|
meta: {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// files/$.eslintrc.json.ts
|
|
2
2
|
import { loadAsJson } from "@batijs/core";
|
|
3
3
|
async function getEslintConfig(props) {
|
|
4
|
-
if (!props.meta.BATI.has("eslint"))
|
|
5
|
-
return;
|
|
4
|
+
if (!props.meta.BATI.has("eslint")) return;
|
|
6
5
|
const eslintConfig = await loadAsJson(props);
|
|
7
6
|
eslintConfig.extends.push("plugin:solid/typescript");
|
|
8
7
|
eslintConfig.plugins.push("solid");
|
|
@@ -2,5 +2,5 @@ import type { OnPageTransitionEndAsync } from "vike/types";
|
|
|
2
2
|
|
|
3
3
|
export const onPageTransitionEnd: OnPageTransitionEndAsync = async () => {
|
|
4
4
|
console.log("Page transition end");
|
|
5
|
-
document.querySelector("body")
|
|
5
|
+
document.querySelector("body")?.classList.remove("page-is-transitioning");
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import type { OnPageTransitionStartAsync } from "vike/types";
|
|
|
2
2
|
|
|
3
3
|
export const onPageTransitionStart: OnPageTransitionStartAsync = async () => {
|
|
4
4
|
console.log("Page transition start");
|
|
5
|
-
document.querySelector("body")
|
|
5
|
+
document.querySelector("body")?.classList.add("page-is-transitioning");
|
|
6
6
|
};
|
|
@@ -17,6 +17,6 @@ export const data = async (pageContext: PageContextServer) => {
|
|
|
17
17
|
|
|
18
18
|
function minimize(movie: MovieDetails): MovieDetails {
|
|
19
19
|
const { id, title, release_date, director, producer } = movie;
|
|
20
|
-
|
|
21
|
-
return
|
|
20
|
+
const minimizedMovie = { id, title, release_date, director, producer };
|
|
21
|
+
return minimizedMovie;
|
|
22
22
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// files/$.eslintrc.json.ts
|
|
2
2
|
import { loadAsJson } from "@batijs/core";
|
|
3
3
|
async function getEslintConfig(props) {
|
|
4
|
-
if (!props.meta.BATI.has("eslint"))
|
|
5
|
-
return;
|
|
4
|
+
if (!props.meta.BATI.has("eslint")) return;
|
|
6
5
|
const eslintConfig = await loadAsJson(props);
|
|
7
6
|
eslintConfig.extends.push("plugin:vue/vue3-recommended");
|
|
8
7
|
eslintConfig.parser = "vue-eslint-parser";
|
|
@@ -44,17 +44,17 @@ var require_package = __commonJS({
|
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@types/node": "^18.19.14",
|
|
46
46
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
47
|
-
"@vue/compiler-sfc": "^3.4.
|
|
48
|
-
"@vue/server-renderer": "^3.4.
|
|
47
|
+
"@vue/compiler-sfc": "^3.4.27",
|
|
48
|
+
"@vue/server-renderer": "^3.4.27",
|
|
49
49
|
"cross-fetch": "^4.0.0",
|
|
50
|
-
"eslint-plugin-vue": "^9.
|
|
50
|
+
"eslint-plugin-vue": "^9.26.0",
|
|
51
51
|
tailwindcss: "^3.4.3",
|
|
52
52
|
typescript: "^5.4.5",
|
|
53
53
|
"unplugin-vue-markdown": "^0.26.2",
|
|
54
54
|
vike: "^0.4.171",
|
|
55
55
|
"vike-vue": "^0.6.5",
|
|
56
56
|
vite: "^5.2.11",
|
|
57
|
-
vue: "^3.4.
|
|
57
|
+
vue: "^3.4.27",
|
|
58
58
|
"vue-gtag": "^2.0.1"
|
|
59
59
|
},
|
|
60
60
|
dependencies: {
|
|
@@ -2,5 +2,5 @@ import type { OnPageTransitionEndAsync } from "vike/types";
|
|
|
2
2
|
|
|
3
3
|
export const onPageTransitionEnd: OnPageTransitionEndAsync = async () => {
|
|
4
4
|
console.log("Page transition end");
|
|
5
|
-
document.querySelector("body")
|
|
5
|
+
document.querySelector("body")?.classList.remove("page-is-transitioning");
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import type { OnPageTransitionStartAsync } from "vike/types";
|
|
|
2
2
|
|
|
3
3
|
export const onPageTransitionStart: OnPageTransitionStartAsync = async () => {
|
|
4
4
|
console.log("Page transition start");
|
|
5
|
-
document.querySelector("body")
|
|
5
|
+
document.querySelector("body")?.classList.add("page-is-transitioning");
|
|
6
6
|
};
|
|
@@ -17,6 +17,6 @@ export const data = async (pageContext: PageContextServer) => {
|
|
|
17
17
|
|
|
18
18
|
function minimize(movie: MovieDetails): MovieDetails {
|
|
19
19
|
const { id, title, release_date, director, producer } = movie;
|
|
20
|
-
|
|
21
|
-
return
|
|
20
|
+
const minimizedMovie = { id, title, release_date, director, producer };
|
|
21
|
+
return minimizedMovie;
|
|
22
22
|
}
|
package/dist/index.js
CHANGED
|
@@ -1537,7 +1537,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
1537
1537
|
// package.json
|
|
1538
1538
|
var package_default = {
|
|
1539
1539
|
name: "@batijs/cli",
|
|
1540
|
-
version: "0.0.
|
|
1540
|
+
version: "0.0.189",
|
|
1541
1541
|
type: "module",
|
|
1542
1542
|
scripts: {
|
|
1543
1543
|
"check-types": "tsc --noEmit",
|
|
@@ -1557,9 +1557,9 @@ var package_default = {
|
|
|
1557
1557
|
"@types/which": "^3.0.3",
|
|
1558
1558
|
citty: "^0.1.6",
|
|
1559
1559
|
colorette: "^2.0.20",
|
|
1560
|
-
esbuild: "^0.
|
|
1560
|
+
esbuild: "^0.21.2",
|
|
1561
1561
|
execa: "^8.0.1",
|
|
1562
|
-
rimraf: "^5.0.
|
|
1562
|
+
rimraf: "^5.0.7",
|
|
1563
1563
|
sift: "^17.1.3",
|
|
1564
1564
|
tsup: "^8.0.2",
|
|
1565
1565
|
typescript: "^5.4.5",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.189",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
"@types/which": "^3.0.3",
|
|
13
13
|
"citty": "^0.1.6",
|
|
14
14
|
"colorette": "^2.0.20",
|
|
15
|
-
"esbuild": "^0.
|
|
15
|
+
"esbuild": "^0.21.2",
|
|
16
16
|
"execa": "^8.0.1",
|
|
17
|
-
"rimraf": "^5.0.
|
|
17
|
+
"rimraf": "^5.0.7",
|
|
18
18
|
"sift": "^17.1.3",
|
|
19
19
|
"tsup": "^8.0.2",
|
|
20
20
|
"typescript": "^5.4.5",
|
|
21
21
|
"vite": "^5.2.11",
|
|
22
|
-
"@batijs/compile": "0.0.
|
|
23
|
-
"@batijs/build": "0.0.
|
|
22
|
+
"@batijs/compile": "0.0.189",
|
|
23
|
+
"@batijs/build": "0.0.189"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@batijs/
|
|
27
|
-
"@batijs/
|
|
26
|
+
"@batijs/features": "0.0.189",
|
|
27
|
+
"@batijs/core": "0.0.189"
|
|
28
28
|
},
|
|
29
29
|
"bin": "./dist/index.js",
|
|
30
30
|
"exports": {
|