Skip to content

Commit 523aaf6

Browse files
committed
refactor: frontend dir path
1 parent f58243b commit 523aaf6

6 files changed

Lines changed: 13 additions & 19 deletions

File tree

.githooks/pre-commit

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ go vet ./...
1111
go test ./...
1212

1313
# Frontend lint/format (if dependencies installed)
14-
if [ -f "frontend/package.json" ]; then
15-
if command -v pnpm >/dev/null 2>&1 && [ -d "frontend/node_modules" ]; then
16-
echo "[pre-commit] Running frontend lint and format checks"
17-
(cd frontend && pnpm -s lint && pnpm -s format:check)
18-
else
19-
echo "[pre-commit] Skipping frontend lint: pnpm not available or dependencies not installed"
20-
fi
14+
if command -v pnpm >/dev/null 2>&1 && [ -d "frontend/node_modules" ]; then
15+
echo "[pre-commit] Running frontend lint and format checks"
16+
(cd frontend && pnpm -s lint && pnpm -s format:check)
17+
else
18+
echo "[pre-commit] Skipping frontend lint: pnpm not available or dependencies not installed"
2119
fi
2220

2321
echo "[pre-commit] All checks passed."

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,17 @@ on:
55
branches: [ main ]
66
tags:
77
- 'v*'
8-
paths:
8+
paths: &trigger_paths
99
- '**.go'
1010
- 'go.mod'
1111
- 'go.sum'
12-
- '../../frontend/**'
12+
- 'frontend/**'
1313
- 'ent/**'
1414
- 'Dockerfile'
1515
- '.github/workflows/ci.yml'
1616
pull_request:
1717
branches: [ main ]
18-
paths:
19-
- '**.go'
20-
- 'go.mod'
21-
- 'go.sum'
22-
- 'frontend/**'
23-
- 'ent/**'
24-
- '.github/workflows/ci.yml'
18+
paths: *trigger_paths
2519

2620
concurrency:
2721
group: ${{ github.workflow }}-${{ github.ref }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ node_modules/
6565
npm-debug.log*
6666
yarn-debug.log*
6767
yarn-error.log*
68+
pnpm-debug.log*
69+
lerna-debug.log*
70+
*.local
6871

6972
# Frontend build
7073
frontend/dist/

docs/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
},
164164
"/auth/device/activate": {
165165
"post": {
166-
"description": "Authorize a CLI device code using the current web user session",
166+
"description": "Authorize a CLI device code using the current frontend user session",
167167
"consumes": [
168168
"application/json"
169169
],

docs/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ paths:
924924
post:
925925
consumes:
926926
- application/json
927-
description: Authorize a CLI device code using the current web user session
927+
description: Authorize a CLI device code using the current frontend user session
928928
parameters:
929929
- description: Device activation request
930930
in: body

frontend/.env.example

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)