@playableintelligence/template-vite
v0.1.1
Published
unplugin-based bundler plugin (Vite-first) that emits the template JSON Schema at build time, fails fast on diagnostics, exposes a virtual schema module, and validates inputs in dev.
Readme
@playableintelligence/template-vite
unplugin-based bundler plugin (Vite-first) for asset-swappable game templates. On every build it extracts hotswappable() slots and emits the JSON Schema, fails the build on bad authoring, and serves the schema as a virtual module.
npm i -D @playableintelligence/template-vite// vite.config.ts
import templateSchema from "@playableintelligence/template-vite";
export default {
plugins: [templateSchema({ src: "src/**/*.ts", out: "schema.json", template: "my-template" })],
};import schema from "virtual:workflow/schema";One core, many bundlers — also exports rollup, webpack, esbuild, and rspack factories.
Pairs with @playableintelligence/template-sdk + -cli. Proprietary — see LICENSE.
