mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 04:51:47 +00:00
Implement support for turning .json files into Lua modules (#308)
* Stub implementation * Flesh out feature and add tests. Other snapshots currently failing. * Blacklist .meta.json in JSON handler * Write to correct property (Source) instead of Value * Update changelog
This commit is contained in:
parent
62e51b7535
commit
4bf73c7a8a
11 changed files with 505 additions and 4 deletions
|
|
@ -6,6 +6,7 @@
|
|||
mod csv;
|
||||
mod dir;
|
||||
mod error;
|
||||
mod json;
|
||||
mod json_model;
|
||||
mod lua;
|
||||
mod meta_file;
|
||||
|
|
@ -26,6 +27,7 @@ use crate::snapshot::InstanceContext;
|
|||
use self::{
|
||||
csv::SnapshotCsv,
|
||||
dir::SnapshotDir,
|
||||
json::SnapshotJson,
|
||||
json_model::SnapshotJsonModel,
|
||||
lua::SnapshotLua,
|
||||
middleware::{SnapshotInstanceResult, SnapshotMiddleware},
|
||||
|
|
@ -71,5 +73,6 @@ middlewares! {
|
|||
SnapshotLua,
|
||||
SnapshotCsv,
|
||||
SnapshotTxt,
|
||||
SnapshotJson,
|
||||
SnapshotDir,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue