@powerlines/plugin-nodejs 0.1.117 → 0.1.119
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/env.cjs +14 -14
- package/dist/components/env.d.cts +1 -1
- package/dist/components/env.d.mts +1 -1
- package/dist/components/env.mjs +6 -6
- package/dist/index.cjs +8 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +5 -5
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.mts +2 -2
- package/package.json +6 -6
- package/dist/deepkit/schemas/reflection.cjs +0 -3998
- package/dist/deepkit/schemas/reflection.d.cts +0 -1560
- package/dist/deepkit/schemas/reflection.d.mts +0 -1560
- package/dist/deepkit/schemas/reflection.mjs +0 -3996
- package/dist/deepkit/schemas/reflection2.cjs +0 -4112
- package/dist/deepkit/schemas/reflection2.mjs +0 -4110
- package/dist/deepkit/src/capnp.cjs +0 -913
- package/dist/deepkit/src/capnp.mjs +0 -911
- package/dist/deepkit/src/esbuild-plugin.cjs +0 -47
- package/dist/deepkit/src/esbuild-plugin.mjs +0 -46
- package/dist/deepkit/src/reflect-type.cjs +0 -22
- package/dist/deepkit/src/reflect-type.mjs +0 -20
- package/dist/deepkit/src/resolve-reflections.cjs +0 -16
- package/dist/deepkit/src/resolve-reflections.mjs +0 -15
- package/dist/deepkit/src/transformer.cjs +0 -52
- package/dist/deepkit/src/transformer.mjs +0 -49
- package/dist/deepkit/src/transpile.cjs +0 -29
- package/dist/deepkit/src/transpile.mjs +0 -27
- package/dist/deepkit/src/types.d.cts +0 -10
- package/dist/deepkit/src/types.d.mts +0 -10
- package/dist/deepkit/src/utilities.cjs +0 -67
- package/dist/deepkit/src/utilities.mjs +0 -66
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -43
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -42
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
- package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
- package/dist/plugin-alloy/src/core/components/source-file.d.cts +0 -23
- package/dist/plugin-alloy/src/core/components/source-file.d.mts +0 -23
- package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -49
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -44
- package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
- package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -46
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -42
- package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -16
- package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -15
- package/dist/plugin-alloy/src/index.cjs +0 -105
- package/dist/plugin-alloy/src/index.mjs +0 -103
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -115
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -114
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -39
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -38
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -18
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -17
- package/dist/plugin-alloy/src/types/components.d.cts +0 -20
- package/dist/plugin-alloy/src/types/components.d.mts +0 -21
- package/dist/plugin-alloy/src/types/index.d.cts +0 -2
- package/dist/plugin-alloy/src/types/index.d.mts +0 -2
- package/dist/plugin-alloy/src/types/plugin.d.cts +0 -36
- package/dist/plugin-alloy/src/types/plugin.d.mts +0 -36
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -62
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +0 -26
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +0 -26
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -61
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -131
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -129
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -451
- package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +0 -37
- package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +0 -37
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -442
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -216
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +0 -16
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +0 -16
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -213
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -72
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.cts +0 -4
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +0 -4
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -71
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
- package/dist/plugin-automd/src/index.cjs +0 -101
- package/dist/plugin-automd/src/index.mjs +0 -98
- package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
- package/dist/plugin-automd/src/types/plugin.d.mts +0 -40
- package/dist/plugin-automd/src/types/toc.d.cts +0 -33
- package/dist/plugin-automd/src/types/toc.d.mts +0 -33
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -10
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -9
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -41
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -39
- package/dist/plugin-babel/src/helpers/filters.cjs +0 -23
- package/dist/plugin-babel/src/helpers/filters.mjs +0 -21
- package/dist/plugin-babel/src/helpers/index.cjs +0 -5
- package/dist/plugin-babel/src/helpers/index.mjs +0 -7
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -38
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -35
- package/dist/plugin-babel/src/helpers/options.cjs +0 -49
- package/dist/plugin-babel/src/helpers/options.mjs +0 -46
- package/dist/plugin-babel/src/index.cjs +0 -85
- package/dist/plugin-babel/src/index.mjs +0 -83
- package/dist/plugin-babel/src/types/index.d.mts +0 -1
- package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
- package/dist/plugin-babel/src/types/plugin.d.mts +0 -15
- package/dist/plugin-env/src/babel/index.cjs +0 -1
- package/dist/plugin-env/src/babel/index.mjs +0 -3
- package/dist/plugin-env/src/babel/plugin.cjs +0 -70
- package/dist/plugin-env/src/babel/plugin.mjs +0 -69
- package/dist/plugin-env/src/components/docs.cjs +0 -70
- package/dist/plugin-env/src/components/docs.mjs +0 -69
- package/dist/plugin-env/src/components/env.cjs +0 -589
- package/dist/plugin-env/src/components/env.d.cts +0 -11
- package/dist/plugin-env/src/components/env.d.mts +0 -11
- package/dist/plugin-env/src/components/env.mjs +0 -586
- package/dist/plugin-env/src/components/index.cjs +0 -2
- package/dist/plugin-env/src/components/index.mjs +0 -4
- package/dist/plugin-env/src/helpers/automd-generator.cjs +0 -22
- package/dist/plugin-env/src/helpers/automd-generator.mjs +0 -21
- package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +0 -55
- package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +0 -54
- package/dist/plugin-env/src/helpers/docs-helper.cjs +0 -16
- package/dist/plugin-env/src/helpers/docs-helper.mjs +0 -15
- package/dist/plugin-env/src/helpers/index.cjs +0 -6
- package/dist/plugin-env/src/helpers/index.mjs +0 -8
- package/dist/plugin-env/src/helpers/load.cjs +0 -84
- package/dist/plugin-env/src/helpers/load.mjs +0 -81
- package/dist/plugin-env/src/helpers/persistence.cjs +0 -201
- package/dist/plugin-env/src/helpers/persistence.mjs +0 -190
- package/dist/plugin-env/src/helpers/reflect.cjs +0 -125
- package/dist/plugin-env/src/helpers/reflect.mjs +0 -117
- package/dist/plugin-env/src/helpers/source-file-env.cjs +0 -24
- package/dist/plugin-env/src/helpers/source-file-env.mjs +0 -23
- package/dist/plugin-env/src/helpers/template-helpers.cjs +0 -2
- package/dist/plugin-env/src/helpers/template-helpers.mjs +0 -4
- package/dist/plugin-env/src/index.cjs +0 -177
- package/dist/plugin-env/src/index.mjs +0 -175
- package/dist/plugin-env/src/types/plugin.d.cts +0 -149
- package/dist/plugin-env/src/types/plugin.d.mts +0 -150
- package/dist/plugin-env/src/types/runtime.d.cts +0 -789
- package/dist/plugin-env/src/types/runtime.d.mts +0 -789
- package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -49
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -93
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -91
- package/dist/powerlines/src/lib/constants/environments.cjs +0 -6
- package/dist/powerlines/src/lib/constants/environments.mjs +0 -5
- package/dist/powerlines/src/lib/entry.cjs +0 -11
- package/dist/powerlines/src/lib/entry.mjs +0 -13
- package/dist/powerlines/src/lib/logger.cjs +0 -41
- package/dist/powerlines/src/lib/logger.mjs +0 -39
- package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -38
- package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -35
- package/dist/powerlines/src/lib/unplugin/helpers.cjs +0 -3
- package/dist/powerlines/src/lib/unplugin/helpers.mjs +0 -5
- package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +0 -66
- package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +0 -65
- package/dist/powerlines/src/lib/unplugin/plugin.cjs +0 -46
- package/dist/powerlines/src/lib/unplugin/plugin.mjs +0 -45
- package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -42
- package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -40
- package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -50
- package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -49
- package/dist/powerlines/src/lib/utilities/source-file.cjs +0 -5
- package/dist/powerlines/src/lib/utilities/source-file.mjs +0 -5
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -1
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -3
- package/dist/powerlines/src/types/api.d.cts +0 -104
- package/dist/powerlines/src/types/api.d.mts +0 -104
- package/dist/powerlines/src/types/babel.d.cts +0 -22
- package/dist/powerlines/src/types/babel.d.mts +0 -22
- package/dist/powerlines/src/types/build.cjs +0 -21
- package/dist/powerlines/src/types/build.d.cts +0 -185
- package/dist/powerlines/src/types/build.d.mts +0 -185
- package/dist/powerlines/src/types/build.mjs +0 -21
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -9
- package/dist/powerlines/src/types/config.d.cts +0 -435
- package/dist/powerlines/src/types/config.d.mts +0 -436
- package/dist/powerlines/src/types/context.d.cts +0 -514
- package/dist/powerlines/src/types/context.d.mts +0 -514
- package/dist/powerlines/src/types/fs.d.cts +0 -486
- package/dist/powerlines/src/types/fs.d.mts +0 -486
- package/dist/powerlines/src/types/hooks.d.cts +0 -32
- package/dist/powerlines/src/types/hooks.d.mts +0 -32
- package/dist/powerlines/src/types/plugin.d.cts +0 -205
- package/dist/powerlines/src/types/plugin.d.mts +0 -205
- package/dist/powerlines/src/types/resolved.d.cts +0 -94
- package/dist/powerlines/src/types/resolved.d.mts +0 -94
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
- package/dist/powerlines/src/types/unplugin.d.cts +0 -22
- package/dist/powerlines/src/types/unplugin.d.mts +0 -23
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_context = require('../../core/contexts/context.cjs');
|
|
3
|
-
const require_single_line_comment = require('../../core/components/single-line-comment.cjs');
|
|
4
|
-
const require_source_file = require('../../core/components/source-file.cjs');
|
|
5
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
7
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
8
|
-
let __alloy_js_markdown = require("@alloy-js/markdown");
|
|
9
|
-
|
|
10
|
-
//#region ../plugin-alloy/src/markdown/components/markdown-file.tsx
|
|
11
|
-
/**
|
|
12
|
-
* A base component representing a Powerlines generated markdown source file.
|
|
13
|
-
*
|
|
14
|
-
* @param props - The properties for the source file.
|
|
15
|
-
* @returns The rendered source file component.
|
|
16
|
-
*/
|
|
17
|
-
function MarkdownFile(props) {
|
|
18
|
-
const [{ children, storage }, rest] = (0, __alloy_js_core.splitProps)(props, ["children", "storage"]);
|
|
19
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get header() {
|
|
20
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownFileHeader, {});
|
|
21
|
-
} }, rest, {
|
|
22
|
-
filetype: "md",
|
|
23
|
-
reference: __alloy_js_markdown.Link,
|
|
24
|
-
storage,
|
|
25
|
-
get children() {
|
|
26
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
27
|
-
get when() {
|
|
28
|
-
return Boolean(children);
|
|
29
|
-
},
|
|
30
|
-
children
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Renders the header for a Powerlines Typescript source file.
|
|
37
|
-
*
|
|
38
|
-
* @param props - The properties for the source file header.
|
|
39
|
-
* @returns The rendered source file header.
|
|
40
|
-
*/
|
|
41
|
-
function MarkdownFileHeader(props) {
|
|
42
|
-
const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = (0, __alloy_js_core.splitProps)(props, [
|
|
43
|
-
"children",
|
|
44
|
-
"disableEslint",
|
|
45
|
-
"disableBiome",
|
|
46
|
-
"disablePrettier"
|
|
47
|
-
]);
|
|
48
|
-
const context = require_context.usePowerlinesSafe();
|
|
49
|
-
return [
|
|
50
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
51
|
-
get when() {
|
|
52
|
-
return Boolean(disableEslint);
|
|
53
|
-
},
|
|
54
|
-
get children() {
|
|
55
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
56
|
-
variant: "markdown",
|
|
57
|
-
children: "eslint-disable"
|
|
58
|
-
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
59
|
-
}
|
|
60
|
-
}),
|
|
61
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
62
|
-
get when() {
|
|
63
|
-
return Boolean(disablePrettier);
|
|
64
|
-
},
|
|
65
|
-
get children() {
|
|
66
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
67
|
-
variant: "markdown",
|
|
68
|
-
children: "prettier-ignore"
|
|
69
|
-
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
70
|
-
}
|
|
71
|
-
}),
|
|
72
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
73
|
-
get when() {
|
|
74
|
-
return Boolean(disableBiome);
|
|
75
|
-
},
|
|
76
|
-
get children() {
|
|
77
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
78
|
-
variant: "markdown",
|
|
79
|
-
children: "biome-ignore lint: disable"
|
|
80
|
-
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
81
|
-
}
|
|
82
|
-
}),
|
|
83
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
84
|
-
get when() {
|
|
85
|
-
return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
|
|
86
|
-
},
|
|
87
|
-
get children() {
|
|
88
|
-
return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
|
|
89
|
-
}
|
|
90
|
-
}),
|
|
91
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
92
|
-
get when() {
|
|
93
|
-
return Boolean(children);
|
|
94
|
-
},
|
|
95
|
-
get children() {
|
|
96
|
-
return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
97
|
-
}
|
|
98
|
-
}),
|
|
99
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
100
|
-
variant: "markdown",
|
|
101
|
-
get children() {
|
|
102
|
-
return `Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config?.framework) || "Powerlines"}`;
|
|
103
|
-
}
|
|
104
|
-
}),
|
|
105
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
106
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
107
|
-
variant: "markdown",
|
|
108
|
-
children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`
|
|
109
|
-
}),
|
|
110
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
111
|
-
];
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
//#endregion
|
|
115
|
-
exports.MarkdownFile = MarkdownFile;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
2
|
-
import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
|
|
3
|
-
import { SourceFile } from "../../core/components/source-file.mjs";
|
|
4
|
-
import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
6
|
-
import { Show, code, splitProps } from "@alloy-js/core";
|
|
7
|
-
import { Link } from "@alloy-js/markdown";
|
|
8
|
-
|
|
9
|
-
//#region ../plugin-alloy/src/markdown/components/markdown-file.tsx
|
|
10
|
-
/**
|
|
11
|
-
* A base component representing a Powerlines generated markdown source file.
|
|
12
|
-
*
|
|
13
|
-
* @param props - The properties for the source file.
|
|
14
|
-
* @returns The rendered source file component.
|
|
15
|
-
*/
|
|
16
|
-
function MarkdownFile(props) {
|
|
17
|
-
const [{ children, storage }, rest] = splitProps(props, ["children", "storage"]);
|
|
18
|
-
return createComponent(SourceFile, mergeProps({ get header() {
|
|
19
|
-
return createComponent(MarkdownFileHeader, {});
|
|
20
|
-
} }, rest, {
|
|
21
|
-
filetype: "md",
|
|
22
|
-
reference: Link,
|
|
23
|
-
storage,
|
|
24
|
-
get children() {
|
|
25
|
-
return createComponent(Show, {
|
|
26
|
-
get when() {
|
|
27
|
-
return Boolean(children);
|
|
28
|
-
},
|
|
29
|
-
children
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Renders the header for a Powerlines Typescript source file.
|
|
36
|
-
*
|
|
37
|
-
* @param props - The properties for the source file header.
|
|
38
|
-
* @returns The rendered source file header.
|
|
39
|
-
*/
|
|
40
|
-
function MarkdownFileHeader(props) {
|
|
41
|
-
const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = splitProps(props, [
|
|
42
|
-
"children",
|
|
43
|
-
"disableEslint",
|
|
44
|
-
"disableBiome",
|
|
45
|
-
"disablePrettier"
|
|
46
|
-
]);
|
|
47
|
-
const context = usePowerlinesSafe();
|
|
48
|
-
return [
|
|
49
|
-
createComponent(Show, {
|
|
50
|
-
get when() {
|
|
51
|
-
return Boolean(disableEslint);
|
|
52
|
-
},
|
|
53
|
-
get children() {
|
|
54
|
-
return [createComponent(SingleLineComment, {
|
|
55
|
-
variant: "markdown",
|
|
56
|
-
children: "eslint-disable"
|
|
57
|
-
}), createIntrinsic("hbr", {})];
|
|
58
|
-
}
|
|
59
|
-
}),
|
|
60
|
-
createComponent(Show, {
|
|
61
|
-
get when() {
|
|
62
|
-
return Boolean(disablePrettier);
|
|
63
|
-
},
|
|
64
|
-
get children() {
|
|
65
|
-
return [createComponent(SingleLineComment, {
|
|
66
|
-
variant: "markdown",
|
|
67
|
-
children: "prettier-ignore"
|
|
68
|
-
}), createIntrinsic("hbr", {})];
|
|
69
|
-
}
|
|
70
|
-
}),
|
|
71
|
-
createComponent(Show, {
|
|
72
|
-
get when() {
|
|
73
|
-
return Boolean(disableBiome);
|
|
74
|
-
},
|
|
75
|
-
get children() {
|
|
76
|
-
return [createComponent(SingleLineComment, {
|
|
77
|
-
variant: "markdown",
|
|
78
|
-
children: "biome-ignore lint: disable"
|
|
79
|
-
}), createIntrinsic("hbr", {})];
|
|
80
|
-
}
|
|
81
|
-
}),
|
|
82
|
-
createComponent(Show, {
|
|
83
|
-
get when() {
|
|
84
|
-
return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
|
|
85
|
-
},
|
|
86
|
-
get children() {
|
|
87
|
-
return createIntrinsic("hbr", {});
|
|
88
|
-
}
|
|
89
|
-
}),
|
|
90
|
-
createComponent(Show, {
|
|
91
|
-
get when() {
|
|
92
|
-
return Boolean(children);
|
|
93
|
-
},
|
|
94
|
-
get children() {
|
|
95
|
-
return [children, createIntrinsic("hbr", {})];
|
|
96
|
-
}
|
|
97
|
-
}),
|
|
98
|
-
createComponent(SingleLineComment, {
|
|
99
|
-
variant: "markdown",
|
|
100
|
-
get children() {
|
|
101
|
-
return `Generated by ${titleCase(context?.config?.framework) || "Powerlines"}`;
|
|
102
|
-
}
|
|
103
|
-
}),
|
|
104
|
-
createIntrinsic("hbr", {}),
|
|
105
|
-
createComponent(SingleLineComment, {
|
|
106
|
-
variant: "markdown",
|
|
107
|
-
children: code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`
|
|
108
|
-
}),
|
|
109
|
-
createIntrinsic("hbr", {})
|
|
110
|
-
];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
//#endregion
|
|
114
|
-
export { MarkdownFile };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_markdown_table = require('../contexts/markdown-table.cjs');
|
|
3
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
5
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
-
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
7
|
-
|
|
8
|
-
//#region ../plugin-alloy/src/markdown/components/markdown-table.tsx
|
|
9
|
-
/**
|
|
10
|
-
* Component that provides a context for rendering markdown tables.
|
|
11
|
-
*/
|
|
12
|
-
function MarkdownTable(props) {
|
|
13
|
-
const [{ children, data }] = (0, __alloy_js_core.splitProps)(props, ["children", "data"]);
|
|
14
|
-
const columns = (0, __alloy_js_core.computed)(() => Object.keys(data).map((name, index) => ({
|
|
15
|
-
index,
|
|
16
|
-
name,
|
|
17
|
-
align: "left",
|
|
18
|
-
width: 20
|
|
19
|
-
})));
|
|
20
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_markdown_table.MarkdownTableContext.Provider, {
|
|
21
|
-
get value() {
|
|
22
|
-
return {
|
|
23
|
-
columns: columns.value,
|
|
24
|
-
data
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
get children() {
|
|
28
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
29
|
-
get when() {
|
|
30
|
-
return Boolean(children);
|
|
31
|
-
},
|
|
32
|
-
children
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
exports.MarkdownTable = MarkdownTable;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { MarkdownTableContext } from "../contexts/markdown-table.mjs";
|
|
2
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
4
|
-
import { Prose, Show, code, computed, splitProps } from "@alloy-js/core";
|
|
5
|
-
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
6
|
-
|
|
7
|
-
//#region ../plugin-alloy/src/markdown/components/markdown-table.tsx
|
|
8
|
-
/**
|
|
9
|
-
* Component that provides a context for rendering markdown tables.
|
|
10
|
-
*/
|
|
11
|
-
function MarkdownTable(props) {
|
|
12
|
-
const [{ children, data }] = splitProps(props, ["children", "data"]);
|
|
13
|
-
const columns = computed(() => Object.keys(data).map((name, index) => ({
|
|
14
|
-
index,
|
|
15
|
-
name,
|
|
16
|
-
align: "left",
|
|
17
|
-
width: 20
|
|
18
|
-
})));
|
|
19
|
-
return createComponent(MarkdownTableContext.Provider, {
|
|
20
|
-
get value() {
|
|
21
|
-
return {
|
|
22
|
-
columns: columns.value,
|
|
23
|
-
data
|
|
24
|
-
};
|
|
25
|
-
},
|
|
26
|
-
get children() {
|
|
27
|
-
return createComponent(Show, {
|
|
28
|
-
get when() {
|
|
29
|
-
return Boolean(children);
|
|
30
|
-
},
|
|
31
|
-
children
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
export { MarkdownTable };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
-
|
|
4
|
-
//#region ../plugin-alloy/src/markdown/contexts/markdown-table.ts
|
|
5
|
-
/**
|
|
6
|
-
* The Powerlines context used in template rendering.
|
|
7
|
-
*/
|
|
8
|
-
const MarkdownTableColumnContext = (0, __alloy_js_core.createNamedContext)("markdown-table-column", {});
|
|
9
|
-
/**
|
|
10
|
-
* The Powerlines context used in template rendering.
|
|
11
|
-
*/
|
|
12
|
-
const MarkdownTableContext = (0, __alloy_js_core.createContext)({
|
|
13
|
-
columns: [],
|
|
14
|
-
data: []
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
exports.MarkdownTableContext = MarkdownTableContext;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createContext, createNamedContext, useContext } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region ../plugin-alloy/src/markdown/contexts/markdown-table.ts
|
|
4
|
-
/**
|
|
5
|
-
* The Powerlines context used in template rendering.
|
|
6
|
-
*/
|
|
7
|
-
const MarkdownTableColumnContext = createNamedContext("markdown-table-column", {});
|
|
8
|
-
/**
|
|
9
|
-
* The Powerlines context used in template rendering.
|
|
10
|
-
*/
|
|
11
|
-
const MarkdownTableContext = createContext({
|
|
12
|
-
columns: [],
|
|
13
|
-
data: []
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
export { MarkdownTableContext };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region ../plugin-alloy/src/types/components.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* A type that represents the props of a component that can have children.
|
|
8
|
-
*/
|
|
9
|
-
interface ComponentProps {
|
|
10
|
-
children?: Children;
|
|
11
|
-
}
|
|
12
|
-
interface TypescriptFileImportItem {
|
|
13
|
-
name: string;
|
|
14
|
-
default?: boolean;
|
|
15
|
-
alias?: string;
|
|
16
|
-
type?: boolean;
|
|
17
|
-
}
|
|
18
|
-
type TypescriptFileImports = Record<string, null | string | Array<TypescriptFileImportItem | string>>;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { ComponentProps, TypescriptFileImportItem, TypescriptFileImports };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import "../../../powerlines/src/types/resolved.mjs";
|
|
2
|
-
import { Children } from "@alloy-js/core";
|
|
3
|
-
import { SourceFileContext as SourceFileContext$1 } from "@alloy-js/typescript";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-alloy/src/types/components.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A type that represents the props of a component that can have children.
|
|
9
|
-
*/
|
|
10
|
-
interface ComponentProps {
|
|
11
|
-
children?: Children;
|
|
12
|
-
}
|
|
13
|
-
interface TypescriptFileImportItem {
|
|
14
|
-
name: string;
|
|
15
|
-
default?: boolean;
|
|
16
|
-
alias?: string;
|
|
17
|
-
type?: boolean;
|
|
18
|
-
}
|
|
19
|
-
type TypescriptFileImports = Record<string, null | string | Array<TypescriptFileImportItem | string>>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { ComponentProps, TypescriptFileImportItem, TypescriptFileImports };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { PluginContext } from "../../../powerlines/src/types/context.cjs";
|
|
2
|
-
import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "../../../plugin-babel/src/types/plugin.cjs";
|
|
3
|
-
import { Children, PrintTreeOptions } from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-alloy/src/types/plugin.d.ts
|
|
6
|
-
type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
7
|
-
/**
|
|
8
|
-
* If true, the Alloy framework is used to generate Typescript output files.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue true
|
|
11
|
-
*/
|
|
12
|
-
typescript?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* If true, the Alloy framework is used to generate JSON output files.
|
|
15
|
-
*
|
|
16
|
-
* @defaultValue false
|
|
17
|
-
*/
|
|
18
|
-
json?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* If true, the Alloy framework is used to generate Markdown output files.
|
|
21
|
-
*
|
|
22
|
-
* @defaultValue false
|
|
23
|
-
*/
|
|
24
|
-
markdown?: boolean;
|
|
25
|
-
};
|
|
26
|
-
type AlloyPluginUserConfig = BabelPluginUserConfig & {
|
|
27
|
-
alloy?: AlloyPluginOptions;
|
|
28
|
-
};
|
|
29
|
-
type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
30
|
-
alloy: AlloyPluginOptions;
|
|
31
|
-
};
|
|
32
|
-
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
33
|
-
render: (children: Children) => Promise<void>;
|
|
34
|
-
};
|
|
35
|
-
//#endregion
|
|
36
|
-
export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { PluginContext } from "../../../powerlines/src/types/context.mjs";
|
|
2
|
-
import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "../../../plugin-babel/src/types/plugin.mjs";
|
|
3
|
-
import { Children, PrintTreeOptions } from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-alloy/src/types/plugin.d.ts
|
|
6
|
-
type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
7
|
-
/**
|
|
8
|
-
* If true, the Alloy framework is used to generate Typescript output files.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue true
|
|
11
|
-
*/
|
|
12
|
-
typescript?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* If true, the Alloy framework is used to generate JSON output files.
|
|
15
|
-
*
|
|
16
|
-
* @defaultValue false
|
|
17
|
-
*/
|
|
18
|
-
json?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* If true, the Alloy framework is used to generate Markdown output files.
|
|
21
|
-
*
|
|
22
|
-
* @defaultValue false
|
|
23
|
-
*/
|
|
24
|
-
markdown?: boolean;
|
|
25
|
-
};
|
|
26
|
-
type AlloyPluginUserConfig = BabelPluginUserConfig & {
|
|
27
|
-
alloy?: AlloyPluginOptions;
|
|
28
|
-
};
|
|
29
|
-
type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
30
|
-
alloy: AlloyPluginOptions;
|
|
31
|
-
};
|
|
32
|
-
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
33
|
-
render: (children: Children) => Promise<void>;
|
|
34
|
-
};
|
|
35
|
-
//#endregion
|
|
36
|
-
export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_context = require('../../core/contexts/context.cjs');
|
|
3
|
-
const require_tsdoc = require('./tsdoc.cjs');
|
|
4
|
-
const require_typescript_file = require('./typescript-file.cjs');
|
|
5
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
-
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
7
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
8
|
-
let __stryke_path_replace = require("@stryke/path/replace");
|
|
9
|
-
let __stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
|
|
10
|
-
|
|
11
|
-
//#region ../plugin-alloy/src/typescript/components/builtin-file.tsx
|
|
12
|
-
/**
|
|
13
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
14
|
-
*
|
|
15
|
-
* @param props - The properties for the source file.
|
|
16
|
-
* @returns The rendered source file component.
|
|
17
|
-
*/
|
|
18
|
-
function BuiltinFile(props) {
|
|
19
|
-
const [{ children, imports, builtinImports, id, description, tsx }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
20
|
-
"children",
|
|
21
|
-
"imports",
|
|
22
|
-
"builtinImports",
|
|
23
|
-
"id",
|
|
24
|
-
"description",
|
|
25
|
-
"tsx"
|
|
26
|
-
]);
|
|
27
|
-
const context = require_context.usePowerlinesSafe();
|
|
28
|
-
const path = (0, __alloy_js_core.computed)(() => (0, __stryke_path_replace.replacePath)(`${!(0, __stryke_type_checks_is_set.isSet)(tsx) ? id : (0, __stryke_path_replace.replaceExtension)(id)}${(0, __stryke_path_file_path_fns.hasFileExtension)(id) && !(0, __stryke_type_checks_is_set.isSet)(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.builtinsPath));
|
|
29
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_file.TypescriptFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({
|
|
30
|
-
get header() {
|
|
31
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_file.TypescriptFileHeader, {
|
|
32
|
-
get header() {
|
|
33
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocModule, {
|
|
34
|
-
name: id,
|
|
35
|
-
children: description
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
get children() {
|
|
39
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_file.TypescriptFileHeaderImports, {
|
|
40
|
-
imports,
|
|
41
|
-
builtinImports
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
get meta() {
|
|
47
|
-
return {
|
|
48
|
-
kind: "builtin",
|
|
49
|
-
extension: tsx ? "tsx" : "ts",
|
|
50
|
-
id: (0, __stryke_path_replace.replaceExtension)(id)
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}, rest, {
|
|
54
|
-
get path() {
|
|
55
|
-
return path.value;
|
|
56
|
-
},
|
|
57
|
-
children
|
|
58
|
-
}));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
//#endregion
|
|
62
|
-
exports.BuiltinFile = BuiltinFile;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TSDocModuleProps } from "./tsdoc.cjs";
|
|
2
|
-
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
3
|
-
import "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-alloy/src/typescript/components/builtin-file.d.ts
|
|
6
|
-
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
7
|
-
/**
|
|
8
|
-
* The runtime module identifier.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* This value will be included after the \`storm:\` prefix in the import statement.
|
|
12
|
-
*/
|
|
13
|
-
id: string;
|
|
14
|
-
/**
|
|
15
|
-
* The description for the builtin module.
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether the file is a TSX file.
|
|
20
|
-
*
|
|
21
|
-
* @defaultValue false
|
|
22
|
-
*/
|
|
23
|
-
tsx?: boolean;
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { BuiltinFileProps };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TSDocModuleProps } from "./tsdoc.mjs";
|
|
2
|
-
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
3
|
-
import "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-alloy/src/typescript/components/builtin-file.d.ts
|
|
6
|
-
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
7
|
-
/**
|
|
8
|
-
* The runtime module identifier.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* This value will be included after the \`storm:\` prefix in the import statement.
|
|
12
|
-
*/
|
|
13
|
-
id: string;
|
|
14
|
-
/**
|
|
15
|
-
* The description for the builtin module.
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether the file is a TSX file.
|
|
20
|
-
*
|
|
21
|
-
* @defaultValue false
|
|
22
|
-
*/
|
|
23
|
-
tsx?: boolean;
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { BuiltinFileProps };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
2
|
-
import { TSDocModule } from "./tsdoc.mjs";
|
|
3
|
-
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports } from "./typescript-file.mjs";
|
|
4
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
|
-
import { hasFileExtension } from "@stryke/path/file-path-fns";
|
|
6
|
-
import { computed, splitProps } from "@alloy-js/core";
|
|
7
|
-
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
8
|
-
import { isSet } from "@stryke/type-checks/is-set";
|
|
9
|
-
|
|
10
|
-
//#region ../plugin-alloy/src/typescript/components/builtin-file.tsx
|
|
11
|
-
/**
|
|
12
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
13
|
-
*
|
|
14
|
-
* @param props - The properties for the source file.
|
|
15
|
-
* @returns The rendered source file component.
|
|
16
|
-
*/
|
|
17
|
-
function BuiltinFile(props) {
|
|
18
|
-
const [{ children, imports, builtinImports, id, description, tsx }, rest] = splitProps(props, [
|
|
19
|
-
"children",
|
|
20
|
-
"imports",
|
|
21
|
-
"builtinImports",
|
|
22
|
-
"id",
|
|
23
|
-
"description",
|
|
24
|
-
"tsx"
|
|
25
|
-
]);
|
|
26
|
-
const context = usePowerlinesSafe();
|
|
27
|
-
const path = computed(() => replacePath(`${!isSet(tsx) ? id : replaceExtension(id)}${hasFileExtension(id) && !isSet(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.builtinsPath));
|
|
28
|
-
return createComponent(TypescriptFile, mergeProps({
|
|
29
|
-
get header() {
|
|
30
|
-
return createComponent(TypescriptFileHeader, {
|
|
31
|
-
get header() {
|
|
32
|
-
return createComponent(TSDocModule, {
|
|
33
|
-
name: id,
|
|
34
|
-
children: description
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
get children() {
|
|
38
|
-
return createComponent(TypescriptFileHeaderImports, {
|
|
39
|
-
imports,
|
|
40
|
-
builtinImports
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
},
|
|
45
|
-
get meta() {
|
|
46
|
-
return {
|
|
47
|
-
kind: "builtin",
|
|
48
|
-
extension: tsx ? "tsx" : "ts",
|
|
49
|
-
id: replaceExtension(id)
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}, rest, {
|
|
53
|
-
get path() {
|
|
54
|
-
return path.value;
|
|
55
|
-
},
|
|
56
|
-
children
|
|
57
|
-
}));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
export { BuiltinFile };
|