chore: add firebase deployment

This commit is contained in:
w33ble
2026-01-11 20:09:07 -07:00
parent 92b90dd3b0
commit c4ad0e7dda
5 changed files with 5271 additions and 5 deletions

5
.firebaserc Normal file
View File

@@ -0,0 +1,5 @@
{
"projects": {
"default": "gridfinity-calc"
}
}

16
firebase.json Normal file
View File

@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}

View File

@@ -6,6 +6,7 @@
- **Language:** TypeScript - **Language:** TypeScript
- **Styling:** Tailwind CSS - **Styling:** Tailwind CSS
- **Testing:** Vitest - **Testing:** Vitest
- **Deployment:** Firebase Hosting
## Design Patterns ## Design Patterns
- **Modular Logic:** Calculation logic is isolated in a pure TypeScript module (`src/calculator.ts`) for easy testing. - **Modular Logic:** Calculation logic is isolated in a pure TypeScript module (`src/calculator.ts`) for easy testing.

View File

@@ -9,10 +9,12 @@
"build": "tsc && vite build", "build": "tsc && vite build",
"preview": "vite preview", "preview": "vite preview",
"test": "vitest", "test": "vitest",
"preinstall": "npx only-allow pnpm" "preinstall": "npx only-allow pnpm",
"deploy": "pnpm build && firebase deploy --only hosting"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.4.23", "autoprefixer": "^10.4.23",
"firebase-tools": "^15.2.1",
"postcss": "^8.5.6", "postcss": "^8.5.6",
"tailwindcss": "^3.4.19", "tailwindcss": "^3.4.19",
"typescript": "^5.2.2", "typescript": "^5.2.2",

5250
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff