@powerlines/plugin-alloy 0.18.116 → 0.18.118
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/core/components/index.cjs +6 -6
- package/dist/core/components/index.mjs +1 -1
- package/dist/core/components/output.cjs +5 -15
- package/dist/core/components/output.d.cts +5 -5
- package/dist/core/components/output.d.mts +5 -5
- package/dist/core/components/output.mjs +9 -19
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/source-file.d.cts +5 -5
- package/dist/core/components/source-file.d.mts +5 -5
- package/dist/core/contexts/context.cjs +2 -8
- package/dist/core/contexts/context.d.cts +1 -6
- package/dist/core/contexts/context.d.mts +1 -6
- package/dist/core/contexts/context.mjs +3 -7
- package/dist/core/contexts/index.cjs +0 -1
- package/dist/core/contexts/index.d.cts +2 -2
- package/dist/core/contexts/index.d.mts +2 -2
- package/dist/core/contexts/index.mjs +2 -2
- package/dist/core/contexts/reflection.cjs +3 -3
- package/dist/core/contexts/reflection.mjs +3 -3
- package/dist/core/index.cjs +6 -7
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.mjs +3 -3
- package/dist/index.cjs +13 -10
- package/dist/index.mjs +11 -8
- package/dist/internal/unctx.cjs +12 -0
- package/dist/internal/unctx.mjs +11 -0
- package/dist/types/components.d.cts +5 -126
- package/dist/types/components.d.mts +5 -126
- package/dist/types/plugin.d.cts +2 -9
- package/dist/types/plugin.d.mts +2 -9
- package/package.json +8 -7
- package/dist/helpers/capnp.cjs +0 -276
- package/dist/helpers/capnp.d.cts +0 -87
- package/dist/helpers/capnp.d.mts +0 -87
- package/dist/helpers/capnp.mjs +0 -259
- package/dist/helpers/create-builtin.cjs +0 -19
- package/dist/helpers/create-builtin.d.cts +0 -15
- package/dist/helpers/create-builtin.d.mts +0 -15
- package/dist/helpers/create-builtin.mjs +0 -18
- package/dist/helpers/index.cjs +0 -24
- package/dist/helpers/index.d.cts +0 -5
- package/dist/helpers/index.d.mts +0 -5
- package/dist/helpers/index.mjs +0 -6
- package/dist/helpers/refkey.cjs +0 -16
- package/dist/helpers/refkey.d.cts +0 -13
- package/dist/helpers/refkey.d.mts +0 -13
- package/dist/helpers/refkey.mjs +0 -15
- package/dist/helpers/typescript.cjs +0 -46
- package/dist/helpers/typescript.d.cts +0 -25
- package/dist/helpers/typescript.d.mts +0 -25
- package/dist/helpers/typescript.mjs +0 -45
- package/dist/markdown/components/index.cjs +0 -8
- package/dist/markdown/components/index.d.cts +0 -3
- package/dist/markdown/components/index.d.mts +0 -3
- package/dist/markdown/components/index.mjs +0 -4
- package/dist/markdown/components/markdown-file.cjs +0 -116
- package/dist/markdown/components/markdown-file.d.cts +0 -23
- package/dist/markdown/components/markdown-file.d.mts +0 -23
- package/dist/markdown/components/markdown-file.mjs +0 -114
- package/dist/markdown/components/markdown-table.cjs +0 -101
- package/dist/markdown/components/markdown-table.d.cts +0 -27
- package/dist/markdown/components/markdown-table.d.mts +0 -27
- package/dist/markdown/components/markdown-table.mjs +0 -98
- package/dist/markdown/contexts/index.cjs +0 -6
- package/dist/markdown/contexts/index.d.cts +0 -2
- package/dist/markdown/contexts/index.d.mts +0 -2
- package/dist/markdown/contexts/index.mjs +0 -3
- package/dist/markdown/contexts/markdown-table.cjs +0 -37
- package/dist/markdown/contexts/markdown-table.d.cts +0 -37
- package/dist/markdown/contexts/markdown-table.d.mts +0 -37
- package/dist/markdown/contexts/markdown-table.mjs +0 -33
- package/dist/markdown/index.cjs +0 -15
- package/dist/markdown/index.d.cts +0 -6
- package/dist/markdown/index.d.mts +0 -6
- package/dist/markdown/index.mjs +0 -7
- package/dist/types/components.cjs +0 -0
- package/dist/types/components.mjs +0 -1
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -3
- package/dist/types/index.d.mts +0 -3
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.mjs +0 -1
- package/dist/typescript/components/builtin-file.cjs +0 -62
- package/dist/typescript/components/builtin-file.d.cts +0 -34
- package/dist/typescript/components/builtin-file.d.mts +0 -34
- package/dist/typescript/components/builtin-file.mjs +0 -61
- package/dist/typescript/components/dynamic-import-statement.cjs +0 -25
- package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
- package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
- package/dist/typescript/components/dynamic-import-statement.mjs +0 -24
- package/dist/typescript/components/entry-file.cjs +0 -42
- package/dist/typescript/components/entry-file.d.cts +0 -27
- package/dist/typescript/components/entry-file.d.mts +0 -27
- package/dist/typescript/components/entry-file.mjs +0 -40
- package/dist/typescript/components/index.cjs +0 -44
- package/dist/typescript/components/index.d.cts +0 -10
- package/dist/typescript/components/index.d.mts +0 -10
- package/dist/typescript/components/index.mjs +0 -11
- package/dist/typescript/components/record-expression.cjs +0 -12
- package/dist/typescript/components/record-expression.d.cts +0 -12
- package/dist/typescript/components/record-expression.d.mts +0 -12
- package/dist/typescript/components/record-expression.mjs +0 -11
- package/dist/typescript/components/tsdoc-reflection.cjs +0 -178
- package/dist/typescript/components/tsdoc-reflection.d.cts +0 -18
- package/dist/typescript/components/tsdoc-reflection.d.mts +0 -18
- package/dist/typescript/components/tsdoc-reflection.mjs +0 -175
- package/dist/typescript/components/tsdoc.cjs +0 -485
- package/dist/typescript/components/tsdoc.d.cts +0 -163
- package/dist/typescript/components/tsdoc.d.mts +0 -163
- package/dist/typescript/components/tsdoc.mjs +0 -465
- package/dist/typescript/components/typescript-file.cjs +0 -216
- package/dist/typescript/components/typescript-file.d.cts +0 -49
- package/dist/typescript/components/typescript-file.d.mts +0 -49
- package/dist/typescript/components/typescript-file.mjs +0 -213
- package/dist/typescript/components/typescript-interface.cjs +0 -73
- package/dist/typescript/components/typescript-interface.d.cts +0 -25
- package/dist/typescript/components/typescript-interface.d.mts +0 -25
- package/dist/typescript/components/typescript-interface.mjs +0 -71
- package/dist/typescript/components/typescript-object.cjs +0 -125
- package/dist/typescript/components/typescript-object.d.cts +0 -29
- package/dist/typescript/components/typescript-object.d.mts +0 -29
- package/dist/typescript/components/typescript-object.mjs +0 -123
- package/dist/typescript/index.cjs +0 -45
- package/dist/typescript/index.d.cts +0 -11
- package/dist/typescript/index.d.mts +0 -11
- package/dist/typescript/index.mjs +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
const require_output = require('./output.cjs');
|
|
2
|
+
const require_single_line_comment = require('./single-line-comment.cjs');
|
|
3
|
+
const require_source_file = require('./source-file.cjs');
|
|
4
4
|
|
|
5
|
-
exports.Output =
|
|
6
|
-
exports.SingleLineComment =
|
|
7
|
-
exports.SourceFile =
|
|
5
|
+
exports.Output = require_output.Output;
|
|
6
|
+
exports.SingleLineComment = require_single_line_comment.SingleLineComment;
|
|
7
|
+
exports.SourceFile = require_source_file.SourceFile;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_core_contexts_context = require('../contexts/context.cjs');
|
|
3
2
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
3
|
let __alloy_js_core = require("@alloy-js/core");
|
|
5
4
|
let __stryke_path_replace = require("@stryke/path/replace");
|
|
@@ -9,10 +8,9 @@ let __stryke_path_replace = require("@stryke/path/replace");
|
|
|
9
8
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
10
9
|
*/
|
|
11
10
|
function Output(props) {
|
|
12
|
-
const [{ children, context,
|
|
11
|
+
const [{ children, context, basePath }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
13
12
|
"children",
|
|
14
13
|
"context",
|
|
15
|
-
"meta",
|
|
16
14
|
"basePath"
|
|
17
15
|
]);
|
|
18
16
|
const basePathRef = (0, __alloy_js_core.computed)(() => basePath ? (0, __stryke_path_replace.replacePath)(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
@@ -21,19 +19,11 @@ function Output(props) {
|
|
|
21
19
|
return basePathRef.value;
|
|
22
20
|
},
|
|
23
21
|
get children() {
|
|
24
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
meta: meta ?? {}
|
|
22
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
23
|
+
get when() {
|
|
24
|
+
return Boolean(context);
|
|
28
25
|
},
|
|
29
|
-
|
|
30
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
31
|
-
get when() {
|
|
32
|
-
return Boolean(context);
|
|
33
|
-
},
|
|
34
|
-
children
|
|
35
|
-
});
|
|
36
|
-
}
|
|
26
|
+
children
|
|
37
27
|
});
|
|
38
28
|
}
|
|
39
29
|
}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MetaItem } from "../contexts/context.cjs";
|
|
2
|
-
import * as
|
|
3
|
-
import { OutputProps
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
+
import { OutputProps } from "@alloy-js/core";
|
|
4
4
|
import { PluginContext } from "powerlines/types/context";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/output.d.ts
|
|
7
|
-
interface OutputProps<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>> extends OutputProps
|
|
7
|
+
interface OutputProps$1<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>> extends OutputProps {
|
|
8
8
|
/**
|
|
9
9
|
* The current Powerlines process context.
|
|
10
10
|
*/
|
|
@@ -17,7 +17,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext, TMeta exte
|
|
|
17
17
|
/**
|
|
18
18
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
19
19
|
*/
|
|
20
|
-
declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>):
|
|
20
|
+
declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps$1<TContext, TMeta>): _alloy_js_core0.Children;
|
|
21
21
|
declare type __ΩOutputProps = any[];
|
|
22
22
|
//#endregion
|
|
23
|
-
export { Output, OutputProps, __ΩOutputProps };
|
|
23
|
+
export { Output, OutputProps$1 as OutputProps, __ΩOutputProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MetaItem } from "../contexts/context.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import { OutputProps
|
|
2
|
+
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
3
|
+
import { OutputProps } from "@alloy-js/core";
|
|
4
4
|
import { PluginContext } from "powerlines/types/context";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/output.d.ts
|
|
7
|
-
interface OutputProps<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>> extends OutputProps
|
|
7
|
+
interface OutputProps$1<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>> extends OutputProps {
|
|
8
8
|
/**
|
|
9
9
|
* The current Powerlines process context.
|
|
10
10
|
*/
|
|
@@ -17,7 +17,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext, TMeta exte
|
|
|
17
17
|
/**
|
|
18
18
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
19
19
|
*/
|
|
20
|
-
declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>):
|
|
20
|
+
declare function Output$1<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps$1<TContext, TMeta>): _alloy_js_core1.Children;
|
|
21
21
|
declare type __ΩOutputProps = any[];
|
|
22
22
|
//#endregion
|
|
23
|
-
export { Output, OutputProps, __ΩOutputProps };
|
|
23
|
+
export { Output$1 as Output, OutputProps$1 as OutputProps, __ΩOutputProps };
|
|
@@ -1,42 +1,32 @@
|
|
|
1
|
-
import { PowerlinesContext } from "../contexts/context.mjs";
|
|
2
1
|
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { Output
|
|
2
|
+
import { Output, Show, computed, splitProps } from "@alloy-js/core";
|
|
4
3
|
import { replacePath } from "@stryke/path/replace";
|
|
5
4
|
|
|
6
5
|
//#region src/core/components/output.tsx
|
|
7
6
|
/**
|
|
8
7
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
9
8
|
*/
|
|
10
|
-
function Output(props) {
|
|
11
|
-
const [{ children, context,
|
|
9
|
+
function Output$1(props) {
|
|
10
|
+
const [{ children, context, basePath }, rest] = splitProps(props, [
|
|
12
11
|
"children",
|
|
13
12
|
"context",
|
|
14
|
-
"meta",
|
|
15
13
|
"basePath"
|
|
16
14
|
]);
|
|
17
15
|
const basePathRef = computed(() => basePath ? replacePath(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
18
|
-
return createComponent(Output
|
|
16
|
+
return createComponent(Output, mergeProps(rest, {
|
|
19
17
|
get basePath() {
|
|
20
18
|
return basePathRef.value;
|
|
21
19
|
},
|
|
22
20
|
get children() {
|
|
23
|
-
return createComponent(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
meta: meta ?? {}
|
|
21
|
+
return createComponent(Show, {
|
|
22
|
+
get when() {
|
|
23
|
+
return Boolean(context);
|
|
27
24
|
},
|
|
28
|
-
|
|
29
|
-
return createComponent(Show, {
|
|
30
|
-
get when() {
|
|
31
|
-
return Boolean(context);
|
|
32
|
-
},
|
|
33
|
-
children
|
|
34
|
-
});
|
|
35
|
-
}
|
|
25
|
+
children
|
|
36
26
|
});
|
|
37
27
|
}
|
|
38
28
|
}));
|
|
39
29
|
}
|
|
40
30
|
|
|
41
31
|
//#endregion
|
|
42
|
-
export { Output };
|
|
32
|
+
export { Output$1 as Output };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.d.ts
|
|
5
5
|
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
|
|
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
|
|
|
15
15
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
16
|
* are broken into multiple lines
|
|
17
17
|
*/
|
|
18
|
-
declare function SingleLineComment(props: SingleLineCommentProps):
|
|
18
|
+
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core1.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.d.ts
|
|
5
5
|
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
|
|
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
|
|
|
15
15
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
16
|
* are broken into multiple lines
|
|
17
17
|
*/
|
|
18
|
-
declare function SingleLineComment(props: SingleLineCommentProps):
|
|
18
|
+
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core0.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
3
|
-
import { SourceFileProps
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
+
import { SourceFileProps } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/source-file.d.ts
|
|
7
|
-
type SourceFileProps = SourceFileProps
|
|
7
|
+
type SourceFileProps$1 = SourceFileProps & ComponentProps & {
|
|
8
8
|
/**
|
|
9
9
|
* The storage preset for the output files.
|
|
10
10
|
*
|
|
@@ -26,7 +26,7 @@ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
|
26
26
|
* @param props - The properties for the source file.
|
|
27
27
|
* @returns The rendered source file component.
|
|
28
28
|
*/
|
|
29
|
-
declare function SourceFile(props: SourceFileProps):
|
|
29
|
+
declare function SourceFile(props: SourceFileProps$1): _alloy_js_core0.Children;
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
|
-
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
32
|
+
export { SourceFile, SourceFileProps$1 as SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import { SourceFileProps
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
+
import { SourceFileProps } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/source-file.d.ts
|
|
7
|
-
type SourceFileProps = SourceFileProps
|
|
7
|
+
type SourceFileProps$1 = SourceFileProps & ComponentProps & {
|
|
8
8
|
/**
|
|
9
9
|
* The storage preset for the output files.
|
|
10
10
|
*
|
|
@@ -26,7 +26,7 @@ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
|
26
26
|
* @param props - The properties for the source file.
|
|
27
27
|
* @returns The rendered source file component.
|
|
28
28
|
*/
|
|
29
|
-
declare function SourceFile(props: SourceFileProps):
|
|
29
|
+
declare function SourceFile(props: SourceFileProps$1): _alloy_js_core0.Children;
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
|
-
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
32
|
+
export { SourceFile, SourceFileProps$1 as SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
const
|
|
2
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
1
|
+
const require_unctx = require('../../internal/unctx.cjs');
|
|
3
2
|
|
|
4
3
|
//#region src/core/contexts/context.ts
|
|
5
4
|
/**
|
|
6
|
-
* The Powerlines context used in template rendering.
|
|
7
|
-
*/
|
|
8
|
-
const PowerlinesContext = (0, __alloy_js_core.createNamedContext)("powerlines");
|
|
9
|
-
/**
|
|
10
5
|
* Hook to access the Powerlines Context.
|
|
11
6
|
*
|
|
12
7
|
* @returns The Context.
|
|
13
8
|
*/
|
|
14
9
|
function usePowerlinesContext() {
|
|
15
|
-
return
|
|
10
|
+
return require_unctx.unctx.use();
|
|
16
11
|
}
|
|
17
12
|
/**
|
|
18
13
|
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
@@ -52,7 +47,6 @@ function useMeta() {
|
|
|
52
47
|
}
|
|
53
48
|
|
|
54
49
|
//#endregion
|
|
55
|
-
exports.PowerlinesContext = PowerlinesContext;
|
|
56
50
|
exports.useMeta = useMeta;
|
|
57
51
|
exports.useMetaSafe = useMetaSafe;
|
|
58
52
|
exports.usePowerlines = usePowerlines;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
2
1
|
import { PluginContext } from "powerlines/types/context";
|
|
3
2
|
import { StoragePreset } from "powerlines/types/fs";
|
|
4
3
|
|
|
@@ -31,10 +30,6 @@ interface PowerlinesContextInterface<TContext extends PluginContext = PluginCont
|
|
|
31
30
|
*/
|
|
32
31
|
meta: TMeta;
|
|
33
32
|
}
|
|
34
|
-
/**
|
|
35
|
-
* The Powerlines context used in template rendering.
|
|
36
|
-
*/
|
|
37
|
-
declare const PowerlinesContext: ComponentContext<PowerlinesContextInterface<any, any>>;
|
|
38
33
|
/**
|
|
39
34
|
* Hook to access the Powerlines Context.
|
|
40
35
|
*
|
|
@@ -68,4 +63,4 @@ declare function useMeta<TMeta extends Record<string, MetaItem> = Record<string,
|
|
|
68
63
|
declare type __ΩMetaItem = any[];
|
|
69
64
|
declare type __ΩPowerlinesContextInterface = any[];
|
|
70
65
|
//#endregion
|
|
71
|
-
export { MetaItem,
|
|
66
|
+
export { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
2
1
|
import { PluginContext } from "powerlines/types/context";
|
|
3
2
|
import { StoragePreset } from "powerlines/types/fs";
|
|
4
3
|
|
|
@@ -31,10 +30,6 @@ interface PowerlinesContextInterface<TContext extends PluginContext = PluginCont
|
|
|
31
30
|
*/
|
|
32
31
|
meta: TMeta;
|
|
33
32
|
}
|
|
34
|
-
/**
|
|
35
|
-
* The Powerlines context used in template rendering.
|
|
36
|
-
*/
|
|
37
|
-
declare const PowerlinesContext: ComponentContext<PowerlinesContextInterface<any, any>>;
|
|
38
33
|
/**
|
|
39
34
|
* Hook to access the Powerlines Context.
|
|
40
35
|
*
|
|
@@ -68,4 +63,4 @@ declare function useMeta<TMeta extends Record<string, MetaItem> = Record<string,
|
|
|
68
63
|
declare type __ΩMetaItem = any[];
|
|
69
64
|
declare type __ΩPowerlinesContextInterface = any[];
|
|
70
65
|
//#endregion
|
|
71
|
-
export { MetaItem,
|
|
66
|
+
export { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { unctx } from "../../internal/unctx.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/core/contexts/context.ts
|
|
4
4
|
/**
|
|
5
|
-
* The Powerlines context used in template rendering.
|
|
6
|
-
*/
|
|
7
|
-
const PowerlinesContext = createNamedContext("powerlines");
|
|
8
|
-
/**
|
|
9
5
|
* Hook to access the Powerlines Context.
|
|
10
6
|
*
|
|
11
7
|
* @returns The Context.
|
|
12
8
|
*/
|
|
13
9
|
function usePowerlinesContext() {
|
|
14
|
-
return
|
|
10
|
+
return unctx.use();
|
|
15
11
|
}
|
|
16
12
|
/**
|
|
17
13
|
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
@@ -51,4 +47,4 @@ function useMeta() {
|
|
|
51
47
|
}
|
|
52
48
|
|
|
53
49
|
//#endregion
|
|
54
|
-
export {
|
|
50
|
+
export { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const require_core_contexts_context = require('./context.cjs');
|
|
2
2
|
const require_core_contexts_reflection = require('./reflection.cjs');
|
|
3
3
|
|
|
4
|
-
exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
|
|
5
4
|
exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
|
|
6
5
|
exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
|
|
7
6
|
exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MetaItem,
|
|
1
|
+
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.cjs";
|
|
2
2
|
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.cjs";
|
|
3
|
-
export { MetaItem,
|
|
3
|
+
export { MetaItem, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MetaItem,
|
|
1
|
+
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
|
|
2
2
|
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
|
|
3
|
-
export { MetaItem,
|
|
3
|
+
export { MetaItem, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
|
|
2
2
|
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
|
|
3
3
|
|
|
4
|
-
export {
|
|
4
|
+
export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -19,7 +19,7 @@ function useReflectionClass() {
|
|
|
19
19
|
/**
|
|
20
20
|
* The reflection property context used in template rendering.
|
|
21
21
|
*/
|
|
22
|
-
const ReflectionPropertyContext = (0, __alloy_js_core.createNamedContext)("
|
|
22
|
+
const ReflectionPropertyContext = (0, __alloy_js_core.createNamedContext)("ReflectionProperty");
|
|
23
23
|
/**
|
|
24
24
|
* Hook to access the Reflection Property context.
|
|
25
25
|
*
|
|
@@ -33,7 +33,7 @@ function useReflectionProperty() {
|
|
|
33
33
|
/**
|
|
34
34
|
* The reflection method context used in template rendering.
|
|
35
35
|
*/
|
|
36
|
-
const ReflectionMethodContext = (0, __alloy_js_core.createNamedContext)("
|
|
36
|
+
const ReflectionMethodContext = (0, __alloy_js_core.createNamedContext)("ReflectionMethod");
|
|
37
37
|
/**
|
|
38
38
|
* Hook to access the Reflection Method context.
|
|
39
39
|
*
|
|
@@ -47,7 +47,7 @@ function useReflectionMethod() {
|
|
|
47
47
|
/**
|
|
48
48
|
* The reflection parameter context used in template rendering.
|
|
49
49
|
*/
|
|
50
|
-
const ReflectionParameterContext = (0, __alloy_js_core.createNamedContext)("
|
|
50
|
+
const ReflectionParameterContext = (0, __alloy_js_core.createNamedContext)("ReflectionParameter");
|
|
51
51
|
/**
|
|
52
52
|
* Hook to access the Reflection Parameter context.
|
|
53
53
|
*
|
|
@@ -18,7 +18,7 @@ function useReflectionClass() {
|
|
|
18
18
|
/**
|
|
19
19
|
* The reflection property context used in template rendering.
|
|
20
20
|
*/
|
|
21
|
-
const ReflectionPropertyContext = createNamedContext("
|
|
21
|
+
const ReflectionPropertyContext = createNamedContext("ReflectionProperty");
|
|
22
22
|
/**
|
|
23
23
|
* Hook to access the Reflection Property context.
|
|
24
24
|
*
|
|
@@ -32,7 +32,7 @@ function useReflectionProperty() {
|
|
|
32
32
|
/**
|
|
33
33
|
* The reflection method context used in template rendering.
|
|
34
34
|
*/
|
|
35
|
-
const ReflectionMethodContext = createNamedContext("
|
|
35
|
+
const ReflectionMethodContext = createNamedContext("ReflectionMethod");
|
|
36
36
|
/**
|
|
37
37
|
* Hook to access the Reflection Method context.
|
|
38
38
|
*
|
|
@@ -46,7 +46,7 @@ function useReflectionMethod() {
|
|
|
46
46
|
/**
|
|
47
47
|
* The reflection parameter context used in template rendering.
|
|
48
48
|
*/
|
|
49
|
-
const ReflectionParameterContext = createNamedContext("
|
|
49
|
+
const ReflectionParameterContext = createNamedContext("ReflectionParameter");
|
|
50
50
|
/**
|
|
51
51
|
* Hook to access the Reflection Parameter context.
|
|
52
52
|
*
|
package/dist/core/index.cjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
+
const require_output = require('./components/output.cjs');
|
|
2
|
+
const require_single_line_comment = require('./components/single-line-comment.cjs');
|
|
1
3
|
const require_core_contexts_context = require('./contexts/context.cjs');
|
|
2
|
-
const require_core_components_single_line_comment = require('./components/single-line-comment.cjs');
|
|
3
4
|
const require_core_contexts_reflection = require('./contexts/reflection.cjs');
|
|
4
5
|
require('./contexts/index.cjs');
|
|
5
|
-
const
|
|
6
|
-
const require_core_components_output = require('./components/output.cjs');
|
|
6
|
+
const require_source_file = require('./components/source-file.cjs');
|
|
7
7
|
require('./components/index.cjs');
|
|
8
8
|
|
|
9
|
-
exports.Output =
|
|
10
|
-
exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
|
|
9
|
+
exports.Output = require_output.Output;
|
|
11
10
|
exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
|
|
12
11
|
exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
|
|
13
12
|
exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
|
|
14
13
|
exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
|
|
15
|
-
exports.SingleLineComment =
|
|
16
|
-
exports.SourceFile =
|
|
14
|
+
exports.SingleLineComment = require_single_line_comment.SingleLineComment;
|
|
15
|
+
exports.SourceFile = require_source_file.SourceFile;
|
|
17
16
|
exports.useMeta = require_core_contexts_context.useMeta;
|
|
18
17
|
exports.useMetaSafe = require_core_contexts_context.useMetaSafe;
|
|
19
18
|
exports.usePowerlines = require_core_contexts_context.usePowerlines;
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MetaItem,
|
|
1
|
+
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.cjs";
|
|
2
2
|
import { Output, OutputProps, __ΩOutputProps } from "./components/output.cjs";
|
|
3
3
|
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.cjs";
|
|
4
4
|
import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.cjs";
|
|
5
5
|
import "./components/index.cjs";
|
|
6
6
|
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.cjs";
|
|
7
7
|
import "./contexts/index.cjs";
|
|
8
|
-
export { MetaItem, Output, OutputProps,
|
|
8
|
+
export { MetaItem, Output, OutputProps, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/core/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MetaItem,
|
|
1
|
+
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
|
|
2
2
|
import { Output, OutputProps, __ΩOutputProps } from "./components/output.mjs";
|
|
3
3
|
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.mjs";
|
|
4
4
|
import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.mjs";
|
|
5
5
|
import "./components/index.mjs";
|
|
6
6
|
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
|
|
7
7
|
import "./contexts/index.mjs";
|
|
8
|
-
export { MetaItem, Output, OutputProps,
|
|
8
|
+
export { MetaItem, Output, OutputProps, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Output } from "./components/output.mjs";
|
|
2
2
|
import { SingleLineComment } from "./components/single-line-comment.mjs";
|
|
3
|
+
import { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
|
|
3
4
|
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
|
|
4
5
|
import "./contexts/index.mjs";
|
|
5
6
|
import { SourceFile } from "./components/source-file.mjs";
|
|
6
|
-
import { Output } from "./components/output.mjs";
|
|
7
7
|
import "./components/index.mjs";
|
|
8
8
|
|
|
9
|
-
export { Output,
|
|
9
|
+
export { Output, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_output = require('./core/components/output.cjs');
|
|
4
|
+
const require_unctx = require('./internal/unctx.cjs');
|
|
4
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
-
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
7
6
|
let __alloy_js_babel_preset = require("@alloy-js/babel-preset");
|
|
8
7
|
__alloy_js_babel_preset = require_rolldown_runtime.__toESM(__alloy_js_babel_preset);
|
|
8
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
9
9
|
let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
|
|
10
10
|
__powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
|
|
11
11
|
let __stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
12
|
+
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
12
13
|
|
|
13
14
|
//#region src/index.tsx
|
|
14
15
|
/**
|
|
@@ -51,22 +52,25 @@ const plugin = (options = {}) => {
|
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
{
|
|
54
|
-
name: "alloy:
|
|
55
|
+
name: "alloy:attach-render",
|
|
55
56
|
configResolved: {
|
|
56
57
|
order: "pre",
|
|
57
58
|
async handler() {
|
|
58
59
|
this.debug("Attaching the `render` method to the context object.");
|
|
59
60
|
this.render = async (children) => {
|
|
60
|
-
const
|
|
61
|
+
const meta = {};
|
|
62
|
+
await require_unctx.unctx.callAsync({
|
|
63
|
+
value: this,
|
|
64
|
+
meta
|
|
65
|
+
}, async () => {
|
|
61
66
|
const _self$ = this;
|
|
62
|
-
|
|
63
|
-
await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_output.Output, {
|
|
67
|
+
await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
|
|
64
68
|
context: _self$,
|
|
65
69
|
meta,
|
|
66
70
|
get basePath() {
|
|
67
71
|
return _self$.workspaceConfig.workspaceRoot;
|
|
68
72
|
},
|
|
69
|
-
children
|
|
73
|
+
children
|
|
70
74
|
})), {
|
|
71
75
|
visitDirectory: (directory) => {
|
|
72
76
|
if (this.fs.existsSync(directory.path)) return;
|
|
@@ -91,8 +95,7 @@ const plugin = (options = {}) => {
|
|
|
91
95
|
} else this.fs.copySync(file.sourcePath, file.path);
|
|
92
96
|
}
|
|
93
97
|
});
|
|
94
|
-
};
|
|
95
|
-
await _render(children);
|
|
98
|
+
});
|
|
96
99
|
};
|
|
97
100
|
}
|
|
98
101
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Output as Output$1 } from "./core/components/output.mjs";
|
|
2
|
+
import { unctx } from "./internal/unctx.mjs";
|
|
2
3
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { renderAsync, traverseOutput } from "@alloy-js/core";
|
|
4
|
-
import { findFileExtension, findFileExtensionSafe } from "@stryke/path/file-path-fns";
|
|
5
4
|
import alloyPreset from "@alloy-js/babel-preset";
|
|
5
|
+
import { renderAsync, traverseOutput } from "@alloy-js/core";
|
|
6
6
|
import babel from "@powerlines/plugin-babel";
|
|
7
7
|
import { StormJSON } from "@stryke/json/storm-json";
|
|
8
|
+
import { findFileExtension, findFileExtensionSafe } from "@stryke/path/file-path-fns";
|
|
8
9
|
|
|
9
10
|
//#region src/index.tsx
|
|
10
11
|
/**
|
|
@@ -47,22 +48,25 @@ const plugin = (options = {}) => {
|
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
|
-
name: "alloy:
|
|
51
|
+
name: "alloy:attach-render",
|
|
51
52
|
configResolved: {
|
|
52
53
|
order: "pre",
|
|
53
54
|
async handler() {
|
|
54
55
|
this.debug("Attaching the `render` method to the context object.");
|
|
55
56
|
this.render = async (children) => {
|
|
56
|
-
const
|
|
57
|
+
const meta = {};
|
|
58
|
+
await unctx.callAsync({
|
|
59
|
+
value: this,
|
|
60
|
+
meta
|
|
61
|
+
}, async () => {
|
|
57
62
|
const _self$ = this;
|
|
58
|
-
const meta = {};
|
|
59
63
|
await traverseOutput(await renderAsync(createComponent(Output$1, {
|
|
60
64
|
context: _self$,
|
|
61
65
|
meta,
|
|
62
66
|
get basePath() {
|
|
63
67
|
return _self$.workspaceConfig.workspaceRoot;
|
|
64
68
|
},
|
|
65
|
-
children
|
|
69
|
+
children
|
|
66
70
|
})), {
|
|
67
71
|
visitDirectory: (directory) => {
|
|
68
72
|
if (this.fs.existsSync(directory.path)) return;
|
|
@@ -87,8 +91,7 @@ const plugin = (options = {}) => {
|
|
|
87
91
|
} else this.fs.copySync(file.sourcePath, file.path);
|
|
88
92
|
}
|
|
89
93
|
});
|
|
90
|
-
};
|
|
91
|
-
await _render(children);
|
|
94
|
+
});
|
|
92
95
|
};
|
|
93
96
|
}
|
|
94
97
|
}
|