twee-ts
twee-ts compiler configuration file
| Type | object |
|---|---|
| File match |
twee-ts.config.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/twee-ts/latest.json |
| Source | https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/twee-ts.config.json |
Validate with Lintel
npx @lintel/lintel check
Configuration file for twee-ts, a TypeScript Twee-to-HTML compiler.
Properties
JSON Schema reference for editor support.
Files or directories to compile.
Output file path.
Output mode.
Story format directory ID (e.g. 'sugarcube-2').
Name of the starting passage.
Extra directories to search for story formats.
URLs to SFA-compatible index.json files for remote format lookup.
Direct URLs to format.js files.
Also search TWEEGO_PATH env for formats.
Module files to inject into
.Raw HTML file to append to
.Trim passage whitespace.
Twee2 compatibility mode.
Enable debug/test mode option.
Disable remote format fetching.
Map alias tags to canonical special tags (e.g. { "library": "script" }).
Emit source file and line as data- attributes on passage elements.
Word counting method. 'tweego': NFKD normalize, divide chars by 5 (matches Tweego). 'whitespace': split on whitespace after stripping comments and markup.