kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
ci(front): speedup linting with eslint by using cache
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2503>environments/review-docs-merge-hoc7bt/deployments/18064
rodzic
5168817dc9
commit
f0693c7d4f
|
@ -97,3 +97,6 @@ _build
|
|||
# Docker
|
||||
docker-bake.*.json
|
||||
metadata.json
|
||||
|
||||
# Eslint
|
||||
.eslintcache
|
||||
|
|
|
@ -30,6 +30,9 @@ variables:
|
|||
prefix: front-node_modules
|
||||
files: [front/yarn.lock]
|
||||
paths: [front/node_modules]
|
||||
- key:
|
||||
prefix: front-lint
|
||||
files: [front/.eslintcache]
|
||||
|
||||
# Cache for api related jobs
|
||||
# Include the python version to prevent loosing caches in the test matrix
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"serve": "vite preview",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run --coverage",
|
||||
"lint": "eslint --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",
|
||||
"fix-fomantic-css": "scripts/fix-fomantic-css.sh",
|
||||
"postinstall": "yarn run fix-fomantic-css"
|
||||
|
|
Ładowanie…
Reference in New Issue