Skip to content

Commit

Permalink
Speed up compilation by using the --incremental flag
Browse files Browse the repository at this point in the history
https: //www.typescriptlang.org/tsconfig/#incremental

Change-Id: I750398a09178e02c3b3c73bf8e8fc7654dab03d4
Reviewed-by: Marcus Tillmanns <[email protected]>
  • Loading branch information
OrkunTokdemir committed Nov 21, 2024
1 parent 775d7a3 commit e8c5af6
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ build
src/test/util/dependencies
.cache
.eslintcache
tsconfig.tsbuildinfo
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"all_dev:qt-qml": "npm run ci:qt-qml && npm run pretest:qt-qml && npm run package:qt-qml && npm run install-ext:qt-qml",
"all_dev:qt-cpp": "npm run ci:qt-cpp && npm run pretest:qt-cpp && npm run package:qt-cpp && npm run install-ext:qt-cpp",
"all_dev:qt-ui": "npm run ci:qt-ui && npm run pretest:qt-ui && npm run package:qt-ui && npm run install-ext:qt-ui",
"pretest": "npm run prettierWrite && npx tsc --noEmit && eslint . --fix --cache",
"pretest": "npm run prettierWrite && npx tsc --incremental --noEmit && eslint . --fix --cache",
"pretest:qt-core": "cd qt-core && npm run pretest",
"pretest:qt-qml": "cd qt-qml && npm run pretest",
"pretest:qt-cpp": "cd qt-cpp && npm run pretest",
Expand Down
1 change: 1 addition & 0 deletions qt-core/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ package-lock.json
extension_packs/**
../**/*
.eslintcache
tsconfig.tsbuildinfo
2 changes: 1 addition & 1 deletion qt-core/esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function execCmd(command) {
});
}

await execCmd('npx tsc --noEmit').then(
await execCmd('npx tsc --incremental --noEmit').then(
(stdout) => {
if (stdout.length > 0) {
console.log(stdout);
Expand Down
1 change: 1 addition & 0 deletions qt-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"allowUnusedLabels": false,
"incremental": true,
"allowUnreachableCode": false,
"noImplicitReturns": true,
"exactOptionalPropertyTypes": true,
Expand Down
1 change: 1 addition & 0 deletions qt-cpp/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ package-lock.json
extension_packs/**
../**/*
.eslintcache
tsconfig.tsbuildinfo
1 change: 1 addition & 0 deletions qt-cpp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"allowUnusedLabels": false,
"incremental": true,
"allowUnreachableCode": false,
"noImplicitReturns": true,
"exactOptionalPropertyTypes": true,
Expand Down
1 change: 1 addition & 0 deletions qt-lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"allowUnusedLabels": false,
"incremental": true,
"allowUnreachableCode": false,
"noImplicitReturns": true,
"exactOptionalPropertyTypes": true,
Expand Down
1 change: 1 addition & 0 deletions qt-qml/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ package-lock.json
extension_packs/**
../**/*
.eslintcache
tsconfig.tsbuildinfo
1 change: 1 addition & 0 deletions qt-qml/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"allowUnusedLabels": false,
"incremental": true,
"allowUnreachableCode": false,
"noImplicitReturns": true,
"exactOptionalPropertyTypes": true,
Expand Down
1 change: 1 addition & 0 deletions qt-ui/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ package-lock.json
extension_packs/**
../**/*
.eslintcache
tsconfig.tsbuildinfo
1 change: 1 addition & 0 deletions qt-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"allowUnusedLabels": false,
"incremental": true,
"allowUnreachableCode": false,
"noImplicitReturns": true,
"exactOptionalPropertyTypes": true,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"allowUnusedLabels": false,
"incremental": true,
"allowUnreachableCode": false,
"noImplicitReturns": true,
"exactOptionalPropertyTypes": true,
Expand Down

0 comments on commit e8c5af6

Please sign in to comment.