Currently, I am delving into learning AngularJS v2 by thoroughly exploring the official documentation.
https://angular.io/docs/ts/latest/tutorial/toh-pt1.html
https://github.com/angular/quickstart
While experimenting with the tutorial mentioned in the links above, I was impressed to see that upon executing npm start
, the application swiftly detected modifications in ts scripts and promptly compiled them into js. It's truly fascinating!
I'm now curious about the underlying code that enables this functionality.
Upon examining the package.json
,
"scripts": {
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
My assumption is that tsc
handles the compilation aspect. What I find perplexing is how tsc identifies the location of ts files for compilation. Where can I access the settings for tsc
? Are there options available to optimize the compilation process?