Improve file exclusion system#6
Conversation
Wolfyxon
left a comment
There was a problem hiding this comment.
The game's assets and code must be in the source directory by default, unless the user changes that in lover.toml.
Do not use the project root as the code directory.
|
What if This way, the user can exclude certain files from the defined source directory. |
|
Yeah that's exactly how it currently works and you also added |
|
I've reverted the changes and I don't think I have anything more to add. |
|
Alright, I'll give it a proper test in a couple days. |
|
Works great, thanks. |
I was working on a game and needed a better way to exclude files from the final build, so I did the following adjustments to the program:
Changes
1 - Replaced
sourcein project configurations withexclude, mimicking.gitignorestyle, checking every file in the game directory.2 - Automatically ignore build directory in the building process.
3 - Ignores files starting with
---@lover:ignoreFile(may need some adjustments to only check for.lua, files if needed).4 - Automatically searches
conf.luain every directory.Issues
1 - The changes were subjected to some tests, but not that many.
2 - Needs more validation checks.
3 - Not sure what this did but still updated it.
I'm aware that I'm not the best programmer, so feel free to modify it however you think is best.