Skip to content

Load plugins from tsconfig.json#773

Merged
Perryvw merged 14 commits intoTypeScriptToLua:masterfrom
ark120202:tsconfig-plugins
Mar 15, 2020
Merged

Load plugins from tsconfig.json#773
Perryvw merged 14 commits intoTypeScriptToLua:masterfrom
ark120202:tsconfig-plugins

Conversation

@ark120202
Copy link
Copy Markdown
Contributor

No description provided.

@ark120202 ark120202 marked this pull request as ready for review March 11, 2020 14:09
@ark120202 ark120202 requested a review from Perryvw March 11, 2020 14:09

const plugin: tstl.Plugin = {
visitors: {
[ts.SyntaxKind.StringLiteral]: (node, context) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment just describing what these (also the other two) plugins do, something like // Visit string literals, if original transformer returns a string literal, change the string to "bar" instead? That way it is also easier to link to these as example for our users/documentation.

@@ -0,0 +1 @@
module.exports = true;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if we should somehow separate these files from the test files, maybe with a data/ directory? What do you think?

@Perryvw Perryvw merged commit 9bef35d into TypeScriptToLua:master Mar 15, 2020
@ark120202 ark120202 deleted the tsconfig-plugins branch March 16, 2020 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants