@shell-shock/plugin-theme 0.4.20 → 0.4.23
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/_virtual/_rolldown/runtime.mjs +41 -0
- package/dist/contexts/theme.mjs.map +1 -1
- package/dist/core/dist/types/command.d.cts +0 -1
- package/dist/core/dist/types/command.d.cts.map +1 -1
- package/dist/core/dist/types/config.d.cts +13 -11
- package/dist/core/dist/types/config.d.cts.map +1 -1
- package/dist/core/dist/types/context.d.cts +3 -2
- package/dist/core/dist/types/context.d.cts.map +1 -1
- package/dist/helpers/ansi-utils.mjs.map +1 -1
- package/dist/helpers/border-styles.mjs.map +1 -1
- package/dist/helpers/constants.d.cts +2 -2
- package/dist/helpers/constants.d.cts.map +1 -1
- package/dist/helpers/constants.d.mts +2 -2
- package/dist/helpers/constants.d.mts.map +1 -1
- package/dist/helpers/constants.mjs.map +1 -1
- package/dist/helpers/merge.mjs.map +1 -1
- package/dist/helpers/spinners.mjs.map +1 -1
- package/dist/index.cjs +41 -47
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +41 -46
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts +8 -0
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/ZodError.d.mts +11 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/ZodError.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/errors.d.mts +10 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/errors.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/external.d.mts +14 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/external.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/enumUtil.d.mts +8 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/enumUtil.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/errorUtil.d.mts +8 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/errorUtil.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/parseUtil.d.mts +10 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/parseUtil.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/partialUtil.d.mts +9 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/partialUtil.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/typeAliases.d.mts +8 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/typeAliases.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/util.d.mts +8 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/util.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/index.d.mts +9 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/locales/en.d.mts +9 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/locales/en.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/standard-schema.d.mts +8 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/standard-schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/types.d.mts +16 -0
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/types.d.mts.map +1 -0
- package/dist/packages/core/dist/api.d.mts +9 -0
- package/dist/packages/core/dist/api.d.mts.map +1 -0
- package/dist/packages/core/dist/index.d.mts +13 -0
- package/dist/packages/core/dist/index.d.mts.map +1 -0
- package/dist/packages/core/dist/types/command.d.mts +10 -0
- package/dist/packages/core/dist/types/command.d.mts.map +1 -0
- package/dist/packages/core/dist/types/config.d.mts +10 -0
- package/dist/packages/core/dist/types/config.d.mts.map +1 -0
- package/dist/packages/core/dist/types/context.d.mts +10 -0
- package/dist/packages/core/dist/types/context.d.mts.map +1 -0
- package/dist/packages/core/dist/types/options.d.mts +8 -0
- package/dist/packages/core/dist/types/options.d.mts.map +1 -0
- package/dist/style-dictionary/border-styles.mjs.map +1 -1
- package/dist/style-dictionary/colors.mjs.map +1 -1
- package/dist/style-dictionary/icons.mjs.map +1 -1
- package/dist/style-dictionary/labels.mjs.map +1 -1
- package/dist/style-dictionary/padding.mjs.map +1 -1
- package/dist/style-dictionary/settings.mjs.map +1 -1
- package/dist/style-dictionary/spinners.mjs.map +1 -1
- package/dist/themes/default.mjs.map +1 -1
- package/dist/types/plugin.d.mts +4 -5
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +13 -10
- package/dist/core/dist/api.d.mts +0 -1
- package/dist/core/dist/index.d.mts +0 -3
- package/dist/core/dist/types/command.d.mts +0 -274
- package/dist/core/dist/types/command.d.mts.map +0 -1
- package/dist/core/dist/types/config.d.mts +0 -119
- package/dist/core/dist/types/config.d.mts.map +0 -1
- package/dist/core/dist/types/context.d.mts +0 -28
- package/dist/core/dist/types/context.d.mts.map +0 -1
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { CommandBase, CommandOption } from "./command.mjs";
|
|
2
|
-
import { Context } from "./context.mjs";
|
|
3
|
-
import { OutputConfig } from "powerlines";
|
|
4
|
-
import { AutoMDPluginResolvedConfig } from "@powerlines/plugin-automd";
|
|
5
|
-
import { NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig } from "@powerlines/plugin-nodejs/types/plugin";
|
|
6
|
-
import { TsdownPluginResolvedConfig, TsdownPluginUserConfig } from "@powerlines/plugin-tsdown/types/plugin";
|
|
7
|
-
|
|
8
|
-
//#region ../core/dist/types/config.d.cts
|
|
9
|
-
//#region src/types/config.d.ts
|
|
10
|
-
type BuildOptions = Pick<TsdownPluginUserConfig, "root" | "name" | "title" | "description" | "logLevel" | "mode" | "skipCache" | "autoInstall" | "plugins" | "tsconfig" | "tsconfigRaw">;
|
|
11
|
-
interface ReferenceOptions {
|
|
12
|
-
/**
|
|
13
|
-
* A URL to the application documentation or reference.
|
|
14
|
-
*/
|
|
15
|
-
app: string;
|
|
16
|
-
/**
|
|
17
|
-
* A URL to the application command specific documentation or reference.
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* This URL is expected to contain the token `{command}`, which will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{reference}/command/subcommand`.
|
|
21
|
-
*/
|
|
22
|
-
commands?: string;
|
|
23
|
-
}
|
|
24
|
-
type BaseOptions = Partial<BuildOptions> & {
|
|
25
|
-
/**
|
|
26
|
-
* A set of global command options to apply to each command.
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* Each command will inherit these global options. To disable the addition of these global options, set this property to `false`, or provide a custom set of options/a function that returns them. A `GlobalOptions` interface will be created by the `shell-shock types` command and added to the generated `shell-shock.d.ts` file.
|
|
30
|
-
*/
|
|
31
|
-
globalOptions?: CommandOption[] | ((context: Context, input: CommandBase) => CommandOption[]) | false;
|
|
32
|
-
/**
|
|
33
|
-
* Determines whether commands and option names are treated as case-sensitive.
|
|
34
|
-
*
|
|
35
|
-
* @defaultValue `false`
|
|
36
|
-
*/
|
|
37
|
-
isCaseSensitive?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The name of the binary (the {@link https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin | "bin" field} in package.json) that will be used to run the application through NodeJs package managers (e.g., npm, yarn, pnpm).
|
|
40
|
-
*
|
|
41
|
-
* @remarks
|
|
42
|
-
* If an array is provided, each binary will be linked to the same compiled output file. If not provided, the {@link Options.name | name} option will be used.
|
|
43
|
-
*
|
|
44
|
-
* @see https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin
|
|
45
|
-
* @see https://yarnpkg.com/cli/bin
|
|
46
|
-
* @see https://pnpm.io/package_json#bin
|
|
47
|
-
*/
|
|
48
|
-
bin?: string | string[];
|
|
49
|
-
/**
|
|
50
|
-
* Should Shell Shock attempt to automatically assign environment variables to manipulate default values for command options based on the option name?
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
* If set to a string, Shell Shock will use the provided string as an application specific environment variable prefix, convert the option name to {@link https://stringcase.org/cases/constant/ | constant case}, and prepend the provided `string` value to determine the corresponding environment variable name. For example, if an option is named `"configPath"` and the `autoAssignEnv` is `"MY_APP_"`, Shell Shock will look for an environment variable named `"MY_APP_CONFIG_PATH"` and assign its value to the option if it exists. If set to `true`, Shell Shock will use a default environment variable prefix derived from the {@link Options.name | application name}.
|
|
54
|
-
*
|
|
55
|
-
* @see https://medium.com/chingu/an-introduction-to-environment-variables-and-how-to-use-them-f602f66d15fa
|
|
56
|
-
* @see https://stringcase.org/cases/constant/
|
|
57
|
-
*/
|
|
58
|
-
autoAssignEnv?: true | string;
|
|
59
|
-
/**
|
|
60
|
-
* A URL to the application documentation or reference.
|
|
61
|
-
*
|
|
62
|
-
* @remarks
|
|
63
|
-
* This URL can be used in various displays of the user interface and documentation to provide users with a reference for the application. It can also be used by plugins to link to the documentation in relevant contexts. If the token `{command}` is included in the URL, it will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{reference}/command/subcommand`.
|
|
64
|
-
*/
|
|
65
|
-
reference?: ReferenceOptions | string;
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* The plugin options for Shell Shock.
|
|
69
|
-
*/
|
|
70
|
-
type Options = BaseOptions & Partial<NodeJsPluginOptions>;
|
|
71
|
-
/**
|
|
72
|
-
* The output configuration options for Shell Shock.
|
|
73
|
-
*/
|
|
74
|
-
type OutputConfig$1 = Pick<OutputConfig, "path" | "copy" | "storage"> & {
|
|
75
|
-
/**
|
|
76
|
-
* An indicator specifying whether to generate TypeScript declaration files (.d.ts) during the build process.
|
|
77
|
-
*/
|
|
78
|
-
dts?: false;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* The user configuration options for Shell Shock.
|
|
82
|
-
*/
|
|
83
|
-
type UserConfig = BaseOptions & Partial<NodeJsPluginUserConfig> & Pick<NodeJsPluginUserConfig, "root"> & {
|
|
84
|
-
/**
|
|
85
|
-
* Configuration for the output of the build process
|
|
86
|
-
*/
|
|
87
|
-
output?: OutputConfig$1;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* The resolved configuration options for Shell Shock.
|
|
91
|
-
*/
|
|
92
|
-
type ResolvedConfig = TsdownPluginResolvedConfig & AutoMDPluginResolvedConfig & NodeJsPluginResolvedConfig & Required<Omit<Options, "bin" | "reference">> & {
|
|
93
|
-
/**
|
|
94
|
-
* The name of the binary (the {@link https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin | "bin" field} in package.json) that will be used to run the application through NodeJs package managers (e.g., npm, yarn, pnpm).
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
* If an array is provided, each binary will be linked to the same compiled output file. If not provided, the {@link Options.name | name} option will be used.
|
|
98
|
-
*
|
|
99
|
-
* @see https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin
|
|
100
|
-
* @see https://yarnpkg.com/cli/bin
|
|
101
|
-
* @see https://pnpm.io/package_json#bin
|
|
102
|
-
*/
|
|
103
|
-
bin: Record<string, string>;
|
|
104
|
-
/**
|
|
105
|
-
* The URL(s) to the application documentation or reference.
|
|
106
|
-
*/
|
|
107
|
-
reference: ReferenceOptions;
|
|
108
|
-
/**
|
|
109
|
-
* The command-line application specific environment variable prefix used for automatically assigning environment variables to command options.
|
|
110
|
-
*/
|
|
111
|
-
appSpecificEnvPrefix: string;
|
|
112
|
-
/**
|
|
113
|
-
* The user configuration for the Shell Shock process.
|
|
114
|
-
*/
|
|
115
|
-
userConfig: UserConfig;
|
|
116
|
-
}; //#endregion
|
|
117
|
-
//#endregion
|
|
118
|
-
export { Options, OutputConfig$1 as OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig };
|
|
119
|
-
//# sourceMappingURL=config.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","names":["CommandBase","CommandOption","Context","OutputConfig","OutputConfig$1","AutoMDPluginResolvedConfig","NodeJsPluginOptions","NodeJsPluginResolvedConfig","NodeJsPluginUserConfig","TsdownPluginResolvedConfig","TsdownPluginUserConfig","BuildOptions","Pick","ReferenceOptions","app","commands","BaseOptions","Partial","globalOptions","context","input","isCaseSensitive","bin","autoAssignEnv","reference","Options","dts","UserConfig","output","ResolvedConfig","Omit","Required","Record","appSpecificEnvPrefix","userConfig"],"sources":["../../../../../core/dist/types/config.d.cts"],"mappings":";;;;;;;;;KAQKW,YAAAA,GAAeC,IAAAA,CAAKF,sBAAAA;AAAAA,UACfG,gBAAAA;;;;EAIRC,GAAAA;EAJwB;;;;AAWhB;;EAARC,QAAAA;AAAAA;AAAAA,KAEGC,WAAAA,GAAcC,OAAAA,CAAQN,YAAAA;EAOTV;;;;;;EAAhBiB,aAAAA,GAAgBjB,aAAAA,OAAoBkB,OAAAA,EAASjB,OAAAA,EAASkB,KAAAA,EAAOpB,WAAAA,KAAgBC,aAAAA;EAP5DgB;;;;;EAajBI,eAAAA;EAN6DrB;;;;;;;;;;EAiB7DsB,GAAAA;EAsBU;;;;;;;;;EAZVC,aAAAA;EAYsD;;AAAA;;;;EALtDC,SAAAA,GAAYX,gBAAAA;AAAAA;;;;KAKTY,OAAAA,GAAUT,WAAAA,GAAcC,OAAAA,CAAQX,mBAAAA;;;;KAIhCH,cAAAA,GAAeS,IAAAA,CAAKR,YAAAA;EASOa;;;EAL9BS,GAAAA;AAAAA;;;;KAKGC,UAAAA,GAAaX,WAAAA,GAAcC,OAAAA,CAAQT,sBAAAA,IAA0BI,IAAAA,CAAKJ,sBAAAA;EAALI;;;EAIhEgB,MAAAA,GAASzB,cAAAA;AAAAA;;AAAY;;KAKlB0B,cAAAA,GAAiBpB,0BAAAA,GAA6BJ,0BAAAA,GAA6BE,0BAAAA,GAA6BwB,QAAAA,CAASD,IAAAA,CAAKL,OAAAA;EAArGhB;;;;;;;;;;EAWpBa,GAAAA,EAAKU,MAAAA;EAXevB;;;EAepBe,SAAAA,EAAWX,gBAAAA;EAfyGiB;;;EAmBpHG,oBAAAA;EAJAT;;;EAQAU,UAAAA,EAAYP,UAAAA;AAAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { CommandConfig, CommandOption, CommandTree } from "./command.mjs";
|
|
2
|
-
import { ResolvedConfig } from "./config.mjs";
|
|
3
|
-
import { NodeJsPluginContext } from "@powerlines/plugin-nodejs/types/plugin";
|
|
4
|
-
import { TsdownPluginContext } from "@powerlines/plugin-tsdown/types/plugin";
|
|
5
|
-
|
|
6
|
-
//#region ../core/dist/types/context.d.cts
|
|
7
|
-
//#region src/types/context.d.ts
|
|
8
|
-
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = TsdownPluginContext<TResolvedConfig> & NodeJsPluginContext<TResolvedConfig> & {
|
|
9
|
-
/**
|
|
10
|
-
* The root path where commands are located.
|
|
11
|
-
*/
|
|
12
|
-
commandsPath: string;
|
|
13
|
-
/**
|
|
14
|
-
* The default command arguments to apply to all application commands.
|
|
15
|
-
*/
|
|
16
|
-
options: CommandOption[];
|
|
17
|
-
/**
|
|
18
|
-
* The list of commands discovered in the project.
|
|
19
|
-
*/
|
|
20
|
-
inputs: CommandConfig[];
|
|
21
|
-
/**
|
|
22
|
-
* The command-line application structure.
|
|
23
|
-
*/
|
|
24
|
-
commands: Record<string, CommandTree>;
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
export { Context };
|
|
28
|
-
//# sourceMappingURL=context.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.mts","names":["CommandConfig","CommandOption","CommandTree","ResolvedConfig","UnresolvedContext","UnresolvedContext$1","NodeJsPluginContext","TsdownPluginContext","Context","TResolvedConfig","Record","commandsPath","options","inputs","commands"],"sources":["../../../../../core/dist/types/context.d.cts"],"mappings":";;;;;;;KAOKQ,OAAAA,yBAAgCL,cAAAA,GAAiBA,cAAAA,IAAkBI,mBAAAA,CAAoBE,eAAAA,IAAmBH,mBAAAA,CAAoBG,eAAAA;EAAvH;;;EAIVE,YAAAA;EAJ0FF;;;EAQ1FG,OAAAA,EAASX,aAAAA;EAAAA;;;EAITY,MAAAA,EAAQb,aAAAA;EAIQ;;;EAAhBc,QAAAA,EAAUJ,MAAAA,SAAeR,WAAAA;AAAAA"}
|