@powerlines/plugin-env 0.15.112 → 0.15.114
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/components/docs.cjs +49 -50
- package/dist/components/docs.d.cts +15 -2
- package/dist/components/docs.d.mts +15 -2
- package/dist/components/docs.mjs +50 -51
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +2 -2
- package/dist/helpers/docs-helper.cjs +23 -0
- package/dist/helpers/docs-helper.d.cts +13 -0
- package/dist/helpers/docs-helper.d.mts +13 -0
- package/dist/helpers/docs-helper.mjs +23 -0
- package/dist/helpers/reflect.cjs +13 -0
- package/dist/helpers/reflect.mjs +13 -0
- package/dist/index.cjs +4 -19
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +6 -21
- package/dist/packages/plugin-alloy/src/markdown/components/markdown-file.d.mts +8 -0
- package/dist/packages/plugin-alloy/src/types/plugin.d.mts +3 -4
- package/dist/plugin-alloy/src/markdown/components/markdown-file.d.cts +8 -0
- package/dist/plugin-alloy/src/types/plugin.d.cts +3 -4
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/package.json +9 -9
package/dist/components/docs.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
3
3
|
const require_helpers_create_reflection_resource = require('../helpers/create-reflection-resource.cjs');
|
|
4
|
+
const require_helpers_docs_helper = require('../helpers/docs-helper.cjs');
|
|
4
5
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
5
6
|
let __alloy_js_core = require("@alloy-js/core");
|
|
6
7
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
@@ -13,59 +14,57 @@ let __powerlines_plugin_alloy_markdown_components_markdown_table = require("@pow
|
|
|
13
14
|
/**
|
|
14
15
|
* Generates the environment configuration markdown documentation for the Powerlines project.
|
|
15
16
|
*/
|
|
16
|
-
function
|
|
17
|
+
function EnvDocsFile(props) {
|
|
18
|
+
const { levelOffset = 0, ...rest } = props;
|
|
17
19
|
const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlinesSafe)();
|
|
18
20
|
if (!context) return null;
|
|
19
21
|
const reflection = require_helpers_create_reflection_resource.createReflectionResource(context);
|
|
20
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_file.MarkdownFile, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
];
|
|
66
|
-
}
|
|
67
|
-
});
|
|
22
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_file.MarkdownFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get path() {
|
|
23
|
+
return require_join_paths.joinPaths(require_helpers_docs_helper.getDocsOutputPath(context), "env.md");
|
|
24
|
+
} }, rest, { get children() {
|
|
25
|
+
return [
|
|
26
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_markdown.Heading, {
|
|
27
|
+
level: 1 + levelOffset,
|
|
28
|
+
children: "Environment Configuration"
|
|
29
|
+
}),
|
|
30
|
+
__alloy_js_core.code`Below is a list of environment variables used by the`,
|
|
31
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
32
|
+
get when() {
|
|
33
|
+
return !!context?.packageJson.name;
|
|
34
|
+
},
|
|
35
|
+
get children() {
|
|
36
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_markdown.Link, {
|
|
37
|
+
get href() {
|
|
38
|
+
return `https://www.npmjs.com/package/${context?.packageJson.name}`;
|
|
39
|
+
},
|
|
40
|
+
get title() {
|
|
41
|
+
return context.packageJson.name;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}),
|
|
46
|
+
__alloy_js_core.code`package. These values can be updated in the \`.env\` file in the root of the project.`,
|
|
47
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
48
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_markdown.Heading, {
|
|
49
|
+
level: 2 + levelOffset,
|
|
50
|
+
children: "Environment Variables"
|
|
51
|
+
}),
|
|
52
|
+
__alloy_js_core.code`The below list of environment variables are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.`,
|
|
53
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
54
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_table.MarkdownTable, { get data() {
|
|
55
|
+
return reflection.data?.getProperties().filter((property) => property.getNameAsString() !== "__STORM_INJECTED__").sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())).map((reflectionProperty) => {
|
|
56
|
+
return {
|
|
57
|
+
name: reflectionProperty.getNameAsString().trim(),
|
|
58
|
+
description: (reflectionProperty.getDescription() ?? "").trim(),
|
|
59
|
+
type: (0, __powerlines_deepkit_vendor_type.stringifyType)(reflectionProperty.getType()).trim().replaceAll(" | ", ", or "),
|
|
60
|
+
defaultValue: reflectionProperty.hasDefault() ? String(reflectionProperty.getDefaultValue())?.includes("\"") ? reflectionProperty.getDefaultValue() : `\`${reflectionProperty.getDefaultValue()}\`` : "",
|
|
61
|
+
required: reflectionProperty.isValueRequired() ? "" : "✔"
|
|
62
|
+
};
|
|
63
|
+
}) ?? [];
|
|
64
|
+
} })
|
|
65
|
+
];
|
|
66
|
+
} }));
|
|
68
67
|
}
|
|
69
68
|
|
|
70
69
|
//#endregion
|
|
71
|
-
exports.
|
|
70
|
+
exports.EnvDocsFile = EnvDocsFile;
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
import { MarkdownFileProps } from "../plugin-alloy/src/markdown/components/markdown-file.cjs";
|
|
1
2
|
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
3
|
|
|
3
4
|
//#region src/components/docs.d.ts
|
|
5
|
+
interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
|
|
6
|
+
/**
|
|
7
|
+
* The heading level offset to apply to the generated documentation.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This is useful when nesting the documentation within other markdown files.
|
|
11
|
+
*
|
|
12
|
+
* @defaultValue 0
|
|
13
|
+
*/
|
|
14
|
+
levelOffset?: number;
|
|
15
|
+
}
|
|
4
16
|
/**
|
|
5
17
|
* Generates the environment configuration markdown documentation for the Powerlines project.
|
|
6
18
|
*/
|
|
7
|
-
declare function
|
|
19
|
+
declare function EnvDocsFile(props: EnvDocsFileProps): _alloy_js_core0.Children;
|
|
20
|
+
declare type __ΩEnvDocsFileProps = any[];
|
|
8
21
|
//#endregion
|
|
9
|
-
export {
|
|
22
|
+
export { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps };
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
import { MarkdownFileProps } from "../packages/plugin-alloy/src/markdown/components/markdown-file.mjs";
|
|
1
2
|
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
3
|
|
|
3
4
|
//#region src/components/docs.d.ts
|
|
5
|
+
interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
|
|
6
|
+
/**
|
|
7
|
+
* The heading level offset to apply to the generated documentation.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This is useful when nesting the documentation within other markdown files.
|
|
11
|
+
*
|
|
12
|
+
* @defaultValue 0
|
|
13
|
+
*/
|
|
14
|
+
levelOffset?: number;
|
|
15
|
+
}
|
|
4
16
|
/**
|
|
5
17
|
* Generates the environment configuration markdown documentation for the Powerlines project.
|
|
6
18
|
*/
|
|
7
|
-
declare function
|
|
19
|
+
declare function EnvDocsFile(props: EnvDocsFileProps): _alloy_js_core0.Children;
|
|
20
|
+
declare type __ΩEnvDocsFileProps = any[];
|
|
8
21
|
//#endregion
|
|
9
|
-
export {
|
|
22
|
+
export { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps };
|
package/dist/components/docs.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
2
2
|
import { createReflectionResource } from "../helpers/create-reflection-resource.mjs";
|
|
3
|
+
import { getDocsOutputPath } from "../helpers/docs-helper.mjs";
|
|
3
4
|
import { stringifyType } from "@powerlines/deepkit/vendor/type";
|
|
4
5
|
import { Show, code } from "@alloy-js/core";
|
|
5
|
-
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
6
|
+
import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
6
7
|
import { Heading, Link } from "@alloy-js/markdown";
|
|
7
8
|
import { usePowerlinesSafe } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
8
9
|
import { MarkdownFile } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
|
|
@@ -12,59 +13,57 @@ import { MarkdownTable } from "@powerlines/plugin-alloy/markdown/components/mark
|
|
|
12
13
|
/**
|
|
13
14
|
* Generates the environment configuration markdown documentation for the Powerlines project.
|
|
14
15
|
*/
|
|
15
|
-
function
|
|
16
|
+
function EnvDocsFile(props) {
|
|
17
|
+
const { levelOffset = 0, ...rest } = props;
|
|
16
18
|
const context = usePowerlinesSafe();
|
|
17
19
|
if (!context) return null;
|
|
18
20
|
const reflection = createReflectionResource(context);
|
|
19
|
-
return createComponent(MarkdownFile, {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
];
|
|
65
|
-
}
|
|
66
|
-
});
|
|
21
|
+
return createComponent(MarkdownFile, mergeProps({ get path() {
|
|
22
|
+
return joinPaths(getDocsOutputPath(context), "env.md");
|
|
23
|
+
} }, rest, { get children() {
|
|
24
|
+
return [
|
|
25
|
+
createComponent(Heading, {
|
|
26
|
+
level: 1 + levelOffset,
|
|
27
|
+
children: "Environment Configuration"
|
|
28
|
+
}),
|
|
29
|
+
code`Below is a list of environment variables used by the`,
|
|
30
|
+
createComponent(Show, {
|
|
31
|
+
get when() {
|
|
32
|
+
return !!context?.packageJson.name;
|
|
33
|
+
},
|
|
34
|
+
get children() {
|
|
35
|
+
return createComponent(Link, {
|
|
36
|
+
get href() {
|
|
37
|
+
return `https://www.npmjs.com/package/${context?.packageJson.name}`;
|
|
38
|
+
},
|
|
39
|
+
get title() {
|
|
40
|
+
return context.packageJson.name;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}),
|
|
45
|
+
code`package. These values can be updated in the \`.env\` file in the root of the project.`,
|
|
46
|
+
createIntrinsic("hbr", {}),
|
|
47
|
+
createComponent(Heading, {
|
|
48
|
+
level: 2 + levelOffset,
|
|
49
|
+
children: "Environment Variables"
|
|
50
|
+
}),
|
|
51
|
+
code`The below list of environment variables are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.`,
|
|
52
|
+
createIntrinsic("hbr", {}),
|
|
53
|
+
createComponent(MarkdownTable, { get data() {
|
|
54
|
+
return reflection.data?.getProperties().filter((property) => property.getNameAsString() !== "__STORM_INJECTED__").sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())).map((reflectionProperty) => {
|
|
55
|
+
return {
|
|
56
|
+
name: reflectionProperty.getNameAsString().trim(),
|
|
57
|
+
description: (reflectionProperty.getDescription() ?? "").trim(),
|
|
58
|
+
type: stringifyType(reflectionProperty.getType()).trim().replaceAll(" | ", ", or "),
|
|
59
|
+
defaultValue: reflectionProperty.hasDefault() ? String(reflectionProperty.getDefaultValue())?.includes("\"") ? reflectionProperty.getDefaultValue() : `\`${reflectionProperty.getDefaultValue()}\`` : "",
|
|
60
|
+
required: reflectionProperty.isValueRequired() ? "" : "✔"
|
|
61
|
+
};
|
|
62
|
+
}) ?? [];
|
|
63
|
+
} })
|
|
64
|
+
];
|
|
65
|
+
} }));
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
//#endregion
|
|
70
|
-
export {
|
|
69
|
+
export { EnvDocsFile };
|
|
@@ -2,5 +2,5 @@ const require_components_docs = require('./docs.cjs');
|
|
|
2
2
|
const require_components_env = require('./env.cjs');
|
|
3
3
|
|
|
4
4
|
exports.EnvBuiltin = require_components_env.EnvBuiltin;
|
|
5
|
-
exports.
|
|
5
|
+
exports.EnvDocsFile = require_components_docs.EnvDocsFile;
|
|
6
6
|
exports.EnvTypeDefinition = require_components_env.EnvTypeDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./docs.cjs";
|
|
2
2
|
import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps } from "./env.cjs";
|
|
3
|
-
export { EnvBuiltin, EnvBuiltinProps,
|
|
3
|
+
export { EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvTypeDefinition, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./docs.mjs";
|
|
2
2
|
import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps } from "./env.mjs";
|
|
3
|
-
export { EnvBuiltin, EnvBuiltinProps,
|
|
3
|
+
export { EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvTypeDefinition, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_types_plugin = require('../types/plugin.cjs');
|
|
2
|
+
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
3
|
+
|
|
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 require_join_paths.joinPaths(context.config.projectRoot, "docs", "generated");
|
|
13
|
+
}
|
|
14
|
+
getDocsOutputPath.__type = [
|
|
15
|
+
() => require_types_plugin.__ΩEnvPluginContext,
|
|
16
|
+
"context",
|
|
17
|
+
"getDocsOutputPath",
|
|
18
|
+
"Gets the output path for the generated environment documentation.",
|
|
19
|
+
"Pn!2\"&/#?$"
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.getDocsOutputPath = getDocsOutputPath;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnvPluginContext } from "../types/plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/docs-helper.d.ts
|
|
4
|
+
|
|
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
|
+
declare function getDocsOutputPath(context: EnvPluginContext): string;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { getDocsOutputPath };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnvPluginContext } from "../types/plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/docs-helper.d.ts
|
|
4
|
+
|
|
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
|
+
declare function getDocsOutputPath(context: EnvPluginContext): string;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { getDocsOutputPath };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __ΩEnvPluginContext } from "../types/plugin.mjs";
|
|
2
|
+
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
3
|
+
|
|
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
|
+
export { getDocsOutputPath };
|
package/dist/helpers/reflect.cjs
CHANGED
|
@@ -55,8 +55,17 @@ const __ΩCreateEnvReflectionOptions = [
|
|
|
55
55
|
"PPn!n\"J4#8P\"7$4%8Mw&y"
|
|
56
56
|
];
|
|
57
57
|
var BaseEnv = class {
|
|
58
|
+
APP_NAME;
|
|
59
|
+
APP_VERSION;
|
|
60
|
+
BUILD_ID;
|
|
61
|
+
BUILD_TIMESTAMP;
|
|
62
|
+
BUILD_CHECKSUM;
|
|
63
|
+
RELEASE_ID;
|
|
64
|
+
RELEASE_TAG;
|
|
65
|
+
ORGANIZATION;
|
|
58
66
|
PLATFORM = "neutral";
|
|
59
67
|
MODE = "production";
|
|
68
|
+
ENVIRONMENT;
|
|
60
69
|
DEBUG = false;
|
|
61
70
|
TEST = false;
|
|
62
71
|
MINIMAL = false;
|
|
@@ -65,6 +74,9 @@ var BaseEnv = class {
|
|
|
65
74
|
FORCE_HYPERLINK = false;
|
|
66
75
|
STACKTRACE = false;
|
|
67
76
|
INCLUDE_ERROR_DATA = false;
|
|
77
|
+
ERROR_URL;
|
|
78
|
+
DEFAULT_TIMEZONE;
|
|
79
|
+
DEFAULT_LOCALE;
|
|
68
80
|
CI = false;
|
|
69
81
|
static __type = [
|
|
70
82
|
"APP_NAME",
|
|
@@ -135,6 +147,7 @@ var BaseEnv = class {
|
|
|
135
147
|
];
|
|
136
148
|
};
|
|
137
149
|
var BaseSecrets = class {
|
|
150
|
+
ENCRYPTION_KEY;
|
|
138
151
|
static __type = [
|
|
139
152
|
"ENCRYPTION_KEY",
|
|
140
153
|
() => require_types_runtime.__ΩSecretsInterface,
|
package/dist/helpers/reflect.mjs
CHANGED
|
@@ -54,8 +54,17 @@ const __ΩCreateEnvReflectionOptions = [
|
|
|
54
54
|
"PPn!n\"J4#8P\"7$4%8Mw&y"
|
|
55
55
|
];
|
|
56
56
|
var BaseEnv = class {
|
|
57
|
+
APP_NAME;
|
|
58
|
+
APP_VERSION;
|
|
59
|
+
BUILD_ID;
|
|
60
|
+
BUILD_TIMESTAMP;
|
|
61
|
+
BUILD_CHECKSUM;
|
|
62
|
+
RELEASE_ID;
|
|
63
|
+
RELEASE_TAG;
|
|
64
|
+
ORGANIZATION;
|
|
57
65
|
PLATFORM = "neutral";
|
|
58
66
|
MODE = "production";
|
|
67
|
+
ENVIRONMENT;
|
|
59
68
|
DEBUG = false;
|
|
60
69
|
TEST = false;
|
|
61
70
|
MINIMAL = false;
|
|
@@ -64,6 +73,9 @@ var BaseEnv = class {
|
|
|
64
73
|
FORCE_HYPERLINK = false;
|
|
65
74
|
STACKTRACE = false;
|
|
66
75
|
INCLUDE_ERROR_DATA = false;
|
|
76
|
+
ERROR_URL;
|
|
77
|
+
DEFAULT_TIMEZONE;
|
|
78
|
+
DEFAULT_LOCALE;
|
|
67
79
|
CI = false;
|
|
68
80
|
static __type = [
|
|
69
81
|
"APP_NAME",
|
|
@@ -134,6 +146,7 @@ var BaseEnv = class {
|
|
|
134
146
|
];
|
|
135
147
|
};
|
|
136
148
|
var BaseSecrets = class {
|
|
149
|
+
ENCRYPTION_KEY;
|
|
137
150
|
static __type = [
|
|
138
151
|
"ENCRYPTION_KEY",
|
|
139
152
|
() => __ΩSecretsInterface,
|
package/dist/index.cjs
CHANGED
|
@@ -13,6 +13,7 @@ const require_defu = require('./node_modules/.pnpm/defu@6.1.4/node_modules/defu/
|
|
|
13
13
|
const require_helpers_load = require('./helpers/load.cjs');
|
|
14
14
|
const require_helpers_create_reflection_resource = require('./helpers/create-reflection-resource.cjs');
|
|
15
15
|
require('./helpers/index.cjs');
|
|
16
|
+
const require_helpers_docs_helper = require('./helpers/docs-helper.cjs');
|
|
16
17
|
const require_helpers_automd_generator = require('./helpers/automd-generator.cjs');
|
|
17
18
|
const require_components_docs = require('./components/docs.cjs');
|
|
18
19
|
const require_components_env = require('./components/env.cjs');
|
|
@@ -22,7 +23,6 @@ require('./babel/index.cjs');
|
|
|
22
23
|
const require_parse_type_definition = require('./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.cjs');
|
|
23
24
|
const require_to_array = require('./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.cjs');
|
|
24
25
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
25
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
26
26
|
let __stryke_env_types = require("@stryke/env/types");
|
|
27
27
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
28
28
|
let __powerlines_plugin_alloy = require("@powerlines/plugin-alloy");
|
|
@@ -32,7 +32,6 @@ __powerlines_plugin_automd = require_rolldown_runtime.__toESM(__powerlines_plugi
|
|
|
32
32
|
let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
|
|
33
33
|
__powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
|
|
34
34
|
let __stryke_fs_exists = require("@stryke/fs/exists");
|
|
35
|
-
let __stryke_fs_helpers = require("@stryke/fs/helpers");
|
|
36
35
|
let __stryke_string_format_constant_case = require("@stryke/string-format/constant-case");
|
|
37
36
|
|
|
38
37
|
//#region src/index.tsx
|
|
@@ -155,22 +154,8 @@ const plugin = (options = {}) => {
|
|
|
155
154
|
}
|
|
156
155
|
},
|
|
157
156
|
async docs() {
|
|
158
|
-
this.debug(
|
|
159
|
-
|
|
160
|
-
if (!(0, __stryke_fs_exists.existsSync)(outputPath)) await (0, __stryke_fs_helpers.createDirectory)(outputPath);
|
|
161
|
-
const reflection = await require_helpers_persistence.readEnvTypeReflection(this, "env");
|
|
162
|
-
const envDocFile = require_join_paths.joinPaths(outputPath, "env.md");
|
|
163
|
-
this.debug(`Documenting environment variables configuration in "${envDocFile}"`);
|
|
164
|
-
await this.fs.write(envDocFile, `<!-- Generated by ${(0, __stryke_string_format_title_case.titleCase)(this.config.framework) || "Powerlines"} -->
|
|
165
|
-
|
|
166
|
-
Below is a list of environment variables used by the [${this.packageJson.name}](https://www.npmjs.com/package/${this.packageJson.name}) package. These values can be updated in the \`.env\` file in the root of the project. The variables in the list below are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.
|
|
167
|
-
|
|
168
|
-
| Name | Description | Type | Default Value | Required |
|
|
169
|
-
| ---- | ----------- | ---- | ------------- | :------: |
|
|
170
|
-
${reflection.getProperties().filter((property) => property.getNameAsString() !== "__POWERLINES_INJECTED__").sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())).map((reflectionProperty) => {
|
|
171
|
-
return `| ${reflectionProperty.getNameAsString().trim()} | ${(reflectionProperty.getDescription()?.replaceAll("\r", "")?.replaceAll("\n", "") ?? "").trim()} | ${(0, __powerlines_deepkit_vendor_type.stringifyType)(reflectionProperty.getType()).trim().replaceAll(" | ", ", or ")} | ${reflectionProperty.hasDefault() ? String(reflectionProperty.getDefaultValue())?.includes("\"") ? reflectionProperty.getDefaultValue() : `\`${reflectionProperty.getDefaultValue()}\`` : ""} | ${reflectionProperty.isValueRequired() ? "" : "✔"} |`;
|
|
172
|
-
}).join("\n")}
|
|
173
|
-
`);
|
|
157
|
+
this.debug(`Documenting environment variables configuration values in "${require_join_paths.joinPaths(require_helpers_docs_helper.getDocsOutputPath(this), "env.md")}"`);
|
|
158
|
+
return this.render((0, __alloy_js_core_jsx_runtime.createComponent)(require_components_docs.EnvDocsFile, { levelOffset: 0 }));
|
|
174
159
|
},
|
|
175
160
|
async buildEnd() {
|
|
176
161
|
const reflectionPath = require_helpers_persistence.getEnvReflectionsPath(this, "env");
|
|
@@ -199,7 +184,7 @@ var src_default = plugin;
|
|
|
199
184
|
exports.BaseEnv = require_helpers_reflect.BaseEnv;
|
|
200
185
|
exports.BaseSecrets = require_helpers_reflect.BaseSecrets;
|
|
201
186
|
exports.EnvBuiltin = require_components_env.EnvBuiltin;
|
|
202
|
-
exports.
|
|
187
|
+
exports.EnvDocsFile = require_components_docs.EnvDocsFile;
|
|
203
188
|
exports.EnvTypeDefinition = require_components_env.EnvTypeDefinition;
|
|
204
189
|
exports.__ΩCreateEnvReflectionOptions = require_helpers_reflect.__ΩCreateEnvReflectionOptions;
|
|
205
190
|
exports.__ΩEnvInterface = require_types_runtime.__ΩEnvInterface;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Plugin } from "./powerlines/src/types/plugin.cjs";
|
|
2
2
|
import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.cjs";
|
|
3
3
|
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.cjs";
|
|
4
|
-
import {
|
|
4
|
+
import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./components/docs.cjs";
|
|
5
5
|
import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps } from "./components/env.cjs";
|
|
6
6
|
import "./components/index.cjs";
|
|
7
7
|
import { createReflectionResource } from "./helpers/create-reflection-resource.cjs";
|
|
@@ -21,4 +21,4 @@ import "./babel/index.cjs";
|
|
|
21
21
|
*/
|
|
22
22
|
declare const plugin: <TContext extends EnvPluginContext = EnvPluginContext>(options?: EnvPluginOptions) => Plugin<TContext>[];
|
|
23
23
|
//#endregion
|
|
24
|
-
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, EnvBuiltin, EnvBuiltinProps,
|
|
24
|
+
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, EnvTypeDefinition, SecretsInterface, __ΩCreateEnvReflectionOptions, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface, createEnvReflection, createReflectionResource, createSecretsReflection, createTemplateReflection, plugin as default, plugin, envBabelPlugin, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Plugin } from "./packages/powerlines/src/types/plugin.mjs";
|
|
2
2
|
import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.mjs";
|
|
3
3
|
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./components/docs.mjs";
|
|
5
5
|
import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps } from "./components/env.mjs";
|
|
6
6
|
import "./components/index.mjs";
|
|
7
7
|
import { createReflectionResource } from "./helpers/create-reflection-resource.mjs";
|
|
@@ -21,4 +21,4 @@ import "./babel/index.mjs";
|
|
|
21
21
|
*/
|
|
22
22
|
declare const plugin: <TContext extends EnvPluginContext = EnvPluginContext>(options?: EnvPluginOptions) => Plugin<TContext>[];
|
|
23
23
|
//#endregion
|
|
24
|
-
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, EnvBuiltin, EnvBuiltinProps,
|
|
24
|
+
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, EnvTypeDefinition, SecretsInterface, __ΩCreateEnvReflectionOptions, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface, createEnvReflection, createReflectionResource, createSecretsReflection, createTemplateReflection, plugin as default, plugin, envBabelPlugin, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
|
package/dist/index.mjs
CHANGED
|
@@ -11,23 +11,22 @@ import { defu } from "./node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/def
|
|
|
11
11
|
import { loadEnv, loadEnvFromContext } from "./helpers/load.mjs";
|
|
12
12
|
import { createReflectionResource } from "./helpers/create-reflection-resource.mjs";
|
|
13
13
|
import "./helpers/index.mjs";
|
|
14
|
+
import { getDocsOutputPath } from "./helpers/docs-helper.mjs";
|
|
14
15
|
import { env } from "./helpers/automd-generator.mjs";
|
|
15
|
-
import {
|
|
16
|
+
import { EnvDocsFile } from "./components/docs.mjs";
|
|
16
17
|
import { EnvBuiltin, EnvTypeDefinition } from "./components/env.mjs";
|
|
17
18
|
import "./components/index.mjs";
|
|
18
19
|
import { envBabelPlugin } from "./babel/plugin.mjs";
|
|
19
20
|
import "./babel/index.mjs";
|
|
20
21
|
import { parseTypeDefinition } from "./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.mjs";
|
|
21
22
|
import { toArray } from "./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.mjs";
|
|
22
|
-
import { ReflectionClass, ReflectionKind
|
|
23
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
23
|
+
import { ReflectionClass, ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
24
24
|
import { ENV_PREFIXES } from "@stryke/env/types";
|
|
25
25
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
26
26
|
import alloy from "@powerlines/plugin-alloy";
|
|
27
27
|
import automd from "@powerlines/plugin-automd";
|
|
28
28
|
import babel from "@powerlines/plugin-babel";
|
|
29
29
|
import { existsSync } from "@stryke/fs/exists";
|
|
30
|
-
import { createDirectory } from "@stryke/fs/helpers";
|
|
31
30
|
import { constantCase } from "@stryke/string-format/constant-case";
|
|
32
31
|
|
|
33
32
|
//#region src/index.tsx
|
|
@@ -150,22 +149,8 @@ const plugin = (options = {}) => {
|
|
|
150
149
|
}
|
|
151
150
|
},
|
|
152
151
|
async docs() {
|
|
153
|
-
this.debug(
|
|
154
|
-
|
|
155
|
-
if (!existsSync(outputPath)) await createDirectory(outputPath);
|
|
156
|
-
const reflection = await readEnvTypeReflection(this, "env");
|
|
157
|
-
const envDocFile = joinPaths(outputPath, "env.md");
|
|
158
|
-
this.debug(`Documenting environment variables configuration in "${envDocFile}"`);
|
|
159
|
-
await this.fs.write(envDocFile, `<!-- Generated by ${titleCase(this.config.framework) || "Powerlines"} -->
|
|
160
|
-
|
|
161
|
-
Below is a list of environment variables used by the [${this.packageJson.name}](https://www.npmjs.com/package/${this.packageJson.name}) package. These values can be updated in the \`.env\` file in the root of the project. The variables in the list below are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.
|
|
162
|
-
|
|
163
|
-
| Name | Description | Type | Default Value | Required |
|
|
164
|
-
| ---- | ----------- | ---- | ------------- | :------: |
|
|
165
|
-
${reflection.getProperties().filter((property) => property.getNameAsString() !== "__POWERLINES_INJECTED__").sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())).map((reflectionProperty) => {
|
|
166
|
-
return `| ${reflectionProperty.getNameAsString().trim()} | ${(reflectionProperty.getDescription()?.replaceAll("\r", "")?.replaceAll("\n", "") ?? "").trim()} | ${stringifyType(reflectionProperty.getType()).trim().replaceAll(" | ", ", or ")} | ${reflectionProperty.hasDefault() ? String(reflectionProperty.getDefaultValue())?.includes("\"") ? reflectionProperty.getDefaultValue() : `\`${reflectionProperty.getDefaultValue()}\`` : ""} | ${reflectionProperty.isValueRequired() ? "" : "✔"} |`;
|
|
167
|
-
}).join("\n")}
|
|
168
|
-
`);
|
|
152
|
+
this.debug(`Documenting environment variables configuration values in "${joinPaths(getDocsOutputPath(this), "env.md")}"`);
|
|
153
|
+
return this.render(createComponent(EnvDocsFile, { levelOffset: 0 }));
|
|
169
154
|
},
|
|
170
155
|
async buildEnd() {
|
|
171
156
|
const reflectionPath = getEnvReflectionsPath(this, "env");
|
|
@@ -191,4 +176,4 @@ ${reflection.getProperties().filter((property) => property.getNameAsString() !==
|
|
|
191
176
|
var src_default = plugin;
|
|
192
177
|
|
|
193
178
|
//#endregion
|
|
194
|
-
export { BaseEnv, BaseSecrets, EnvBuiltin,
|
|
179
|
+
export { BaseEnv, BaseSecrets, EnvBuiltin, EnvDocsFile, EnvTypeDefinition, __ΩCreateEnvReflectionOptions, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface, createEnvReflection, createReflectionResource, createSecretsReflection, createTemplateReflection, src_default as default, envBabelPlugin, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, plugin, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
+
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
|
|
3
|
+
import "@alloy-js/core";
|
|
4
|
+
|
|
5
|
+
//#region ../plugin-alloy/src/markdown/components/markdown-file.d.ts
|
|
6
|
+
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { MarkdownFileProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { UserConfig } from "../../../powerlines/src/types/config.mjs";
|
|
2
|
-
import { ResolvedConfig } from "../../../powerlines/src/types/resolved.mjs";
|
|
3
1
|
import { PluginContext } from "../../../powerlines/src/types/context.mjs";
|
|
2
|
+
import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "../../../plugin-babel/src/types/plugin.mjs";
|
|
4
3
|
import { Children, PrintTreeOptions } from "@alloy-js/core";
|
|
5
4
|
|
|
6
5
|
//#region ../plugin-alloy/src/types/plugin.d.ts
|
|
@@ -24,10 +23,10 @@ type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
|
24
23
|
*/
|
|
25
24
|
markdown?: boolean;
|
|
26
25
|
};
|
|
27
|
-
type AlloyPluginUserConfig =
|
|
26
|
+
type AlloyPluginUserConfig = BabelPluginUserConfig & {
|
|
28
27
|
alloy?: AlloyPluginOptions;
|
|
29
28
|
};
|
|
30
|
-
type AlloyPluginResolvedConfig =
|
|
29
|
+
type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
31
30
|
alloy: AlloyPluginOptions;
|
|
32
31
|
};
|
|
33
32
|
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
+
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
|
|
3
|
+
import "@alloy-js/core";
|
|
4
|
+
|
|
5
|
+
//#region ../plugin-alloy/src/markdown/components/markdown-file.d.ts
|
|
6
|
+
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { MarkdownFileProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { UserConfig } from "../../../powerlines/src/types/config.cjs";
|
|
2
|
-
import { ResolvedConfig } from "../../../powerlines/src/types/resolved.cjs";
|
|
3
1
|
import { PluginContext } from "../../../powerlines/src/types/context.cjs";
|
|
2
|
+
import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "../../../plugin-babel/src/types/plugin.cjs";
|
|
4
3
|
import { Children, PrintTreeOptions } from "@alloy-js/core";
|
|
5
4
|
|
|
6
5
|
//#region ../plugin-alloy/src/types/plugin.d.ts
|
|
@@ -24,10 +23,10 @@ type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
|
24
23
|
*/
|
|
25
24
|
markdown?: boolean;
|
|
26
25
|
};
|
|
27
|
-
type AlloyPluginUserConfig =
|
|
26
|
+
type AlloyPluginUserConfig = BabelPluginUserConfig & {
|
|
28
27
|
alloy?: AlloyPluginOptions;
|
|
29
28
|
};
|
|
30
|
-
type AlloyPluginResolvedConfig =
|
|
29
|
+
type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
31
30
|
alloy: AlloyPluginOptions;
|
|
32
31
|
};
|
|
33
32
|
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Reflection } from "../deepkit/src/types.cjs";
|
|
2
|
+
import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "../plugin-babel/src/types/plugin.cjs";
|
|
2
3
|
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "../plugin-alloy/src/types/plugin.cjs";
|
|
3
4
|
import "../plugin-alloy/src/types/index.cjs";
|
|
4
5
|
import { AutoMDPluginOptions } from "../plugin-automd/src/types/plugin.cjs";
|
|
5
|
-
import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "../plugin-babel/src/types/plugin.cjs";
|
|
6
6
|
import { EnvInterface, SecretsInterface } from "./runtime.cjs";
|
|
7
7
|
import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
8
8
|
import { Children } from "@alloy-js/core";
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Reflection } from "../packages/deepkit/src/types.mjs";
|
|
2
|
+
import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "../packages/plugin-babel/src/types/plugin.mjs";
|
|
2
3
|
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "../packages/plugin-alloy/src/types/plugin.mjs";
|
|
3
4
|
import "../packages/plugin-alloy/src/types/index.mjs";
|
|
4
5
|
import { AutoMDPluginOptions } from "../packages/plugin-automd/src/types/plugin.mjs";
|
|
5
|
-
import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "../packages/plugin-babel/src/types/plugin.mjs";
|
|
6
6
|
import "../packages/plugin-babel/src/types/index.mjs";
|
|
7
7
|
import { EnvInterface, SecretsInterface } from "./runtime.mjs";
|
|
8
8
|
import { DotenvParseOutput } from "@stryke/env/types";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.114",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
|
|
6
6
|
"repository": {
|
|
@@ -201,10 +201,10 @@
|
|
|
201
201
|
"@alloy-js/typescript": "^0.22.0",
|
|
202
202
|
"@babel/core": "^7.28.6",
|
|
203
203
|
"@babel/types": "^7.28.6",
|
|
204
|
-
"@powerlines/plugin-alloy": "^0.18.
|
|
205
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
206
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
207
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
204
|
+
"@powerlines/plugin-alloy": "^0.18.106",
|
|
205
|
+
"@powerlines/plugin-automd": "^0.1.216",
|
|
206
|
+
"@powerlines/plugin-babel": "^0.12.225",
|
|
207
|
+
"@powerlines/plugin-plugin": "^0.12.167",
|
|
208
208
|
"@storm-software/config-tools": "^1.189.0",
|
|
209
209
|
"@stryke/capnp": "^0.12.61",
|
|
210
210
|
"@stryke/env": "^0.20.53",
|
|
@@ -214,14 +214,14 @@
|
|
|
214
214
|
"@stryke/type-checks": "^0.5.20",
|
|
215
215
|
"@stryke/types": "^0.10.34",
|
|
216
216
|
"automd": "^0.4.2",
|
|
217
|
-
"powerlines": "^0.37.
|
|
217
|
+
"powerlines": "^0.37.89"
|
|
218
218
|
},
|
|
219
219
|
"devDependencies": {
|
|
220
|
-
"@powerlines/deepkit": "^0.5.
|
|
221
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
220
|
+
"@powerlines/deepkit": "^0.5.133",
|
|
221
|
+
"@powerlines/plugin-deepkit": "^0.11.95",
|
|
222
222
|
"@types/node": "^24.10.9",
|
|
223
223
|
"vite": "8.0.0-beta.2"
|
|
224
224
|
},
|
|
225
225
|
"publishConfig": { "access": "public" },
|
|
226
|
-
"gitHead": "
|
|
226
|
+
"gitHead": "fb3079ccb0361ffe89bb357f7a526b6281f8bf71"
|
|
227
227
|
}
|