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

Support BaseScript.RunContext #73

Open
Anaminus opened this issue Aug 26, 2022 · 0 comments
Open

Support BaseScript.RunContext #73

Anaminus opened this issue Aug 26, 2022 · 0 comments
Labels
breaking Not backward-compatible enhancement New feature or request

Comments

@Anaminus
Copy link
Owner

Anaminus commented Aug 26, 2022

Repurpose script format aliases to use RunContext instead (lua and luau):

Format Class (RunContext)
server.lua Script (Server)
client.lua Script (Client)
plugin.lua Script (Plugin)
script.lua Script (Legacy)
localscript.lua LocalScript
lua ModuleScript
modulescript.lua ModuleScript

A potential way to handle backward-compatibility could be to have legacy behavior for lua formats, and new behavior for luau formats:

Format Class (RunContext)
server.lua Script (Legacy)
client.lua LocalScript
plugin.lua Script (Legacy)
script.lua Script (Legacy)
localscript.lua LocalScript
lua ModuleScript
modulescript.lua ModuleScript
server.luau Script (Server)
client.luau Script (Client)
plugin.luau Script (Plugin)
script.luau Script (Legacy)
localscript.luau LocalScript
luau ModuleScript
modulescript.luau ModuleScript

References:

@Anaminus Anaminus added enhancement New feature or request breaking Not backward-compatible labels Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Not backward-compatible enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant