Repository navigation
Provide --build/--incremental APIs for build tools #29978
Description
Activity
- addedSuggestionAn idea for TypeScriptAn idea for TypeScriptCommittedThe team has roadmapped this issueThe team has roadmapped this issueDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptScenario: Monorepos & Cross-Project ReferencesRelates to composite projects (a.k.a references between "medium sized projects")Relates to composite projects (a.k.a references between "medium sized projects")
on Feb 19, 2019 This would be great. The TensorFlow.js team is using karma-typescript for testing in the browser, and we can't migrate to composite build yet since the compiler API doesn't work for composite.
const tsconfig = ; // parsed ts config // tsconfig.fileNames includes only the files mentioned in "include". ts.createProgram(tsconfig.fileNames, tsconfig.options, compilerHost); // Failed since `fileNames` doesn't contain files from "referenced projects"
- changed the title
[-]Provide --build APIs for build tools to operate on composite projects[/-][+]Provide --build/--incremental APIs for build tools to operate on composite projects[/+]on Apr 1, 2019 - changed the title
[-]Provide --build/--incremental APIs for build tools to operate on composite projects[/-][+]Provide --build/--incremental APIs for build tools[/+]on Apr 1, 2019 DanielRosenwasser commented
on Apr 2, 2019 MemberAuthorMore actionsThis issue now also tracks
--incrementalwork since they are both related in some capacity.Reacted by Neale Upstone, Oskar Olsson, ulrichb, Marek Buko, Adam Wamai Egesa and Denes PappReacted by Melih Yıldız, Oskar Olsson, ulrichb, Marek Buko, Adam Wamai Egesa and Denes Papp- addedDomain: tsc -bIssues related to build modeIssues related to build mode
on Apr 2, 2019 - addedDomain: tsc: --incrementalThe issue relates to incremental compilationThe issue relates to incremental compilation
on Apr 12, 2019 Closed by #31432
Reacted by Michael Loughry, Melih Yıldız, Wesley Harris, Seth Fowler, Denes Papp, WanderWang and ulrichbThanks for the new APIs, Sheetal Nandi (@sheetalkamat).
Is there a separate issue open for updating the docs? I know, personally, I've found the docs around the compiler APIs (as opposed to the language itself) to be rather lacking and often out-of-date.
Reacted by Nick Ribal, ulrichb, Denes Papp, Andrew Lisowski and JayReacted by Arpad Borsos, Bnaya Peretz, Denes Papp and Andrew LisowskiNot that I am aware of. Daniel Rosenwasser (@DanielRosenwasser) do you want me to keep this open or create new issue for documentation.
DanielRosenwasser commented
on Jun 10, 2019 MemberAuthorMore actionsReacted by Denes PappHmm. This issue has been labeled with 3.5, ... and also has just been moved in the roadmap from 3.6 to 3.5 ... but I cannot find e.g.
createIncrementalProgram()in the declarations oftypescript@3.5.3.So what's going on? /cc Daniel Rosenwasser (@DanielRosenwasser)
Reacted by Mark Cobalt, Harminder Virk, Alexey Ivanov, Tomáš Szabo, Vegar Ringdal, Thomas Suckow, Domas Trijonis, Erik Barke, Sámal Rasmussen and Joseph Kohlmann
When we added support for composite projects and implemented
--buildmode (#3469, #25600), we only provided a few APIs, but not enough that 3rd party tools could defer to TypeScript's understanding of composite projects to instruct these tools how to build intelligently.We'd like to provide some stable API so tools like gulp and Webpack can easily operate over composite projects with project references.