@powerlines/nx 0.11.221 → 0.11.223
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/CHANGELOG.md +21 -0
- package/dist/{src/base/base-executor.d.ts → base-executor-BKuqWAnc.d.mts} +14 -12
- package/dist/base-executor-BKuqWAnc.d.mts.map +1 -0
- package/dist/base-executor-CL9md5FK.d.cts +28 -0
- package/dist/base-executor-CL9md5FK.d.cts.map +1 -0
- package/dist/base-executor-DIVmWt0_.mjs +76 -0
- package/dist/base-executor-DIVmWt0_.mjs.map +1 -0
- package/dist/base-executor-hfeykVFL.cjs +83 -0
- package/dist/base-executor.schema-CH9f7UZz.d.cts +131 -0
- package/dist/base-executor.schema-CH9f7UZz.d.cts.map +1 -0
- package/dist/base-executor.schema-LJ14f-QU.d.mts +131 -0
- package/dist/base-executor.schema-LJ14f-QU.d.mts.map +1 -0
- package/dist/base-executor.untyped-Bet42T8_.mjs +139 -0
- package/dist/base-executor.untyped-Bet42T8_.mjs.map +1 -0
- package/dist/base-executor.untyped-DUgXmZji.cjs +144 -0
- package/dist/chunk-CbDLau6x.cjs +34 -0
- package/dist/constants-BHT2TeEj.cjs +39 -0
- package/dist/constants-DPeeG_si.mjs +34 -0
- package/dist/constants-DPeeG_si.mjs.map +1 -0
- package/dist/executor-9aTY5L1O.d.mts +155 -0
- package/dist/executor-9aTY5L1O.d.mts.map +1 -0
- package/dist/executor-BA-Xvw_2.cjs +23 -0
- package/dist/executor-BDu-MfKS.d.cts +155 -0
- package/dist/executor-BDu-MfKS.d.cts.map +1 -0
- package/dist/executor-BaJuosQ2.d.cts +139 -0
- package/dist/executor-BaJuosQ2.d.cts.map +1 -0
- package/dist/executor-BerELzzO.d.cts +165 -0
- package/dist/executor-BerELzzO.d.cts.map +1 -0
- package/dist/executor-C12a2R2m.d.mts +165 -0
- package/dist/executor-C12a2R2m.d.mts.map +1 -0
- package/dist/executor-CQoHBvIx.d.mts +155 -0
- package/dist/executor-CQoHBvIx.d.mts.map +1 -0
- package/dist/executor-CR4F9h0Q.mjs +13 -0
- package/dist/executor-CR4F9h0Q.mjs.map +1 -0
- package/dist/executor-CmOJDW7i.cjs +30 -0
- package/dist/executor-CsYeTG7f.d.mts +155 -0
- package/dist/executor-CsYeTG7f.d.mts.map +1 -0
- package/dist/executor-DXs-DQDq.cjs +23 -0
- package/dist/executor-DY3Q5btA.mjs +18 -0
- package/dist/executor-DY3Q5btA.mjs.map +1 -0
- package/dist/executor-DaM4shEF.d.mts +139 -0
- package/dist/executor-DaM4shEF.d.mts.map +1 -0
- package/dist/executor-DriX4F9a.mjs +13 -0
- package/dist/executor-DriX4F9a.mjs.map +1 -0
- package/dist/executor-DupYdy7P.cjs +23 -0
- package/dist/executor-_6Wimayo.d.cts +155 -0
- package/dist/executor-_6Wimayo.d.cts.map +1 -0
- package/dist/executor-dakLe5jY.mjs +13 -0
- package/dist/executor-dakLe5jY.mjs.map +1 -0
- package/dist/executor-gauQV_Qs.mjs +18 -0
- package/dist/executor-gauQV_Qs.mjs.map +1 -0
- package/dist/executor-q94V36zQ.d.cts +155 -0
- package/dist/executor-q94V36zQ.d.cts.map +1 -0
- package/dist/executor-tEMakUYi.cjs +30 -0
- package/dist/executors-C15iG1sF.mjs +1 -0
- package/dist/executors-D7478W2S.cjs +0 -0
- package/dist/executors-YbcSXKr5.d.mts +1 -0
- package/dist/executors-hX1C9GbI.d.cts +1 -0
- package/dist/executors.cjs +13 -0
- package/dist/executors.d.cts +9 -0
- package/dist/executors.d.mts +9 -11
- package/dist/executors.mjs +9 -9
- package/dist/generator-DeiwVUqC.mjs +11 -0
- package/dist/generator-DeiwVUqC.mjs.map +1 -0
- package/dist/generator-Dv37nXlF.d.cts +8 -0
- package/dist/generator-Dv37nXlF.d.cts.map +1 -0
- package/dist/generator-Uu2ErkQj.cjs +22 -0
- package/dist/generator-aA0eb35E.d.mts +8 -0
- package/dist/generator-aA0eb35E.d.mts.map +1 -0
- package/dist/generators-B8_tB0mD.d.cts +17 -0
- package/dist/generators-B8_tB0mD.d.cts.map +1 -0
- package/dist/generators-Bi9wzfNx.mjs +1 -0
- package/dist/generators-DymCAfYw.d.mts +17 -0
- package/dist/generators-DymCAfYw.d.mts.map +1 -0
- package/dist/generators-q39_jUCw.cjs +0 -0
- package/dist/generators.cjs +5 -0
- package/dist/generators.d.cts +3 -0
- package/dist/generators.d.mts +3 -19
- package/dist/generators.mjs +4 -3
- package/dist/index-BAMQksFF.d.mts +8 -0
- package/dist/index-BAMQksFF.d.mts.map +1 -0
- package/dist/index-C5yJ9lGj.d.cts +8 -0
- package/dist/index-C5yJ9lGj.d.cts.map +1 -0
- package/dist/index.cjs +21 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.mts +13 -16
- package/dist/index.mjs +14 -14
- package/dist/plugin-A9gAUguP.cjs +12 -0
- package/dist/plugin-CODFOru1.d.cts +243 -0
- package/dist/plugin-CODFOru1.d.cts.map +1 -0
- package/dist/plugin-Dbr_Q4yi.mjs +8 -0
- package/dist/plugin-Dbr_Q4yi.mjs.map +1 -0
- package/dist/plugin-DpjoI0QS.d.mts +243 -0
- package/dist/plugin-DpjoI0QS.d.mts.map +1 -0
- package/dist/plugin-utilities-Ci8AHf-K.mjs +347 -0
- package/dist/plugin-utilities-Ci8AHf-K.mjs.map +1 -0
- package/dist/plugin-utilities-Ddlc3SiI.cjs +366 -0
- package/dist/src/base/base-executor.cjs +3 -0
- package/dist/src/base/base-executor.d.cts +3 -0
- package/dist/src/base/base-executor.d.mts +3 -26
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-executor.schema.d.cjs +0 -0
- package/dist/src/base/base-executor.schema.d.cts +2 -0
- package/dist/src/base/base-executor.schema.d.mts +2 -0
- package/dist/src/base/base-executor.untyped.cjs +3 -0
- package/dist/src/base/base-executor.untyped.d.cts +6 -0
- package/dist/src/base/base-executor.untyped.d.cts.map +1 -0
- package/dist/src/base/base-executor.untyped.d.mts +5 -3
- package/dist/src/base/base-executor.untyped.d.mts.map +1 -0
- package/dist/src/base/base-executor.untyped.mjs +3 -2
- package/dist/src/executors/build/executor.cjs +6 -0
- package/dist/src/executors/build/executor.d.cts +4 -0
- package/dist/src/executors/build/executor.d.mts +4 -7
- package/dist/src/executors/build/executor.mjs +4 -4
- package/dist/src/executors/build/untyped.cjs +26 -0
- package/dist/src/executors/build/untyped.d.cts +6 -0
- package/dist/src/executors/build/untyped.d.cts.map +1 -0
- package/dist/src/executors/build/untyped.d.mts +5 -3
- package/dist/src/executors/build/untyped.d.mts.map +1 -0
- package/dist/src/executors/build/untyped.mjs +23 -30
- package/dist/src/executors/build/untyped.mjs.map +1 -0
- package/dist/src/executors/clean/executor.cjs +6 -0
- package/dist/src/executors/clean/executor.d.cts +4 -0
- package/dist/src/executors/clean/executor.d.mts +4 -7
- package/dist/src/executors/clean/executor.mjs +4 -4
- package/dist/src/executors/clean/untyped.cjs +17 -0
- package/dist/src/executors/clean/untyped.d.cts +6 -0
- package/dist/src/executors/clean/untyped.d.cts.map +1 -0
- package/dist/src/executors/clean/untyped.d.mts +5 -3
- package/dist/src/executors/clean/untyped.d.mts.map +1 -0
- package/dist/src/executors/clean/untyped.mjs +12 -10
- package/dist/src/executors/clean/untyped.mjs.map +1 -0
- package/dist/src/executors/docs/executor.cjs +6 -0
- package/dist/src/executors/docs/executor.d.cts +4 -0
- package/dist/src/executors/docs/executor.d.mts +4 -7
- package/dist/src/executors/docs/executor.mjs +4 -4
- package/dist/src/executors/docs/untyped.cjs +18 -0
- package/dist/src/executors/docs/untyped.d.cts +6 -0
- package/dist/src/executors/docs/untyped.d.cts.map +1 -0
- package/dist/src/executors/docs/untyped.d.mts +5 -3
- package/dist/src/executors/docs/untyped.d.mts.map +1 -0
- package/dist/src/executors/docs/untyped.mjs +15 -13
- package/dist/src/executors/docs/untyped.mjs.map +1 -0
- package/dist/src/executors/lint/executor.cjs +6 -0
- package/dist/src/executors/lint/executor.d.cts +4 -0
- package/dist/src/executors/lint/executor.d.mts +4 -7
- package/dist/src/executors/lint/executor.mjs +4 -4
- package/dist/src/executors/lint/untyped.cjs +18 -0
- package/dist/src/executors/lint/untyped.d.cts +6 -0
- package/dist/src/executors/lint/untyped.d.cts.map +1 -0
- package/dist/src/executors/lint/untyped.d.mts +5 -3
- package/dist/src/executors/lint/untyped.d.mts.map +1 -0
- package/dist/src/executors/lint/untyped.mjs +15 -13
- package/dist/src/executors/lint/untyped.mjs.map +1 -0
- package/dist/src/executors/prepare/executor.cjs +6 -0
- package/dist/src/executors/prepare/executor.d.cts +4 -0
- package/dist/src/executors/prepare/executor.d.mts +4 -7
- package/dist/src/executors/prepare/executor.mjs +4 -4
- package/dist/src/executors/prepare/untyped.cjs +4 -0
- package/dist/src/executors/prepare/untyped.d.cts +6 -0
- package/dist/src/executors/prepare/untyped.d.cts.map +1 -0
- package/dist/src/executors/prepare/untyped.d.mts +5 -3
- package/dist/src/executors/prepare/untyped.d.mts.map +1 -0
- package/dist/src/executors/prepare/untyped.mjs +4 -3
- package/dist/src/generators/sync/generator.cjs +5 -0
- package/dist/src/generators/sync/generator.d.cts +2 -0
- package/dist/src/generators/sync/generator.d.mts +2 -6
- package/dist/src/generators/sync/generator.mjs +3 -2
- package/dist/src/generators/sync/untyped.cjs +23 -0
- package/dist/src/generators/sync/untyped.d.cts +6 -0
- package/dist/src/generators/sync/untyped.d.cts.map +1 -0
- package/dist/src/generators/sync/untyped.d.mts +5 -3
- package/dist/src/generators/sync/untyped.d.mts.map +1 -0
- package/dist/src/generators/sync/untyped.mjs +18 -16
- package/dist/src/generators/sync/untyped.mjs.map +1 -0
- package/dist/src/helpers/constants.cjs +3 -0
- package/dist/src/helpers/{constants.d.ts → constants.d.cts} +3 -1
- package/dist/src/helpers/constants.d.cts.map +1 -0
- package/dist/src/helpers/constants.d.mts +3 -1
- package/dist/src/helpers/constants.d.mts.map +1 -0
- package/dist/src/helpers/constants.mjs +3 -2
- package/dist/src/helpers/plugin-utilities.cjs +6 -0
- package/dist/src/helpers/plugin-utilities.d.cts +58 -0
- package/dist/src/helpers/plugin-utilities.d.cts.map +1 -0
- package/dist/src/helpers/plugin-utilities.d.mts +34 -31
- package/dist/src/helpers/plugin-utilities.d.mts.map +1 -0
- package/dist/src/helpers/plugin-utilities.mjs +4 -4
- package/dist/src/plugin/index.cjs +5 -0
- package/dist/src/plugin/index.d.cts +3 -0
- package/dist/src/plugin/index.d.mts +3 -6
- package/dist/src/plugin/index.mjs +5 -5
- package/dist/src/types/plugin.cjs +0 -0
- package/dist/src/types/plugin.d.cts +2 -0
- package/dist/src/types/plugin.d.mts +2 -241
- package/dist/src/types/plugin.mjs +1 -1
- package/dist/untyped-BIEzjl_J.mjs +27 -0
- package/dist/untyped-BIEzjl_J.mjs.map +1 -0
- package/dist/untyped-DKPJSDgJ.cjs +32 -0
- package/executors.json +1 -1
- package/generators.json +1 -1
- package/package.json +117 -88
- package/dist/chunk-23KFTIT2.mjs +0 -1
- package/dist/chunk-326QB2VK.mjs +0 -14
- package/dist/chunk-3BI2YVJ3.js +0 -156
- package/dist/chunk-3D3MU5VP.js +0 -26
- package/dist/chunk-4OMPO3GC.mjs +0 -154
- package/dist/chunk-ADMWJVSB.js +0 -374
- package/dist/chunk-DXL4NVUO.js +0 -18
- package/dist/chunk-F4QJKUNK.js +0 -18
- package/dist/chunk-GCIPEE4T.mjs +0 -28
- package/dist/chunk-IC47MFKB.mjs +0 -29
- package/dist/chunk-IDXFQ2WL.mjs +0 -15
- package/dist/chunk-IOBDAGVL.js +0 -30
- package/dist/chunk-IQVSZEQ6.js +0 -31
- package/dist/chunk-N2YKXZ5R.js +0 -2
- package/dist/chunk-NB2KHU33.mjs +0 -19
- package/dist/chunk-NXR5JH7F.js +0 -10
- package/dist/chunk-O6YSETKJ.mjs +0 -4
- package/dist/chunk-P5X6KXLE.js +0 -26
- package/dist/chunk-PKGTRC56.mjs +0 -15
- package/dist/chunk-PMQ5YVLP.js +0 -18
- package/dist/chunk-R577MOZR.js +0 -4928
- package/dist/chunk-RBIHD4JS.mjs +0 -4900
- package/dist/chunk-RLODK6TM.js +0 -281
- package/dist/chunk-RLYU2FOM.mjs +0 -366
- package/dist/chunk-SHUYVCID.js +0 -6
- package/dist/chunk-SQV3SFA4.mjs +0 -8
- package/dist/chunk-UV4HQO3Y.mjs +0 -1
- package/dist/chunk-W75JGXP2.mjs +0 -260
- package/dist/chunk-WIPWBPB3.mjs +0 -19
- package/dist/chunk-WUJKJGEW.js +0 -17
- package/dist/chunk-XO62WWX4.js +0 -2
- package/dist/chunk-ZERXJ7S6.mjs +0 -15
- package/dist/executor-AQVlPFta.d.ts +0 -163
- package/dist/executor-BNmIhtpF.d.mts +0 -153
- package/dist/executor-C0A5mFLO.d.mts +0 -137
- package/dist/executor-Cep8-Y3A.d.mts +0 -153
- package/dist/executor-CkyahICv.d.ts +0 -137
- package/dist/executor-DOsxw-Ih.d.ts +0 -153
- package/dist/executor-DUQbjUVt.d.ts +0 -153
- package/dist/executor-O3MDQSFT.d.ts +0 -153
- package/dist/executor-U4mVkhQK.d.mts +0 -163
- package/dist/executor-Xt5qNzC5.d.mts +0 -153
- package/dist/executors.d.ts +0 -11
- package/dist/executors.js +0 -34
- package/dist/generators.d.ts +0 -19
- package/dist/generators.js +0 -16
- package/dist/index.d.ts +0 -16
- package/dist/index.js +0 -51
- package/dist/src/base/base-executor.js +0 -12
- package/dist/src/base/base-executor.schema.d.d.mts +0 -129
- package/dist/src/base/base-executor.schema.d.d.ts +0 -129
- package/dist/src/base/base-executor.schema.d.js +0 -2
- package/dist/src/base/base-executor.schema.d.mjs +0 -1
- package/dist/src/base/base-executor.untyped.d.ts +0 -5
- package/dist/src/base/base-executor.untyped.js +0 -10
- package/dist/src/executors/build/executor.d.ts +0 -7
- package/dist/src/executors/build/executor.js +0 -19
- package/dist/src/executors/build/untyped.d.ts +0 -5
- package/dist/src/executors/build/untyped.js +0 -37
- package/dist/src/executors/clean/executor.d.ts +0 -7
- package/dist/src/executors/clean/executor.js +0 -19
- package/dist/src/executors/clean/untyped.d.ts +0 -5
- package/dist/src/executors/clean/untyped.js +0 -19
- package/dist/src/executors/docs/executor.d.ts +0 -7
- package/dist/src/executors/docs/executor.js +0 -19
- package/dist/src/executors/docs/untyped.d.ts +0 -5
- package/dist/src/executors/docs/untyped.js +0 -20
- package/dist/src/executors/lint/executor.d.ts +0 -7
- package/dist/src/executors/lint/executor.js +0 -19
- package/dist/src/executors/lint/untyped.d.ts +0 -5
- package/dist/src/executors/lint/untyped.js +0 -20
- package/dist/src/executors/prepare/executor.d.ts +0 -7
- package/dist/src/executors/prepare/executor.js +0 -19
- package/dist/src/executors/prepare/untyped.d.ts +0 -5
- package/dist/src/executors/prepare/untyped.js +0 -11
- package/dist/src/generators/sync/generator.d.ts +0 -6
- package/dist/src/generators/sync/generator.js +0 -17
- package/dist/src/generators/sync/untyped.d.ts +0 -5
- package/dist/src/generators/sync/untyped.js +0 -25
- package/dist/src/helpers/constants.js +0 -11
- package/dist/src/helpers/plugin-utilities.d.ts +0 -55
- package/dist/src/helpers/plugin-utilities.js +0 -21
- package/dist/src/plugin/index.d.ts +0 -6
- package/dist/src/plugin/index.js +0 -14
- package/dist/src/types/plugin.d.ts +0 -241
- package/dist/src/types/plugin.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Powerlines - Nx
|
|
4
4
|
|
|
5
|
+
## [0.11.222](https://github.com/storm-software/powerlines/releases/tag/nx%400.11.222) (02/28/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **powerlines** to **v0.39.3**
|
|
10
|
+
|
|
11
|
+
## [0.11.221](https://github.com/storm-software/powerlines/releases/tag/nx%400.11.221) (02/28/2026)
|
|
12
|
+
|
|
13
|
+
### Miscellaneous
|
|
14
|
+
|
|
15
|
+
- **nx:** Added formatting to plugin verbose logging ([babaea49a](https://github.com/storm-software/powerlines/commit/babaea49a))
|
|
16
|
+
- **powerlines:** Clean up build plugin peer dependency versions ([c9c7d0c1f](https://github.com/storm-software/powerlines/commit/c9c7d0c1f))
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- **nx:** Resolved issues with verbose Nx plugin options ([b91e1ad52](https://github.com/storm-software/powerlines/commit/b91e1ad52))
|
|
21
|
+
|
|
22
|
+
### Updated Dependencies
|
|
23
|
+
|
|
24
|
+
- Updated **powerlines** to **v0.39.2**
|
|
25
|
+
|
|
5
26
|
## [0.11.220](https://github.com/storm-software/powerlines/releases/tag/nx%400.11.220) (02/28/2026)
|
|
6
27
|
|
|
7
28
|
### Miscellaneous
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { t as BaseExecutorSchema } from "./base-executor.schema-LJ14f-QU.mjs";
|
|
2
|
+
import PowerlinesAPI, { InlineConfig, PowerlinesCommand } from "powerlines";
|
|
3
|
+
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
4
|
+
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
5
|
+
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
6
6
|
|
|
7
|
+
//#region src/base/base-executor.d.ts
|
|
7
8
|
type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
projectName: string;
|
|
10
|
+
command: TCommand;
|
|
11
|
+
options: TExecutorSchema;
|
|
12
|
+
inlineConfig: InlineConfig;
|
|
13
|
+
workspaceConfig: StormWorkspaceConfig;
|
|
13
14
|
};
|
|
14
15
|
/**
|
|
15
16
|
* A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
|
|
@@ -22,5 +23,6 @@ type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCo
|
|
|
22
23
|
* @returns A Promise that resolves to the result of the executor function.
|
|
23
24
|
*/
|
|
24
25
|
declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: PowerlinesExecutorContext<TCommand, TExecutorSchema>, api: PowerlinesAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
|
|
25
|
-
|
|
26
|
-
export {
|
|
26
|
+
//#endregion
|
|
27
|
+
export { withExecutor as n, PowerlinesExecutorContext as t };
|
|
28
|
+
//# sourceMappingURL=base-executor-BKuqWAnc.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor-BKuqWAnc.d.mts","names":[],"sources":["../src/base/base-executor.ts"],"sourcesContent":[],"mappings":";;;;;;;KAiCY,2CACO,oBAAoB,2CACb,qBAAqB,sBAC3C;EAHQ,WAAA,EAAA,MAAA;EACO,OAAA,EAIR,QAJQ;EAAoB,OAAA,EAK5B,eAL4B;EACb,YAAA,EAKV,YALU;EAAqB,eAAA,EAM5B,oBAN4B;CAC3C;;;;;;AAkBJ;;;;;AAIW,iBAJK,YAIL,CAAA,iBAHQ,iBAGR,GAH4B,iBAG5B,EAAA,wBAFe,kBAEf,GAFoC,kBAEpC,CAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,CAAA,OAAA,EAEE,yBAFF,CAE4B,QAF5B,EAEsC,eAFtC,CAAA,EAAA,GAAA,EAGF,aAHE,EAAA,GAKL,OALK,CAKG,kBALH,GAAA,IAAA,GAAA,SAAA,CAAA,GAML,kBANK,GAAA,IAAA,GAAA,SAAA,CAAA,EASR,eATQ,CASQ,eATR,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as BaseExecutorSchema } from "./base-executor.schema-CH9f7UZz.cjs";
|
|
2
|
+
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
3
|
+
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
+
import PowerlinesAPI, { InlineConfig, PowerlinesCommand } from "powerlines";
|
|
5
|
+
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
6
|
+
|
|
7
|
+
//#region src/base/base-executor.d.ts
|
|
8
|
+
type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
9
|
+
projectName: string;
|
|
10
|
+
command: TCommand;
|
|
11
|
+
options: TExecutorSchema;
|
|
12
|
+
inlineConfig: InlineConfig;
|
|
13
|
+
workspaceConfig: StormWorkspaceConfig;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.
|
|
20
|
+
*
|
|
21
|
+
* @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
|
|
22
|
+
* @param executorFn - The function that will be executed when the command is run.
|
|
23
|
+
* @returns A Promise that resolves to the result of the executor function.
|
|
24
|
+
*/
|
|
25
|
+
declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: PowerlinesExecutorContext<TCommand, TExecutorSchema>, api: PowerlinesAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { withExecutor as n, PowerlinesExecutorContext as t };
|
|
28
|
+
//# sourceMappingURL=base-executor-CL9md5FK.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor-CL9md5FK.d.cts","names":[],"sources":["../src/base/base-executor.ts"],"sourcesContent":[],"mappings":";;;;;;;KAiCY,2CACO,oBAAoB,2CACb,qBAAqB,sBAC3C;EAHQ,WAAA,EAAA,MAAA;EACO,OAAA,EAIR,QAJQ;EAAoB,OAAA,EAK5B,eAL4B;EACb,YAAA,EAKV,YALU;EAAqB,eAAA,EAM5B,oBAN4B;CAC3C;;;;;;AAkBJ;;;;;AAIW,iBAJK,YAIL,CAAA,iBAHQ,iBAGR,GAH4B,iBAG5B,EAAA,wBAFe,kBAEf,GAFoC,kBAEpC,CAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,CAAA,OAAA,EAEE,yBAFF,CAE4B,QAF5B,EAEsC,eAFtC,CAAA,EAAA,GAAA,EAGF,aAHE,EAAA,GAKL,OALK,CAKG,kBALH,GAAA,IAAA,GAAA,SAAA,CAAA,GAML,kBANK,GAAA,IAAA,GAAA,SAAA,CAAA,EASR,eATQ,CASQ,eATR,CAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import defu from "defu";
|
|
2
|
+
import { writeError } from "@storm-software/config-tools/logger";
|
|
3
|
+
import { withRunExecutor } from "@storm-software/workspace-tools/base/base-executor";
|
|
4
|
+
import { isError } from "@stryke/type-checks/is-error";
|
|
5
|
+
import PowerlinesAPI from "powerlines";
|
|
6
|
+
|
|
7
|
+
//#region src/base/base-executor.ts
|
|
8
|
+
/**
|
|
9
|
+
* A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.
|
|
13
|
+
*
|
|
14
|
+
* @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
|
|
15
|
+
* @param executorFn - The function that will be executed when the command is run.
|
|
16
|
+
* @returns A Promise that resolves to the result of the executor function.
|
|
17
|
+
*/
|
|
18
|
+
function withExecutor(command, executorFn) {
|
|
19
|
+
return withRunExecutor(`Powerlines ${command} command executor`, async (options, context, workspaceConfig) => {
|
|
20
|
+
if (!context.projectName) throw new Error("The executor requires `projectName` on the context object.");
|
|
21
|
+
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
|
|
22
|
+
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
23
|
+
const api = await PowerlinesAPI.from(workspaceConfig.workspaceRoot, defu({
|
|
24
|
+
input: options.input,
|
|
25
|
+
output: {
|
|
26
|
+
outputPath: options.outputPath ?? projectConfig.targets?.build?.options?.outputPath,
|
|
27
|
+
format: options.format,
|
|
28
|
+
sourceMap: options.sourceMap
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
external: options.external,
|
|
32
|
+
noExternal: options.noExternal,
|
|
33
|
+
skipNodeModulesBundle: options.skipNodeModulesBundle
|
|
34
|
+
},
|
|
35
|
+
root: projectConfig.root,
|
|
36
|
+
projectType: projectConfig.projectType,
|
|
37
|
+
sourceRoot: projectConfig.sourceRoot,
|
|
38
|
+
tsconfig: options.tsconfig,
|
|
39
|
+
platform: options.platform,
|
|
40
|
+
define: options.define,
|
|
41
|
+
logLevel: options.logLevel,
|
|
42
|
+
mode: options.mode
|
|
43
|
+
}, options));
|
|
44
|
+
try {
|
|
45
|
+
return await Promise.resolve(executorFn(defu({
|
|
46
|
+
projectName: context.projectName,
|
|
47
|
+
options,
|
|
48
|
+
workspaceConfig,
|
|
49
|
+
inlineConfig: {
|
|
50
|
+
command,
|
|
51
|
+
configFile: options.configFile
|
|
52
|
+
},
|
|
53
|
+
command
|
|
54
|
+
}, context), api));
|
|
55
|
+
} catch (error) {
|
|
56
|
+
writeError(`An error occurred while executing the Powerlines ${command} command executor: ${isError(error) ? `${error.message}
|
|
57
|
+
|
|
58
|
+
${error.stack}` : "Unknown error"}`);
|
|
59
|
+
return { success: false };
|
|
60
|
+
} finally {
|
|
61
|
+
await api.finalize();
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
skipReadingConfig: false,
|
|
65
|
+
hooks: { applyDefaultOptions: (options) => {
|
|
66
|
+
if (options.mode !== "development" && options.mode !== "test") options.mode = "production";
|
|
67
|
+
options.outputPath ??= "dist/{projectRoot}";
|
|
68
|
+
options.configFile ??= "{projectRoot}/powerlines.config.ts";
|
|
69
|
+
return options;
|
|
70
|
+
} }
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
export { withExecutor as t };
|
|
76
|
+
//# sourceMappingURL=base-executor-DIVmWt0_.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor-DIVmWt0_.mjs","names":[],"sources":["../src/base/base-executor.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport type {\n InitialUserConfig,\n InlineConfig,\n PowerlinesCommand\n} from \"powerlines\";\nimport PowerlinesAPI from \"powerlines\";\nimport { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type PowerlinesExecutorContext<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: TCommand;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\n};\n\n/**\n * A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.\n *\n * @remarks\n * This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.\n *\n * @param command - The command that the executor will handle (e.g., \"new\", \"prepare\", \"build\", etc.).\n * @param executorFn - The function that will be executed when the command is run.\n * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: TCommand,\n executorFn: (\n context: PowerlinesExecutorContext<TCommand, TExecutorSchema>,\n api: PowerlinesAPI\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Powerlines ${command} command executor`,\n async (\n options: TExecutorSchema,\n context: ExecutorContext,\n workspaceConfig: StormWorkspaceConfig\n ): Promise<BaseExecutorResult | null | undefined> => {\n if (!context.projectName) {\n throw new Error(\n \"The executor requires `projectName` on the context object.\"\n );\n }\n\n if (\n !context.projectName ||\n !context.projectsConfigurations?.projects ||\n !context.projectsConfigurations.projects[context.projectName] ||\n !context.projectsConfigurations.projects[context.projectName]?.root\n ) {\n throw new Error(\n \"The executor requires `projectsConfigurations` on the context object.\"\n );\n }\n\n const projectConfig =\n context.projectsConfigurations.projects[context.projectName]!;\n\n const api = await PowerlinesAPI.from(\n workspaceConfig.workspaceRoot,\n defu(\n {\n input: options.input,\n output: {\n outputPath:\n options.outputPath ??\n projectConfig.targets?.build?.options?.outputPath,\n format: options.format,\n sourceMap: options.sourceMap\n },\n resolve: {\n external: options.external,\n noExternal: options.noExternal,\n skipNodeModulesBundle: options.skipNodeModulesBundle\n },\n root: projectConfig.root,\n projectType: projectConfig.projectType,\n sourceRoot: projectConfig.sourceRoot,\n tsconfig: options.tsconfig,\n platform: options.platform,\n define: options.define,\n logLevel: options.logLevel,\n mode: options.mode\n },\n options\n ) as InitialUserConfig\n );\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n inlineConfig: {\n command,\n configFile: options.configFile\n },\n command\n },\n context\n ),\n api\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the Powerlines ${\n command\n } command executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n } finally {\n await api.finalize();\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n if (options.mode !== \"development\" && options.mode !== \"test\") {\n options.mode = \"production\";\n }\n\n options.outputPath ??= \"dist/{projectRoot}\";\n options.configFile ??= \"{projectRoot}/powerlines.config.ts\";\n\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAsDA,SAAgB,aAId,SACA,YAQkC;AAClC,QAAO,gBACL,cAAc,QAAQ,oBACtB,OACE,SACA,SACA,oBACmD;AACnD,MAAI,CAAC,QAAQ,YACX,OAAM,IAAI,MACR,6DACD;AAGH,MACE,CAAC,QAAQ,eACT,CAAC,QAAQ,wBAAwB,YACjC,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,gBACjD,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,cAAc,KAE/D,OAAM,IAAI,MACR,wEACD;EAGH,MAAM,gBACJ,QAAQ,uBAAuB,SAAS,QAAQ;EAElD,MAAM,MAAM,MAAM,cAAc,KAC9B,gBAAgB,eAChB,KACE;GACE,OAAO,QAAQ;GACf,QAAQ;IACN,YACE,QAAQ,cACR,cAAc,SAAS,OAAO,SAAS;IACzC,QAAQ,QAAQ;IAChB,WAAW,QAAQ;IACpB;GACD,SAAS;IACP,UAAU,QAAQ;IAClB,YAAY,QAAQ;IACpB,uBAAuB,QAAQ;IAChC;GACD,MAAM,cAAc;GACpB,aAAa,cAAc;GAC3B,YAAY,cAAc;GAC1B,UAAU,QAAQ;GAClB,UAAU,QAAQ;GAClB,QAAQ,QAAQ;GAChB,UAAU,QAAQ;GAClB,MAAM,QAAQ;GACf,EACD,QACD,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,WACE,KACE;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,YAAY,QAAQ;KACrB;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,cACE,oDACE,QACD,qBACC,QAAQ,MAAM,GACV,GAAG,MAAM,QAAQ;;EAE/B,MAAM,UACQ,kBAEP;AAED,UAAO,EAAE,SAAS,OAAO;YACjB;AACR,SAAM,IAAI,UAAU;;IAGxB;EACE,mBAAmB;EACnB,OAAO,EACL,sBAAsB,YAAsC;AAC1D,OAAI,QAAQ,SAAS,iBAAiB,QAAQ,SAAS,OACrD,SAAQ,OAAO;AAGjB,WAAQ,eAAe;AACvB,WAAQ,eAAe;AAEvB,UAAO;KAEV;EACF,CACF"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
let defu = require("defu");
|
|
3
|
+
defu = require_chunk.__toESM(defu);
|
|
4
|
+
let __storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
|
|
5
|
+
let __storm_software_workspace_tools_base_base_executor = require("@storm-software/workspace-tools/base/base-executor");
|
|
6
|
+
let __stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
|
|
7
|
+
let powerlines = require("powerlines");
|
|
8
|
+
powerlines = require_chunk.__toESM(powerlines);
|
|
9
|
+
|
|
10
|
+
//#region src/base/base-executor.ts
|
|
11
|
+
/**
|
|
12
|
+
* A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.
|
|
16
|
+
*
|
|
17
|
+
* @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
|
|
18
|
+
* @param executorFn - The function that will be executed when the command is run.
|
|
19
|
+
* @returns A Promise that resolves to the result of the executor function.
|
|
20
|
+
*/
|
|
21
|
+
function withExecutor(command, executorFn) {
|
|
22
|
+
return (0, __storm_software_workspace_tools_base_base_executor.withRunExecutor)(`Powerlines ${command} command executor`, async (options, context, workspaceConfig) => {
|
|
23
|
+
if (!context.projectName) throw new Error("The executor requires `projectName` on the context object.");
|
|
24
|
+
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
|
|
25
|
+
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
26
|
+
const api = await powerlines.default.from(workspaceConfig.workspaceRoot, (0, defu.default)({
|
|
27
|
+
input: options.input,
|
|
28
|
+
output: {
|
|
29
|
+
outputPath: options.outputPath ?? projectConfig.targets?.build?.options?.outputPath,
|
|
30
|
+
format: options.format,
|
|
31
|
+
sourceMap: options.sourceMap
|
|
32
|
+
},
|
|
33
|
+
resolve: {
|
|
34
|
+
external: options.external,
|
|
35
|
+
noExternal: options.noExternal,
|
|
36
|
+
skipNodeModulesBundle: options.skipNodeModulesBundle
|
|
37
|
+
},
|
|
38
|
+
root: projectConfig.root,
|
|
39
|
+
projectType: projectConfig.projectType,
|
|
40
|
+
sourceRoot: projectConfig.sourceRoot,
|
|
41
|
+
tsconfig: options.tsconfig,
|
|
42
|
+
platform: options.platform,
|
|
43
|
+
define: options.define,
|
|
44
|
+
logLevel: options.logLevel,
|
|
45
|
+
mode: options.mode
|
|
46
|
+
}, options));
|
|
47
|
+
try {
|
|
48
|
+
return await Promise.resolve(executorFn((0, defu.default)({
|
|
49
|
+
projectName: context.projectName,
|
|
50
|
+
options,
|
|
51
|
+
workspaceConfig,
|
|
52
|
+
inlineConfig: {
|
|
53
|
+
command,
|
|
54
|
+
configFile: options.configFile
|
|
55
|
+
},
|
|
56
|
+
command
|
|
57
|
+
}, context), api));
|
|
58
|
+
} catch (error) {
|
|
59
|
+
(0, __storm_software_config_tools_logger.writeError)(`An error occurred while executing the Powerlines ${command} command executor: ${(0, __stryke_type_checks_is_error.isError)(error) ? `${error.message}
|
|
60
|
+
|
|
61
|
+
${error.stack}` : "Unknown error"}`);
|
|
62
|
+
return { success: false };
|
|
63
|
+
} finally {
|
|
64
|
+
await api.finalize();
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
skipReadingConfig: false,
|
|
68
|
+
hooks: { applyDefaultOptions: (options) => {
|
|
69
|
+
if (options.mode !== "development" && options.mode !== "test") options.mode = "production";
|
|
70
|
+
options.outputPath ??= "dist/{projectRoot}";
|
|
71
|
+
options.configFile ??= "{projectRoot}/powerlines.config.ts";
|
|
72
|
+
return options;
|
|
73
|
+
} }
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
Object.defineProperty(exports, 'withExecutor', {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return withExecutor;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
//#region src/base/base-executor.schema.d.ts
|
|
2
|
+
// Generated by @storm-software/untyped
|
|
3
|
+
// Do not edit this file directly
|
|
4
|
+
|
|
5
|
+
interface BaseExecutorSchema {
|
|
6
|
+
/**
|
|
7
|
+
* Powerlines Configuration File
|
|
8
|
+
*
|
|
9
|
+
* The path to the Powerlines configuration file
|
|
10
|
+
*
|
|
11
|
+
* @default "{projectRoot}/powerlines.config.ts"
|
|
12
|
+
*
|
|
13
|
+
* @format path
|
|
14
|
+
*/
|
|
15
|
+
configFile?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Input Entry File(s)
|
|
19
|
+
*
|
|
20
|
+
* The entry file(s) that serve as the input for the project
|
|
21
|
+
*
|
|
22
|
+
* @default ["{sourceRoot}/index.ts"]
|
|
23
|
+
*
|
|
24
|
+
* @format path
|
|
25
|
+
*/
|
|
26
|
+
input?: Array<string>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* TSConfig Path
|
|
30
|
+
*
|
|
31
|
+
* The path to the tsconfig file
|
|
32
|
+
*
|
|
33
|
+
* @default "{projectRoot}/tsconfig.json"
|
|
34
|
+
*
|
|
35
|
+
* @format path
|
|
36
|
+
*/
|
|
37
|
+
tsconfig?: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Output Path
|
|
41
|
+
*
|
|
42
|
+
* The path to the output directory for the build artifacts
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* @format path
|
|
46
|
+
*/
|
|
47
|
+
outputPath?: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Sourcemap
|
|
51
|
+
*
|
|
52
|
+
* Generate a sourcemap
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
sourceMap?: boolean;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Format
|
|
59
|
+
*
|
|
60
|
+
* The format to build
|
|
61
|
+
*
|
|
62
|
+
* @default ["cjs","esm"]
|
|
63
|
+
*/
|
|
64
|
+
format?: Array<string>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Platform
|
|
68
|
+
*
|
|
69
|
+
* The platform to build
|
|
70
|
+
*
|
|
71
|
+
* @default "neutral"
|
|
72
|
+
*
|
|
73
|
+
* @enum neutral,node,browser
|
|
74
|
+
*/
|
|
75
|
+
platform?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* External
|
|
79
|
+
*
|
|
80
|
+
* The external dependencies
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
external?: Array<any>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* No External
|
|
87
|
+
*
|
|
88
|
+
* The dependencies that should not be treated as external
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
noExternal?: Array<any>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Skip Node Modules Bundle
|
|
95
|
+
*
|
|
96
|
+
* Skip bundling node_modules during the build process (if required)
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
skipNodeModulesBundle?: boolean;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Mode
|
|
103
|
+
*
|
|
104
|
+
* The build mode
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @enum development,test,production
|
|
108
|
+
*/
|
|
109
|
+
mode?: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Log Level
|
|
113
|
+
*
|
|
114
|
+
* The log level to use for the build process
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
118
|
+
*/
|
|
119
|
+
logLevel?: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Define
|
|
123
|
+
*
|
|
124
|
+
* The `define` values
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
define?: Record<string, string>;
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
export { BaseExecutorSchema as t };
|
|
131
|
+
//# sourceMappingURL=base-executor.schema-CH9f7UZz.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor.schema-CH9f7UZz.d.cts","names":["BaseExecutorSchema","Array","Record"],"sources":["../src/base/base-executor.schema.d.ts"],"sourcesContent":["\n// Generated by @storm-software/untyped\n// Do not edit this file directly\n\nexport interface BaseExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * @default [\"{sourceRoot}/index.ts\"]\n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n}\n\n"],"mappings":";AAIA;;;AA8EYC,UA9EKD,kBAAAA,CA8ELC;EAQEA;;;;;;;;;;;;;;;;;;;;UAjELA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCCA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
//#region src/base/base-executor.schema.d.ts
|
|
2
|
+
// Generated by @storm-software/untyped
|
|
3
|
+
// Do not edit this file directly
|
|
4
|
+
|
|
5
|
+
interface BaseExecutorSchema {
|
|
6
|
+
/**
|
|
7
|
+
* Powerlines Configuration File
|
|
8
|
+
*
|
|
9
|
+
* The path to the Powerlines configuration file
|
|
10
|
+
*
|
|
11
|
+
* @default "{projectRoot}/powerlines.config.ts"
|
|
12
|
+
*
|
|
13
|
+
* @format path
|
|
14
|
+
*/
|
|
15
|
+
configFile?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Input Entry File(s)
|
|
19
|
+
*
|
|
20
|
+
* The entry file(s) that serve as the input for the project
|
|
21
|
+
*
|
|
22
|
+
* @default ["{sourceRoot}/index.ts"]
|
|
23
|
+
*
|
|
24
|
+
* @format path
|
|
25
|
+
*/
|
|
26
|
+
input?: Array<string>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* TSConfig Path
|
|
30
|
+
*
|
|
31
|
+
* The path to the tsconfig file
|
|
32
|
+
*
|
|
33
|
+
* @default "{projectRoot}/tsconfig.json"
|
|
34
|
+
*
|
|
35
|
+
* @format path
|
|
36
|
+
*/
|
|
37
|
+
tsconfig?: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Output Path
|
|
41
|
+
*
|
|
42
|
+
* The path to the output directory for the build artifacts
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* @format path
|
|
46
|
+
*/
|
|
47
|
+
outputPath?: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Sourcemap
|
|
51
|
+
*
|
|
52
|
+
* Generate a sourcemap
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
sourceMap?: boolean;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Format
|
|
59
|
+
*
|
|
60
|
+
* The format to build
|
|
61
|
+
*
|
|
62
|
+
* @default ["cjs","esm"]
|
|
63
|
+
*/
|
|
64
|
+
format?: Array<string>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Platform
|
|
68
|
+
*
|
|
69
|
+
* The platform to build
|
|
70
|
+
*
|
|
71
|
+
* @default "neutral"
|
|
72
|
+
*
|
|
73
|
+
* @enum neutral,node,browser
|
|
74
|
+
*/
|
|
75
|
+
platform?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* External
|
|
79
|
+
*
|
|
80
|
+
* The external dependencies
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
external?: Array<any>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* No External
|
|
87
|
+
*
|
|
88
|
+
* The dependencies that should not be treated as external
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
noExternal?: Array<any>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Skip Node Modules Bundle
|
|
95
|
+
*
|
|
96
|
+
* Skip bundling node_modules during the build process (if required)
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
skipNodeModulesBundle?: boolean;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Mode
|
|
103
|
+
*
|
|
104
|
+
* The build mode
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @enum development,test,production
|
|
108
|
+
*/
|
|
109
|
+
mode?: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Log Level
|
|
113
|
+
*
|
|
114
|
+
* The log level to use for the build process
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
118
|
+
*/
|
|
119
|
+
logLevel?: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Define
|
|
123
|
+
*
|
|
124
|
+
* The `define` values
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
define?: Record<string, string>;
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
export { BaseExecutorSchema as t };
|
|
131
|
+
//# sourceMappingURL=base-executor.schema-LJ14f-QU.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor.schema-LJ14f-QU.d.mts","names":["BaseExecutorSchema","Array","Record"],"sources":["../src/base/base-executor.schema.d.ts"],"sourcesContent":["\n// Generated by @storm-software/untyped\n// Do not edit this file directly\n\nexport interface BaseExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * @default [\"{sourceRoot}/index.ts\"]\n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n}\n\n"],"mappings":";AAIA;;;AA8EYC,UA9EKD,kBAAAA,CA8ELC;EAQEA;;;;;;;;;;;;;;;;;;;;UAjELA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCCA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC"}
|