@rohal12/twee-ts 1.14.0 → 1.15.2
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/README.md +1 -1
- package/dist/bin/twee-ts.js +5570 -5232
- package/dist/bin/twee-ts.js.map +1 -1
- package/dist/compiler-Bfi1w-to.js +5074 -0
- package/dist/compiler-Bfi1w-to.js.map +1 -0
- package/dist/index.cjs +5368 -5089
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +306 -331
- package/dist/index.d.ts +306 -331
- package/dist/index.js +5332 -5027
- package/dist/index.js.map +1 -1
- package/dist/plugins/rollup.d.ts +21 -27
- package/dist/plugins/rollup.js +23 -31
- package/dist/plugins/rollup.js.map +1 -1
- package/dist/plugins/vite.d.ts +21 -56
- package/dist/plugins/vite.js +404 -67
- package/dist/plugins/vite.js.map +1 -1
- package/dist/types-BFyb40Zq.d.ts +49 -0
- package/package.json +23 -9
- package/dist/chunk-Z2CNKPVJ.js +0 -4771
- package/dist/chunk-Z2CNKPVJ.js.map +0 -1
- package/dist/types-FHZ3rZD6.d.ts +0 -48
package/dist/types-FHZ3rZD6.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* All public interfaces for twee-ts.
|
|
3
|
-
*/
|
|
4
|
-
type OutputMode = 'html' | 'twee3' | 'twee1' | 'twine2-archive' | 'twine1-archive' | 'json';
|
|
5
|
-
type WordCountMethod = 'tweego' | 'whitespace';
|
|
6
|
-
type InlineSource = {
|
|
7
|
-
filename: string;
|
|
8
|
-
content: string | Buffer;
|
|
9
|
-
};
|
|
10
|
-
type SourceInput = string | InlineSource;
|
|
11
|
-
interface CompileOptions {
|
|
12
|
-
/** Files, directories, or inline sources to compile. */
|
|
13
|
-
sources: SourceInput[];
|
|
14
|
-
/** Output mode. Default: 'html'. */
|
|
15
|
-
outputMode?: OutputMode;
|
|
16
|
-
/** Story format directory ID (e.g. 'sugarcube-2'). */
|
|
17
|
-
formatId?: string;
|
|
18
|
-
/** Name of the starting passage. Default: 'Start'. */
|
|
19
|
-
startPassage?: string;
|
|
20
|
-
/** Extra directories to search for story formats. */
|
|
21
|
-
formatPaths?: string[];
|
|
22
|
-
/** Also search TWEEGO_PATH env for formats. Default: true. */
|
|
23
|
-
useTweegoPath?: boolean;
|
|
24
|
-
/** Module files to inject into <head>. */
|
|
25
|
-
modules?: string[];
|
|
26
|
-
/** Raw HTML file to append to <head>. */
|
|
27
|
-
headFile?: string;
|
|
28
|
-
/** Trim passage whitespace. Default: true. */
|
|
29
|
-
trim?: boolean;
|
|
30
|
-
/** Twee2 compatibility mode. Default: false. */
|
|
31
|
-
twee2Compat?: boolean;
|
|
32
|
-
/** Enable debug/test mode option. Default: false. */
|
|
33
|
-
testMode?: boolean;
|
|
34
|
-
/** URLs to SFA-compatible index.json files for remote format lookup. */
|
|
35
|
-
formatIndices?: string[];
|
|
36
|
-
/** Direct URLs to format.js files. */
|
|
37
|
-
formatUrls?: string[];
|
|
38
|
-
/** Disable remote format fetching. Default: false. */
|
|
39
|
-
noRemote?: boolean;
|
|
40
|
-
/** Map alias tags to canonical special tags (e.g. { library: 'script' }). */
|
|
41
|
-
tagAliases?: Record<string, string>;
|
|
42
|
-
/** Emit source file and line as data- attributes on passage elements. Default: false. */
|
|
43
|
-
sourceInfo?: boolean;
|
|
44
|
-
/** Word counting method. Default: 'tweego'. */
|
|
45
|
-
wordCountMethod?: WordCountMethod;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type { CompileOptions as C };
|