ci(front): speedup type checking with vue-tsc by using incremental cache

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2503>
environments/review-docs-merge-hoc7bt/deployments/18064
Kasper Seweryn 2023-06-19 23:30:33 +02:00
rodzic f0693c7d4f
commit cc8f3e6a3c
3 zmienionych plików z 6 dodań i 3 usunięć

3
.gitignore vendored
Wyświetl plik

@ -98,5 +98,6 @@ _build
docker-bake.*.json docker-bake.*.json
metadata.json metadata.json
# Eslint # Linting
.eslintcache .eslintcache
tsconfig.tsbuildinfo

Wyświetl plik

@ -32,7 +32,9 @@ variables:
paths: [front/node_modules] paths: [front/node_modules]
- key: - key:
prefix: front-lint prefix: front-lint
files: [front/.eslintcache] files:
- front/.eslintcache
- front/tsconfig.tsbuildinfo
# Cache for api related jobs # Cache for api related jobs
# Include the python version to prevent loosing caches in the test matrix # Include the python version to prevent loosing caches in the test matrix

Wyświetl plik

@ -12,7 +12,7 @@
"test": "vitest run", "test": "vitest run",
"test:unit": "vitest run --coverage", "test:unit": "vitest run --coverage",
"lint": "eslint --cache --cache-strategy content --ext .ts,.js,.vue,.json,.html src test public/embed.html", "lint": "eslint --cache --cache-strategy content --ext .ts,.js,.vue,.json,.html src test public/embed.html",
"lint:tsc": "vue-tsc --noEmit", "lint:tsc": "vue-tsc --noEmit --incremental",
"fix-fomantic-css": "scripts/fix-fomantic-css.sh", "fix-fomantic-css": "scripts/fix-fomantic-css.sh",
"postinstall": "yarn run fix-fomantic-css" "postinstall": "yarn run fix-fomantic-css"
}, },