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.
As far as I can tell, there is no official documentation outlining which files should be ignored when using the Luau language. However, there are a few files that can be generated by Luau (or by
perfgraph
, a recommended tool included in the language repository), namely coverage.out, profile.out, profile.svg, and trace.json—the latter specifically requiring the compiler to be built withLUAU_ENABLE_TIME_TRACE
enabled. All of these files have been included in this PR.Luau is also commonly used alongside a tool called Rojo and an LSP like JohnnyMorganz's luau-lsp. Developers generally choose to ignore files like *.rbxlx.lock, *.rbxl.lock, and sourcemap.json. But I think this would require a separate PR (perhaps a Rojo.gitignore?).
I’m not affiliated with the Luau project, but I believe this .gitignore file could be quite helpful to others, just as it has been to me.