@breadstone-infrastructure/nx-tasks 0.0.81 → 0.0.83
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/CHANGELOG.md +22 -0
- package/executors/alias-replace/executor.d.ts +1 -1
- package/executors/alias-replace/executor.d.ts.map +1 -1
- package/executors/alias-replace/executor.js +1 -1
- package/executors/alias-replace/executor.js.map +1 -1
- package/executors/docs/executor.d.ts +1 -1
- package/executors/docs/executor.d.ts.map +1 -1
- package/executors/docs/executor.js +1 -1
- package/executors/docs/executor.js.map +1 -1
- package/executors/lit-docs/executor.d.ts +1 -1
- package/executors/lit-docs/executor.d.ts.map +1 -1
- package/executors/lit-docs/executor.js +1 -1
- package/executors/lit-docs/executor.js.map +1 -1
- package/executors/localizator/executor.d.ts +2 -1
- package/executors/localizator/executor.d.ts.map +1 -1
- package/executors/localizator/executor.js +35 -33
- package/executors/localizator/executor.js.map +1 -1
- package/executors/localizator/executor.task.d.ts +2 -1
- package/executors/localizator/executor.task.d.ts.map +1 -1
- package/executors/localizator/executor.task.js +102 -76
- package/executors/localizator/executor.task.js.map +1 -1
- package/executors/markdown-to-typescript-transform/executor.js +1 -1
- package/executors/markdown-to-typescript-transform/executor.js.map +1 -1
- package/executors/ng-proxy-transform/executor.d.ts +1 -1
- package/executors/ng-proxy-transform/executor.d.ts.map +1 -1
- package/executors/ng-proxy-transform/executor.js +1 -1
- package/executors/ng-proxy-transform/executor.js.map +1 -1
- package/executors/react-proxy-transform/executor.d.ts +1 -1
- package/executors/react-proxy-transform/executor.d.ts.map +1 -1
- package/executors/react-proxy-transform/executor.js +1 -1
- package/executors/react-proxy-transform/executor.js.map +1 -1
- package/executors/scss-style-bundle/executor.js +1 -1
- package/executors/scss-style-bundle/executor.js.map +1 -1
- package/executors/scss-style-transform/executor.js +1 -1
- package/executors/scss-style-transform/executor.js.map +1 -1
- package/executors/svelte-proxy-transform/executor.d.ts +1 -1
- package/executors/svelte-proxy-transform/executor.d.ts.map +1 -1
- package/executors/svelte-proxy-transform/executor.js +1 -1
- package/executors/svelte-proxy-transform/executor.js.map +1 -1
- package/executors/vue-proxy-transform/executor.d.ts +1 -1
- package/executors/vue-proxy-transform/executor.d.ts.map +1 -1
- package/executors/vue-proxy-transform/executor.js +1 -1
- package/executors/vue-proxy-transform/executor.js.map +1 -1
- package/package.json +11 -11
- package/utils/loadAndExpandDotEnvFile.d.ts +30 -0
- package/utils/loadAndExpandDotEnvFile.d.ts.map +1 -0
- package/utils/loadAndExpandDotEnvFile.js +78 -0
- package/utils/loadAndExpandDotEnvFile.js.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 0.0.81 (2025-07-30)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- update release version to 0.0.80 in package.json ([96a94fca93](https://github.com/RueDeRennes/mosaik/commit/96a94fca93))
|
|
6
|
+
|
|
7
|
+
## 0.0.80 (2025-07-30)
|
|
8
|
+
|
|
9
|
+
This was a version bump only for nx-tasks to align it with other projects, there were no code changes.
|
|
10
|
+
|
|
11
|
+
## 0.0.79 (2025-07-30)
|
|
12
|
+
|
|
13
|
+
### 🚀 Features
|
|
14
|
+
|
|
15
|
+
- Implement SandboxProjectFactory and SandboxProjectTemplateEngine ([3300298aec](https://github.com/RueDeRennes/mosaik/commit/3300298aec))
|
|
16
|
+
- add YAML code generation and update chat mode configuration ([9fe1bb330c](https://github.com/RueDeRennes/mosaik/commit/9fe1bb330c))
|
|
17
|
+
- Enhance Landing and App View Components ([459cb772ed](https://github.com/RueDeRennes/mosaik/commit/459cb772ed))
|
|
18
|
+
|
|
19
|
+
### 🩹 Fixes
|
|
20
|
+
|
|
21
|
+
- correct spelling of 'initialize' in various files and update related interfaces ([3c70f28918](https://github.com/RueDeRennes/mosaik/commit/3c70f28918))
|
|
22
|
+
|
|
1
23
|
## 0.0.78 (2025-07-20)
|
|
2
24
|
|
|
3
25
|
### 🚀 Features
|
|
@@ -3,7 +3,7 @@ import type { AliasReplaceTask } from './executor.task';
|
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export type AliasReplaceExecutorOptions = Omit<AliasReplaceTask.IAliasReplaceTaskOptions, 'cwd' | 'tsConfigJson' | 'packageJson'
|
|
6
|
+
export type AliasReplaceExecutorOptions = Omit<AliasReplaceTask.IAliasReplaceTaskOptions, 'cwd' | 'tsConfigJson' | 'packageJson'>;
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/alias-replace/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIxD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/alias-replace/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIxD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,CAAC,CAAC;AAElI;;GAEG;AACH,wBAA8B,WAAW,CAAC,OAAO,EAAE,2BAA2B,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAoBvI"}
|
|
@@ -48,7 +48,7 @@ async function runExecutor(options, context) {
|
|
|
48
48
|
cwd: (0, getProjectRoot_1.getProjectRoot)(context),
|
|
49
49
|
tsConfigJson: (0, getProjectTsConfigJson_1.getProjectTsConfigJson)(context),
|
|
50
50
|
packageJson: (0, getProjectPackageJson_1.getProjectPackageJson)(context),
|
|
51
|
-
verbose: context.isVerbose,
|
|
51
|
+
verbose: context.isVerbose || options.verbose,
|
|
52
52
|
glob: options.glob,
|
|
53
53
|
replacer: options.replacer,
|
|
54
54
|
debug: options.debug,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/alias-replace/executor.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBlB,8BAoBC;AAnCD,6EAA0E;AAC1E,+DAA4D;AAC5D,+EAA4E;AAU5E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAAoC,EAAE,OAAwB;IACpG,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,gBAAgB,CAAC;QAEhE,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,YAAY,EAAE,IAAA,+CAAsB,EAAC,OAAO,CAAC;YAC7C,WAAW,EAAE,IAAA,6CAAqB,EAAC,OAAO,CAAC;YAC3C,OAAO,EAAE,OAAO,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/alias-replace/executor.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBlB,8BAoBC;AAnCD,6EAA0E;AAC1E,+DAA4D;AAC5D,+EAA4E;AAU5E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAAoC,EAAE,OAAwB;IACpG,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,gBAAgB,CAAC;QAEhE,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,YAAY,EAAE,IAAA,+CAAsB,EAAC,OAAO,CAAC;YAC7C,WAAW,EAAE,IAAA,6CAAqB,EAAC,OAAO,CAAC;YAC3C,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO;YAC7C,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,OAAO,EAAE,OAAO,CAAC,OAAO;SAC3B,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { DocsTask } from './executor.task';
|
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export type DocsExecutorkOptions = Omit<DocsTask.IDocsTaskOptions, 'cwd' | 'tsConfigJson' | 'packageJson'
|
|
6
|
+
export type DocsExecutorkOptions = Omit<DocsTask.IDocsTaskOptions, 'cwd' | 'tsConfigJson' | 'packageJson'>;
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/docs/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIhD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/docs/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIhD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,CAAC,CAAC;AAE3G;;GAEG;AACH,wBAA8B,WAAW,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAmBhI"}
|
|
@@ -52,7 +52,7 @@ async function runExecutor(options, context) {
|
|
|
52
52
|
templatePath: options.templatePath,
|
|
53
53
|
extractor: options.extractor,
|
|
54
54
|
documenter: options.documenter,
|
|
55
|
-
verbose: context.isVerbose
|
|
55
|
+
verbose: context.isVerbose || options.verbose
|
|
56
56
|
});
|
|
57
57
|
return { success: true };
|
|
58
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/docs/executor.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBlB,8BAmBC;AAlCD,6EAA0E;AAC1E,+DAA4D;AAC5D,+EAA4E;AAU5E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAA6B,EAAE,OAAwB;IAC7F,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,QAAQ,CAAC;QAExD,MAAM,IAAI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CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { LitDocsTask } from './executor.task';
|
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export type LitDocsExecutorOptions = Omit<LitDocsTask.ILitDocsTaskOptions, 'cwd' | 'tsConfigJson' | 'packageJson'
|
|
6
|
+
export type LitDocsExecutorOptions = Omit<LitDocsTask.ILitDocsTaskOptions, 'cwd' | 'tsConfigJson' | 'packageJson'>;
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/lit-docs/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAInD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/lit-docs/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAInD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,CAAC,CAAC;AAEnH;;GAEG;AACH,wBAA8B,WAAW,CAAC,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAiBlI"}
|
|
@@ -46,7 +46,7 @@ async function runExecutor(options, context) {
|
|
|
46
46
|
cwd: (0, getProjectRoot_1.getProjectRoot)(context),
|
|
47
47
|
files: options.files,
|
|
48
48
|
ignore: options.ignore,
|
|
49
|
-
verbose: context.isVerbose,
|
|
49
|
+
verbose: context.isVerbose || options.verbose,
|
|
50
50
|
validateOrder: options.validateOrder,
|
|
51
51
|
validateTags: options.validateTags
|
|
52
52
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/lit-docs/executor.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBlB,8BAiBC;AA9BD,+DAA4D;AAU5D;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAA+B,EAAE,OAAwB;IAC/F,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,WAAW,CAAC;QAE3D,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,OAAO,EAAE,OAAO,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/lit-docs/executor.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBlB,8BAiBC;AA9BD,+DAA4D;AAU5D;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAA+B,EAAE,OAAwB;IAC/F,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,WAAW,CAAC;QAE3D,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO;YAC7C,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,YAAY,EAAE,OAAO,CAAC,YAAY;SACrC,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ExecutorContext } from '@nx/devkit';
|
|
2
2
|
import type { LocalizatorTask } from './executor.task';
|
|
3
|
-
type
|
|
3
|
+
import type { IEnvOptions } from '../../utils/loadAndExpandDotEnvFile';
|
|
4
|
+
type ExecutorOptions = Omit<LocalizatorTask.ILocalizatorTaskOptions, 'cwd' | 'packageJson' | 'tsConfigJson'> & IEnvOptions;
|
|
4
5
|
/**
|
|
5
6
|
* @public
|
|
6
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/localizator/executor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/localizator/executor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAIvE,KAAK,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,uBAAuB,EAAE,KAAK,GAAG,aAAa,GAAG,cAAc,CAAC,GAAG,WAAW,CAAC;AAE3H;;GAEG;AACH,wBAA8B,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAuD3H"}
|
|
@@ -47,43 +47,45 @@ async function runExecutor(options, context) {
|
|
|
47
47
|
cwd: (0, getProjectRoot_1.getProjectRoot)(context),
|
|
48
48
|
output: options.output,
|
|
49
49
|
dryRun: options.dryRun,
|
|
50
|
-
|
|
51
|
-
resourceKey: options.detect?.resourceKey,
|
|
52
|
-
preset: options.detect?.preset,
|
|
53
|
-
root: options.detect?.root,
|
|
54
|
-
resourceRoot: options.detect?.resourceRoot,
|
|
55
|
-
type: options.detect?.type,
|
|
56
|
-
languages: options.detect?.languages
|
|
57
|
-
},
|
|
58
|
-
analyze: {
|
|
59
|
-
enabled: options.analyze?.enabled,
|
|
60
|
-
rules: options.analyze?.rules
|
|
61
|
-
},
|
|
62
|
-
transform: {
|
|
63
|
-
enabled: options.transform?.enabled,
|
|
64
|
-
types: options.transform?.types ?? ['json']
|
|
65
|
-
},
|
|
50
|
+
verbose: context.isVerbose || options.verbose,
|
|
66
51
|
cache: {
|
|
67
52
|
enabled: options.cache?.enabled,
|
|
68
53
|
dirPath: options.cache?.dirPath
|
|
69
54
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
55
|
+
callback: options.callback,
|
|
56
|
+
envFile: options.envFile,
|
|
57
|
+
env: options.env,
|
|
58
|
+
actions: {
|
|
59
|
+
detect: {
|
|
60
|
+
resourceKey: options.actions.detect?.resourceKey,
|
|
61
|
+
preset: options.actions.detect?.preset,
|
|
62
|
+
root: options.actions.detect?.root,
|
|
63
|
+
resourceRoot: options.actions.detect?.resourceRoot,
|
|
64
|
+
type: options.actions.detect?.type,
|
|
65
|
+
languages: options.actions.detect?.languages
|
|
66
|
+
},
|
|
67
|
+
analyze: {
|
|
68
|
+
rules: options.actions.analyze?.rules
|
|
69
|
+
},
|
|
70
|
+
transform: {
|
|
71
|
+
types: options.actions.transform?.types ?? ['json']
|
|
72
|
+
},
|
|
73
|
+
sort: {
|
|
74
|
+
order: options.actions.sort?.order
|
|
75
|
+
},
|
|
76
|
+
generate: {
|
|
77
|
+
apiKey: options.actions.generate?.apiKey,
|
|
78
|
+
model: options.actions.generate?.model,
|
|
79
|
+
temperature: options.actions.generate?.temperature,
|
|
80
|
+
locales: options.actions.generate?.locales,
|
|
81
|
+
baseLocale: options.actions.generate?.baseLocale,
|
|
82
|
+
chunkSize: options.actions.generate?.chunkSize,
|
|
83
|
+
limit: options.actions.generate?.limit,
|
|
84
|
+
instructions: options.actions.generate?.instructions,
|
|
85
|
+
onlyNew: options.actions.generate?.onlyNew,
|
|
86
|
+
strategy: options.actions.generate?.strategy // 'chatgpt' or 'gemini'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
87
89
|
});
|
|
88
90
|
return { success: true };
|
|
89
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/localizator/executor.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/localizator/executor.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgB/B,8BAuDC;AAlED,+DAA4D;AAQ5D;;GAEG;A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BACtD;gBAED,IAAI,EAAE;oBACF,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK;iBACrC;gBACD,QAAQ,EAAE;oBACN,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM;oBACxC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK;oBACtC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,WAAW;oBAClD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO;oBAC1C,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU;oBAChD,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS;oBAC9C,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK;oBACtC,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY;oBACpD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO;oBAC1C,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,wBAAwB;iBACxE;aACJ;SACJ,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type IRunConfig as ILocalizatorConfig } from '@breadstone-tools/localizator-app';
|
|
2
|
+
import { type IEnvOptions } from '../../utils/loadAndExpandDotEnvFile';
|
|
2
3
|
export declare namespace LocalizatorTask {
|
|
3
|
-
interface ILocalizatorTaskOptions extends ILocalizatorConfig {
|
|
4
|
+
interface ILocalizatorTaskOptions extends ILocalizatorConfig, IEnvOptions {
|
|
4
5
|
mode: 'sort' | 'analyze' | 'transform' | 'generate' | 'detect';
|
|
5
6
|
}
|
|
6
7
|
function run(options: ILocalizatorTaskOptions): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.task.d.ts","sourceRoot":"","sources":["../../../src/executors/localizator/executor.task.ts"],"names":[],"mappings":"AAIA,OAAO,EAAsB,KAAK,UAAU,IAAI,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"executor.task.d.ts","sourceRoot":"","sources":["../../../src/executors/localizator/executor.task.ts"],"names":[],"mappings":"AAIA,OAAO,EAAsB,KAAK,UAAU,IAAI,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC9G,OAAO,EAA8C,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAInH,yBAAiB,eAAe,CAAC;IAE7B,UAAiB,uBAAwB,SAAQ,kBAAkB,EAAE,WAAW;QAC5E,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC;KAClE;IAED,SAAsB,GAAG,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0GzE;CA6EJ"}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.LocalizatorTask = void 0;
|
|
6
6
|
const utilities_1 = require("@breadstone-infrastructure/utilities");
|
|
7
7
|
const localizator_app_1 = require("@breadstone-tools/localizator-app");
|
|
8
|
+
const loadAndExpandDotEnvFile_1 = require("../../utils/loadAndExpandDotEnvFile");
|
|
8
9
|
// #endregion
|
|
9
10
|
var LocalizatorTask;
|
|
10
11
|
(function (LocalizatorTask) {
|
|
@@ -18,83 +19,88 @@ var LocalizatorTask;
|
|
|
18
19
|
logger.log((0, utilities_1.t) ` ${(0, utilities_1.red)(error.message)}`);
|
|
19
20
|
return Promise.resolve();
|
|
20
21
|
}
|
|
22
|
+
try {
|
|
23
|
+
const env = options.envFile
|
|
24
|
+
? (0, loadAndExpandDotEnvFile_1.loadAndExpandDotEnvFile)(utilities_1.Path.combine(options.cwd, options.envFile), process.env)
|
|
25
|
+
: {};
|
|
26
|
+
if (env.error) {
|
|
27
|
+
throw new Error(`Failed to load environment variables: ${env.error.message}`);
|
|
28
|
+
}
|
|
29
|
+
options = (0, loadAndExpandDotEnvFile_1.resolveOptionTree)(options, env);
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
logger.log((0, utilities_1.t) ` ${(0, utilities_1.red)(error.message)}`);
|
|
33
|
+
return Promise.resolve();
|
|
34
|
+
}
|
|
21
35
|
options = extractOptionsFromMode(options);
|
|
22
|
-
logger.log((0, utilities_1.t) ` ${(0, utilities_1.magenta)('checking for static strings in the project...')}`);
|
|
23
36
|
const result = await (0, localizator_app_1.run)({
|
|
37
|
+
verbose: options.verbose,
|
|
24
38
|
cwd: options.cwd,
|
|
25
39
|
output: options.output,
|
|
26
40
|
dryRun: options.dryRun,
|
|
27
|
-
detect: options.detect,
|
|
28
|
-
analyze: options.analyze,
|
|
29
|
-
transform: options.transform,
|
|
30
41
|
cache: options.cache,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const style = Object.entries(x.extraction.changes).length > 0 ? utilities_1.yellow : utilities_1.gray;
|
|
38
|
-
const a = x.parsings.filter((y) => y.isStatic).map((y) => ({
|
|
39
|
-
label: `${y.match.value}`,
|
|
40
|
-
nodes: [{
|
|
41
|
-
label: `${(0, utilities_1.yellow)('at')}: ${utilities_1.Path.relative(options.cwd, x.filePath)}:${y.lineNumber}:${y.columnNumber}`
|
|
42
|
-
}]
|
|
43
|
-
}));
|
|
44
|
-
const b = Object.entries(x.extraction.changes).map(([key, value], i) => ({
|
|
45
|
-
label: `${(0, utilities_1.bold)(key)} -> ${(0, utilities_1.bold)(value)}`,
|
|
46
|
-
nodes: [{
|
|
47
|
-
label: `${(0, utilities_1.yellow)('at')}: ${utilities_1.Path.relative(options.cwd, x.filePath)}:${x.parsings[i].lineNumber}:${x.parsings[i].columnNumber}`
|
|
48
|
-
}]
|
|
49
|
-
}));
|
|
50
|
-
// if (hasChanges) {
|
|
51
|
-
(0, utilities_1.logTree)(logger, style(utilities_1.Path.relative(options.cwd, x.filePath)), [...a, ...b], { prefixSpaceLength: 4 });
|
|
52
|
-
// x.parsings.map((y) => logger.log(` ${y.match.value} -> ${y.isStatic ? 'static' : 'resource'}`));
|
|
53
|
-
// }
|
|
42
|
+
actions: {
|
|
43
|
+
detect: options.actions.detect,
|
|
44
|
+
analyze: options.actions.analyze,
|
|
45
|
+
transform: options.actions.transform,
|
|
46
|
+
sort: options.actions.sort,
|
|
47
|
+
generate: options.actions.generate
|
|
54
48
|
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
49
|
+
});
|
|
50
|
+
switch (options.mode) {
|
|
51
|
+
case 'sort':
|
|
52
|
+
break;
|
|
53
|
+
case 'analyze':
|
|
54
|
+
if (result.analyze && result.analyze.length > 0) {
|
|
55
|
+
logger.log((0, utilities_1.t) ` ${(0, utilities_1.magenta)('analyzing the project...')}`);
|
|
56
|
+
for (const [key, value] of Object.entries(utilities_1.ArrayExtensions.groupBy(result.analyze, (x) => x.resource.name))) {
|
|
57
|
+
(0, utilities_1.logTree)(logger, key, (value ?? []).map((y) => ({
|
|
58
|
+
label: `${(0, utilities_1.symbol)(y.success ? 'success' : 'error')} ${y.message}`
|
|
59
|
+
})), { prefixSpaceLength: 4 });
|
|
60
|
+
}
|
|
65
61
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
label: `${y.resource.name} -> ${y.locale}`
|
|
76
|
-
})), { prefixSpaceLength: 4 });
|
|
62
|
+
break;
|
|
63
|
+
case 'transform':
|
|
64
|
+
if (result.transform && result.transform.length > 0) {
|
|
65
|
+
logger.log((0, utilities_1.t) ` ${(0, utilities_1.magenta)('transforming resources...')}`);
|
|
66
|
+
for (const [key, value] of Object.entries(utilities_1.ArrayExtensions.groupBy(result.transform, (x) => x.originalResource.name))) {
|
|
67
|
+
(0, utilities_1.logTree)(logger, key, (value ?? []).map((y) => ({
|
|
68
|
+
label: `${y.transformedResource.name} -> ${y.transformedResource.locale}`
|
|
69
|
+
})), { prefixSpaceLength: 4 });
|
|
70
|
+
}
|
|
77
71
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
label: `${y.transformedResource.name} -> ${y.transformedResource.locale}`
|
|
88
|
-
})), { prefixSpaceLength: 4 });
|
|
72
|
+
break;
|
|
73
|
+
case 'generate':
|
|
74
|
+
if (result.generate && result.generate.length > 0) {
|
|
75
|
+
logger.log((0, utilities_1.t) ` ${(0, utilities_1.magenta)('generating resources...')}`);
|
|
76
|
+
for (const [key, value] of Object.entries(utilities_1.ArrayExtensions.groupBy(result.generate, (x) => x.resource.name))) {
|
|
77
|
+
(0, utilities_1.logTree)(logger, key, (value ?? []).map((y) => ({
|
|
78
|
+
label: `${(0, utilities_1.gray)(y.resource.name)} -> ${(0, utilities_1.bold)(y.locale)}`
|
|
79
|
+
})), { prefixSpaceLength: 4 });
|
|
80
|
+
}
|
|
89
81
|
}
|
|
90
|
-
|
|
82
|
+
break;
|
|
83
|
+
case 'detect':
|
|
84
|
+
if (result.localizations && result.localizations.length > 0) {
|
|
85
|
+
for (const x of result.localizations.filter((y) => Object.entries(y.extraction.changes).length > 0)) {
|
|
86
|
+
const style = Object.entries(x.extraction.changes).length > 0 ? utilities_1.yellow : utilities_1.gray;
|
|
87
|
+
for (const parsing of x.parsings.filter((y) => y.isStatic)) {
|
|
88
|
+
(0, utilities_1.logTree)(logger, style(`${parsing.match.value}`), [{
|
|
89
|
+
label: `${(0, utilities_1.yellow)('at')}: ${utilities_1.Path.relative(options.cwd, x.filePath)}:${parsing.lineNumber}:${parsing.columnNumber}`
|
|
90
|
+
}], { prefixSpaceLength: 4 });
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
break;
|
|
95
|
+
default:
|
|
96
|
+
break;
|
|
91
97
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}, { prefixSpaceLength: 4 });
|
|
98
|
+
// logSummary(logger, {
|
|
99
|
+
// waring: [`${result.localizations
|
|
100
|
+
// ?.filter((x) => x.parsings.filter((y) => y.isStatic)).map((localization) => Object.entries(localization.extraction.changes).length)
|
|
101
|
+
// .reduce((a, b) => a + b, 0)} static strings detected`, true],
|
|
102
|
+
// success: [`${result.localizations?.length} files analyzed`, true]
|
|
103
|
+
// }, { prefixSpaceLength: 4 });
|
|
98
104
|
(0, utilities_1.logSeparator)(logger);
|
|
99
105
|
return Promise.resolve();
|
|
100
106
|
}
|
|
@@ -113,37 +119,57 @@ var LocalizatorTask;
|
|
|
113
119
|
function extractOptionsFromMode(options) {
|
|
114
120
|
const commonOptions = {
|
|
115
121
|
...options,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
122
|
+
actions: {
|
|
123
|
+
analyze: {},
|
|
124
|
+
sort: {},
|
|
125
|
+
transform: {},
|
|
126
|
+
generate: {},
|
|
127
|
+
// TODO: why is this different? NOW We know it!
|
|
128
|
+
// the detect action properties are part of different other actions.
|
|
129
|
+
// for example 'resourceRoot'. We have to move the properties directly to the root.
|
|
130
|
+
detect: options.actions.detect
|
|
131
|
+
}
|
|
121
132
|
};
|
|
122
133
|
switch (options.mode) {
|
|
123
134
|
case 'sort':
|
|
124
135
|
return {
|
|
125
136
|
...commonOptions,
|
|
126
|
-
|
|
137
|
+
actions: {
|
|
138
|
+
sort: options.actions.sort,
|
|
139
|
+
detect: options.actions.detect
|
|
140
|
+
}
|
|
127
141
|
};
|
|
128
142
|
case 'analyze':
|
|
129
143
|
return {
|
|
130
144
|
...commonOptions,
|
|
131
|
-
|
|
145
|
+
actions: {
|
|
146
|
+
analyze: options.actions.analyze,
|
|
147
|
+
detect: options.actions.detect
|
|
148
|
+
}
|
|
132
149
|
};
|
|
133
150
|
case 'transform':
|
|
134
151
|
return {
|
|
135
152
|
...commonOptions,
|
|
136
|
-
|
|
153
|
+
actions: {
|
|
154
|
+
transform: options.actions.transform,
|
|
155
|
+
detect: options.actions.detect
|
|
156
|
+
}
|
|
137
157
|
};
|
|
138
158
|
case 'generate':
|
|
139
159
|
return {
|
|
140
160
|
...commonOptions,
|
|
141
|
-
|
|
161
|
+
actions: {
|
|
162
|
+
generate: options.actions.generate,
|
|
163
|
+
detect: options.actions.detect
|
|
164
|
+
}
|
|
142
165
|
};
|
|
143
166
|
case 'detect':
|
|
144
167
|
return {
|
|
145
168
|
...commonOptions,
|
|
146
|
-
|
|
169
|
+
actions: {
|
|
170
|
+
detect: options.actions.detect,
|
|
171
|
+
analyze: options.actions.analyze
|
|
172
|
+
}
|
|
147
173
|
};
|
|
148
174
|
default:
|
|
149
175
|
throw new Error('Invalid mode provided.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.task.js","sourceRoot":"","sources":["../../../src/executors/localizator/executor.task.ts"],"names":[],"mappings":";AAAA,+BAA+B;AAC/B,kBAAkB;;;AAElB,
|
|
1
|
+
{"version":3,"file":"executor.task.js","sourceRoot":"","sources":["../../../src/executors/localizator/executor.task.ts"],"names":[],"mappings":";AAAA,+BAA+B;AAC/B,kBAAkB;;;AAElB,oEAAgK;AAChK,uEAA8G;AAC9G,iF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ignore: options.ignore,
|
|
52
52
|
templateFile: options.templateFile,
|
|
53
53
|
path: options.path,
|
|
54
|
-
verbose: context.isVerbose,
|
|
54
|
+
verbose: context.isVerbose || options.verbose,
|
|
55
55
|
cache: {
|
|
56
56
|
enabled: context.target?.cache,
|
|
57
57
|
dirPath: './.cache'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/markdown-to-typescript-transform/executor.ts"],"names":[],"mappings":";AACA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBlB,8BAsBC;AArCD,+DAA4D;AAC5D,6EAA0E;AAC1E,+EAA4E;AAU5E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAAwB,EAAE,OAAwB;IACxF,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,iCAAiC,CAAC;QAEjF,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,WAAW,EAAE,IAAA,6CAAqB,EAAC,OAAO,CAAC;YAC3C,YAAY,EAAE,IAAA,+CAAsB,EAAC,OAAO,CAAC;YAC7C,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE,OAAO,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/markdown-to-typescript-transform/executor.ts"],"names":[],"mappings":";AACA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBlB,8BAsBC;AArCD,+DAA4D;AAC5D,6EAA0E;AAC1E,+EAA4E;AAU5E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAAwB,EAAE,OAAwB;IACxF,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,iCAAiC,CAAC;QAEjF,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,WAAW,EAAE,IAAA,6CAAqB,EAAC,OAAO,CAAC;YAC3C,YAAY,EAAE,IAAA,+CAAsB,EAAC,OAAO,CAAC;YAC7C,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO;YAC7C,KAAK,EAAE;gBACH,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK;gBAC9B,OAAO,EAAE,UAAU;aACtB;SACJ,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { NgProxyTransformTask } from './executor.task';
|
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export type NgProxyTransformExecutorOptions = Omit<NgProxyTransformTask.INgProxyTransformTaskOptions, 'cwd' | 'tsConfigJson' | 'packageJson'
|
|
6
|
+
export type NgProxyTransformExecutorOptions = Omit<NgProxyTransformTask.INgProxyTransformTaskOptions, 'cwd' | 'tsConfigJson' | 'packageJson'>;
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/ng-proxy-transform/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAI5D;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAAC,oBAAoB,CAAC,4BAA4B,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/ng-proxy-transform/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAI5D;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAAC,oBAAoB,CAAC,4BAA4B,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,CAAC,CAAC;AAE9I;;GAEG;AACH,wBAA8B,WAAW,CAAC,OAAO,EAAE,+BAA+B,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CA2B3I"}
|
|
@@ -51,7 +51,7 @@ async function runExecutor(options, context) {
|
|
|
51
51
|
out: options.out,
|
|
52
52
|
path: options.path,
|
|
53
53
|
standalone: options.standalone,
|
|
54
|
-
verbose: context.isVerbose,
|
|
54
|
+
verbose: context.isVerbose || options.verbose,
|
|
55
55
|
aliases: options.aliases,
|
|
56
56
|
controlValueAccessors: options.controlValueAccessors,
|
|
57
57
|
cleanOut: options.cleanOut,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/ng-proxy-transform/executor.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBlB,8BA2BC;AA1CD,6EAA0E;AAC1E,+DAA4D;AAC5D,+EAA4E;AAU5E;;GAEG;AACY,KAAK,UAAU,WAA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BAAqB,EAAE,OAAO,CAAC,qBAAqB;YACpD,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;YAC5C,KAAK,EAAE;gBACH,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK;gBAC9B,OAAO,EAAE,UAAU;aACtB;SACJ,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { ReactProxyTransformTask } from './executor.task';
|
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export type ReactProxyTransformExecutorOptions = Omit<ReactProxyTransformTask.IReactProxyTransformOptions, 'cwd' | 'tsConfigJson' | 'packageJson'
|
|
6
|
+
export type ReactProxyTransformExecutorOptions = Omit<ReactProxyTransformTask.IReactProxyTransformOptions, 'cwd' | 'tsConfigJson' | 'packageJson'>;
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/react-proxy-transform/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAI/D;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG,IAAI,CAAC,uBAAuB,CAAC,2BAA2B,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/react-proxy-transform/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAI/D;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG,IAAI,CAAC,uBAAuB,CAAC,2BAA2B,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,CAAC,CAAC;AAEnJ;;GAEG;AACH,wBAA8B,WAAW,CAAC,OAAO,EAAE,kCAAkC,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAwB9I"}
|
|
@@ -50,7 +50,7 @@ async function runExecutor(options, context) {
|
|
|
50
50
|
tsConfigJson: (0, getProjectTsConfigJson_1.getProjectTsConfigJson)(context),
|
|
51
51
|
out: options.out,
|
|
52
52
|
path: options.path,
|
|
53
|
-
verbose: context.isVerbose,
|
|
53
|
+
verbose: context.isVerbose || options.verbose,
|
|
54
54
|
aliases: options.aliases,
|
|
55
55
|
cleanOut: options.cleanOut,
|
|
56
56
|
ignore: options.ignore,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/react-proxy-transform/executor.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBlB,8BAwBC;AAvCD,6EAA0E;AAC1E,+DAA4D;AAC5D,+EAA4E;AAU5E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAA2C,EAAE,OAAwB;IAC3G,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,uBAAuB,CAAC;QAEvE,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,WAAW,EAAE,IAAA,6CAA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C,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/scss-style-bundle/executor.ts"],"names":[],"mappings":";AACA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAclB,8BAmBC;AA9BD,+DAA4D;AAC5D,6EAA0E;AAO1E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAAoC,EAAE,OAAwB;IACpG,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,gBAAgB,CAAC;QAEhE,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,WAAW,EAAE,IAAA,6CAAqB,EAAC,OAAO,CAAC;YAC3C,KAAK,EAAE;gBACH,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK;gBAC9B,OAAO,EAAE,UAAU;aACtB;YACD,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/scss-style-bundle/executor.ts"],"names":[],"mappings":";AACA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAclB,8BAmBC;AA9BD,+DAA4D;AAC5D,6EAA0E;AAO1E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAAoC,EAAE,OAAwB;IACpG,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,gBAAgB,CAAC;QAEhE,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,WAAW,EAAE,IAAA,6CAAqB,EAAC,OAAO,CAAC;YAC3C,KAAK,EAAE;gBACH,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK;gBAC9B,OAAO,EAAE,UAAU;aACtB;YACD,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO;SAChD,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/scss-style-transform/executor.ts"],"names":[],"mappings":";AACA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAclB,8BAoBC;AA/BD,+DAA4D;AAC5D,6EAA0E;AAO1E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAAsC,EAAE,OAAwB;IACtG,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,kBAAkB,CAAC;QAElE,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,WAAW,EAAE,IAAA,6CAAqB,EAAC,OAAO,CAAC;YAC3C,KAAK,EAAE;gBACH,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK;gBAC9B,OAAO,EAAE,UAAU;aACtB;YACD,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,OAAO,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/scss-style-transform/executor.ts"],"names":[],"mappings":";AACA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAclB,8BAoBC;AA/BD,+DAA4D;AAC5D,6EAA0E;AAO1E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAAsC,EAAE,OAAwB;IACtG,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,kBAAkB,CAAC;QAElE,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,WAAW,EAAE,IAAA,6CAAqB,EAAC,OAAO,CAAC;YAC3C,KAAK,EAAE;gBACH,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK;gBAC9B,OAAO,EAAE,UAAU;aACtB;YACD,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO;SAChD,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { SvelteProxyTransformTask } from './executor.task';
|
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export type SvelteProxyTransformExecutorOptions = Omit<SvelteProxyTransformTask.ISvelteProxyTransformOptions, 'cwd' | 'tsConfigJson' | 'packageJson'
|
|
6
|
+
export type SvelteProxyTransformExecutorOptions = Omit<SvelteProxyTransformTask.ISvelteProxyTransformOptions, 'cwd' | 'tsConfigJson' | 'packageJson'>;
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/svelte-proxy-transform/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAIhE;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,IAAI,CAAC,wBAAwB,CAAC,4BAA4B,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/svelte-proxy-transform/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAIhE;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,IAAI,CAAC,wBAAwB,CAAC,4BAA4B,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,CAAC,CAAC;AAEtJ;;GAEG;AACH,wBAA8B,WAAW,CAAC,OAAO,EAAE,mCAAmC,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAwB/I"}
|
|
@@ -50,7 +50,7 @@ async function runExecutor(options, context) {
|
|
|
50
50
|
tsConfigJson: (0, getProjectTsConfigJson_1.getProjectTsConfigJson)(context),
|
|
51
51
|
out: options.out,
|
|
52
52
|
path: options.path,
|
|
53
|
-
verbose: context.isVerbose,
|
|
53
|
+
verbose: context.isVerbose || options.verbose,
|
|
54
54
|
aliases: options.aliases,
|
|
55
55
|
cleanOut: options.cleanOut,
|
|
56
56
|
ignore: options.ignore,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/svelte-proxy-transform/executor.ts"],"names":[],"mappings":";AAAA,kBAA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,IAAI,OAAO,CAAC,OAAO;YAC7C,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,KAAK,EAAE;gBACH,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK;gBAC9B,OAAO,EAAE,UAAU;aACtB;SACJ,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { VueProxyTransformTask } from './executor.task';
|
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export type VueProxyTransformExecutorOptions = Omit<VueProxyTransformTask.IVueProxyTransformOptions, 'cwd' | 'tsConfigJson' | 'packageJson'
|
|
6
|
+
export type VueProxyTransformExecutorOptions = Omit<VueProxyTransformTask.IVueProxyTransformOptions, 'cwd' | 'tsConfigJson' | 'packageJson'>;
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/vue-proxy-transform/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAI7D;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,IAAI,CAAC,qBAAqB,CAAC,yBAAyB,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/vue-proxy-transform/executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAI7D;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,IAAI,CAAC,qBAAqB,CAAC,yBAAyB,EAAE,KAAK,GAAG,cAAc,GAAG,aAAa,CAAC,CAAC;AAE7I;;GAEG;AACH,wBAA8B,WAAW,CAAC,OAAO,EAAE,gCAAgC,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAwB5I"}
|
|
@@ -50,7 +50,7 @@ async function runExecutor(options, context) {
|
|
|
50
50
|
tsConfigJson: (0, getProjectTsConfigJson_1.getProjectTsConfigJson)(context),
|
|
51
51
|
out: options.out,
|
|
52
52
|
path: options.path,
|
|
53
|
-
verbose: context.isVerbose,
|
|
53
|
+
verbose: context.isVerbose || options.verbose,
|
|
54
54
|
aliases: options.aliases,
|
|
55
55
|
cleanOut: options.cleanOut,
|
|
56
56
|
ignore: options.ignore,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/executors/vue-proxy-transform/executor.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBlB,8BAwBC;AAvCD,6EAA0E;AAC1E,+DAA4D;AAC5D,+EAA4E;AAU5E;;GAEG;AACY,KAAK,UAAU,WAAW,CAAC,OAAyC,EAAE,OAAwB;IACzG,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,wDAAa,iBAAiB,GAAC,CAAC,CAAC,qBAAqB,CAAC;QAErE,MAAM,IAAI,CAAC,GAAG,CAAC;YACX,GAAG,EAAE,IAAA,+BAAc,EAAC,OAAO,CAAC;YAC5B,WAAW,EAAE,IAAA,6CAAqB,EAAC,OAAO,CAA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EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breadstone-infrastructure/nx-tasks",
|
|
3
3
|
"description": "Common nx tasks",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.83",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
|
|
7
7
|
"repository": {
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"types": "./Index.d.ts",
|
|
15
15
|
"executors": "./executors.json",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@breadstone-infrastructure/utilities": "^0.0.
|
|
18
|
-
"@breadstone-tools/cem-app": "^0.0.
|
|
19
|
-
"@breadstone-tools/cem-plugins-custom-js-doc-tags": "^0.0.
|
|
20
|
-
"@breadstone-tools/cem-plugins-expand-types": "^0.0.
|
|
21
|
-
"@breadstone-tools/localizator-app": "^0.0.
|
|
22
|
-
"@breadstone-tools/localizator-core": "^0.0.
|
|
23
|
-
"@breadstone-tools/openapi-app": "^0.0.
|
|
24
|
-
"@breadstone-tools/openapi-core": "^0.0.
|
|
25
|
-
"@microsoft/api-extractor": "^7.52.
|
|
26
|
-
"@nx/devkit": "^21.3.
|
|
17
|
+
"@breadstone-infrastructure/utilities": "^0.0.83",
|
|
18
|
+
"@breadstone-tools/cem-app": "^0.0.83",
|
|
19
|
+
"@breadstone-tools/cem-plugins-custom-js-doc-tags": "^0.0.83",
|
|
20
|
+
"@breadstone-tools/cem-plugins-expand-types": "^0.0.83",
|
|
21
|
+
"@breadstone-tools/localizator-app": "^0.0.83",
|
|
22
|
+
"@breadstone-tools/localizator-core": "^0.0.83",
|
|
23
|
+
"@breadstone-tools/openapi-app": "^0.0.83",
|
|
24
|
+
"@breadstone-tools/openapi-core": "^0.0.83",
|
|
25
|
+
"@microsoft/api-extractor": "^7.52.10",
|
|
26
|
+
"@nx/devkit": "^21.3.10",
|
|
27
27
|
"autoprefixer": "^10.4.21",
|
|
28
28
|
"diff": "^8.0.2",
|
|
29
29
|
"dotenv": "^17.2.1",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type DotenvExpandOutput } from 'dotenv-expand';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface IEnvOptions {
|
|
6
|
+
env: Record<string, string>;
|
|
7
|
+
envFile?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* This function loads a .env file and expands the variables in it.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
* @param filename the .env file to load
|
|
14
|
+
* @param environmentVariables the object to load environment variables into
|
|
15
|
+
* @param override whether to override existing environment variables
|
|
16
|
+
*/
|
|
17
|
+
export declare function loadAndExpandDotEnvFile(filename: string, environmentVariables: NodeJS.ProcessEnv, override?: boolean): DotenvExpandOutput;
|
|
18
|
+
/**
|
|
19
|
+
* Tries to get an environment variable by its name.
|
|
20
|
+
* If the variable is not found, it returns the variable name itself.
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
* @param variableName - The name of the environment variable to retrieve.
|
|
24
|
+
* @param environmentVariables - The object containing environment variables.
|
|
25
|
+
* @returns The value of the environment variable or the variable name if not found.
|
|
26
|
+
*/
|
|
27
|
+
export declare function tryGetEnvVariable(variableName: string, environmentVariables: DotenvExpandOutput): string;
|
|
28
|
+
export declare function resolveOption(raw: string, environmentVariables: DotenvExpandOutput): string;
|
|
29
|
+
export declare function resolveOptionTree<T>(input: T, envVars: DotenvExpandOutput): T;
|
|
30
|
+
//# sourceMappingURL=loadAndExpandDotEnvFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadAndExpandDotEnvFile.d.ts","sourceRoot":"","sources":["../../src/utils/loadAndExpandDotEnvFile.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,kBAAkB,EAAU,MAAM,eAAe,CAAC;AAIhE;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,kBAAkB,CAWzI;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,oBAAoB,EAAE,kBAAkB,GAAG,MAAM,CAQxG;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,oBAAoB,EAAE,kBAAkB,GAAG,MAAM,CAgB3F;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,kBAAkB,GAAG,CAAC,CAsB7E"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// #region Imports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.loadAndExpandDotEnvFile = loadAndExpandDotEnvFile;
|
|
5
|
+
exports.tryGetEnvVariable = tryGetEnvVariable;
|
|
6
|
+
exports.resolveOption = resolveOption;
|
|
7
|
+
exports.resolveOptionTree = resolveOptionTree;
|
|
8
|
+
const dotenv_1 = require("dotenv");
|
|
9
|
+
const dotenv_expand_1 = require("dotenv-expand");
|
|
10
|
+
/**
|
|
11
|
+
* This function loads a .env file and expands the variables in it.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
* @param filename the .env file to load
|
|
15
|
+
* @param environmentVariables the object to load environment variables into
|
|
16
|
+
* @param override whether to override existing environment variables
|
|
17
|
+
*/
|
|
18
|
+
function loadAndExpandDotEnvFile(filename, environmentVariables, override) {
|
|
19
|
+
const env = (0, dotenv_1.config)({
|
|
20
|
+
path: filename,
|
|
21
|
+
processEnv: environmentVariables,
|
|
22
|
+
override: override ?? false
|
|
23
|
+
});
|
|
24
|
+
return (0, dotenv_expand_1.expand)({
|
|
25
|
+
...env,
|
|
26
|
+
processEnv: environmentVariables
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Tries to get an environment variable by its name.
|
|
31
|
+
* If the variable is not found, it returns the variable name itself.
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
* @param variableName - The name of the environment variable to retrieve.
|
|
35
|
+
* @param environmentVariables - The object containing environment variables.
|
|
36
|
+
* @returns The value of the environment variable or the variable name if not found.
|
|
37
|
+
*/
|
|
38
|
+
function tryGetEnvVariable(variableName, environmentVariables) {
|
|
39
|
+
const value = environmentVariables.parsed?.[variableName];
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return variableName;
|
|
42
|
+
}
|
|
43
|
+
return value.trim();
|
|
44
|
+
}
|
|
45
|
+
function resolveOption(raw, environmentVariables) {
|
|
46
|
+
const ENV_RE = /^\{env\.([A-Z0-9_]+)\}$/;
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/prefer-regexp-exec
|
|
48
|
+
const matched = raw.match(ENV_RE);
|
|
49
|
+
if (matched) {
|
|
50
|
+
const envVar = matched[1];
|
|
51
|
+
const v = environmentVariables.parsed?.[envVar];
|
|
52
|
+
if (!v) {
|
|
53
|
+
throw new Error(`[Environment]: Env var ${envVar} not set.`);
|
|
54
|
+
}
|
|
55
|
+
return v;
|
|
56
|
+
}
|
|
57
|
+
return raw;
|
|
58
|
+
}
|
|
59
|
+
function resolveOptionTree(input, envVars) {
|
|
60
|
+
if (input === null) {
|
|
61
|
+
return input;
|
|
62
|
+
}
|
|
63
|
+
if (typeof input === 'string') {
|
|
64
|
+
return resolveOption(input, envVars);
|
|
65
|
+
}
|
|
66
|
+
if (Array.isArray(input)) {
|
|
67
|
+
return input.map((item) => resolveOptionTree(item, envVars));
|
|
68
|
+
}
|
|
69
|
+
if (typeof input === 'object') {
|
|
70
|
+
const output = {};
|
|
71
|
+
for (const [key, val] of Object.entries(input)) {
|
|
72
|
+
output[key] = resolveOptionTree(val, envVars);
|
|
73
|
+
}
|
|
74
|
+
return output;
|
|
75
|
+
}
|
|
76
|
+
return input;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=loadAndExpandDotEnvFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadAndExpandDotEnvFile.js","sourceRoot":"","sources":["../../src/utils/loadAndExpandDotEnvFile.ts"],"names":[],"mappings":";AAAA,kBAAkB;;AAuBlB,0DAWC;AAWD,8CAQC;AAED,sCAgBC;AAED,8CAsBC;AA7FD,mCAAkD;AAClD,iDAAgE;AAYhE;;;;;;;GAOG;AACH,SAAgB,uBAAuB,CAAC,QAAgB,EAAE,oBAAuC,EAAE,QAAkB;IACjH,MAAM,GAAG,GAAG,IAAA,eAAc,EAAC;QACvB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,oBAA8C;QAC1D,QAAQ,EAAE,QAAQ,IAAI,KAAK;KAC9B,CAAC,CAAC;IAEH,OAAO,IAAA,sBAAM,EAAC;QACV,GAAG,GAAG;QACN,UAAU,EAAE,oBAA8C;KAC7D,CAAC,CAAC;AACP,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,iBAAiB,CAAC,YAAoB,EAAE,oBAAwC;IAC5F,MAAM,KAAK,GAAG,oBAAoB,CAAC,MAAM,EAAE,CAAC,YAAY,CAAC,CAAC;IAE1D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,YAAY,CAAC;IACxB,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;AACxB,CAAC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,oBAAwC;IAC/E,MAAM,MAAM,GAAG,yBAAyB,CAAC;IACzC,iEAAi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