Create content loaders#354
Conversation
Add content loaders that can be mapped to files using globs/patterns in the config file. - luau: parses files as Luau (the default for .luau/.lua) - copy: simply copies files - skip: ignore files - string: create a Lua module that returns the content as a string. - buffer: create a Lua module that returns the content as a buffer. - bytes: create a Lua module that returns the content as a bytes array. - data loaders (json, toml, yaml): converts data to a Lua module.
|
what kind of types will the data loaders emit? If I have a string in a json file, will it be edit: it says Lua module, so i'd assume just Lua. Luau mode would be cool tho |
Right now it converts data files into Lua modules that don't have any type annotations at all. Same output as the |
Closes #352
For more information about content loaders, read the related issue #352.
Add content loaders that can be mapped to files using globs/patterns in the config file.
Todo: