Skip to content

Commit 2120712

Browse files
committed
feat(build): enable incremental compilation
Signed-off-by: Miroslav Bajtoš <[email protected]>
1 parent 77acebd commit 2120712

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ packages/tsdocs/fixtures/monorepo/docs
1616
/docs/site/readmes
1717
/docs/apidocs/reports-temp
1818
/docs/apidocs/models
19+
*.tsbuildinfo
1920

2021
# TBD: Exclude api reports from git for now
2122
/docs/apidocs/reports

packages/build/config/tsconfig.common.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
// FIXME(bajtos) LB4 is not compatible with this setting yet
1111
"strictPropertyInitialization": false,
1212

13+
"incremental": true,
14+
1315
"lib": ["es2018", "esnext.asynciterable"],
1416
"module": "commonjs",
1517
"moduleResolution": "node",

packages/cli/generators/project/templates/_.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@ api-docs/
6262

6363
# Transpiled JavaScript files from Typescript
6464
/dist
65+
66+
# Cache used by TypeScript's incremental build
67+
*.tsbuildinfo

packages/cli/generators/project/templates/tsconfig.json.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"resolveJsonModule": true,
1818
"skipLibCheck": true,
1919
20+
"incremental": true,
21+
2022
"lib": ["es2018", "esnext.asynciterable"],
2123
"module": "commonjs",
2224
"moduleResolution": "node",

packages/cli/test/integration/generators/app.integration.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ describe('app-generator specific files', () => {
116116
const pkg = JSON.parse(await readFile('package.json'));
117117
expect(pkg.scripts).to.have.property('migrate', 'node ./dist/migrate');
118118
});
119+
120+
it('creates .gitignore', () => {
121+
assert.fileContent('.gitignore', /^\*\.tsbuildinfo$/m);
122+
});
119123
});
120124

121125
describe('app-generator with docker disabled', () => {

0 commit comments

Comments
 (0)