@shell-shock/nx 0.0.46 → 0.0.48

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.
Files changed (141) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +1 -1
  3. package/dist/chunk-BCHjMept.mjs +3 -0
  4. package/dist/executors/build/executor.d.mts +1 -5
  5. package/dist/executors/build/executor.d.mts.map +1 -1
  6. package/dist/executors/build/executor.d.ts +1 -6
  7. package/dist/executors/build/executor.d.ts.map +1 -1
  8. package/dist/executors/build/executor.js +1 -3
  9. package/dist/executors/build/executor.mjs +1 -1
  10. package/dist/executors/build/executor.mjs.map +1 -1
  11. package/dist/executors/build/schema.d.ts +170 -160
  12. package/dist/executors/clean/executor.d.mts +1 -5
  13. package/dist/executors/clean/executor.d.mts.map +1 -1
  14. package/dist/executors/clean/executor.d.ts +1 -6
  15. package/dist/executors/clean/executor.d.ts.map +1 -1
  16. package/dist/executors/clean/executor.js +1 -3
  17. package/dist/executors/clean/executor.mjs +1 -1
  18. package/dist/executors/clean/executor.mjs.map +1 -1
  19. package/dist/executors/clean/schema.d.ts +170 -160
  20. package/dist/executors/docs/executor.d.mts +1 -5
  21. package/dist/executors/docs/executor.d.mts.map +1 -1
  22. package/dist/executors/docs/executor.d.ts +1 -6
  23. package/dist/executors/docs/executor.d.ts.map +1 -1
  24. package/dist/executors/docs/executor.js +1 -3
  25. package/dist/executors/docs/executor.mjs +1 -1
  26. package/dist/executors/docs/executor.mjs.map +1 -1
  27. package/dist/executors/docs/schema.d.ts +170 -160
  28. package/dist/executors/lint/executor.d.mts +1 -5
  29. package/dist/executors/lint/executor.d.mts.map +1 -1
  30. package/dist/executors/lint/executor.d.ts +1 -6
  31. package/dist/executors/lint/executor.d.ts.map +1 -1
  32. package/dist/executors/lint/executor.js +1 -3
  33. package/dist/executors/lint/executor.mjs +1 -1
  34. package/dist/executors/lint/executor.mjs.map +1 -1
  35. package/dist/executors/lint/schema.d.ts +170 -160
  36. package/dist/executors/prepare/executor.d.mts +1 -5
  37. package/dist/executors/prepare/executor.d.mts.map +1 -1
  38. package/dist/executors/prepare/executor.d.ts +1 -6
  39. package/dist/executors/prepare/executor.d.ts.map +1 -1
  40. package/dist/executors/prepare/executor.js +1 -3
  41. package/dist/executors/prepare/executor.mjs +1 -1
  42. package/dist/executors/prepare/executor.mjs.map +1 -1
  43. package/dist/executors/prepare/schema.d.ts +170 -160
  44. package/dist/index.d.mts +175 -2
  45. package/dist/index.d.mts.map +1 -0
  46. package/dist/index.d.ts +175 -2
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/plugin/index.d.mts +242 -1
  49. package/dist/plugin/index.d.mts.map +1 -1
  50. package/dist/plugin/index.d.ts +242 -1
  51. package/dist/plugin/index.d.ts.map +1 -1
  52. package/dist/plugin/index.js +1221 -3
  53. package/dist/plugin/index.mjs +1191 -1
  54. package/dist/plugin/index.mjs.map +1 -1
  55. package/package.json +17 -13
  56. package/dist/base/base-executor.d.mts +0 -2
  57. package/dist/base/base-executor.d.ts +0 -2
  58. package/dist/base/base-executor.js +0 -68
  59. package/dist/base/base-executor.mjs +0 -66
  60. package/dist/base/base-executor.mjs.map +0 -1
  61. package/dist/base/base-executor.schema.d.js +0 -0
  62. package/dist/base/base-executor.schema.d.mts +0 -149
  63. package/dist/base/base-executor.schema.d.mts.map +0 -1
  64. package/dist/base/base-executor.schema.d.ts.map +0 -1
  65. package/dist/base/base-executor.untyped.d.mts +0 -2
  66. package/dist/base/base-executor.untyped.d.ts +0 -2
  67. package/dist/base/base-executor.untyped.js +0 -18
  68. package/dist/base/base-executor.untyped.mjs +0 -17
  69. package/dist/base/base-executor.untyped.mjs.map +0 -1
  70. package/dist/base/index.d.mts +0 -2
  71. package/dist/base/index.d.ts +0 -2
  72. package/dist/base/index.js +0 -5
  73. package/dist/base/index.mjs +0 -4
  74. package/dist/base-executor-CE7_IgHr.d.mts +0 -29
  75. package/dist/base-executor-CE7_IgHr.d.mts.map +0 -1
  76. package/dist/base-executor-CPOK8Lba.d.mts +0 -175
  77. package/dist/base-executor-CPOK8Lba.d.mts.map +0 -1
  78. package/dist/base-executor-Co2z43MK.d.ts +0 -29
  79. package/dist/base-executor-Co2z43MK.d.ts.map +0 -1
  80. package/dist/base-executor-ICVyKAxY.d.ts +0 -175
  81. package/dist/base-executor-ICVyKAxY.d.ts.map +0 -1
  82. package/dist/base-executor.untyped-D4R6pki2.d.ts +0 -7
  83. package/dist/base-executor.untyped-D4R6pki2.d.ts.map +0 -1
  84. package/dist/base-executor.untyped-hmlG6oyC.d.mts +0 -7
  85. package/dist/base-executor.untyped-hmlG6oyC.d.mts.map +0 -1
  86. package/dist/chunk-BE-pF4vm.js +0 -34
  87. package/dist/executors/build/schema.d.js +0 -0
  88. package/dist/executors/build/schema.d.mts +0 -163
  89. package/dist/executors/build/schema.d.mts.map +0 -1
  90. package/dist/executors/build/schema.d.ts.map +0 -1
  91. package/dist/executors/build/untyped.d.mts +0 -7
  92. package/dist/executors/build/untyped.d.mts.map +0 -1
  93. package/dist/executors/build/untyped.d.ts +0 -6
  94. package/dist/executors/build/untyped.d.ts.map +0 -1
  95. package/dist/executors/build/untyped.js +0 -17
  96. package/dist/executors/build/untyped.mjs +0 -17
  97. package/dist/executors/build/untyped.mjs.map +0 -1
  98. package/dist/executors/clean/schema.d.js +0 -0
  99. package/dist/executors/clean/schema.d.mts +0 -163
  100. package/dist/executors/clean/schema.d.mts.map +0 -1
  101. package/dist/executors/clean/schema.d.ts.map +0 -1
  102. package/dist/executors/clean/untyped.d.mts +0 -7
  103. package/dist/executors/clean/untyped.d.mts.map +0 -1
  104. package/dist/executors/clean/untyped.d.ts +0 -6
  105. package/dist/executors/clean/untyped.d.ts.map +0 -1
  106. package/dist/executors/clean/untyped.js +0 -17
  107. package/dist/executors/clean/untyped.mjs +0 -17
  108. package/dist/executors/clean/untyped.mjs.map +0 -1
  109. package/dist/executors/docs/schema.d.js +0 -0
  110. package/dist/executors/docs/schema.d.mts +0 -163
  111. package/dist/executors/docs/schema.d.mts.map +0 -1
  112. package/dist/executors/docs/schema.d.ts.map +0 -1
  113. package/dist/executors/docs/untyped.d.mts +0 -7
  114. package/dist/executors/docs/untyped.d.mts.map +0 -1
  115. package/dist/executors/docs/untyped.d.ts +0 -6
  116. package/dist/executors/docs/untyped.d.ts.map +0 -1
  117. package/dist/executors/docs/untyped.js +0 -17
  118. package/dist/executors/docs/untyped.mjs +0 -17
  119. package/dist/executors/docs/untyped.mjs.map +0 -1
  120. package/dist/executors/lint/schema.d.js +0 -0
  121. package/dist/executors/lint/schema.d.mts +0 -163
  122. package/dist/executors/lint/schema.d.mts.map +0 -1
  123. package/dist/executors/lint/schema.d.ts.map +0 -1
  124. package/dist/executors/lint/untyped.d.mts +0 -7
  125. package/dist/executors/lint/untyped.d.mts.map +0 -1
  126. package/dist/executors/lint/untyped.d.ts +0 -6
  127. package/dist/executors/lint/untyped.d.ts.map +0 -1
  128. package/dist/executors/lint/untyped.js +0 -17
  129. package/dist/executors/lint/untyped.mjs +0 -17
  130. package/dist/executors/lint/untyped.mjs.map +0 -1
  131. package/dist/executors/prepare/schema.d.js +0 -0
  132. package/dist/executors/prepare/schema.d.mts +0 -163
  133. package/dist/executors/prepare/schema.d.mts.map +0 -1
  134. package/dist/executors/prepare/schema.d.ts.map +0 -1
  135. package/dist/executors/prepare/untyped.d.mts +0 -7
  136. package/dist/executors/prepare/untyped.d.mts.map +0 -1
  137. package/dist/executors/prepare/untyped.d.ts +0 -6
  138. package/dist/executors/prepare/untyped.d.ts.map +0 -1
  139. package/dist/executors/prepare/untyped.js +0 -18
  140. package/dist/executors/prepare/untyped.mjs +0 -17
  141. package/dist/executors/prepare/untyped.mjs.map +0 -1
@@ -1,17 +0,0 @@
1
- import baseExecutorSchema from "@powerlines/nx/base/base-executor.untyped";
2
- import { defineUntypedSchema } from "untyped";
3
-
4
- //#region src/base/base-executor.untyped.ts
5
- var base_executor_untyped_default = defineUntypedSchema({
6
- ...baseExecutorSchema,
7
- $schema: {
8
- id: "BaseExecutorSchema",
9
- title: "Base Executor",
10
- description: "A shared/base schema type definition for Shell Shock executors",
11
- required: []
12
- }
13
- });
14
-
15
- //#endregion
16
- export { base_executor_untyped_default as default };
17
- //# sourceMappingURL=base-executor.untyped.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor.untyped.mjs","names":[],"sources":["../../src/base/base-executor.untyped.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\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/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport baseExecutorSchema from \"@powerlines/nx/base/base-executor.untyped\";\nimport { defineUntypedSchema } from \"untyped\";\n\nexport default defineUntypedSchema({\n ...baseExecutorSchema,\n $schema: {\n id: \"BaseExecutorSchema\",\n title: \"Base Executor\",\n description:\n \"A shared/base schema type definition for Shell Shock executors\",\n required: []\n }\n});\n"],"mappings":";;;;AAqBA,oCAAe,oBAAoB;CACjC,GAAG;CACH,SAAS;EACP,IAAI;EACJ,OAAO;EACP,aACE;EACF,UAAU,EAAE;EACb;CACF,CAAC"}
@@ -1,2 +0,0 @@
1
- import { n as withExecutor, t as ShellShockExecutorContext } from "../base-executor-CE7_IgHr.mjs";
2
- export { ShellShockExecutorContext, withExecutor };
@@ -1,2 +0,0 @@
1
- import { n as withExecutor, t as ShellShockExecutorContext } from "../base-executor-Co2z43MK.js";
2
- export { ShellShockExecutorContext, withExecutor };
@@ -1,5 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_base_base_executor = require('./base-executor.js');
3
- require('./base-executor.untyped.js');
4
-
5
- exports.withExecutor = require_base_base_executor.withExecutor;
@@ -1,4 +0,0 @@
1
- import { withExecutor } from "./base-executor.mjs";
2
- import "./base-executor.untyped.mjs";
3
-
4
- export { withExecutor };
@@ -1,29 +0,0 @@
1
- import { BaseExecutorSchema } from "./base/base-executor.schema.mjs";
2
- import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
3
- import { ShellShockAPI } from "@shell-shock/core";
4
- import { StormWorkspaceConfig } from "@storm-software/config/types";
5
- import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
6
- import { InlineConfig, PowerlinesCommand } from "powerlines";
7
-
8
- //#region src/base/base-executor.d.ts
9
- type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
10
- projectName: string;
11
- command: TCommand;
12
- options: TExecutorSchema;
13
- inlineConfig: InlineConfig;
14
- workspaceConfig: StormWorkspaceConfig;
15
- };
16
- /**
17
- * A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.
18
- *
19
- * @remarks
20
- * This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.
21
- *
22
- * @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
23
- * @param executorFn - The function that will be executed when the command is run.
24
- * @returns A Promise that resolves to the result of the executor function.
25
- */
26
- declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: ShellShockExecutorContext<TCommand, TExecutorSchema>, api: ShellShockAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
27
- //#endregion
28
- export { withExecutor as n, ShellShockExecutorContext as t };
29
- //# sourceMappingURL=base-executor-CE7_IgHr.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-CE7_IgHr.d.mts","names":[],"sources":["../src/base/base-executor.ts"],"mappings":";;;;;;;;KA8BY,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA;;;;;;;;;;;iBAaH,YAAA,kBACG,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,CAAA,CAE7C,OAAA,EAAS,QAAA,EACT,UAAA,GACE,OAAA,EAAS,yBAAA,CAA0B,QAAA,EAAU,eAAA,GAC7C,GAAA,EAAK,aAAA,KAEH,OAAA,CAAQ,kBAAA,uBACR,kBAAA,sBAGH,eAAA,CAAgB,eAAA"}
@@ -1,175 +0,0 @@
1
- import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
2
- import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
3
- import { ShellShockAPI } from "@shell-shock/core";
4
- import { StormWorkspaceConfig } from "@storm-software/config/types";
5
- import { InlineConfig, PowerlinesCommand } from "powerlines";
6
-
7
- //#region src/base/base-executor.schema.d.ts
8
- // Generated by powerlines
9
- // Do not edit this file directly
10
- interface BaseExecutorSchema {
11
- /**
12
- * Powerlines Configuration File
13
- *
14
- * The path to the Powerlines configuration file. Alias for `configFile`.
15
- *
16
- * @default "{projectRoot}/powerlines.config.ts"
17
- *
18
- * @format path
19
- */
20
- config?: string;
21
- /**
22
- * Powerlines Configuration File
23
- *
24
- * The path to the Powerlines configuration file. Alias for `config`.
25
- *
26
- * @default "{projectRoot}/powerlines.config.ts"
27
- *
28
- * @format path
29
- */
30
- configFile?: string;
31
- /**
32
- * Input Entry File(s)
33
- *
34
- * The entry file(s) that serve as the input for the project
35
- *
36
- *
37
- * @format path
38
- */
39
- input?: Array<string>;
40
- /**
41
- * TSConfig Path
42
- *
43
- * The path to the tsconfig file
44
- *
45
- * @default "{projectRoot}/tsconfig.json"
46
- *
47
- * @format path
48
- */
49
- tsconfig?: string;
50
- /**
51
- * Output Path
52
- *
53
- * The path to the output directory for the build artifacts
54
- *
55
- *
56
- * @format path
57
- */
58
- outputPath?: string;
59
- /**
60
- * Copy Path
61
- *
62
- * A directory path to copy the build artifacts into
63
- *
64
- *
65
- * @oneOf [object Object],[object Object]
66
- */
67
- copyPath?: any;
68
- /**
69
- * Sourcemap
70
- *
71
- * Generate a sourcemap
72
- *
73
- */
74
- sourceMap?: boolean;
75
- /**
76
- * Format
77
- *
78
- * The format to build
79
- *
80
- * @default ["cjs","esm"]
81
- */
82
- format?: Array<string>;
83
- /**
84
- * Platform
85
- *
86
- * The platform to build
87
- *
88
- * @default "neutral"
89
- *
90
- * @enum neutral,node,browser
91
- */
92
- platform?: string;
93
- /**
94
- * External
95
- *
96
- * The external dependencies
97
- *
98
- */
99
- external?: Array<any>;
100
- /**
101
- * No External
102
- *
103
- * The dependencies that should not be treated as external
104
- *
105
- */
106
- noExternal?: Array<any>;
107
- /**
108
- * Skip Node Modules Bundle
109
- *
110
- * Skip bundling node_modules during the build process (if required)
111
- *
112
- */
113
- skipNodeModulesBundle?: boolean;
114
- /**
115
- * Mode
116
- *
117
- * The build mode
118
- *
119
- *
120
- * @enum development,test,production
121
- */
122
- mode?: string;
123
- /**
124
- * Log Level
125
- *
126
- * The log level to use for the build process
127
- *
128
- *
129
- * @enum fatal,error,warn,success,info,debug,trace,silent
130
- */
131
- logLevel?: string;
132
- /**
133
- * Define
134
- *
135
- * The `define` values
136
- *
137
- */
138
- define?: Record<string, string>;
139
- /**
140
- * Assets
141
- *
142
- * The `assets` values
143
- *
144
- */
145
- assets?: Array<{
146
- input?: string;
147
- output?: string;
148
- glob: string;
149
- ignore?: string[];
150
- dot?: boolean;
151
- }>;
152
- }
153
- //#endregion
154
- //#region src/base/base-executor.d.ts
155
- type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
156
- projectName: string;
157
- command: TCommand;
158
- options: TExecutorSchema;
159
- inlineConfig: InlineConfig;
160
- workspaceConfig: StormWorkspaceConfig;
161
- };
162
- /**
163
- * A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.
164
- *
165
- * @remarks
166
- * This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.
167
- *
168
- * @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
169
- * @param executorFn - The function that will be executed when the command is run.
170
- * @returns A Promise that resolves to the result of the executor function.
171
- */
172
- declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: ShellShockExecutorContext<TCommand, TExecutorSchema>, api: ShellShockAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
173
- //#endregion
174
- export { withExecutor as n, ShellShockExecutorContext as t };
175
- //# sourceMappingURL=base-executor-CPOK8Lba.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-CPOK8Lba.d.mts","names":["BaseExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../src/base/base-executor.schema.d.ts","../src/base/base-executor.ts"],"mappings":";;;;;;;;;UAIiBA,kBAAAA;;;AAAjB;;;;;;;EAUCG,MAAAA;;;;;;;;;;EAWAC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;AChBD;;;;;;ED0BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,SAAAA;;;;;;;ACvBD;EDgCCC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;AAAAA;;;KC5HxE,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA;;;;;;;;;;;iBAaH,YAAA,kBACG,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,CAAA,CAE7C,OAAA,EAAS,QAAA,EACT,UAAA,GACE,OAAA,EAAS,yBAAA,CAA0B,QAAA,EAAU,eAAA,GAC7C,GAAA,EAAK,aAAA,KAEH,OAAA,CAAQ,kBAAA,uBACR,kBAAA,sBAGH,eAAA,CAAgB,eAAA"}
@@ -1,29 +0,0 @@
1
- import { BaseExecutorSchema } from "./base/base-executor.schema.js";
2
- import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
3
- import { ShellShockAPI } from "@shell-shock/core";
4
- import { StormWorkspaceConfig } from "@storm-software/config/types";
5
- import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
6
- import { InlineConfig, PowerlinesCommand } from "powerlines";
7
-
8
- //#region src/base/base-executor.d.ts
9
- type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
10
- projectName: string;
11
- command: TCommand;
12
- options: TExecutorSchema;
13
- inlineConfig: InlineConfig;
14
- workspaceConfig: StormWorkspaceConfig;
15
- };
16
- /**
17
- * A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.
18
- *
19
- * @remarks
20
- * This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.
21
- *
22
- * @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
23
- * @param executorFn - The function that will be executed when the command is run.
24
- * @returns A Promise that resolves to the result of the executor function.
25
- */
26
- declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: ShellShockExecutorContext<TCommand, TExecutorSchema>, api: ShellShockAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
27
- //#endregion
28
- export { withExecutor as n, ShellShockExecutorContext as t };
29
- //# sourceMappingURL=base-executor-Co2z43MK.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-Co2z43MK.d.ts","names":[],"sources":["../src/base/base-executor.ts"],"mappings":";;;;;;;;KA8BY,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA;;;;;;;;;;;iBAaH,YAAA,kBACG,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,CAAA,CAE7C,OAAA,EAAS,QAAA,EACT,UAAA,GACE,OAAA,EAAS,yBAAA,CAA0B,QAAA,EAAU,eAAA,GAC7C,GAAA,EAAK,aAAA,KAEH,OAAA,CAAQ,kBAAA,uBACR,kBAAA,sBAGH,eAAA,CAAgB,eAAA"}
@@ -1,175 +0,0 @@
1
- import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
2
- import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
3
- import { ShellShockAPI } from "@shell-shock/core";
4
- import { StormWorkspaceConfig } from "@storm-software/config/types";
5
- import { InlineConfig, PowerlinesCommand } from "powerlines";
6
-
7
- //#region src/base/base-executor.schema.d.ts
8
- // Generated by powerlines
9
- // Do not edit this file directly
10
- interface BaseExecutorSchema {
11
- /**
12
- * Powerlines Configuration File
13
- *
14
- * The path to the Powerlines configuration file. Alias for `configFile`.
15
- *
16
- * @default "{projectRoot}/powerlines.config.ts"
17
- *
18
- * @format path
19
- */
20
- config?: string;
21
- /**
22
- * Powerlines Configuration File
23
- *
24
- * The path to the Powerlines configuration file. Alias for `config`.
25
- *
26
- * @default "{projectRoot}/powerlines.config.ts"
27
- *
28
- * @format path
29
- */
30
- configFile?: string;
31
- /**
32
- * Input Entry File(s)
33
- *
34
- * The entry file(s) that serve as the input for the project
35
- *
36
- *
37
- * @format path
38
- */
39
- input?: Array<string>;
40
- /**
41
- * TSConfig Path
42
- *
43
- * The path to the tsconfig file
44
- *
45
- * @default "{projectRoot}/tsconfig.json"
46
- *
47
- * @format path
48
- */
49
- tsconfig?: string;
50
- /**
51
- * Output Path
52
- *
53
- * The path to the output directory for the build artifacts
54
- *
55
- *
56
- * @format path
57
- */
58
- outputPath?: string;
59
- /**
60
- * Copy Path
61
- *
62
- * A directory path to copy the build artifacts into
63
- *
64
- *
65
- * @oneOf [object Object],[object Object]
66
- */
67
- copyPath?: any;
68
- /**
69
- * Sourcemap
70
- *
71
- * Generate a sourcemap
72
- *
73
- */
74
- sourceMap?: boolean;
75
- /**
76
- * Format
77
- *
78
- * The format to build
79
- *
80
- * @default ["cjs","esm"]
81
- */
82
- format?: Array<string>;
83
- /**
84
- * Platform
85
- *
86
- * The platform to build
87
- *
88
- * @default "neutral"
89
- *
90
- * @enum neutral,node,browser
91
- */
92
- platform?: string;
93
- /**
94
- * External
95
- *
96
- * The external dependencies
97
- *
98
- */
99
- external?: Array<any>;
100
- /**
101
- * No External
102
- *
103
- * The dependencies that should not be treated as external
104
- *
105
- */
106
- noExternal?: Array<any>;
107
- /**
108
- * Skip Node Modules Bundle
109
- *
110
- * Skip bundling node_modules during the build process (if required)
111
- *
112
- */
113
- skipNodeModulesBundle?: boolean;
114
- /**
115
- * Mode
116
- *
117
- * The build mode
118
- *
119
- *
120
- * @enum development,test,production
121
- */
122
- mode?: string;
123
- /**
124
- * Log Level
125
- *
126
- * The log level to use for the build process
127
- *
128
- *
129
- * @enum fatal,error,warn,success,info,debug,trace,silent
130
- */
131
- logLevel?: string;
132
- /**
133
- * Define
134
- *
135
- * The `define` values
136
- *
137
- */
138
- define?: Record<string, string>;
139
- /**
140
- * Assets
141
- *
142
- * The `assets` values
143
- *
144
- */
145
- assets?: Array<{
146
- input?: string;
147
- output?: string;
148
- glob: string;
149
- ignore?: string[];
150
- dot?: boolean;
151
- }>;
152
- }
153
- //#endregion
154
- //#region src/base/base-executor.d.ts
155
- type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
156
- projectName: string;
157
- command: TCommand;
158
- options: TExecutorSchema;
159
- inlineConfig: InlineConfig;
160
- workspaceConfig: StormWorkspaceConfig;
161
- };
162
- /**
163
- * A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.
164
- *
165
- * @remarks
166
- * This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.
167
- *
168
- * @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
169
- * @param executorFn - The function that will be executed when the command is run.
170
- * @returns A Promise that resolves to the result of the executor function.
171
- */
172
- declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: ShellShockExecutorContext<TCommand, TExecutorSchema>, api: ShellShockAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
173
- //#endregion
174
- export { withExecutor as n, ShellShockExecutorContext as t };
175
- //# sourceMappingURL=base-executor-ICVyKAxY.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-ICVyKAxY.d.ts","names":["BaseExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../src/base/base-executor.schema.d.ts","../src/base/base-executor.ts"],"mappings":";;;;;;;;;UAIiBA,kBAAAA;;;AAAjB;;;;;;;EAUCG,MAAAA;;;;;;;;;;EAWAC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;AChBD;;;;;;ED0BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,SAAAA;;;;;;;ACvBD;EDgCCC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;AAAAA;;;KC5HxE,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA;;;;;;;;;;;iBAaH,YAAA,kBACG,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,CAAA,CAE7C,OAAA,EAAS,QAAA,EACT,UAAA,GACE,OAAA,EAAS,yBAAA,CAA0B,QAAA,EAAU,eAAA,GAC7C,GAAA,EAAK,aAAA,KAEH,OAAA,CAAQ,kBAAA,uBACR,kBAAA,sBAGH,eAAA,CAAgB,eAAA"}
@@ -1,7 +0,0 @@
1
- import * as untyped from "untyped";
2
-
3
- //#region src/base/base-executor.untyped.d.ts
4
- declare const _default: untyped.SchemaDefinition;
5
- //#endregion
6
- export { _default as t };
7
- //# sourceMappingURL=base-executor.untyped-D4R6pki2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor.untyped-D4R6pki2.d.ts","names":[],"sources":["../src/base/base-executor.untyped.ts"],"mappings":""}
@@ -1,7 +0,0 @@
1
- import * as untyped from "untyped";
2
-
3
- //#region src/base/base-executor.untyped.d.ts
4
- declare const _default: untyped.SchemaDefinition;
5
- //#endregion
6
- export { _default as t };
7
- //# sourceMappingURL=base-executor.untyped-hmlG6oyC.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor.untyped-hmlG6oyC.d.mts","names":[],"sources":["../src/base/base-executor.untyped.ts"],"mappings":""}
@@ -1,34 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
-
27
- //#endregion
28
-
29
- Object.defineProperty(exports, '__toESM', {
30
- enumerable: true,
31
- get: function () {
32
- return __toESM;
33
- }
34
- });
File without changes