@batijs/cli 0.0.203 → 0.0.204

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.
@@ -5,7 +5,8 @@ async function getViteConfig(props) {
5
5
  addVitePlugin(mod, {
6
6
  from: "vite-plugin-compiled-react",
7
7
  constructor: "compiled",
8
- imported: "compiled"
8
+ imported: "compiled",
9
+ options: { extract: true }
9
10
  });
10
11
  return mod.generate().code;
11
12
  }
@@ -41,15 +41,15 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
+ "@babel/core": "^7.24.7",
45
+ "@babel/plugin-syntax-flow": "^7.24.7",
46
+ "@babel/plugin-transform-react-jsx": "^7.24.7",
44
47
  "@batijs/compile": "workspace:^",
45
48
  "@batijs/drizzle": "workspace:^",
46
49
  "@batijs/shared-todo": "workspace:^",
47
50
  "@batijs/telefunc": "workspace:^",
48
51
  "@batijs/trpc": "workspace:^",
49
52
  "@batijs/ts-rest": "workspace:*",
50
- "@babel/core": "^7.24.7",
51
- "@babel/plugin-syntax-flow": "^7.24.7",
52
- "@babel/plugin-transform-react-jsx": "^7.24.7",
53
53
  "@types/node": "^18.19.14",
54
54
  "@types/react": "^18.3.3",
55
55
  "@types/react-dom": "^18.3.0",
@@ -62,7 +62,8 @@ var require_package = __commonJS({
62
62
  typescript: "^5.4.5",
63
63
  vike: "^0.4.177",
64
64
  "vike-react": "^0.4.14",
65
- vite: "^5.3.1"
65
+ vite: "^5.3.1",
66
+ "vite-plugin-compiled-react": "^1.1.3"
66
67
  },
67
68
  dependencies: {
68
69
  "@batijs/core": "workspace:*"
@@ -10,7 +10,13 @@ export default function LayoutDefault({ children }: { children: React.ReactNode
10
10
  <div
11
11
  //# BATI.has("tailwindcss")
12
12
  className="flex max-w-5xl m-auto"
13
- //# !BATI.has("tailwindcss")
13
+ //# BATI.has("compiled-css")
14
+ css={{
15
+ display: "flex",
16
+ maxWidth: 1024,
17
+ margin: "auto",
18
+ }}
19
+ //# !BATI.has("tailwindcss") && !BATI.has("compiled-css")
14
20
  style={{
15
21
  display: "flex",
16
22
  maxWidth: 900,
@@ -34,7 +40,16 @@ function Sidebar({ children }: { children: React.ReactNode }) {
34
40
  id="sidebar"
35
41
  //# BATI.has("tailwindcss")
36
42
  className="p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200"
37
- //# !BATI.has("tailwindcss")
43
+ //# BATI.has("compiled-css")
44
+ css={{
45
+ padding: 20,
46
+ display: "flex",
47
+ flexShrink: 0,
48
+ flexDirection: "column",
49
+ lineHeight: "1.8em",
50
+ borderRight: "2px solid #eee",
51
+ }}
52
+ //# !BATI.has("tailwindcss") && !BATI.has("compiled-css")
38
53
  style={{
39
54
  padding: 20,
40
55
  flexShrink: 0,
@@ -56,7 +71,13 @@ function Content({ children }: { children: React.ReactNode }) {
56
71
  id="page-content"
57
72
  //# BATI.has("tailwindcss")
58
73
  className="p-5 pb-12 min-h-screen"
59
- //# !BATI.has("tailwindcss")
74
+ //# BATI.has("compiled-css")
75
+ css={{
76
+ padding: 20,
77
+ paddingBottom: 48,
78
+ minHeight: "100vh",
79
+ }}
80
+ //# !BATI.has("tailwindcss") && !BATI.has("compiled-css")
60
81
  style={{
61
82
  padding: 20,
62
83
  paddingBottom: 50,
@@ -74,7 +95,12 @@ function Logo() {
74
95
  <div
75
96
  //# BATI.has("tailwindcss")
76
97
  className="p-5 mb-2"
77
- //# !BATI.has("tailwindcss")
98
+ //# BATI.has("compiled-css")
99
+ css={{
100
+ padding: 20,
101
+ marginBottom: 8,
102
+ }}
103
+ //# !BATI.has("tailwindcss") && !BATI.has("compiled-css")
78
104
  style={{
79
105
  marginTop: 20,
80
106
  marginBottom: 10,
@@ -7,6 +7,8 @@ export default function Page() {
7
7
  <h1
8
8
  //# BATI.has("tailwindcss")
9
9
  className="font-bold text-3xl pb-4"
10
+ //# BATI.has("compiled-css")
11
+ css={{ fontWeight: "700", fontSize: "1.875rem", paddingBottom: "1rem" }}
10
12
  >
11
13
  My Vike app
12
14
  </h1>
@@ -8,6 +8,18 @@ export function Counter() {
8
8
  type="button"
9
9
  //# BATI.has("tailwindcss")
10
10
  className="inline-block border border-black rounded bg-gray-200 px-2 py-1 text-xs font-medium uppercase leading-normal"
11
+ //# BATI.has("compiled-css")
12
+ css={{
13
+ display: "inline-block",
14
+ border: "1px solid black",
15
+ borderRadius: "0.25rem",
16
+ backgroundColor: "#e5e7eb",
17
+ padding: "4px 8px 4px 8px",
18
+ fontSize: "0.75rem",
19
+ fontWeight: "500",
20
+ textTransform: "uppercase",
21
+ lineHeight: "1.5",
22
+ }}
11
23
  onClick={() => setCount((count) => count + 1)}
12
24
  >
13
25
  Counter {count}
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.203",
1562
+ version: "0.0.204",
1563
1563
  type: "module",
1564
1564
  scripts: {
1565
1565
  "check-types": "tsc --noEmit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.203",
3
+ "version": "0.0.204",
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",
@@ -21,12 +21,12 @@
21
21
  "typescript": "^5.4.5",
22
22
  "vite": "^5.3.1",
23
23
  "which-pm-runs": "^1.1.0",
24
- "@batijs/build": "0.0.203",
25
- "@batijs/compile": "0.0.203"
24
+ "@batijs/compile": "0.0.204",
25
+ "@batijs/build": "0.0.204"
26
26
  },
27
27
  "dependencies": {
28
- "@batijs/core": "0.0.203",
29
- "@batijs/features": "0.0.203"
28
+ "@batijs/features": "0.0.204",
29
+ "@batijs/core": "0.0.204"
30
30
  },
31
31
  "bin": "./dist/index.js",
32
32
  "exports": {