@batijs/cli 0.0.198 → 0.0.200
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/compiled/files/$.eslintrc.json.js +17 -0
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
- 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/firebase-auth/files/$package.json.js +1 -1
- 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 +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/react/files/pages/todo/+Page.tsx +2 -2
- package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
- package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +7 -3
- package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.ts +4 -2
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/pages/todo/+Page.tsx +2 -2
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/vue/files/pages/todo/+Page.vue +2 -2
- package/dist/boilerplates/@batijs/vue/types/pages/+config.d.ts +8 -0
- package/dist/index.js +4 -4
- package/package.json +8 -8
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// files/$.eslintrc.json.ts
|
|
2
|
+
import { loadAsJson } from "@batijs/core";
|
|
3
|
+
async function getEslintConfig(props) {
|
|
4
|
+
if (!props.meta.BATI.has("eslint")) return;
|
|
5
|
+
const eslintConfig = await loadAsJson(props);
|
|
6
|
+
eslintConfig.rules ??= {};
|
|
7
|
+
eslintConfig.rules["react/no-unknown-property"] = [
|
|
8
|
+
"error",
|
|
9
|
+
{
|
|
10
|
+
ignore: ["css"]
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
return eslintConfig;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
getEslintConfig as default
|
|
17
|
+
};
|
|
@@ -45,9 +45,9 @@ var require_package = __commonJS({
|
|
|
45
45
|
"@types/better-sqlite3": "^7.6.10",
|
|
46
46
|
"@types/node": "^18.19.14",
|
|
47
47
|
"better-sqlite3": "^11.0.0",
|
|
48
|
-
"drizzle-kit": "^0.22.
|
|
49
|
-
"drizzle-orm": "^0.31.
|
|
50
|
-
tsx: "^4.
|
|
48
|
+
"drizzle-kit": "^0.22.6",
|
|
49
|
+
"drizzle-orm": "^0.31.2",
|
|
50
|
+
tsx: "^4.15.1"
|
|
51
51
|
},
|
|
52
52
|
dependencies: {
|
|
53
53
|
"@batijs/core": "workspace:*"
|
|
@@ -60,9 +60,9 @@ var require_package = __commonJS({
|
|
|
60
60
|
express: "^4.19.2",
|
|
61
61
|
"express-openid-connect": "^2.17.1",
|
|
62
62
|
telefunc: "^0.1.74",
|
|
63
|
-
tsx: "^4.
|
|
63
|
+
tsx: "^4.15.1",
|
|
64
64
|
vike: "^0.4.174",
|
|
65
|
-
vite: "^5.2.
|
|
65
|
+
vite: "^5.2.13"
|
|
66
66
|
},
|
|
67
67
|
dependencies: {
|
|
68
68
|
"@batijs/core": "workspace:*"
|
|
@@ -59,9 +59,9 @@ var require_package = __commonJS({
|
|
|
59
59
|
dotenv: "^16.4.5",
|
|
60
60
|
fastify: "^4.27.0",
|
|
61
61
|
telefunc: "^0.1.74",
|
|
62
|
-
tsx: "^4.
|
|
62
|
+
tsx: "^4.15.1",
|
|
63
63
|
vike: "^0.4.174",
|
|
64
|
-
vite: "^5.2.
|
|
64
|
+
vite: "^5.2.13"
|
|
65
65
|
},
|
|
66
66
|
dependencies: {
|
|
67
67
|
"@batijs/core": "workspace:*"
|
|
@@ -59,9 +59,9 @@ var require_package = __commonJS({
|
|
|
59
59
|
h3: "~1.11.1",
|
|
60
60
|
"serve-static": "^1.15.0",
|
|
61
61
|
telefunc: "^0.1.74",
|
|
62
|
-
tsx: "^4.
|
|
62
|
+
tsx: "^4.15.1",
|
|
63
63
|
vike: "^0.4.174",
|
|
64
|
-
vite: "^5.2.
|
|
64
|
+
vite: "^5.2.13"
|
|
65
65
|
},
|
|
66
66
|
dependencies: {
|
|
67
67
|
"@batijs/core": "workspace:*"
|
|
@@ -55,11 +55,11 @@ var require_package = __commonJS({
|
|
|
55
55
|
"@trpc/server": "^10.45.2",
|
|
56
56
|
"@types/node": "^18.19.14",
|
|
57
57
|
dotenv: "^16.4.5",
|
|
58
|
-
hono: "^4.4.
|
|
58
|
+
hono: "^4.4.4",
|
|
59
59
|
telefunc: "^0.1.74",
|
|
60
|
-
tsx: "^4.
|
|
60
|
+
tsx: "^4.15.1",
|
|
61
61
|
vike: "^0.4.174",
|
|
62
|
-
vite: "^5.2.
|
|
62
|
+
vite: "^5.2.13"
|
|
63
63
|
},
|
|
64
64
|
dependencies: {
|
|
65
65
|
"@batijs/core": "workspace:*"
|
|
@@ -52,7 +52,7 @@ var require_package = __commonJS({
|
|
|
52
52
|
"@types/node": "^18.19.14",
|
|
53
53
|
"@types/react": "^18.3.3",
|
|
54
54
|
"@types/react-dom": "^18.3.0",
|
|
55
|
-
"@vitejs/plugin-react": "^4.3.
|
|
55
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
56
56
|
"cross-fetch": "^4.0.0",
|
|
57
57
|
"eslint-plugin-react": "^7.34.2",
|
|
58
58
|
react: "^18.3.1",
|
|
@@ -61,7 +61,7 @@ var require_package = __commonJS({
|
|
|
61
61
|
typescript: "^5.4.5",
|
|
62
62
|
vike: "^0.4.174",
|
|
63
63
|
"vike-react": "^0.4.13",
|
|
64
|
-
vite: "^5.2.
|
|
64
|
+
vite: "^5.2.13"
|
|
65
65
|
},
|
|
66
66
|
dependencies: {
|
|
67
67
|
"@batijs/core": "workspace:*"
|
|
@@ -4,11 +4,11 @@ import { useData } from "vike-react/useData";
|
|
|
4
4
|
import { TodoList } from "./TodoList.js";
|
|
5
5
|
|
|
6
6
|
export default function Page() {
|
|
7
|
-
const
|
|
7
|
+
const data = useData<Data>();
|
|
8
8
|
return (
|
|
9
9
|
<>
|
|
10
10
|
<h1>To-do List</h1>
|
|
11
|
-
<TodoList initialTodoItems={
|
|
11
|
+
<TodoList initialTodoItems={data.todo} />
|
|
12
12
|
</>
|
|
13
13
|
);
|
|
14
14
|
}
|
|
@@ -3,13 +3,17 @@ import { db } from "@batijs/drizzle/database/db";
|
|
|
3
3
|
import { todoTable } from "@batijs/drizzle/database/schema";
|
|
4
4
|
import { lowDb } from "@batijs/shared-no-db/database/todoItems";
|
|
5
5
|
|
|
6
|
-
export type Data = {
|
|
6
|
+
export type Data = {
|
|
7
|
+
todo: { text: string }[];
|
|
8
|
+
};
|
|
7
9
|
|
|
8
10
|
export default async function data(): Promise<Data> {
|
|
9
11
|
if (BATI.has("drizzle")) {
|
|
10
|
-
|
|
12
|
+
const todo = db.select().from(todoTable).all();
|
|
13
|
+
|
|
14
|
+
return { todo };
|
|
11
15
|
} else {
|
|
12
16
|
lowDb.read();
|
|
13
|
-
return lowDb.data
|
|
17
|
+
return lowDb.data;
|
|
14
18
|
}
|
|
15
19
|
}
|
|
@@ -3,11 +3,11 @@ import { useData } from "vike-solid/useData";
|
|
|
3
3
|
import { TodoList } from "./TodoList.js";
|
|
4
4
|
|
|
5
5
|
export default function Page() {
|
|
6
|
-
const
|
|
6
|
+
const data = useData<Data>();
|
|
7
7
|
return (
|
|
8
8
|
<>
|
|
9
9
|
<h1>To-do List</h1>
|
|
10
|
-
<TodoList initialTodoItems={
|
|
10
|
+
<TodoList initialTodoItems={data.todo} />
|
|
11
11
|
</>
|
|
12
12
|
);
|
|
13
13
|
}
|
|
@@ -56,8 +56,8 @@ var require_package = __commonJS({
|
|
|
56
56
|
typescript: "^5.4.5",
|
|
57
57
|
"unplugin-vue-markdown": "^0.26.2",
|
|
58
58
|
vike: "^0.4.174",
|
|
59
|
-
"vike-vue": "^0.7.
|
|
60
|
-
vite: "^5.2.
|
|
59
|
+
"vike-vue": "^0.7.2",
|
|
60
|
+
vite: "^5.2.13",
|
|
61
61
|
vue: "^3.4.27",
|
|
62
62
|
"vue-gtag": "^2.0.1"
|
|
63
63
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<h1>To-do List</h1>
|
|
4
|
-
<TodoList :initial-todo-items="
|
|
4
|
+
<TodoList :initial-todo-items="data.todo" />
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
@@ -10,5 +10,5 @@ import type { Data } from "@batijs/shared-todo/pages/todo/+data";
|
|
|
10
10
|
import { useData } from "vike-vue/useData";
|
|
11
11
|
import TodoList from "./TodoList.vue";
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const data = useData<Data>();
|
|
14
14
|
</script>
|
|
@@ -6,6 +6,9 @@ declare const _default: {
|
|
|
6
6
|
title: string;
|
|
7
7
|
extends: {
|
|
8
8
|
name: string;
|
|
9
|
+
require: {
|
|
10
|
+
vike: string;
|
|
11
|
+
};
|
|
9
12
|
onRenderHtml: "import:vike-vue/renderer/onRenderHtml:onRenderHtml";
|
|
10
13
|
onRenderClient: "import:vike-vue/renderer/onRenderClient:onRenderClient";
|
|
11
14
|
passToClient: string[];
|
|
@@ -83,6 +86,11 @@ declare const _default: {
|
|
|
83
86
|
config: true;
|
|
84
87
|
};
|
|
85
88
|
};
|
|
89
|
+
require: {
|
|
90
|
+
env: {
|
|
91
|
+
config: true;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
86
94
|
bodyHtmlStart: {
|
|
87
95
|
env: {
|
|
88
96
|
server: true;
|
package/dist/index.js
CHANGED
|
@@ -1559,7 +1559,7 @@ var import_which_pm_runs = __toESM(require_which_pm_runs(), 1);
|
|
|
1559
1559
|
// package.json
|
|
1560
1560
|
var package_default = {
|
|
1561
1561
|
name: "@batijs/cli",
|
|
1562
|
-
version: "0.0.
|
|
1562
|
+
version: "0.0.200",
|
|
1563
1563
|
type: "module",
|
|
1564
1564
|
scripts: {
|
|
1565
1565
|
"check-types": "tsc --noEmit",
|
|
@@ -1580,13 +1580,13 @@ var package_default = {
|
|
|
1580
1580
|
"@types/which-pm-runs": "^1.0.2",
|
|
1581
1581
|
citty: "^0.1.6",
|
|
1582
1582
|
colorette: "^2.0.20",
|
|
1583
|
-
esbuild: "^0.21.
|
|
1584
|
-
execa: "^9.
|
|
1583
|
+
esbuild: "^0.21.5",
|
|
1584
|
+
execa: "^9.2.0",
|
|
1585
1585
|
rimraf: "^5.0.7",
|
|
1586
1586
|
sift: "^17.1.3",
|
|
1587
1587
|
tsup: "^8.1.0",
|
|
1588
1588
|
typescript: "^5.4.5",
|
|
1589
|
-
vite: "^5.2.
|
|
1589
|
+
vite: "^5.2.13",
|
|
1590
1590
|
"which-pm-runs": "^1.1.0"
|
|
1591
1591
|
},
|
|
1592
1592
|
dependencies: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.200",
|
|
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",
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
"@types/which-pm-runs": "^1.0.2",
|
|
14
14
|
"citty": "^0.1.6",
|
|
15
15
|
"colorette": "^2.0.20",
|
|
16
|
-
"esbuild": "^0.21.
|
|
17
|
-
"execa": "^9.
|
|
16
|
+
"esbuild": "^0.21.5",
|
|
17
|
+
"execa": "^9.2.0",
|
|
18
18
|
"rimraf": "^5.0.7",
|
|
19
19
|
"sift": "^17.1.3",
|
|
20
20
|
"tsup": "^8.1.0",
|
|
21
21
|
"typescript": "^5.4.5",
|
|
22
|
-
"vite": "^5.2.
|
|
22
|
+
"vite": "^5.2.13",
|
|
23
23
|
"which-pm-runs": "^1.1.0",
|
|
24
|
-
"@batijs/
|
|
25
|
-
"@batijs/
|
|
24
|
+
"@batijs/build": "0.0.200",
|
|
25
|
+
"@batijs/compile": "0.0.200"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@batijs/core": "0.0.
|
|
29
|
-
"@batijs/features": "0.0.
|
|
28
|
+
"@batijs/core": "0.0.200",
|
|
29
|
+
"@batijs/features": "0.0.200"
|
|
30
30
|
},
|
|
31
31
|
"bin": "./dist/index.js",
|
|
32
32
|
"exports": {
|