Skip to content
Merged
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
43 changes: 19 additions & 24 deletions .github/workflows/dashboard-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,56 +20,51 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: jdx/mise-action@v4
with:
node-version: 22
- run: corepack enable
- run: yarn install --immutable
install_args: node pnpm
- run: pnpm install --frozen-lockfile
rome:
name: Format and Lint
runs-on: ubuntu-latest
needs: [packages]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: jdx/mise-action@v4
with:
node-version: 22
- run: corepack enable
- run: yarn install --immutable
- run: yarn ci
install_args: node pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run ci
typecheck:
name: Check types
runs-on: ubuntu-latest
needs: [packages]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: jdx/mise-action@v4
with:
node-version: 22
- run: corepack enable
- run: yarn install --immutable
- run: yarn typecheck
install_args: node pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
test:
name: Test
runs-on: ubuntu-latest
needs: [packages]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: jdx/mise-action@v4
with:
node-version: 22
- run: corepack enable
- run: yarn install --immutable
- run: yarn test
install_args: node pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test
build:
name: Build
runs-on: ubuntu-latest
needs: [packages]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: jdx/mise-action@v4
with:
node-version: 22
- run: corepack enable
- run: yarn install --immutable
- run: yarn build
install_args: node pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
9 changes: 0 additions & 9 deletions dashboard/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
.pnp.*
.yarn/*
!.yarn/.gitkeep
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

dist
node_modules

Expand Down
11 changes: 0 additions & 11 deletions dashboard/.gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
.pnp.*
.yarn/*
!.yarn/.gitkeep
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

node_modules
dist

yarn-error.log

!.vscode
Empty file removed dashboard/.yarn/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion dashboard/.yarnrc.yml

This file was deleted.

22 changes: 10 additions & 12 deletions dashboard/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
FROM --platform=$BUILDPLATFORM node:25-slim AS base
FROM --platform=$BUILDPLATFORM node:24-slim AS base

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"

WORKDIR /work

# use --force to replace existing yarn v1 binaries
RUN npm install -g corepack@latest --force
COPY package.json pnpm-lock.yaml ./
RUN corepack enable

COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn .yarn
RUN yarn --immutable
RUN --mount=type=cache,target=/pnpm/store \
pnpm install --frozen-lockfile

FROM --platform=$BUILDPLATFORM base AS dev

ENTRYPOINT ["yarn", "dev"]
COPY . .
ENTRYPOINT ["pnpm", "dev"]
CMD ["--host", "--port=80"]

FROM --platform=$BUILDPLATFORM base AS builder

COPY . .
RUN yarn build
RUN pnpm build

FROM caddy:2 AS prod

COPY Caddyfile /etc/caddy/Caddyfile
COPY --from=builder /work/dist/ /usr/share/caddy/
7 changes: 4 additions & 3 deletions dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint": "biome check src",
"lint:apply": "biome check src --write",
"lint:force": "biome check src --write --unsafe",
"fix": "yarn fmt:apply && yarn lint:apply",
"fix": "pnpm fmt:apply && pnpm lint:apply",
"typecheck": "tsc --noEmit",
"ci": "biome ci src",
"analyze": "vite build --mode analyze",
Expand All @@ -22,6 +22,7 @@
"@biomejs/biome": "2.4.10",
"@iconify-json/material-symbols": "1.2.65",
"@types/node": "25.5.2",
"@unocss/preset-mini": "66.6.7",
"jsdom": "27.4.0",
"rollup-plugin-visualizer": "6.0.5",
"typescript": "5.9.3",
Expand Down Expand Up @@ -55,7 +56,7 @@
"tippy.js": "6.3.7",
"ts-pattern": "5.9.0",
"valibot": "1.3.1",
"virtua": "^0.49.0"
"virtua": "0.49.0"
},
"packageManager": "yarn@4.13.0"
"packageManager": "pnpm@10.33.0"
}
Loading
Loading