-
Notifications
You must be signed in to change notification settings - Fork 106
Closed
Labels
Milestone
Description
I have a question: It seems to me that the typescript compiler compiles all files even if I touch only one of the source files. Only the bundler seems to know what really changed. For a big project this seems odd as it may take a lot of time to do this. In a TDD environment this could be frustrating. Is this the expected behaviour? Here is the CLI output of me touching one of the files in the example-project:
✔ ~/workspace/karma-typescript/example-project [master|✔]
10:55 $ npm test
> [email protected] test /Users/sechel/workspace/karma-typescript/example-project
> karma start karma.conf.js
25 01 2017 10:56:06.844:INFO [compiler.karma-typescript]: Compiling project using Typescript 2.1.5
25 01 2017 10:56:08.758:INFO [compiler.karma-typescript]: Compiled 3 files in 1354 ms.
25 01 2017 10:56:10.776:INFO [bundler.karma-typescript]: Bundled imports for 3 file(s) in 153 ms.
25 01 2017 10:56:10.849:WARN [karma]: No captured browser, open http://localhost:9876/
25 01 2017 10:56:10.861:WARN [karma]: Port 9876 in use
25 01 2017 10:56:10.862:INFO [karma]: Karma v1.4.0 server started at http://0.0.0.0:9877/
25 01 2017 10:56:10.863:INFO [launcher]: Launching browser Chrome with unlimited concurrency
25 01 2017 10:56:10.914:INFO [launcher]: Starting browser Chrome
25 01 2017 10:56:12.166:INFO [Chrome 56.0.2924 (Mac OS X 10.12.2)]: Connected on socket ms021osP7Av0g3vMAAAA with id 44195702
Chrome 56.0.2924 (Mac OS X 10.12.2): Executed 1 of 1 SUCCESS (0.098 secs / 0.044 secs)
25 01 2017 10:56:50.436:INFO [compiler.karma-typescript]: Compiled 3 files in 456 ms.
25 01 2017 10:56:51.466:INFO [bundler.karma-typescript]: Bundled imports for 1 file(s) in 69 ms.
25 01 2017 10:56:51.466:INFO [watcher]: Changed file "/Users/sechel/workspace/karma-typescript/example-project/src/hello.component.spec.ts".
25 01 2017 10:56:51.471:INFO [watcher]: Changed file "/var/folders/01/6kyd1sm53xd3s96hs4nlw2740000gn/T/karma-typescript-bundle-80892IMF8Ij3NGpv7.js".
Chrome 56.0.2924 (Mac OS X 10.12.2): Executed 1 of 1 SUCCESS (0.008 secs / 0.002 secs)