mirror of
https://github.com/LucasVbr/game-lib.git
synced 2026-07-09 15:07:59 +00:00
feat: initialize SvelteKit web application with Paraglide and Playwright integration
- Added package.json for project dependencies and scripts - Created Playwright configuration for end-to-end testing - Set up Inlang project settings for localization - Defined app types in app.d.ts - Created basic HTML structure in app.html - Implemented server hooks for localization in hooks.server.ts - Added hooks for URL rerouting in hooks.ts - Included favicon asset - Established library index for $lib alias - Developed Vitest example components and tests - Created layout and page components for routing - Implemented demo pages for Paraglide and Playwright - Added global CSS styles for layout - Configured Vite for project build and testing - Included robots.txt for web crawling instructions - Set up TypeScript configuration for the project
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
FROM node:25-alpine AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 3000
|
||||
|
||||
FROM base AS development
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm i
|
||||
COPY . .
|
||||
RUN sh -c "svelte-kit sync || echo ''"
|
||||
CMD ["npx", "vite", "dev", "--port", "3000", "--host"]
|
||||
|
||||
FROM base AS build
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm i
|
||||
COPY . .
|
||||
RUN npx vite build
|
||||
|
||||
FROM base AS production
|
||||
ENV NODE_ENV=production
|
||||
COPY --from=build /app/build /app/build
|
||||
COPY --from=build /app/node_modules /app/node_modules
|
||||
COPY --from=build /app/package.json /app/package.json
|
||||
COPY --from=build /app/package-lock.json /app/package-lock.json
|
||||
CMD ["node", "build/index.js"]
|
||||
Reference in New Issue
Block a user