@playableintelligence/template-cli
v0.1.1
Published
Build-time CLI that statically extracts hotswappable asset declarations from game templates and emits a JSON Schema.
Readme
@playableintelligence/template-cli
Build-time gcsdk tool. Statically extracts hotswappable() declarations from a template's source (without executing it) and emits a versioned JSON Schema (draft 2020-12) describing the template's inputs.
npm i -D @playableintelligence/template-cli
npx gcsdk build "src/**/*.ts" -o schema.json --template my-templateExits non-zero with a located, coded diagnostic on non-static usage or collisions. Also exposes extract / toJsonSchema programmatically.
Pairs with @playableintelligence/template-sdk. Proprietary — see LICENSE.
