mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
bun + update
This commit is contained in:
1 parent
3757b784de
commit
d0a027a2a1
11 files changed
+1059
-6767
No files matched your search
@@ -4,3 +4,5 @@ dist/
|
||||
.idea/
|
||||
.vscode/
|
||||
npm-debug.log
|
||||
bun-debug.log
|
||||
package-lock.json
|
||||
+10
-5
@@ -1,8 +1,11 @@
|
||||
# --- Build Stage ---
|
||||
FROM node:lts-alpine AS build-stage
|
||||
# Bun replaces npm for install + scripts. bun.lock is the lockfile of record
|
||||
# (package-lock.json is gone); --frozen-lockfile fails the build loudly if it
|
||||
# has drifted from package.json instead of quietly resolving something else.
|
||||
FROM oven/bun:1.3-alpine AS build-stage
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY package.json bun.lock ./
|
||||
RUN bun install --frozen-lockfile
|
||||
COPY . .
|
||||
|
||||
# Pass VITE environment variables during build
|
||||
@@ -20,10 +23,12 @@ ENV VITE_IMPRESSUM_CITY=${VITE_IMPRESSUM_CITY}
|
||||
ENV VITE_IMPRESSUM_EMAIL=${VITE_IMPRESSUM_EMAIL}
|
||||
ENV VITE_IMPRESSUM_PHONE=${VITE_IMPRESSUM_PHONE}
|
||||
|
||||
RUN npm run build
|
||||
RUN bun run build
|
||||
|
||||
# --- Production Stage ---
|
||||
FROM nginx:stable-alpine
|
||||
# nginx 1.30 is the current stable branch (identical to `stable-alpine` today),
|
||||
# pinned so a rebuild can't silently roll onto the next branch.
|
||||
FROM nginx:1.30-alpine
|
||||
# Copy built files
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
|
||||
|
||||
+1020
File diff suppressed because it is too large.
Load diff
Generated
-6733
File diff suppressed because it is too large.
Load diff
@@ -15,7 +15,7 @@
|
||||
"preview": "vite preview",
|
||||
"schema:export": "curl -fsS http://localhost:8001/api/schema/ -o ../schema.yaml",
|
||||
"openapi:gen": "openapi-typescript ../schema.yaml -o src/api/schema.d.ts",
|
||||
"openapi:sync": "npm run schema:export && npm run openapi:gen"
|
||||
"openapi:sync": "bun run schema:export && bun run openapi:gen"
|
||||
},
|
||||
"dependencies": {
|
||||
"@catppuccin/palette": "^1.7.1",
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { components } from './schema';
|
||||
export type Schemas = components['schemas'];
|
||||
|
||||
// Re-exported from generated OpenAPI schema.
|
||||
// Regenerate with `npm run openapi:sync` after backend serializer changes.
|
||||
// Regenerate with `bun run openapi:sync` after backend serializer changes.
|
||||
export type Banner = Schemas['Banner'];
|
||||
export type Category = Schemas['Category'];
|
||||
export type Flavor = Schemas['Flavor'];
|
||||
|
||||
Reference in new issue
Block a user