@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
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
2
|
-
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
3
|
-
import { ShellShockAPI } from "@shell-shock/core";
|
|
4
|
-
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
5
|
-
import { InlineConfig, PowerlinesCommand } from "powerlines";
|
|
6
|
-
|
|
7
|
-
//#region src/base/base-executor.schema.d.ts
|
|
8
|
-
// Generated by powerlines
|
|
9
|
-
// Do not edit this file directly
|
|
10
|
-
interface BaseExecutorSchema {
|
|
11
|
-
/**
|
|
12
|
-
* Powerlines Configuration File
|
|
13
|
-
*
|
|
14
|
-
* The path to the Powerlines configuration file
|
|
15
|
-
*
|
|
16
|
-
* @default "{projectRoot}/powerlines.config.ts"
|
|
17
|
-
*
|
|
18
|
-
* @format path
|
|
19
|
-
*/
|
|
20
|
-
configFile?: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Input Entry File(s)
|
|
24
|
-
*
|
|
25
|
-
* The entry file(s) that serve as the input for the project
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* @format path
|
|
29
|
-
*/
|
|
30
|
-
input?: Array<string>;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* TSConfig Path
|
|
34
|
-
*
|
|
35
|
-
* The path to the tsconfig file
|
|
36
|
-
*
|
|
37
|
-
* @default "{projectRoot}/tsconfig.json"
|
|
38
|
-
*
|
|
39
|
-
* @format path
|
|
40
|
-
*/
|
|
41
|
-
tsconfig?: string;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Output Path
|
|
45
|
-
*
|
|
46
|
-
* The path to the output directory for the build artifacts
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* @format path
|
|
50
|
-
*/
|
|
51
|
-
outputPath?: string;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Sourcemap
|
|
55
|
-
*
|
|
56
|
-
* Generate a sourcemap
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
sourceMap?: boolean;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Format
|
|
63
|
-
*
|
|
64
|
-
* The format to build
|
|
65
|
-
*
|
|
66
|
-
* @default ["cjs","esm"]
|
|
67
|
-
*/
|
|
68
|
-
format?: Array<string>;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Platform
|
|
72
|
-
*
|
|
73
|
-
* The platform to build
|
|
74
|
-
*
|
|
75
|
-
* @default "neutral"
|
|
76
|
-
*
|
|
77
|
-
* @enum neutral,node,browser
|
|
78
|
-
*/
|
|
79
|
-
platform?: string;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* External
|
|
83
|
-
*
|
|
84
|
-
* The external dependencies
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
external?: Array<any>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* No External
|
|
91
|
-
*
|
|
92
|
-
* The dependencies that should not be treated as external
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
noExternal?: Array<any>;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Skip Node Modules Bundle
|
|
99
|
-
*
|
|
100
|
-
* Skip bundling node_modules during the build process (if required)
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
skipNodeModulesBundle?: boolean;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Mode
|
|
107
|
-
*
|
|
108
|
-
* The build mode
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* @enum development,test,production
|
|
112
|
-
*/
|
|
113
|
-
mode?: string;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Log Level
|
|
117
|
-
*
|
|
118
|
-
* The log level to use for the build process
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
122
|
-
*/
|
|
123
|
-
logLevel?: string;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Define
|
|
127
|
-
*
|
|
128
|
-
* The `define` values
|
|
129
|
-
*
|
|
130
|
-
*/
|
|
131
|
-
define?: Record<string, string>;
|
|
132
|
-
}
|
|
133
|
-
//#endregion
|
|
134
|
-
//#region src/base/base-executor.d.ts
|
|
135
|
-
type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
136
|
-
projectName: string;
|
|
137
|
-
command: TCommand;
|
|
138
|
-
options: TExecutorSchema;
|
|
139
|
-
inlineConfig: InlineConfig;
|
|
140
|
-
workspaceConfig: StormWorkspaceConfig;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.
|
|
144
|
-
*
|
|
145
|
-
* @remarks
|
|
146
|
-
* This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.
|
|
147
|
-
*
|
|
148
|
-
* @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
|
|
149
|
-
* @param executorFn - The function that will be executed when the command is run.
|
|
150
|
-
* @returns A Promise that resolves to the result of the executor function.
|
|
151
|
-
*/
|
|
152
|
-
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
|
-
//#endregion
|
|
154
|
-
export { withExecutor as n, ShellShockExecutorContext as t };
|
|
155
|
-
//# sourceMappingURL=base-executor-BkNTl-jk.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-BkNTl-jk.d.mts","names":["BaseExecutorSchema","Array","Record"],"sources":["../../src/base/base-executor.schema.d.ts","../../src/base/base-executor.ts"],"sourcesContent":["\n// Generated by powerlines\n// Do not edit this file directly\n\nexport interface BaseExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n}\n\n"],"mappings":";;;;;;;;;UAIiBA,kBAAAA;;;AAAjB;;;;;;;;;;AC0BA;;;;;;;EAMW,KAAA,CAAA,EDZFC,KCYE,CAAA,MAAA,CAAA;;EAEQ;;AAanB;;;;;;;EAMiD,QAAA,CAAA,EAAA,MAAA;;EACxC;;;;;;;;;;;;;;;;;;;;;;;;;WDICA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC;;;;KC/FE,2CACO,oBAAoB,2CACb,qBAAqB,sBAC3C;ED7BaF,WAAAA,EAAAA,MAAAA;EAoBRC,OAAAA,ECWE,QDXFA;EAsCCA,OAAAA,EC1BC,eD0BDA;EAmBEA,YAAAA,EC5CI,YD4CJA;EAQEA,eAAAA,ECnDK,oBDmDLA;CAoCJC;;;;;AC/FV;;;;;;AAKW,iBAgBK,YAhBL,CAAA,iBAiBQ,iBAjBR,GAiB4B,iBAjB5B,EAAA,wBAkBe,kBAlBf,GAkBoC,kBAlBpC,CAAA,CAAA,OAAA,EAoBA,QApBA,EAAA,UAAA,EAAA,CAAA,OAAA,EAsBE,yBAtBF,CAsB4B,QAtB5B,EAsBsC,eAtBtC,CAAA,EAAA,GAAA,EAuBF,aAvBE,EAAA,GAyBL,OAzBK,CAyBG,kBAzBH,GAAA,IAAA,GAAA,SAAA,CAAA,GA0BL,kBA1BK,GAAA,IAAA,GAAA,SAAA,CAAA,EA6BR,eA7BQ,CA6BQ,eA7BR,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-DUf5AdoE.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 outputPath:\n options.outputPath ??\n projectConfig.targets?.build?.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,YACE,QAAQ,cACR,cAAc,SAAS,OAAO,SAAS,YAC1C;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"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
2
|
-
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
3
|
-
import { ShellShockAPI } from "@shell-shock/core";
|
|
4
|
-
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
5
|
-
import { InlineConfig, PowerlinesCommand } from "powerlines";
|
|
6
|
-
|
|
7
|
-
//#region src/base/base-executor.schema.d.ts
|
|
8
|
-
// Generated by powerlines
|
|
9
|
-
// Do not edit this file directly
|
|
10
|
-
interface BaseExecutorSchema {
|
|
11
|
-
/**
|
|
12
|
-
* Powerlines Configuration File
|
|
13
|
-
*
|
|
14
|
-
* The path to the Powerlines configuration file
|
|
15
|
-
*
|
|
16
|
-
* @default "{projectRoot}/powerlines.config.ts"
|
|
17
|
-
*
|
|
18
|
-
* @format path
|
|
19
|
-
*/
|
|
20
|
-
configFile?: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Input Entry File(s)
|
|
24
|
-
*
|
|
25
|
-
* The entry file(s) that serve as the input for the project
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* @format path
|
|
29
|
-
*/
|
|
30
|
-
input?: Array<string>;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* TSConfig Path
|
|
34
|
-
*
|
|
35
|
-
* The path to the tsconfig file
|
|
36
|
-
*
|
|
37
|
-
* @default "{projectRoot}/tsconfig.json"
|
|
38
|
-
*
|
|
39
|
-
* @format path
|
|
40
|
-
*/
|
|
41
|
-
tsconfig?: string;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Output Path
|
|
45
|
-
*
|
|
46
|
-
* The path to the output directory for the build artifacts
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* @format path
|
|
50
|
-
*/
|
|
51
|
-
outputPath?: string;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Sourcemap
|
|
55
|
-
*
|
|
56
|
-
* Generate a sourcemap
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
sourceMap?: boolean;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Format
|
|
63
|
-
*
|
|
64
|
-
* The format to build
|
|
65
|
-
*
|
|
66
|
-
* @default ["cjs","esm"]
|
|
67
|
-
*/
|
|
68
|
-
format?: Array<string>;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Platform
|
|
72
|
-
*
|
|
73
|
-
* The platform to build
|
|
74
|
-
*
|
|
75
|
-
* @default "neutral"
|
|
76
|
-
*
|
|
77
|
-
* @enum neutral,node,browser
|
|
78
|
-
*/
|
|
79
|
-
platform?: string;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* External
|
|
83
|
-
*
|
|
84
|
-
* The external dependencies
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
external?: Array<any>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* No External
|
|
91
|
-
*
|
|
92
|
-
* The dependencies that should not be treated as external
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
noExternal?: Array<any>;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Skip Node Modules Bundle
|
|
99
|
-
*
|
|
100
|
-
* Skip bundling node_modules during the build process (if required)
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
skipNodeModulesBundle?: boolean;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Mode
|
|
107
|
-
*
|
|
108
|
-
* The build mode
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* @enum development,test,production
|
|
112
|
-
*/
|
|
113
|
-
mode?: string;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Log Level
|
|
117
|
-
*
|
|
118
|
-
* The log level to use for the build process
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
122
|
-
*/
|
|
123
|
-
logLevel?: string;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Define
|
|
127
|
-
*
|
|
128
|
-
* The `define` values
|
|
129
|
-
*
|
|
130
|
-
*/
|
|
131
|
-
define?: Record<string, string>;
|
|
132
|
-
}
|
|
133
|
-
//#endregion
|
|
134
|
-
//#region src/base/base-executor.d.ts
|
|
135
|
-
type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
136
|
-
projectName: string;
|
|
137
|
-
command: TCommand;
|
|
138
|
-
options: TExecutorSchema;
|
|
139
|
-
inlineConfig: InlineConfig;
|
|
140
|
-
workspaceConfig: StormWorkspaceConfig;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.
|
|
144
|
-
*
|
|
145
|
-
* @remarks
|
|
146
|
-
* This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.
|
|
147
|
-
*
|
|
148
|
-
* @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
|
|
149
|
-
* @param executorFn - The function that will be executed when the command is run.
|
|
150
|
-
* @returns A Promise that resolves to the result of the executor function.
|
|
151
|
-
*/
|
|
152
|
-
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
|
-
//#endregion
|
|
154
|
-
export { withExecutor as n, ShellShockExecutorContext as t };
|
|
155
|
-
//# sourceMappingURL=base-executor-FX7YJl7f.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-FX7YJl7f.d.ts","names":["BaseExecutorSchema","Array","Record"],"sources":["../../src/base/base-executor.schema.d.ts","../../src/base/base-executor.ts"],"sourcesContent":["\n// Generated by powerlines\n// Do not edit this file directly\n\nexport interface BaseExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n}\n\n"],"mappings":";;;;;;;;;UAIiBA,kBAAAA;;;AAAjB;;;;;;;;;;AC0BA;;;;;;;EAMW,KAAA,CAAA,EDZFC,KCYE,CAAA,MAAA,CAAA;;EAEQ;;AAanB;;;;;;;EAMiD,QAAA,CAAA,EAAA,MAAA;;EACxC;;;;;;;;;;;;;;;;;;;;;;;;;WDICA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC;;;;KC/FE,2CACO,oBAAoB,2CACb,qBAAqB,sBAC3C;ED7BaF,WAAAA,EAAAA,MAAAA;EAoBRC,OAAAA,ECWE,QDXFA;EAsCCA,OAAAA,EC1BC,eD0BDA;EAmBEA,YAAAA,EC5CI,YD4CJA;EAQEA,eAAAA,ECnDK,oBDmDLA;CAoCJC;;;;;AC/FV;;;;;;AAKW,iBAgBK,YAhBL,CAAA,iBAiBQ,iBAjBR,GAiB4B,iBAjB5B,EAAA,wBAkBe,kBAlBf,GAkBoC,kBAlBpC,CAAA,CAAA,OAAA,EAoBA,QApBA,EAAA,UAAA,EAAA,CAAA,OAAA,EAsBE,yBAtBF,CAsB4B,QAtB5B,EAsBsC,eAtBtC,CAAA,EAAA,GAAA,EAuBF,aAvBE,EAAA,GAyBL,OAzBK,CAyBG,kBAzBH,GAAA,IAAA,GAAA,SAAA,CAAA,GA0BL,kBA1BK,GAAA,IAAA,GAAA,SAAA,CAAA,EA6BR,eA7BQ,CA6BQ,eA7BR,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.mts","names":["BuildExecutorSchema","Array","Record"],"sources":["../../../../src/executors/build/schema.d.ts","../../../../src/executors/build/executor.ts"],"sourcesContent":["\n// Generated by powerlines\n// Do not edit this file directly\n\nexport interface BuildExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n\n /**\n * Auto Install\n * \n * Automatically install dependencies during prepare stage\n * \n */\n autoInstall?: boolean,\n\n /**\n * Skip Cache\n * \n * Skip the caching mechanism during the build process (if required)\n * \n */\n skipCache?: boolean,\n}\n\n"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;;;ECuBA;;;;;;;AAkBC;UDrBQC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCCA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC;;;;;;;;;;;;;;;;;;;;iBClGY,UAAA,UACX,mCAAmC,2BACvC,gBACJ,QAAQ;AD1BX,cC2CM,QD3CWF,EC2CD,eD3CoB,CC2CJ,mBD3CI,CAAA"}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { t as ShellShockExecutorContext } from "../../base-executor-FX7YJl7f.js";
|
|
2
|
-
import { PromiseExecutor } from "@nx/devkit";
|
|
3
|
-
import { ShellShockAPI } from "@shell-shock/core/api";
|
|
4
|
-
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
5
|
-
|
|
6
|
-
//#region src/executors/build/schema.d.ts
|
|
7
|
-
// Generated by powerlines
|
|
8
|
-
// Do not edit this file directly
|
|
9
|
-
interface BuildExecutorSchema {
|
|
10
|
-
/**
|
|
11
|
-
* Powerlines Configuration File
|
|
12
|
-
*
|
|
13
|
-
* The path to the Powerlines configuration file
|
|
14
|
-
*
|
|
15
|
-
* @default "{projectRoot}/powerlines.config.ts"
|
|
16
|
-
*
|
|
17
|
-
* @format path
|
|
18
|
-
*/
|
|
19
|
-
configFile?: string;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Input Entry File(s)
|
|
23
|
-
*
|
|
24
|
-
* The entry file(s) that serve as the input for the project
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* @format path
|
|
28
|
-
*/
|
|
29
|
-
input?: Array<string>;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* TSConfig Path
|
|
33
|
-
*
|
|
34
|
-
* The path to the tsconfig file
|
|
35
|
-
*
|
|
36
|
-
* @default "{projectRoot}/tsconfig.json"
|
|
37
|
-
*
|
|
38
|
-
* @format path
|
|
39
|
-
*/
|
|
40
|
-
tsconfig?: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Output Path
|
|
44
|
-
*
|
|
45
|
-
* The path to the output directory for the build artifacts
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* @format path
|
|
49
|
-
*/
|
|
50
|
-
outputPath?: string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Sourcemap
|
|
54
|
-
*
|
|
55
|
-
* Generate a sourcemap
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
sourceMap?: boolean;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Format
|
|
62
|
-
*
|
|
63
|
-
* The format to build
|
|
64
|
-
*
|
|
65
|
-
* @default ["cjs","esm"]
|
|
66
|
-
*/
|
|
67
|
-
format?: Array<string>;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Platform
|
|
71
|
-
*
|
|
72
|
-
* The platform to build
|
|
73
|
-
*
|
|
74
|
-
* @default "neutral"
|
|
75
|
-
*
|
|
76
|
-
* @enum neutral,node,browser
|
|
77
|
-
*/
|
|
78
|
-
platform?: string;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* External
|
|
82
|
-
*
|
|
83
|
-
* The external dependencies
|
|
84
|
-
*
|
|
85
|
-
*/
|
|
86
|
-
external?: Array<any>;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* No External
|
|
90
|
-
*
|
|
91
|
-
* The dependencies that should not be treated as external
|
|
92
|
-
*
|
|
93
|
-
*/
|
|
94
|
-
noExternal?: Array<any>;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Skip Node Modules Bundle
|
|
98
|
-
*
|
|
99
|
-
* Skip bundling node_modules during the build process (if required)
|
|
100
|
-
*
|
|
101
|
-
*/
|
|
102
|
-
skipNodeModulesBundle?: boolean;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Mode
|
|
106
|
-
*
|
|
107
|
-
* The build mode
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* @enum development,test,production
|
|
111
|
-
*/
|
|
112
|
-
mode?: string;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Log Level
|
|
116
|
-
*
|
|
117
|
-
* The log level to use for the build process
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
121
|
-
*/
|
|
122
|
-
logLevel?: string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Define
|
|
126
|
-
*
|
|
127
|
-
* The `define` values
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
define?: Record<string, string>;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Auto Install
|
|
134
|
-
*
|
|
135
|
-
* Automatically install dependencies during prepare stage
|
|
136
|
-
*
|
|
137
|
-
*/
|
|
138
|
-
autoInstall?: boolean;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Skip Cache
|
|
142
|
-
*
|
|
143
|
-
* Skip the caching mechanism during the build process (if required)
|
|
144
|
-
*
|
|
145
|
-
*/
|
|
146
|
-
skipCache?: boolean;
|
|
147
|
-
}
|
|
148
|
-
//#endregion
|
|
149
|
-
//#region src/executors/build/executor.d.ts
|
|
150
|
-
declare function executorFn(context: ShellShockExecutorContext<"build", BuildExecutorSchema>, api: ShellShockAPI): Promise<BaseExecutorResult>;
|
|
151
|
-
declare const executor: PromiseExecutor<BuildExecutorSchema>;
|
|
152
|
-
//#endregion
|
|
153
|
-
export { executor as default, executorFn };
|
|
154
|
-
//# sourceMappingURL=executor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","names":["BuildExecutorSchema","Array","Record"],"sources":["../../../../src/executors/build/schema.d.ts","../../../../src/executors/build/executor.ts"],"sourcesContent":["\n// Generated by powerlines\n// Do not edit this file directly\n\nexport interface BuildExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n\n /**\n * Auto Install\n * \n * Automatically install dependencies during prepare stage\n * \n */\n autoInstall?: boolean,\n\n /**\n * Skip Cache\n * \n * Skip the caching mechanism during the build process (if required)\n * \n */\n skipCache?: boolean,\n}\n\n"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;;;ECuBA;;;;;;;AAkBC;UDrBQC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCCA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC;;;;;;;;;;;;;;;;;;;;iBClGY,UAAA,UACX,mCAAmC,2BACvC,gBACJ,QAAQ;AD1BX,cC2CM,QD3CWF,EC2CD,eD3CoB,CC2CJ,mBD3CI,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_base_executor = require('../../base-executor-CkaF97Xd.js');
|
|
3
|
-
let defu = require("defu");
|
|
4
|
-
defu = require_base_executor.__toESM(defu);
|
|
5
|
-
|
|
6
|
-
//#region src/executors/build/executor.ts
|
|
7
|
-
async function executorFn(context, api) {
|
|
8
|
-
await api.build((0, defu.default)({
|
|
9
|
-
command: "build",
|
|
10
|
-
skipCache: context.options.skipCache,
|
|
11
|
-
autoInstall: context.options.autoInstall
|
|
12
|
-
}, context.inlineConfig));
|
|
13
|
-
return { success: true };
|
|
14
|
-
}
|
|
15
|
-
const executor = require_base_executor.withExecutor("build", executorFn);
|
|
16
|
-
var executor_default = executor;
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
exports.default = executor_default;
|
|
20
|
-
exports.executorFn = executorFn;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { t as withExecutor } from "../../base-executor-DUf5AdoE.mjs";
|
|
2
|
-
import defu from "defu";
|
|
3
|
-
|
|
4
|
-
//#region src/executors/build/executor.ts
|
|
5
|
-
async function executorFn(context, api) {
|
|
6
|
-
await api.build(defu({
|
|
7
|
-
command: "build",
|
|
8
|
-
skipCache: context.options.skipCache,
|
|
9
|
-
autoInstall: context.options.autoInstall
|
|
10
|
-
}, context.inlineConfig));
|
|
11
|
-
return { success: true };
|
|
12
|
-
}
|
|
13
|
-
const executor = withExecutor("build", executorFn);
|
|
14
|
-
var executor_default = executor;
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
export { executor_default as default, executorFn };
|
|
18
|
-
//# sourceMappingURL=executor.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.mjs","names":["executor: PromiseExecutor<BuildExecutorSchema>"],"sources":["../../../../src/executors/build/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 { PromiseExecutor } from \"@nx/devkit\";\nimport type { ShellShockAPI } from \"@shell-shock/core/api\";\nimport type { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport defu from \"defu\";\nimport type { BuildInlineConfig } from \"powerlines\";\nimport type { ShellShockExecutorContext } from \"../../base/base-executor\";\nimport { withExecutor } from \"../../base/base-executor\";\nimport type { BuildExecutorSchema } from \"./schema\";\n\nexport async function executorFn(\n context: ShellShockExecutorContext<\"build\", BuildExecutorSchema>,\n api: ShellShockAPI\n): Promise<BaseExecutorResult> {\n await api.build(\n defu(\n {\n command: \"build\",\n skipCache: context.options.skipCache,\n autoInstall: context.options.autoInstall\n },\n context.inlineConfig\n ) as BuildInlineConfig\n );\n\n return {\n success: true\n };\n}\n\nconst executor: PromiseExecutor<BuildExecutorSchema> = withExecutor<\n \"build\",\n BuildExecutorSchema\n>(\"build\", executorFn);\n\nexport default executor;\n"],"mappings":";;;;AA2BA,eAAsB,WACpB,SACA,KAC6B;AAC7B,OAAM,IAAI,MACR,KACE;EACE,SAAS;EACT,WAAW,QAAQ,QAAQ;EAC3B,aAAa,QAAQ,QAAQ;EAC9B,EACD,QAAQ,aACT,CACF;AAED,QAAO,EACL,SAAS,MACV;;AAGH,MAAMA,WAAiD,aAGrD,SAAS,WAAW;AAEtB,uBAAe"}
|