Commit Graph

138 Commits

Author SHA1 Message Date
Sheetal Nandi 27209e145d Use EmitAndSemanticDiagnosticsBuilder in builder from tsc 2019-03-14 11:57:53 -07:00
Sheetal Nandi b762d6205e Merge pull request #30344 from Microsoft/uptoDate
Set oldestOutputFileName in uptodate status when updating just timestamps of output
2019-03-13 10:54:59 -07:00
Sheetal Nandi 2477159782 Do not schedule updating bundle if the buildInfo file wont be generated for the project
Fixes #30346
2019-03-12 16:08:01 -07:00
Sheetal Nandi ffeb38456f Set oldestOutputFileName in uptodate status when updating just timestamps of output
Fixes #29875
2019-03-12 13:30:17 -07:00
Sheetal Nandi f8ec54c223 Rename setGetSourceFileAsHashVersioned 2019-03-08 16:52:07 -08:00
Sheetal Nandi e41cbb6316 Add incremental to normal tsc 2019-03-08 15:59:59 -08:00
Sheetal Nandi ec47859624 Make watch use sourceFileHash so it can be used with --incremental as well 2019-03-08 15:56:08 -08:00
Sheetal Nandi 68e28da141 Build project if existing project was built with different compiler version 2019-03-08 15:14:34 -08:00
Sheetal Nandi 8e7db4d4b3 Because .tsbuildinfo is flag now, use .tsbuildinfo just like any other output to determine if project needs rebuild 2019-03-01 13:12:19 -08:00
Sheetal Nandi d53efdf380 Changes to generation of .tsbuildinfo:
- If composite or incremental then only the .tsbuildinfo will be generated
- if --out or --outFile the file is outputFile.tsbuildinfo
- if rootDir and outDir then outdir/relativePathOfConfigFromRootDir/configname.tsbuildinfo
- if just outDir then outDir/configname.tsbuild
- otherwise config.tsbuildinfo next to configFile
2019-02-28 13:46:26 -08:00
Sheetal Nandi 89c4c4f684 Update the message to not just mean javascript since we might need to regenerate .d.ts as well 2019-02-21 17:52:15 -08:00
Sheetal Nandi e9fb843e56 Add test to verify incremental build is same as if its built clean 2019-02-21 12:46:04 -08:00
Sheetal Nandi 1d77008993 Handle when no .tsbuildinfo is to be generated 2019-02-07 16:27:45 -08:00
Sheetal Nandi e3f8c34bc9 Add mechanism to dump and read program to build info 2019-02-07 12:10:15 -08:00
Sheetal Nandi 212cd62f05 Generate buildInfo for non --out and prepend options as well 2019-02-07 12:10:14 -08:00
Sheetal Nandi aa5d62a72c Perform only emit on js file if no decl file change 2019-02-04 15:01:54 -08:00
Sheetal Nandi 39e37a2c57 Generate .tsbuildInfo if bundle uses references with prepend 2019-01-31 10:24:13 -08:00
Sheetal Nandi bd769406ca If the project only needs prepend output to be changed, prepare to just manipulate output
Step 1: Update the verbose log to reflect it
2019-01-31 10:24:12 -08:00
Sheetal Nandi 0d9cf96e74 Make the bundle info into buildInfo 2019-01-30 10:07:29 -08:00
Sheetal Nandi 717dad9ebf Dont use tsbundleInfo to determine if bundle needs to be rebuilt 2019-01-29 15:29:12 -08:00
Sheetal Nandi d5b5f8d289 Handle --clean with .tsbuildinfo 2019-01-29 13:58:47 -08:00
Sheetal Nandi 900d6f7c90 renames 2019-01-17 12:29:23 -08:00
Sheetal Nandi 9f3b77a8bd PR feedback 2019-01-17 09:23:20 -08:00
Sheetal Nandi e745fca413 Fix typo 2019-01-14 14:35:05 -08:00
Sheetal Nandi ff97d86cfa Fix typo 2019-01-14 14:00:22 -08:00
Sheetal Nandi abc861862a Fix typo 2019-01-10 15:18:02 -08:00
Sheetal Nandi 69abc12494 Handle declaration emit errors in tsbuild mode by backing up builder state
This helps us revert to state where we pretend as if emit is not done (since we do not do emit if there are errors)
2018-12-26 12:25:27 -08:00
Sheetal Nandi 7b290fdbd4 Update the timestamps of outputs that dont need to be written because of incremental build
This ensures that after `tsbuild` after incremental build of `tsbuild -w` doesnt result in unnecessary rebuilds
2018-12-21 12:56:03 -08:00
Sheetal Nandi f1949bbae8 Use emit builder to emit only changed files. 2018-12-21 12:53:26 -08:00
Sheetal Nandi 47f51060e9 Use oldProgram to create the new Program.
This helps in storing the semantic diagnostics
2018-12-21 12:53:26 -08:00
Sheetal Nandi 56a76d8b62 Revert BuilderProgram to be redirected object to Program in preparation to set Program in state to undefined for storing. 2018-12-21 12:53:25 -08:00
Sheetal Nandi 48baa42d65 Make SolutionBuilder handle BuilderProgram in preparation to handle incremental builds 2018-12-21 12:53:25 -08:00
Sheetal Nandi 9e05abcfd3 Make BuilderProgram as Program 2018-12-21 12:53:15 -08:00
Sheetal Nandi 0cabb00b34 Use watch factory instead of direct host functions in tsbuild to provide detailed information on watch invokations 2018-12-21 12:53:14 -08:00
Sheetal Nandi 1f2d403f6d Merge branch 'master' into cacheHostResults 2018-11-21 12:20:19 -08:00
Sheetal Nandi 2128cc49a0 Dont explicitly get declaration diagnostics 2018-11-21 11:43:36 -08:00
Sheetal Nandi 8d5d900567 Factor out caching logic so tsc (without watch can use it and --watch has its own cache logic). 2018-11-21 09:18:03 -08:00
Sheetal Nandi c7f8959034 PR feedback. 2018-11-21 09:03:26 -08:00
Sheetal Nandi 6a37fd46fe Cache results for readFile, fileExists, directory exists, sourceFiles for .d.ts files across the build (only first time) 2018-11-20 15:16:15 -08:00
Sheetal Nandi 99d357db57 Enable statistics reporting per program through temporary build api 2018-11-19 12:38:36 -08:00
Sheetal Nandi 77ef9cedab Report error summary in pretty mode during normal compilation 2018-11-01 16:11:22 -07:00
Sheetal Nandi ba0f5581f6 Remove any existing errors in case of successful build in tsbuild watch mode
Fixes #27685
2018-10-10 12:52:34 -07:00
Sheetal Nandi aed876dfb4 Refactoring to unify updating no input files error 2018-09-27 11:58:15 -07:00
Sheetal Nandi 0d5aeeef22 Detect the input file of referenced project with fileNames from parsed command
Fixes #25864 and #26054
2018-09-18 11:44:16 -07:00
Sheetal Nandi a5fd3e9176 Handle out and outFile options correctly in tsbuild 2018-09-17 12:46:10 -07:00
Sheetal Nandi aac961e60d Builder to use project reference redirects to output in the dependencies instead of source files 2018-09-17 12:18:59 -07:00
Sheetal Nandi ebb89ba50c Merge branch 'master' into commonCompilerOptionsWithBuild 2018-09-14 10:08:34 -07:00
Sheetal Nandi 47f311ac03 Merge pull request #27062 from Microsoft/tsbuildWatchImprovements
Multiple improvements to watching with --build option
2018-09-14 09:54:17 -07:00
Nathan Shively-Sanders 64d0e0d448 Shorten more internal names to JS or TS (#27080) 2018-09-13 15:05:57 -07:00
Sheetal Nandi 4cf746cdc4 Enable listFiles and listEmittedFiles as build option 2018-09-13 11:17:03 -07:00