@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,163 +1,173 @@
1
- //#region src/executors/prepare/schema.d.ts
1
+
2
2
  // Generated by powerlines
3
3
  // Do not edit this file directly
4
- interface PrepareExecutorSchema {
5
- /**
6
- * Powerlines Configuration File
7
- *
8
- * The path to the Powerlines configuration file. Alias for `configFile`.
9
- *
10
- * @default "{projectRoot}/powerlines.config.ts"
11
- *
12
- * @format path
13
- */
14
- config?: string;
15
- /**
16
- * Powerlines Configuration File
17
- *
18
- * The path to the Powerlines configuration file. Alias for `config`.
19
- *
20
- * @default "{projectRoot}/powerlines.config.ts"
21
- *
22
- * @format path
23
- */
24
- configFile?: string;
25
- /**
26
- * Input Entry File(s)
27
- *
28
- * The entry file(s) that serve as the input for the project
29
- *
30
- *
31
- * @format path
32
- */
33
- input?: Array<string>;
34
- /**
35
- * TSConfig Path
36
- *
37
- * The path to the tsconfig file
38
- *
39
- * @default "{projectRoot}/tsconfig.json"
40
- *
41
- * @format path
42
- */
43
- tsconfig?: string;
44
- /**
45
- * Output Path
46
- *
47
- * The path to the output directory for the build artifacts
48
- *
49
- *
50
- * @format path
51
- */
52
- outputPath?: string;
53
- /**
54
- * Copy Path
55
- *
56
- * A directory path to copy the build artifacts into
57
- *
58
- *
59
- * @oneOf [object Object],[object Object]
60
- */
61
- copyPath?: any;
62
- /**
63
- * Sourcemap
64
- *
65
- * Generate a sourcemap
66
- *
67
- */
68
- sourceMap?: boolean;
69
- /**
70
- * Format
71
- *
72
- * The format to build
73
- *
74
- * @default ["cjs","esm"]
75
- */
76
- format?: Array<string>;
77
- /**
78
- * Platform
79
- *
80
- * The platform to build
81
- *
82
- * @default "neutral"
83
- *
84
- * @enum neutral,node,browser
85
- */
86
- platform?: string;
87
- /**
88
- * External
89
- *
90
- * The external dependencies
91
- *
92
- */
93
- external?: Array<any>;
94
- /**
95
- * No External
96
- *
97
- * The dependencies that should not be treated as external
98
- *
99
- */
100
- noExternal?: Array<any>;
101
- /**
102
- * Skip Node Modules Bundle
103
- *
104
- * Skip bundling node_modules during the build process (if required)
105
- *
106
- */
107
- skipNodeModulesBundle?: boolean;
108
- /**
109
- * Mode
110
- *
111
- * The build mode
112
- *
113
- *
114
- * @enum development,test,production
115
- */
116
- mode?: string;
117
- /**
118
- * Log Level
119
- *
120
- * The log level to use for the build process
121
- *
122
- *
123
- * @enum fatal,error,warn,success,info,debug,trace,silent
124
- */
125
- logLevel?: string;
126
- /**
127
- * Define
128
- *
129
- * The `define` values
130
- *
131
- */
132
- define?: Record<string, string>;
133
- /**
134
- * Assets
135
- *
136
- * The `assets` values
137
- *
138
- */
139
- assets?: Array<{
140
- input?: string;
141
- output?: string;
142
- glob: string;
143
- ignore?: string[];
144
- dot?: boolean;
145
- }>;
146
- /**
147
- * Auto Install
148
- *
149
- * Automatically install dependencies during prepare stage
150
- *
151
- */
152
- autoInstall?: boolean;
153
- /**
154
- * Skip Cache
155
- *
156
- * Skip the caching mechanism during the build process (if required)
157
- *
158
- */
159
- skipCache?: boolean;
4
+
5
+ export interface PrepareExecutorSchema {
6
+ /**
7
+ * Powerlines Configuration File
8
+ *
9
+ * The path to the Powerlines configuration file. Alias for `configFile`.
10
+ *
11
+ * @default "{projectRoot}/powerlines.config.ts"
12
+ *
13
+ * @format path
14
+ */
15
+ config?: string,
16
+
17
+ /**
18
+ * Powerlines Configuration File
19
+ *
20
+ * The path to the Powerlines configuration file. Alias for `config`.
21
+ *
22
+ * @default "{projectRoot}/powerlines.config.ts"
23
+ *
24
+ * @format path
25
+ */
26
+ configFile?: string,
27
+
28
+ /**
29
+ * Input Entry File(s)
30
+ *
31
+ * The entry file(s) that serve as the input for the project
32
+ *
33
+ *
34
+ * @format path
35
+ */
36
+ input?: Array<string>,
37
+
38
+ /**
39
+ * TSConfig Path
40
+ *
41
+ * The path to the tsconfig file
42
+ *
43
+ * @default "{projectRoot}/tsconfig.json"
44
+ *
45
+ * @format path
46
+ */
47
+ tsconfig?: string,
48
+
49
+ /**
50
+ * Output Path
51
+ *
52
+ * The path to the output directory for the build artifacts
53
+ *
54
+ *
55
+ * @format path
56
+ */
57
+ outputPath?: string,
58
+
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
+ /**
70
+ * Sourcemap
71
+ *
72
+ * Generate a sourcemap
73
+ *
74
+ */
75
+ sourceMap?: boolean,
76
+
77
+ /**
78
+ * Format
79
+ *
80
+ * The format to build
81
+ *
82
+ * @default ["cjs","esm"]
83
+ */
84
+ format?: Array<string>,
85
+
86
+ /**
87
+ * Platform
88
+ *
89
+ * The platform to build
90
+ *
91
+ * @default "neutral"
92
+ *
93
+ * @enum neutral,node,browser
94
+ */
95
+ platform?: string,
96
+
97
+ /**
98
+ * External
99
+ *
100
+ * The external dependencies
101
+ *
102
+ */
103
+ external?: Array<any>,
104
+
105
+ /**
106
+ * No External
107
+ *
108
+ * The dependencies that should not be treated as external
109
+ *
110
+ */
111
+ noExternal?: Array<any>,
112
+
113
+ /**
114
+ * Skip Node Modules Bundle
115
+ *
116
+ * Skip bundling node_modules during the build process (if required)
117
+ *
118
+ */
119
+ skipNodeModulesBundle?: boolean,
120
+
121
+ /**
122
+ * Mode
123
+ *
124
+ * The build mode
125
+ *
126
+ *
127
+ * @enum development,test,production
128
+ */
129
+ mode?: string,
130
+
131
+ /**
132
+ * Log Level
133
+ *
134
+ * The log level to use for the build process
135
+ *
136
+ *
137
+ * @enum fatal,error,warn,success,info,debug,trace,silent
138
+ */
139
+ logLevel?: string,
140
+
141
+ /**
142
+ * Define
143
+ *
144
+ * The `define` values
145
+ *
146
+ */
147
+ define?: Record<string, string>,
148
+
149
+ /**
150
+ * Assets
151
+ *
152
+ * The `assets` values
153
+ *
154
+ */
155
+ assets?: Array<{ input?: string; output?: string; glob: string; ignore?: string[]; dot?: boolean; }>,
156
+
157
+ /**
158
+ * Auto Install
159
+ *
160
+ * Automatically install dependencies during prepare stage
161
+ *
162
+ */
163
+ autoInstall?: boolean,
164
+
165
+ /**
166
+ * Skip Cache
167
+ *
168
+ * Skip the caching mechanism during the build process (if required)
169
+ *
170
+ */
171
+ skipCache?: boolean,
160
172
  }
161
- //#endregion
162
- export { PrepareExecutorSchema };
163
- //# sourceMappingURL=schema.d.ts.map
173
+
package/dist/index.d.mts CHANGED
@@ -1,2 +1,175 @@
1
- import { n as withExecutor, t as ShellShockExecutorContext } from "./base-executor-CPOK8Lba.mjs";
2
- export { ShellShockExecutorContext, withExecutor };
1
+ import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
2
+ import { ShellShockAPI } from "@shell-shock/core";
3
+ import { StormWorkspaceConfig } from "@storm-software/config/types";
4
+ import { BaseExecutorResult } from "@storm-software/workspace-tools/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 { ShellShockExecutorContext, withExecutor };
175
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.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;;;;;;;;EASAC,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"}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,175 @@
1
- import { n as withExecutor, t as ShellShockExecutorContext } from "./base-executor-ICVyKAxY.js";
2
- export { ShellShockExecutorContext, withExecutor };
1
+ import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
2
+ import { ShellShockAPI } from "@shell-shock/core";
3
+ import { StormWorkspaceConfig } from "@storm-software/config/types";
4
+ import { BaseExecutorResult } from "@storm-software/workspace-tools/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 { ShellShockExecutorContext, withExecutor };
175
+ //# sourceMappingURL=index.d.ts.map