@powerlines/plugin-env 0.15.140 → 0.15.142
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/dist/automd-generator-BNg74tyV.cjs +37 -0
- package/dist/automd-generator-DoKLIMuw.mjs +32 -0
- package/dist/automd-generator-DoKLIMuw.mjs.map +1 -0
- package/dist/babel/index.cjs +5 -2
- package/dist/babel/index.d.cts +14 -1
- package/dist/babel/index.d.mts +14 -1
- package/dist/babel/index.mjs +4 -1
- package/dist/babel/plugin.cjs +4 -140
- package/dist/babel/plugin.d.cts +14 -7
- package/dist/babel/plugin.d.mts +14 -7
- package/dist/babel/plugin.mjs +3 -138
- package/dist/babel-BZqmdVF4.cjs +0 -0
- package/dist/babel-DgietUY3.mjs +1 -0
- package/dist/chunk-CNVrAnJR.cjs +48 -0
- package/dist/{_virtual/rolldown_runtime.cjs → chunk-CsF2CmBJ.mjs} +6 -2
- package/dist/components/docs.cjs +13 -69
- package/dist/components/docs.d.cts +1 -21
- package/dist/components/docs.d.mts +1 -21
- package/dist/components/docs.mjs +12 -67
- package/dist/components/env.cjs +13 -588
- package/dist/components/env.d.cts +1 -19
- package/dist/components/env.d.mts +1 -19
- package/dist/components/env.mjs +11 -584
- package/dist/components/index.cjs +17 -5
- package/dist/components/index.d.cts +3 -2
- package/dist/components/index.d.mts +3 -2
- package/dist/components/index.mjs +14 -2
- package/dist/components-BUo6Koax.cjs +0 -0
- package/dist/components-DDFmImcI.mjs +1 -0
- package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs +23 -0
- package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs.map +1 -0
- package/dist/confbox.DA7CpUDY-r6FXRsI6.cjs +28 -0
- package/dist/confbox.DnMsyigM-C13n3X-S.cjs +415 -0
- package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs +405 -0
- package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs.map +1 -0
- package/dist/create-reflection-resource-B3friIs9.mjs +98 -0
- package/dist/create-reflection-resource-B3friIs9.mjs.map +1 -0
- package/dist/create-reflection-resource-BJj83ii4.cjs +103 -0
- package/dist/create-reflection-resource-DSLbLsX2.d.cts +16 -0
- package/dist/create-reflection-resource-DSLbLsX2.d.cts.map +1 -0
- package/dist/create-reflection-resource-DwWJAo-G.d.mts +16 -0
- package/dist/create-reflection-resource-DwWJAo-G.d.mts.map +1 -0
- package/dist/defu-CrqNIh1A.cjs +227 -0
- package/dist/defu-DV5Grr85.mjs +180 -0
- package/dist/defu-DV5Grr85.mjs.map +1 -0
- package/dist/dist-BQc8ZRwl.cjs +13 -0
- package/dist/dist-C_a6goTt.cjs +15282 -0
- package/dist/dist-CjWvISyq.mjs +15271 -0
- package/dist/dist-CjWvISyq.mjs.map +1 -0
- package/dist/dist-mV5Swt78.mjs +13 -0
- package/dist/dist-mV5Swt78.mjs.map +1 -0
- package/dist/docs-B-SDRHeg.cjs +75 -0
- package/dist/docs-B0d8pdIg.d.mts +23 -0
- package/dist/docs-B0d8pdIg.d.mts.map +1 -0
- package/dist/docs-DMfzQuvP.d.cts +23 -0
- package/dist/docs-DMfzQuvP.d.cts.map +1 -0
- package/dist/docs-DbRoWmL_.mjs +70 -0
- package/dist/docs-DbRoWmL_.mjs.map +1 -0
- package/dist/docs-helper-2fe7M3Th.mjs +24 -0
- package/dist/docs-helper-2fe7M3Th.mjs.map +1 -0
- package/dist/docs-helper-4MoQ5-R3.cjs +28 -0
- package/dist/env-BIyd8CTA.d.cts +21 -0
- package/dist/env-BIyd8CTA.d.cts.map +1 -0
- package/dist/env-BKmI7DyR.d.mts +21 -0
- package/dist/env-BKmI7DyR.d.mts.map +1 -0
- package/dist/env-D9oCn-AS.mjs +587 -0
- package/dist/env-D9oCn-AS.mjs.map +1 -0
- package/dist/env-R63eR4RP.cjs +598 -0
- package/dist/helpers/automd-generator.cjs +3 -31
- package/dist/helpers/automd-generator.d.cts +2 -1
- package/dist/helpers/automd-generator.d.cts.map +1 -0
- package/dist/helpers/automd-generator.d.mts +2 -1
- package/dist/helpers/automd-generator.d.mts.map +1 -0
- package/dist/helpers/automd-generator.mjs +2 -29
- package/dist/helpers/create-reflection-resource.cjs +11 -97
- package/dist/helpers/create-reflection-resource.d.cts +3 -14
- package/dist/helpers/create-reflection-resource.d.mts +3 -14
- package/dist/helpers/create-reflection-resource.mjs +10 -95
- package/dist/helpers/docs-helper.cjs +5 -23
- package/dist/helpers/docs-helper.d.cts +4 -2
- package/dist/helpers/docs-helper.d.cts.map +1 -0
- package/dist/helpers/docs-helper.d.mts +4 -2
- package/dist/helpers/docs-helper.d.mts.map +1 -0
- package/dist/helpers/docs-helper.mjs +4 -21
- package/dist/helpers/index.cjs +38 -32
- package/dist/helpers/index.d.cts +9 -6
- package/dist/helpers/index.d.mts +9 -6
- package/dist/helpers/index.mjs +12 -6
- package/dist/helpers/load.cjs +10 -134
- package/dist/helpers/load.d.cts +3 -34
- package/dist/helpers/load.d.mts +3 -34
- package/dist/helpers/load.mjs +8 -130
- package/dist/helpers/persistence.cjs +15 -321
- package/dist/helpers/persistence.d.cts +3 -83
- package/dist/helpers/persistence.d.mts +3 -83
- package/dist/helpers/persistence.mjs +4 -308
- package/dist/helpers/reflect.cjs +13 -262
- package/dist/helpers/reflect.d.cts +3 -45
- package/dist/helpers/reflect.d.mts +3 -45
- package/dist/helpers/reflect.mjs +4 -252
- package/dist/helpers/source-file-env.cjs +3 -57
- package/dist/helpers/source-file-env.d.cts +1 -7
- package/dist/helpers/source-file-env.d.mts +1 -7
- package/dist/helpers/source-file-env.mjs +1 -54
- package/dist/helpers/template-helpers.cjs +6 -69
- package/dist/helpers/template-helpers.d.cts +3 -14
- package/dist/helpers/template-helpers.d.mts +3 -14
- package/dist/helpers/template-helpers.mjs +5 -67
- package/dist/helpers-45e1bvAO.mjs +1 -0
- package/dist/helpers-DgYP3uej.cjs +0 -0
- package/dist/index-BNRXMhlr.d.mts +1 -0
- package/dist/index-Bdi8CvaN.d.cts +16 -0
- package/dist/index-Bdi8CvaN.d.cts.map +1 -0
- package/dist/index-CEDY7cmG.d.cts +1 -0
- package/dist/index-CREkvfw9.d.mts +1 -0
- package/dist/index-DSiHnMH2.d.cts +1 -0
- package/dist/index-Drhzdkqe.d.mts +16 -0
- package/dist/index-Drhzdkqe.d.mts.map +1 -0
- package/dist/index-dhjtMp5F.d.mts +1 -0
- package/dist/index-uTS5iDq_.d.cts +1 -0
- package/dist/index.cjs +257 -98
- package/dist/index.d.cts +14 -23
- package/dist/index.d.mts +14 -23
- package/dist/index.mjs +184 -23
- package/dist/index.mjs.map +1 -0
- package/dist/join-paths-BMg51Ddi.mjs +148 -0
- package/dist/join-paths-BMg51Ddi.mjs.map +1 -0
- package/dist/join-paths-Bc4rM2TX.cjs +159 -0
- package/dist/json5-DEV_07Nb.cjs +786 -0
- package/dist/json5-jq90mF9X.mjs +787 -0
- package/dist/json5-jq90mF9X.mjs.map +1 -0
- package/dist/jsonc-CBh70baJ.cjs +4 -0
- package/dist/jsonc-CDLU6bgi.mjs +4 -0
- package/dist/load-DPB0maqs.cjs +6594 -0
- package/dist/load-Dr5ybfL7.mjs +6579 -0
- package/dist/load-Dr5ybfL7.mjs.map +1 -0
- package/dist/load-GpP6cojj.d.mts +36 -0
- package/dist/load-GpP6cojj.d.mts.map +1 -0
- package/dist/load-PHGmxX_X.d.cts +36 -0
- package/dist/load-PHGmxX_X.d.cts.map +1 -0
- package/dist/multipart-parser-D65rtMfY.mjs +176 -0
- package/dist/multipart-parser-D65rtMfY.mjs.map +1 -0
- package/dist/multipart-parser-aEF5a4Xf.cjs +178 -0
- package/dist/node-Co8KdzkZ.cjs +3985 -0
- package/dist/node-D9MigVDD.mjs +3975 -0
- package/dist/node-D9MigVDD.mjs.map +1 -0
- package/dist/persistence-BR4cUaN6.d.cts +85 -0
- package/dist/persistence-BR4cUaN6.d.cts.map +1 -0
- package/dist/persistence-BsBxs9wt.mjs +586 -0
- package/dist/persistence-BsBxs9wt.mjs.map +1 -0
- package/dist/persistence-D_clXRxP.cjs +712 -0
- package/dist/persistence-DrKQZNCv.d.mts +85 -0
- package/dist/persistence-DrKQZNCv.d.mts.map +1 -0
- package/dist/plugin-CM1TSv1B.cjs +159 -0
- package/dist/plugin-CSVnrdpE.cjs +146 -0
- package/dist/plugin-CSe5f2cD.d.cts +155 -0
- package/dist/plugin-CSe5f2cD.d.cts.map +1 -0
- package/dist/plugin-DMbVjdcQ.d.mts +155 -0
- package/dist/plugin-DMbVjdcQ.d.mts.map +1 -0
- package/dist/plugin-Vyvy9w9Z.mjs +141 -0
- package/dist/plugin-Vyvy9w9Z.mjs.map +1 -0
- package/dist/plugin-eBjQJP6x.mjs +130 -0
- package/dist/plugin-eBjQJP6x.mjs.map +1 -0
- package/dist/reflect-Dm8a3c29.d.cts +47 -0
- package/dist/reflect-Dm8a3c29.d.cts.map +1 -0
- package/dist/reflect-Dpz8ifa0.d.mts +47 -0
- package/dist/reflect-Dpz8ifa0.d.mts.map +1 -0
- package/dist/runtime-BDzzR4wH.d.cts +792 -0
- package/dist/runtime-BDzzR4wH.d.cts.map +1 -0
- package/dist/runtime-C5ukCv3P.mjs +242 -0
- package/dist/runtime-C5ukCv3P.mjs.map +1 -0
- package/dist/runtime-g0TEIoZK.cjs +253 -0
- package/dist/runtime-lYSIZdMn.d.mts +792 -0
- package/dist/runtime-lYSIZdMn.d.mts.map +1 -0
- package/dist/source-file-env-4Vdtzc5-.cjs +68 -0
- package/dist/source-file-env-Brfopjyr.d.cts +9 -0
- package/dist/source-file-env-Brfopjyr.d.cts.map +1 -0
- package/dist/source-file-env-DWejSP2U.d.mts +9 -0
- package/dist/source-file-env-DWejSP2U.d.mts.map +1 -0
- package/dist/source-file-env-Tj-6qobx.mjs +57 -0
- package/dist/source-file-env-Tj-6qobx.mjs.map +1 -0
- package/dist/template-helpers-1SKodHKt.d.mts +16 -0
- package/dist/template-helpers-1SKodHKt.d.mts.map +1 -0
- package/dist/template-helpers-CCEjhw1B.mjs +70 -0
- package/dist/template-helpers-CCEjhw1B.mjs.map +1 -0
- package/dist/template-helpers-YVcwxmoF.cjs +75 -0
- package/dist/template-helpers-zyitPfMz.d.cts +16 -0
- package/dist/template-helpers-zyitPfMz.d.cts.map +1 -0
- package/dist/toml-DvrxV201.cjs +657 -0
- package/dist/toml-uuOYvEAO.mjs +658 -0
- package/dist/toml-uuOYvEAO.mjs.map +1 -0
- package/dist/types/index.cjs +10 -9
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.mts +3 -2
- package/dist/types/index.mjs +3 -2
- package/dist/types/plugin.cjs +7 -133
- package/dist/types/plugin.d.cts +2 -153
- package/dist/types/plugin.d.mts +2 -153
- package/dist/types/plugin.mjs +2 -127
- package/dist/types/runtime.cjs +3 -242
- package/dist/types/runtime.d.cts +1 -790
- package/dist/types/runtime.d.mts +1 -790
- package/dist/types/runtime.mjs +1 -239
- package/dist/types-DyPQho_C.mjs +1 -0
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/yaml-CIn2Gddw.mjs +1055 -0
- package/dist/yaml-CIn2Gddw.mjs.map +1 -0
- package/dist/yaml-CQSFMRMS.cjs +1054 -0
- package/package.json +9 -9
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { defineGenerator } from "automd";
|
|
1
|
+
import "../join-paths-BMg51Ddi.mjs";
|
|
2
|
+
import { t as env } from "../automd-generator-DoKLIMuw.mjs";
|
|
4
3
|
|
|
5
|
-
//#region src/helpers/automd-generator.ts
|
|
6
|
-
function __assignType(fn, args) {
|
|
7
|
-
fn.__type = args;
|
|
8
|
-
return fn;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* AutoMD generator to generate environment variable documentation
|
|
12
|
-
*
|
|
13
|
-
* @param context - The generator context.
|
|
14
|
-
* @returns The generated documentation content.
|
|
15
|
-
*/
|
|
16
|
-
const env = __assignType((context) => defineGenerator({
|
|
17
|
-
name: "env",
|
|
18
|
-
generate: __assignType(async function generate() {
|
|
19
|
-
const envDocFile = joinPaths(context.config.projectRoot, "docs", "generated", "env.md");
|
|
20
|
-
if (!context.fs.existsSync(envDocFile)) return { contents: "" };
|
|
21
|
-
return { contents: await context.fs.read(envDocFile) || "" };
|
|
22
|
-
}, ["generate", "P\"/!"])
|
|
23
|
-
}), [
|
|
24
|
-
() => __ΩUnresolvedContext,
|
|
25
|
-
"context",
|
|
26
|
-
"",
|
|
27
|
-
"Pn!2\"\"/#"
|
|
28
|
-
]);
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
4
|
export { env };
|
|
@@ -1,98 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
require('../runtime-g0TEIoZK.cjs');
|
|
2
|
+
require('../plugin-CM1TSv1B.cjs');
|
|
3
|
+
require('../join-paths-Bc4rM2TX.cjs');
|
|
4
|
+
require('../persistence-D_clXRxP.cjs');
|
|
5
|
+
require('../source-file-env-4Vdtzc5-.cjs');
|
|
6
|
+
require('../defu-CrqNIh1A.cjs');
|
|
7
|
+
require('../load-DPB0maqs.cjs');
|
|
8
|
+
require('../confbox.DA7CpUDY-r6FXRsI6.cjs');
|
|
9
|
+
require('../confbox.DnMsyigM-C13n3X-S.cjs');
|
|
10
|
+
const require_create_reflection_resource = require('../create-reflection-resource-BJj83ii4.cjs');
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
const __ΩRecord = [
|
|
11
|
-
"K",
|
|
12
|
-
"T",
|
|
13
|
-
"Record",
|
|
14
|
-
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
15
|
-
];
|
|
16
|
-
function __assignType(fn, args) {
|
|
17
|
-
fn.__type = args;
|
|
18
|
-
return fn;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Creates a reflection resource for the environment configuration.
|
|
22
|
-
*
|
|
23
|
-
* @param context - The environment plugin context.
|
|
24
|
-
* @returns A resource that provides the reflection of the environment configuration.
|
|
25
|
-
*/
|
|
26
|
-
function createReflectionResource(context) {
|
|
27
|
-
const defaultValue = (0, __alloy_js_core.computed)(() => context && require_helpers_load.loadEnvFromContext(context, process.env));
|
|
28
|
-
return __alloy_js_core.createResource.Ω = [[
|
|
29
|
-
() => __ΩRecord,
|
|
30
|
-
() => __powerlines_deepkit_vendor_type.ReflectionClass,
|
|
31
|
-
"P&\"o!#7\""
|
|
32
|
-
]], (0, __alloy_js_core.createResource)(async () => {
|
|
33
|
-
if (!context) return new __powerlines_deepkit_vendor_type.ReflectionClass({
|
|
34
|
-
kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
|
|
35
|
-
description: `The initial environment configuration state for the Powerlines project.`,
|
|
36
|
-
types: []
|
|
37
|
-
});
|
|
38
|
-
const result = await require_helpers_persistence.readEnvTypeReflection(context, "env");
|
|
39
|
-
result.getProperties().forEach(__assignType((prop) => {
|
|
40
|
-
prop.getAlias().filter(Boolean).forEach(__assignType((alias) => {
|
|
41
|
-
result.addProperty({
|
|
42
|
-
name: alias,
|
|
43
|
-
optional: prop.isOptional() ? true : void 0,
|
|
44
|
-
readonly: prop.isReadonly() ? true : void 0,
|
|
45
|
-
description: prop.getDescription(),
|
|
46
|
-
visibility: prop.getVisibility(),
|
|
47
|
-
type: prop.getType(),
|
|
48
|
-
default: prop.getDefaultValue(),
|
|
49
|
-
tags: {
|
|
50
|
-
hidden: prop.isHidden(),
|
|
51
|
-
ignore: prop.isIgnored(),
|
|
52
|
-
internal: prop.isInternal(),
|
|
53
|
-
alias: prop.getAlias().filter(__assignType((a) => a !== alias, [
|
|
54
|
-
"a",
|
|
55
|
-
"",
|
|
56
|
-
"P\"2!\"/\""
|
|
57
|
-
])).concat(prop.name),
|
|
58
|
-
title: prop.getTitle() || (0, __stryke_string_format_title_case.titleCase)(prop.name),
|
|
59
|
-
readonly: prop.isReadonly(),
|
|
60
|
-
permission: prop.getPermission(),
|
|
61
|
-
domain: prop.getDomain()
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}, [
|
|
65
|
-
"alias",
|
|
66
|
-
"",
|
|
67
|
-
"P\"2!\"/\""
|
|
68
|
-
]));
|
|
69
|
-
}, [
|
|
70
|
-
"prop",
|
|
71
|
-
"",
|
|
72
|
-
"P\"2!\"/\""
|
|
73
|
-
]));
|
|
74
|
-
result.getProperties().forEach(__assignType((prop) => {
|
|
75
|
-
prop.setDefaultValue(defaultValue.value?.[prop.getNameAsString()] ?? prop.getAlias().reduce(__assignType((ret, alias) => ret ?? defaultValue.value?.[alias], [
|
|
76
|
-
"ret",
|
|
77
|
-
"alias",
|
|
78
|
-
"",
|
|
79
|
-
"P\"2!\"2\"\"/#"
|
|
80
|
-
]), void 0) ?? prop.getDefaultValue());
|
|
81
|
-
}, [
|
|
82
|
-
"prop",
|
|
83
|
-
"",
|
|
84
|
-
"P\"2!\"/\""
|
|
85
|
-
]));
|
|
86
|
-
return result;
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
createReflectionResource.__type = [
|
|
90
|
-
() => require_types_plugin.__ΩEnvPluginContext,
|
|
91
|
-
"context",
|
|
92
|
-
"createReflectionResource",
|
|
93
|
-
"Creates a reflection resource for the environment configuration.",
|
|
94
|
-
"Pn!2\"8\"/#?$"
|
|
95
|
-
];
|
|
96
|
-
|
|
97
|
-
//#endregion
|
|
98
|
-
exports.createReflectionResource = createReflectionResource;
|
|
12
|
+
exports.createReflectionResource = require_create_reflection_resource.createReflectionResource;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/create-reflection-resource.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Creates a reflection resource for the environment configuration.
|
|
9
|
-
*
|
|
10
|
-
* @param context - The environment plugin context.
|
|
11
|
-
* @returns A resource that provides the reflection of the environment configuration.
|
|
12
|
-
*/
|
|
13
|
-
declare function createReflectionResource(context?: EnvPluginContext): _alloy_js_core0.Resource<ReflectionClass<Record<string, any>>>;
|
|
14
|
-
//#endregion
|
|
1
|
+
import "../runtime-BDzzR4wH.cjs";
|
|
2
|
+
import "../plugin-CSe5f2cD.cjs";
|
|
3
|
+
import { t as createReflectionResource } from "../create-reflection-resource-DSLbLsX2.cjs";
|
|
15
4
|
export { createReflectionResource };
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/create-reflection-resource.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Creates a reflection resource for the environment configuration.
|
|
9
|
-
*
|
|
10
|
-
* @param context - The environment plugin context.
|
|
11
|
-
* @returns A resource that provides the reflection of the environment configuration.
|
|
12
|
-
*/
|
|
13
|
-
declare function createReflectionResource(context?: EnvPluginContext): _alloy_js_core0.Resource<ReflectionClass<Record<string, any>>>;
|
|
14
|
-
//#endregion
|
|
1
|
+
import "../runtime-lYSIZdMn.mjs";
|
|
2
|
+
import "../plugin-DMbVjdcQ.mjs";
|
|
3
|
+
import { t as createReflectionResource } from "../create-reflection-resource-DwWJAo-G.mjs";
|
|
15
4
|
export { createReflectionResource };
|
|
@@ -1,97 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import "../runtime-C5ukCv3P.mjs";
|
|
2
|
+
import "../plugin-eBjQJP6x.mjs";
|
|
3
|
+
import "../join-paths-BMg51Ddi.mjs";
|
|
4
|
+
import "../persistence-BsBxs9wt.mjs";
|
|
5
|
+
import "../source-file-env-Tj-6qobx.mjs";
|
|
6
|
+
import "../defu-DV5Grr85.mjs";
|
|
7
|
+
import "../load-Dr5ybfL7.mjs";
|
|
8
|
+
import "../confbox.DA7CpUDY-DShUZ_rW.mjs";
|
|
9
|
+
import "../confbox.DnMsyigM-V6Wj0LPC.mjs";
|
|
10
|
+
import { t as createReflectionResource } from "../create-reflection-resource-B3friIs9.mjs";
|
|
7
11
|
|
|
8
|
-
//#region src/helpers/create-reflection-resource.ts
|
|
9
|
-
const __ΩRecord = [
|
|
10
|
-
"K",
|
|
11
|
-
"T",
|
|
12
|
-
"Record",
|
|
13
|
-
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
14
|
-
];
|
|
15
|
-
function __assignType(fn, args) {
|
|
16
|
-
fn.__type = args;
|
|
17
|
-
return fn;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Creates a reflection resource for the environment configuration.
|
|
21
|
-
*
|
|
22
|
-
* @param context - The environment plugin context.
|
|
23
|
-
* @returns A resource that provides the reflection of the environment configuration.
|
|
24
|
-
*/
|
|
25
|
-
function createReflectionResource(context) {
|
|
26
|
-
const defaultValue = computed(() => context && loadEnvFromContext(context, process.env));
|
|
27
|
-
return createResource.Ω = [[
|
|
28
|
-
() => __ΩRecord,
|
|
29
|
-
() => ReflectionClass,
|
|
30
|
-
"P&\"o!#7\""
|
|
31
|
-
]], createResource(async () => {
|
|
32
|
-
if (!context) return new ReflectionClass({
|
|
33
|
-
kind: ReflectionKind.objectLiteral,
|
|
34
|
-
description: `The initial environment configuration state for the Powerlines project.`,
|
|
35
|
-
types: []
|
|
36
|
-
});
|
|
37
|
-
const result = await readEnvTypeReflection(context, "env");
|
|
38
|
-
result.getProperties().forEach(__assignType((prop) => {
|
|
39
|
-
prop.getAlias().filter(Boolean).forEach(__assignType((alias) => {
|
|
40
|
-
result.addProperty({
|
|
41
|
-
name: alias,
|
|
42
|
-
optional: prop.isOptional() ? true : void 0,
|
|
43
|
-
readonly: prop.isReadonly() ? true : void 0,
|
|
44
|
-
description: prop.getDescription(),
|
|
45
|
-
visibility: prop.getVisibility(),
|
|
46
|
-
type: prop.getType(),
|
|
47
|
-
default: prop.getDefaultValue(),
|
|
48
|
-
tags: {
|
|
49
|
-
hidden: prop.isHidden(),
|
|
50
|
-
ignore: prop.isIgnored(),
|
|
51
|
-
internal: prop.isInternal(),
|
|
52
|
-
alias: prop.getAlias().filter(__assignType((a) => a !== alias, [
|
|
53
|
-
"a",
|
|
54
|
-
"",
|
|
55
|
-
"P\"2!\"/\""
|
|
56
|
-
])).concat(prop.name),
|
|
57
|
-
title: prop.getTitle() || titleCase(prop.name),
|
|
58
|
-
readonly: prop.isReadonly(),
|
|
59
|
-
permission: prop.getPermission(),
|
|
60
|
-
domain: prop.getDomain()
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}, [
|
|
64
|
-
"alias",
|
|
65
|
-
"",
|
|
66
|
-
"P\"2!\"/\""
|
|
67
|
-
]));
|
|
68
|
-
}, [
|
|
69
|
-
"prop",
|
|
70
|
-
"",
|
|
71
|
-
"P\"2!\"/\""
|
|
72
|
-
]));
|
|
73
|
-
result.getProperties().forEach(__assignType((prop) => {
|
|
74
|
-
prop.setDefaultValue(defaultValue.value?.[prop.getNameAsString()] ?? prop.getAlias().reduce(__assignType((ret, alias) => ret ?? defaultValue.value?.[alias], [
|
|
75
|
-
"ret",
|
|
76
|
-
"alias",
|
|
77
|
-
"",
|
|
78
|
-
"P\"2!\"2\"\"/#"
|
|
79
|
-
]), void 0) ?? prop.getDefaultValue());
|
|
80
|
-
}, [
|
|
81
|
-
"prop",
|
|
82
|
-
"",
|
|
83
|
-
"P\"2!\"/\""
|
|
84
|
-
]));
|
|
85
|
-
return result;
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
createReflectionResource.__type = [
|
|
89
|
-
() => __ΩEnvPluginContext,
|
|
90
|
-
"context",
|
|
91
|
-
"createReflectionResource",
|
|
92
|
-
"Creates a reflection resource for the environment configuration.",
|
|
93
|
-
"Pn!2\"8\"/#?$"
|
|
94
|
-
];
|
|
95
|
-
|
|
96
|
-
//#endregion
|
|
97
12
|
export { createReflectionResource };
|
|
@@ -1,24 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
require('../runtime-g0TEIoZK.cjs');
|
|
2
|
+
require('../plugin-CM1TSv1B.cjs');
|
|
3
|
+
require('../join-paths-Bc4rM2TX.cjs');
|
|
4
|
+
const require_docs_helper = require('../docs-helper-4MoQ5-R3.cjs');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Gets the output path for the generated environment documentation.
|
|
8
|
-
*
|
|
9
|
-
* @param context - The environment plugin context.
|
|
10
|
-
* @returns The output path for the generated environment documentation.
|
|
11
|
-
*/
|
|
12
|
-
function getDocsOutputPath(context) {
|
|
13
|
-
return (0, __stryke_path_join.joinPaths)(context.config.projectRoot, "docs", "generated");
|
|
14
|
-
}
|
|
15
|
-
getDocsOutputPath.__type = [
|
|
16
|
-
() => require_types_plugin.__ΩEnvPluginContext,
|
|
17
|
-
"context",
|
|
18
|
-
"getDocsOutputPath",
|
|
19
|
-
"Gets the output path for the generated environment documentation.",
|
|
20
|
-
"Pn!2\"&/#?$"
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
exports.getDocsOutputPath = getDocsOutputPath;
|
|
6
|
+
exports.getDocsOutputPath = require_docs_helper.getDocsOutputPath;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../runtime-BDzzR4wH.cjs";
|
|
2
|
+
import { t as EnvPluginContext } from "../plugin-CSe5f2cD.cjs";
|
|
2
3
|
|
|
3
4
|
//#region src/helpers/docs-helper.d.ts
|
|
4
5
|
|
|
@@ -10,4 +11,5 @@ import { EnvPluginContext } from "../types/plugin.cjs";
|
|
|
10
11
|
*/
|
|
11
12
|
declare function getDocsOutputPath(context: EnvPluginContext): string;
|
|
12
13
|
//#endregion
|
|
13
|
-
export { getDocsOutputPath };
|
|
14
|
+
export { getDocsOutputPath };
|
|
15
|
+
//# sourceMappingURL=docs-helper.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-helper.d.cts","names":[],"sources":["../../src/helpers/docs-helper.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA2BA;;;iBAAgB,iBAAA,UAA2B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../runtime-lYSIZdMn.mjs";
|
|
2
|
+
import { t as EnvPluginContext } from "../plugin-DMbVjdcQ.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/helpers/docs-helper.d.ts
|
|
4
5
|
|
|
@@ -10,4 +11,5 @@ import { EnvPluginContext } from "../types/plugin.mjs";
|
|
|
10
11
|
*/
|
|
11
12
|
declare function getDocsOutputPath(context: EnvPluginContext): string;
|
|
12
13
|
//#endregion
|
|
13
|
-
export { getDocsOutputPath };
|
|
14
|
+
export { getDocsOutputPath };
|
|
15
|
+
//# sourceMappingURL=docs-helper.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-helper.d.mts","names":[],"sources":["../../src/helpers/docs-helper.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA2BA;;;iBAAgB,iBAAA,UAA2B"}
|
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "../runtime-C5ukCv3P.mjs";
|
|
2
|
+
import "../plugin-eBjQJP6x.mjs";
|
|
3
|
+
import "../join-paths-BMg51Ddi.mjs";
|
|
4
|
+
import { t as getDocsOutputPath } from "../docs-helper-2fe7M3Th.mjs";
|
|
3
5
|
|
|
4
|
-
//#region src/helpers/docs-helper.ts
|
|
5
|
-
/**
|
|
6
|
-
* Gets the output path for the generated environment documentation.
|
|
7
|
-
*
|
|
8
|
-
* @param context - The environment plugin context.
|
|
9
|
-
* @returns The output path for the generated environment documentation.
|
|
10
|
-
*/
|
|
11
|
-
function getDocsOutputPath(context) {
|
|
12
|
-
return joinPaths(context.config.projectRoot, "docs", "generated");
|
|
13
|
-
}
|
|
14
|
-
getDocsOutputPath.__type = [
|
|
15
|
-
() => __ΩEnvPluginContext,
|
|
16
|
-
"context",
|
|
17
|
-
"getDocsOutputPath",
|
|
18
|
-
"Gets the output path for the generated environment documentation.",
|
|
19
|
-
"Pn!2\"&/#?$"
|
|
20
|
-
];
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
6
|
export { getDocsOutputPath };
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,33 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
1
|
+
require('../runtime-g0TEIoZK.cjs');
|
|
2
|
+
require('../plugin-CM1TSv1B.cjs');
|
|
3
|
+
require('../join-paths-Bc4rM2TX.cjs');
|
|
4
|
+
const require_persistence = require('../persistence-D_clXRxP.cjs');
|
|
5
|
+
const require_template_helpers = require('../template-helpers-YVcwxmoF.cjs');
|
|
6
|
+
const require_source_file_env = require('../source-file-env-4Vdtzc5-.cjs');
|
|
7
|
+
require('../defu-CrqNIh1A.cjs');
|
|
8
|
+
const require_load = require('../load-DPB0maqs.cjs');
|
|
9
|
+
require('../confbox.DA7CpUDY-r6FXRsI6.cjs');
|
|
10
|
+
require('../confbox.DnMsyigM-C13n3X-S.cjs');
|
|
11
|
+
const require_create_reflection_resource = require('../create-reflection-resource-BJj83ii4.cjs');
|
|
12
|
+
require('../helpers-DgYP3uej.cjs');
|
|
7
13
|
|
|
8
|
-
exports.BaseEnv =
|
|
9
|
-
exports.BaseSecrets =
|
|
10
|
-
exports.__ΩCreateEnvReflectionOptions =
|
|
11
|
-
exports.createEnvReflection =
|
|
12
|
-
exports.createReflectionResource =
|
|
13
|
-
exports.createSecretsReflection =
|
|
14
|
-
exports.createTemplateReflection =
|
|
15
|
-
exports.formatEnvField =
|
|
16
|
-
exports.getEnvDefaultTypeDefinition =
|
|
17
|
-
exports.getEnvReflectionsPath =
|
|
18
|
-
exports.getEnvTypeReflectionsPath =
|
|
19
|
-
exports.getSecretsDefaultTypeDefinition =
|
|
20
|
-
exports.loadEnv =
|
|
21
|
-
exports.loadEnvFromContext =
|
|
22
|
-
exports.mergeEnvReflections =
|
|
23
|
-
exports.mergeSecretsReflections =
|
|
24
|
-
exports.readEnvReflection =
|
|
25
|
-
exports.readEnvTypeReflection =
|
|
26
|
-
exports.readSecretsReflection =
|
|
27
|
-
exports.reflectEnv =
|
|
28
|
-
exports.reflectSecrets =
|
|
29
|
-
exports.removeEnvPrefix =
|
|
30
|
-
exports.resolveRuntimeTypeFile =
|
|
31
|
-
exports.writeEnvReflection =
|
|
32
|
-
exports.writeEnvReflectionSync =
|
|
33
|
-
exports.writeEnvTypeReflection =
|
|
14
|
+
exports.BaseEnv = require_persistence.BaseEnv;
|
|
15
|
+
exports.BaseSecrets = require_persistence.BaseSecrets;
|
|
16
|
+
exports.__ΩCreateEnvReflectionOptions = require_persistence.__ΩCreateEnvReflectionOptions;
|
|
17
|
+
exports.createEnvReflection = require_persistence.createEnvReflection;
|
|
18
|
+
exports.createReflectionResource = require_create_reflection_resource.createReflectionResource;
|
|
19
|
+
exports.createSecretsReflection = require_persistence.createSecretsReflection;
|
|
20
|
+
exports.createTemplateReflection = require_template_helpers.createTemplateReflection;
|
|
21
|
+
exports.formatEnvField = require_source_file_env.formatEnvField;
|
|
22
|
+
exports.getEnvDefaultTypeDefinition = require_persistence.getEnvDefaultTypeDefinition;
|
|
23
|
+
exports.getEnvReflectionsPath = require_persistence.getEnvReflectionsPath;
|
|
24
|
+
exports.getEnvTypeReflectionsPath = require_persistence.getEnvTypeReflectionsPath;
|
|
25
|
+
exports.getSecretsDefaultTypeDefinition = require_persistence.getSecretsDefaultTypeDefinition;
|
|
26
|
+
exports.loadEnv = require_load.loadEnv;
|
|
27
|
+
exports.loadEnvFromContext = require_load.loadEnvFromContext;
|
|
28
|
+
exports.mergeEnvReflections = require_persistence.mergeEnvReflections;
|
|
29
|
+
exports.mergeSecretsReflections = require_persistence.mergeSecretsReflections;
|
|
30
|
+
exports.readEnvReflection = require_persistence.readEnvReflection;
|
|
31
|
+
exports.readEnvTypeReflection = require_persistence.readEnvTypeReflection;
|
|
32
|
+
exports.readSecretsReflection = require_persistence.readSecretsReflection;
|
|
33
|
+
exports.reflectEnv = require_persistence.reflectEnv;
|
|
34
|
+
exports.reflectSecrets = require_persistence.reflectSecrets;
|
|
35
|
+
exports.removeEnvPrefix = require_source_file_env.removeEnvPrefix;
|
|
36
|
+
exports.resolveRuntimeTypeFile = require_persistence.resolveRuntimeTypeFile;
|
|
37
|
+
exports.writeEnvReflection = require_persistence.writeEnvReflection;
|
|
38
|
+
exports.writeEnvReflectionSync = require_persistence.writeEnvReflectionSync;
|
|
39
|
+
exports.writeEnvTypeReflection = require_persistence.writeEnvTypeReflection;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import "../runtime-BDzzR4wH.cjs";
|
|
2
|
+
import "../plugin-CSe5f2cD.cjs";
|
|
3
|
+
import { t as createReflectionResource } from "../create-reflection-resource-DSLbLsX2.cjs";
|
|
4
|
+
import { n as loadEnvFromContext, t as loadEnv } from "../load-PHGmxX_X.cjs";
|
|
5
|
+
import { a as readEnvReflection, c as resolveRuntimeTypeFile, d as writeEnvTypeReflection, i as getSecretsDefaultTypeDefinition, l as writeEnvReflection, n as getEnvReflectionsPath, o as readEnvTypeReflection, r as getEnvTypeReflectionsPath, s as readSecretsReflection, t as getEnvDefaultTypeDefinition, u as writeEnvReflectionSync } from "../persistence-BR4cUaN6.cjs";
|
|
6
|
+
import { a as createEnvReflection, c as mergeSecretsReflections, i as __ΩCreateEnvReflectionOptions, l as reflectEnv, n as BaseSecrets, o as createSecretsReflection, r as CreateEnvReflectionOptions, s as mergeEnvReflections, t as BaseEnv, u as reflectSecrets } from "../reflect-Dm8a3c29.cjs";
|
|
7
|
+
import { n as removeEnvPrefix, t as formatEnvField } from "../source-file-env-Brfopjyr.cjs";
|
|
8
|
+
import { t as createTemplateReflection } from "../template-helpers-zyitPfMz.cjs";
|
|
9
|
+
import "../index-CEDY7cmG.cjs";
|
|
7
10
|
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createReflectionResource, createSecretsReflection, createTemplateReflection, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import "../runtime-lYSIZdMn.mjs";
|
|
2
|
+
import "../plugin-DMbVjdcQ.mjs";
|
|
3
|
+
import { t as createReflectionResource } from "../create-reflection-resource-DwWJAo-G.mjs";
|
|
4
|
+
import { n as loadEnvFromContext, t as loadEnv } from "../load-GpP6cojj.mjs";
|
|
5
|
+
import { a as readEnvReflection, c as resolveRuntimeTypeFile, d as writeEnvTypeReflection, i as getSecretsDefaultTypeDefinition, l as writeEnvReflection, n as getEnvReflectionsPath, o as readEnvTypeReflection, r as getEnvTypeReflectionsPath, s as readSecretsReflection, t as getEnvDefaultTypeDefinition, u as writeEnvReflectionSync } from "../persistence-DrKQZNCv.mjs";
|
|
6
|
+
import { a as createEnvReflection, c as mergeSecretsReflections, i as __ΩCreateEnvReflectionOptions, l as reflectEnv, n as BaseSecrets, o as createSecretsReflection, r as CreateEnvReflectionOptions, s as mergeEnvReflections, t as BaseEnv, u as reflectSecrets } from "../reflect-Dpz8ifa0.mjs";
|
|
7
|
+
import { n as removeEnvPrefix, t as formatEnvField } from "../source-file-env-DWejSP2U.mjs";
|
|
8
|
+
import { t as createTemplateReflection } from "../template-helpers-1SKodHKt.mjs";
|
|
9
|
+
import "../index-dhjtMp5F.mjs";
|
|
7
10
|
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createReflectionResource, createSecretsReflection, createTemplateReflection, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import "../runtime-C5ukCv3P.mjs";
|
|
2
|
+
import "../plugin-eBjQJP6x.mjs";
|
|
3
|
+
import "../join-paths-BMg51Ddi.mjs";
|
|
4
|
+
import { _ as mergeEnvReflections, a as readEnvReflection, b as reflectSecrets, c as resolveRuntimeTypeFile, d as writeEnvTypeReflection, f as BaseEnv, g as createSecretsReflection, h as createEnvReflection, i as getSecretsDefaultTypeDefinition, l as writeEnvReflection, m as __ΩCreateEnvReflectionOptions, n as getEnvReflectionsPath, o as readEnvTypeReflection, p as BaseSecrets, r as getEnvTypeReflectionsPath, s as readSecretsReflection, t as getEnvDefaultTypeDefinition, u as writeEnvReflectionSync, v as mergeSecretsReflections, y as reflectEnv } from "../persistence-BsBxs9wt.mjs";
|
|
5
|
+
import { t as createTemplateReflection } from "../template-helpers-CCEjhw1B.mjs";
|
|
6
|
+
import { n as removeEnvPrefix, t as formatEnvField } from "../source-file-env-Tj-6qobx.mjs";
|
|
7
|
+
import "../defu-DV5Grr85.mjs";
|
|
8
|
+
import { n as loadEnvFromContext, t as loadEnv } from "../load-Dr5ybfL7.mjs";
|
|
9
|
+
import "../confbox.DA7CpUDY-DShUZ_rW.mjs";
|
|
10
|
+
import "../confbox.DnMsyigM-V6Wj0LPC.mjs";
|
|
11
|
+
import { t as createReflectionResource } from "../create-reflection-resource-B3friIs9.mjs";
|
|
12
|
+
import "../helpers-45e1bvAO.mjs";
|
|
7
13
|
|
|
8
14
|
export { BaseEnv, BaseSecrets, __ΩCreateEnvReflectionOptions, createEnvReflection, createReflectionResource, createSecretsReflection, createTemplateReflection, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
|