-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: use pnpm * fix: biome cmd * feat: docker fixes
- Loading branch information
Showing
16 changed files
with
8,983 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
.git | ||
.gitignore | ||
.nuxt | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,17 @@ | ||
FROM oven/bun:1.0-slim as builder | ||
FROM node:20-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json bun.lockb ./ | ||
RUN npm install -g pnpm | ||
|
||
RUN bun install --frozen-lockfile | ||
COPY package.json pnpm-lock.yaml ./ | ||
|
||
COPY . . | ||
|
||
RUN bun run build | ||
RUN pnpm install | ||
|
||
FROM oven/bun:1.0-slim | ||
|
||
WORKDIR /app | ||
COPY . . | ||
|
||
COPY --from=builder /app/.output /app/.output | ||
COPY --from=builder /app/.nuxt /app/.nuxt | ||
COPY --from=builder /app/package.json /app/package.json | ||
RUN pnpm build | ||
|
||
EXPOSE 3000 | ||
|
||
ENV NODE_ENV=production | ||
|
||
CMD ["bun", "run", ".output/server/index.mjs"] | ||
|
||
|
||
CMD ["node", ".output/server/index.mjs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
run: | ||
@bun run dev | ||
@pnpm run dev | ||
|
||
build-client: | ||
@bun run generate | ||
@bunx serve .output/public | ||
@pnpm run generate | ||
@pnpm dlx serve .output/public | ||
|
||
start: | ||
@pnpm run start | ||
|
||
build: | ||
@bun run build | ||
@bun .output/server/index.mjs | ||
@pnpm run build | ||
@node .output/server/index.mjs | ||
|
||
format: | ||
@bunx biome format --write ./app ./server | ||
@pnpm biome format --write ./app ./server | ||
|
||
lint: | ||
@bunx biome lint --write ./app ./server | ||
@pnpm biome lint --write ./app ./server | ||
|
||
upgrade-deps: | ||
@ncu -u | ||
@bun i | ||
@pnpm i | ||
|
||
up: | ||
@docker compose up -d | ||
|
||
down: | ||
@docker compose down -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@font-face { | ||
font-family: 'Satoshi-Variable'; | ||
src: url('/fonts/Satoshi-Variable.ttf') format('trueType'); | ||
font-weight: 100 900; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.border { | ||
border-width: 1px; | ||
border-style: solid; | ||
} | ||
|
||
.border-2 { | ||
border-width: 2px; | ||
border-style: solid; | ||
} | ||
|
||
.border-4 { | ||
border-width: 4px; | ||
border-style: solid; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.