diff options
author | Kristóf Marussy <kristof@marussy.com> | 2023-04-09 00:53:53 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2023-04-09 00:53:53 +0200 |
commit | c3fcc1ae3d2f680a973e66c138d9be7ae22eee26 (patch) | |
tree | 6a30b2478a30747cd7a2522acdff941394dea4e7 /subprojects/frontend/package.json | |
parent | build: always prefer slf4j instead of log4j 1.x (diff) | |
download | refinery-c3fcc1ae3d2f680a973e66c138d9be7ae22eee26.tar.gz refinery-c3fcc1ae3d2f680a973e66c138d9be7ae22eee26.tar.zst refinery-c3fcc1ae3d2f680a973e66c138d9be7ae22eee26.zip |
build: refactor frontend build
* Always write ESLint output to a file in addition to the console to make the
lintFrontend task cacheable in Gradle (according to the output file).
* Make sure frontend task inputs are declared properly for caching.
* Make sure Typescript type checking is incremental.
* Do not use @tsconfig, because both Vite and SonarScanner have problems with
extending tsconfig files from Yarn PnP modules.
Diffstat (limited to 'subprojects/frontend/package.json')
-rw-r--r-- | subprojects/frontend/package.json | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/subprojects/frontend/package.json b/subprojects/frontend/package.json index 8b4a3f71..e6bcc89e 100644 --- a/subprojects/frontend/package.json +++ b/subprojects/frontend/package.json | |||
@@ -9,8 +9,7 @@ | |||
9 | "serve": "cross-env MODE=development vite serve", | 9 | "serve": "cross-env MODE=development vite serve", |
10 | "typegen": "xstate typegen \"src/**/*.ts?(x)\"", | 10 | "typegen": "xstate typegen \"src/**/*.ts?(x)\"", |
11 | "typecheck": "tsc -p tsconfig.shared.json && tsc -p tsconfig.node.json && tsc -p tsconfig.json", | 11 | "typecheck": "tsc -p tsconfig.shared.json && tsc -p tsconfig.node.json && tsc -p tsconfig.json", |
12 | "lint": "eslint .", | 12 | "lint": "node config/eslintReport.cjs", |
13 | "lint:ci": "eslint -f json -o build/eslint.json .", | ||
14 | "lint:fix": "yarn run lint --fix" | 13 | "lint:fix": "yarn run lint --fix" |
15 | }, | 14 | }, |
16 | "repository": { | 15 | "repository": { |
@@ -60,7 +59,6 @@ | |||
60 | }, | 59 | }, |
61 | "devDependencies": { | 60 | "devDependencies": { |
62 | "@lezer/generator": "^1.2.2", | 61 | "@lezer/generator": "^1.2.2", |
63 | "@tsconfig/strictest": "^2.0.0", | ||
64 | "@types/eslint": "^8.37.0", | 62 | "@types/eslint": "^8.37.0", |
65 | "@types/html-minifier-terser": "^7.0.0", | 63 | "@types/html-minifier-terser": "^7.0.0", |
66 | "@types/lodash-es": "^4.17.7", | 64 | "@types/lodash-es": "^4.17.7", |