@powerlines/plugin-env 0.15.8 → 0.15.10
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/babel/plugin.cjs +1 -1
- package/dist/babel/plugin.mjs +1 -1
- package/dist/helpers/load.cjs +2 -2
- package/dist/helpers/load.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/plugin-alloy/src/core/components/source-file.cjs +1 -1
- package/dist/plugin-alloy/src/core/components/source-file.mjs +1 -1
- package/dist/plugin-alloy/src/index.cjs +12 -5
- package/dist/plugin-alloy/src/index.mjs +12 -5
- package/dist/plugin-alloy/src/types/components.d.cts +2 -5
- package/dist/plugin-alloy/src/types/components.d.mts +2 -5
- package/dist/plugin-alloy/src/types/index.d.cts +1 -1
- package/dist/plugin-alloy/src/types/index.d.mts +1 -1
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +1 -1
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +1 -1
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +23 -5
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +24 -6
- package/dist/plugin-automd/src/index.cjs +2 -2
- package/dist/plugin-automd/src/index.mjs +1 -1
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -1
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -1
- package/dist/plugin-babel/src/index.cjs +4 -7
- package/dist/plugin-babel/src/index.mjs +2 -5
- package/dist/powerlines/src/api.d.mts +2 -2
- package/dist/powerlines/src/index.d.mts +8 -5
- package/dist/powerlines/src/internal/helpers/hooks.cjs +37 -19
- package/dist/powerlines/src/internal/helpers/hooks.d.cts +47 -0
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +46 -2
- package/dist/powerlines/src/internal/helpers/hooks.mjs +37 -20
- package/dist/powerlines/src/lib/build/esbuild.cjs +2 -2
- package/dist/powerlines/src/lib/build/esbuild.mjs +2 -2
- package/dist/powerlines/src/lib/entry.cjs +1 -1
- package/dist/powerlines/src/lib/entry.mjs +1 -1
- package/dist/powerlines/src/types/api.cjs +62 -1
- package/dist/powerlines/src/types/api.d.cts +104 -0
- package/dist/powerlines/src/types/api.d.mts +104 -5
- package/dist/powerlines/src/types/api.mjs +61 -2
- package/dist/powerlines/src/types/build.cjs +26 -4
- package/dist/powerlines/src/types/build.d.cts +43 -3
- package/dist/powerlines/src/types/build.d.mts +42 -4
- package/dist/powerlines/src/types/build.mjs +23 -3
- package/dist/powerlines/src/types/config.cjs +107 -0
- package/dist/powerlines/src/types/config.d.cts +60 -4
- package/dist/powerlines/src/types/config.d.mts +61 -5
- package/dist/powerlines/src/types/config.mjs +99 -1
- package/dist/powerlines/src/types/context.cjs +57 -0
- package/dist/powerlines/src/types/context.d.cts +113 -1
- package/dist/powerlines/src/types/context.d.mts +113 -3
- package/dist/powerlines/src/types/context.mjs +54 -1
- package/dist/powerlines/src/types/hooks.cjs +33 -14
- package/dist/powerlines/src/types/hooks.d.cts +32 -0
- package/dist/powerlines/src/types/hooks.d.mts +32 -2
- package/dist/powerlines/src/types/hooks.mjs +32 -12
- package/dist/powerlines/src/types/index.cjs +3 -3
- package/dist/powerlines/src/types/index.d.mts +8 -8
- package/dist/powerlines/src/types/index.mjs +7 -7
- package/dist/powerlines/src/types/plugin.cjs +40 -105
- package/dist/powerlines/src/types/plugin.d.cts +35 -61
- package/dist/powerlines/src/types/plugin.d.mts +35 -61
- package/dist/powerlines/src/types/plugin.mjs +40 -102
- package/dist/powerlines/src/types/resolved.d.cts +16 -4
- package/dist/powerlines/src/types/resolved.d.mts +16 -5
- package/dist/powerlines/src/types/unplugin.cjs +47 -1
- package/dist/powerlines/src/types/unplugin.d.cts +22 -0
- package/dist/powerlines/src/types/unplugin.d.mts +22 -6
- package/dist/powerlines/src/types/unplugin.mjs +45 -2
- package/package.json +9 -9
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { DepOptimizationOptions, UserConfig } from "vite";
|
|
2
|
+
import { UserConfig as UserConfig$1 } from "@farmfe/core";
|
|
3
|
+
import { Configuration } from "@rspack/core";
|
|
4
|
+
import { BuildOptions } from "@storm-software/tsup/types";
|
|
5
|
+
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
|
+
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
|
+
import { RolldownOptions } from "rolldown";
|
|
8
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
9
|
+
import { UserConfig as UserConfig$2 } from "tsdown";
|
|
10
|
+
import { Configuration as Configuration$1 } from "webpack";
|
|
2
11
|
|
|
3
|
-
|
|
12
|
+
//#region ../powerlines/src/types/build.d.ts
|
|
13
|
+
type UnpluginBuilderVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown" | "bun";
|
|
14
|
+
type BuilderVariant = UnpluginBuilderVariant | "tsup" | "tsdown" | "unbuild";
|
|
15
|
+
type InferUnpluginVariant<TBuildVariant extends BuilderVariant> = TBuildVariant extends "tsup" ? "esbuild" : TBuildVariant extends "tsdown" ? "rolldown" : TBuildVariant extends "unbuild" ? "rollup" : TBuildVariant;
|
|
4
16
|
interface BuildConfig {
|
|
5
17
|
/**
|
|
6
18
|
* The platform to build the project for
|
|
@@ -141,5 +153,33 @@ interface BuildConfig {
|
|
|
141
153
|
override?: Record<string, any>;
|
|
142
154
|
}
|
|
143
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
|
+
type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
|
+
type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
|
+
/**
|
|
160
|
+
* Optimize deps config
|
|
161
|
+
*/
|
|
162
|
+
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
163
|
+
};
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
165
|
+
type WebpackBuildConfig = Omit<Configuration$1, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
166
|
+
type WebpackResolvedBuildConfig = Configuration$1 & BuildResolvedConfig;
|
|
167
|
+
type RspackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
168
|
+
type RspackResolvedBuildConfig = Configuration & BuildResolvedConfig;
|
|
169
|
+
type RollupBuildOutputConfig = Omit<OutputOptions, "dir" | "format">;
|
|
170
|
+
type RollupBuildConfig = Omit<RollupOptions, "entry" | "external" | "input" | "output" | "logLevel"> & {
|
|
171
|
+
output: RollupBuildOutputConfig | RollupBuildOutputConfig[];
|
|
172
|
+
} & BuildConfig;
|
|
173
|
+
type RollupResolvedBuildConfig = RollupOptions & BuildResolvedConfig;
|
|
174
|
+
type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfig" | "logLevel" | "output"> & BuildConfig;
|
|
175
|
+
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
|
+
type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
|
+
type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
178
|
+
type TsdownBuildConfig = Partial<Omit<UserConfig$2, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
|
|
180
|
+
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
181
|
+
type UnbuildResolvedBuildConfig = UnbuildOptions & BuildResolvedConfig;
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig$1, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
144
184
|
//#endregion
|
|
145
|
-
export { BuildConfig, BuildResolvedConfig,
|
|
185
|
+
export { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig };
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import "esbuild";
|
|
1
|
+
import { BuildOptions } from "esbuild";
|
|
2
|
+
import { DepOptimizationOptions, UserConfig } from "vite";
|
|
3
|
+
import { UserConfig as UserConfig$1 } from "@farmfe/core";
|
|
4
|
+
import { Configuration } from "@rspack/core";
|
|
5
|
+
import { BuildOptions as BuildOptions$1 } from "@storm-software/tsup/types";
|
|
6
|
+
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
7
|
+
import { RolldownOptions } from "rolldown";
|
|
8
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
9
|
+
import { UserConfig as UserConfig$2 } from "tsdown";
|
|
10
|
+
import { Configuration as Configuration$1 } from "webpack";
|
|
2
11
|
|
|
3
12
|
//#region ../powerlines/src/types/build.d.ts
|
|
4
|
-
|
|
5
|
-
type
|
|
13
|
+
type UnpluginBuilderVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown" | "bun";
|
|
14
|
+
type BuilderVariant = UnpluginBuilderVariant | "tsup" | "tsdown" | "unbuild";
|
|
15
|
+
type InferUnpluginVariant<TBuildVariant extends BuilderVariant> = TBuildVariant extends "tsup" ? "esbuild" : TBuildVariant extends "tsdown" ? "rolldown" : TBuildVariant extends "unbuild" ? "rollup" : TBuildVariant;
|
|
6
16
|
interface BuildConfig {
|
|
7
17
|
/**
|
|
8
18
|
* The platform to build the project for
|
|
@@ -143,5 +153,33 @@ interface BuildConfig {
|
|
|
143
153
|
override?: Record<string, any>;
|
|
144
154
|
}
|
|
145
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
|
+
type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
|
+
type ESBuildResolvedBuildConfig = Omit<BuildOptions, "inject"> & BuildResolvedConfig;
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
|
+
/**
|
|
160
|
+
* Optimize deps config
|
|
161
|
+
*/
|
|
162
|
+
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
163
|
+
};
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
165
|
+
type WebpackBuildConfig = Omit<Configuration$1, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
166
|
+
type WebpackResolvedBuildConfig = Configuration$1 & BuildResolvedConfig;
|
|
167
|
+
type RspackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
168
|
+
type RspackResolvedBuildConfig = Configuration & BuildResolvedConfig;
|
|
169
|
+
type RollupBuildOutputConfig = Omit<OutputOptions, "dir" | "format">;
|
|
170
|
+
type RollupBuildConfig = Omit<RollupOptions, "entry" | "external" | "input" | "output" | "logLevel"> & {
|
|
171
|
+
output: RollupBuildOutputConfig | RollupBuildOutputConfig[];
|
|
172
|
+
} & BuildConfig;
|
|
173
|
+
type RollupResolvedBuildConfig = RollupOptions & BuildResolvedConfig;
|
|
174
|
+
type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfig" | "logLevel" | "output"> & BuildConfig;
|
|
175
|
+
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
|
+
type TsupBuildConfig = Partial<Omit<BuildOptions$1, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
|
+
type TsupResolvedBuildConfig = BuildOptions$1 & BuildResolvedConfig;
|
|
178
|
+
type TsdownBuildConfig = Partial<Omit<UserConfig$2, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
|
|
180
|
+
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
181
|
+
type UnbuildResolvedBuildConfig = UnbuildOptions & BuildResolvedConfig;
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig$1, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
146
184
|
//#endregion
|
|
147
|
-
export { BuildConfig, BuildResolvedConfig,
|
|
185
|
+
export { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig };
|
|
@@ -25,7 +25,7 @@ const __ΩExclude = [
|
|
|
25
25
|
"Exclude",
|
|
26
26
|
"l6!Re$!RPe#!e$\"qk#%QRb!b\"Pde\"!p)w#y"
|
|
27
27
|
];
|
|
28
|
-
const
|
|
28
|
+
const __ΩUnpluginBuilderVariant = [
|
|
29
29
|
"rollup",
|
|
30
30
|
"webpack",
|
|
31
31
|
"rspack",
|
|
@@ -33,7 +33,27 @@ const UNPLUGIN_BUILD_VARIANTS = [
|
|
|
33
33
|
"esbuild",
|
|
34
34
|
"farm",
|
|
35
35
|
"unloader",
|
|
36
|
-
"rolldown"
|
|
36
|
+
"rolldown",
|
|
37
|
+
"bun",
|
|
38
|
+
"UnpluginBuilderVariant",
|
|
39
|
+
"P.!.\".#.$.%.&.'.(.)Jw*y"
|
|
40
|
+
];
|
|
41
|
+
const UNPLUGIN_BUILDER_VARIANTS = [
|
|
42
|
+
"rollup",
|
|
43
|
+
"webpack",
|
|
44
|
+
"rspack",
|
|
45
|
+
"vite",
|
|
46
|
+
"esbuild",
|
|
47
|
+
"farm",
|
|
48
|
+
"unloader",
|
|
49
|
+
"rolldown",
|
|
50
|
+
"bun"
|
|
51
|
+
];
|
|
52
|
+
const BUILDER_VARIANTS = [
|
|
53
|
+
...UNPLUGIN_BUILDER_VARIANTS,
|
|
54
|
+
"tsup",
|
|
55
|
+
"tsdown",
|
|
56
|
+
"unbuild"
|
|
37
57
|
];
|
|
38
58
|
const __ΩBuildConfig = [
|
|
39
59
|
"node",
|
|
@@ -98,4 +118,4 @@ const __ΩESBuildResolvedBuildConfig = [
|
|
|
98
118
|
];
|
|
99
119
|
|
|
100
120
|
//#endregion
|
|
101
|
-
export {
|
|
121
|
+
export { BUILDER_VARIANTS, UNPLUGIN_BUILDER_VARIANTS, __ΩBuildConfig, __ΩBuildResolvedConfig, __ΩESBuildResolvedBuildConfig, __ΩUnpluginBuilderVariant };
|
|
@@ -288,19 +288,126 @@ const __ΩUserConfig = [
|
|
|
288
288
|
"UserConfig",
|
|
289
289
|
"\"w!c\"\"w#c$\"c%Pn'.(o&#Pe#!.*o)#Pe$#4+8?,e$\"o-\"4.8?/MK40?1Mw2y"
|
|
290
290
|
];
|
|
291
|
+
const __ΩPowerlinesCommand = [
|
|
292
|
+
"new",
|
|
293
|
+
"prepare",
|
|
294
|
+
"build",
|
|
295
|
+
"lint",
|
|
296
|
+
"test",
|
|
297
|
+
"docs",
|
|
298
|
+
"deploy",
|
|
299
|
+
"clean",
|
|
300
|
+
"PowerlinesCommand",
|
|
301
|
+
"P.!.\".#.$.%.&.'.(Jw)y"
|
|
302
|
+
];
|
|
303
|
+
const __ΩInlineConfig = [
|
|
304
|
+
() => __ΩUserConfig,
|
|
305
|
+
"TUserConfig",
|
|
306
|
+
() => __ΩPartial,
|
|
307
|
+
() => __ΩPowerlinesCommand,
|
|
308
|
+
"command",
|
|
309
|
+
"A string identifier for the Powerlines command being executed",
|
|
310
|
+
"InlineConfig",
|
|
311
|
+
"n!c\"Pe\"!o#\"Pn$4%?&MKw'y"
|
|
312
|
+
];
|
|
313
|
+
const __ΩNewInlineConfig = [
|
|
314
|
+
() => __ΩUserConfig,
|
|
315
|
+
"TUserConfig",
|
|
316
|
+
() => __ΩInlineConfig,
|
|
317
|
+
() => __ΩRequired,
|
|
318
|
+
() => __ΩPick,
|
|
319
|
+
() => __ΩInlineConfig,
|
|
320
|
+
"root",
|
|
321
|
+
"new",
|
|
322
|
+
"command",
|
|
323
|
+
"A string identifier for the Powerlines command being executed",
|
|
324
|
+
"packageName",
|
|
325
|
+
"The package name (from the \\`package.json\\`) for the project that will be used in the \\`new\\` command to create a new project based on this configuration",
|
|
326
|
+
"NewInlineConfig",
|
|
327
|
+
"n!c\"Pe\"!o#\"e\"!o&\".'o%#o$\"P.(4)?*&4+8?,MKw-y"
|
|
328
|
+
];
|
|
329
|
+
const __ΩCleanInlineConfig = [
|
|
330
|
+
() => __ΩUserConfig,
|
|
331
|
+
"TUserConfig",
|
|
332
|
+
() => __ΩInlineConfig,
|
|
333
|
+
"clean",
|
|
334
|
+
"command",
|
|
335
|
+
"A string identifier for the Powerlines command being executed",
|
|
336
|
+
"CleanInlineConfig",
|
|
337
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
338
|
+
];
|
|
339
|
+
const __ΩPrepareInlineConfig = [
|
|
340
|
+
() => __ΩUserConfig,
|
|
341
|
+
"TUserConfig",
|
|
342
|
+
() => __ΩInlineConfig,
|
|
343
|
+
"prepare",
|
|
344
|
+
"command",
|
|
345
|
+
"A string identifier for the Powerlines command being executed",
|
|
346
|
+
"PrepareInlineConfig",
|
|
347
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
348
|
+
];
|
|
349
|
+
const __ΩBuildInlineConfig = [
|
|
350
|
+
() => __ΩUserConfig,
|
|
351
|
+
"TUserConfig",
|
|
352
|
+
() => __ΩInlineConfig,
|
|
353
|
+
"build",
|
|
354
|
+
"command",
|
|
355
|
+
"A string identifier for the Powerlines command being executed",
|
|
356
|
+
"BuildInlineConfig",
|
|
357
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
358
|
+
];
|
|
359
|
+
const __ΩLintInlineConfig = [
|
|
360
|
+
() => __ΩUserConfig,
|
|
361
|
+
"TUserConfig",
|
|
362
|
+
() => __ΩInlineConfig,
|
|
363
|
+
"lint",
|
|
364
|
+
"command",
|
|
365
|
+
"A string identifier for the Powerlines command being executed",
|
|
366
|
+
"LintInlineConfig",
|
|
367
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
368
|
+
];
|
|
369
|
+
const __ΩDocsInlineConfig = [
|
|
370
|
+
() => __ΩUserConfig,
|
|
371
|
+
"TUserConfig",
|
|
372
|
+
() => __ΩInlineConfig,
|
|
373
|
+
"docs",
|
|
374
|
+
"command",
|
|
375
|
+
"A string identifier for the Powerlines command being executed",
|
|
376
|
+
"DocsInlineConfig",
|
|
377
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
378
|
+
];
|
|
379
|
+
const __ΩDeployInlineConfig = [
|
|
380
|
+
() => __ΩUserConfig,
|
|
381
|
+
"TUserConfig",
|
|
382
|
+
() => __ΩInlineConfig,
|
|
383
|
+
"deploy",
|
|
384
|
+
"command",
|
|
385
|
+
"A string identifier for the Powerlines command being executed",
|
|
386
|
+
"DeployInlineConfig",
|
|
387
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
388
|
+
];
|
|
291
389
|
|
|
292
390
|
//#endregion
|
|
293
391
|
exports.__ΩBabelUserConfig = __ΩBabelUserConfig;
|
|
294
392
|
exports.__ΩBaseConfig = __ΩBaseConfig;
|
|
393
|
+
exports.__ΩBuildInlineConfig = __ΩBuildInlineConfig;
|
|
394
|
+
exports.__ΩCleanInlineConfig = __ΩCleanInlineConfig;
|
|
295
395
|
exports.__ΩCommonUserConfig = __ΩCommonUserConfig;
|
|
296
396
|
exports.__ΩDeployConfig = __ΩDeployConfig;
|
|
397
|
+
exports.__ΩDeployInlineConfig = __ΩDeployInlineConfig;
|
|
398
|
+
exports.__ΩDocsInlineConfig = __ΩDocsInlineConfig;
|
|
297
399
|
exports.__ΩEnvironmentConfig = __ΩEnvironmentConfig;
|
|
400
|
+
exports.__ΩInlineConfig = __ΩInlineConfig;
|
|
401
|
+
exports.__ΩLintInlineConfig = __ΩLintInlineConfig;
|
|
298
402
|
exports.__ΩLogFn = __ΩLogFn;
|
|
403
|
+
exports.__ΩNewInlineConfig = __ΩNewInlineConfig;
|
|
299
404
|
exports.__ΩOutputConfig = __ΩOutputConfig;
|
|
300
405
|
exports.__ΩPluginConfig = __ΩPluginConfig;
|
|
301
406
|
exports.__ΩPluginConfigObject = __ΩPluginConfigObject;
|
|
302
407
|
exports.__ΩPluginConfigTuple = __ΩPluginConfigTuple;
|
|
303
408
|
exports.__ΩPluginFactory = __ΩPluginFactory;
|
|
409
|
+
exports.__ΩPowerlinesCommand = __ΩPowerlinesCommand;
|
|
410
|
+
exports.__ΩPrepareInlineConfig = __ΩPrepareInlineConfig;
|
|
304
411
|
exports.__ΩProjectType = __ΩProjectType;
|
|
305
412
|
exports.__ΩUserConfig = __ΩUserConfig;
|
|
306
413
|
exports.__ΩWorkspaceConfig = __ΩWorkspaceConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoragePort, StoragePreset } from "./fs.cjs";
|
|
2
|
-
import { BuildConfig, BuildResolvedConfig } from "./build.cjs";
|
|
2
|
+
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.cjs";
|
|
3
3
|
import { Plugin } from "./plugin.cjs";
|
|
4
4
|
import { TSConfig } from "./tsconfig.cjs";
|
|
5
5
|
import { PluginContext } from "./context.cjs";
|
|
@@ -352,7 +352,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
352
352
|
*/
|
|
353
353
|
framework?: string;
|
|
354
354
|
}
|
|
355
|
-
interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
355
|
+
interface UserConfig$1<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
356
356
|
/**
|
|
357
357
|
* Configuration provided to build processes
|
|
358
358
|
*
|
|
@@ -373,15 +373,71 @@ interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResol
|
|
|
373
373
|
override?: Partial<TBuildResolvedConfig>;
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
+
type WebpackUserConfig = UserConfig$1<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
|
|
377
|
+
type RspackUserConfig = UserConfig$1<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
|
|
378
|
+
type RollupUserConfig = UserConfig$1<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
|
|
379
|
+
type RolldownUserConfig = UserConfig$1<RolldownBuildConfig, RolldownResolvedBuildConfig, "rolldown">;
|
|
380
|
+
type ViteUserConfig = UserConfig$1<ViteBuildConfig, ViteResolvedBuildConfig, "vite">;
|
|
381
|
+
type ESBuildUserConfig = UserConfig$1<ESBuildBuildConfig, ESBuildResolvedBuildConfig, "esbuild">;
|
|
382
|
+
type UnbuildUserConfig = UserConfig$1<UnbuildBuildConfig, UnbuildResolvedBuildConfig, "unbuild">;
|
|
383
|
+
type TsupUserConfig = UserConfig$1<TsupBuildConfig, TsupResolvedBuildConfig, "tsup">;
|
|
384
|
+
type TsdownUserConfig = UserConfig$1<TsdownBuildConfig, TsdownResolvedBuildConfig, "tsdown">;
|
|
385
|
+
type FarmUserConfig = UserConfig$1<FarmBuildConfig, FarmResolvedBuildConfig, "farm">;
|
|
376
386
|
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
377
387
|
/**
|
|
378
388
|
* The configuration provided while executing Powerlines commands.
|
|
379
389
|
*/
|
|
380
|
-
type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
|
|
390
|
+
type InlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Partial<TUserConfig> & {
|
|
381
391
|
/**
|
|
382
392
|
* A string identifier for the Powerlines command being executed
|
|
383
393
|
*/
|
|
384
394
|
command: PowerlinesCommand;
|
|
385
395
|
};
|
|
396
|
+
type NewInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & Required<Pick<InlineConfig<TUserConfig>, "root">> & {
|
|
397
|
+
/**
|
|
398
|
+
* A string identifier for the Powerlines command being executed
|
|
399
|
+
*/
|
|
400
|
+
command: "new";
|
|
401
|
+
/**
|
|
402
|
+
* The package name (from the \`package.json\`) for the project that will be used in the \`new\` command to create a new project based on this configuration
|
|
403
|
+
*/
|
|
404
|
+
packageName?: string;
|
|
405
|
+
};
|
|
406
|
+
type CleanInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
407
|
+
/**
|
|
408
|
+
* A string identifier for the Powerlines command being executed
|
|
409
|
+
*/
|
|
410
|
+
command: "clean";
|
|
411
|
+
};
|
|
412
|
+
type PrepareInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
413
|
+
/**
|
|
414
|
+
* A string identifier for the Powerlines command being executed
|
|
415
|
+
*/
|
|
416
|
+
command: "prepare";
|
|
417
|
+
};
|
|
418
|
+
type BuildInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
419
|
+
/**
|
|
420
|
+
* A string identifier for the Powerlines command being executed
|
|
421
|
+
*/
|
|
422
|
+
command: "build";
|
|
423
|
+
};
|
|
424
|
+
type LintInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
425
|
+
/**
|
|
426
|
+
* A string identifier for the Powerlines command being executed
|
|
427
|
+
*/
|
|
428
|
+
command: "lint";
|
|
429
|
+
};
|
|
430
|
+
type DocsInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
431
|
+
/**
|
|
432
|
+
* A string identifier for the Powerlines command being executed
|
|
433
|
+
*/
|
|
434
|
+
command: "docs";
|
|
435
|
+
};
|
|
436
|
+
type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
437
|
+
/**
|
|
438
|
+
* A string identifier for the Powerlines command being executed
|
|
439
|
+
*/
|
|
440
|
+
command: "deploy";
|
|
441
|
+
};
|
|
386
442
|
//#endregion
|
|
387
|
-
export { BabelUserConfig, EnvironmentConfig, InlineConfig, LogFn, OutputConfig, PluginConfig, UserConfig, WorkspaceConfig };
|
|
443
|
+
export { BabelUserConfig, BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
2
|
-
import { BuildConfig, BuildResolvedConfig } from "./build.mjs";
|
|
2
|
+
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
3
3
|
import { Plugin } from "./plugin.mjs";
|
|
4
4
|
import { TSConfig } from "./tsconfig.mjs";
|
|
5
5
|
import { PluginContext } from "./context.mjs";
|
|
6
6
|
import { BabelTransformPluginOptions } from "./babel.mjs";
|
|
7
|
+
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
7
8
|
import "c12";
|
|
8
9
|
import { transformAsync } from "@babel/core";
|
|
9
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
10
10
|
import { MaybePromise } from "@stryke/types/base";
|
|
11
11
|
import { AssetGlob } from "@stryke/types/file";
|
|
12
12
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
@@ -353,7 +353,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
353
353
|
*/
|
|
354
354
|
framework?: string;
|
|
355
355
|
}
|
|
356
|
-
interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
356
|
+
interface UserConfig$1<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
357
357
|
/**
|
|
358
358
|
* Configuration provided to build processes
|
|
359
359
|
*
|
|
@@ -374,15 +374,71 @@ interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResol
|
|
|
374
374
|
override?: Partial<TBuildResolvedConfig>;
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
+
type WebpackUserConfig = UserConfig$1<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
|
|
378
|
+
type RspackUserConfig = UserConfig$1<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
|
|
379
|
+
type RollupUserConfig = UserConfig$1<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
|
|
380
|
+
type RolldownUserConfig = UserConfig$1<RolldownBuildConfig, RolldownResolvedBuildConfig, "rolldown">;
|
|
381
|
+
type ViteUserConfig = UserConfig$1<ViteBuildConfig, ViteResolvedBuildConfig, "vite">;
|
|
382
|
+
type ESBuildUserConfig = UserConfig$1<ESBuildBuildConfig, ESBuildResolvedBuildConfig, "esbuild">;
|
|
383
|
+
type UnbuildUserConfig = UserConfig$1<UnbuildBuildConfig, UnbuildResolvedBuildConfig, "unbuild">;
|
|
384
|
+
type TsupUserConfig = UserConfig$1<TsupBuildConfig, TsupResolvedBuildConfig, "tsup">;
|
|
385
|
+
type TsdownUserConfig = UserConfig$1<TsdownBuildConfig, TsdownResolvedBuildConfig, "tsdown">;
|
|
386
|
+
type FarmUserConfig = UserConfig$1<FarmBuildConfig, FarmResolvedBuildConfig, "farm">;
|
|
377
387
|
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
378
388
|
/**
|
|
379
389
|
* The configuration provided while executing Powerlines commands.
|
|
380
390
|
*/
|
|
381
|
-
type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
|
|
391
|
+
type InlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Partial<TUserConfig> & {
|
|
382
392
|
/**
|
|
383
393
|
* A string identifier for the Powerlines command being executed
|
|
384
394
|
*/
|
|
385
395
|
command: PowerlinesCommand;
|
|
386
396
|
};
|
|
397
|
+
type NewInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & Required<Pick<InlineConfig<TUserConfig>, "root">> & {
|
|
398
|
+
/**
|
|
399
|
+
* A string identifier for the Powerlines command being executed
|
|
400
|
+
*/
|
|
401
|
+
command: "new";
|
|
402
|
+
/**
|
|
403
|
+
* The package name (from the \`package.json\`) for the project that will be used in the \`new\` command to create a new project based on this configuration
|
|
404
|
+
*/
|
|
405
|
+
packageName?: string;
|
|
406
|
+
};
|
|
407
|
+
type CleanInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
408
|
+
/**
|
|
409
|
+
* A string identifier for the Powerlines command being executed
|
|
410
|
+
*/
|
|
411
|
+
command: "clean";
|
|
412
|
+
};
|
|
413
|
+
type PrepareInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
414
|
+
/**
|
|
415
|
+
* A string identifier for the Powerlines command being executed
|
|
416
|
+
*/
|
|
417
|
+
command: "prepare";
|
|
418
|
+
};
|
|
419
|
+
type BuildInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
420
|
+
/**
|
|
421
|
+
* A string identifier for the Powerlines command being executed
|
|
422
|
+
*/
|
|
423
|
+
command: "build";
|
|
424
|
+
};
|
|
425
|
+
type LintInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
426
|
+
/**
|
|
427
|
+
* A string identifier for the Powerlines command being executed
|
|
428
|
+
*/
|
|
429
|
+
command: "lint";
|
|
430
|
+
};
|
|
431
|
+
type DocsInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
432
|
+
/**
|
|
433
|
+
* A string identifier for the Powerlines command being executed
|
|
434
|
+
*/
|
|
435
|
+
command: "docs";
|
|
436
|
+
};
|
|
437
|
+
type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
|
|
438
|
+
/**
|
|
439
|
+
* A string identifier for the Powerlines command being executed
|
|
440
|
+
*/
|
|
441
|
+
command: "deploy";
|
|
442
|
+
};
|
|
387
443
|
//#endregion
|
|
388
|
-
export { BabelUserConfig, BaseConfig, CommonUserConfig, DeployConfig, EnvironmentConfig, InlineConfig, LogFn, OutputConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, ProjectType, UserConfig, WorkspaceConfig };
|
|
444
|
+
export { BabelUserConfig, BaseConfig, BuildInlineConfig, CleanInlineConfig, CommonUserConfig, DeployConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
|
|
@@ -288,6 +288,104 @@ const __ΩUserConfig = [
|
|
|
288
288
|
"UserConfig",
|
|
289
289
|
"\"w!c\"\"w#c$\"c%Pn'.(o&#Pe#!.*o)#Pe$#4+8?,e$\"o-\"4.8?/MK40?1Mw2y"
|
|
290
290
|
];
|
|
291
|
+
const __ΩPowerlinesCommand = [
|
|
292
|
+
"new",
|
|
293
|
+
"prepare",
|
|
294
|
+
"build",
|
|
295
|
+
"lint",
|
|
296
|
+
"test",
|
|
297
|
+
"docs",
|
|
298
|
+
"deploy",
|
|
299
|
+
"clean",
|
|
300
|
+
"PowerlinesCommand",
|
|
301
|
+
"P.!.\".#.$.%.&.'.(Jw)y"
|
|
302
|
+
];
|
|
303
|
+
const __ΩInlineConfig = [
|
|
304
|
+
() => __ΩUserConfig,
|
|
305
|
+
"TUserConfig",
|
|
306
|
+
() => __ΩPartial,
|
|
307
|
+
() => __ΩPowerlinesCommand,
|
|
308
|
+
"command",
|
|
309
|
+
"A string identifier for the Powerlines command being executed",
|
|
310
|
+
"InlineConfig",
|
|
311
|
+
"n!c\"Pe\"!o#\"Pn$4%?&MKw'y"
|
|
312
|
+
];
|
|
313
|
+
const __ΩNewInlineConfig = [
|
|
314
|
+
() => __ΩUserConfig,
|
|
315
|
+
"TUserConfig",
|
|
316
|
+
() => __ΩInlineConfig,
|
|
317
|
+
() => __ΩRequired,
|
|
318
|
+
() => __ΩPick,
|
|
319
|
+
() => __ΩInlineConfig,
|
|
320
|
+
"root",
|
|
321
|
+
"new",
|
|
322
|
+
"command",
|
|
323
|
+
"A string identifier for the Powerlines command being executed",
|
|
324
|
+
"packageName",
|
|
325
|
+
"The package name (from the \\`package.json\\`) for the project that will be used in the \\`new\\` command to create a new project based on this configuration",
|
|
326
|
+
"NewInlineConfig",
|
|
327
|
+
"n!c\"Pe\"!o#\"e\"!o&\".'o%#o$\"P.(4)?*&4+8?,MKw-y"
|
|
328
|
+
];
|
|
329
|
+
const __ΩCleanInlineConfig = [
|
|
330
|
+
() => __ΩUserConfig,
|
|
331
|
+
"TUserConfig",
|
|
332
|
+
() => __ΩInlineConfig,
|
|
333
|
+
"clean",
|
|
334
|
+
"command",
|
|
335
|
+
"A string identifier for the Powerlines command being executed",
|
|
336
|
+
"CleanInlineConfig",
|
|
337
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
338
|
+
];
|
|
339
|
+
const __ΩPrepareInlineConfig = [
|
|
340
|
+
() => __ΩUserConfig,
|
|
341
|
+
"TUserConfig",
|
|
342
|
+
() => __ΩInlineConfig,
|
|
343
|
+
"prepare",
|
|
344
|
+
"command",
|
|
345
|
+
"A string identifier for the Powerlines command being executed",
|
|
346
|
+
"PrepareInlineConfig",
|
|
347
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
348
|
+
];
|
|
349
|
+
const __ΩBuildInlineConfig = [
|
|
350
|
+
() => __ΩUserConfig,
|
|
351
|
+
"TUserConfig",
|
|
352
|
+
() => __ΩInlineConfig,
|
|
353
|
+
"build",
|
|
354
|
+
"command",
|
|
355
|
+
"A string identifier for the Powerlines command being executed",
|
|
356
|
+
"BuildInlineConfig",
|
|
357
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
358
|
+
];
|
|
359
|
+
const __ΩLintInlineConfig = [
|
|
360
|
+
() => __ΩUserConfig,
|
|
361
|
+
"TUserConfig",
|
|
362
|
+
() => __ΩInlineConfig,
|
|
363
|
+
"lint",
|
|
364
|
+
"command",
|
|
365
|
+
"A string identifier for the Powerlines command being executed",
|
|
366
|
+
"LintInlineConfig",
|
|
367
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
368
|
+
];
|
|
369
|
+
const __ΩDocsInlineConfig = [
|
|
370
|
+
() => __ΩUserConfig,
|
|
371
|
+
"TUserConfig",
|
|
372
|
+
() => __ΩInlineConfig,
|
|
373
|
+
"docs",
|
|
374
|
+
"command",
|
|
375
|
+
"A string identifier for the Powerlines command being executed",
|
|
376
|
+
"DocsInlineConfig",
|
|
377
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
378
|
+
];
|
|
379
|
+
const __ΩDeployInlineConfig = [
|
|
380
|
+
() => __ΩUserConfig,
|
|
381
|
+
"TUserConfig",
|
|
382
|
+
() => __ΩInlineConfig,
|
|
383
|
+
"deploy",
|
|
384
|
+
"command",
|
|
385
|
+
"A string identifier for the Powerlines command being executed",
|
|
386
|
+
"DeployInlineConfig",
|
|
387
|
+
"n!c\"Pe\"!o#\"P.$4%?&MKw'y"
|
|
388
|
+
];
|
|
291
389
|
|
|
292
390
|
//#endregion
|
|
293
|
-
export { __ΩBabelUserConfig, __ΩBaseConfig, __ΩCommonUserConfig, __ΩDeployConfig, __ΩEnvironmentConfig, __ΩLogFn, __ΩOutputConfig, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginFactory, __ΩProjectType, __ΩUserConfig, __ΩWorkspaceConfig };
|
|
391
|
+
export { __ΩBabelUserConfig, __ΩBaseConfig, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩCommonUserConfig, __ΩDeployConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEnvironmentConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩLogFn, __ΩNewInlineConfig, __ΩOutputConfig, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginFactory, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩUserConfig, __ΩWorkspaceConfig };
|
|
@@ -294,6 +294,59 @@ const __ΩContext = [
|
|
|
294
294
|
"Context",
|
|
295
295
|
"\"w!c\"Pe\"!o$\".%o##Pe#!4&?'MKw(y"
|
|
296
296
|
];
|
|
297
|
+
const __ΩEnvironmentContextPlugin = [
|
|
298
|
+
"ResolvedConfig",
|
|
299
|
+
"TResolvedConfig",
|
|
300
|
+
"Plugin",
|
|
301
|
+
"plugin",
|
|
302
|
+
() => __ΩPluginContext,
|
|
303
|
+
"context",
|
|
304
|
+
"EnvironmentContextPlugin",
|
|
305
|
+
"\"w!c\"P\"w#4$e\"!o%\"4&Mw'y"
|
|
306
|
+
];
|
|
307
|
+
const __ΩSelectHookResultItem = [
|
|
308
|
+
"TContext",
|
|
309
|
+
"TKey",
|
|
310
|
+
"InferHooksListItem",
|
|
311
|
+
"context",
|
|
312
|
+
"SelectHookResultItem",
|
|
313
|
+
"b!b\"P\"w#Pe#!4$MKw%y"
|
|
314
|
+
];
|
|
315
|
+
const __ΩSelectHookResult = [
|
|
316
|
+
"TContext",
|
|
317
|
+
"TKey",
|
|
318
|
+
() => __ΩSelectHookResultItem,
|
|
319
|
+
"SelectHookResult",
|
|
320
|
+
"b!b\"e!!e!\"o##Fw$y"
|
|
321
|
+
];
|
|
322
|
+
const __ΩEnvironmentContext = [
|
|
323
|
+
"ResolvedConfig",
|
|
324
|
+
"TResolvedConfig",
|
|
325
|
+
() => __ΩContext,
|
|
326
|
+
() => __ΩEnvironmentContextPlugin,
|
|
327
|
+
"plugins",
|
|
328
|
+
"The expected plugins options for the Powerlines project.",
|
|
329
|
+
"Plugin",
|
|
330
|
+
"plugin",
|
|
331
|
+
"",
|
|
332
|
+
"addPlugin",
|
|
333
|
+
"A function to add a plugin to the context and update the configuration options",
|
|
334
|
+
"EnvironmentResolvedConfig",
|
|
335
|
+
"environment",
|
|
336
|
+
"The environment specific resolved configuration",
|
|
337
|
+
"HooksList",
|
|
338
|
+
"hooks",
|
|
339
|
+
"A table holding references to hook functions registered by plugins",
|
|
340
|
+
"key",
|
|
341
|
+
() => __ΩSelectHooksOptions,
|
|
342
|
+
"options",
|
|
343
|
+
() => __ΩSelectHookResult,
|
|
344
|
+
() => __ΩPluginContext,
|
|
345
|
+
"selectHooks",
|
|
346
|
+
"Retrieves the hook handlers for a specific hook name",
|
|
347
|
+
"EnvironmentContext",
|
|
348
|
+
"\"w!c\"Pe\"!o#\"e\"!o$\"F4%?&P\"w'2($`/)4*?+\"w,4-?.\"w/40?1P\"22n3248e#!o6\"\"o5#/)47?8Mw9y"
|
|
349
|
+
];
|
|
297
350
|
const __ΩPluginContext = [
|
|
298
351
|
"ResolvedConfig",
|
|
299
352
|
"TResolvedConfig",
|
|
@@ -312,6 +365,8 @@ const __ΩPluginContext = [
|
|
|
312
365
|
exports.__ΩContext = __ΩContext;
|
|
313
366
|
exports.__ΩEmitEntryOptions = __ΩEmitEntryOptions;
|
|
314
367
|
exports.__ΩEmitOptions = __ΩEmitOptions;
|
|
368
|
+
exports.__ΩEnvironmentContext = __ΩEnvironmentContext;
|
|
369
|
+
exports.__ΩEnvironmentContextPlugin = __ΩEnvironmentContextPlugin;
|
|
315
370
|
exports.__ΩFetchOptions = __ΩFetchOptions;
|
|
316
371
|
exports.__ΩInitContextOptions = __ΩInitContextOptions;
|
|
317
372
|
exports.__ΩLogLevel = __ΩLogLevel;
|
|
@@ -319,6 +374,8 @@ exports.__ΩMetaInfo = __ΩMetaInfo;
|
|
|
319
374
|
exports.__ΩParseOptions = __ΩParseOptions;
|
|
320
375
|
exports.__ΩPluginContext = __ΩPluginContext;
|
|
321
376
|
exports.__ΩResolver = __ΩResolver;
|
|
377
|
+
exports.__ΩSelectHookResult = __ΩSelectHookResult;
|
|
378
|
+
exports.__ΩSelectHookResultItem = __ΩSelectHookResultItem;
|
|
322
379
|
exports.__ΩSelectHooksOptions = __ΩSelectHooksOptions;
|
|
323
380
|
exports.__ΩTransformResult = __ΩTransformResult;
|
|
324
381
|
exports.__ΩUnresolvedContext = __ΩUnresolvedContext;
|