Roundtrip schemas in syncback (#1173)

This commit is contained in:
Micah
2025-11-26 16:11:39 -08:00
committed by GitHub
parent a99e877b7c
commit a61a1bef55
64 changed files with 189 additions and 17 deletions

View File

@@ -0,0 +1,10 @@
---
source: tests/rojo_test/syncback_util.rs
expression: "String::from_utf8_lossy(&output.stdout)"
---
Writing default.project.json
Writing src/adjacent.luau
Writing src/adjacent.meta.json
Writing src/init/init.meta.json
Writing src/model.model.json
Writing src/init

View File

@@ -0,0 +1,20 @@
---
source: tests/tests/syncback.rs
expression: default.project.json
---
{
"$schema": "rojo/project-schema",
"name": "schema_roundtrip",
"tree": {
"$className": "Folder",
"src": {
"$path": "src"
},
"trigger_reserialization": {
"$className": "BoolValue",
"$properties": {
"Value": true
}
}
}
}

View File

@@ -0,0 +1,10 @@
---
source: tests/tests/syncback.rs
expression: src/adjacent.meta.json
---
{
"$schema": "rojo/adjacent-meta",
"attributes": {
"trigger_reserialization": true
}
}

View File

@@ -0,0 +1,10 @@
---
source: tests/tests/syncback.rs
expression: src/init/init.meta.json
---
{
"$schema": "rojo/init-meta",
"attributes": {
"trigger_reserialization": true
}
}

View File

@@ -0,0 +1,8 @@
---
source: tests/tests/syncback.rs
expression: src/model.model.json
---
{
"$schema": "rojo/model.json",
"className": "BoolValue"
}

View File

@@ -0,0 +1,13 @@
{
"$schema": "rojo/project-schema",
"name": "schema_roundtrip",
"tree": {
"$className": "Folder",
"src": {
"$path": "src"
},
"trigger_reserialization": {
"$className": "BoolValue"
}
}
}

View File

@@ -0,0 +1 @@
-- This file should be ignored.

View File

@@ -0,0 +1,3 @@
{
"$schema": "rojo/adjacent-meta"
}

View File

@@ -0,0 +1,3 @@
{
"$schema": "rojo/init-meta"
}

View File

@@ -0,0 +1,7 @@
{
"$schema": "rojo/model.json",
"className": "BoolValue",
"properties": {
"Value": true
}
}

Binary file not shown.