@batijs/cli 0.0.107 → 0.0.110

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.
Files changed (137) hide show
  1. package/README.md +29 -0
  2. package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +70 -1
  3. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +68 -1
  4. package/dist/boilerplates/@batijs/express/files/$package.json.js +85 -1
  5. package/dist/boilerplates/@batijs/express/files/express-entry.ts +19 -0
  6. package/dist/boilerplates/@batijs/express/types/express-entry.d.ts +1 -0
  7. package/dist/boilerplates/@batijs/h3/files/$package.json.js +86 -1
  8. package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +25 -1
  9. package/dist/boilerplates/@batijs/h3/types/h3-entry.d.ts +1 -0
  10. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +87 -1
  11. package/dist/boilerplates/@batijs/hattip/files/hattip-entry.ts +22 -1
  12. package/dist/boilerplates/@batijs/hattip/types/hattip-entry.d.ts +3 -0
  13. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +64 -1
  14. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +65 -1
  15. package/dist/boilerplates/@batijs/react/files/$package.json.js +162 -2
  16. package/dist/boilerplates/@batijs/react/files/layouts/LayoutDefault.tsx +2 -1
  17. package/dist/boilerplates/@batijs/react/types/components/Link.d.ts +4 -0
  18. package/dist/boilerplates/@batijs/react/types/layouts/HeadDefault.d.ts +1 -0
  19. package/dist/boilerplates/@batijs/react/types/layouts/LayoutDefault.d.ts +6 -0
  20. package/dist/boilerplates/@batijs/react/types/pages/+config.h.d.ts +41 -0
  21. package/dist/boilerplates/@batijs/react/types/pages/_error/+Page.d.ts +4 -0
  22. package/dist/boilerplates/@batijs/react/types/pages/index/+Page.d.ts +1 -0
  23. package/dist/boilerplates/@batijs/react/types/pages/index/Counter.d.ts +1 -0
  24. package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+Page.d.ts +4 -0
  25. package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+onBeforeRender.d.ts +10 -0
  26. package/dist/boilerplates/@batijs/react/types/pages/star-wars/filterMovieData.d.ts +2 -0
  27. package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+Page.d.ts +4 -0
  28. package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+onBeforeRender.d.ts +9 -0
  29. package/dist/boilerplates/@batijs/react/types/pages/star-wars/types.d.ts +12 -0
  30. package/dist/boilerplates/@batijs/react-telefunc/files/pages/todo/+Page.tsx +1 -2
  31. package/dist/boilerplates/@batijs/react-telefunc/files/pages/todo/+onBeforeRender.ts +1 -1
  32. package/dist/boilerplates/@batijs/react-telefunc/files/pages/todo/TodoList.telefunc.ts +1 -1
  33. package/dist/boilerplates/@batijs/react-telefunc/files/pages/todo/TodoList.tsx +1 -2
  34. package/dist/boilerplates/@batijs/react-telefunc/types/pages/todo/+Page.d.ts +4 -0
  35. package/dist/boilerplates/@batijs/react-telefunc/types/pages/todo/+config.h.d.ts +4 -0
  36. package/dist/boilerplates/@batijs/react-telefunc/types/pages/todo/+onBeforeRender.d.ts +7 -0
  37. package/dist/boilerplates/@batijs/react-telefunc/types/pages/todo/TodoList.d.ts +4 -0
  38. package/dist/boilerplates/@batijs/react-telefunc/types/pages/todo/TodoList.telefunc.d.ts +4 -0
  39. package/dist/boilerplates/@batijs/react-trpc/files/pages/todo-trpc/+Page.tsx +25 -0
  40. package/dist/boilerplates/@batijs/react-trpc/files/pages/todo-trpc/+config.h.ts +5 -0
  41. package/dist/boilerplates/@batijs/react-trpc/files/pages/todo-trpc/+onBeforeRender.ts +13 -0
  42. package/dist/boilerplates/@batijs/react-trpc/files/pages/todo-trpc/TodoList.tsx +30 -0
  43. package/dist/boilerplates/@batijs/react-trpc/types/pages/todo-trpc/+Page.d.ts +4 -0
  44. package/dist/boilerplates/@batijs/react-trpc/types/pages/todo-trpc/+config.h.d.ts +4 -0
  45. package/dist/boilerplates/@batijs/react-trpc/types/pages/todo-trpc/+onBeforeRender.d.ts +7 -0
  46. package/dist/boilerplates/@batijs/react-trpc/types/pages/todo-trpc/TodoList.d.ts +4 -0
  47. package/dist/boilerplates/@batijs/shared/files/$index.html.js +2 -6
  48. package/dist/boilerplates/@batijs/shared/types/vite.config.d.ts +2 -0
  49. package/dist/boilerplates/@batijs/shared-db/types/database/todoItems.d.ts +6 -0
  50. package/dist/boilerplates/@batijs/solid/files/$package.json.js +168 -2
  51. package/dist/boilerplates/@batijs/solid/files/layouts/LayoutDefault.tsx +2 -1
  52. package/dist/boilerplates/@batijs/solid/types/components/Link.d.ts +4 -0
  53. package/dist/boilerplates/@batijs/solid/types/layouts/HeadDefault.d.ts +1 -0
  54. package/dist/boilerplates/@batijs/solid/types/layouts/LayoutDefault.d.ts +6 -0
  55. package/dist/boilerplates/@batijs/solid/types/pages/+config.h.d.ts +40 -0
  56. package/dist/boilerplates/@batijs/solid/types/pages/_error/+Page.d.ts +4 -0
  57. package/dist/boilerplates/@batijs/solid/types/pages/index/+Page.d.ts +1 -0
  58. package/dist/boilerplates/@batijs/solid/types/pages/index/Counter.d.ts +2 -0
  59. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+Page.d.ts +4 -0
  60. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+onBeforeRender.d.ts +11 -0
  61. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/filterMovieData.d.ts +3 -0
  62. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+Page.d.ts +4 -0
  63. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+onBeforePrerenderStart.d.ts +18 -0
  64. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+onBeforeRender.d.ts +10 -0
  65. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/getStarWarsMovies.d.ts +7 -0
  66. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/types.d.ts +12 -0
  67. package/dist/boilerplates/@batijs/solid-telefunc/files/pages/todo/+Page.tsx +1 -1
  68. package/dist/boilerplates/@batijs/solid-telefunc/files/pages/todo/+onBeforeRender.ts +2 -2
  69. package/dist/boilerplates/@batijs/solid-telefunc/files/pages/todo/TodoList.telefunc.ts +2 -2
  70. package/dist/boilerplates/@batijs/solid-telefunc/files/pages/todo/TodoList.tsx +1 -1
  71. package/dist/boilerplates/@batijs/solid-telefunc/types/pages/todo/+Page.d.ts +4 -0
  72. package/dist/boilerplates/@batijs/solid-telefunc/types/pages/todo/+config.h.d.ts +4 -0
  73. package/dist/boilerplates/@batijs/solid-telefunc/types/pages/todo/+onBeforeRender.d.ts +8 -0
  74. package/dist/boilerplates/@batijs/solid-telefunc/types/pages/todo/TodoList.d.ts +4 -0
  75. package/dist/boilerplates/@batijs/solid-telefunc/types/pages/todo/TodoList.telefunc.d.ts +5 -0
  76. package/dist/boilerplates/@batijs/solid-trpc/files/pages/todo-trpc/+Page.tsx +25 -0
  77. package/dist/boilerplates/@batijs/solid-trpc/files/pages/todo-trpc/+config.h.ts +3 -0
  78. package/dist/boilerplates/@batijs/solid-trpc/files/pages/todo-trpc/+onBeforeRender.ts +15 -0
  79. package/dist/boilerplates/@batijs/solid-trpc/files/pages/todo-trpc/TodoList.tsx +28 -0
  80. package/dist/boilerplates/@batijs/solid-trpc/types/pages/todo-trpc/+Page.d.ts +4 -0
  81. package/dist/boilerplates/@batijs/solid-trpc/types/pages/todo-trpc/+config.h.d.ts +4 -0
  82. package/dist/boilerplates/@batijs/solid-trpc/types/pages/todo-trpc/+onBeforeRender.d.ts +8 -0
  83. package/dist/boilerplates/@batijs/solid-trpc/types/pages/todo-trpc/TodoList.d.ts +4 -0
  84. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +85 -1
  85. package/dist/boilerplates/@batijs/tailwindcss/types/postcss.config.d.ts +7 -0
  86. package/dist/boilerplates/@batijs/tailwindcss/types/tailwind.config.d.ts +2 -0
  87. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +65 -1
  88. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +100 -0
  89. package/dist/boilerplates/@batijs/trpc/files/$vite.config.ts.js +13 -0
  90. package/dist/boilerplates/@batijs/trpc/files/trpc/client.ts +10 -0
  91. package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +34 -0
  92. package/dist/boilerplates/@batijs/trpc/files/trpc/vite-plugin.ts +49 -0
  93. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +38 -0
  94. package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +64 -0
  95. package/dist/boilerplates/@batijs/trpc/types/trpc/vite-plugin.d.ts +12 -0
  96. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +66 -1
  97. package/dist/boilerplates/@batijs/vue/files/$package.json.js +111 -2
  98. package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +5 -1
  99. package/dist/boilerplates/@batijs/vue/types/pages/+config.h.d.ts +43 -0
  100. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/@id/+onBeforeRender.d.ts +11 -0
  101. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/filterMovieData.d.ts +3 -0
  102. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/index/+onBeforeRender.d.ts +10 -0
  103. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/types.d.ts +12 -0
  104. package/dist/boilerplates/@batijs/vue-telefunc/files/components/TodoList.telefunc.ts +2 -2
  105. package/dist/boilerplates/@batijs/vue-telefunc/files/components/TodoList.vue +5 -13
  106. package/dist/boilerplates/@batijs/vue-telefunc/files/pages/todo/+Page.vue +2 -3
  107. package/dist/boilerplates/@batijs/vue-telefunc/files/pages/todo/+onBeforeRender.ts +2 -2
  108. package/dist/boilerplates/@batijs/vue-telefunc/types/components/TodoList.telefunc.d.ts +5 -0
  109. package/dist/boilerplates/@batijs/vue-telefunc/types/pages/todo/+config.h.d.ts +4 -0
  110. package/dist/boilerplates/@batijs/vue-telefunc/types/pages/todo/+onBeforeRender.d.ts +8 -0
  111. package/dist/boilerplates/@batijs/vue-trpc/files/components/TodoListTrpc.vue +29 -0
  112. package/dist/boilerplates/@batijs/vue-trpc/files/pages/todo-trpc/+Page.vue +19 -0
  113. package/dist/boilerplates/@batijs/vue-trpc/files/pages/todo-trpc/+config.h.ts +3 -0
  114. package/dist/boilerplates/@batijs/vue-trpc/files/pages/todo-trpc/+onBeforeRender.ts +15 -0
  115. package/dist/boilerplates/@batijs/vue-trpc/types/pages/todo-trpc/+config.h.d.ts +4 -0
  116. package/dist/boilerplates/@batijs/vue-trpc/types/pages/todo-trpc/+onBeforeRender.d.ts +8 -0
  117. package/dist/boilerplates/boilerplates.json +75 -0
  118. package/dist/{chunk-chunk-HOVHXSZ5.js → chunk-P3F3WO2D.js} +1 -1
  119. package/dist/index.js +4 -4
  120. package/dist/{chunk-prompt-LPA56PA5.js → prompt-QGA753QE.js} +1 -1
  121. package/package.json +5 -5
  122. package/dist/boilerplates/@batijs/edgedb/package-BD3G47NI.js +0 -64
  123. package/dist/boilerplates/@batijs/eslint/package-L5KZG4F3.js +0 -62
  124. package/dist/boilerplates/@batijs/express/package-KV3NAHNP.js +0 -69
  125. package/dist/boilerplates/@batijs/h3/package-TUTMSCQF.js +0 -70
  126. package/dist/boilerplates/@batijs/hattip/package-VKEJY76G.js +0 -69
  127. package/dist/boilerplates/@batijs/prettier/package-MCK4YCPP.js +0 -62
  128. package/dist/boilerplates/@batijs/prisma/package-JDCZNZLS.js +0 -63
  129. package/dist/boilerplates/@batijs/react/package-O2DZQ5DB.js +0 -75
  130. package/dist/boilerplates/@batijs/react-telefunc/files/database/todoItems.ts +0 -9
  131. package/dist/boilerplates/@batijs/solid/package-2AEIPM6V.js +0 -69
  132. package/dist/boilerplates/@batijs/tailwindcss/package-CMMRUVWD.js +0 -65
  133. package/dist/boilerplates/@batijs/telefunc/package-NGJ3M2KO.js +0 -63
  134. package/dist/boilerplates/@batijs/vercel/package-QY45OGDN.js +0 -64
  135. package/dist/boilerplates/@batijs/vue/package-7RHEEZZN.js +0 -72
  136. package/dist/boilerplates/@batijs/vue-telefunc/files/database/todoItems.ts +0 -12
  137. package/dist/boilerplates/@batijs/{solid-telefunc → shared-db}/files/database/todoItems.ts +3 -3
@@ -1,7 +1,4 @@
1
- // files/$index.html.ts
2
- import "@batijs/core";
3
-
4
- // ../../packages/features/dist/chunk-6565AZKR.js
1
+ // ../../packages/features/dist/chunk-OYURNQWD.js
5
2
  var features = [
6
3
  // Framework
7
4
  {
@@ -70,8 +67,7 @@ var features = [
70
67
  label: "tRPC",
71
68
  flag: "trpc",
72
69
  image: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIwLjg0ZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjU2IDMwNSI+PHBhdGggZmlsbD0iIzM5OENDQiIgZD0iTTI4LjU3IDI0NC40ODRoMjEuOTgydjExLjE1M0gyOC41NzF2MjUuMzA4YTE2Ljg4IDE2Ljg4IDAgMCAwIC43MzggNS4zNjRhOC4xNTIgOC4xNTIgMCAwIDAgMi4wODggMy40YTcuODE1IDcuODE1IDAgMCAwIDMuMyAxLjg1MWMxLjIzNS4zMyAyLjUwNC41MSAzLjc4LjUzNmwuNTQ3LjAwMmMxLjE1IDAgMi4zMzggMCAzLjU2My0uMTYybC43MjctLjA5bDEuNDA5LS4xNmMuNDYxLS4wNTQuOTE1LS4xMTMgMS4zNjYtLjE4OGwuNjYtLjEwNWwxLjI0LS4xODRjLjQwMS0uMDYuNzktLjEyNCAxLjE3NS0uMTk5bC45MTgtLjE4NGwuNDI3LS4wOWwuNzktLjE3NmwuMzY2LS4wODdsMS40NzYgMTAuMzlhMTguNTA1IDE4LjUwNSAwIDAgMS0zLjc1MiAxLjZhMzUuOSAzNS45IDAgMCAxLTQuNTEzIDEuMTEzYy0xLjYuMy0zLjI2NC41MjYtNS4wMDIuNjg4YTU0LjI4IDU0LjI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TIzLjQ4MiAxMy41OTFsMjMuNDgyIDEzLjUzbDIzLjQ4Mi0xMy41M2wtMjMuNDgyLTEzLjU5MVptMTkuMTQzLTY4LjkydjExLjU0bC0zNS42MSAyMC41N3YzNC43NzJsLTEwLjAwMyA1Ljc3N1Y2MS4zNTVMODguNzUgMzUuMDIzWk0xMjcuMjM3IDBsMzguNTEyIDIyLjIxOXYxMi4yMTlsNDYuNjEzIDI2LjkxN3Y0Ni4wMzlsLTEwLjAwMy01Ljc3N1Y2Ny4xMzJsLTM2LjYxLTIxLjE0MXYyMC42NjZsLTM4LjQ4NyAyMi4yMTlsLTM4LjQ4Ni0yMi4yMTlWMjIuMjE5TDEyNy4yMzcgMFpNOTguNzggMzMuNzZ2MjcuMTJsMjMuNDU3IDEzLjU1NFY0Ny4zMjZMOTguNzc5IDMzLjc2Wm01Ni45NDIgMGwtMjMuNDU3IDEzLjU2NnYyNy4wOTZMMTU1LjcyIDYwLjg4VjMzLjc2Wm0tMjguNDg0LTIyLjIwN0wxMDMuNzggMjUuMTA3bDIzLjQ1NyAxMy41NTRsMjMuNDgyLTEzLjU1NGwtMjMuNDgyLTEzLjU1NFoiLz48L3N2Zz4=",
73
- url: "https://trpc.io",
74
- disabled: true
70
+ url: "https://trpc.io"
75
71
  },
76
72
  // Server
77
73
  {
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfig;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ type TodoItem = {
2
+ text: string;
3
+ };
4
+ declare const todoItems: TodoItem[];
5
+ export { todoItems };
6
+ export type { TodoItem };
@@ -1,13 +1,179 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ // package.json
28
+ var require_package = __commonJS({
29
+ "package.json"(exports, module) {
30
+ module.exports = {
31
+ name: "@batijs/solid",
32
+ private: true,
33
+ version: "0.0.92",
34
+ description: "",
35
+ type: "module",
36
+ scripts: {
37
+ "check-types": "tsc --noEmit",
38
+ build: "bati-compile-boilerplate"
39
+ },
40
+ keywords: [],
41
+ author: "",
42
+ license: "MIT",
43
+ devDependencies: {
44
+ "@batijs/compile": "workspace:*",
45
+ "@types/node": "^16.18.40",
46
+ "cross-fetch": "^4.0.0",
47
+ "eslint-plugin-solid": "^0.13.0",
48
+ "solid-js": "^1.8.4",
49
+ tailwindcss: "^3.3.5",
50
+ typescript: "^5.2.2",
51
+ vike: "^0.4.144",
52
+ "vike-solid": "^0.2.3",
53
+ vite: "^4.5.0",
54
+ "vite-plugin-solid": "^2.7.2"
55
+ },
56
+ dependencies: {
57
+ "@batijs/core": "workspace:*"
58
+ },
59
+ files: [
60
+ "dist/"
61
+ ],
62
+ bati: {
63
+ if: {
64
+ flag: "solid"
65
+ }
66
+ },
67
+ exports: {
68
+ "./components/Link": {
69
+ types: "./dist/types/components/Link.d.ts"
70
+ },
71
+ "./layouts/HeadDefault": {
72
+ types: "./dist/types/layouts/HeadDefault.d.ts"
73
+ },
74
+ "./layouts/LayoutDefault": {
75
+ types: "./dist/types/layouts/LayoutDefault.d.ts"
76
+ },
77
+ "./pages/+config.h": {
78
+ types: "./dist/types/pages/+config.h.d.ts"
79
+ },
80
+ "./pages/_error/+Page": {
81
+ types: "./dist/types/pages/_error/+Page.d.ts"
82
+ },
83
+ "./pages/index/Counter": {
84
+ types: "./dist/types/pages/index/Counter.d.ts"
85
+ },
86
+ "./pages/index/+Page": {
87
+ types: "./dist/types/pages/index/+Page.d.ts"
88
+ },
89
+ "./pages/star-wars/types": {
90
+ types: "./dist/types/pages/star-wars/types.d.ts"
91
+ },
92
+ "./pages/star-wars/filterMovieData": {
93
+ types: "./dist/types/pages/star-wars/filterMovieData.d.ts"
94
+ },
95
+ "./pages/star-wars/@id/+Page": {
96
+ types: "./dist/types/pages/star-wars/@id/+Page.d.ts"
97
+ },
98
+ "./pages/star-wars/@id/+onBeforeRender": {
99
+ types: "./dist/types/pages/star-wars/@id/+onBeforeRender.d.ts"
100
+ },
101
+ "./pages/star-wars/index/+Page": {
102
+ types: "./dist/types/pages/star-wars/index/+Page.d.ts"
103
+ },
104
+ "./pages/star-wars/index/getStarWarsMovies": {
105
+ types: "./dist/types/pages/star-wars/index/getStarWarsMovies.d.ts"
106
+ },
107
+ "./pages/star-wars/index/+onBeforePrerenderStart": {
108
+ types: "./dist/types/pages/star-wars/index/+onBeforePrerenderStart.d.ts"
109
+ },
110
+ "./pages/star-wars/index/+onBeforeRender": {
111
+ types: "./dist/types/pages/star-wars/index/+onBeforeRender.d.ts"
112
+ }
113
+ },
114
+ typesVersions: {
115
+ "*": {
116
+ "components/Link": [
117
+ "./dist/types/components/Link.d.ts"
118
+ ],
119
+ "layouts/HeadDefault": [
120
+ "./dist/types/layouts/HeadDefault.d.ts"
121
+ ],
122
+ "layouts/LayoutDefault": [
123
+ "./dist/types/layouts/LayoutDefault.d.ts"
124
+ ],
125
+ "pages/+config.h": [
126
+ "./dist/types/pages/+config.h.d.ts"
127
+ ],
128
+ "pages/_error/+Page": [
129
+ "./dist/types/pages/_error/+Page.d.ts"
130
+ ],
131
+ "pages/index/Counter": [
132
+ "./dist/types/pages/index/Counter.d.ts"
133
+ ],
134
+ "pages/index/+Page": [
135
+ "./dist/types/pages/index/+Page.d.ts"
136
+ ],
137
+ "pages/star-wars/types": [
138
+ "./dist/types/pages/star-wars/types.d.ts"
139
+ ],
140
+ "pages/star-wars/filterMovieData": [
141
+ "./dist/types/pages/star-wars/filterMovieData.d.ts"
142
+ ],
143
+ "pages/star-wars/@id/+Page": [
144
+ "./dist/types/pages/star-wars/@id/+Page.d.ts"
145
+ ],
146
+ "pages/star-wars/@id/+onBeforeRender": [
147
+ "./dist/types/pages/star-wars/@id/+onBeforeRender.d.ts"
148
+ ],
149
+ "pages/star-wars/index/+Page": [
150
+ "./dist/types/pages/star-wars/index/+Page.d.ts"
151
+ ],
152
+ "pages/star-wars/index/getStarWarsMovies": [
153
+ "./dist/types/pages/star-wars/index/getStarWarsMovies.d.ts"
154
+ ],
155
+ "pages/star-wars/index/+onBeforePrerenderStart": [
156
+ "./dist/types/pages/star-wars/index/+onBeforePrerenderStart.d.ts"
157
+ ],
158
+ "pages/star-wars/index/+onBeforeRender": [
159
+ "./dist/types/pages/star-wars/index/+onBeforeRender.d.ts"
160
+ ]
161
+ }
162
+ }
163
+ };
164
+ }
165
+ });
166
+
1
167
  // files/$package.json.ts
2
168
  import { addDependency, loadAsJson } from "@batijs/core";
3
169
  async function getPackageJson(props) {
4
170
  const packageJson = await loadAsJson(props);
5
171
  if (props.meta.BATI.has("eslint")) {
6
- addDependency(packageJson, await import("../package-2AEIPM6V.js"), {
172
+ addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)), {
7
173
  devDependencies: ["eslint-plugin-solid"]
8
174
  });
9
175
  }
10
- return addDependency(packageJson, await import("../package-2AEIPM6V.js"), {
176
+ return addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)), {
11
177
  devDependencies: ["vite"],
12
178
  dependencies: ["cross-fetch", "solid-js", "vike-solid", "vike"]
13
179
  });
@@ -20,7 +20,8 @@ export default function LayoutDefault(props: { children?: JSX.Element }) {
20
20
  <Sidebar>
21
21
  <Logo />
22
22
  <Link href="/">Welcome</Link>
23
- {BATI.has("telefunc") ? <Link href="/todo">Todo</Link> : undefined}
23
+ {BATI.has("telefunc") ? <Link href="/todo">Todo (telefunc)</Link> : undefined}
24
+ {BATI.has("trpc") ? <Link href="/todo-trpc">Todo (tRPC)</Link> : undefined}
24
25
  <Link href="/star-wars">Data Fetching</Link>
25
26
  </Sidebar>
26
27
  <Content>{props.children}</Content>
@@ -0,0 +1,4 @@
1
+ export declare function Link(props: {
2
+ href: string;
3
+ children: string;
4
+ }): import("solid-js").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function HeadDefault(): import("solid-js").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import "./style.css";
2
+ import "./tailwind.css";
3
+ import type { JSX } from "solid-js";
4
+ export default function LayoutDefault(props: {
5
+ children?: JSX.Element;
6
+ }): JSX.Element;
@@ -0,0 +1,40 @@
1
+ import Layout from "../layouts/LayoutDefault";
2
+ import Head from "../layouts/HeadDefault";
3
+ declare const _default: {
4
+ Layout: typeof Layout;
5
+ Head: typeof Head;
6
+ title: string;
7
+ description: string;
8
+ extends: {
9
+ onRenderHtml: "import:vike-solid/renderer/onRenderHtml:onRenderHtml";
10
+ onRenderClient: "import:vike-solid/renderer/onRenderClient:onRenderClient";
11
+ passToClient: string[];
12
+ clientRouting: true;
13
+ hydrationCanBeAborted: true;
14
+ meta: {
15
+ Head: {
16
+ env: "server-only";
17
+ };
18
+ Layout: {
19
+ env: "server-and-client";
20
+ };
21
+ title: {
22
+ env: "server-and-client";
23
+ };
24
+ description: {
25
+ env: "server-only";
26
+ };
27
+ favicon: {
28
+ env: "server-only";
29
+ };
30
+ lang: {
31
+ env: "server-only";
32
+ };
33
+ ssr: {
34
+ env: "config-only";
35
+ effect: import("vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/configDefinitionsBuiltIn").ConfigEffect;
36
+ };
37
+ };
38
+ };
39
+ };
40
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export default function Page(props: {
2
+ is404: boolean;
3
+ errorInfo?: string;
4
+ }): import("solid-js").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Page(): import("solid-js").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Counter };
2
+ declare function Counter(): import("solid-js").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { MovieDetails } from "../types";
2
+ export default function Page(props: {
3
+ movie: MovieDetails;
4
+ }): import("solid-js").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export default onBeforeRender;
2
+ import type { PageContextBuiltInServer } from "vike/types";
3
+ import type { MovieDetails } from "../types";
4
+ declare function onBeforeRender(pageContext: PageContextBuiltInServer): Promise<{
5
+ pageContext: {
6
+ pageProps: {
7
+ movie: MovieDetails;
8
+ };
9
+ title: string;
10
+ };
11
+ }>;
@@ -0,0 +1,3 @@
1
+ import type { MovieDetails } from "./types";
2
+ export { filterMovieData };
3
+ declare function filterMovieData(movie: MovieDetails & Record<string, unknown>): MovieDetails;
@@ -0,0 +1,4 @@
1
+ import type { Movie } from "../types";
2
+ export default function Page(props: {
3
+ movies: Movie[];
4
+ }): import("solid-js").JSX.Element;
@@ -0,0 +1,18 @@
1
+ export default onBeforePrerenderStart;
2
+ declare function onBeforePrerenderStart(): Promise<({
3
+ url: string;
4
+ pageContext: {
5
+ pageProps: {
6
+ movie: import("../types").MovieDetails;
7
+ };
8
+ title: string;
9
+ };
10
+ } | {
11
+ url: string;
12
+ pageContext: {
13
+ pageProps: {
14
+ movies: import("../types").Movie[];
15
+ };
16
+ title: string;
17
+ };
18
+ })[]>;
@@ -0,0 +1,10 @@
1
+ import type { Movie } from "../types";
2
+ export default onBeforeRender;
3
+ declare function onBeforeRender(): Promise<{
4
+ pageContext: {
5
+ pageProps: {
6
+ movies: Movie[];
7
+ };
8
+ title: string;
9
+ };
10
+ }>;
@@ -0,0 +1,7 @@
1
+ export { getStarWarsMovies };
2
+ export { filterMoviesData };
3
+ export { getTitle };
4
+ import type { Movie, MovieDetails } from "../types";
5
+ declare function getStarWarsMovies(): Promise<MovieDetails[]>;
6
+ declare function filterMoviesData(movies: MovieDetails[]): Movie[];
7
+ declare function getTitle(movies: Movie[] | MovieDetails[]): string;
@@ -0,0 +1,12 @@
1
+ export type Movie = {
2
+ id: string;
3
+ title: string;
4
+ release_date: string;
5
+ };
6
+ export type MovieDetails = {
7
+ id: string;
8
+ title: string;
9
+ release_date: string;
10
+ director: string;
11
+ producer: string;
12
+ };
@@ -1,5 +1,5 @@
1
+ import type { TodoItem } from "@batijs/shared-db/database/todoItems";
1
2
  import { createSignal } from "solid-js";
2
- import type { TodoItem } from "../../database/todoItems";
3
3
  import { TodoList } from "./TodoList";
4
4
 
5
5
  export default function Page(props: { initialTodoItems: TodoItem[] }) {
@@ -1,8 +1,8 @@
1
+ import { todoItems } from "@batijs/shared-db/database/todoItems";
2
+
1
3
  // https://vike.dev/onBeforeRender
2
4
  export default onBeforeRender;
3
5
 
4
- import { todoItems } from "../../database/todoItems";
5
-
6
6
  function onBeforeRender() {
7
7
  const initialTodoItems = todoItems;
8
8
  return {
@@ -1,6 +1,6 @@
1
- export { onNewTodo };
1
+ import { todoItems, type TodoItem } from "@batijs/shared-db/database/todoItems";
2
2
 
3
- import { type TodoItem, todoItems } from "../../database/todoItems";
3
+ export { onNewTodo };
4
4
 
5
5
  async function onNewTodo({ text }: TodoItem) {
6
6
  todoItems.push({ text });
@@ -1,5 +1,5 @@
1
+ import type { TodoItem } from "@batijs/shared-db/database/todoItems";
1
2
  import { createSignal, For, untrack } from "solid-js";
2
- import type { TodoItem } from "../../database/todoItems.js";
3
3
  import { onNewTodo } from "./TodoList.telefunc.js";
4
4
 
5
5
  export function TodoList(props: { initialTodoItems: TodoItem[] }) {
@@ -0,0 +1,4 @@
1
+ import type { TodoItem } from "@batijs/shared-db/database/todoItems";
2
+ export default function Page(props: {
3
+ initialTodoItems: TodoItem[];
4
+ }): import("solid-js").JSX.Element;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ prerender: boolean;
3
+ };
4
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export default onBeforeRender;
2
+ declare function onBeforeRender(): {
3
+ pageContext: {
4
+ pageProps: {
5
+ initialTodoItems: import("@batijs/shared-db/database/todoItems").TodoItem[];
6
+ };
7
+ };
8
+ };
@@ -0,0 +1,4 @@
1
+ import type { TodoItem } from "@batijs/shared-db/database/todoItems";
2
+ export declare function TodoList(props: {
3
+ initialTodoItems: TodoItem[];
4
+ }): import("solid-js").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { type TodoItem } from "@batijs/shared-db/database/todoItems";
2
+ export { onNewTodo };
3
+ declare function onNewTodo({ text }: TodoItem): Promise<{
4
+ todoItems: TodoItem[];
5
+ }>;
@@ -0,0 +1,25 @@
1
+ import type { TodoItem } from "@batijs/shared-db/database/todoItems";
2
+ import { createSignal } from "solid-js";
3
+ import { TodoList } from "./TodoList";
4
+
5
+ export default function Page(props: { initialTodoItems: TodoItem[] }) {
6
+ return (
7
+ <>
8
+ <h1>To-do List</h1>
9
+ <TodoList initialTodoItems={props.initialTodoItems} />
10
+ <Counter />
11
+ </>
12
+ );
13
+ }
14
+
15
+ function Counter() {
16
+ const [count, setCount] = createSignal(0);
17
+ return (
18
+ <div>
19
+ This page is interactive:
20
+ <button type="button" onClick={() => setCount((count) => count + 1)}>
21
+ Counter {count()}
22
+ </button>
23
+ </div>
24
+ );
25
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ prerender: false,
3
+ };
@@ -0,0 +1,15 @@
1
+ import { todoItems } from "@batijs/shared-db/database/todoItems";
2
+
3
+ // https://vike.dev/onBeforeRender
4
+ export default onBeforeRender;
5
+
6
+ function onBeforeRender() {
7
+ const initialTodoItems = todoItems;
8
+ return {
9
+ pageContext: {
10
+ pageProps: {
11
+ initialTodoItems,
12
+ },
13
+ },
14
+ };
15
+ }
@@ -0,0 +1,28 @@
1
+ import type { TodoItem } from "@batijs/shared-db/database/todoItems";
2
+ import { trpc } from "@batijs/trpc/trpc/client";
3
+ import { createSignal, For, untrack } from "solid-js";
4
+
5
+ export function TodoList(props: { initialTodoItems: TodoItem[] }) {
6
+ const [todoItems, setTodoItems] = createSignal(props.initialTodoItems);
7
+ const [draft, setDraft] = createSignal("");
8
+ return (
9
+ <>
10
+ <ul>
11
+ <For each={todoItems()}>{(todoItem) => <li>{todoItem.text}</li>}</For>
12
+ <li>
13
+ <form
14
+ onSubmit={async (ev) => {
15
+ ev.preventDefault();
16
+ const { todoItems } = await trpc.onNewTodo.mutate(untrack(draft));
17
+ setDraft("");
18
+ setTodoItems(todoItems);
19
+ }}
20
+ >
21
+ <input type="text" onChange={(ev) => setDraft(ev.target.value)} value={draft()} />{" "}
22
+ <button type="submit">Add to-do</button>
23
+ </form>
24
+ </li>
25
+ </ul>
26
+ </>
27
+ );
28
+ }
@@ -0,0 +1,4 @@
1
+ import type { TodoItem } from "@batijs/shared-db/database/todoItems";
2
+ export default function Page(props: {
3
+ initialTodoItems: TodoItem[];
4
+ }): import("solid-js").JSX.Element;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ prerender: boolean;
3
+ };
4
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export default onBeforeRender;
2
+ declare function onBeforeRender(): {
3
+ pageContext: {
4
+ pageProps: {
5
+ initialTodoItems: import("@batijs/shared-db/database/todoItems").TodoItem[];
6
+ };
7
+ };
8
+ };
@@ -0,0 +1,4 @@
1
+ import type { TodoItem } from "@batijs/shared-db/database/todoItems";
2
+ export declare function TodoList(props: {
3
+ initialTodoItems: TodoItem[];
4
+ }): import("solid-js").JSX.Element;