@batijs/cli 0.0.159 → 0.0.161
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/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/express/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/react/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +75 -0
- package/dist/boilerplates/@batijs/shared/files/package.json +2 -2
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +10 -10
- package/dist/index.js +26 -22
- package/package.json +8 -8
- package/dist/boilerplates/@batijs/react/types/pages/+config.h.d.ts +0 -10
- /package/dist/boilerplates/@batijs/react/files/pages/{+config.h.ts → +config.ts} +0 -0
- /package/dist/boilerplates/@batijs/react-telefunc/files/pages/todo/{+config.h.ts → +config.ts} +0 -0
- /package/dist/boilerplates/@batijs/react-telefunc/types/pages/todo/{+config.h.d.ts → +config.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/react-trpc/files/pages/todo-trpc/{+config.h.ts → +config.ts} +0 -0
- /package/dist/boilerplates/@batijs/react-trpc/types/pages/todo-trpc/{+config.h.d.ts → +config.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/shared-plain/files/renderer/{+config.h.ts → +config.ts} +0 -0
- /package/dist/boilerplates/@batijs/shared-plain/types/renderer/{+config.h.d.ts → +config.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/solid/files/pages/{+config.h.ts → +config.ts} +0 -0
- /package/dist/boilerplates/@batijs/solid/types/pages/{+config.h.d.ts → +config.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/solid-telefunc/files/pages/todo/{+config.h.ts → +config.ts} +0 -0
- /package/dist/boilerplates/@batijs/solid-telefunc/types/pages/todo/{+config.h.d.ts → +config.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/solid-trpc/files/pages/todo-trpc/{+config.h.ts → +config.ts} +0 -0
- /package/dist/boilerplates/@batijs/solid-trpc/types/pages/todo-trpc/{+config.h.d.ts → +config.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/vue/files/pages/{+config.h.ts → +config.ts} +0 -0
- /package/dist/boilerplates/@batijs/vue/types/pages/{+config.h.d.ts → +config.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/vue-telefunc/files/pages/todo/{+config.h.ts → +config.ts} +0 -0
- /package/dist/boilerplates/@batijs/vue-telefunc/types/pages/todo/{+config.h.d.ts → +config.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/vue-trpc/files/pages/todo-trpc/{+config.h.ts → +config.ts} +0 -0
- /package/dist/boilerplates/@batijs/vue-trpc/types/pages/todo-trpc/{+config.h.d.ts → +config.d.ts} +0 -0
|
@@ -42,8 +42,8 @@ var require_package = __commonJS({
|
|
|
42
42
|
},
|
|
43
43
|
devDependencies: {
|
|
44
44
|
"@batijs/compile": "workspace:^",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
46
|
-
"@typescript-eslint/parser": "^
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
46
|
+
"@typescript-eslint/parser": "^7.0.1",
|
|
47
47
|
eslint: "^8.56.0"
|
|
48
48
|
},
|
|
49
49
|
dependencies: {
|
|
@@ -41,19 +41,19 @@ var require_package = __commonJS({
|
|
|
41
41
|
author: "",
|
|
42
42
|
license: "MIT",
|
|
43
43
|
devDependencies: {
|
|
44
|
-
"@auth/core": "^0.
|
|
44
|
+
"@auth/core": "^0.27.0",
|
|
45
45
|
"@batijs/compile": "workspace:*",
|
|
46
46
|
"@batijs/trpc": "workspace:*",
|
|
47
|
-
"@hattip/adapter-node": "^0.0.
|
|
47
|
+
"@hattip/adapter-node": "^0.0.43",
|
|
48
48
|
"@trpc/server": "^10.45.1",
|
|
49
49
|
"@types/express": "^4.17.21",
|
|
50
50
|
"@types/node": "^18.19.14",
|
|
51
51
|
express: "^4.18.2",
|
|
52
52
|
telefunc: "^0.1.71",
|
|
53
53
|
tsx: "^4.7.1",
|
|
54
|
-
vike: "^0.4.
|
|
55
|
-
"vike-authjs": "^0.1.
|
|
56
|
-
vite: "^5.1.
|
|
54
|
+
vike: "^0.4.162",
|
|
55
|
+
"vike-authjs": "^0.1.5",
|
|
56
|
+
vite: "^5.1.3"
|
|
57
57
|
},
|
|
58
58
|
dependencies: {
|
|
59
59
|
"@batijs/core": "workspace:*"
|
|
@@ -41,10 +41,10 @@ var require_package = __commonJS({
|
|
|
41
41
|
author: "",
|
|
42
42
|
license: "MIT",
|
|
43
43
|
devDependencies: {
|
|
44
|
-
"@auth/core": "^0.
|
|
44
|
+
"@auth/core": "^0.27.0",
|
|
45
45
|
"@batijs/compile": "workspace:*",
|
|
46
46
|
"@batijs/trpc": "workspace:^",
|
|
47
|
-
"@hattip/polyfills": "^0.0.
|
|
47
|
+
"@hattip/polyfills": "^0.0.43",
|
|
48
48
|
"@trpc/server": "^10.45.1",
|
|
49
49
|
"@types/node": "^18.19.14",
|
|
50
50
|
"@types/serve-static": "^1.15.5",
|
|
@@ -52,9 +52,9 @@ var require_package = __commonJS({
|
|
|
52
52
|
"serve-static": "^1.15.0",
|
|
53
53
|
telefunc: "^0.1.71",
|
|
54
54
|
tsx: "^4.7.1",
|
|
55
|
-
vike: "^0.4.
|
|
56
|
-
"vike-authjs": "^0.1.
|
|
57
|
-
vite: "^5.1.
|
|
55
|
+
vike: "^0.4.162",
|
|
56
|
+
"vike-authjs": "^0.1.5",
|
|
57
|
+
vite: "^5.1.3"
|
|
58
58
|
},
|
|
59
59
|
dependencies: {
|
|
60
60
|
"@batijs/core": "workspace:*"
|
|
@@ -41,20 +41,20 @@ var require_package = __commonJS({
|
|
|
41
41
|
author: "",
|
|
42
42
|
license: "MIT",
|
|
43
43
|
devDependencies: {
|
|
44
|
-
"@auth/core": "^0.
|
|
44
|
+
"@auth/core": "^0.27.0",
|
|
45
45
|
"@batijs/compile": "workspace:*",
|
|
46
46
|
"@batijs/trpc": "workspace:^",
|
|
47
|
-
"@hattip/adapter-node": "^0.0.
|
|
48
|
-
"@hattip/core": "^0.0.
|
|
49
|
-
"@hattip/router": "^0.0.
|
|
50
|
-
"@hattip/vite": "^0.0.
|
|
47
|
+
"@hattip/adapter-node": "^0.0.43",
|
|
48
|
+
"@hattip/core": "^0.0.43",
|
|
49
|
+
"@hattip/router": "^0.0.43",
|
|
50
|
+
"@hattip/vite": "^0.0.43",
|
|
51
51
|
"@trpc/server": "^10.45.1",
|
|
52
52
|
"@types/node": "^18.19.14",
|
|
53
53
|
hattip: "^0.0.33",
|
|
54
54
|
telefunc: "^0.1.71",
|
|
55
|
-
vike: "^0.4.
|
|
56
|
-
"vike-authjs": "^0.1.
|
|
57
|
-
vite: "^5.1.
|
|
55
|
+
vike: "^0.4.162",
|
|
56
|
+
"vike-authjs": "^0.1.5",
|
|
57
|
+
vite: "^5.1.3"
|
|
58
58
|
},
|
|
59
59
|
dependencies: {
|
|
60
60
|
"@batijs/core": "workspace:*"
|
|
@@ -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.2.
|
|
49
|
+
"@types/react": "^18.2.56",
|
|
50
50
|
"@types/react-dom": "^18.2.19",
|
|
51
51
|
"@vitejs/plugin-react": "^4.2.1",
|
|
52
52
|
"cross-fetch": "^4.0.0",
|
|
@@ -55,9 +55,9 @@ var require_package = __commonJS({
|
|
|
55
55
|
"react-dom": "^18.2.0",
|
|
56
56
|
tailwindcss: "^3.4.1",
|
|
57
57
|
typescript: "^5.3.3",
|
|
58
|
-
vike: "^0.4.
|
|
59
|
-
"vike-react": "^0.4.
|
|
60
|
-
vite: "^5.1.
|
|
58
|
+
vike: "^0.4.162",
|
|
59
|
+
"vike-react": "^0.4.6",
|
|
60
|
+
vite: "^5.1.3"
|
|
61
61
|
},
|
|
62
62
|
dependencies: {
|
|
63
63
|
"@batijs/core": "workspace:*"
|
|
@@ -80,8 +80,8 @@ var require_package = __commonJS({
|
|
|
80
80
|
"./layouts/LayoutDefault": {
|
|
81
81
|
types: "./dist/types/layouts/LayoutDefault.d.ts"
|
|
82
82
|
},
|
|
83
|
-
"./pages/+config
|
|
84
|
-
types: "./dist/types/pages/+config.
|
|
83
|
+
"./pages/+config": {
|
|
84
|
+
types: "./dist/types/pages/+config.d.ts"
|
|
85
85
|
},
|
|
86
86
|
"./pages/+onPageTransitionEnd": {
|
|
87
87
|
types: "./dist/types/pages/+onPageTransitionEnd.d.ts"
|
|
@@ -131,8 +131,8 @@ var require_package = __commonJS({
|
|
|
131
131
|
"layouts/LayoutDefault": [
|
|
132
132
|
"./dist/types/layouts/LayoutDefault.d.ts"
|
|
133
133
|
],
|
|
134
|
-
"pages/+config
|
|
135
|
-
"./dist/types/pages/+config.
|
|
134
|
+
"pages/+config": [
|
|
135
|
+
"./dist/types/pages/+config.d.ts"
|
|
136
136
|
],
|
|
137
137
|
"pages/+onPageTransitionEnd": [
|
|
138
138
|
"./dist/types/pages/+onPageTransitionEnd.d.ts"
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import Head from "../layouts/HeadDefault";
|
|
2
|
+
import Layout from "../layouts/LayoutDefault";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
Layout: typeof Layout;
|
|
5
|
+
Head: typeof Head;
|
|
6
|
+
title: string;
|
|
7
|
+
extends: {
|
|
8
|
+
name: string;
|
|
9
|
+
onRenderHtml: "import:vike-react/renderer/onRenderHtml:onRenderHtml";
|
|
10
|
+
onRenderClient: "import:vike-react/renderer/onRenderClient:onRenderClient";
|
|
11
|
+
passToClient: string[];
|
|
12
|
+
clientRouting: true;
|
|
13
|
+
hydrationCanBeAborted: true;
|
|
14
|
+
meta: {
|
|
15
|
+
Head: {
|
|
16
|
+
env: {
|
|
17
|
+
server: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
Layout: {
|
|
21
|
+
env: {
|
|
22
|
+
server: true;
|
|
23
|
+
client: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
title: {
|
|
27
|
+
env: {
|
|
28
|
+
server: true;
|
|
29
|
+
client: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
favicon: {
|
|
33
|
+
env: {
|
|
34
|
+
server: true;
|
|
35
|
+
client: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
lang: {
|
|
39
|
+
env: {
|
|
40
|
+
server: true;
|
|
41
|
+
client: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
ssr: {
|
|
45
|
+
env: {
|
|
46
|
+
config: true;
|
|
47
|
+
};
|
|
48
|
+
effect: typeof import("vike-react/dist/renderer/ssrEffect").ssrEffect;
|
|
49
|
+
};
|
|
50
|
+
stream: {
|
|
51
|
+
env: {
|
|
52
|
+
server: true;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
VikeReactQueryWrapper: {
|
|
56
|
+
env: {
|
|
57
|
+
client: true;
|
|
58
|
+
server: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
Wrapper: {
|
|
62
|
+
env: {
|
|
63
|
+
client: true;
|
|
64
|
+
server: true;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
name: {
|
|
68
|
+
env: {
|
|
69
|
+
config: true;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export default _default;
|
|
@@ -45,13 +45,13 @@ var require_package = __commonJS({
|
|
|
45
45
|
"@types/node": "^18.19.14",
|
|
46
46
|
"cross-fetch": "^4.0.0",
|
|
47
47
|
"eslint-plugin-solid": "^0.13.1",
|
|
48
|
-
"solid-js": "^1.8.
|
|
48
|
+
"solid-js": "^1.8.15",
|
|
49
49
|
tailwindcss: "^3.4.1",
|
|
50
50
|
typescript: "^5.3.3",
|
|
51
|
-
vike: "^0.4.
|
|
52
|
-
"vike-solid": "^0.4.
|
|
53
|
-
vite: "^5.1.
|
|
54
|
-
"vite-plugin-solid": "^2.
|
|
51
|
+
vike: "^0.4.162",
|
|
52
|
+
"vike-solid": "^0.4.1",
|
|
53
|
+
vite: "^5.1.3",
|
|
54
|
+
"vite-plugin-solid": "^2.10.1"
|
|
55
55
|
},
|
|
56
56
|
dependencies: {
|
|
57
57
|
"@batijs/core": "workspace:*"
|
|
@@ -74,8 +74,8 @@ var require_package = __commonJS({
|
|
|
74
74
|
"./layouts/LayoutDefault": {
|
|
75
75
|
types: "./dist/types/layouts/LayoutDefault.d.ts"
|
|
76
76
|
},
|
|
77
|
-
"./pages/+config
|
|
78
|
-
types: "./dist/types/pages/+config.
|
|
77
|
+
"./pages/+config": {
|
|
78
|
+
types: "./dist/types/pages/+config.d.ts"
|
|
79
79
|
},
|
|
80
80
|
"./pages/+onPageTransitionEnd": {
|
|
81
81
|
types: "./dist/types/pages/+onPageTransitionEnd.d.ts"
|
|
@@ -125,8 +125,8 @@ var require_package = __commonJS({
|
|
|
125
125
|
"layouts/LayoutDefault": [
|
|
126
126
|
"./dist/types/layouts/LayoutDefault.d.ts"
|
|
127
127
|
],
|
|
128
|
-
"pages/+config
|
|
129
|
-
"./dist/types/pages/+config.
|
|
128
|
+
"pages/+config": [
|
|
129
|
+
"./dist/types/pages/+config.d.ts"
|
|
130
130
|
],
|
|
131
131
|
"pages/+onPageTransitionEnd": [
|
|
132
132
|
"./dist/types/pages/+onPageTransitionEnd.d.ts"
|
|
@@ -44,11 +44,11 @@ var require_package = __commonJS({
|
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@types/node": "^18.19.14",
|
|
46
46
|
autoprefixer: "^10.4.17",
|
|
47
|
-
daisyui: "^4.
|
|
47
|
+
daisyui: "^4.7.2",
|
|
48
48
|
postcss: "^8.4.35",
|
|
49
49
|
tailwindcss: "^3.4.1",
|
|
50
|
-
vike: "^0.4.
|
|
51
|
-
vite: "^5.1.
|
|
50
|
+
vike: "^0.4.162",
|
|
51
|
+
vite: "^5.1.3"
|
|
52
52
|
},
|
|
53
53
|
dependencies: {
|
|
54
54
|
"@batijs/core": "workspace:*"
|
|
@@ -44,8 +44,8 @@ var require_package = __commonJS({
|
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@types/node": "^18.19.14",
|
|
46
46
|
telefunc: "^0.1.71",
|
|
47
|
-
vike: "^0.4.
|
|
48
|
-
vite: "^5.1.
|
|
47
|
+
vike: "^0.4.162",
|
|
48
|
+
vite: "^5.1.3"
|
|
49
49
|
},
|
|
50
50
|
dependencies: {
|
|
51
51
|
"@batijs/core": "workspace:*"
|
|
@@ -44,8 +44,8 @@ var require_package = __commonJS({
|
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@types/node": "^18.19.14",
|
|
46
46
|
"@vite-plugin-vercel/vike": "^4.0.0",
|
|
47
|
-
vike: "^0.4.
|
|
48
|
-
vite: "^5.1.
|
|
47
|
+
vike: "^0.4.162",
|
|
48
|
+
vite: "^5.1.3",
|
|
49
49
|
"vite-plugin-vercel": "^4.0.0"
|
|
50
50
|
},
|
|
51
51
|
dependencies: {
|
|
@@ -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.19",
|
|
48
|
+
"@vue/server-renderer": "^3.4.19",
|
|
49
49
|
"cross-fetch": "^4.0.0",
|
|
50
50
|
"eslint-plugin-vue": "^9.21.1",
|
|
51
51
|
tailwindcss: "^3.4.1",
|
|
52
52
|
typescript: "^5.3.3",
|
|
53
53
|
"unplugin-vue-markdown": "^0.26.0",
|
|
54
|
-
vike: "^0.4.
|
|
55
|
-
"vike-vue": "^0.6.
|
|
56
|
-
vite: "^5.1.
|
|
57
|
-
vue: "^3.4.
|
|
54
|
+
vike: "^0.4.162",
|
|
55
|
+
"vike-vue": "^0.6.2",
|
|
56
|
+
vite: "^5.1.3",
|
|
57
|
+
vue: "^3.4.19",
|
|
58
58
|
"vue-gtag": "^2.0.1"
|
|
59
59
|
},
|
|
60
60
|
dependencies: {
|
|
@@ -69,8 +69,8 @@ var require_package = __commonJS({
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
exports: {
|
|
72
|
-
"./pages/+config
|
|
73
|
-
types: "./dist/types/pages/+config.
|
|
72
|
+
"./pages/+config": {
|
|
73
|
+
types: "./dist/types/pages/+config.d.ts"
|
|
74
74
|
},
|
|
75
75
|
"./pages/+onCreateApp": {
|
|
76
76
|
types: "./dist/types/pages/+onCreateApp.d.ts"
|
|
@@ -99,8 +99,8 @@ var require_package = __commonJS({
|
|
|
99
99
|
},
|
|
100
100
|
typesVersions: {
|
|
101
101
|
"*": {
|
|
102
|
-
"pages/+config
|
|
103
|
-
"./dist/types/pages/+config.
|
|
102
|
+
"pages/+config": [
|
|
103
|
+
"./dist/types/pages/+config.d.ts"
|
|
104
104
|
],
|
|
105
105
|
"pages/+onCreateApp": [
|
|
106
106
|
"./dist/types/pages/+onCreateApp.d.ts"
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
consola
|
|
5
5
|
} from "./chunk-P3F3WO2D.js";
|
|
6
6
|
|
|
7
|
-
// ../../node_modules/.pnpm/citty@0.1.
|
|
7
|
+
// ../../node_modules/.pnpm/citty@0.1.6/node_modules/citty/dist/index.mjs
|
|
8
8
|
function toArray(val) {
|
|
9
9
|
if (Array.isArray(val)) {
|
|
10
10
|
return val;
|
|
@@ -40,18 +40,18 @@ function isUppercase(char = "") {
|
|
|
40
40
|
if (NUMBER_CHAR_RE.test(char)) {
|
|
41
41
|
return void 0;
|
|
42
42
|
}
|
|
43
|
-
return char.
|
|
43
|
+
return char !== char.toLowerCase();
|
|
44
44
|
}
|
|
45
|
-
function splitByCase(
|
|
45
|
+
function splitByCase(str, separators) {
|
|
46
46
|
const splitters = separators ?? STR_SPLITTERS;
|
|
47
47
|
const parts = [];
|
|
48
|
-
if (!
|
|
48
|
+
if (!str || typeof str !== "string") {
|
|
49
49
|
return parts;
|
|
50
50
|
}
|
|
51
51
|
let buff = "";
|
|
52
52
|
let previousUpper;
|
|
53
53
|
let previousSplitter;
|
|
54
|
-
for (const char of
|
|
54
|
+
for (const char of str) {
|
|
55
55
|
const isSplitter = splitters.includes(char);
|
|
56
56
|
if (isSplitter === true) {
|
|
57
57
|
parts.push(buff);
|
|
@@ -68,7 +68,7 @@ function splitByCase(string_, separators) {
|
|
|
68
68
|
continue;
|
|
69
69
|
}
|
|
70
70
|
if (previousUpper === true && isUpper === false && buff.length > 1) {
|
|
71
|
-
const lastChar = buff
|
|
71
|
+
const lastChar = buff.at(-1);
|
|
72
72
|
parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
|
|
73
73
|
buff = lastChar + char;
|
|
74
74
|
previousUpper = isUpper;
|
|
@@ -82,20 +82,20 @@ function splitByCase(string_, separators) {
|
|
|
82
82
|
parts.push(buff);
|
|
83
83
|
return parts;
|
|
84
84
|
}
|
|
85
|
-
function upperFirst(
|
|
86
|
-
return
|
|
85
|
+
function upperFirst(str) {
|
|
86
|
+
return str ? str[0].toUpperCase() + str.slice(1) : "";
|
|
87
87
|
}
|
|
88
|
-
function lowerFirst(
|
|
89
|
-
return
|
|
88
|
+
function lowerFirst(str) {
|
|
89
|
+
return str ? str[0].toLowerCase() + str.slice(1) : "";
|
|
90
90
|
}
|
|
91
|
-
function pascalCase(
|
|
92
|
-
return
|
|
91
|
+
function pascalCase(str, opts) {
|
|
92
|
+
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => upperFirst(opts?.normalize ? p.toLowerCase() : p)).join("") : "";
|
|
93
93
|
}
|
|
94
|
-
function camelCase(
|
|
95
|
-
return lowerFirst(pascalCase(
|
|
94
|
+
function camelCase(str, opts) {
|
|
95
|
+
return lowerFirst(pascalCase(str || "", opts));
|
|
96
96
|
}
|
|
97
|
-
function kebabCase(
|
|
98
|
-
return
|
|
97
|
+
function kebabCase(str, joiner) {
|
|
98
|
+
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner ?? "-") : "";
|
|
99
99
|
}
|
|
100
100
|
function toArr(any) {
|
|
101
101
|
return any == void 0 ? [] : Array.isArray(any) ? any : [any];
|
|
@@ -358,8 +358,12 @@ async function renderUsage(cmd, parent) {
|
|
|
358
358
|
if (arg.type === "positional") {
|
|
359
359
|
const name = arg.name.toUpperCase();
|
|
360
360
|
const isRequired = arg.required !== false && arg.default === void 0;
|
|
361
|
-
const
|
|
362
|
-
posLines.push([
|
|
361
|
+
const defaultHint = arg.default ? `="${arg.default}"` : "";
|
|
362
|
+
posLines.push([
|
|
363
|
+
"`" + name + defaultHint + "`",
|
|
364
|
+
arg.description || "",
|
|
365
|
+
arg.valueHint ? `<${arg.valueHint}>` : ""
|
|
366
|
+
]);
|
|
363
367
|
usageLine.push(isRequired ? `<${name}>` : `[${name}]`);
|
|
364
368
|
} else {
|
|
365
369
|
const isRequired = arg.required === true && arg.default === void 0;
|
|
@@ -585,7 +589,7 @@ Please report this issue to https://github.com/magne4000/bati`
|
|
|
585
589
|
// package.json
|
|
586
590
|
var package_default = {
|
|
587
591
|
name: "@batijs/cli",
|
|
588
|
-
version: "0.0.
|
|
592
|
+
version: "0.0.161",
|
|
589
593
|
type: "module",
|
|
590
594
|
scripts: {
|
|
591
595
|
"check-types": "tsc --noEmit",
|
|
@@ -603,15 +607,15 @@ var package_default = {
|
|
|
603
607
|
"@batijs/compile": "workspace:*",
|
|
604
608
|
"@types/node": "^18.19.14",
|
|
605
609
|
"@types/which": "^3.0.3",
|
|
606
|
-
citty: "^0.1.
|
|
610
|
+
citty: "^0.1.6",
|
|
607
611
|
colorette: "^2.0.20",
|
|
608
|
-
esbuild: "^0.20.
|
|
612
|
+
esbuild: "^0.20.1",
|
|
609
613
|
execa: "^8.0.1",
|
|
610
614
|
rimraf: "^5.0.5",
|
|
611
615
|
sift: "^17.0.1",
|
|
612
616
|
tsup: "^8.0.2",
|
|
613
617
|
typescript: "^5.3.3",
|
|
614
|
-
vite: "^5.1.
|
|
618
|
+
vite: "^5.1.3"
|
|
615
619
|
},
|
|
616
620
|
dependencies: {
|
|
617
621
|
"@batijs/core": "workspace:*",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.161",
|
|
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",
|
|
@@ -10,21 +10,21 @@
|
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@types/node": "^18.19.14",
|
|
12
12
|
"@types/which": "^3.0.3",
|
|
13
|
-
"citty": "^0.1.
|
|
13
|
+
"citty": "^0.1.6",
|
|
14
14
|
"colorette": "^2.0.20",
|
|
15
|
-
"esbuild": "^0.20.
|
|
15
|
+
"esbuild": "^0.20.1",
|
|
16
16
|
"execa": "^8.0.1",
|
|
17
17
|
"rimraf": "^5.0.5",
|
|
18
18
|
"sift": "^17.0.1",
|
|
19
19
|
"tsup": "^8.0.2",
|
|
20
20
|
"typescript": "^5.3.3",
|
|
21
|
-
"vite": "^5.1.
|
|
22
|
-
"@batijs/
|
|
23
|
-
"@batijs/
|
|
21
|
+
"vite": "^5.1.3",
|
|
22
|
+
"@batijs/compile": "0.0.161",
|
|
23
|
+
"@batijs/build": "0.0.161"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@batijs/core": "0.0.
|
|
27
|
-
"@batijs/features": "0.0.
|
|
26
|
+
"@batijs/core": "0.0.161",
|
|
27
|
+
"@batijs/features": "0.0.161"
|
|
28
28
|
},
|
|
29
29
|
"bin": "./dist/index.js",
|
|
30
30
|
"exports": {
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import vikeReact from "vike-react/config";
|
|
2
|
-
import Head from "../layouts/HeadDefault";
|
|
3
|
-
import Layout from "../layouts/LayoutDefault";
|
|
4
|
-
declare const _default: {
|
|
5
|
-
Layout: typeof Layout;
|
|
6
|
-
Head: typeof Head;
|
|
7
|
-
title: string;
|
|
8
|
-
extends: typeof vikeReact;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
File without changes
|
/package/dist/boilerplates/@batijs/react-telefunc/files/pages/todo/{+config.h.ts → +config.ts}
RENAMED
|
File without changes
|
/package/dist/boilerplates/@batijs/react-telefunc/types/pages/todo/{+config.h.d.ts → +config.d.ts}
RENAMED
|
File without changes
|
/package/dist/boilerplates/@batijs/react-trpc/files/pages/todo-trpc/{+config.h.ts → +config.ts}
RENAMED
|
File without changes
|
/package/dist/boilerplates/@batijs/react-trpc/types/pages/todo-trpc/{+config.h.d.ts → +config.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/boilerplates/@batijs/shared-plain/types/renderer/{+config.h.d.ts → +config.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/boilerplates/@batijs/solid-telefunc/files/pages/todo/{+config.h.ts → +config.ts}
RENAMED
|
File without changes
|
/package/dist/boilerplates/@batijs/solid-telefunc/types/pages/todo/{+config.h.d.ts → +config.d.ts}
RENAMED
|
File without changes
|
/package/dist/boilerplates/@batijs/solid-trpc/files/pages/todo-trpc/{+config.h.ts → +config.ts}
RENAMED
|
File without changes
|
/package/dist/boilerplates/@batijs/solid-trpc/types/pages/todo-trpc/{+config.h.d.ts → +config.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/boilerplates/@batijs/vue-telefunc/files/pages/todo/{+config.h.ts → +config.ts}
RENAMED
|
File without changes
|
/package/dist/boilerplates/@batijs/vue-telefunc/types/pages/todo/{+config.h.d.ts → +config.d.ts}
RENAMED
|
File without changes
|
/package/dist/boilerplates/@batijs/vue-trpc/files/pages/todo-trpc/{+config.h.ts → +config.ts}
RENAMED
|
File without changes
|
/package/dist/boilerplates/@batijs/vue-trpc/types/pages/todo-trpc/{+config.h.d.ts → +config.d.ts}
RENAMED
|
File without changes
|