File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,11 +24,13 @@ jobs:
2424 - name : Checkout
2525 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626
27- - name : Setup Node.js and pnpm
28- uses : ./.github/actions/setup-node-pnpm
27+ - name : Setup vp
28+ uses : voidzero-dev/setup-vp@679fb3bf669a1777bb417e81218c5ab904aa037f # v1
29+ with :
30+ cache : true
2931
3032 - name : Build
31- run : pnpm build
33+ run : vp run @vibe/dashboard# build
3234
3335 - name : Setup Pages
3436 uses : actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
Original file line number Diff line number Diff line change @@ -40,25 +40,16 @@ A modern frontend dashboard for displaying different metrics using bar charts. B
4040 - ** Timing** : Starts in under 1 second (192ms)
4141 - Uses Vite with hot module replacement (HMR)
4242
43- - Lint the code :
43+ - Check (lint + format) :
4444
4545 ``` bash
46- pnpm lint
46+ pnpm check
4747 ```
4848
4949 - ** Timing** : Takes approximately 2 seconds
50- - Runs ESLint across all packages
51- - ** ALWAYS run before committing** to avoid CI failures
52-
53- - Format the code:
54-
55- ``` bash
56- pnpm fmt
57- ```
58-
59- - ** Timing** : Takes approximately 2 seconds
60- - Runs vite fmt across all files
50+ - Runs ` vp check ` (lint + format in one command)
6151 - ** ALWAYS run before committing** to avoid CI failures
52+ - Use ` pnpm check:fix ` to auto-fix issues
6253
6354- Clean build artifacts:
6455
Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ React 19 + TypeScript + Vite 7 dashboard. pnpm monorepo.
88pnpm install # Install deps (~10s, timeout 60s+)
99pnpm dev # Dev server at localhost:5173
1010pnpm build # Production build (~7s)
11- pnpm lint # Run ESLint
12- pnpm fmt # Format with vite fmt
11+
12+ # Check (lint + format)
13+ vp run check
14+ vp run check:fix
1315```
1416
1517## Structure
@@ -28,6 +30,6 @@ You run in an environment where `ast-grep` is available; whenever a search requi
2830
2931## Always
3032
31- - Run ` pnpm lint && pnpm build` before commits
33+ - Run ` vp run check && vp run build` before commits
3234- Prefer editing existing files over creating new ones
3335- Don't create docs unless explicitly requested
Original file line number Diff line number Diff line change 44 "private" : true ,
55 "type" : " module" ,
66 "scripts" : {
7- "dev" : " vite dev" ,
8- "build" : " vite build" ,
9- "preview" : " vite preview" ,
7+ "dev" : " vp dev" ,
8+ "build" : " vp build" ,
9+ "preview" : " vp preview" ,
1010 "clean" : " rm -rf dist" ,
11- "test" : " vite test"
11+ "test" : " vp test"
1212 },
1313 "dependencies" : {
1414 "@vibe/shared" : " workspace:*" ,
Original file line number Diff line number Diff line change 55 "description" : " A frontend dashboard for displaying different metrics" ,
66 "type" : " module" ,
77 "scripts" : {
8- "ready" : " vite run check && vite run test && vite run build" ,
9- "dev" : " vite run @vibe/dashboard#dev" ,
10- "build" : " vite run @vibe/dashboard#build" ,
8+ "ready" : " vp run check && vp run test && vp run build" ,
9+ "dev" : " vp run @vibe/dashboard#dev" ,
10+ "build" : " vp run @vibe/dashboard#build" ,
1111 "check" : " vp check" ,
1212 "check:fix" : " vp check --fix" ,
13- "test" : " vite test" ,
14- "cache:clean" : " vite cache clean" ,
13+ "test" : " vp test" ,
14+ "cache:clean" : " vp cache clean" ,
1515 "generate" : " node tools/override-rolldown.mjs --stats" ,
1616 "prepare" : " husky"
1717 },
You can’t perform that action at this time.
0 commit comments