@powerlines/plugin-typedoc 0.1.0 → 0.3.0
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/types/index.d.cts +2 -4
- package/dist/types/index.d.ts +2 -4
- package/dist/types/plugin.d.cts +23 -64
- package/dist/types/plugin.d.ts +23 -64
- package/package.json +5 -5
package/dist/types/index.d.cts
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
export { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig } from './plugin.cjs';
|
|
2
|
-
import '@babel/core';
|
|
3
2
|
import '@storm-software/build-tools/types';
|
|
4
3
|
import '@storm-software/config-tools/types';
|
|
5
4
|
import '@storm-software/config/types';
|
|
6
5
|
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/file';
|
|
8
7
|
import 'vite';
|
|
9
|
-
import '@babel/helper-plugin-utils';
|
|
10
8
|
import '@stryke/env/get-env-paths';
|
|
11
9
|
import '@stryke/types/package-json';
|
|
12
10
|
import 'jiti';
|
|
13
11
|
import '@deepkit/type';
|
|
12
|
+
import 'semver';
|
|
14
13
|
import 'unplugin';
|
|
15
14
|
import '@stryke/capnp';
|
|
16
15
|
import '@stryke/types/base';
|
|
17
16
|
import '@stryke/types/tsconfig';
|
|
18
17
|
import 'typescript';
|
|
19
|
-
import 'semver';
|
|
20
|
-
import '@stryke/types/array';
|
|
21
18
|
import 'memfs';
|
|
22
19
|
import 'node:fs';
|
|
23
20
|
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
24
22
|
import 'typedoc';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
export { GenerateDocsOptions, TypeDocPluginContext, TypeDocPluginOptions, TypeDocPluginResolvedConfig, TypeDocPluginUserConfig, __ΩGenerateDocsOptions, __ΩTypeDocPluginContext, __ΩTypeDocPluginOptions, __ΩTypeDocPluginResolvedConfig, __ΩTypeDocPluginUserConfig } from './plugin.js';
|
|
2
|
-
import '@babel/core';
|
|
3
2
|
import '@storm-software/build-tools/types';
|
|
4
3
|
import '@storm-software/config-tools/types';
|
|
5
4
|
import '@storm-software/config/types';
|
|
6
5
|
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/file';
|
|
8
7
|
import 'vite';
|
|
9
|
-
import '@babel/helper-plugin-utils';
|
|
10
8
|
import '@stryke/env/get-env-paths';
|
|
11
9
|
import '@stryke/types/package-json';
|
|
12
10
|
import 'jiti';
|
|
13
11
|
import '@deepkit/type';
|
|
12
|
+
import 'semver';
|
|
14
13
|
import 'unplugin';
|
|
15
14
|
import '@stryke/capnp';
|
|
16
15
|
import '@stryke/types/base';
|
|
17
16
|
import '@stryke/types/tsconfig';
|
|
18
17
|
import 'typescript';
|
|
19
|
-
import 'semver';
|
|
20
|
-
import '@stryke/types/array';
|
|
21
18
|
import 'memfs';
|
|
22
19
|
import 'node:fs';
|
|
23
20
|
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
24
22
|
import 'typedoc';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
|
|
2
1
|
import { Format } from '@storm-software/build-tools/types';
|
|
3
2
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
3
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
5
4
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
6
5
|
import { AssetGlob } from '@stryke/types/file';
|
|
7
6
|
import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
8
|
-
import { BabelAPI } from '@babel/helper-plugin-utils';
|
|
9
7
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
10
8
|
import { PackageJson } from '@stryke/types/package-json';
|
|
11
9
|
import { Jiti } from 'jiti';
|
|
12
10
|
import { ReflectionClass } from '@deepkit/type';
|
|
11
|
+
import { Range } from 'semver';
|
|
13
12
|
import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
|
|
14
13
|
import * as $ from '@stryke/capnp';
|
|
15
14
|
import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
|
|
16
15
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
17
16
|
import ts from 'typescript';
|
|
18
|
-
import { Range } from 'semver';
|
|
19
|
-
import { ArrayValues } from '@stryke/types/array';
|
|
20
17
|
import { Volume } from 'memfs';
|
|
21
18
|
import { StatSyncOptions, Stats, PathLike, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
22
19
|
import { IUnionFs } from 'unionfs';
|
|
20
|
+
import { ArrayValues } from '@stryke/types/array';
|
|
23
21
|
import { ProjectReflection, TypeDocOptions, Application } from 'typedoc';
|
|
24
22
|
|
|
25
23
|
declare const ReflectionKind: {
|
|
@@ -1655,7 +1653,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
1655
1653
|
/**
|
|
1656
1654
|
* The resolved options for the Powerlines project configuration.
|
|
1657
1655
|
*/
|
|
1658
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "build" | "transform" | "override" | "root" | "variant" | "type" | "output" | "logLevel"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "build" | "transform" | "override">> & {
|
|
1656
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "build" | "transform" | "override" | "root" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "build" | "transform" | "override" | "framework">> & {
|
|
1659
1657
|
/**
|
|
1660
1658
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
1661
1659
|
*/
|
|
@@ -1701,11 +1699,6 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
|
|
|
1701
1699
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
|
|
1702
1700
|
type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
|
|
1703
1701
|
|
|
1704
|
-
type PackageDependencyMeta = "dependency" | "devDependency" | {
|
|
1705
|
-
version?: string | Range;
|
|
1706
|
-
type?: "dependency" | "devDependency";
|
|
1707
|
-
};
|
|
1708
|
-
type PackageDependencies = Record<string, PackageDependencyMeta>;
|
|
1709
1702
|
interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
|
|
1710
1703
|
/**
|
|
1711
1704
|
* The order in which the plugin should be applied.
|
|
@@ -2419,13 +2412,6 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
2419
2412
|
* The relative path to the Powerlines workspace root directory
|
|
2420
2413
|
*/
|
|
2421
2414
|
relativeToWorkspaceRoot: string;
|
|
2422
|
-
/**
|
|
2423
|
-
* The path to the \powerlines package
|
|
2424
|
-
*
|
|
2425
|
-
* @remarks
|
|
2426
|
-
* This is used to determine the path to the Powerlines core package, which contains the runtime files.
|
|
2427
|
-
*/
|
|
2428
|
-
corePackagePath: string;
|
|
2429
2415
|
/**
|
|
2430
2416
|
* The Powerlines artifacts directory
|
|
2431
2417
|
*/
|
|
@@ -2455,9 +2441,17 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
2455
2441
|
*/
|
|
2456
2442
|
envPaths: EnvPaths;
|
|
2457
2443
|
/**
|
|
2458
|
-
* The
|
|
2444
|
+
* The file system path to the Powerlines package installation
|
|
2459
2445
|
*/
|
|
2460
|
-
|
|
2446
|
+
powerlinesPath: string;
|
|
2447
|
+
/**
|
|
2448
|
+
* The dependency installations required by the project
|
|
2449
|
+
*/
|
|
2450
|
+
dependencies: Record<string, string | Range>;
|
|
2451
|
+
/**
|
|
2452
|
+
* The development dependency installations required by the project
|
|
2453
|
+
*/
|
|
2454
|
+
devDependencies: Record<string, string | Range>;
|
|
2461
2455
|
/**
|
|
2462
2456
|
* The project's `package.json` file content
|
|
2463
2457
|
*/
|
|
@@ -2512,24 +2506,6 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
2512
2506
|
}
|
|
2513
2507
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & UnpluginBuildContext;
|
|
2514
2508
|
|
|
2515
|
-
type BabelPluginPass<TState = unknown> = PluginPass & TState;
|
|
2516
|
-
type BabelTransformPluginFilter = (code: string, id: string) => boolean;
|
|
2517
|
-
type BabelTransformPlugin<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = ((context: TContext) => (options: {
|
|
2518
|
-
name: string;
|
|
2519
|
-
log: LogFn;
|
|
2520
|
-
api: BabelAPI;
|
|
2521
|
-
options: TOptions;
|
|
2522
|
-
context: TContext;
|
|
2523
|
-
dirname: string;
|
|
2524
|
-
}) => PluginObj<TOptions & BabelPluginPass<TState>>) & {
|
|
2525
|
-
$$name: string;
|
|
2526
|
-
};
|
|
2527
|
-
type BabelTransformPluginOptions<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = PluginItem | BabelTransformPlugin<TContext, TOptions, TState> | [BabelTransformPlugin<TContext, TOptions, TState>, TOptions] | [
|
|
2528
|
-
BabelTransformPlugin<TContext, TOptions, TState>,
|
|
2529
|
-
TOptions,
|
|
2530
|
-
BabelTransformPluginFilter
|
|
2531
|
-
];
|
|
2532
|
-
|
|
2533
2509
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
2534
2510
|
/**
|
|
2535
2511
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
@@ -2555,16 +2531,6 @@ type PluginConfigObject<TProps = unknown, TContext extends PluginContext = Plugi
|
|
|
2555
2531
|
*/
|
|
2556
2532
|
type PluginConfig<TContext extends PluginContext = PluginContext, TProps = unknown> = string | PluginFactory<void, TContext> | Plugin<TContext> | PluginConfigTuple<TProps> | PluginConfigObject<TProps>;
|
|
2557
2533
|
type ProjectType = "application" | "library";
|
|
2558
|
-
type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
2559
|
-
/**
|
|
2560
|
-
* The Babel plugins to be used during the build process
|
|
2561
|
-
*/
|
|
2562
|
-
plugins?: BabelTransformPluginOptions[];
|
|
2563
|
-
/**
|
|
2564
|
-
* The Babel presets to be used during the build process
|
|
2565
|
-
*/
|
|
2566
|
-
presets?: BabelTransformPluginOptions[];
|
|
2567
|
-
};
|
|
2568
2534
|
interface ESLintConfig {
|
|
2569
2535
|
eslintOptions?: any;
|
|
2570
2536
|
reportErrorsOnly?: boolean;
|
|
@@ -2613,14 +2579,14 @@ interface OutputConfig {
|
|
|
2613
2579
|
*/
|
|
2614
2580
|
builtinPrefix?: string;
|
|
2615
2581
|
/**
|
|
2616
|
-
* The folder where the generated runtime
|
|
2582
|
+
* The folder where the generated runtime artifacts will be located
|
|
2617
2583
|
*
|
|
2618
2584
|
* @remarks
|
|
2619
|
-
* This folder will contain all runtime
|
|
2585
|
+
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
2620
2586
|
*
|
|
2621
2587
|
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
2622
2588
|
*/
|
|
2623
|
-
|
|
2589
|
+
artifactsFolder?: string;
|
|
2624
2590
|
/**
|
|
2625
2591
|
* The module format of the output files
|
|
2626
2592
|
*
|
|
@@ -2638,19 +2604,6 @@ interface OutputConfig {
|
|
|
2638
2604
|
*/
|
|
2639
2605
|
assets?: Array<string | AssetGlob>;
|
|
2640
2606
|
}
|
|
2641
|
-
interface TransformConfig {
|
|
2642
|
-
/**
|
|
2643
|
-
* The Babel configuration options to use for the build process
|
|
2644
|
-
*/
|
|
2645
|
-
babel?: BabelUserConfig;
|
|
2646
|
-
/**
|
|
2647
|
-
* Reflection configuration options for the Deepkit TSC custom transformers
|
|
2648
|
-
*
|
|
2649
|
-
* @remarks
|
|
2650
|
-
* These options will be merged with the `tsconfig.json` file and the `tsconfigRaw` options.
|
|
2651
|
-
*/
|
|
2652
|
-
deepkit?: DeepkitOptions;
|
|
2653
|
-
}
|
|
2654
2607
|
interface BaseConfig {
|
|
2655
2608
|
/**
|
|
2656
2609
|
* The name of the project
|
|
@@ -2701,7 +2654,7 @@ interface BaseConfig {
|
|
|
2701
2654
|
/**
|
|
2702
2655
|
* Configuration for the transformation of the source code
|
|
2703
2656
|
*/
|
|
2704
|
-
transform?:
|
|
2657
|
+
transform?: Record<string, any>;
|
|
2705
2658
|
/**
|
|
2706
2659
|
* Options to to provide to the build process
|
|
2707
2660
|
*/
|
|
@@ -2826,6 +2779,12 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
2826
2779
|
* Environment-specific configurations
|
|
2827
2780
|
*/
|
|
2828
2781
|
environments?: Record<string, EnvironmentConfig>;
|
|
2782
|
+
/**
|
|
2783
|
+
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
2784
|
+
*
|
|
2785
|
+
* @defaultValue "powerlines"
|
|
2786
|
+
*/
|
|
2787
|
+
framework?: string;
|
|
2829
2788
|
}
|
|
2830
2789
|
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = CommonUserConfig & {
|
|
2831
2790
|
build?: TBuildConfig & {
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
|
|
2
1
|
import { Format } from '@storm-software/build-tools/types';
|
|
3
2
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
3
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
5
4
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
6
5
|
import { AssetGlob } from '@stryke/types/file';
|
|
7
6
|
import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
8
|
-
import { BabelAPI } from '@babel/helper-plugin-utils';
|
|
9
7
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
10
8
|
import { PackageJson } from '@stryke/types/package-json';
|
|
11
9
|
import { Jiti } from 'jiti';
|
|
12
10
|
import { ReflectionClass } from '@deepkit/type';
|
|
11
|
+
import { Range } from 'semver';
|
|
13
12
|
import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
|
|
14
13
|
import * as $ from '@stryke/capnp';
|
|
15
14
|
import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
|
|
16
15
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
17
16
|
import ts from 'typescript';
|
|
18
|
-
import { Range } from 'semver';
|
|
19
|
-
import { ArrayValues } from '@stryke/types/array';
|
|
20
17
|
import { Volume } from 'memfs';
|
|
21
18
|
import { StatSyncOptions, Stats, PathLike, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
22
19
|
import { IUnionFs } from 'unionfs';
|
|
20
|
+
import { ArrayValues } from '@stryke/types/array';
|
|
23
21
|
import { ProjectReflection, TypeDocOptions, Application } from 'typedoc';
|
|
24
22
|
|
|
25
23
|
declare const ReflectionKind: {
|
|
@@ -1655,7 +1653,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
1655
1653
|
/**
|
|
1656
1654
|
* The resolved options for the Powerlines project configuration.
|
|
1657
1655
|
*/
|
|
1658
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "build" | "transform" | "override" | "root" | "variant" | "type" | "output" | "logLevel"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "build" | "transform" | "override">> & {
|
|
1656
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "build" | "transform" | "override" | "root" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "build" | "transform" | "override" | "framework">> & {
|
|
1659
1657
|
/**
|
|
1660
1658
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
1661
1659
|
*/
|
|
@@ -1701,11 +1699,6 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
|
|
|
1701
1699
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
|
|
1702
1700
|
type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
|
|
1703
1701
|
|
|
1704
|
-
type PackageDependencyMeta = "dependency" | "devDependency" | {
|
|
1705
|
-
version?: string | Range;
|
|
1706
|
-
type?: "dependency" | "devDependency";
|
|
1707
|
-
};
|
|
1708
|
-
type PackageDependencies = Record<string, PackageDependencyMeta>;
|
|
1709
1702
|
interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
|
|
1710
1703
|
/**
|
|
1711
1704
|
* The order in which the plugin should be applied.
|
|
@@ -2419,13 +2412,6 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
2419
2412
|
* The relative path to the Powerlines workspace root directory
|
|
2420
2413
|
*/
|
|
2421
2414
|
relativeToWorkspaceRoot: string;
|
|
2422
|
-
/**
|
|
2423
|
-
* The path to the \powerlines package
|
|
2424
|
-
*
|
|
2425
|
-
* @remarks
|
|
2426
|
-
* This is used to determine the path to the Powerlines core package, which contains the runtime files.
|
|
2427
|
-
*/
|
|
2428
|
-
corePackagePath: string;
|
|
2429
2415
|
/**
|
|
2430
2416
|
* The Powerlines artifacts directory
|
|
2431
2417
|
*/
|
|
@@ -2455,9 +2441,17 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
2455
2441
|
*/
|
|
2456
2442
|
envPaths: EnvPaths;
|
|
2457
2443
|
/**
|
|
2458
|
-
* The
|
|
2444
|
+
* The file system path to the Powerlines package installation
|
|
2459
2445
|
*/
|
|
2460
|
-
|
|
2446
|
+
powerlinesPath: string;
|
|
2447
|
+
/**
|
|
2448
|
+
* The dependency installations required by the project
|
|
2449
|
+
*/
|
|
2450
|
+
dependencies: Record<string, string | Range>;
|
|
2451
|
+
/**
|
|
2452
|
+
* The development dependency installations required by the project
|
|
2453
|
+
*/
|
|
2454
|
+
devDependencies: Record<string, string | Range>;
|
|
2461
2455
|
/**
|
|
2462
2456
|
* The project's `package.json` file content
|
|
2463
2457
|
*/
|
|
@@ -2512,24 +2506,6 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
2512
2506
|
}
|
|
2513
2507
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & UnpluginBuildContext;
|
|
2514
2508
|
|
|
2515
|
-
type BabelPluginPass<TState = unknown> = PluginPass & TState;
|
|
2516
|
-
type BabelTransformPluginFilter = (code: string, id: string) => boolean;
|
|
2517
|
-
type BabelTransformPlugin<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = ((context: TContext) => (options: {
|
|
2518
|
-
name: string;
|
|
2519
|
-
log: LogFn;
|
|
2520
|
-
api: BabelAPI;
|
|
2521
|
-
options: TOptions;
|
|
2522
|
-
context: TContext;
|
|
2523
|
-
dirname: string;
|
|
2524
|
-
}) => PluginObj<TOptions & BabelPluginPass<TState>>) & {
|
|
2525
|
-
$$name: string;
|
|
2526
|
-
};
|
|
2527
|
-
type BabelTransformPluginOptions<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = PluginItem | BabelTransformPlugin<TContext, TOptions, TState> | [BabelTransformPlugin<TContext, TOptions, TState>, TOptions] | [
|
|
2528
|
-
BabelTransformPlugin<TContext, TOptions, TState>,
|
|
2529
|
-
TOptions,
|
|
2530
|
-
BabelTransformPluginFilter
|
|
2531
|
-
];
|
|
2532
|
-
|
|
2533
2509
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
2534
2510
|
/**
|
|
2535
2511
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
@@ -2555,16 +2531,6 @@ type PluginConfigObject<TProps = unknown, TContext extends PluginContext = Plugi
|
|
|
2555
2531
|
*/
|
|
2556
2532
|
type PluginConfig<TContext extends PluginContext = PluginContext, TProps = unknown> = string | PluginFactory<void, TContext> | Plugin<TContext> | PluginConfigTuple<TProps> | PluginConfigObject<TProps>;
|
|
2557
2533
|
type ProjectType = "application" | "library";
|
|
2558
|
-
type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
2559
|
-
/**
|
|
2560
|
-
* The Babel plugins to be used during the build process
|
|
2561
|
-
*/
|
|
2562
|
-
plugins?: BabelTransformPluginOptions[];
|
|
2563
|
-
/**
|
|
2564
|
-
* The Babel presets to be used during the build process
|
|
2565
|
-
*/
|
|
2566
|
-
presets?: BabelTransformPluginOptions[];
|
|
2567
|
-
};
|
|
2568
2534
|
interface ESLintConfig {
|
|
2569
2535
|
eslintOptions?: any;
|
|
2570
2536
|
reportErrorsOnly?: boolean;
|
|
@@ -2613,14 +2579,14 @@ interface OutputConfig {
|
|
|
2613
2579
|
*/
|
|
2614
2580
|
builtinPrefix?: string;
|
|
2615
2581
|
/**
|
|
2616
|
-
* The folder where the generated runtime
|
|
2582
|
+
* The folder where the generated runtime artifacts will be located
|
|
2617
2583
|
*
|
|
2618
2584
|
* @remarks
|
|
2619
|
-
* This folder will contain all runtime
|
|
2585
|
+
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
2620
2586
|
*
|
|
2621
2587
|
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
2622
2588
|
*/
|
|
2623
|
-
|
|
2589
|
+
artifactsFolder?: string;
|
|
2624
2590
|
/**
|
|
2625
2591
|
* The module format of the output files
|
|
2626
2592
|
*
|
|
@@ -2638,19 +2604,6 @@ interface OutputConfig {
|
|
|
2638
2604
|
*/
|
|
2639
2605
|
assets?: Array<string | AssetGlob>;
|
|
2640
2606
|
}
|
|
2641
|
-
interface TransformConfig {
|
|
2642
|
-
/**
|
|
2643
|
-
* The Babel configuration options to use for the build process
|
|
2644
|
-
*/
|
|
2645
|
-
babel?: BabelUserConfig;
|
|
2646
|
-
/**
|
|
2647
|
-
* Reflection configuration options for the Deepkit TSC custom transformers
|
|
2648
|
-
*
|
|
2649
|
-
* @remarks
|
|
2650
|
-
* These options will be merged with the `tsconfig.json` file and the `tsconfigRaw` options.
|
|
2651
|
-
*/
|
|
2652
|
-
deepkit?: DeepkitOptions;
|
|
2653
|
-
}
|
|
2654
2607
|
interface BaseConfig {
|
|
2655
2608
|
/**
|
|
2656
2609
|
* The name of the project
|
|
@@ -2701,7 +2654,7 @@ interface BaseConfig {
|
|
|
2701
2654
|
/**
|
|
2702
2655
|
* Configuration for the transformation of the source code
|
|
2703
2656
|
*/
|
|
2704
|
-
transform?:
|
|
2657
|
+
transform?: Record<string, any>;
|
|
2705
2658
|
/**
|
|
2706
2659
|
* Options to to provide to the build process
|
|
2707
2660
|
*/
|
|
@@ -2826,6 +2779,12 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
2826
2779
|
* Environment-specific configurations
|
|
2827
2780
|
*/
|
|
2828
2781
|
environments?: Record<string, EnvironmentConfig>;
|
|
2782
|
+
/**
|
|
2783
|
+
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
2784
|
+
*
|
|
2785
|
+
* @defaultValue "powerlines"
|
|
2786
|
+
*/
|
|
2787
|
+
framework?: string;
|
|
2829
2788
|
}
|
|
2830
2789
|
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = CommonUserConfig & {
|
|
2831
2790
|
build?: TBuildConfig & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-typedoc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running TypeDoc on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -89,18 +89,18 @@
|
|
|
89
89
|
"keywords": ["powerlines", "storm-software", "powerlines-plugin"],
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"@storm-software/config-tools": "^1.188.6",
|
|
92
|
-
"@stryke/path": "^0.15.5",
|
|
93
92
|
"@stryke/fs": "^0.31.4",
|
|
94
|
-
"
|
|
93
|
+
"@stryke/path": "^0.15.5",
|
|
94
|
+
"powerlines": "^0.4.0",
|
|
95
95
|
"typedoc": "0.25.12",
|
|
96
96
|
"typedoc-plugin-markdown": "4.0.0-next.20"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@powerlines/nx": "^0.
|
|
99
|
+
"@powerlines/nx": "^0.4.0",
|
|
100
100
|
"@storm-software/tsup": "^0.2.4",
|
|
101
101
|
"@types/node": "^22.18.11",
|
|
102
102
|
"tsup": "8.4.0"
|
|
103
103
|
},
|
|
104
104
|
"publishConfig": { "access": "public" },
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "f4d0c8a8f0036ac8de46ac96afd9336a390a7268"
|
|
106
106
|
}
|