From a03475a2b822729bd0a0b144ca3a5002a5d5506c Mon Sep 17 00:00:00 2001 From: Richard Ward Date: Wed, 31 Dec 2025 13:01:29 +0000 Subject: [PATCH] config: json,script,packages (1 files) --- .../json_script_example/seed/metadata.json | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 packages/json_script_example/seed/metadata.json diff --git a/packages/json_script_example/seed/metadata.json b/packages/json_script_example/seed/metadata.json new file mode 100644 index 000000000..6fb081fe8 --- /dev/null +++ b/packages/json_script_example/seed/metadata.json @@ -0,0 +1,59 @@ +{ + "packageId": "json_script_example", + "name": "JSON Script Example", + "version": "1.0.0", + "description": "Comprehensive example demonstrating the full JSON script specification", + "author": "MetaBuilder", + "category": "examples", + "icon": "static_content/icon.svg", + "minLevel": 0, + "primary": false, + "dependencies": [], + "devDependencies": ["lua_test"], + "exports": { + "scripts": [ + "all_expressions", + "all_statements", + "all_operators", + "control_flow", + "data_structures" + ], + "components": [] + }, + "tests": { + "scripts": [ + "tests/expressions.test.lua", + "tests/statements.test.lua" + ], + "cases": [ + "tests/expressions.cases.json", + "tests/statements.cases.json" + ] + }, + "permissions": { + "example.view": { + "minLevel": 0, + "description": "View examples" + } + }, + "seed": { + "styles": "seed/styles.json" + }, + "storybook": { + "stories": [ + { + "name": "Expression Examples", + "render": "all_expressions" + }, + { + "name": "Statement Examples", + "render": "all_statements" + } + ] + }, + "runtime": { + "script_json": "seed/script.json", + "executor": "../shared/seed/scripts/runtime/script_executor.lua", + "description": "All functions defined in script.json, executed via runtime" + } +}