@batijs/cli 0.0.307 → 0.0.309

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 (113) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +1 -1
  2. package/dist/boilerplates/@batijs/auth0/files/$README.md.js +1 -1
  3. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
  5. package/dist/boilerplates/@batijs/aws/files/$package.json.js +4 -4
  6. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
  7. package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
  8. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +2 -2
  9. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +1 -1
  10. package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +3 -3
  11. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
  12. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +3 -3
  13. package/dist/boilerplates/@batijs/d1/files/$README.md.js +1 -1
  14. package/dist/boilerplates/@batijs/d1/files/$package.json.js +3 -3
  15. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +1 -1
  16. package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
  17. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +2 -2
  18. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
  19. package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +1 -1
  20. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +2 -2
  21. package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +1 -1
  22. package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +1 -1
  23. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
  24. package/dist/boilerplates/@batijs/eslint/files/eslint.config.js +2 -0
  25. package/dist/boilerplates/@batijs/express/files/$package.json.js +2 -2
  26. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +2 -2
  27. package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +1 -1
  28. package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +1 -1
  29. package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +11 -5
  30. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
  31. package/dist/boilerplates/@batijs/h3/files/$package.json.js +2 -2
  32. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +2 -2
  33. package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
  34. package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +3 -3
  35. package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +1 -1
  36. package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +1 -1
  37. package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +5 -6
  38. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
  39. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +2 -2
  40. package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +95 -0
  41. package/dist/boilerplates/@batijs/panda-css/files/layouts/panda.css +1 -0
  42. package/dist/boilerplates/@batijs/panda-css/files/panda.config.ts +32 -0
  43. package/dist/boilerplates/@batijs/panda-css/files/postcss.config.js +5 -0
  44. package/dist/boilerplates/@batijs/panda-css/types/panda.config.d.ts +4 -0
  45. package/dist/boilerplates/@batijs/panda-css/types/postcss.config.d.ts +6 -0
  46. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
  47. package/dist/boilerplates/@batijs/prettier/files/.prettierignore +4 -0
  48. package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
  49. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +1 -1
  50. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
  51. package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
  52. package/dist/boilerplates/@batijs/react/files/$package.json.js +5 -3
  53. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
  54. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +3 -3
  55. package/dist/boilerplates/@batijs/react/files/layouts/LayoutDefault.tsx +26 -12
  56. package/dist/boilerplates/@batijs/react/files/pages/index/+Page.tsx +7 -2
  57. package/dist/boilerplates/@batijs/react/files/pages/index/Counter.tsx +17 -2
  58. package/dist/boilerplates/@batijs/react/files/pages/todo/TodoList.tsx +50 -2
  59. package/dist/boilerplates/@batijs/react/types/layouts/LayoutDefault.d.ts +1 -0
  60. package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +6 -0
  61. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +2 -2
  62. package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
  63. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
  64. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
  65. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +4 -4
  66. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
  67. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
  68. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
  69. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
  70. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
  71. package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
  72. package/dist/boilerplates/@batijs/shared/files/.gitignore +4 -0
  73. package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
  74. package/dist/boilerplates/@batijs/shared/files/tsconfig.json +1 -1
  75. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +2 -2
  76. package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
  77. package/dist/boilerplates/@batijs/solid/files/$package.json.js +4 -2
  78. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
  79. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +3 -3
  80. package/dist/boilerplates/@batijs/solid/files/layouts/LayoutDefault.tsx +26 -12
  81. package/dist/boilerplates/@batijs/solid/files/pages/index/+Page.tsx +7 -2
  82. package/dist/boilerplates/@batijs/solid/files/pages/index/Counter.tsx +17 -2
  83. package/dist/boilerplates/@batijs/solid/files/pages/todo/TodoList.tsx +50 -2
  84. package/dist/boilerplates/@batijs/solid/types/layouts/LayoutDefault.d.ts +1 -0
  85. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +2 -2
  86. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
  87. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +1 -1
  88. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +2 -2
  89. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +2 -2
  90. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +2 -2
  91. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +3 -3
  92. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
  93. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +4 -4
  94. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
  95. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +2 -2
  96. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +1 -1
  97. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +3 -3
  98. package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
  99. package/dist/boilerplates/@batijs/vue/files/$package.json.js +4 -2
  100. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
  101. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +4 -4
  102. package/dist/boilerplates/@batijs/vue/files/components/Content.vue +8 -2
  103. package/dist/boilerplates/@batijs/vue/files/components/Counter.vue +24 -10
  104. package/dist/boilerplates/@batijs/vue/files/components/Logo.vue +10 -2
  105. package/dist/boilerplates/@batijs/vue/files/components/Sidebar.vue +20 -2
  106. package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +2 -0
  107. package/dist/boilerplates/@batijs/vue/files/pages/index/+Page.vue +5 -5
  108. package/dist/boilerplates/@batijs/vue/files/pages/todo/TodoList.vue +45 -2
  109. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +2 -2
  110. package/dist/boilerplates/boilerplates.json +11 -0
  111. package/dist/{chunk-ACADSV35.js → chunk-2XLSFFOD.js} +17629 -17621
  112. package/dist/index.js +20 -5
  113. package/package.json +5 -5
@@ -7,19 +7,33 @@
7
7
  >
8
8
  Counter {{ state.count }}
9
9
  </button>
10
- <!-- !BATI.has("tailwindcss") -->
10
+ <!-- BATI.has("panda-css") -->
11
+ <button
12
+ type="button"
13
+ :class="
14
+ css({
15
+ display: 'inline-block',
16
+ border: '1px solid black',
17
+ rounded: 'sm',
18
+ bg: 'gray.200',
19
+ px: 1,
20
+ py: 0.5,
21
+ fontSize: 12,
22
+ fontWeight: 500,
23
+ lineHeight: '16px',
24
+ })
25
+ "
26
+ @click="state.count++"
27
+ >
28
+ Counter {{ state.count }}
29
+ </button>
30
+ <!-- !BATI.has("tailwindcss") && !BATI.has("panda-css") -->
11
31
  <button type="button" @click="state.count++">Counter {{ state.count }}</button>
12
32
  </template>
13
33
 
14
- <script lang="ts">
34
+ <script setup lang="ts">
15
35
  import { reactive } from "vue";
36
+ import { css } from "../styled-system/css";
16
37
 
17
- export default {
18
- setup() {
19
- const state = reactive({ count: 0 });
20
- return {
21
- state,
22
- };
23
- },
24
- };
38
+ const state = reactive({ count: 0 });
25
39
  </script>
@@ -5,11 +5,19 @@
5
5
  <img src="../assets/logo.svg" height="64" width="64" />
6
6
  </a>
7
7
  </div>
8
- <!-- !BATI.has("tailwindcss") -->
8
+ <!-- BATI.has("panda-css") -->
9
+ <div :class="css({ p: '20px', mb: '10px' })">
10
+ <a href="/">
11
+ <img src="../assets/logo.svg" height="64" width="64" />
12
+ </a>
13
+ </div>
14
+ <!-- !BATI.has("tailwindcss") && !BATI.has("panda-css") -->
9
15
  <div style="margin-top: 20px; margin-bottom: 10px">
10
16
  <a href="/">
11
17
  <img src="../assets/logo.svg" height="64" width="64" />
12
18
  </a>
13
19
  </div>
14
20
  </template>
15
- <script setup lang="ts"></script>
21
+ <script setup lang="ts">
22
+ import { css } from "../styled-system/css";
23
+ </script>
@@ -3,7 +3,23 @@
3
3
  <div id="sidebar" class="p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200">
4
4
  <slot />
5
5
  </div>
6
- <!-- !BATI.has("tailwindcss") -->
6
+ <!-- BATI.has("panda-css") -->
7
+ <div
8
+ id="sidebar"
9
+ :class="
10
+ css({
11
+ p: '20px',
12
+ display: 'flex',
13
+ flexShrink: 0,
14
+ flexDir: 'column',
15
+ lineHeight: '1.8em',
16
+ borderRight: '2px solid #eee',
17
+ })
18
+ "
19
+ >
20
+ <slot />
21
+ </div>
22
+ <!-- !BATI.has("tailwindcss") && !BATI.has("panda-css") -->
7
23
  <div
8
24
  id="sidebar"
9
25
  style="
@@ -18,4 +34,6 @@
18
34
  <slot />
19
35
  </div>
20
36
  </template>
21
- <script setup lang="ts"></script>
37
+ <script setup lang="ts">
38
+ import { css } from "../styled-system/css";
39
+ </script>
@@ -13,6 +13,8 @@
13
13
  </template>
14
14
 
15
15
  <script lang="ts" setup>
16
+ //# BATI.has("panda-css")
17
+ import "./panda.css";
16
18
  import Content from "../components/Content.vue";
17
19
  import Link from "../components/Link.vue";
18
20
  import Logo from "../components/Logo.vue";
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <!-- BATI.has("tailwindcss") -->
3
3
  <h1 class="font-bold text-3xl pb-4">My Vike app</h1>
4
- <!-- !BATI.has("tailwindcss") -->
4
+ <!-- BATI.has("panda-css") -->
5
+ <h1 :class="css({ font: 'bold 2em sans-serif', marginBlock: '0.67em' })">My Vike app</h1>
6
+ <!-- !BATI.has("tailwindcss") && !BATI.has("panda-css") -->
5
7
  <h1>My Vike app</h1>
6
8
  This page is:
7
9
  <ul>
@@ -10,9 +12,7 @@
10
12
  </ul>
11
13
  </template>
12
14
 
13
- <script lang="ts">
15
+ <script setup lang="ts">
14
16
  import Counter from "../../components/Counter.vue";
15
-
16
- const components = { Counter };
17
- export default { components };
17
+ import { css } from "../../styled-system/css";
18
18
  </script>
@@ -5,8 +5,8 @@
5
5
  </li>
6
6
  <li>
7
7
  <form @submit.prevent="submitNewTodo()">
8
- <input v-model="newTodo" type="text" />{{ " " }}
9
- <button type="submit">Add to-do</button>
8
+ <input v-model="newTodo" type="text" :class="[inputClass]" />
9
+ <button type="submit" :class="[buttonClass]">Add to-do</button>
10
10
  </form>
11
11
  </li>
12
12
  </ul>
@@ -17,6 +17,49 @@ import { onNewTodo } from "@batijs/telefunc/pages/todo/TodoList.telefunc";
17
17
  import { trpc } from "@batijs/trpc/trpc/client";
18
18
  import { client } from "@batijs/ts-rest/ts-rest/client";
19
19
  import { ref } from "vue";
20
+ import { css } from "../../styled-system/css";
21
+
22
+ const inputClass = ref(
23
+ BATI.has("tailwindcss")
24
+ ? "bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 w-full sm:w-auto p-2 mr-1 mb-1"
25
+ : BATI.has("panda-css")
26
+ ? css({
27
+ p: 2,
28
+ bg: "gray.50",
29
+ borderWidth: 1,
30
+ borderColor: "gray.300",
31
+ color: "gray.900",
32
+ fontSize: "sm",
33
+ rounded: "md",
34
+ width: { base: "full", sm: "auto" },
35
+ _focus: { ringColor: "teal.500", borderColor: "teal.500" },
36
+ mr: 1,
37
+ mb: 1,
38
+ })
39
+ : "",
40
+ );
41
+ const buttonClass = ref(
42
+ BATI.has("tailwindcss")
43
+ ? "text-white bg-blue-700 hover:bg-blue-800 focus:ring-2 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto p-2"
44
+ : BATI.has("panda-css")
45
+ ? css({
46
+ color: "white",
47
+ bg: { base: "teal.700", _hover: "teal.800" },
48
+ _focus: {
49
+ ringWidth: 2,
50
+ ringColor: "teal.300",
51
+ outline: "1px solid transparent",
52
+ outlineOffset: "1px",
53
+ },
54
+ cursor: "pointer",
55
+ fontSize: "sm",
56
+ fontWeight: 500,
57
+ rounded: "md",
58
+ width: { base: "full", sm: "auto" },
59
+ p: 2,
60
+ })
61
+ : "",
62
+ );
20
63
 
21
64
  const props = defineProps<{ initialTodoItems: { text: string }[] }>();
22
65
  const todoItems = ref(props.initialTodoItems);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  OXs
4
- } from "../../../../chunk-ACADSV35.js";
4
+ } from "../../../../chunk-2XLSFFOD.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/vue-sentry/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
- "@sentry/vue": "^8.38.0",
50
+ "@sentry/vue": "^8.39.0",
51
51
  "@types/node": "^18.19.64",
52
52
  "vike-vue": "^0.8.5",
53
53
  vite: "^5.4.11",
@@ -245,6 +245,17 @@
245
245
  "files"
246
246
  ]
247
247
  },
248
+ {
249
+ "config": {
250
+ "if": {
251
+ "flag": "panda-css"
252
+ }
253
+ },
254
+ "folder": "@batijs/panda-css",
255
+ "subfolders": [
256
+ "files"
257
+ ]
258
+ },
248
259
  {
249
260
  "config": {
250
261
  "if": {