-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(targets: add JSON output to web compiler (#126)
- Loading branch information
Showing
4 changed files
with
333 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/compiler/targets/test/goldens/Primitives/diez-target-test-stub-web/static/tree.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"Primitives": { | ||
"number": 10, | ||
"integer": 10, | ||
"float": 10, | ||
"string": "ten", | ||
"boolean": true, | ||
"integers": 5, | ||
"strings": "10", | ||
"emptyList": [], | ||
"child": { | ||
"diez": 10 | ||
}, | ||
"childs": { | ||
"diez": 10 | ||
}, | ||
"emptyChild": {}, | ||
"referred": 10 | ||
} | ||
} |
277 changes: 277 additions & 0 deletions
277
src/framework/stdlib/test/goldens/Bindings/diez-stdlib-test-stub-web/static/tree.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,277 @@ | ||
{ | ||
"Bindings": { | ||
"image": { | ||
"file": { | ||
"src": "assets/image%20with%20spaces.jpg", | ||
"type": "image" | ||
}, | ||
"file2x": { | ||
"src": "assets/image%20with%20spaces@2x.jpg", | ||
"type": "image" | ||
}, | ||
"file3x": { | ||
"src": "assets/image%20with%20spaces@3x.jpg", | ||
"type": "image" | ||
}, | ||
"file4x": { | ||
"src": "assets/image%20with%20spaces@4x.jpg", | ||
"type": "image" | ||
}, | ||
"size": { | ||
"width": 246, | ||
"height": 246 | ||
} | ||
}, | ||
"missingImage": { | ||
"file": { | ||
"src": "assets/unexistent-image-fallback-test.jpg", | ||
"type": "image" | ||
}, | ||
"file2x": { | ||
"src": "assets/unexistent-image-fallback-test@2x.jpg", | ||
"type": "image" | ||
}, | ||
"file3x": { | ||
"src": "assets/unexistent-image-fallback-test@3x.jpg", | ||
"type": "image" | ||
}, | ||
"file4x": { | ||
"src": "assets/unexistent-image-fallback-test@4x.jpg", | ||
"type": "image" | ||
}, | ||
"size": { | ||
"width": 0, | ||
"height": 0 | ||
} | ||
}, | ||
"lottie": { | ||
"file": { | ||
"src": "assets/lottie.json", | ||
"type": "raw" | ||
}, | ||
"loop": true, | ||
"autoplay": true | ||
}, | ||
"typograph": { | ||
"font": { | ||
"file": { | ||
"src": "assets/SomeFont.ttf", | ||
"type": "font" | ||
}, | ||
"name": "SomeFont", | ||
"fallbacks": [ | ||
"Verdana", | ||
"serif" | ||
], | ||
"weight": 700, | ||
"style": "normal" | ||
}, | ||
"fontSize": 50, | ||
"color": { | ||
"h": 0.16666666666666666, | ||
"s": 1, | ||
"l": 0.5, | ||
"a": 1 | ||
}, | ||
"iosTextStyle": "body", | ||
"shouldScale": false, | ||
"lineHeight": -1, | ||
"letterSpacing": 0, | ||
"alignment": "natural", | ||
"decoration": [] | ||
}, | ||
"tallTypograph": { | ||
"font": { | ||
"file": { | ||
"src": "assets/SomeFont.ttf", | ||
"type": "font" | ||
}, | ||
"name": "SomeFont", | ||
"fallbacks": [ | ||
"Verdana", | ||
"serif" | ||
], | ||
"weight": 700, | ||
"style": "normal" | ||
}, | ||
"fontSize": 50, | ||
"color": { | ||
"h": 0, | ||
"s": 0, | ||
"l": 0, | ||
"a": 1 | ||
}, | ||
"iosTextStyle": "body", | ||
"shouldScale": false, | ||
"lineHeight": 100, | ||
"letterSpacing": 10, | ||
"alignment": "natural", | ||
"decoration": [ | ||
"underline", | ||
"strikethrough" | ||
] | ||
}, | ||
"linearGradient": { | ||
"stops": [ | ||
{ | ||
"position": 0, | ||
"color": { | ||
"h": 0, | ||
"s": 1, | ||
"l": 0.5, | ||
"a": 1 | ||
} | ||
}, | ||
{ | ||
"position": 1, | ||
"color": { | ||
"h": 0.6666666666666666, | ||
"s": 1, | ||
"l": 0.5, | ||
"a": 1 | ||
} | ||
} | ||
], | ||
"start": { | ||
"x": 0, | ||
"y": 0.5 | ||
}, | ||
"end": { | ||
"x": 1, | ||
"y": 0.5 | ||
} | ||
}, | ||
"point": { | ||
"x": 0.5, | ||
"y": 0.5 | ||
}, | ||
"size": { | ||
"width": 400, | ||
"height": 300 | ||
}, | ||
"shadow": { | ||
"offset": { | ||
"x": 1, | ||
"y": 2 | ||
}, | ||
"radius": 3, | ||
"color": { | ||
"h": 0.3333333333333333, | ||
"s": 1, | ||
"l": 0.5, | ||
"a": 0.5 | ||
} | ||
}, | ||
"fill": { | ||
"color": { | ||
"h": 0, | ||
"s": 1, | ||
"l": 0.5, | ||
"a": 1 | ||
}, | ||
"linearGradient": { | ||
"stops": [ | ||
{ | ||
"position": 0, | ||
"color": { | ||
"h": 0, | ||
"s": 0, | ||
"l": 0, | ||
"a": 1 | ||
} | ||
}, | ||
{ | ||
"position": 1, | ||
"color": { | ||
"h": 0, | ||
"s": 0, | ||
"l": 1, | ||
"a": 1 | ||
} | ||
} | ||
], | ||
"start": { | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"end": { | ||
"x": 1, | ||
"y": 1 | ||
} | ||
}, | ||
"type": "Color" | ||
}, | ||
"panel": { | ||
"cornerRadius": 5, | ||
"background": { | ||
"color": { | ||
"h": 0.6666666666666666, | ||
"s": 1, | ||
"l": 0.5, | ||
"a": 1 | ||
}, | ||
"linearGradient": { | ||
"stops": [ | ||
{ | ||
"position": 0, | ||
"color": { | ||
"h": 0, | ||
"s": 0, | ||
"l": 0, | ||
"a": 1 | ||
} | ||
}, | ||
{ | ||
"position": 1, | ||
"color": { | ||
"h": 0, | ||
"s": 0, | ||
"l": 1, | ||
"a": 1 | ||
} | ||
} | ||
], | ||
"start": { | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"end": { | ||
"x": 1, | ||
"y": 1 | ||
} | ||
}, | ||
"type": "Color" | ||
}, | ||
"dropShadow": { | ||
"offset": { | ||
"x": 2, | ||
"y": 3 | ||
}, | ||
"radius": 4, | ||
"color": { | ||
"h": 0, | ||
"s": 1, | ||
"l": 0.5, | ||
"a": 1 | ||
} | ||
}, | ||
"elevation": 6 | ||
}, | ||
"color": { | ||
"h": 0, | ||
"s": 0, | ||
"l": 0, | ||
"a": 1 | ||
}, | ||
"file": { | ||
"src": "assets/SomeFile.txt", | ||
"type": "raw" | ||
}, | ||
"referencedColor": { | ||
"h": 0, | ||
"s": 0, | ||
"l": 0.06274509803921569, | ||
"a": 1 | ||
} | ||
} | ||
} |