@breadstone-tools/localizator-app 0.0.156 → 0.0.159
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/Run.d.ts +1 -5
- package/Run.d.ts.map +1 -1
- package/Run.js +202 -197
- package/Run.js.map +1 -1
- package/package.json +4 -4
package/Run.d.ts
CHANGED
|
@@ -61,11 +61,7 @@ export interface IRunResult {
|
|
|
61
61
|
sort?: Array<IResourceInfo>;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* Runs the
|
|
65
|
-
*
|
|
66
|
-
* @public
|
|
67
|
-
* @param config - The configuration for the run.
|
|
68
|
-
* @returns A promise that resolves to the run result.
|
|
64
|
+
* Runs the Localizator tool with the provided configuration.
|
|
69
65
|
*/
|
|
70
66
|
export declare function run(config: IRunConfig): Promise<IRunResult>;
|
|
71
67
|
//# sourceMappingURL=Run.d.ts.map
|
package/Run.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../src/Run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,8BAA8B,EAAE,KAAK,eAAe,EAAE,KAAK,YAAY,EAAE,KAAK,4BAA4B,EAAE,KAAK,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,KAAK,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAM3Q,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAOjF;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../src/Run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,8BAA8B,EAAE,KAAK,eAAe,EAAE,KAAK,YAAY,EAAE,KAAK,4BAA4B,EAAE,KAAK,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,KAAK,aAAa,EAAE,MAAM,oCAAoC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OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YACxB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;YACtC,OAAO,CAAC,EAAE,OAAO,CAAC;YAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;KACL,CAAC;CACL;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB,aAAa,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAC;IACpD,OAAO,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC9C,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC/B;AA+OD;;GAEG;AACH,wBAAsB,GAAG,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAGjE"}
|
package/Run.js
CHANGED
|
@@ -11,213 +11,218 @@ const SortCommand_1 = require("./Cli/Commands/SortCommand");
|
|
|
11
11
|
const DetectCommand_1 = require("./Cli/Commands/DetectCommand");
|
|
12
12
|
const IGenerateCommandArgsConfig_1 = require("./Cli/Arguments/Configurations/IGenerateCommandArgsConfig");
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* @public
|
|
17
|
-
* @param config - The configuration for the run.
|
|
18
|
-
* @returns A promise that resolves to the run result.
|
|
14
|
+
* Coordinates execution of Localizator commands based on the provided configuration.
|
|
19
15
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
class RunExecutor {
|
|
17
|
+
// #region Fields
|
|
18
|
+
_config;
|
|
19
|
+
_preparedConfig;
|
|
20
|
+
_container;
|
|
21
|
+
_commandType;
|
|
22
|
+
// #endregion
|
|
23
|
+
// #region Ctor
|
|
24
|
+
/**
|
|
25
|
+
* Initializes a new instance of the run executor.
|
|
26
|
+
*
|
|
27
|
+
* @param config The configuration used to orchestrate the run.
|
|
28
|
+
*/
|
|
29
|
+
constructor(config) {
|
|
30
|
+
this._config = config;
|
|
31
|
+
this._preparedConfig = this.prepareConfig();
|
|
32
|
+
this._container = utilities_1.Container.instance;
|
|
33
|
+
this._commandType = this.determineCommandType();
|
|
34
|
+
this.registerDependencies();
|
|
29
35
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
36
|
+
// #endregion
|
|
37
|
+
// #region Methods
|
|
38
|
+
/**
|
|
39
|
+
* Executes the configured Localizator command.
|
|
40
|
+
*/
|
|
41
|
+
async execute() {
|
|
42
|
+
const commandResult = await this.executeCommand();
|
|
43
|
+
if (commandResult.canceled) {
|
|
44
|
+
throw new Error((0, utilities_1.t) `Canceled.`);
|
|
45
|
+
}
|
|
46
|
+
switch (this._commandType) {
|
|
47
|
+
case 'analyze':
|
|
48
|
+
return {
|
|
49
|
+
analyze: commandResult.result
|
|
50
|
+
};
|
|
51
|
+
case 'generate':
|
|
52
|
+
return {
|
|
53
|
+
generate: commandResult.result
|
|
54
|
+
};
|
|
55
|
+
case 'transform':
|
|
56
|
+
return {
|
|
57
|
+
transform: commandResult.result
|
|
58
|
+
};
|
|
59
|
+
case 'sort':
|
|
60
|
+
return {
|
|
61
|
+
sort: commandResult.result
|
|
62
|
+
};
|
|
63
|
+
case 'detect':
|
|
64
|
+
return {
|
|
65
|
+
localizations: commandResult.result
|
|
66
|
+
};
|
|
67
|
+
default:
|
|
68
|
+
throw new Error((0, utilities_1.t) `Unknown command type: ${this._commandType}`);
|
|
69
|
+
}
|
|
53
70
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
* @param type - The type of command to execute.
|
|
60
|
-
* @param config - The configuration for the command.
|
|
61
|
-
* @param logger - The logger instance.
|
|
62
|
-
* @param fileSystem - The file system instance.
|
|
63
|
-
* @returns A promise that resolves to the command result.
|
|
64
|
-
*/
|
|
65
|
-
async function executeCommand(type, config, logger, fileSystem) {
|
|
66
|
-
switch (type) {
|
|
67
|
-
case 'analyze':
|
|
68
|
-
return new AnalyzeCommand_1.AnalyzeCommand({
|
|
69
|
-
baseLocale: config.actions.generate.baseLocale,
|
|
70
|
-
languages: config.actions.detect.languages,
|
|
71
|
-
preset: config.actions.detect.preset,
|
|
72
|
-
root: utilities_1.Path.combine(config.cwd, config.actions.detect.root),
|
|
73
|
-
type: config.actions.detect.type,
|
|
74
|
-
resourceRoot: utilities_1.Path.combine(config.cwd, config.actions.detect.root, ...utilities_1.ArrayExtensions.arrayify(config.actions.detect.resourceRoot)),
|
|
75
|
-
resourceKey: config.actions.detect.resourceKey,
|
|
76
|
-
rules: config.actions.analyze.rules,
|
|
77
|
-
cwd: config.cwd,
|
|
78
|
-
debug: config.verbose,
|
|
79
|
-
dryRun: config.dryRun,
|
|
80
|
-
emoji: true,
|
|
81
|
-
resourceKeyPrefix: config.actions.detect.resourceKey.prefix,
|
|
82
|
-
resourceKeySuffix: config.actions.detect.resourceKey.suffix
|
|
83
|
-
}, logger, fileSystem)
|
|
84
|
-
.execute();
|
|
85
|
-
case 'generate':
|
|
86
|
-
return new GenerateCommand_1.GenerateCommand({
|
|
87
|
-
apiKey: config.actions.generate.apiKey,
|
|
88
|
-
baseLocale: config.actions.generate.baseLocale,
|
|
89
|
-
chunkSize: config.actions.generate.chunkSize,
|
|
90
|
-
limit: config.actions.generate.limit,
|
|
91
|
-
cwd: config.cwd,
|
|
92
|
-
debug: config.verbose,
|
|
93
|
-
dryRun: config.dryRun,
|
|
94
|
-
emoji: true,
|
|
95
|
-
instructions: config.actions.generate.instructions,
|
|
96
|
-
locales: config.actions.generate.locales,
|
|
97
|
-
model: config.actions.generate.model,
|
|
98
|
-
onlyNew: config.actions.generate.onlyNew,
|
|
99
|
-
resourceRoot: utilities_1.Path.combine(config.cwd, config.actions.detect.root, ...utilities_1.ArrayExtensions.arrayify(config.actions.detect.resourceRoot)),
|
|
100
|
-
strategy: config.actions.generate.strategy,
|
|
101
|
-
temperature: config.actions.generate.temperature,
|
|
102
|
-
type: config.actions.detect.type
|
|
103
|
-
}, logger, fileSystem)
|
|
104
|
-
.execute();
|
|
105
|
-
case 'transform':
|
|
106
|
-
return new TransformCommand_1.TransformCommand({
|
|
107
|
-
cwd: config.cwd,
|
|
108
|
-
debug: config.verbose,
|
|
109
|
-
dryRun: config.dryRun,
|
|
110
|
-
emoji: true,
|
|
111
|
-
resourceRoot: utilities_1.Path.combine(config.cwd, config.actions.detect.root, ...utilities_1.ArrayExtensions.arrayify(config.actions.detect.resourceRoot)),
|
|
112
|
-
types: config.actions.transform.types,
|
|
113
|
-
type: config.actions.detect.type
|
|
114
|
-
}, logger, fileSystem)
|
|
115
|
-
.execute();
|
|
116
|
-
case 'sort':
|
|
117
|
-
return new SortCommand_1.SortCommand({
|
|
118
|
-
cwd: config.cwd,
|
|
119
|
-
debug: config.verbose,
|
|
120
|
-
dryRun: config.dryRun,
|
|
121
|
-
emoji: true,
|
|
122
|
-
order: config.actions.sort.order,
|
|
123
|
-
resourceRoot: utilities_1.Path.combine(config.cwd, config.actions.detect.root, ...utilities_1.ArrayExtensions.arrayify(config.actions.detect.resourceRoot)),
|
|
124
|
-
type: config.actions.detect.type
|
|
125
|
-
}, logger, fileSystem)
|
|
126
|
-
.execute();
|
|
127
|
-
case 'detect':
|
|
128
|
-
return new DetectCommand_1.DetectCommand({
|
|
129
|
-
cwd: config.cwd,
|
|
130
|
-
debug: config.verbose,
|
|
131
|
-
dryRun: config.dryRun,
|
|
132
|
-
emoji: true,
|
|
133
|
-
preset: config.actions.detect.preset,
|
|
134
|
-
resourceKeyPrefix: config.actions.detect.resourceKey.prefix,
|
|
135
|
-
resourceKeySuffix: config.actions.detect.resourceKey.suffix,
|
|
136
|
-
root: utilities_1.Path.combine(config.cwd, config.actions.detect.root),
|
|
137
|
-
type: config.actions.detect.type
|
|
138
|
-
}, logger, fileSystem)
|
|
139
|
-
.execute();
|
|
140
|
-
default:
|
|
141
|
-
throw new Error((0, utilities_1.t) `Unknown command type: ${type}`);
|
|
71
|
+
registerDependencies() {
|
|
72
|
+
this._container
|
|
73
|
+
.provideFactory('config', () => this._preparedConfig)
|
|
74
|
+
.provideFactory('logger', () => console)
|
|
75
|
+
.provideFactory('fileSystem', () => new utilities_1.FileSystem());
|
|
142
76
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
77
|
+
determineCommandType() {
|
|
78
|
+
if (this._config.actions.analyze) {
|
|
79
|
+
return 'analyze';
|
|
80
|
+
}
|
|
81
|
+
if (this._config.actions.generate) {
|
|
82
|
+
return 'generate';
|
|
83
|
+
}
|
|
84
|
+
if (this._config.actions.transform) {
|
|
85
|
+
return 'transform';
|
|
86
|
+
}
|
|
87
|
+
if (this._config.actions.sort) {
|
|
88
|
+
return 'sort';
|
|
89
|
+
}
|
|
90
|
+
return 'detect';
|
|
154
91
|
}
|
|
155
|
-
|
|
156
|
-
return
|
|
92
|
+
prepareConfig() {
|
|
93
|
+
return {
|
|
94
|
+
cwd: this._config.cwd,
|
|
95
|
+
dryRun: this._config.dryRun ?? false,
|
|
96
|
+
verbose: this._config.verbose ?? false,
|
|
97
|
+
cache: {
|
|
98
|
+
enabled: this._config.cache?.enabled ?? false,
|
|
99
|
+
dirPath: this._config.cache?.dirPath ?? ''
|
|
100
|
+
},
|
|
101
|
+
callback: {
|
|
102
|
+
onDetected: this._config.callback?.onDetected ?? (() => { }),
|
|
103
|
+
onFailed: this._config.callback?.onFailed ?? (() => { })
|
|
104
|
+
},
|
|
105
|
+
actions: {
|
|
106
|
+
detect: {
|
|
107
|
+
languages: this._config.actions.detect?.languages ?? [],
|
|
108
|
+
type: this._config.actions.detect?.type ?? localizator_core_1.ResourceMode.Json,
|
|
109
|
+
root: this._config.actions.detect?.root ?? '',
|
|
110
|
+
resourceRoot: this._config.actions.detect?.resourceRoot ?? '',
|
|
111
|
+
preset: this._config.actions.detect?.preset ?? localizator_core_1.Presets.Lit,
|
|
112
|
+
resourceKey: {
|
|
113
|
+
prefix: this._config.actions.detect?.resourceKey?.prefix ?? '',
|
|
114
|
+
suffix: this._config.actions.detect?.resourceKey?.suffix ?? ''
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
sort: {
|
|
118
|
+
order: this._config.actions.sort?.order ?? 'asc'
|
|
119
|
+
},
|
|
120
|
+
analyze: {
|
|
121
|
+
rules: this._config.actions.analyze?.rules ?? []
|
|
122
|
+
},
|
|
123
|
+
transform: {
|
|
124
|
+
types: this._config.actions.transform?.types ?? []
|
|
125
|
+
},
|
|
126
|
+
generate: {
|
|
127
|
+
apiKey: this._config.actions.generate?.apiKey ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.apiKey,
|
|
128
|
+
model: this._config.actions.generate?.model ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.model,
|
|
129
|
+
temperature: this._config.actions.generate?.temperature ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.temperature,
|
|
130
|
+
locales: this._config.actions.generate?.locales ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.locales,
|
|
131
|
+
baseLocale: this._config.actions.generate?.baseLocale ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.baseLocale,
|
|
132
|
+
chunkSize: this._config.actions.generate?.chunkSize ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.chunkSize,
|
|
133
|
+
limit: this._config.actions.generate?.limit ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.limit,
|
|
134
|
+
onlyNew: this._config.actions.generate?.onlyNew ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.onlyNew,
|
|
135
|
+
strategy: this._config.actions.generate?.strategy ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.strategy,
|
|
136
|
+
instructions: this._config.actions.generate?.instructions ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.instructions
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
157
140
|
}
|
|
158
|
-
|
|
159
|
-
|
|
141
|
+
async executeCommand() {
|
|
142
|
+
const logger = this._container.get('logger');
|
|
143
|
+
const fileSystem = this._container.get('fileSystem');
|
|
144
|
+
switch (this._commandType) {
|
|
145
|
+
case 'analyze':
|
|
146
|
+
return new AnalyzeCommand_1.AnalyzeCommand({
|
|
147
|
+
baseLocale: this._preparedConfig.actions.generate.baseLocale,
|
|
148
|
+
languages: this._preparedConfig.actions.detect.languages,
|
|
149
|
+
preset: this._preparedConfig.actions.detect.preset,
|
|
150
|
+
root: utilities_1.Path.combine(this._preparedConfig.cwd, this._preparedConfig.actions.detect.root),
|
|
151
|
+
type: this._preparedConfig.actions.detect.type,
|
|
152
|
+
resourceRoot: this.resolveResourceRoot(),
|
|
153
|
+
resourceKey: this._preparedConfig.actions.detect.resourceKey,
|
|
154
|
+
rules: this._preparedConfig.actions.analyze.rules,
|
|
155
|
+
cwd: this._preparedConfig.cwd,
|
|
156
|
+
debug: this._preparedConfig.verbose,
|
|
157
|
+
dryRun: this._preparedConfig.dryRun,
|
|
158
|
+
emoji: true,
|
|
159
|
+
resourceKeyPrefix: this._preparedConfig.actions.detect.resourceKey.prefix,
|
|
160
|
+
resourceKeySuffix: this._preparedConfig.actions.detect.resourceKey.suffix
|
|
161
|
+
}, logger, fileSystem).execute();
|
|
162
|
+
case 'generate':
|
|
163
|
+
return new GenerateCommand_1.GenerateCommand({
|
|
164
|
+
apiKey: this._preparedConfig.actions.generate.apiKey,
|
|
165
|
+
baseLocale: this._preparedConfig.actions.generate.baseLocale,
|
|
166
|
+
chunkSize: this._preparedConfig.actions.generate.chunkSize,
|
|
167
|
+
limit: this._preparedConfig.actions.generate.limit,
|
|
168
|
+
cwd: this._preparedConfig.cwd,
|
|
169
|
+
debug: this._preparedConfig.verbose,
|
|
170
|
+
dryRun: this._preparedConfig.dryRun,
|
|
171
|
+
emoji: true,
|
|
172
|
+
instructions: this._preparedConfig.actions.generate.instructions,
|
|
173
|
+
locales: this._preparedConfig.actions.generate.locales,
|
|
174
|
+
model: this._preparedConfig.actions.generate.model,
|
|
175
|
+
onlyNew: this._preparedConfig.actions.generate.onlyNew,
|
|
176
|
+
resourceRoot: this.resolveResourceRoot(),
|
|
177
|
+
strategy: this._preparedConfig.actions.generate.strategy,
|
|
178
|
+
temperature: this._preparedConfig.actions.generate.temperature,
|
|
179
|
+
type: this._preparedConfig.actions.detect.type
|
|
180
|
+
}, logger, fileSystem).execute();
|
|
181
|
+
case 'transform':
|
|
182
|
+
return new TransformCommand_1.TransformCommand({
|
|
183
|
+
cwd: this._preparedConfig.cwd,
|
|
184
|
+
debug: this._preparedConfig.verbose,
|
|
185
|
+
dryRun: this._preparedConfig.dryRun,
|
|
186
|
+
emoji: true,
|
|
187
|
+
resourceRoot: this.resolveResourceRoot(),
|
|
188
|
+
types: this._preparedConfig.actions.transform.types,
|
|
189
|
+
type: this._preparedConfig.actions.detect.type
|
|
190
|
+
}, logger, fileSystem).execute();
|
|
191
|
+
case 'sort':
|
|
192
|
+
return new SortCommand_1.SortCommand({
|
|
193
|
+
cwd: this._preparedConfig.cwd,
|
|
194
|
+
debug: this._preparedConfig.verbose,
|
|
195
|
+
dryRun: this._preparedConfig.dryRun,
|
|
196
|
+
emoji: true,
|
|
197
|
+
order: this._preparedConfig.actions.sort.order,
|
|
198
|
+
resourceRoot: this.resolveResourceRoot(),
|
|
199
|
+
type: this._preparedConfig.actions.detect.type
|
|
200
|
+
}, logger, fileSystem).execute();
|
|
201
|
+
case 'detect':
|
|
202
|
+
return new DetectCommand_1.DetectCommand({
|
|
203
|
+
cwd: this._preparedConfig.cwd,
|
|
204
|
+
debug: this._preparedConfig.verbose,
|
|
205
|
+
dryRun: this._preparedConfig.dryRun,
|
|
206
|
+
emoji: true,
|
|
207
|
+
preset: this._preparedConfig.actions.detect.preset,
|
|
208
|
+
resourceKeyPrefix: this._preparedConfig.actions.detect.resourceKey.prefix,
|
|
209
|
+
resourceKeySuffix: this._preparedConfig.actions.detect.resourceKey.suffix,
|
|
210
|
+
root: utilities_1.Path.combine(this._preparedConfig.cwd, this._preparedConfig.actions.detect.root),
|
|
211
|
+
type: this._preparedConfig.actions.detect.type
|
|
212
|
+
}, logger, fileSystem).execute();
|
|
213
|
+
default:
|
|
214
|
+
throw new Error((0, utilities_1.t) `Unknown command type: ${this._commandType}`);
|
|
215
|
+
}
|
|
160
216
|
}
|
|
161
|
-
|
|
162
|
-
return
|
|
217
|
+
resolveResourceRoot() {
|
|
218
|
+
return utilities_1.Path.combine(this._preparedConfig.cwd, this._preparedConfig.actions.detect.root, ...utilities_1.ArrayExtensions.arrayify(this._preparedConfig.actions.detect.resourceRoot));
|
|
163
219
|
}
|
|
164
|
-
return 'detect';
|
|
165
220
|
}
|
|
166
221
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* @private
|
|
170
|
-
* @param baseConfig - The base configuration.
|
|
171
|
-
* @returns The prepared configuration.
|
|
222
|
+
* Runs the Localizator tool with the provided configuration.
|
|
172
223
|
*/
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
return
|
|
176
|
-
cwd: baseConfig.cwd,
|
|
177
|
-
dryRun: baseConfig.dryRun ?? false,
|
|
178
|
-
verbose: baseConfig.verbose ?? false,
|
|
179
|
-
cache: {
|
|
180
|
-
enabled: baseConfig.cache?.enabled ?? false,
|
|
181
|
-
dirPath: baseConfig.cache?.dirPath ?? ''
|
|
182
|
-
},
|
|
183
|
-
callback: {
|
|
184
|
-
onDetected: baseConfig.callback?.onDetected ?? (() => { }),
|
|
185
|
-
onFailed: baseConfig.callback?.onFailed ?? (() => { })
|
|
186
|
-
},
|
|
187
|
-
actions: {
|
|
188
|
-
detect: {
|
|
189
|
-
languages: baseConfig.actions.detect?.languages ?? [],
|
|
190
|
-
type: baseConfig.actions.detect?.type ?? localizator_core_1.ResourceMode.Json,
|
|
191
|
-
root: baseConfig.actions.detect?.root ?? '',
|
|
192
|
-
resourceRoot: baseConfig.actions.detect?.resourceRoot ?? '',
|
|
193
|
-
preset: baseConfig.actions.detect?.preset ?? localizator_core_1.Presets.Lit,
|
|
194
|
-
resourceKey: {
|
|
195
|
-
prefix: baseConfig.actions.detect?.resourceKey?.prefix ?? '',
|
|
196
|
-
suffix: baseConfig.actions.detect?.resourceKey?.suffix ?? ''
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
sort: {
|
|
200
|
-
order: baseConfig.actions.sort?.order ?? 'asc'
|
|
201
|
-
},
|
|
202
|
-
analyze: {
|
|
203
|
-
rules: baseConfig.actions.analyze?.rules ?? []
|
|
204
|
-
},
|
|
205
|
-
transform: {
|
|
206
|
-
types: baseConfig.actions.transform?.types ?? []
|
|
207
|
-
},
|
|
208
|
-
generate: {
|
|
209
|
-
apiKey: baseConfig.actions.generate?.apiKey ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.apiKey,
|
|
210
|
-
model: baseConfig.actions.generate?.model ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.model,
|
|
211
|
-
temperature: baseConfig.actions.generate?.temperature ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.temperature,
|
|
212
|
-
locales: baseConfig.actions.generate?.locales ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.locales,
|
|
213
|
-
baseLocale: baseConfig.actions.generate?.baseLocale ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.baseLocale,
|
|
214
|
-
chunkSize: baseConfig.actions.generate?.chunkSize ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.chunkSize,
|
|
215
|
-
limit: baseConfig.actions.generate?.limit ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.limit,
|
|
216
|
-
onlyNew: baseConfig.actions.generate?.onlyNew ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.onlyNew,
|
|
217
|
-
strategy: baseConfig.actions.generate?.strategy ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.strategy,
|
|
218
|
-
instructions: baseConfig.actions.generate?.instructions ?? IGenerateCommandArgsConfig_1.DEFAULT_GENERATE_COMMAND_ARGS_CONFIG.instructions
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
};
|
|
224
|
+
async function run(config) {
|
|
225
|
+
const executor = new RunExecutor(config);
|
|
226
|
+
return executor.execute();
|
|
222
227
|
}
|
|
223
228
|
//# sourceMappingURL=Run.js.map
|
package/Run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Run.js","sourceRoot":"","sources":["../src/Run.ts"],"names":[],"mappings":";AAAA,kBAAkB;;
|
|
1
|
+
{"version":3,"file":"Run.js","sourceRoot":"","sources":["../src/Run.ts"],"names":[],"mappings":";AAAA,kBAAkB;;AA6TlB,kBAGC;AA9TD,yEAA2Q;AAC3Q,oEAAkK;AAClK,kEAA+D;AAC/D,oEAAiE;AACjE,sEAAmE;AACnE,4DAAyD;AAGzD,gEAA6D;AAC7D,0GAAiH;AAoEjH;;GAEG;AACH,MAAM,WAAW;IAEb,iBAAiB;IAEA,OAAO,CAAa;IACpB,eAAe,CAA2B;IAC1C,UAAU,CAAY;IACtB,YAAY,CAAc;IAE3C,aAAa;IAEb,eAAe;IAEf;;;;OAIG;IACH,YAAmB,MAAkB;QACjC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,qBAAS,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAChD,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAChC,CAAC;IAED,aAAa;IAEb,kBAAkB;IAElB;;OAEG;IACI,KAAK,CAAC,OAAO;QAChB,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAElD,IAAI,aAAa,CAAC,QAAQ,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,IAAA,aAAC,EAAA,WAAW,CAAC,CAAC;QAClC,CAAC;QAED,QAAQ,IAAI,CAAC,YAAY,EAAE,CAAC;YACxB,KAAK,SAAS;gBACV,OAAO;oBACH,OAAO,EAAE,aAAa,CAAC,MAAoC;iBAC9D,CAAC;YACN,KAAK,UAAU;gBACX,OAAO;oBACH,QAAQ,EAAE,aAAa,CAAC,MAAyC;iBACpE,CAAC;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adstone-tools/localizator-app",
|
|
3
3
|
"description": "Localizator app/cli",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.159",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
|
|
7
7
|
"repository": {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"localizator": "./bin/localizator.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@breadstone-infrastructure/utilities": "^0.0.
|
|
20
|
-
"@breadstone-tools/localizator-ai": "^0.0.
|
|
21
|
-
"@breadstone-tools/localizator-core": "^0.0.
|
|
19
|
+
"@breadstone-infrastructure/utilities": "^0.0.159",
|
|
20
|
+
"@breadstone-tools/localizator-ai": "^0.0.159",
|
|
21
|
+
"@breadstone-tools/localizator-core": "^0.0.159",
|
|
22
22
|
"cheerio": "^1.1.2",
|
|
23
23
|
"cosmiconfig": "^9.0.0",
|
|
24
24
|
"type-fest": "^5.1.0"
|