Skip to content

Commit c0e5d1f

Browse files
authored
chore(deps): upgrade vite-plus (#130)
1 parent 296d8db commit c0e5d1f

13 files changed

Lines changed: 286 additions & 213 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424

2525
- uses: oxc-project/setup-node@8958a8e040102244b619c4a94fccb657a44b1c21 # v1.0.6
2626

27-
2827
- uses: voidzero-dev/setup-vite-plus-action@5bd070e3dfe8fd6a967ab859304e95daa4e64ea0 # v1
2928
with:
3029
cache: true

AGENTS.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,56 +11,70 @@ A modern frontend dashboard for displaying different metrics using bar charts. B
1111
- Install Node.js v20 or higher (verified working with v20.19.4)
1212
- Install pnpm globally: `npm install -g pnpm` (requires pnpm v10 or higher)
1313
- Bootstrap the repository:
14+
1415
```bash
1516
pnpm install
1617
```
18+
1719
- **Timing**: Takes approximately 10 seconds. NEVER CANCEL. Set timeout to 60+ seconds.
1820

1921
### Build and Development
2022

2123
- Build the project:
24+
2225
```bash
2326
pnpm build
2427
```
28+
2529
- **Timing**: Takes approximately 7 seconds. NEVER CANCEL. Set timeout to 60+ seconds.
2630
- Builds TypeScript and creates production bundle with Vite
2731
- **Expected output**: Creates `dist/` directory in `apps/dashboard/` with minified assets
2832

2933
- Start development server:
34+
3035
```bash
3136
pnpm dev
3237
```
38+
3339
- Starts at `http://localhost:5173/`
3440
- **Timing**: Starts in under 1 second (192ms)
3541
- Uses Vite with hot module replacement (HMR)
3642

3743
- Lint the code:
44+
3845
```bash
3946
pnpm lint
4047
```
48+
4149
- **Timing**: Takes approximately 2 seconds
4250
- Runs ESLint across all packages
4351
- **ALWAYS run before committing** to avoid CI failures
4452

4553
- Format the code:
54+
4655
```bash
4756
pnpm fmt
4857
```
58+
4959
- **Timing**: Takes approximately 2 seconds
5060
- Runs vite fmt across all files
5161
- **ALWAYS run before committing** to avoid CI failures
5262

5363
- Clean build artifacts:
64+
5465
```bash
5566
pnpm clean
5667
```
68+
5769
- **Timing**: Takes under 1 second
5870
- Removes `dist/` directories
5971

6072
- Test command:
73+
6174
```bash
6275
pnpm test
6376
```
77+
6478
- **Note**: Currently no tests are configured, command runs but executes nothing
6579
- Takes under 1 second
6680

CLAUDE.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
React 19 + TypeScript + Vite 7 dashboard. pnpm monorepo.
44

55
## Commands
6+
67
```bash
78
pnpm install # Install deps (~10s, timeout 60s+)
89
pnpm dev # Dev server at localhost:5173
@@ -12,17 +13,21 @@ pnpm fmt # Format with vite fmt
1213
```
1314

1415
## Structure
16+
1517
- `apps/dashboard/src/App.tsx` - Main dashboard with metrics
1618
- `apps/dashboard/src/App.css` - Styles
1719
- Root `package.json` - Workspace scripts
1820

1921
## Adding Metrics
22+
2023
Edit `App.tsx`: Add data array + metric object with id/name/icon/data/color.
2124

2225
## Search
26+
2327
You run in an environment where `ast-grep` is available; whenever a search requires syntax-aware or structural matching, default to `ast-grep --lang rust -p '<pattern>'` (or set `--lang` appropriately) and avoid falling back to text-only tools like `rg` or `grep` unless I explicitly request a plain-text search.
2428

2529
## Always
30+
2631
- Run `pnpm lint && pnpm build` before commits
2732
- Prefer editing existing files over creating new ones
28-
- Don't create docs unless explicitly requested
33+
- Don't create docs unless explicitly requested

apps/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vibe/dashboard",
3-
"private": true,
43
"version": "0.1.0",
4+
"private": true,
55
"type": "module",
66
"scripts": {
77
"dev": "vite dev",

apps/dashboard/src/index.css

Lines changed: 60 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
1+
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");
22
@import "tailwindcss";
33

44
/* Custom base styles - VoidZero inspired dark theme */
55
:root {
66
/* Typography system - clean sans-serif */
7-
--font-display: 'Inter', system-ui, sans-serif;
8-
--font-mono: 'JetBrains Mono', 'SF Mono', monospace;
7+
--font-display: "Inter", system-ui, sans-serif;
8+
--font-mono: "JetBrains Mono", "SF Mono", monospace;
99

1010
font-family: var(--font-display);
1111
line-height: 1.6;
1212
font-weight: 400;
1313
letter-spacing: -0.011em;
1414

1515
/* VoidZero-inspired color palette - dark mode default */
16-
--color-bg: #08060D;
16+
--color-bg: #08060d;
1717
--color-bg-elevated: #0f0d14;
1818
--color-surface: #16141c;
19-
--color-text: #F4F3EC;
19+
--color-text: #f4f3ec;
2020
--color-text-muted: #8b8a85;
2121
--color-border: #1f1d26;
2222
--color-border-strong: #2a2833;
@@ -55,7 +55,7 @@ html:not(.dark) {
5555
--color-bg: #fafafa;
5656
--color-bg-elevated: #ffffff;
5757
--color-surface: #f4f4f5;
58-
--color-text: #08060D;
58+
--color-text: #08060d;
5959
--color-text-muted: #71717a;
6060
--color-border: #e4e4e7;
6161
--color-border-strong: #d4d4d8;
@@ -86,13 +86,15 @@ body {
8686
min-height: 100vh;
8787
background: var(--color-bg);
8888
color: var(--color-text);
89-
transition: background-color 0.2s ease, color 0.2s ease;
89+
transition:
90+
background-color 0.2s ease,
91+
color 0.2s ease;
9092
position: relative;
9193
}
9294

9395
/* Subtle noise texture for depth - minimal like VoidZero */
9496
body::before {
95-
content: '';
97+
content: "";
9698
position: fixed;
9799
inset: 0;
98100
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
@@ -102,18 +104,32 @@ body::before {
102104
}
103105

104106
/* Typography - clean professional headings */
105-
h1, h2, h3, h4, h5, h6 {
107+
h1,
108+
h2,
109+
h3,
110+
h4,
111+
h5,
112+
h6 {
106113
margin: 0;
107114
font-family: var(--font-display);
108115
font-weight: 600;
109116
letter-spacing: -0.025em;
110117
line-height: 1.15;
111118
}
112119

113-
h1 { font-size: 2.25rem; font-weight: 700; }
114-
h2 { font-size: 1.5rem; }
115-
h3 { font-size: 1.125rem; }
116-
h4 { font-size: 1rem; }
120+
h1 {
121+
font-size: 2.25rem;
122+
font-weight: 700;
123+
}
124+
h2 {
125+
font-size: 1.5rem;
126+
}
127+
h3 {
128+
font-size: 1.125rem;
129+
}
130+
h4 {
131+
font-size: 1rem;
132+
}
117133

118134
/* Monospace for code/technical elements */
119135
.font-mono {
@@ -156,7 +172,11 @@ h4 { font-size: 1rem; }
156172
}
157173

158174
/* Smooth transitions for interactive elements */
159-
button, a, input, textarea, select {
175+
button,
176+
a,
177+
input,
178+
textarea,
179+
select {
160180
transition: all 0.2s ease;
161181
}
162182

@@ -204,7 +224,8 @@ button, a, input, textarea, select {
204224

205225
/* Gradient animations */
206226
@keyframes gradient-shift {
207-
0%, 100% {
227+
0%,
228+
100% {
208229
background-position: 0% 50%;
209230
}
210231
50% {
@@ -219,7 +240,8 @@ button, a, input, textarea, select {
219240

220241
/* Floating animation */
221242
@keyframes float {
222-
0%, 100% {
243+
0%,
244+
100% {
223245
transform: translateY(0px);
224246
}
225247
50% {
@@ -233,7 +255,8 @@ button, a, input, textarea, select {
233255

234256
/* Pulse glow effect - VoidZero orange accent */
235257
@keyframes pulse-glow {
236-
0%, 100% {
258+
0%,
259+
100% {
237260
box-shadow: 0 0 20px rgba(244, 129, 32, 0.3);
238261
}
239262
50% {
@@ -246,15 +269,27 @@ button, a, input, textarea, select {
246269
}
247270

248271
/* Stagger animation utilities */
249-
.stagger-1 { animation-delay: 0.05s; }
250-
.stagger-2 { animation-delay: 0.1s; }
251-
.stagger-3 { animation-delay: 0.15s; }
252-
.stagger-4 { animation-delay: 0.2s; }
272+
.stagger-1 {
273+
animation-delay: 0.05s;
274+
}
275+
.stagger-2 {
276+
animation-delay: 0.1s;
277+
}
278+
.stagger-3 {
279+
animation-delay: 0.15s;
280+
}
281+
.stagger-4 {
282+
animation-delay: 0.2s;
283+
}
253284

254285
/* Card hover lift effect */
255286
@keyframes card-lift {
256-
from { transform: translateY(0); }
257-
to { transform: translateY(-4px); }
287+
from {
288+
transform: translateY(0);
289+
}
290+
to {
291+
transform: translateY(-4px);
292+
}
258293
}
259294

260295
/* Accent underline on hover */
@@ -263,7 +298,7 @@ button, a, input, textarea, select {
263298
}
264299

265300
.accent-underline::after {
266-
content: '';
301+
content: "";
267302
position: absolute;
268303
bottom: -2px;
269304
left: 0;
@@ -289,7 +324,7 @@ button, a, input, textarea, select {
289324
}
290325

291326
.active-bar::before {
292-
content: '';
327+
content: "";
293328
position: absolute;
294329
left: 0;
295330
top: 0;

apps/dashboard/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": [],
33
"compilerOptions": {
4-
"composite": true,
4+
"composite": true
55
},
66
"references": [
77
{ "path": "./tsconfig.app.json" },

apps/dashboard/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineConfig({
1111
},
1212
build: {
1313
rolldownOptions: {
14-
experimental: {
14+
output: {
1515
strictExecutionOrder: false,
1616
},
1717
},

data/dependents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,4 +1009,4 @@
10091009
]
10101010
}
10111011
}
1012-
}
1012+
}

data/rolldown-version-stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,4 +889,4 @@
889889
"totalSize": 722474,
890890
"buildTime": 985
891891
}
892-
]
892+
]

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "vibe-dashboard",
33
"version": "0.1.0",
4-
"description": "A frontend dashboard for displaying different metrics",
54
"private": true,
6-
"packageManager": "pnpm@10.26.0",
5+
"description": "A frontend dashboard for displaying different metrics",
76
"type": "module",
87
"scripts": {
98
"ready": "vite run fmt && vite run lint && vite run test && vite run build",
@@ -20,5 +19,6 @@
2019
"playwright": "catalog:",
2120
"top-github-dependents-by-stars": "catalog:",
2221
"vite-plus": "catalog:"
23-
}
22+
},
23+
"packageManager": "pnpm@10.26.0"
2424
}

0 commit comments

Comments
 (0)