Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for injecting lua files as globals #154

Open
Aloroid opened this issue Nov 21, 2023 · 0 comments
Open

Allow for injecting lua files as globals #154

Aloroid opened this issue Nov 21, 2023 · 0 comments

Comments

@Aloroid
Copy link

Aloroid commented Nov 21, 2023

This would be similar to the inject_global_value rule. You would provide a Lua/Luau file that returns a table, and all values of the table would be injected into your luau files. This comes with the benefit that we can now inject more complicated datatypes.

This would improve my workflow, as I can now inject very common parts of my code into other code which is changed often.
It could look something like this:

{
    "rule": "inject_global_lua_file",
    "file": "src/shared/globals.luau"
}
@Aloroid Aloroid changed the title Allow for injecting luau files as globals Allow for injecting lua files as globals Nov 21, 2023
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

No branches or pull requests

1 participant