Skip to content

Commit 427bdee

Browse files
authored
Merge pull request #12 from junctor/chore/vite-plus-migration
chore: migrate to Vite+
2 parents 64edf9d + 6d1f2b2 commit 427bdee

48 files changed

Lines changed: 2630 additions & 4461 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ž.github/workflows/pages.ymlβ€Ž

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ jobs:
3030
steps:
3131
- name: Checkout
3232
uses: actions/checkout@v4
33-
- name: Set up Node
34-
uses: actions/setup-node@v4
33+
- name: Set up Vite+
34+
uses: voidzero-dev/setup-vp@v1
3535
with:
36-
node-version: lts/*
37-
cache: "npm"
36+
cache: true
3837
- name: Install dependencies
39-
run: npm ci
38+
run: vp install
39+
- name: Check
40+
run: vp check --no-fmt
4041
- name: Build
41-
run: npm run build
42+
run: vp run build
4243
- name: Setup Pages
4344
uses: actions/configure-pages@v5
4445
- name: Upload artifact

β€Ž.vite-hooks/pre-commitβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vp staged

β€Ž.vscode/extensions.jsonβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["VoidZero.vite-plus-extension-pack"]
3+
}

β€ŽAGENTS.mdβ€Ž

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--VITE PLUS START-->
2+
3+
# Vite+ Agent Notes
4+
5+
This project uses Vite+ through the `vp` CLI. Use `vp` for package management and project tooling; do not run `npm`, `pnpm`, or Yarn directly unless the user explicitly asks.
6+
7+
## Commands
8+
9+
- `vp install` - install dependencies and configure Vite+ hooks.
10+
- `vp dev` - start the Vite development server.
11+
- `vp check` - run Oxfmt formatting checks, Oxlint, and TypeScript checks.
12+
- `vp lint` / `vp fmt` - run focused lint or format commands when a full check is not needed.
13+
- `vp test` - run Vitest through Vite+ when tests are present.
14+
- `vp build` - build the app with Vite+.
15+
- `vp preview` - preview a production build locally.
16+
- `vp run <script>` - run a `package.json` script when its name collides with a Vite+ built-in command. For example, use `vp run build` if you need the full `build` script plus `postbuild`.
17+
18+
## Tooling Rules
19+
20+
- Import Vite/Vitest utilities from `vite-plus` where applicable, for example `import { defineConfig } from "vite-plus";` and test utilities from `vite-plus/test`.
21+
- Do not install ESLint, Prettier, Vitest, Oxlint, Oxfmt, or tsdown directly; Vite+ provides the active lint, format, test, and build tooling.
22+
- Use Vite+ dependency commands such as `vp add`, `vp remove`, `vp update`, and `vp why` instead of package-manager equivalents.
23+
- Use `vp dlx` for one-off package binaries instead of `npx`, `pnpm dlx`, or `yarn dlx`.
24+
- Do not call wrapped tools as fake subcommands such as `vp vitest` or `vp oxlint`; use `vp test`, `vp lint`, and `vp fmt`.
25+
- Use `vp help`, `vp <command> --help`, or `vp --version` to confirm command options and bundled tool versions.
26+
27+
## Review Checklist
28+
29+
- [ ] Run `vp install` after pulling remote changes and before getting started.
30+
- [ ] Run `vp check` to validate formatting, linting, and types.
31+
- [ ] Run `vp test` only when test files exist or the change adds tests.
32+
- [ ] Run `vp build` for production-build validation.
33+
<!--VITE PLUS END-->

β€ŽREADME.mdβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Hacker Tracker Web
22

3-
[![Vite](https://img.shields.io/badge/Bundler-Vite_7-646CFF?logo=vite&logoColor=white)](https://vitejs.dev)
3+
[![Vite](https://img.shields.io/badge/Bundler-Vite_8-646CFF?logo=vite&logoColor=white)](https://vitejs.dev)
44
[![React](https://img.shields.io/badge/Framework-React_19-61DAFB?logo=react&logoColor=white)](https://react.dev)
55
[![TailwindCSS](https://img.shields.io/badge/Styling-Tailwind_4-38B2AC?logo=tailwind-css&logoColor=white)](https://tailwindcss.com)
6-
[![TypeScript](https://img.shields.io/badge/Language-TypeScript_5-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org)
6+
[![TypeScript](https://img.shields.io/badge/Language-TypeScript_6-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org)
77
[![Firebase](https://img.shields.io/badge/Data-Firebase_12-FFCA28?logo=firebase&logoColor=white)](https://firebase.google.com)
88
[![License](https://img.shields.io/badge/License-MIT-lightgrey)](../../LICENSE)
99

@@ -38,16 +38,16 @@ Trusted by legendary hacker and security conferences worldwide:
3838

3939
---
4040

41-
## πŸ› οΈ Built With
41+
## Built With
4242

4343
Hacker Tracker Web runs on a **modern, fast, type-safe stack**:
4444

45-
- **Vite 7** – blazing-fast dev server & bundler
45+
- **Vite+ with Vite 8** – development server, production build, and project checks
4646
- **React 19 + React Router 7** – powerful, component-driven UI & routing
4747
- **Tailwind CSS 4 + Headless UI + Heroicons** – accessible, utility-first design
4848
- **Firebase 12** – real-time data and hosting infrastructure
49-
- **TypeScript 5** – strict typing for reliability and maintainability
50-
- **ESLint + Prettier** – consistent code quality and formatting
49+
- **TypeScript 6** – strict typing for reliability and maintainability
50+
- **Oxlint + Oxfmt through Vite+** – linting and formatting via `vp check`
5151

5252
---
5353

β€Žeslint.config.jsβ€Ž

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
Β (0)