{"id":13755135,"url":"https://github.com/slheavner/scenegraph-schema","last_synced_at":"2025-05-10T00:31:36.587Z","repository":{"id":42879095,"uuid":"256579588","full_name":"slheavner/scenegraph-schema","owner":"slheavner","description":"Schema (.xsd) generator for Roku SceneGraph projects","archived":false,"fork":false,"pushed_at":"2023-01-06T03:39:56.000Z","size":1079,"stargazers_count":6,"open_issues_count":13,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T10:19:02.854Z","etag":null,"topics":["brightscript","roku","scenegraph","xml-schema"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slheavner.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-17T18:25:29.000Z","updated_at":"2025-01-09T11:51:26.000Z","dependencies_parsed_at":"2023-02-05T05:46:30.433Z","dependency_job_id":null,"html_url":"https://github.com/slheavner/scenegraph-schema","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slheavner%2Fscenegraph-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slheavner%2Fscenegraph-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slheavner%2Fscenegraph-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slheavner%2Fscenegraph-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slheavner","download_url":"https://codeload.github.com/slheavner/scenegraph-schema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253346488,"owners_count":21894264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brightscript","roku","scenegraph","xml-schema"],"created_at":"2024-08-03T10:00:46.988Z","updated_at":"2025-05-10T00:31:36.018Z","avatar_url":"https://github.com/slheavner.png","language":"TypeScript","funding_links":[],"categories":["Linters","HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# SceneGraph Schema ![Node.js CI](https://github.com/slheavner/scenegraph-schema/workflows/Node.js%20CI/badge.svg)\n\nA schema generator for SceneGraph xml projects\n\n## What you get from a schema\n\n- a project specific `.xsd` schema file\n- validation on scenegraph component xml files\n- `extends` completion, including base components\n- component tag completion, including components in `\u003cchildren\u003e` tag\n- `field` attribute completion\n\n## Usage\n\n### NPM\n\n```\nnpm install scenegraph-schema\nscenegraph-schema [options]\nOR\nsgschema [options]\n```\n\n### From Source\n\n1. clone this repository\n2. run `npm run compile`\n3. run `npm link`\n4. use the `sgschema` or `scenegraph-schema` commands\n\n## Options\n\n```\n  Usage:\n    scenegraph-schema [options]\n    sgschema [options]\n\n  Options:\n    -c, --components DIR,DIR      comma separated list of component directories, default: components\n    -s, --scripts DIR,DIR         comma separated list of script directories, default: components,source\n    -o, --output FILENAME         filename for output, defaults do {dirName}.xsd\n    -w, --watch                   watch all directories for changes, experimental\n    -r, --root                    root directory for project files, used to create package paths\n                                    (https://devtools.web.roku.com/schema/RokuSceneGraph.xsd)\n    -d, --defineScripts           turn on script.uri attribute enumeration, will limit script.uri to\n                                    brs files detected in the project, and support autocomplete\n    -h, --help                    this thing\n    -v, --version                 version duh\n```\n\n## VScode Setup\n\n1. install the RedHat vscode extension: `redhat.vscode-xml`\n1. update `settings.json` with:\n\n```\n \"xml.fileAssociations\": [\n     {\n         \"pattern\": \"**/*.xml\",\n         \"systemId\": \"./app.xsd\"\n     }\n ],\n```\n\n2. (optional) replace `systemId` with your output file name\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslheavner%2Fscenegraph-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslheavner%2Fscenegraph-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslheavner%2Fscenegraph-schema/lists"}