@rohal12/twee-ts 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rohal12/twee-ts",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "TypeScript Twee-to-HTML compiler — a complete reimplementation of Tweego",
5
5
  "type": "module",
6
6
  "license": "Unlicense",
@@ -43,7 +43,8 @@
43
43
  "twee-ts": "./dist/bin/twee-ts.js"
44
44
  },
45
45
  "files": [
46
- "dist"
46
+ "dist",
47
+ "schemas"
47
48
  ],
48
49
  "scripts": {
49
50
  "build": "tsup",
@@ -0,0 +1,97 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://unpkg.com/@rohal12/twee-ts/schemas/twee-ts.config.schema.json",
4
+ "title": "twee-ts Configuration",
5
+ "description": "Configuration file for twee-ts, a TypeScript Twee-to-HTML compiler.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "$schema": {
10
+ "type": "string",
11
+ "description": "JSON Schema reference for editor support."
12
+ },
13
+ "sources": {
14
+ "type": "array",
15
+ "items": { "type": "string" },
16
+ "description": "Files or directories to compile."
17
+ },
18
+ "output": {
19
+ "type": "string",
20
+ "description": "Output file path."
21
+ },
22
+ "outputMode": {
23
+ "type": "string",
24
+ "enum": ["html", "twee3", "twee1", "twine2-archive", "twine1-archive", "json"],
25
+ "default": "html",
26
+ "description": "Output mode."
27
+ },
28
+ "formatId": {
29
+ "type": "string",
30
+ "description": "Story format directory ID (e.g. 'sugarcube-2')."
31
+ },
32
+ "startPassage": {
33
+ "type": "string",
34
+ "description": "Name of the starting passage.",
35
+ "default": "Start"
36
+ },
37
+ "formatPaths": {
38
+ "type": "array",
39
+ "items": { "type": "string" },
40
+ "description": "Extra directories to search for story formats."
41
+ },
42
+ "formatIndices": {
43
+ "type": "array",
44
+ "items": { "type": "string" },
45
+ "description": "URLs to SFA-compatible index.json files for remote format lookup."
46
+ },
47
+ "formatUrls": {
48
+ "type": "array",
49
+ "items": { "type": "string" },
50
+ "description": "Direct URLs to format.js files."
51
+ },
52
+ "useTweegoPath": {
53
+ "type": "boolean",
54
+ "default": true,
55
+ "description": "Also search TWEEGO_PATH env for formats."
56
+ },
57
+ "modules": {
58
+ "type": "array",
59
+ "items": { "type": "string" },
60
+ "description": "Module files to inject into <head>."
61
+ },
62
+ "headFile": {
63
+ "type": "string",
64
+ "description": "Raw HTML file to append to <head>."
65
+ },
66
+ "trim": {
67
+ "type": "boolean",
68
+ "default": true,
69
+ "description": "Trim passage whitespace."
70
+ },
71
+ "twee2Compat": {
72
+ "type": "boolean",
73
+ "default": false,
74
+ "description": "Twee2 compatibility mode."
75
+ },
76
+ "testMode": {
77
+ "type": "boolean",
78
+ "default": false,
79
+ "description": "Enable debug/test mode option."
80
+ },
81
+ "noRemote": {
82
+ "type": "boolean",
83
+ "default": false,
84
+ "description": "Disable remote format fetching."
85
+ },
86
+ "tagAliases": {
87
+ "type": "object",
88
+ "additionalProperties": { "type": "string" },
89
+ "description": "Map alias tags to canonical special tags (e.g. { \"library\": \"script\" })."
90
+ },
91
+ "sourceInfo": {
92
+ "type": "boolean",
93
+ "default": false,
94
+ "description": "Emit source file and line as data- attributes on passage elements."
95
+ }
96
+ }
97
+ }