create-thexjs-app 1.1.1 → 1.1.3

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/index.js CHANGED
@@ -79,6 +79,7 @@ var BASE_DEPENDENCIES = {
79
79
  "react-dom": "^19.1.0"
80
80
  };
81
81
  var BASE_DEV_DEPENDENCIES = {
82
+ "@types/bun": "latest",
82
83
  "@types/react": "^19.1.0",
83
84
  "@types/react-dom": "^19.1.0",
84
85
  typescript: "^5.8.0"
@@ -93,7 +94,7 @@ var __dirname = dirname(fileURLToPath(import.meta.url));
93
94
  var TEMPLATES_ROOT = join(__dirname, "..", "templates");
94
95
  var BASE_TEMPLATE = join(TEMPLATES_ROOT, "base");
95
96
  var ADDONS_ROOT = join(TEMPLATES_ROOT, "addons");
96
- var FALLBACK_CORE_VERSION = "0.1.0";
97
+ var FALLBACK_CORE_VERSION = "1.2.2";
97
98
  function parseArgs(argv) {
98
99
  const options = {
99
100
  features: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-thexjs-app",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Scaffold a new x framework app (npm create thexjs-app@latest).",
5
5
  "keywords": [
6
6
  "react",
@@ -42,7 +42,12 @@
42
42
  "bin": {
43
43
  "create-thexjs-app": "./dist/index.js"
44
44
  },
45
- "files": ["dist", "templates", "README.md", "LICENSE"],
45
+ "files": [
46
+ "dist",
47
+ "templates",
48
+ "README.md",
49
+ "LICENSE"
50
+ ],
46
51
  "publishConfig": {
47
52
  "access": "public"
48
53
  },
@@ -58,7 +63,7 @@
58
63
  "@clack/prompts": "^1.7.0"
59
64
  },
60
65
  "devDependencies": {
61
- "@types/node": "^22.0.0",
66
+ "@types/node": "^26.2.0",
62
67
  "tsup": "^8.3.0"
63
68
  }
64
69
  }
@@ -1,4 +1,4 @@
1
- import { type VariantProps, cva } from "class-variance-authority";
1
+ import { cva, type VariantProps } from "class-variance-authority";
2
2
  import type * as React from "react";
3
3
 
4
4
  import { cn } from "@/lib/utils";
@@ -30,4 +30,4 @@ function CardContent({ className, ...props }: React.ComponentProps<"div">) {
30
30
  return <div className={cn("p-6 pt-0", className)} {...props} />;
31
31
  }
32
32
 
33
- export { Card, CardHeader, CardTitle, CardDescription, CardContent };
33
+ export { Card, CardContent, CardDescription, CardHeader, CardTitle };
@@ -1,11 +1,11 @@
1
1
  @import "tailwindcss";
2
2
 
3
3
  @theme inline {
4
- --color-background: var(--background);
5
- --color-foreground: var(--foreground);
6
- --color-muted: var(--muted);
7
- --color-muted-foreground: var(--muted-foreground);
8
- --color-border: var(--border);
4
+ --color-background: rgb(var(--background));
5
+ --color-foreground: rgb(var(--foreground));
6
+ --color-muted: rgb(var(--muted));
7
+ --color-muted-foreground: rgb(var(--muted-foreground));
8
+ --color-border: rgb(var(--border));
9
9
  }
10
10
 
11
11
  :root {
@@ -0,0 +1,27 @@
1
+ export default function About() {
2
+ return (
3
+ <main style={{ maxWidth: 680, margin: "0 auto", padding: "5rem 1.5rem" }}>
4
+ <p style={{ fontWeight: 700, letterSpacing: "0.08em", color: "#e8942f" }}>THE X FRAMEWORK</p>
5
+ <h1 style={{ fontSize: "2.6rem", lineHeight: 1.1, margin: "0.5rem 0" }}>About</h1>
6
+ <p style={{ fontSize: "1.15rem", lineHeight: 1.6, color: "#64748b" }}>
7
+ x is a full-stack React framework built natively on Bun. File-based routing, server
8
+ functions, ISR, and content collections — all from <code>src/pages</code>.
9
+ </p>
10
+ <div style={{ display: "flex", gap: "0.75rem", marginTop: "2rem" }}>
11
+ <a href="/" style={btn}>
12
+ &larr; Back home
13
+ </a>
14
+ </div>
15
+ </main>
16
+ );
17
+ }
18
+
19
+ const btn: React.CSSProperties = {
20
+ display: "inline-block",
21
+ background: "#0f172a",
22
+ color: "#fff",
23
+ padding: "0.7rem 1.2rem",
24
+ borderRadius: 999,
25
+ textDecoration: "none",
26
+ fontWeight: 600,
27
+ };
@@ -6,8 +6,8 @@ html,
6
6
  body {
7
7
  margin: 0;
8
8
  padding: 0;
9
- font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
10
- sans-serif;
9
+ font-family:
10
+ ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
11
11
  color: #0f172a;
12
12
  background: #ffffff;
13
13
  -webkit-font-smoothing: antialiased;