Skip to content

Commit 2d8ec77

Browse files
committed
Add tailwind to dashboard
1 parent e4c990f commit 2d8ec77

11 files changed

Lines changed: 418 additions & 9 deletions

File tree

.github/workflows/dashboard.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Dashboard
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "backend/dashboard/**"
7+
- "backend/Dockerfile"
8+
- ".github/workflows/dashboard.yml"
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-24.04
16+
defaults:
17+
run:
18+
working-directory: backend/dashboard
19+
20+
steps:
21+
- uses: actions/checkout@v6
22+
with:
23+
persist-credentials: false
24+
25+
- uses: pnpm/action-setup@v6
26+
with:
27+
version: 10
28+
run_install: false
29+
30+
- uses: actions/setup-node@v6
31+
with:
32+
node-version: "24"
33+
cache: pnpm
34+
cache-dependency-path: backend/dashboard/pnpm-lock.yaml
35+
36+
- name: Install dependencies
37+
run: pnpm install --frozen-lockfile
38+
39+
- name: Build dashboard
40+
run: pnpm build

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ WORKDIR ${FUNCTION_DIR}/dashboard
6666

6767
COPY dashboard/package.json dashboard/pnpm-lock.yaml ./
6868

69-
RUN pnpm install --frozen-lockfile
69+
RUN pnpm --ignore-workspace install --frozen-lockfile
7070

7171
COPY dashboard/ ./
7272

backend/dashboard/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
"react-dom": "19.2.8"
1414
},
1515
"devDependencies": {
16+
"@tailwindcss/vite": "4.3.3",
1617
"@types/react": "19.2.18",
1718
"@types/react-dom": "19.2.4",
1819
"@vitejs/plugin-react": "6.0.5",
20+
"tailwindcss": "4.3.3",
1921
"typescript": "7.0.2",
2022
"vite": "8.2.0"
2123
}

0 commit comments

Comments
 (0)