@shell-shock/nx 0.0.46 → 0.0.47
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 +12 -0
- package/README.md +1 -1
- package/dist/chunk-BCHjMept.mjs +3 -0
- package/dist/executors/build/executor.d.mts +1 -5
- package/dist/executors/build/executor.d.mts.map +1 -1
- package/dist/executors/build/executor.d.ts +1 -6
- package/dist/executors/build/executor.d.ts.map +1 -1
- package/dist/executors/build/executor.js +1 -3
- package/dist/executors/build/executor.mjs +1 -1
- package/dist/executors/build/executor.mjs.map +1 -1
- package/dist/executors/build/schema.d.ts +170 -160
- package/dist/executors/clean/executor.d.mts +1 -5
- package/dist/executors/clean/executor.d.mts.map +1 -1
- package/dist/executors/clean/executor.d.ts +1 -6
- package/dist/executors/clean/executor.d.ts.map +1 -1
- package/dist/executors/clean/executor.js +1 -3
- package/dist/executors/clean/executor.mjs +1 -1
- package/dist/executors/clean/executor.mjs.map +1 -1
- package/dist/executors/clean/schema.d.ts +170 -160
- package/dist/executors/docs/executor.d.mts +1 -5
- package/dist/executors/docs/executor.d.mts.map +1 -1
- package/dist/executors/docs/executor.d.ts +1 -6
- package/dist/executors/docs/executor.d.ts.map +1 -1
- package/dist/executors/docs/executor.js +1 -3
- package/dist/executors/docs/executor.mjs +1 -1
- package/dist/executors/docs/executor.mjs.map +1 -1
- package/dist/executors/docs/schema.d.ts +170 -160
- package/dist/executors/lint/executor.d.mts +1 -5
- package/dist/executors/lint/executor.d.mts.map +1 -1
- package/dist/executors/lint/executor.d.ts +1 -6
- package/dist/executors/lint/executor.d.ts.map +1 -1
- package/dist/executors/lint/executor.js +1 -3
- package/dist/executors/lint/executor.mjs +1 -1
- package/dist/executors/lint/executor.mjs.map +1 -1
- package/dist/executors/lint/schema.d.ts +170 -160
- package/dist/executors/prepare/executor.d.mts +1 -5
- package/dist/executors/prepare/executor.d.mts.map +1 -1
- package/dist/executors/prepare/executor.d.ts +1 -6
- package/dist/executors/prepare/executor.d.ts.map +1 -1
- package/dist/executors/prepare/executor.js +1 -3
- package/dist/executors/prepare/executor.mjs +1 -1
- package/dist/executors/prepare/executor.mjs.map +1 -1
- package/dist/executors/prepare/schema.d.ts +170 -160
- package/dist/index.d.mts +175 -2
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +175 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/plugin/index.d.mts +242 -1
- package/dist/plugin/index.d.mts.map +1 -1
- package/dist/plugin/index.d.ts +242 -1
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +1221 -3
- package/dist/plugin/index.mjs +1191 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/package.json +16 -12
- package/dist/base/base-executor.d.mts +0 -2
- package/dist/base/base-executor.d.ts +0 -2
- package/dist/base/base-executor.js +0 -68
- package/dist/base/base-executor.mjs +0 -66
- package/dist/base/base-executor.mjs.map +0 -1
- package/dist/base/base-executor.schema.d.js +0 -0
- package/dist/base/base-executor.schema.d.mts +0 -149
- package/dist/base/base-executor.schema.d.mts.map +0 -1
- package/dist/base/base-executor.schema.d.ts.map +0 -1
- package/dist/base/base-executor.untyped.d.mts +0 -2
- package/dist/base/base-executor.untyped.d.ts +0 -2
- package/dist/base/base-executor.untyped.js +0 -18
- package/dist/base/base-executor.untyped.mjs +0 -17
- package/dist/base/base-executor.untyped.mjs.map +0 -1
- package/dist/base/index.d.mts +0 -2
- package/dist/base/index.d.ts +0 -2
- package/dist/base/index.js +0 -5
- package/dist/base/index.mjs +0 -4
- package/dist/base-executor-CE7_IgHr.d.mts +0 -29
- package/dist/base-executor-CE7_IgHr.d.mts.map +0 -1
- package/dist/base-executor-CPOK8Lba.d.mts +0 -175
- package/dist/base-executor-CPOK8Lba.d.mts.map +0 -1
- package/dist/base-executor-Co2z43MK.d.ts +0 -29
- package/dist/base-executor-Co2z43MK.d.ts.map +0 -1
- package/dist/base-executor-ICVyKAxY.d.ts +0 -175
- package/dist/base-executor-ICVyKAxY.d.ts.map +0 -1
- package/dist/base-executor.untyped-D4R6pki2.d.ts +0 -7
- package/dist/base-executor.untyped-D4R6pki2.d.ts.map +0 -1
- package/dist/base-executor.untyped-hmlG6oyC.d.mts +0 -7
- package/dist/base-executor.untyped-hmlG6oyC.d.mts.map +0 -1
- package/dist/chunk-BE-pF4vm.js +0 -34
- package/dist/executors/build/schema.d.js +0 -0
- package/dist/executors/build/schema.d.mts +0 -163
- package/dist/executors/build/schema.d.mts.map +0 -1
- package/dist/executors/build/schema.d.ts.map +0 -1
- package/dist/executors/build/untyped.d.mts +0 -7
- package/dist/executors/build/untyped.d.mts.map +0 -1
- package/dist/executors/build/untyped.d.ts +0 -6
- package/dist/executors/build/untyped.d.ts.map +0 -1
- package/dist/executors/build/untyped.js +0 -17
- package/dist/executors/build/untyped.mjs +0 -17
- package/dist/executors/build/untyped.mjs.map +0 -1
- package/dist/executors/clean/schema.d.js +0 -0
- package/dist/executors/clean/schema.d.mts +0 -163
- package/dist/executors/clean/schema.d.mts.map +0 -1
- package/dist/executors/clean/schema.d.ts.map +0 -1
- package/dist/executors/clean/untyped.d.mts +0 -7
- package/dist/executors/clean/untyped.d.mts.map +0 -1
- package/dist/executors/clean/untyped.d.ts +0 -6
- package/dist/executors/clean/untyped.d.ts.map +0 -1
- package/dist/executors/clean/untyped.js +0 -17
- package/dist/executors/clean/untyped.mjs +0 -17
- package/dist/executors/clean/untyped.mjs.map +0 -1
- package/dist/executors/docs/schema.d.js +0 -0
- package/dist/executors/docs/schema.d.mts +0 -163
- package/dist/executors/docs/schema.d.mts.map +0 -1
- package/dist/executors/docs/schema.d.ts.map +0 -1
- package/dist/executors/docs/untyped.d.mts +0 -7
- package/dist/executors/docs/untyped.d.mts.map +0 -1
- package/dist/executors/docs/untyped.d.ts +0 -6
- package/dist/executors/docs/untyped.d.ts.map +0 -1
- package/dist/executors/docs/untyped.js +0 -17
- package/dist/executors/docs/untyped.mjs +0 -17
- package/dist/executors/docs/untyped.mjs.map +0 -1
- package/dist/executors/lint/schema.d.js +0 -0
- package/dist/executors/lint/schema.d.mts +0 -163
- package/dist/executors/lint/schema.d.mts.map +0 -1
- package/dist/executors/lint/schema.d.ts.map +0 -1
- package/dist/executors/lint/untyped.d.mts +0 -7
- package/dist/executors/lint/untyped.d.mts.map +0 -1
- package/dist/executors/lint/untyped.d.ts +0 -6
- package/dist/executors/lint/untyped.d.ts.map +0 -1
- package/dist/executors/lint/untyped.js +0 -17
- package/dist/executors/lint/untyped.mjs +0 -17
- package/dist/executors/lint/untyped.mjs.map +0 -1
- package/dist/executors/prepare/schema.d.js +0 -0
- package/dist/executors/prepare/schema.d.mts +0 -163
- package/dist/executors/prepare/schema.d.mts.map +0 -1
- package/dist/executors/prepare/schema.d.ts.map +0 -1
- package/dist/executors/prepare/untyped.d.mts +0 -7
- package/dist/executors/prepare/untyped.d.mts.map +0 -1
- package/dist/executors/prepare/untyped.d.ts +0 -6
- package/dist/executors/prepare/untyped.d.ts.map +0 -1
- package/dist/executors/prepare/untyped.js +0 -18
- package/dist/executors/prepare/untyped.mjs +0 -17
- package/dist/executors/prepare/untyped.mjs.map +0 -1
|
@@ -1,163 +1,173 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
// Generated by powerlines
|
|
3
3
|
// Do not edit this file directly
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
tsconfig
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
162
|
-
export { PrepareExecutorSchema };
|
|
163
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
173
|
+
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,175 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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 {
|
|
2
|
-
|
|
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
|