Initial commit — 2048 terminal game

Plain TS + Vite, JetBrains Mono terminal aesthetic. Includes engine
(pure logic, direction normalization, tile tracking), animated UI
(CSS transitions + keyframes), keyboard/touch input, Dockerfile,
nginx config, docker-compose, and Gitea Actions CI workflow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Fredrik Johansson
2026-07-07 19:57:48 +02:00
commit 5629e05a72
15 changed files with 2176 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80