@shell-shock/nx 0.0.43 → 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 +36 -0
- package/README.md +1 -1
- package/dist/{src/executors/lint/schema.d.ts → base/base-executor.schema.d.ts} +26 -13
- package/dist/{src/base → base}/base-executor.schema.json +40 -2
- package/dist/{base-executor-Tb7NcSc4.mjs → base-executor-DojAZA0w.mjs} +2 -2
- package/dist/base-executor-DojAZA0w.mjs.map +1 -0
- package/dist/{src/base-executor-B_1n4Nst.js → base-executor-KUL9jD5R.js} +1 -1
- package/dist/chunk-BCHjMept.mjs +3 -0
- package/dist/executors/build/executor.d.mts +34 -6
- package/dist/executors/build/executor.d.mts.map +1 -1
- package/dist/executors/build/executor.d.ts +34 -7
- package/dist/executors/build/executor.d.ts.map +1 -1
- package/dist/executors/build/executor.js +2 -4
- package/dist/executors/build/executor.mjs +2 -2
- package/dist/executors/build/executor.mjs.map +1 -1
- package/dist/executors/build/schema.d.ts +30 -1
- package/dist/executors/build/schema.json +40 -2
- package/dist/executors/clean/executor.d.mts +34 -6
- package/dist/executors/clean/executor.d.mts.map +1 -1
- package/dist/executors/clean/executor.d.ts +34 -7
- package/dist/executors/clean/executor.d.ts.map +1 -1
- package/dist/executors/clean/executor.js +2 -4
- package/dist/executors/clean/executor.mjs +2 -2
- package/dist/executors/clean/executor.mjs.map +1 -1
- package/dist/executors/clean/schema.d.ts +30 -1
- package/dist/executors/clean/schema.json +40 -2
- package/dist/executors/docs/executor.d.mts +34 -6
- package/dist/executors/docs/executor.d.mts.map +1 -1
- package/dist/executors/docs/executor.d.ts +34 -7
- package/dist/executors/docs/executor.d.ts.map +1 -1
- package/dist/executors/docs/executor.js +2 -4
- package/dist/executors/docs/executor.mjs +2 -2
- package/dist/executors/docs/executor.mjs.map +1 -1
- package/dist/executors/docs/schema.d.ts +30 -1
- package/dist/executors/docs/schema.json +40 -2
- package/dist/executors/lint/executor.d.mts +34 -6
- package/dist/executors/lint/executor.d.mts.map +1 -1
- package/dist/executors/lint/executor.d.ts +34 -7
- package/dist/executors/lint/executor.d.ts.map +1 -1
- package/dist/executors/lint/executor.js +2 -4
- package/dist/executors/lint/executor.mjs +2 -2
- package/dist/executors/lint/executor.mjs.map +1 -1
- package/dist/executors/lint/schema.d.ts +30 -1
- package/dist/executors/lint/schema.json +40 -2
- package/dist/executors/prepare/executor.d.mts +34 -6
- package/dist/executors/prepare/executor.d.mts.map +1 -1
- package/dist/executors/prepare/executor.d.ts +34 -7
- package/dist/executors/prepare/executor.d.ts.map +1 -1
- package/dist/executors/prepare/executor.js +2 -4
- package/dist/executors/prepare/executor.mjs +2 -2
- package/dist/executors/prepare/executor.mjs.map +1 -1
- package/dist/executors/prepare/schema.d.ts +30 -1
- package/dist/executors/prepare/schema.json +40 -2
- 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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- 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/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 +49 -57
- package/dist/base-executor-5IKYZdSK.d.mts +0 -143
- package/dist/base-executor-5IKYZdSK.d.mts.map +0 -1
- package/dist/base-executor-B_1n4Nst.js +0 -104
- package/dist/base-executor-D8wAP52R.d.ts +0 -143
- package/dist/base-executor-D8wAP52R.d.ts.map +0 -1
- package/dist/base-executor-Tb7NcSc4.mjs.map +0 -1
- package/dist/src/base/base-executor.schema.d.ts +0 -128
- package/dist/src/base-executor-5IKYZdSK.d.mts +0 -143
- package/dist/src/base-executor-5IKYZdSK.d.mts.map +0 -1
- package/dist/src/base-executor-D8wAP52R.d.ts +0 -143
- package/dist/src/base-executor-D8wAP52R.d.ts.map +0 -1
- package/dist/src/base-executor-Tb7NcSc4.mjs +0 -66
- package/dist/src/base-executor-Tb7NcSc4.mjs.map +0 -1
- package/dist/src/executors/build/executor.d.mts +0 -140
- package/dist/src/executors/build/executor.d.mts.map +0 -1
- package/dist/src/executors/build/executor.d.ts +0 -140
- package/dist/src/executors/build/executor.d.ts.map +0 -1
- package/dist/src/executors/build/executor.js +0 -19
- package/dist/src/executors/build/executor.mjs +0 -17
- 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 +0 -140
- package/dist/src/executors/clean/executor.d.mts.map +0 -1
- package/dist/src/executors/clean/executor.d.ts +0 -140
- package/dist/src/executors/clean/executor.d.ts.map +0 -1
- package/dist/src/executors/clean/executor.js +0 -14
- package/dist/src/executors/clean/executor.mjs +0 -13
- 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 +0 -140
- package/dist/src/executors/docs/executor.d.mts.map +0 -1
- package/dist/src/executors/docs/executor.d.ts +0 -140
- package/dist/src/executors/docs/executor.d.ts.map +0 -1
- package/dist/src/executors/docs/executor.js +0 -15
- package/dist/src/executors/docs/executor.mjs +0 -13
- 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 +0 -140
- package/dist/src/executors/lint/executor.d.mts.map +0 -1
- package/dist/src/executors/lint/executor.d.ts +0 -140
- package/dist/src/executors/lint/executor.d.ts.map +0 -1
- package/dist/src/executors/lint/executor.js +0 -15
- package/dist/src/executors/lint/executor.mjs +0 -13
- 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 +0 -140
- package/dist/src/executors/prepare/executor.d.mts.map +0 -1
- package/dist/src/executors/prepare/executor.d.ts +0 -140
- package/dist/src/executors/prepare/executor.d.ts.map +0 -1
- package/dist/src/executors/prepare/executor.js +0 -19
- package/dist/src/executors/prepare/executor.mjs +0 -17
- 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 -2
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.js +0 -19
- package/dist/src/index.mjs +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 -9
- package/dist/src/plugin/index.mjs +0 -8
- package/dist/src/plugin/index.mjs.map +0 -1
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.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"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_base_executor = require('./base-executor-
|
|
2
|
+
const require_base_executor = require('./base-executor-KUL9jD5R.js');
|
|
3
3
|
let _powerlines_nx_base_base_executor_untyped = require("@powerlines/nx/base/base-executor.untyped");
|
|
4
4
|
_powerlines_nx_base_base_executor_untyped = require_base_executor.__toESM(_powerlines_nx_base_base_executor_untyped);
|
|
5
5
|
let untyped = require("untyped");
|
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/base/base-executor.untyped.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport baseExecutorSchema from \"@powerlines/nx/base/base-executor.untyped\";\nimport { defineUntypedSchema } from \"untyped\";\n\nexport default defineUntypedSchema({\n ...baseExecutorSchema,\n $schema: {\n id: \"BaseExecutorSchema\",\n title: \"Base Executor\",\n description:\n \"A shared/base schema type definition for Shell Shock executors\",\n required: []\n }\n});\n"],"mappings":";;;;;AAqBA,oCAAe,oBAAoB;CACjC,GAAG;CACH,SAAS;EACP,IAAI;EACJ,OAAO;EACP,aACE;EACF,UAAU,EAAE;EACb;CACF,CAAC"}
|
package/dist/plugin/index.d.mts
CHANGED
|
@@ -1,6 +1,247 @@
|
|
|
1
|
-
import { NxPluginOptions } from "@powerlines/nx";
|
|
2
1
|
import { CreateNodesV2 } from "@nx/devkit";
|
|
3
2
|
|
|
3
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.11.296_55935fe12b20e8a57a8bedd62bd3dd6b/node_modules/@powerlines/nx/dist/src/types/plugin.d.mts
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
interface NxPluginOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Configuration options for the clean target added by the Nx plugin
|
|
8
|
+
*/
|
|
9
|
+
clean?: false | {
|
|
10
|
+
/**
|
|
11
|
+
* The name of the clean target to use when cleaning the project
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue "clean"
|
|
14
|
+
*/
|
|
15
|
+
targetName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The name of the clean configuration to use when cleaning the project
|
|
18
|
+
*
|
|
19
|
+
* @defaultValue "production"
|
|
20
|
+
*/
|
|
21
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
22
|
+
/**
|
|
23
|
+
* An array specifying any other target identifiers the clean target depends on
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue ["^clean"]
|
|
26
|
+
*/
|
|
27
|
+
dependsOn?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* An array specifying any input files or globs to consider when determining if the clean target needs to be re-run
|
|
30
|
+
*/
|
|
31
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
32
|
+
/**
|
|
33
|
+
* An array specifying the output files or globs generated by the clean target
|
|
34
|
+
*/
|
|
35
|
+
outputs?: string[];
|
|
36
|
+
/**
|
|
37
|
+
* The executor to use for the clean target
|
|
38
|
+
*
|
|
39
|
+
* @defaultValue "\@powerlines/nx:clean"
|
|
40
|
+
*/
|
|
41
|
+
executor?: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Configuration options for the prepare target added by the Nx plugin
|
|
45
|
+
*/
|
|
46
|
+
prepare?: false | {
|
|
47
|
+
/**
|
|
48
|
+
* The name of the prepare target to use when preparing the project
|
|
49
|
+
*
|
|
50
|
+
* @defaultValue "prepare"
|
|
51
|
+
*/
|
|
52
|
+
targetName?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The name of the prepare configuration to use when preparing the project
|
|
55
|
+
*
|
|
56
|
+
* @defaultValue "production"
|
|
57
|
+
*/
|
|
58
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
59
|
+
/**
|
|
60
|
+
* An array specifying any other target identifiers the prepare target depends on
|
|
61
|
+
*
|
|
62
|
+
* @defaultValue ["^build", "clean"]
|
|
63
|
+
*/
|
|
64
|
+
dependsOn?: string[];
|
|
65
|
+
/**
|
|
66
|
+
* An array specifying any input files or globs to consider when determining if the prepare target needs to be re-run
|
|
67
|
+
*/
|
|
68
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
69
|
+
/**
|
|
70
|
+
* An array specifying the output files or globs generated by the prepare target
|
|
71
|
+
*/
|
|
72
|
+
outputs?: string[];
|
|
73
|
+
/**
|
|
74
|
+
* The executor to use for the prepare target
|
|
75
|
+
*
|
|
76
|
+
* @defaultValue "\@powerlines/nx:prepare"
|
|
77
|
+
*/
|
|
78
|
+
executor?: string;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Configuration options for the lint target added by the Nx plugin
|
|
82
|
+
*/
|
|
83
|
+
lint?: false | {
|
|
84
|
+
/**
|
|
85
|
+
* The name of the lint target to use when linting the project
|
|
86
|
+
*
|
|
87
|
+
* @defaultValue "lint"
|
|
88
|
+
*/
|
|
89
|
+
targetName?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The name of the lint configuration to use when linting the project
|
|
92
|
+
*
|
|
93
|
+
* @defaultValue "production"
|
|
94
|
+
*/
|
|
95
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
96
|
+
/**
|
|
97
|
+
* An array specifying any other target identifiers the lint target depends on
|
|
98
|
+
*
|
|
99
|
+
* @defaultValue ["^lint"]
|
|
100
|
+
*/
|
|
101
|
+
dependsOn?: string[];
|
|
102
|
+
/**
|
|
103
|
+
* An array specifying any input files or globs to consider when determining if the lint target needs to be re-run
|
|
104
|
+
*/
|
|
105
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
106
|
+
/**
|
|
107
|
+
* An array specifying the output files or globs generated by the lint target
|
|
108
|
+
*/
|
|
109
|
+
outputs?: string[];
|
|
110
|
+
/**
|
|
111
|
+
* The executor to use for the lint target
|
|
112
|
+
*
|
|
113
|
+
* @defaultValue "\@powerlines/nx:lint"
|
|
114
|
+
*/
|
|
115
|
+
executor?: string;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Configuration options for the build target added by the Nx plugin
|
|
119
|
+
*/
|
|
120
|
+
build?: false | {
|
|
121
|
+
/**
|
|
122
|
+
* The name of the build target to use when building the project
|
|
123
|
+
*
|
|
124
|
+
* @defaultValue "build"
|
|
125
|
+
*/
|
|
126
|
+
targetName?: string;
|
|
127
|
+
/**
|
|
128
|
+
* The name of the build configuration to use when building the project
|
|
129
|
+
*
|
|
130
|
+
* @defaultValue "production"
|
|
131
|
+
*/
|
|
132
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
133
|
+
/**
|
|
134
|
+
* An array specifying any other target identifiers the build target depends on
|
|
135
|
+
*
|
|
136
|
+
* @defaultValue ["^build"]
|
|
137
|
+
*/
|
|
138
|
+
dependsOn?: string[];
|
|
139
|
+
/**
|
|
140
|
+
* An array specifying any input files or globs to consider when determining if the build target needs to be re-run
|
|
141
|
+
*/
|
|
142
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
143
|
+
/**
|
|
144
|
+
* An array specifying the output files or globs generated by the build target
|
|
145
|
+
*/
|
|
146
|
+
outputs?: string[];
|
|
147
|
+
/**
|
|
148
|
+
* The executor to use for the build target
|
|
149
|
+
*
|
|
150
|
+
* @defaultValue "\@powerlines/nx:build"
|
|
151
|
+
*/
|
|
152
|
+
executor?: string;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Configuration options for the docs target added by the Nx plugin
|
|
156
|
+
*/
|
|
157
|
+
docs?: false | {
|
|
158
|
+
/**
|
|
159
|
+
* The name of the docs target to use when generating documentation for the project
|
|
160
|
+
*
|
|
161
|
+
* @defaultValue "docs"
|
|
162
|
+
*/
|
|
163
|
+
targetName?: string;
|
|
164
|
+
/**
|
|
165
|
+
* The name of the docs configuration to use when generating documentation for the project
|
|
166
|
+
*
|
|
167
|
+
* @defaultValue "production"
|
|
168
|
+
*/
|
|
169
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
170
|
+
/**
|
|
171
|
+
* An array specifying any other target identifiers the docs target depends on
|
|
172
|
+
*
|
|
173
|
+
* @defaultValue ["^docs", "build"]
|
|
174
|
+
*/
|
|
175
|
+
dependsOn?: string[];
|
|
176
|
+
/**
|
|
177
|
+
* An array specifying any input files or globs to consider when determining if the docs target needs to be re-run
|
|
178
|
+
*/
|
|
179
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
180
|
+
/**
|
|
181
|
+
* An array specifying the output files or globs generated by the docs target
|
|
182
|
+
*/
|
|
183
|
+
outputs?: string[];
|
|
184
|
+
/**
|
|
185
|
+
* The executor to use for the docs target
|
|
186
|
+
*
|
|
187
|
+
* @defaultValue "\@powerlines/nx:docs"
|
|
188
|
+
*/
|
|
189
|
+
executor?: string;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Configuration options for the deploy target added by the Nx plugin
|
|
193
|
+
*/
|
|
194
|
+
deploy?: false | {
|
|
195
|
+
/**
|
|
196
|
+
* The name of the deploy target to use when deploying the project
|
|
197
|
+
*
|
|
198
|
+
* @defaultValue "deploy"
|
|
199
|
+
*/
|
|
200
|
+
targetName?: string;
|
|
201
|
+
/**
|
|
202
|
+
* The name of the deploy configuration to use when deploying the project
|
|
203
|
+
*
|
|
204
|
+
* @defaultValue "production"
|
|
205
|
+
*/
|
|
206
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
207
|
+
/**
|
|
208
|
+
* An array specifying any other target identifiers the deploy target depends on
|
|
209
|
+
*
|
|
210
|
+
* @defaultValue ["^deploy", "build"]
|
|
211
|
+
*/
|
|
212
|
+
dependsOn?: string[];
|
|
213
|
+
/**
|
|
214
|
+
* An array specifying any input files or globs to consider when determining if the deploy target needs to be re-run
|
|
215
|
+
*/
|
|
216
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "rust" | "typescript";
|
|
217
|
+
/**
|
|
218
|
+
* An array specifying the output files or globs generated by the deploy target
|
|
219
|
+
*/
|
|
220
|
+
outputs?: string[];
|
|
221
|
+
/**
|
|
222
|
+
* The executor to use for the deploy target
|
|
223
|
+
*
|
|
224
|
+
* @defaultValue "\@powerlines/nx:deploy"
|
|
225
|
+
*/
|
|
226
|
+
executor?: string;
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* Whether to enable verbose logging for the Nx plugin.
|
|
230
|
+
*
|
|
231
|
+
* @remarks
|
|
232
|
+
* If enabled, the plugin will log more detailed information about its operations, which can be useful for debugging and troubleshooting.
|
|
233
|
+
*
|
|
234
|
+
* @defaultValue false
|
|
235
|
+
*/
|
|
236
|
+
verboseOutput?: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* Enable resolver debug logging for the plugin
|
|
239
|
+
*
|
|
240
|
+
* @defaultValue false
|
|
241
|
+
*/
|
|
242
|
+
debug?: boolean;
|
|
243
|
+
} //#endregion
|
|
244
|
+
//#endregion
|
|
4
245
|
//#region src/plugin/index.d.ts
|
|
5
246
|
declare const createNodesV2: CreateNodesV2<NxPluginOptions>;
|
|
6
247
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["NxPluginOptions","clean","targetName","defaultConfiguration","dependsOn","inputs","outputs","executor","prepare","lint","build","docs","deploy","verboseOutput","debug"],"sources":["../../../../node_modules/.pnpm/@powerlines+nx@0.11.296_55935fe12b20e8a57a8bedd62bd3dd6b/node_modules/@powerlines/nx/dist/src/types/plugin.d.mts","../../src/plugin/index.ts"],"x_google_ignoreList":[0],"mappings":";;;;UACUA,eAAAA;;;;EAIRC,KAAAA;;;;;;IAMEC,UAAAA;IAgBAG;;;;;IAVAF,oBAAAA;IA2CAC;;;;;IArCAA,SAAAA;IAoEAD;;;IAhEAE,MAAAA;IAoFAE;;;IAhFAD,OAAAA;IAuGAF;;;;;IAjGAG,QAAAA;EAAAA;EAsIAH;;;EAjIFI,OAAAA;IAoJAI;;;;;IA9IEV,UAAAA;IA8KAK;;;;;IAxKAJ,oBAAAA;;;AChCJ;;;IDsCIC,SAAAA;ICtCqD;;;ID0CrDC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFE,IAAAA;;;;;;IAMEP,UAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFG,KAAAA;;;;;;IAMER,UAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFI,IAAAA;;;;;;IAMET,UAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFK,MAAAA;;;;;;IAMEV,UAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;;;;;;EAUFM,aAAAA;;;;;;EAMAC,KAAAA;AAAAA;;;cCxNW,aAAA,EAAe,aAAA,CAAc,eAAA"}
|