Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local.db
# build outputs
build
dist
.svelte-kit

# git
.git
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"parser": "svelte"
}
}
]
],
"tailwindStylesheet": "./src/app.css"
}
29 changes: 15 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
FROM node:20-slim AS development-build
# ---- Base Stage ----
# Sets up Node, pnpm, and copies package manifests.
FROM node:22-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

# install pnpm
RUN npm install -g pnpm

WORKDIR /app
FROM base AS development-build

# copy package manifests & lockfile
COPY package.json pnpm-lock.yaml* ./
# copy source
COPY . /app
WORKDIR /app

# install deps
RUN pnpm install --frozen-lockfile

# copy the rest of source & build
COPY . .
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile

# Build-time environment variables (for build process)
ARG DATABASE_URL="file:./local.db"
Expand All @@ -30,15 +31,15 @@ RUN if [ "$VINUMC_SOURCE" = "release" ]; then \

RUN pnpm build

FROM node:20-slim AS production-build
FROM base AS production-build

# create app directory
WORKDIR /app

# install only production deps
COPY package.json pnpm-lock.yaml* ./
RUN npm install -g pnpm \
&& pnpm install --prod --frozen-lockfile \
COPY package.json pnpm-lock.yaml* .npmrc ./

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile \
&& pnpm store prune

# copy built output from development-build
Expand Down
12 changes: 7 additions & 5 deletions components.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"$schema": "https://shadcn-svelte.com/schema.json",
"style": "default",
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app.css",
"baseColor": "slate"
},
"aliases": {
"components": "$lib/components",
"utils": "$lib/utils"
"utils": "$lib/utils",
"ui": "$lib/components/ui",
"hooks": "$lib/hooks",
"lib": "$lib"
},
"typescript": true
}
"typescript": true,
"registry": "https://shadcn-svelte.com/registry"
}
3 changes: 0 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ services:
platform: linux/amd64
volumes:
- .:/app:cached
- node_modules:/app/node_modules
ports:
- '5173:5173'
environment:
Expand All @@ -50,7 +49,6 @@ services:
platform: linux/amd64
volumes:
- .:/app:cached
- node_modules:/app/node_modules
- '${VINUMC_PATH}:/usr/local/bin/vinumc:ro'
ports:
- '5173:5173'
Expand Down Expand Up @@ -87,4 +85,3 @@ services:

volumes:
pgdata:
node_modules:
81 changes: 45 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"private": true,
"version": "0.0.1",
"type": "module",
"engines": {
"node": ">=22.0.0"
},
"scripts": {
"dev": "paraglide-js compile && vite dev",
"build": "paraglide-js compile && vite build",
Expand All @@ -20,56 +23,62 @@
"db:studio": "drizzle-kit studio"
},
"devDependencies": {
"@eslint/compat": "^1.2.9",
"@eslint/js": "^9.28.0",
"@lezer/generator": "^1.7.3",
"@playwright/test": "^1.52.0",
"@sveltejs/adapter-node": "^5.2.11",
"@sveltejs/kit": "^2.21.2",
"@sveltejs/vite-plugin-svelte": "^5.1.0",
"@eslint/compat": "^1.3.2",
"@eslint/js": "^9.35.0",
"@lezer/generator": "^1.8.0",
"@lucide/svelte": "^0.544.0",
"@playwright/test": "^1.55.0",
"@sveltejs/adapter-node": "^5.3.2",
"@sveltejs/kit": "^2.39.1",
"@sveltejs/vite-plugin-svelte": "^6.2.0",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.16",
"@tailwindcss/typography": "^0.5.15",
"@tailwindcss/vite": "^4.1.13",
"@types/better-sqlite3": "^7.6.13",
"autoprefixer": "^10.4.21",
"clsx": "^2.1.1",
"drizzle-kit": "^0.31.1",
"eslint": "^9.28.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-svelte": "^3.9.1",
"globals": "^16.2.0",
"lucide-svelte": "^0.511.0",
"paneforge": "^0.0.6",
"prettier": "^3.5.3",
"drizzle-kit": "^0.31.4",
"eslint": "^9.35.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.12.3",
"globals": "^16.4.0",
"paneforge": "^1.0.2",
"prettier": "^3.6.2",
"prettier-plugin-svelte": "^3.4.0",
"prettier-plugin-tailwindcss": "^0.6.12",
"svelte": "^5.33.14",
"svelte-check": "^4.2.1",
"tailwind-merge": "^2.6.0",
"tailwind-variants": "^0.3.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.8.3",
"typescript-eslint": "^8.33.1",
"vite": "^6.3.5",
"vitest": "^3.2.1"
"prettier-plugin-tailwindcss": "^0.6.11",
"svelte": "^5.38.10",
"svelte-check": "^4.3.1",
"tailwind-merge": "^3.3.1",
"tailwind-variants": "^3.1.1",
"tailwindcss": "^4.1.13",
"tw-animate-css": "^1.3.8",
"typescript": "^5.9.2",
"typescript-eslint": "^8.43.0",
"vite": "^7.1.5",
"vitest": "^3.2.4"
},
"dependencies": {
"@codemirror/commands": "^6.8.1",
"@codemirror/language": "^6.11.1",
"@codemirror/language": "^6.11.3",
"@codemirror/lint": "^6.8.5",
"@codemirror/search": "^6.5.11",
"@codemirror/state": "^6.5.2",
"@codemirror/view": "^6.37.1",
"@inlang/paraglide-js": "^2.0.13",
"@codemirror/view": "^6.38.2",
"@inlang/paraglide-js": "^2.3.2",
"@lezer/highlight": "^1.2.1",
"@lezer/lr": "^1.4.2",
"@node-rs/argon2": "^2.0.2",
"@oslojs/crypto": "^1.0.1",
"@oslojs/encoding": "^1.1.0",
"better-sqlite3": "^11.10.0",
"codemirror": "^6.0.1",
"drizzle-orm": "^0.44.1",
"mode-watcher": "^1.0.7"
"better-sqlite3": "^12.2.0",
"codemirror": "^6.0.2",
"drizzle-orm": "^0.44.5",
"mode-watcher": "^1.1.0"
},
"packageManager": "[email protected]+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e"
}
"packageManager": "[email protected]",
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
}
}
Loading