In the process of transitioning my Angular 1.x project from vanilla JS to TypeScript, I'm encountering frustratingly slow response times from my IDE.https://i.sstatic.net/LkiDj.png
When I uncheck "Track changes" in Settings > Languages & Frameworks > TypeScript, the compilation comes to a halt--but then my TS files don't compile at all!
While I could set up a gulp file with a watcher to recompile files upon change, I'd prefer to avoid having to run gulp for every project. Moreover, disabling "Track changes" removes TypeScript-specific suggestions and seems to break certain references.
With "Track changes" enabled: Assistance + References https://i.sstatic.net/nEwex.png
With "Track changes" disabled: No assistance + Broken References https://i.sstatic.net/bQby5.png
Question #1:
Can IntelliJ be configured to only compile changed files?
Question #2:
Why is IntelliJ compiling so many files? Here's a snippet of my tsconfig.json setup:
{
"compilerOptions": {
"module": "system",
"noImplicitAny": false,
"removeComments": true,
"preserveConstEnums": true,
"outFile": "build/local/tsc.js",
"sourceMap": true,
"typeRoots": [
"./node_modules/@types",
"./typings"
],
"moduleResolution": "node"
},
"exclude": [
"client/src/node_modules",
"**/*.spec.ts",
"src/bower_components",
"client/src/bower_components",
"client/src/node_modules",
"build",
"Saved_HTML",
"site-ideas",
"node_modules",
"client/typings"
]
}
Despite specifying node_modules as an excluded directory, the compiler still seems to be delving into it. https://i.sstatic.net/6RSuO.png.