@powerlines/plugin-nodejs 0.1.116 → 0.1.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/components/env.d.cts +1 -1
- package/dist/components/env.d.mts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- 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.d.cts +0 -1560
- package/dist/deepkit/schemas/reflection.d.mts +0 -1560
- package/dist/deepkit/src/types.d.cts +0 -10
- package/dist/deepkit/src/types.d.mts +0 -10
- 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/types/components.d.cts +0 -20
- package/dist/plugin-alloy/src/types/components.d.mts +0 -20
- 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.d.cts +0 -26
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +0 -26
- 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/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-interface.d.cts +0 -4
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +0 -4
- package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
- package/dist/plugin-automd/src/types/plugin.d.mts +0 -38
- 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/types/plugin.d.cts +0 -15
- package/dist/plugin-babel/src/types/plugin.d.mts +0 -15
- 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/types/plugin.d.cts +0 -149
- package/dist/plugin-env/src/types/plugin.d.mts +0 -149
- 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 -47
- 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.d.cts +0 -185
- package/dist/powerlines/src/types/build.d.mts +0 -185
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -8
- package/dist/powerlines/src/types/config.d.cts +0 -435
- package/dist/powerlines/src/types/config.d.mts +0 -435
- 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 -22
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SerializedTypes } from "../schemas/reflection.cjs";
|
|
2
|
-
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
3
|
-
|
|
4
|
-
//#region ../deepkit/src/types.d.ts
|
|
5
|
-
type Reflection<T extends Record<string, any> = Record<string, any>> = ReflectionClass<T> & {
|
|
6
|
-
dataBuffer?: ArrayBuffer;
|
|
7
|
-
messageRoot?: SerializedTypes;
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Reflection };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SerializedTypes } from "../schemas/reflection.mjs";
|
|
2
|
-
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
3
|
-
|
|
4
|
-
//#region ../deepkit/src/types.d.ts
|
|
5
|
-
type Reflection<T extends Record<string, any> = Record<string, any>> = ReflectionClass<T> & {
|
|
6
|
-
dataBuffer?: ArrayBuffer;
|
|
7
|
-
messageRoot?: SerializedTypes;
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Reflection };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { StoragePreset } from "../../../../powerlines/src/types/fs.cjs";
|
|
2
|
-
import { ComponentProps } from "../../types/components.cjs";
|
|
3
|
-
import { SourceFileProps } from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-alloy/src/core/components/source-file.d.ts
|
|
6
|
-
type SourceFileProps$1 = SourceFileProps & ComponentProps & {
|
|
7
|
-
/**
|
|
8
|
-
* The storage preset for the output files.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
12
|
-
*/
|
|
13
|
-
storage?: StoragePreset;
|
|
14
|
-
/**
|
|
15
|
-
* The metadata associated with the source file.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* The values stored in the metadata will be available in the rendering context.
|
|
19
|
-
*/
|
|
20
|
-
meta?: Record<string, any>;
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { SourceFileProps$1 as SourceFileProps };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { StoragePreset } from "../../../../powerlines/src/types/fs.mjs";
|
|
2
|
-
import { ComponentProps } from "../../types/components.mjs";
|
|
3
|
-
import { SourceFileProps } from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-alloy/src/core/components/source-file.d.ts
|
|
6
|
-
type SourceFileProps$1 = SourceFileProps & ComponentProps & {
|
|
7
|
-
/**
|
|
8
|
-
* The storage preset for the output files.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
12
|
-
*/
|
|
13
|
-
storage?: StoragePreset;
|
|
14
|
-
/**
|
|
15
|
-
* The metadata associated with the source file.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* The values stored in the metadata will be available in the rendering context.
|
|
19
|
-
*/
|
|
20
|
-
meta?: Record<string, any>;
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { SourceFileProps$1 as SourceFileProps };
|
|
@@ -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,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,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,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,37 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import { Children } from "@alloy-js/core";
|
|
3
|
-
import "@alloy-js/typescript";
|
|
4
|
-
import "@powerlines/deepkit/vendor/type";
|
|
5
|
-
|
|
6
|
-
//#region ../plugin-alloy/src/typescript/components/tsdoc.d.ts
|
|
7
|
-
|
|
8
|
-
interface TSDocModuleProps extends ComponentProps {
|
|
9
|
-
/**
|
|
10
|
-
* The prefix for the builtin module name
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* This value is populated from the Powerlines configuration output builtin prefix by default.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* /**
|
|
18
|
-
* @module powerlines:my-module
|
|
19
|
-
* \/
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
prefix?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The name of the module
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* import { MyModule } from "powerlines:my-module";
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
name: Children;
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { TSDocModuleProps };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import { Children } from "@alloy-js/core";
|
|
3
|
-
import "@alloy-js/typescript";
|
|
4
|
-
import "@powerlines/deepkit/vendor/type";
|
|
5
|
-
|
|
6
|
-
//#region ../plugin-alloy/src/typescript/components/tsdoc.d.ts
|
|
7
|
-
|
|
8
|
-
interface TSDocModuleProps extends ComponentProps {
|
|
9
|
-
/**
|
|
10
|
-
* The prefix for the builtin module name
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* This value is populated from the Powerlines configuration output builtin prefix by default.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* /**
|
|
18
|
-
* @module powerlines:my-module
|
|
19
|
-
* \/
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
prefix?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The name of the module
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* import { MyModule } from "powerlines:my-module";
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
name: Children;
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { TSDocModuleProps };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, TypescriptFileImports } from "../../types/components.cjs";
|
|
2
|
-
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
|
|
3
|
-
import { Children } from "@alloy-js/core";
|
|
4
|
-
import "@alloy-js/typescript";
|
|
5
|
-
|
|
6
|
-
//#region ../plugin-alloy/src/typescript/components/typescript-file.d.ts
|
|
7
|
-
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
8
|
-
hashbang?: Children | true;
|
|
9
|
-
header?: Children;
|
|
10
|
-
imports?: TypescriptFileImports;
|
|
11
|
-
builtinImports?: TypescriptFileImports;
|
|
12
|
-
export?: boolean | string;
|
|
13
|
-
tsx?: boolean;
|
|
14
|
-
};
|
|
15
|
-
//#endregion
|
|
16
|
-
export { TypescriptFileProps };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, TypescriptFileImports } from "../../types/components.mjs";
|
|
2
|
-
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
|
|
3
|
-
import { Children } from "@alloy-js/core";
|
|
4
|
-
import "@alloy-js/typescript";
|
|
5
|
-
|
|
6
|
-
//#region ../plugin-alloy/src/typescript/components/typescript-file.d.ts
|
|
7
|
-
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
8
|
-
hashbang?: Children | true;
|
|
9
|
-
header?: Children;
|
|
10
|
-
imports?: TypescriptFileImports;
|
|
11
|
-
builtinImports?: TypescriptFileImports;
|
|
12
|
-
export?: boolean | string;
|
|
13
|
-
tsx?: boolean;
|
|
14
|
-
};
|
|
15
|
-
//#endregion
|
|
16
|
-
export { TypescriptFileProps };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { TOCOptions } from "./toc.cjs";
|
|
2
|
-
import { Config } from "automd";
|
|
3
|
-
|
|
4
|
-
//#region ../plugin-automd/src/types/plugin.d.ts
|
|
5
|
-
|
|
6
|
-
type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
|
|
7
|
-
/**
|
|
8
|
-
* Path to the AutoMD configuration file.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
|
|
12
|
-
*/
|
|
13
|
-
configFile?: string;
|
|
14
|
-
/**
|
|
15
|
-
* An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
|
|
16
|
-
*
|
|
17
|
-
* @defaultValue true
|
|
18
|
-
*/
|
|
19
|
-
allowIssues?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Alternate prefix strings to use for finding generators
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* By default, AutoMD looks for generators with the "automd" prefix, so that any `<!-- automd:generator [...args] --> ... <!-- /automd -->` comments will be picked up. If you want to use different prefixes (for example, to avoid conflicts with other tools), you would provide a value like "myPrefix" and AutoMD would also look for `<!-- myPrefix:generator [...args] --> ... <!-- /myPrefix -->` comments.
|
|
25
|
-
*
|
|
26
|
-
* @defaultValue ["automd", "powerlines", "\{framework\}"]
|
|
27
|
-
*/
|
|
28
|
-
prefix?: string | string[];
|
|
29
|
-
/**
|
|
30
|
-
* Table of Contents generator options
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* If set to `false`, the built-in Table of Contents generator will be disabled.
|
|
34
|
-
*/
|
|
35
|
-
toc?: false | TOCOptions;
|
|
36
|
-
};
|
|
37
|
-
//#endregion
|
|
38
|
-
export { AutoMDPluginOptions };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { TOCOptions } from "./toc.mjs";
|
|
2
|
-
import { Config } from "automd";
|
|
3
|
-
|
|
4
|
-
//#region ../plugin-automd/src/types/plugin.d.ts
|
|
5
|
-
|
|
6
|
-
type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
|
|
7
|
-
/**
|
|
8
|
-
* Path to the AutoMD configuration file.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
|
|
12
|
-
*/
|
|
13
|
-
configFile?: string;
|
|
14
|
-
/**
|
|
15
|
-
* An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
|
|
16
|
-
*
|
|
17
|
-
* @defaultValue true
|
|
18
|
-
*/
|
|
19
|
-
allowIssues?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Alternate prefix strings to use for finding generators
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* By default, AutoMD looks for generators with the "automd" prefix, so that any `<!-- automd:generator [...args] --> ... <!-- /automd -->` comments will be picked up. If you want to use different prefixes (for example, to avoid conflicts with other tools), you would provide a value like "myPrefix" and AutoMD would also look for `<!-- myPrefix:generator [...args] --> ... <!-- /myPrefix -->` comments.
|
|
25
|
-
*
|
|
26
|
-
* @defaultValue ["automd", "powerlines", "\{framework\}"]
|
|
27
|
-
*/
|
|
28
|
-
prefix?: string | string[];
|
|
29
|
-
/**
|
|
30
|
-
* Table of Contents generator options
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* If set to `false`, the built-in Table of Contents generator will be disabled.
|
|
34
|
-
*/
|
|
35
|
-
toc?: false | TOCOptions;
|
|
36
|
-
};
|
|
37
|
-
//#endregion
|
|
38
|
-
export { AutoMDPluginOptions };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region ../plugin-automd/src/types/toc.d.ts
|
|
2
|
-
interface TOCOptions {
|
|
3
|
-
/**
|
|
4
|
-
* A slugify function to generate slugs for the headings.
|
|
5
|
-
*/
|
|
6
|
-
slugify?: (str: string) => string;
|
|
7
|
-
/**
|
|
8
|
-
* The maximum depth of headings to include in the TOC.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue 6
|
|
11
|
-
*/
|
|
12
|
-
maxDepth?: number;
|
|
13
|
-
/**
|
|
14
|
-
* Whether to include the first H1 heading in the TOC.
|
|
15
|
-
*/
|
|
16
|
-
firstH1?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* The bullet character to use for list items in the TOC.
|
|
19
|
-
*
|
|
20
|
-
* @defaultValue "-"
|
|
21
|
-
*/
|
|
22
|
-
bullets?: string;
|
|
23
|
-
/**
|
|
24
|
-
* A prefix to add to each heading in the TOC.
|
|
25
|
-
*/
|
|
26
|
-
prefix?: string;
|
|
27
|
-
/**
|
|
28
|
-
* A filter function to determine which headings to include in the TOC.
|
|
29
|
-
*/
|
|
30
|
-
filter?: (str: string, level: number) => boolean;
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
export { TOCOptions };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region ../plugin-automd/src/types/toc.d.ts
|
|
2
|
-
interface TOCOptions {
|
|
3
|
-
/**
|
|
4
|
-
* A slugify function to generate slugs for the headings.
|
|
5
|
-
*/
|
|
6
|
-
slugify?: (str: string) => string;
|
|
7
|
-
/**
|
|
8
|
-
* The maximum depth of headings to include in the TOC.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue 6
|
|
11
|
-
*/
|
|
12
|
-
maxDepth?: number;
|
|
13
|
-
/**
|
|
14
|
-
* Whether to include the first H1 heading in the TOC.
|
|
15
|
-
*/
|
|
16
|
-
firstH1?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* The bullet character to use for list items in the TOC.
|
|
19
|
-
*
|
|
20
|
-
* @defaultValue "-"
|
|
21
|
-
*/
|
|
22
|
-
bullets?: string;
|
|
23
|
-
/**
|
|
24
|
-
* A prefix to add to each heading in the TOC.
|
|
25
|
-
*/
|
|
26
|
-
prefix?: string;
|
|
27
|
-
/**
|
|
28
|
-
* A filter function to determine which headings to include in the TOC.
|
|
29
|
-
*/
|
|
30
|
-
filter?: (str: string, level: number) => boolean;
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
export { TOCOptions };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PluginContext } from "../../../powerlines/src/types/context.cjs";
|
|
2
|
-
import { BabelUserConfig, UserConfig } from "../../../powerlines/src/types/config.cjs";
|
|
3
|
-
import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.cjs";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-babel/src/types/plugin.d.ts
|
|
6
|
-
type BabelPluginOptions = Partial<BabelUserConfig>;
|
|
7
|
-
type BabelPluginUserConfig = UserConfig;
|
|
8
|
-
interface BabelPluginResolvedConfig extends ResolvedConfig {
|
|
9
|
-
transform: {
|
|
10
|
-
babel: BabelResolvedConfig;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PluginContext } from "../../../powerlines/src/types/context.mjs";
|
|
2
|
-
import { BabelUserConfig, UserConfig } from "../../../powerlines/src/types/config.mjs";
|
|
3
|
-
import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.mjs";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-babel/src/types/plugin.d.ts
|
|
6
|
-
type BabelPluginOptions = Partial<BabelUserConfig>;
|
|
7
|
-
type BabelPluginUserConfig = UserConfig;
|
|
8
|
-
interface BabelPluginResolvedConfig extends ResolvedConfig {
|
|
9
|
-
transform: {
|
|
10
|
-
babel: BabelResolvedConfig;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BuiltinFileProps } from "../../../plugin-alloy/src/typescript/components/builtin-file.cjs";
|
|
2
|
-
import "../../../plugin-alloy/src/typescript/components/typescript-interface.cjs";
|
|
3
|
-
import { Children } from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-env/src/components/env.d.ts
|
|
6
|
-
|
|
7
|
-
interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
8
|
-
defaultConfig?: Children;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { EnvBuiltinProps };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BuiltinFileProps } from "../../../plugin-alloy/src/typescript/components/builtin-file.mjs";
|
|
2
|
-
import "../../../plugin-alloy/src/typescript/components/typescript-interface.mjs";
|
|
3
|
-
import { Children } from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-env/src/components/env.d.ts
|
|
6
|
-
|
|
7
|
-
interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
8
|
-
defaultConfig?: Children;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { EnvBuiltinProps };
|