Skip to content

Lualib modules via plugin#1224

Merged
Perryvw merged 3 commits intoTypeScriptToLua:lualib-pluginsfrom
GlassBricks:lualib-plugins
Mar 6, 2022
Merged

Lualib modules via plugin#1224
Perryvw merged 3 commits intoTypeScriptToLua:lualib-pluginsfrom
GlassBricks:lualib-plugins

Conversation

@GlassBricks
Copy link
Copy Markdown
Contributor

@GlassBricks GlassBricks commented Mar 5, 2022

Alternative to #1213

@GlassBricks GlassBricks changed the title fix lualib-build Lualib modules via plugin Mar 5, 2022
@GlassBricks GlassBricks marked this pull request as ready for review March 5, 2022 20:58
@Perryvw Perryvw merged commit 8fa21ca into TypeScriptToLua:lualib-plugins Mar 6, 2022
{ luaPattern: "Bar = __TS__Class()", typeScriptPattern: "class Bar" },
{ luaPattern: "Bar.name =", typeScriptPattern: "class Bar" },
{ luaPattern: "__TS__ClassExtends", typeScriptPattern: "extends" },
{ luaPattern: "__TS__ClassExtends(", typeScriptPattern: "extends" }, // find use of function, not import
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

bug?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oh, never mind

Perryvw pushed a commit that referenced this pull request Mar 6, 2022
* fix lualib-build

* Finish lualib modules via plugin implementation

* Include build-lualib.ts
@GlassBricks GlassBricks mentioned this pull request Mar 15, 2022
Perryvw added a commit that referenced this pull request Mar 17, 2022
* generate lualib with plugins

* Copy over new lualib code

* Lualib modules via plugin (#1224)

* fix lualib-build

* Finish lualib modules via plugin implementation

* Include build-lualib.ts

* Clean up lualib plugin with new plugin hooks

* Fix mistake

* Use plugin afterPrint results array to create bundle

* Bundle lualib in correct order

* Added tests for new plugin hooks

* fix prettier

* Remove lualibimport always option

* updated snapshots

* Remove obsolete error log

* Use tstl CLI to build-lualib

* Fix using tstl CLI to build lualib (#1233)

Co-authored-by: Benjamin Ye <24237065+GlassBricks@users.noreply.github.com>
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.

3 participants