@fgv/ts-res-cli 5.0.0-21 → 5.0.0-23
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 +9 -9
- package/src/cli.ts +0 -695
- package/src/compiler.ts +0 -545
- package/src/defaultConfiguration.ts +0 -78
- package/src/index.ts +0 -25
- package/src/options.ts +0 -101
package/src/options.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2025 Erik Fortune
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
* in the Software without restriction, including without limitation the rights
|
|
7
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
* furnished to do so, subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
-
* SOFTWARE.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Output format options for resource compilation
|
|
25
|
-
*/
|
|
26
|
-
export type OutputFormat = 'compiled' | 'source' | 'js' | 'ts' | 'binary' | 'bundle';
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Options for resource compilation
|
|
30
|
-
*/
|
|
31
|
-
export interface ICompileOptions {
|
|
32
|
-
/**
|
|
33
|
-
* Input file or directory path
|
|
34
|
-
*/
|
|
35
|
-
input: string;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Output file path
|
|
39
|
-
*/
|
|
40
|
-
output: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* System configuration file path (JSON file in ISystemConfiguration format)
|
|
44
|
-
*/
|
|
45
|
-
config?: string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Context filter token (pipe-separated qualifier=value pairs, e.g., 'language=en-US|territory=US')
|
|
49
|
-
*/
|
|
50
|
-
contextFilter?: string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Qualifier default values token (pipe-separated qualifier=value pairs, e.g., 'language=en-US,en-CA|territory=US')
|
|
54
|
-
*/
|
|
55
|
-
qualifierDefaults?: string;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Output format
|
|
59
|
-
*/
|
|
60
|
-
format: OutputFormat;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Whether to include debug information
|
|
64
|
-
*/
|
|
65
|
-
debug: boolean;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Whether to run in verbose mode
|
|
69
|
-
*/
|
|
70
|
-
verbose: boolean;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Whether to run in quiet mode
|
|
74
|
-
*/
|
|
75
|
-
quiet: boolean;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Whether to validate resources during compilation
|
|
79
|
-
*/
|
|
80
|
-
validate: boolean;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Whether to include resource metadata in output
|
|
84
|
-
*/
|
|
85
|
-
includeMetadata: boolean;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Resource type filter (e.g., 'json,other')
|
|
89
|
-
*/
|
|
90
|
-
resourceTypes?: string;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Maximum distance for language matching
|
|
94
|
-
*/
|
|
95
|
-
maxDistance?: number;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Whether to reduce qualifiers when filtering by context
|
|
99
|
-
*/
|
|
100
|
-
reduceQualifiers?: boolean;
|
|
101
|
-
}
|