New emit pipeline and API/CLI refactor#511
Merged
Perryvw merged 45 commits intoTypeScriptToLua:masterfrom May 2, 2019
Merged
Conversation
Perryvw
reviewed
Apr 6, 2019
1c3bd4b to
8b8eaca
Compare
Perryvw
reviewed
Apr 6, 2019
1dea9b7 to
2d62202
Compare
2d62202 to
02699cd
Compare
c93505e to
e767750
Compare
Perryvw
reviewed
Apr 17, 2019
f2ffccc to
4c76457
Compare
Perryvw
reviewed
Apr 28, 2019
Perryvw
approved these changes
Apr 29, 2019
tomblind
reviewed
May 1, 2019
lolleko
reviewed
May 2, 2019
Member
lolleko
left a comment
There was a problem hiding this comment.
Is there no way to retrieve the transpiled AST anymore?
Also would be nice to know if this can run in a browser.
This is relevant for the website.
Contributor
Author
|
Ah, so that's where it was used.
|
be51ac2 to
e8b89cd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API was refactored (closes CLI/Lib Refactor #393):
LuaTranspilerwas removedtranspile, that runsprogram.emitwith custom transformers and collects emitted resultsemitTranspiledFilesfunction, that writes results to disk. Later it would be replaced byCompilationclass (New module resolution and Compilation structure #432).ts.Diagnostic[]instead of throwing/logging/exiting (Return ts diagnostics instead of throwing errors from transformer #412 still isn't completely resolved, since for now it just catchesTranspileErrorthrown from transformer).transpileFiles,transpileProject, andtranspileVirtualProjecttranspileStringto receive only a string and options. Old features may be done withtranspileVirtualProject.CompilerOptionsaren't case-insensitive anymore. It should be normalized before using from the API.CLI was refactored:
tsctscnow, with a support ofprettyreportertsconfig.json(liketsc)"true"and"false") are no longer allowedtstlconfig object are considered as errors nowAdded support for some emit-related flags:
declarationdeclarationMapemitDeclarationOnlynoEmitnoEmitOnError(it's not default anymore)