From cc8f3e6a3c94d2607ebc455dfdbb2d26012d814a Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Mon, 19 Jun 2023 23:30:33 +0200 Subject: [PATCH] ci(front): speedup type checking with vue-tsc by using incremental cache Part-of: --- .gitignore | 3 ++- .gitlab-ci.yml | 4 +++- front/package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 865a89132..64ef31b0e 100644 --- a/.gitignore +++ b/.gitignore @@ -98,5 +98,6 @@ _build docker-bake.*.json metadata.json -# Eslint +# Linting .eslintcache +tsconfig.tsbuildinfo diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e2fe5bf1d..939bd0009 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,7 +32,9 @@ variables: paths: [front/node_modules] - key: prefix: front-lint - files: [front/.eslintcache] + files: + - front/.eslintcache + - front/tsconfig.tsbuildinfo # Cache for api related jobs # Include the python version to prevent loosing caches in the test matrix diff --git a/front/package.json b/front/package.json index dc9dcd987..a65cf07b4 100644 --- a/front/package.json +++ b/front/package.json @@ -12,7 +12,7 @@ "test": "vitest run", "test:unit": "vitest run --coverage", "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", "postinstall": "yarn run fix-fomantic-css" },