create-rue 0.0.11 → 0.0.15

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/bundle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- /*! create-rue v0.0.11 | MIT */
2
+ /*! create-rue v0.0.15 | MIT */
3
3
  import { createRequire } from "node:module";
4
4
  import * as fs from "node:fs";
5
5
  import "node:fs";
@@ -688,20 +688,7 @@ function Ze() {
688
688
  return P.platform !== "win32" ? P.env.TERM !== "linux" : !!P.env.CI || !!P.env.WT_SESSION || !!P.env.TERMINUS_SUBLIME || P.env.ConEmuTask === "{cmd::Cmder}" || P.env.TERM_PROGRAM === "Terminus-Sublime" || P.env.TERM_PROGRAM === "vscode" || P.env.TERM === "xterm-256color" || P.env.TERM === "alacritty" || P.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
689
689
  }
690
690
  const ee = Ze(), w = (e, i) => ee ? e : i, _e = w("◆", "*"), oe = w("■", "x"), ue = w("▲", "x"), F = w("◇", "o"), le = w("┌", "T"), d = w("│", "|"), E = w("└", "—");
691
- w("", "T");
692
- w("┘", "—");
693
- const z = w("●", ">"), H = w("○", " ");
694
- w("◻", "[•]");
695
- w("◼", "[+]");
696
- w("◻", "[ ]");
697
- w("▪", "•");
698
- w("─", "-");
699
- w("╮", "+");
700
- w("├", "+");
701
- w("╯", "+");
702
- w("╰", "+");
703
- w("╭", "+");
704
- const he = w("●", "•"), pe = w("◆", "*"), me = w("▲", "!"), ge = w("■", "x"), V = (e) => {
691
+ const z = w("", ">"), H = w("○", " "), he = w("●", "•"), pe = w("◆", "*"), me = w("▲", "!"), ge = w("■", "x"), V = (e) => {
705
692
  switch (e) {
706
693
  case "initial":
707
694
  case "active": return styleText("cyan", _e);
@@ -801,9 +788,7 @@ ${styleText("gray", E)} ` : "";
801
788
  s.write(`${r}${e}
802
789
 
803
790
  `);
804
- };
805
- w("─", "-"), w("━", "="), w("█", "#");
806
- const je = `${styleText("gray", d)} `, K = {
791
+ }, je = `${styleText("gray", d)} `, K = {
807
792
  message: async (e, { symbol: i = styleText("gray", d) } = {}) => {
808
793
  process.stdout.write(`${styleText("gray", d)}
809
794
  ${i} `);
@@ -2052,7 +2037,7 @@ function inferPackageManager() {
2052
2037
  //#endregion
2053
2038
  //#region package.json
2054
2039
  var name = "create-rue";
2055
- var version = "0.0.11";
2040
+ var version = "0.0.15";
2056
2041
  //#endregion
2057
2042
  //#region index.ts
2058
2043
  const language = await getLanguage(fileURLToPath(new URL("./locales", import.meta.url)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rue",
3
- "version": "0.0.11",
3
+ "version": "0.0.15",
4
4
  "description": "🛠️ The recommended way to start a Vite-powered Rue project",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/hunzhiwange/create-rue#readme",
@@ -33,14 +33,14 @@
33
33
  "@types/node": "^24.12.2",
34
34
  "ejs": "^3.1.10",
35
35
  "picocolors": "^1.1.1",
36
- "rolldown": "1.0.0-rc.16",
36
+ "rolldown": "^1.0.0",
37
37
  "rollup-plugin-license": "^3.7.1",
38
38
  "vite-plus": "latest",
39
39
  "vitest": "npm:@voidzero-dev/vite-plus-test@latest",
40
40
  "zx": "^8.8.5"
41
41
  },
42
42
  "engines": {
43
- "node": "^20.19.0 || >=22.12.0"
43
+ "node": ">=22.12.0"
44
44
  },
45
45
  "scripts": {
46
46
  "format": "vp fmt",
@@ -35,9 +35,12 @@ const Home: FC = () => (
35
35
  <div className="hero-content flex-col items-start gap-8 px-6 py-8 lg:flex-row lg:items-end lg:justify-between">
36
36
  <div className="max-w-3xl space-y-4">
37
37
  <div className="badge badge-primary badge-outline">Rue.js</div>
38
- <h1 className="text-4xl font-semibold tracking-tight sm:text-5xl">The Wasm Framework For Vapor Native DOM</h1>
38
+ <h1 className="text-4xl font-semibold tracking-tight sm:text-5xl">
39
+ The Wasm Framework For Vapor Native DOM
40
+ </h1>
39
41
  <p className="max-w-2xl text-base leading-7 text-base-content/70">
40
- Rue.js 采用原生 JSX / TSX 开发方式,结合细粒度响应式与面向原生 DOM 的渲染模型,适合构建轻量、直接且可维护的前端应用。
42
+ Rue.js 采用原生 JSX / TSX 开发方式,结合细粒度响应式与面向原生 DOM
43
+ 的渲染模型,适合构建轻量、直接且可维护的前端应用。
41
44
  </p>
42
45
  <div className="flex flex-wrap gap-3">
43
46
  <RouterLink to="/report" className="btn btn-primary">
@@ -63,7 +66,7 @@ const Home: FC = () => (
63
66
  </section>
64
67
 
65
68
  <section className="grid gap-4 md:grid-cols-3">
66
- {highlights.map(item => (
69
+ {highlights.map((item) => (
67
70
  <article key={item.title} className="card border border-base-300 bg-base-100 shadow-sm">
68
71
  <div className="card-body gap-3">
69
72
  <h2 className="text-2xl font-semibold">{item.title}</h2>
@@ -82,7 +85,7 @@ const Home: FC = () => (
82
85
  </div>
83
86
 
84
87
  <div className="mockup-code text-sm">
85
- {quickStartCommands.map(command => (
88
+ {quickStartCommands.map((command) => (
86
89
  <pre key={command} data-prefix="$">
87
90
  <code>{command}</code>
88
91
  </pre>
@@ -99,7 +102,8 @@ const Home: FC = () => (
99
102
  </div>
100
103
 
101
104
  <div className="rounded-2xl bg-base-200 p-4 text-sm leading-7 text-base-content/70">
102
- 生成的项目基于 Vite,默认支持 JSX / TSX 组件开发;生产构建使用 npm run build,产物输出到 dist 目录。
105
+ 生成的项目基于 Vite,默认支持 JSX / TSX 组件开发;生产构建使用 npm run build,产物输出到
106
+ dist 目录。
103
107
  </div>
104
108
  </div>
105
109
  </article>
@@ -112,8 +116,11 @@ const Home: FC = () => (
112
116
  </div>
113
117
 
114
118
  <div className="space-y-3">
115
- {nextSteps.map(step => (
116
- <div key={step} className="rounded-2xl bg-base-200 p-4 text-sm leading-7 text-base-content/75">
119
+ {nextSteps.map((step) => (
120
+ <div
121
+ key={step}
122
+ className="rounded-2xl bg-base-200 p-4 text-sm leading-7 text-base-content/75"
123
+ >
117
124
  {step}
118
125
  </div>
119
126
  ))}
@@ -30,7 +30,7 @@ const totalRevenue = rows.reduce((sum, row) => sum + row.revenue, 0)
30
30
  const totalOrders = rows.reduce((sum, row) => sum + row.orders, 0)
31
31
  const avgConversion = rows.reduce((sum, row) => sum + row.conversion, 0) / rows.length
32
32
  const peakRow = rows.reduce((max, row) => (row.revenue > max.revenue ? row : max), rows[0])
33
- const maxRevenue = Math.max(...rows.map(row => row.revenue))
33
+ const maxRevenue = Math.max(...rows.map((row) => row.revenue))
34
34
 
35
35
  const summaryCards = [
36
36
  {
@@ -89,7 +89,7 @@ const Report: FC = () => (
89
89
  </section>
90
90
 
91
91
  <section className="grid gap-4 md:grid-cols-2 xl:grid-cols-4">
92
- {summaryCards.map(card => (
92
+ {summaryCards.map((card) => (
93
93
  <article key={card.label} className={`card shadow-lg ${card.tone}`}>
94
94
  <div className="card-body gap-2">
95
95
  <p className="text-sm opacity-80">{card.label}</p>
@@ -115,13 +115,17 @@ const Report: FC = () => (
115
115
  </div>
116
116
 
117
117
  <div className="space-y-4">
118
- {rows.map(row => (
118
+ {rows.map((row) => (
119
119
  <div key={row.day} className="grid gap-2">
120
120
  <div className="flex items-center justify-between gap-4 text-sm">
121
121
  <div className="font-medium">{row.day}</div>
122
122
  <div className="text-base-content/60">{moneyFormatter.format(row.revenue)}</div>
123
123
  </div>
124
- <progress className="progress progress-primary w-full" value={row.revenue} max={maxRevenue}></progress>
124
+ <progress
125
+ className="progress progress-primary w-full"
126
+ value={row.revenue}
127
+ max={maxRevenue}
128
+ ></progress>
125
129
  <div className="flex items-center justify-between gap-4 text-xs text-base-content/60">
126
130
  <span>{row.orders} 单</span>
127
131
  <span>转化率 {row.conversion}%</span>
@@ -173,7 +177,7 @@ const Report: FC = () => (
173
177
  </tr>
174
178
  </thead>
175
179
  <tbody>
176
- {rows.map(row => (
180
+ {rows.map((row) => (
177
181
  <tr key={row.day}>
178
182
  <td className="font-medium">{row.day}</td>
179
183
  <td>{row.orders}</td>
@@ -189,4 +193,4 @@ const Report: FC = () => (
189
193
  </div>
190
194
  )
191
195
 
192
- export default Report
196
+ export default Report