seaofvoices / darklua

A command line tool that transforms Lua code
https://darklua.com/
MIT License
78 stars 10 forks source link

Convert data files to lua #139

Closed jeparlefrancais closed 6 months ago

jeparlefrancais commented 10 months ago

When using the bundling mode, darklua is able to load data files (json, json5, yml, toml) and convert them to Lua. There should be a way to convert data files easily without using the bundler.

It could be as simple as a convert command that takes supported data files and maps them Lua files:

darklua convert data.yml data.lua