@shell-shock/nx 0.0.42 → 0.0.46
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 +30 -0
- package/README.md +1 -1
- package/dist/base/base-executor.d.mts +2 -0
- package/dist/base/base-executor.d.ts +2 -0
- package/dist/{base-executor-CkaF97Xd.js → base/base-executor.js} +10 -46
- package/dist/{base-executor-DUf5AdoE.mjs → base/base-executor.mjs} +3 -3
- package/dist/base/base-executor.mjs.map +1 -0
- package/dist/base/base-executor.schema.d.js +0 -0
- package/dist/{src/executors/lint/executor.d.ts → base/base-executor.schema.d.mts} +33 -38
- package/dist/base/base-executor.schema.d.mts.map +1 -0
- package/dist/{src/executors/lint/schema.d.ts → base/base-executor.schema.d.ts} +26 -13
- package/dist/base/base-executor.schema.d.ts.map +1 -0
- package/dist/{src/base → base}/base-executor.schema.json +40 -2
- package/dist/base/base-executor.untyped.d.mts +2 -0
- package/dist/base/base-executor.untyped.d.ts +2 -0
- package/dist/base/base-executor.untyped.js +18 -0
- package/dist/{src/index.mjs → base/base-executor.untyped.mjs} +2 -3
- package/dist/base/base-executor.untyped.mjs.map +1 -0
- package/dist/base/index.d.mts +2 -0
- package/dist/base/index.d.ts +2 -0
- package/dist/base/index.js +5 -0
- package/dist/base/index.mjs +4 -0
- package/dist/base-executor-CE7_IgHr.d.mts +29 -0
- package/dist/base-executor-CE7_IgHr.d.mts.map +1 -0
- package/dist/{base-executor-FX7YJl7f.d.ts → base-executor-CPOK8Lba.d.mts} +34 -14
- package/dist/base-executor-CPOK8Lba.d.mts.map +1 -0
- package/dist/base-executor-Co2z43MK.d.ts +29 -0
- package/dist/base-executor-Co2z43MK.d.ts.map +1 -0
- package/dist/{src/base-executor-DUf5AdoE.mjs → base-executor-DojAZA0w.mjs} +2 -2
- package/dist/base-executor-DojAZA0w.mjs.map +1 -0
- package/dist/{base-executor-BkNTl-jk.d.mts → base-executor-ICVyKAxY.d.ts} +34 -14
- package/dist/base-executor-ICVyKAxY.d.ts.map +1 -0
- package/dist/{src/base-executor-CkaF97Xd.js → base-executor-KUL9jD5R.js} +7 -7
- package/dist/base-executor.untyped-D4R6pki2.d.ts +7 -0
- package/dist/base-executor.untyped-D4R6pki2.d.ts.map +1 -0
- package/dist/base-executor.untyped-hmlG6oyC.d.mts +7 -0
- package/dist/base-executor.untyped-hmlG6oyC.d.mts.map +1 -0
- package/dist/chunk-BE-pF4vm.js +34 -0
- package/dist/executors/build/executor.d.mts +34 -16
- package/dist/executors/build/executor.d.mts.map +1 -1
- package/dist/executors/build/executor.d.ts +34 -16
- package/dist/executors/build/executor.d.ts.map +1 -1
- package/dist/executors/build/executor.js +3 -4
- package/dist/executors/build/executor.mjs +2 -3
- package/dist/executors/build/executor.mjs.map +1 -1
- package/dist/executors/build/schema.d.js +0 -0
- package/dist/{src/executors/build/executor.d.mts → executors/build/schema.d.mts} +35 -26
- package/dist/executors/build/schema.d.mts.map +1 -0
- package/dist/executors/build/schema.d.ts +160 -141
- package/dist/executors/build/schema.d.ts.map +1 -0
- package/dist/executors/build/schema.json +40 -2
- package/dist/executors/build/untyped.d.mts +7 -0
- package/dist/executors/build/untyped.d.mts.map +1 -0
- package/dist/executors/build/untyped.d.ts +6 -0
- package/dist/executors/build/untyped.d.ts.map +1 -0
- package/dist/executors/build/untyped.js +17 -0
- package/dist/executors/build/untyped.mjs +17 -0
- package/dist/executors/build/untyped.mjs.map +1 -0
- package/dist/executors/clean/executor.d.mts +34 -16
- package/dist/executors/clean/executor.d.mts.map +1 -1
- package/dist/executors/clean/executor.d.ts +34 -16
- package/dist/executors/clean/executor.d.ts.map +1 -1
- package/dist/executors/clean/executor.js +3 -4
- package/dist/executors/clean/executor.mjs +2 -3
- package/dist/executors/clean/executor.mjs.map +1 -1
- package/dist/executors/clean/schema.d.js +0 -0
- package/dist/{src/executors/clean/executor.d.mts → executors/clean/schema.d.mts} +35 -26
- package/dist/executors/clean/schema.d.mts.map +1 -0
- package/dist/executors/clean/schema.d.ts +160 -141
- package/dist/executors/clean/schema.d.ts.map +1 -0
- package/dist/executors/clean/schema.json +40 -2
- package/dist/executors/clean/untyped.d.mts +7 -0
- package/dist/executors/clean/untyped.d.mts.map +1 -0
- package/dist/executors/clean/untyped.d.ts +6 -0
- package/dist/executors/clean/untyped.d.ts.map +1 -0
- package/dist/executors/clean/untyped.js +17 -0
- package/dist/executors/clean/untyped.mjs +17 -0
- package/dist/executors/clean/untyped.mjs.map +1 -0
- package/dist/executors/docs/executor.d.mts +34 -16
- package/dist/executors/docs/executor.d.mts.map +1 -1
- package/dist/executors/docs/executor.d.ts +34 -16
- package/dist/executors/docs/executor.d.ts.map +1 -1
- package/dist/executors/docs/executor.js +3 -4
- package/dist/executors/docs/executor.mjs +2 -3
- package/dist/executors/docs/executor.mjs.map +1 -1
- package/dist/executors/docs/schema.d.js +0 -0
- package/dist/{src/executors/docs/executor.d.mts → executors/docs/schema.d.mts} +35 -26
- package/dist/executors/docs/schema.d.mts.map +1 -0
- package/dist/executors/docs/schema.d.ts +160 -141
- package/dist/executors/docs/schema.d.ts.map +1 -0
- package/dist/executors/docs/schema.json +40 -2
- package/dist/executors/docs/untyped.d.mts +7 -0
- package/dist/executors/docs/untyped.d.mts.map +1 -0
- package/dist/executors/docs/untyped.d.ts +6 -0
- package/dist/executors/docs/untyped.d.ts.map +1 -0
- package/dist/executors/docs/untyped.js +17 -0
- package/dist/executors/docs/untyped.mjs +17 -0
- package/dist/executors/docs/untyped.mjs.map +1 -0
- package/dist/executors/lint/executor.d.mts +34 -16
- package/dist/executors/lint/executor.d.mts.map +1 -1
- package/dist/executors/lint/executor.d.ts +34 -16
- package/dist/executors/lint/executor.d.ts.map +1 -1
- package/dist/executors/lint/executor.js +3 -4
- package/dist/executors/lint/executor.mjs +2 -3
- package/dist/executors/lint/executor.mjs.map +1 -1
- package/dist/executors/lint/schema.d.js +0 -0
- package/dist/{src/executors/lint/executor.d.mts → executors/lint/schema.d.mts} +35 -26
- package/dist/executors/lint/schema.d.mts.map +1 -0
- package/dist/executors/lint/schema.d.ts +160 -141
- package/dist/executors/lint/schema.d.ts.map +1 -0
- package/dist/executors/lint/schema.json +40 -2
- package/dist/executors/lint/untyped.d.mts +7 -0
- package/dist/executors/lint/untyped.d.mts.map +1 -0
- package/dist/executors/lint/untyped.d.ts +6 -0
- package/dist/executors/lint/untyped.d.ts.map +1 -0
- package/dist/executors/lint/untyped.js +17 -0
- package/dist/executors/lint/untyped.mjs +17 -0
- package/dist/executors/lint/untyped.mjs.map +1 -0
- package/dist/executors/prepare/executor.d.mts +34 -16
- package/dist/executors/prepare/executor.d.mts.map +1 -1
- package/dist/executors/prepare/executor.d.ts +34 -16
- package/dist/executors/prepare/executor.d.ts.map +1 -1
- package/dist/executors/prepare/executor.js +3 -4
- package/dist/executors/prepare/executor.mjs +2 -3
- package/dist/executors/prepare/executor.mjs.map +1 -1
- package/dist/executors/prepare/schema.d.js +0 -0
- package/dist/{src/executors/prepare/executor.d.mts → executors/prepare/schema.d.mts} +35 -26
- package/dist/executors/prepare/schema.d.mts.map +1 -0
- package/dist/executors/prepare/schema.d.ts +160 -141
- package/dist/executors/prepare/schema.d.ts.map +1 -0
- package/dist/executors/prepare/schema.json +40 -2
- package/dist/executors/prepare/untyped.d.mts +7 -0
- package/dist/executors/prepare/untyped.d.mts.map +1 -0
- package/dist/executors/prepare/untyped.d.ts +6 -0
- package/dist/executors/prepare/untyped.d.ts.map +1 -0
- package/dist/executors/prepare/untyped.js +18 -0
- package/dist/executors/prepare/untyped.mjs +17 -0
- package/dist/executors/prepare/untyped.mjs.map +1 -0
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/plugin/index.d.mts +1 -1
- package/dist/plugin/index.d.mts.map +1 -1
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +4 -3
- package/dist/plugin/index.mjs +1 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/docs/api/base-executor.schema.md +31 -1
- package/docs/api/build/schema.md +31 -1
- package/docs/api/clean/schema.md +31 -1
- package/docs/api/docs/schema.md +31 -1
- package/docs/api/lint/schema.md +31 -1
- package/docs/api/prepare/schema.md +31 -1
- package/executors.json +10 -10
- package/package.json +46 -58
- package/dist/base-executor-BkNTl-jk.d.mts.map +0 -1
- package/dist/base-executor-DUf5AdoE.mjs.map +0 -1
- package/dist/base-executor-FX7YJl7f.d.ts.map +0 -1
- package/dist/src/base/base-executor.schema.d.ts +0 -128
- package/dist/src/base-executor-BkNTl-jk.d.mts +0 -155
- package/dist/src/base-executor-BkNTl-jk.d.mts.map +0 -1
- package/dist/src/base-executor-DUf5AdoE.mjs.map +0 -1
- package/dist/src/base-executor-FX7YJl7f.d.ts +0 -155
- package/dist/src/base-executor-FX7YJl7f.d.ts.map +0 -1
- package/dist/src/executors/build/executor.d.mts.map +0 -1
- package/dist/src/executors/build/executor.d.ts +0 -154
- package/dist/src/executors/build/executor.d.ts.map +0 -1
- package/dist/src/executors/build/executor.js +0 -20
- package/dist/src/executors/build/executor.mjs +0 -18
- package/dist/src/executors/build/executor.mjs.map +0 -1
- package/dist/src/executors/build/schema.d.ts +0 -144
- package/dist/src/executors/build/schema.json +0 -163
- package/dist/src/executors/clean/executor.d.mts.map +0 -1
- package/dist/src/executors/clean/executor.d.ts +0 -154
- package/dist/src/executors/clean/executor.d.ts.map +0 -1
- package/dist/src/executors/clean/executor.js +0 -15
- package/dist/src/executors/clean/executor.mjs +0 -14
- package/dist/src/executors/clean/executor.mjs.map +0 -1
- package/dist/src/executors/clean/schema.d.ts +0 -144
- package/dist/src/executors/clean/schema.json +0 -163
- package/dist/src/executors/docs/executor.d.mts.map +0 -1
- package/dist/src/executors/docs/executor.d.ts +0 -154
- package/dist/src/executors/docs/executor.d.ts.map +0 -1
- package/dist/src/executors/docs/executor.js +0 -16
- package/dist/src/executors/docs/executor.mjs +0 -14
- package/dist/src/executors/docs/executor.mjs.map +0 -1
- package/dist/src/executors/docs/schema.d.ts +0 -144
- package/dist/src/executors/docs/schema.json +0 -163
- package/dist/src/executors/lint/executor.d.mts.map +0 -1
- package/dist/src/executors/lint/executor.d.ts.map +0 -1
- package/dist/src/executors/lint/executor.js +0 -16
- package/dist/src/executors/lint/executor.mjs +0 -14
- package/dist/src/executors/lint/executor.mjs.map +0 -1
- package/dist/src/executors/lint/schema.json +0 -163
- package/dist/src/executors/prepare/executor.d.mts.map +0 -1
- package/dist/src/executors/prepare/executor.d.ts +0 -154
- package/dist/src/executors/prepare/executor.d.ts.map +0 -1
- package/dist/src/executors/prepare/executor.js +0 -20
- package/dist/src/executors/prepare/executor.mjs +0 -18
- package/dist/src/executors/prepare/executor.mjs.map +0 -1
- package/dist/src/executors/prepare/schema.d.ts +0 -144
- package/dist/src/executors/prepare/schema.json +0 -163
- package/dist/src/index.d.mts +0 -3
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.js +0 -18
- package/dist/src/index.mjs.map +0 -1
- package/dist/src/plugin/index.d.mts +0 -8
- package/dist/src/plugin/index.d.mts.map +0 -1
- package/dist/src/plugin/index.d.ts +0 -8
- package/dist/src/plugin/index.d.ts.map +0 -1
- package/dist/src/plugin/index.js +0 -8
- package/dist/src/plugin/index.mjs +0 -8
- package/dist/src/plugin/index.mjs.map +0 -1
|
@@ -11,14 +11,23 @@ interface BaseExecutorSchema {
|
|
|
11
11
|
/**
|
|
12
12
|
* Powerlines Configuration File
|
|
13
13
|
*
|
|
14
|
-
* The path to the Powerlines configuration file
|
|
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`.
|
|
15
25
|
*
|
|
16
26
|
* @default "{projectRoot}/powerlines.config.ts"
|
|
17
27
|
*
|
|
18
28
|
* @format path
|
|
19
29
|
*/
|
|
20
30
|
configFile?: string;
|
|
21
|
-
|
|
22
31
|
/**
|
|
23
32
|
* Input Entry File(s)
|
|
24
33
|
*
|
|
@@ -28,7 +37,6 @@ interface BaseExecutorSchema {
|
|
|
28
37
|
* @format path
|
|
29
38
|
*/
|
|
30
39
|
input?: Array<string>;
|
|
31
|
-
|
|
32
40
|
/**
|
|
33
41
|
* TSConfig Path
|
|
34
42
|
*
|
|
@@ -39,7 +47,6 @@ interface BaseExecutorSchema {
|
|
|
39
47
|
* @format path
|
|
40
48
|
*/
|
|
41
49
|
tsconfig?: string;
|
|
42
|
-
|
|
43
50
|
/**
|
|
44
51
|
* Output Path
|
|
45
52
|
*
|
|
@@ -49,7 +56,15 @@ interface BaseExecutorSchema {
|
|
|
49
56
|
* @format path
|
|
50
57
|
*/
|
|
51
58
|
outputPath?: string;
|
|
52
|
-
|
|
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;
|
|
53
68
|
/**
|
|
54
69
|
* Sourcemap
|
|
55
70
|
*
|
|
@@ -57,7 +72,6 @@ interface BaseExecutorSchema {
|
|
|
57
72
|
*
|
|
58
73
|
*/
|
|
59
74
|
sourceMap?: boolean;
|
|
60
|
-
|
|
61
75
|
/**
|
|
62
76
|
* Format
|
|
63
77
|
*
|
|
@@ -66,7 +80,6 @@ interface BaseExecutorSchema {
|
|
|
66
80
|
* @default ["cjs","esm"]
|
|
67
81
|
*/
|
|
68
82
|
format?: Array<string>;
|
|
69
|
-
|
|
70
83
|
/**
|
|
71
84
|
* Platform
|
|
72
85
|
*
|
|
@@ -77,7 +90,6 @@ interface BaseExecutorSchema {
|
|
|
77
90
|
* @enum neutral,node,browser
|
|
78
91
|
*/
|
|
79
92
|
platform?: string;
|
|
80
|
-
|
|
81
93
|
/**
|
|
82
94
|
* External
|
|
83
95
|
*
|
|
@@ -85,7 +97,6 @@ interface BaseExecutorSchema {
|
|
|
85
97
|
*
|
|
86
98
|
*/
|
|
87
99
|
external?: Array<any>;
|
|
88
|
-
|
|
89
100
|
/**
|
|
90
101
|
* No External
|
|
91
102
|
*
|
|
@@ -93,7 +104,6 @@ interface BaseExecutorSchema {
|
|
|
93
104
|
*
|
|
94
105
|
*/
|
|
95
106
|
noExternal?: Array<any>;
|
|
96
|
-
|
|
97
107
|
/**
|
|
98
108
|
* Skip Node Modules Bundle
|
|
99
109
|
*
|
|
@@ -101,7 +111,6 @@ interface BaseExecutorSchema {
|
|
|
101
111
|
*
|
|
102
112
|
*/
|
|
103
113
|
skipNodeModulesBundle?: boolean;
|
|
104
|
-
|
|
105
114
|
/**
|
|
106
115
|
* Mode
|
|
107
116
|
*
|
|
@@ -111,7 +120,6 @@ interface BaseExecutorSchema {
|
|
|
111
120
|
* @enum development,test,production
|
|
112
121
|
*/
|
|
113
122
|
mode?: string;
|
|
114
|
-
|
|
115
123
|
/**
|
|
116
124
|
* Log Level
|
|
117
125
|
*
|
|
@@ -121,7 +129,6 @@ interface BaseExecutorSchema {
|
|
|
121
129
|
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
122
130
|
*/
|
|
123
131
|
logLevel?: string;
|
|
124
|
-
|
|
125
132
|
/**
|
|
126
133
|
* Define
|
|
127
134
|
*
|
|
@@ -129,6 +136,19 @@ interface BaseExecutorSchema {
|
|
|
129
136
|
*
|
|
130
137
|
*/
|
|
131
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
|
+
}>;
|
|
132
152
|
}
|
|
133
153
|
//#endregion
|
|
134
154
|
//#region src/base/base-executor.d.ts
|
|
@@ -152,4 +172,4 @@ type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCo
|
|
|
152
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>;
|
|
153
173
|
//#endregion
|
|
154
174
|
export { withExecutor as n, ShellShockExecutorContext as t };
|
|
155
|
-
//# sourceMappingURL=base-executor-
|
|
175
|
+
//# sourceMappingURL=base-executor-CPOK8Lba.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -30,7 +30,7 @@ function withExecutor(command, executorFn) {
|
|
|
30
30
|
description: projectConfig.metadata?.description,
|
|
31
31
|
projectType: projectConfig.projectType,
|
|
32
32
|
mode: options.mode,
|
|
33
|
-
output: {
|
|
33
|
+
output: { path: options.outputPath }
|
|
34
34
|
}, options));
|
|
35
35
|
try {
|
|
36
36
|
return await Promise.resolve(executorFn(defu({
|
|
@@ -63,4 +63,4 @@ ${error.stack}` : "Unknown error"}`);
|
|
|
63
63
|
|
|
64
64
|
//#endregion
|
|
65
65
|
export { withExecutor as t };
|
|
66
|
-
//# sourceMappingURL=base-executor-
|
|
66
|
+
//# sourceMappingURL=base-executor-DojAZA0w.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor-DojAZA0w.mjs","names":[],"sources":["../src/base/base-executor.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 type { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport type { ShellShockAPI, UserConfig } from \"@shell-shock/core\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport type { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport type { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type { InlineConfig, PowerlinesCommand } from \"powerlines\";\nimport type { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type ShellShockExecutorContext<\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 Shell Shock executor that can be used with the `withRunExecutor` function.\n *\n * @remarks\n * This function is designed to simplify the creation of Shell Shock 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: ShellShockExecutorContext<TCommand, TExecutorSchema>,\n api: ShellShockAPI\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Shell Shock ${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 jiti = createJiti(context.root, { cache: false });\n const { createShellShock } = await jiti.import<{\n createShellShock: typeof import(\"@shell-shock/core\").createShellShock;\n }>(\"@shell-shock/core\");\n\n const api = await createShellShock(\n defu(\n {\n name: projectConfig.name,\n root: projectConfig.root,\n sourceRoot: projectConfig.sourceRoot,\n tsconfig: options.tsconfig,\n logLevel: options.logLevel,\n description: projectConfig.metadata?.description,\n projectType: projectConfig.projectType,\n mode: options.mode,\n output: {\n path: options.outputPath\n }\n },\n options\n ) as Partial<UserConfig>\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 Shell Shock ${\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 options.outputPath ??= \"dist/{projectRoot}\";\n options.configFile ??= \"{projectRoot}/shell-shock.config.ts\";\n\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmDA,SAAgB,aAId,SACA,YAQkC;AAClC,QAAO,gBACL,eAAe,QAAQ,oBACvB,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;EAGlD,MAAM,EAAE,qBAAqB,MADhB,WAAW,QAAQ,MAAM,EAAE,OAAO,OAAO,CAAC,CACf,OAErC,oBAAoB;EAEvB,MAAM,MAAM,MAAM,iBAChB,KACE;GACE,MAAM,cAAc;GACpB,MAAM,cAAc;GACpB,YAAY,cAAc;GAC1B,UAAU,QAAQ;GAClB,UAAU,QAAQ;GAClB,aAAa,cAAc,UAAU;GACrC,aAAa,cAAc;GAC3B,MAAM,QAAQ;GACd,QAAQ,EACN,MAAM,QAAQ,YACf;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,qDACE,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,WAAQ,eAAe;AACvB,WAAQ,eAAe;AAEvB,UAAO;KAEV;EACF,CACF"}
|
|
@@ -11,14 +11,23 @@ interface BaseExecutorSchema {
|
|
|
11
11
|
/**
|
|
12
12
|
* Powerlines Configuration File
|
|
13
13
|
*
|
|
14
|
-
* The path to the Powerlines configuration file
|
|
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`.
|
|
15
25
|
*
|
|
16
26
|
* @default "{projectRoot}/powerlines.config.ts"
|
|
17
27
|
*
|
|
18
28
|
* @format path
|
|
19
29
|
*/
|
|
20
30
|
configFile?: string;
|
|
21
|
-
|
|
22
31
|
/**
|
|
23
32
|
* Input Entry File(s)
|
|
24
33
|
*
|
|
@@ -28,7 +37,6 @@ interface BaseExecutorSchema {
|
|
|
28
37
|
* @format path
|
|
29
38
|
*/
|
|
30
39
|
input?: Array<string>;
|
|
31
|
-
|
|
32
40
|
/**
|
|
33
41
|
* TSConfig Path
|
|
34
42
|
*
|
|
@@ -39,7 +47,6 @@ interface BaseExecutorSchema {
|
|
|
39
47
|
* @format path
|
|
40
48
|
*/
|
|
41
49
|
tsconfig?: string;
|
|
42
|
-
|
|
43
50
|
/**
|
|
44
51
|
* Output Path
|
|
45
52
|
*
|
|
@@ -49,7 +56,15 @@ interface BaseExecutorSchema {
|
|
|
49
56
|
* @format path
|
|
50
57
|
*/
|
|
51
58
|
outputPath?: string;
|
|
52
|
-
|
|
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;
|
|
53
68
|
/**
|
|
54
69
|
* Sourcemap
|
|
55
70
|
*
|
|
@@ -57,7 +72,6 @@ interface BaseExecutorSchema {
|
|
|
57
72
|
*
|
|
58
73
|
*/
|
|
59
74
|
sourceMap?: boolean;
|
|
60
|
-
|
|
61
75
|
/**
|
|
62
76
|
* Format
|
|
63
77
|
*
|
|
@@ -66,7 +80,6 @@ interface BaseExecutorSchema {
|
|
|
66
80
|
* @default ["cjs","esm"]
|
|
67
81
|
*/
|
|
68
82
|
format?: Array<string>;
|
|
69
|
-
|
|
70
83
|
/**
|
|
71
84
|
* Platform
|
|
72
85
|
*
|
|
@@ -77,7 +90,6 @@ interface BaseExecutorSchema {
|
|
|
77
90
|
* @enum neutral,node,browser
|
|
78
91
|
*/
|
|
79
92
|
platform?: string;
|
|
80
|
-
|
|
81
93
|
/**
|
|
82
94
|
* External
|
|
83
95
|
*
|
|
@@ -85,7 +97,6 @@ interface BaseExecutorSchema {
|
|
|
85
97
|
*
|
|
86
98
|
*/
|
|
87
99
|
external?: Array<any>;
|
|
88
|
-
|
|
89
100
|
/**
|
|
90
101
|
* No External
|
|
91
102
|
*
|
|
@@ -93,7 +104,6 @@ interface BaseExecutorSchema {
|
|
|
93
104
|
*
|
|
94
105
|
*/
|
|
95
106
|
noExternal?: Array<any>;
|
|
96
|
-
|
|
97
107
|
/**
|
|
98
108
|
* Skip Node Modules Bundle
|
|
99
109
|
*
|
|
@@ -101,7 +111,6 @@ interface BaseExecutorSchema {
|
|
|
101
111
|
*
|
|
102
112
|
*/
|
|
103
113
|
skipNodeModulesBundle?: boolean;
|
|
104
|
-
|
|
105
114
|
/**
|
|
106
115
|
* Mode
|
|
107
116
|
*
|
|
@@ -111,7 +120,6 @@ interface BaseExecutorSchema {
|
|
|
111
120
|
* @enum development,test,production
|
|
112
121
|
*/
|
|
113
122
|
mode?: string;
|
|
114
|
-
|
|
115
123
|
/**
|
|
116
124
|
* Log Level
|
|
117
125
|
*
|
|
@@ -121,7 +129,6 @@ interface BaseExecutorSchema {
|
|
|
121
129
|
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
122
130
|
*/
|
|
123
131
|
logLevel?: string;
|
|
124
|
-
|
|
125
132
|
/**
|
|
126
133
|
* Define
|
|
127
134
|
*
|
|
@@ -129,6 +136,19 @@ interface BaseExecutorSchema {
|
|
|
129
136
|
*
|
|
130
137
|
*/
|
|
131
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
|
+
}>;
|
|
132
152
|
}
|
|
133
153
|
//#endregion
|
|
134
154
|
//#region src/base/base-executor.d.ts
|
|
@@ -152,4 +172,4 @@ type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCo
|
|
|
152
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>;
|
|
153
173
|
//#endregion
|
|
154
174
|
export { withExecutor as n, ShellShockExecutorContext as t };
|
|
155
|
-
//# sourceMappingURL=base-executor-
|
|
175
|
+
//# sourceMappingURL=base-executor-ICVyKAxY.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -25,9 +25,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
-
let
|
|
29
|
-
let
|
|
30
|
-
let
|
|
28
|
+
let _storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
|
|
29
|
+
let _storm_software_workspace_tools_base_base_executor = require("@storm-software/workspace-tools/base/base-executor");
|
|
30
|
+
let _stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
|
|
31
31
|
let defu = require("defu");
|
|
32
32
|
defu = __toESM(defu);
|
|
33
33
|
let jiti = require("jiti");
|
|
@@ -44,7 +44,7 @@ let jiti = require("jiti");
|
|
|
44
44
|
* @returns A Promise that resolves to the result of the executor function.
|
|
45
45
|
*/
|
|
46
46
|
function withExecutor(command, executorFn) {
|
|
47
|
-
return (0,
|
|
47
|
+
return (0, _storm_software_workspace_tools_base_base_executor.withRunExecutor)(`Shell Shock ${command} command executor`, async (options, context, workspaceConfig) => {
|
|
48
48
|
if (!context.projectName) throw new Error("The executor requires `projectName` on the context object.");
|
|
49
49
|
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.");
|
|
50
50
|
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
@@ -58,7 +58,7 @@ function withExecutor(command, executorFn) {
|
|
|
58
58
|
description: projectConfig.metadata?.description,
|
|
59
59
|
projectType: projectConfig.projectType,
|
|
60
60
|
mode: options.mode,
|
|
61
|
-
output: {
|
|
61
|
+
output: { path: options.outputPath }
|
|
62
62
|
}, options));
|
|
63
63
|
try {
|
|
64
64
|
return await Promise.resolve(executorFn((0, defu.default)({
|
|
@@ -72,7 +72,7 @@ function withExecutor(command, executorFn) {
|
|
|
72
72
|
command
|
|
73
73
|
}, context), api));
|
|
74
74
|
} catch (error) {
|
|
75
|
-
(0,
|
|
75
|
+
(0, _storm_software_config_tools_logger.writeError)(`An error occurred while executing the Shell Shock ${command} command executor: ${(0, _stryke_type_checks_is_error.isError)(error) ? `${error.message}
|
|
76
76
|
|
|
77
77
|
${error.stack}` : "Unknown error"}`);
|
|
78
78
|
return { success: false };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor.untyped-D4R6pki2.d.ts","names":[],"sources":["../src/base/base-executor.untyped.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor.untyped-hmlG6oyC.d.mts","names":[],"sources":["../src/base/base-executor.untyped.ts"],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ShellShockExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as ShellShockExecutorContext } from "../../base-executor-CPOK8Lba.mjs";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { ShellShockAPI } from "@shell-shock/core/api";
|
|
4
4
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
@@ -10,14 +10,23 @@ interface BuildExecutorSchema {
|
|
|
10
10
|
/**
|
|
11
11
|
* Powerlines Configuration File
|
|
12
12
|
*
|
|
13
|
-
* The path to the Powerlines configuration file
|
|
13
|
+
* The path to the Powerlines configuration file. Alias for `configFile`.
|
|
14
|
+
*
|
|
15
|
+
* @default "{projectRoot}/powerlines.config.ts"
|
|
16
|
+
*
|
|
17
|
+
* @format path
|
|
18
|
+
*/
|
|
19
|
+
config?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Powerlines Configuration File
|
|
22
|
+
*
|
|
23
|
+
* The path to the Powerlines configuration file. Alias for `config`.
|
|
14
24
|
*
|
|
15
25
|
* @default "{projectRoot}/powerlines.config.ts"
|
|
16
26
|
*
|
|
17
27
|
* @format path
|
|
18
28
|
*/
|
|
19
29
|
configFile?: string;
|
|
20
|
-
|
|
21
30
|
/**
|
|
22
31
|
* Input Entry File(s)
|
|
23
32
|
*
|
|
@@ -27,7 +36,6 @@ interface BuildExecutorSchema {
|
|
|
27
36
|
* @format path
|
|
28
37
|
*/
|
|
29
38
|
input?: Array<string>;
|
|
30
|
-
|
|
31
39
|
/**
|
|
32
40
|
* TSConfig Path
|
|
33
41
|
*
|
|
@@ -38,7 +46,6 @@ interface BuildExecutorSchema {
|
|
|
38
46
|
* @format path
|
|
39
47
|
*/
|
|
40
48
|
tsconfig?: string;
|
|
41
|
-
|
|
42
49
|
/**
|
|
43
50
|
* Output Path
|
|
44
51
|
*
|
|
@@ -48,7 +55,15 @@ interface BuildExecutorSchema {
|
|
|
48
55
|
* @format path
|
|
49
56
|
*/
|
|
50
57
|
outputPath?: string;
|
|
51
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Copy Path
|
|
60
|
+
*
|
|
61
|
+
* A directory path to copy the build artifacts into
|
|
62
|
+
*
|
|
63
|
+
*
|
|
64
|
+
* @oneOf [object Object],[object Object]
|
|
65
|
+
*/
|
|
66
|
+
copyPath?: any;
|
|
52
67
|
/**
|
|
53
68
|
* Sourcemap
|
|
54
69
|
*
|
|
@@ -56,7 +71,6 @@ interface BuildExecutorSchema {
|
|
|
56
71
|
*
|
|
57
72
|
*/
|
|
58
73
|
sourceMap?: boolean;
|
|
59
|
-
|
|
60
74
|
/**
|
|
61
75
|
* Format
|
|
62
76
|
*
|
|
@@ -65,7 +79,6 @@ interface BuildExecutorSchema {
|
|
|
65
79
|
* @default ["cjs","esm"]
|
|
66
80
|
*/
|
|
67
81
|
format?: Array<string>;
|
|
68
|
-
|
|
69
82
|
/**
|
|
70
83
|
* Platform
|
|
71
84
|
*
|
|
@@ -76,7 +89,6 @@ interface BuildExecutorSchema {
|
|
|
76
89
|
* @enum neutral,node,browser
|
|
77
90
|
*/
|
|
78
91
|
platform?: string;
|
|
79
|
-
|
|
80
92
|
/**
|
|
81
93
|
* External
|
|
82
94
|
*
|
|
@@ -84,7 +96,6 @@ interface BuildExecutorSchema {
|
|
|
84
96
|
*
|
|
85
97
|
*/
|
|
86
98
|
external?: Array<any>;
|
|
87
|
-
|
|
88
99
|
/**
|
|
89
100
|
* No External
|
|
90
101
|
*
|
|
@@ -92,7 +103,6 @@ interface BuildExecutorSchema {
|
|
|
92
103
|
*
|
|
93
104
|
*/
|
|
94
105
|
noExternal?: Array<any>;
|
|
95
|
-
|
|
96
106
|
/**
|
|
97
107
|
* Skip Node Modules Bundle
|
|
98
108
|
*
|
|
@@ -100,7 +110,6 @@ interface BuildExecutorSchema {
|
|
|
100
110
|
*
|
|
101
111
|
*/
|
|
102
112
|
skipNodeModulesBundle?: boolean;
|
|
103
|
-
|
|
104
113
|
/**
|
|
105
114
|
* Mode
|
|
106
115
|
*
|
|
@@ -110,7 +119,6 @@ interface BuildExecutorSchema {
|
|
|
110
119
|
* @enum development,test,production
|
|
111
120
|
*/
|
|
112
121
|
mode?: string;
|
|
113
|
-
|
|
114
122
|
/**
|
|
115
123
|
* Log Level
|
|
116
124
|
*
|
|
@@ -120,7 +128,6 @@ interface BuildExecutorSchema {
|
|
|
120
128
|
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
121
129
|
*/
|
|
122
130
|
logLevel?: string;
|
|
123
|
-
|
|
124
131
|
/**
|
|
125
132
|
* Define
|
|
126
133
|
*
|
|
@@ -128,7 +135,19 @@ interface BuildExecutorSchema {
|
|
|
128
135
|
*
|
|
129
136
|
*/
|
|
130
137
|
define?: Record<string, string>;
|
|
131
|
-
|
|
138
|
+
/**
|
|
139
|
+
* Assets
|
|
140
|
+
*
|
|
141
|
+
* The `assets` values
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
assets?: Array<{
|
|
145
|
+
input?: string;
|
|
146
|
+
output?: string;
|
|
147
|
+
glob: string;
|
|
148
|
+
ignore?: string[];
|
|
149
|
+
dot?: boolean;
|
|
150
|
+
}>;
|
|
132
151
|
/**
|
|
133
152
|
* Auto Install
|
|
134
153
|
*
|
|
@@ -136,7 +155,6 @@ interface BuildExecutorSchema {
|
|
|
136
155
|
*
|
|
137
156
|
*/
|
|
138
157
|
autoInstall?: boolean;
|
|
139
|
-
|
|
140
158
|
/**
|
|
141
159
|
* Skip Cache
|
|
142
160
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.mts","names":["BuildExecutorSchema","Array","Record"
|
|
1
|
+
{"version":3,"file":"executor.d.mts","names":["BuildExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../src/executors/build/schema.d.ts","../../../src/executors/build/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;ACnBD;;;;;ED6BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;ACrBA;;;;ED6BAC,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;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC/IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,aAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAiBL,QAAA,EAAU,eAAA,CAAgB,mBAAA"}
|