Skip to content

Commit 2183387

Browse files
committed
CI/CD development #745 WIP
1 parent 2ff9741 commit 2183387

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3501
-3210
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ lint-fix: ## Run ESLint with auto-fix
172172
lint-staged: ## Run lint-staged on staged files (used by pre-commit hook)
173173
cd web-client && npx lint-staged
174174

175-
pre-commit-check: lint-staged ## Manually run pre-commit checks without committing
175+
pre-commit-check: ## Manually run pre-commit checks without committing
176+
cd web-client && npx lint-staged && npm run typecheck && npm run test:unit
176177
@echo "✅ Pre-commit checks passed!"
177178

178179
test-unit: ## Run Vitest unit tests (CI-friendly)

web-client/.eslintrc.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ module.exports = {
4040
files: ['tests/**/*.{ts,tsx,js,jsx}'],
4141
env: {
4242
node: true
43+
},
44+
globals: {
45+
globalThis: 'readonly'
4346
}
4447
}
4548
]

web-client/.husky/pre-commit

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
npm test
1+
#!/bin/sh
2+
npx lint-staged && npm run typecheck && npm run test:unit

web-client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"dev": "vite",
1515
"build-only": "vite build",
1616
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json",
17-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
18-
"lint:fix": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
17+
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint src tests --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
18+
"lint:fix": "ESLINT_USE_FLAT_CONFIG=false eslint src tests --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
1919
"preview": "vite preview",
2020
"build": "run-p \"build-only {@}\" --",
2121
"build_with_maps": "VITE_BUILD_SOURCEMAP=true run-p \"build-only {@}\" --",

0 commit comments

Comments
 (0)