Angular CLI Typescript Compilation On Assembly
Just to clarify by using angular cli and typescript, when I run the command ng build
. Will it compile all ts files to js? I noticed that the property "compileOnSave"
in is tsconfig.json
set to false.
I have nothing to do to compile the typescript files, right? When are they compiled?
** I'm not sure why my question got dropped. This is a legitimate question and the angular CLI documentation does not provide an explicit answer to it.
** UPDATE: After further reviewing, I noticed that I was getting some TS Lint errors on the first project I was working on when I noticed it was not compiling. I believe that the fact that it doesn't compile may be related to this. After initializing a new project via the CLI, I can see that the typescript files are compiled when the command is executed ng build
.
source to share