@shell-shock/nx 0.0.36 → 0.0.39
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 +18 -0
- package/dist/base-executor-BkNTl-jk.d.mts +155 -0
- package/dist/base-executor-BkNTl-jk.d.mts.map +1 -0
- package/dist/{base-executor-BEOdY15z.cjs → base-executor-CkaF97Xd.js} +5 -8
- package/dist/{src/base-executor-WGeWcQ9x.mjs → base-executor-DUf5AdoE.mjs} +4 -6
- package/dist/base-executor-DUf5AdoE.mjs.map +1 -0
- package/dist/base-executor-FX7YJl7f.d.ts +155 -0
- package/dist/base-executor-FX7YJl7f.d.ts.map +1 -0
- package/dist/executors/build/executor.d.mts +154 -3
- package/dist/executors/build/executor.d.mts.map +1 -0
- package/dist/executors/build/executor.d.ts +154 -0
- package/dist/executors/build/executor.d.ts.map +1 -0
- package/dist/executors/build/executor.js +20 -0
- package/dist/executors/build/executor.mjs +17 -3
- package/dist/executors/build/executor.mjs.map +1 -0
- package/dist/executors/build/schema.d.ts +144 -0
- package/dist/executors/build/schema.json +163 -0
- package/dist/executors/clean/executor.d.mts +154 -3
- package/dist/executors/clean/executor.d.mts.map +1 -0
- package/dist/executors/clean/executor.d.ts +154 -0
- package/dist/executors/clean/executor.d.ts.map +1 -0
- package/dist/executors/clean/executor.js +15 -0
- package/dist/executors/clean/executor.mjs +13 -3
- package/dist/executors/clean/executor.mjs.map +1 -0
- package/dist/executors/clean/schema.d.ts +144 -0
- package/dist/executors/clean/schema.json +163 -0
- package/dist/executors/docs/executor.d.mts +154 -3
- package/dist/executors/docs/executor.d.mts.map +1 -0
- package/dist/executors/docs/executor.d.ts +154 -0
- package/dist/executors/docs/executor.d.ts.map +1 -0
- package/dist/executors/docs/executor.js +16 -0
- package/dist/executors/docs/executor.mjs +13 -3
- package/dist/executors/docs/executor.mjs.map +1 -0
- package/dist/executors/docs/schema.d.ts +144 -0
- package/dist/executors/docs/schema.json +163 -0
- package/dist/executors/lint/executor.d.mts +154 -3
- package/dist/executors/lint/executor.d.mts.map +1 -0
- package/dist/executors/lint/executor.d.ts +154 -0
- package/dist/executors/lint/executor.d.ts.map +1 -0
- package/dist/executors/lint/executor.js +16 -0
- package/dist/executors/lint/executor.mjs +13 -3
- package/dist/executors/lint/executor.mjs.map +1 -0
- package/dist/executors/lint/schema.d.ts +144 -0
- package/dist/executors/lint/schema.json +163 -0
- package/dist/executors/prepare/executor.d.mts +154 -3
- package/dist/executors/prepare/executor.d.mts.map +1 -0
- package/dist/executors/prepare/executor.d.ts +154 -0
- package/dist/executors/prepare/executor.d.ts.map +1 -0
- package/dist/executors/prepare/executor.js +20 -0
- package/dist/executors/prepare/executor.mjs +17 -3
- package/dist/executors/prepare/executor.mjs.map +1 -0
- package/dist/executors/prepare/schema.d.ts +144 -0
- package/dist/executors/prepare/schema.json +163 -0
- package/dist/index.d.mts +3 -9
- package/dist/index.d.ts +2 -0
- package/dist/index.js +18 -0
- package/dist/index.mjs +17 -9
- package/dist/index.mjs.map +1 -0
- package/dist/plugin/index.d.mts +8 -2
- package/dist/plugin/index.d.mts.map +1 -0
- package/dist/{index-BbciquDs.d.mts → plugin/index.d.ts} +3 -3
- package/dist/plugin/index.d.ts.map +1 -0
- package/dist/plugin/index.js +8 -0
- package/dist/plugin/index.mjs +7 -2
- package/dist/plugin/index.mjs.map +1 -0
- package/dist/src/base/base-executor.schema.d.ts +73 -19
- package/dist/src/base/base-executor.schema.json +102 -26
- package/dist/src/base-executor-BkNTl-jk.d.mts +155 -0
- package/dist/src/base-executor-BkNTl-jk.d.mts.map +1 -0
- package/dist/src/{base-executor-BEOdY15z.cjs → base-executor-CkaF97Xd.js} +5 -8
- package/dist/{base-executor-WGeWcQ9x.mjs → src/base-executor-DUf5AdoE.mjs} +4 -6
- package/dist/src/base-executor-DUf5AdoE.mjs.map +1 -0
- package/dist/src/base-executor-FX7YJl7f.d.ts +155 -0
- package/dist/src/base-executor-FX7YJl7f.d.ts.map +1 -0
- package/dist/src/executors/build/executor.d.mts +154 -3
- package/dist/src/executors/build/executor.d.mts.map +1 -0
- package/dist/src/executors/build/executor.d.ts +154 -0
- package/dist/src/executors/build/executor.d.ts.map +1 -0
- package/dist/src/executors/build/executor.js +20 -0
- package/dist/src/executors/build/executor.mjs +17 -3
- package/dist/src/executors/build/executor.mjs.map +1 -0
- package/dist/src/executors/build/schema.d.ts +83 -23
- package/dist/src/executors/build/schema.json +112 -43
- package/dist/src/executors/clean/executor.d.mts +154 -3
- package/dist/src/executors/clean/executor.d.mts.map +1 -0
- package/dist/src/executors/clean/executor.d.ts +154 -0
- package/dist/src/executors/clean/executor.d.ts.map +1 -0
- package/dist/src/executors/clean/executor.js +15 -0
- package/dist/src/executors/clean/executor.mjs +13 -3
- package/dist/src/executors/clean/executor.mjs.map +1 -0
- package/dist/src/executors/clean/schema.d.ts +83 -23
- package/dist/src/executors/clean/schema.json +112 -43
- package/dist/src/executors/docs/executor.d.mts +154 -3
- package/dist/src/executors/docs/executor.d.mts.map +1 -0
- package/dist/src/executors/docs/executor.d.ts +154 -0
- package/dist/src/executors/docs/executor.d.ts.map +1 -0
- package/dist/src/executors/docs/executor.js +16 -0
- package/dist/src/executors/docs/executor.mjs +13 -3
- package/dist/src/executors/docs/executor.mjs.map +1 -0
- package/dist/src/executors/docs/schema.d.ts +83 -23
- package/dist/src/executors/docs/schema.json +112 -43
- package/dist/src/executors/lint/executor.d.mts +154 -3
- package/dist/src/executors/lint/executor.d.mts.map +1 -0
- package/dist/src/executors/lint/executor.d.ts +154 -0
- package/dist/src/executors/lint/executor.d.ts.map +1 -0
- package/dist/src/executors/lint/executor.js +16 -0
- package/dist/src/executors/lint/executor.mjs +13 -3
- package/dist/src/executors/lint/executor.mjs.map +1 -0
- package/dist/src/executors/lint/schema.d.ts +83 -23
- package/dist/src/executors/lint/schema.json +112 -43
- package/dist/src/executors/prepare/executor.d.mts +154 -3
- package/dist/src/executors/prepare/executor.d.mts.map +1 -0
- package/dist/src/executors/prepare/executor.d.ts +154 -0
- package/dist/src/executors/prepare/executor.d.ts.map +1 -0
- package/dist/src/executors/prepare/executor.js +20 -0
- package/dist/src/executors/prepare/executor.mjs +17 -3
- package/dist/src/executors/prepare/executor.mjs.map +1 -0
- package/dist/src/executors/prepare/schema.d.ts +83 -23
- package/dist/src/executors/prepare/schema.json +112 -43
- package/dist/src/index.d.mts +3 -9
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +18 -0
- package/dist/src/index.mjs +17 -9
- package/dist/src/index.mjs.map +1 -0
- package/dist/src/plugin/index.d.mts +8 -2
- package/dist/src/plugin/index.d.mts.map +1 -0
- package/dist/{index-COXDf824.d.cts → src/plugin/index.d.ts} +3 -3
- package/dist/src/plugin/index.d.ts.map +1 -0
- package/dist/src/plugin/index.js +8 -0
- package/dist/src/plugin/index.mjs +7 -2
- package/dist/src/plugin/index.mjs.map +1 -0
- package/docs/api/base-executor.schema.md +70 -19
- package/docs/api/build/schema.md +83 -24
- package/docs/api/clean/schema.md +83 -24
- package/docs/api/docs/schema.md +83 -24
- package/docs/api/lint/schema.md +83 -24
- package/docs/api/prepare/schema.md +83 -24
- package/package.json +37 -50
- package/dist/base-executor-BEOdY15z.cjs.map +0 -1
- package/dist/base-executor-C986ypeP.d.mts +0 -89
- package/dist/base-executor-C986ypeP.d.mts.map +0 -1
- package/dist/base-executor-Dm4OV5-b.d.cts +0 -89
- package/dist/base-executor-Dm4OV5-b.d.cts.map +0 -1
- package/dist/base-executor-WGeWcQ9x.mjs.map +0 -1
- package/dist/executor-4-xDAK3Q.d.cts +0 -94
- package/dist/executor-4-xDAK3Q.d.cts.map +0 -1
- package/dist/executor-96dASirt.d.cts +0 -94
- package/dist/executor-96dASirt.d.cts.map +0 -1
- package/dist/executor-BAfZ_2mt.mjs +0 -24
- package/dist/executor-BAfZ_2mt.mjs.map +0 -1
- package/dist/executor-BB0fklpZ.mjs +0 -24
- package/dist/executor-BB0fklpZ.mjs.map +0 -1
- package/dist/executor-BaLNOEzG.d.mts +0 -94
- package/dist/executor-BaLNOEzG.d.mts.map +0 -1
- package/dist/executor-BbNRVowe.d.cts +0 -94
- package/dist/executor-BbNRVowe.d.cts.map +0 -1
- package/dist/executor-Bbdfz3vU.d.mts +0 -94
- package/dist/executor-Bbdfz3vU.d.mts.map +0 -1
- package/dist/executor-BdDn8ZPU.cjs +0 -36
- package/dist/executor-BdDn8ZPU.cjs.map +0 -1
- package/dist/executor-BpeEDqH7.cjs +0 -36
- package/dist/executor-BpeEDqH7.cjs.map +0 -1
- package/dist/executor-C5QxZhO7.mjs +0 -24
- package/dist/executor-C5QxZhO7.mjs.map +0 -1
- package/dist/executor-COGLRU0m.cjs +0 -35
- package/dist/executor-COGLRU0m.cjs.map +0 -1
- package/dist/executor-CiTDecl1.d.cts +0 -94
- package/dist/executor-CiTDecl1.d.cts.map +0 -1
- package/dist/executor-CqzPUm3D.mjs +0 -24
- package/dist/executor-CqzPUm3D.mjs.map +0 -1
- package/dist/executor-D-CbgdfW.d.cts +0 -94
- package/dist/executor-D-CbgdfW.d.cts.map +0 -1
- package/dist/executor-D2Vww0YS.d.mts +0 -94
- package/dist/executor-D2Vww0YS.d.mts.map +0 -1
- package/dist/executor-DZVLtlig.d.mts +0 -94
- package/dist/executor-DZVLtlig.d.mts.map +0 -1
- package/dist/executor-Df7WIF5r.cjs +0 -36
- package/dist/executor-Df7WIF5r.cjs.map +0 -1
- package/dist/executor-Dih1DtWS.cjs +0 -36
- package/dist/executor-Dih1DtWS.cjs.map +0 -1
- package/dist/executor-MgQPT_ao.d.mts +0 -94
- package/dist/executor-MgQPT_ao.d.mts.map +0 -1
- package/dist/executor-yO6eAP0j.mjs +0 -24
- package/dist/executor-yO6eAP0j.mjs.map +0 -1
- package/dist/executors/build/executor.cjs +0 -6
- package/dist/executors/build/executor.d.cts +0 -3
- package/dist/executors/clean/executor.cjs +0 -6
- package/dist/executors/clean/executor.d.cts +0 -3
- package/dist/executors/docs/executor.cjs +0 -6
- package/dist/executors/docs/executor.d.cts +0 -3
- package/dist/executors/lint/executor.cjs +0 -6
- package/dist/executors/lint/executor.d.cts +0 -3
- package/dist/executors/prepare/executor.cjs +0 -6
- package/dist/executors/prepare/executor.d.cts +0 -3
- package/dist/executors-0N4uK0Ll.mjs +0 -0
- package/dist/executors-BJFR9wj9.cjs +0 -0
- package/dist/executors-Dvb23_Uh.d.cts +0 -1
- package/dist/executors-DxVudqU1.d.mts +0 -1
- package/dist/executors.cjs +0 -13
- package/dist/executors.d.cts +0 -8
- package/dist/executors.d.mts +0 -8
- package/dist/executors.mjs +0 -9
- package/dist/index-BbciquDs.d.mts.map +0 -1
- package/dist/index-COXDf824.d.cts.map +0 -1
- package/dist/index.cjs +0 -15
- package/dist/index.d.cts +0 -9
- package/dist/plugin/index.cjs +0 -3
- package/dist/plugin/index.d.cts +0 -2
- package/dist/plugin-BbxHKJnF.mjs +0 -8
- package/dist/plugin-BbxHKJnF.mjs.map +0 -1
- package/dist/plugin-jIPJzmTp.cjs +0 -14
- package/dist/plugin-jIPJzmTp.cjs.map +0 -1
- package/dist/src/base-executor-BEOdY15z.cjs.map +0 -1
- package/dist/src/base-executor-C986ypeP.d.mts +0 -89
- package/dist/src/base-executor-C986ypeP.d.mts.map +0 -1
- package/dist/src/base-executor-Dm4OV5-b.d.cts +0 -89
- package/dist/src/base-executor-Dm4OV5-b.d.cts.map +0 -1
- package/dist/src/base-executor-WGeWcQ9x.mjs.map +0 -1
- package/dist/src/executor-4-xDAK3Q.d.cts +0 -94
- package/dist/src/executor-4-xDAK3Q.d.cts.map +0 -1
- package/dist/src/executor-96dASirt.d.cts +0 -94
- package/dist/src/executor-96dASirt.d.cts.map +0 -1
- package/dist/src/executor-BAfZ_2mt.mjs +0 -24
- package/dist/src/executor-BAfZ_2mt.mjs.map +0 -1
- package/dist/src/executor-BB0fklpZ.mjs +0 -24
- package/dist/src/executor-BB0fklpZ.mjs.map +0 -1
- package/dist/src/executor-BaLNOEzG.d.mts +0 -94
- package/dist/src/executor-BaLNOEzG.d.mts.map +0 -1
- package/dist/src/executor-BbNRVowe.d.cts +0 -94
- package/dist/src/executor-BbNRVowe.d.cts.map +0 -1
- package/dist/src/executor-Bbdfz3vU.d.mts +0 -94
- package/dist/src/executor-Bbdfz3vU.d.mts.map +0 -1
- package/dist/src/executor-BdDn8ZPU.cjs +0 -36
- package/dist/src/executor-BdDn8ZPU.cjs.map +0 -1
- package/dist/src/executor-BpeEDqH7.cjs +0 -36
- package/dist/src/executor-BpeEDqH7.cjs.map +0 -1
- package/dist/src/executor-C5QxZhO7.mjs +0 -24
- package/dist/src/executor-C5QxZhO7.mjs.map +0 -1
- package/dist/src/executor-COGLRU0m.cjs +0 -35
- package/dist/src/executor-COGLRU0m.cjs.map +0 -1
- package/dist/src/executor-CiTDecl1.d.cts +0 -94
- package/dist/src/executor-CiTDecl1.d.cts.map +0 -1
- package/dist/src/executor-CqzPUm3D.mjs +0 -24
- package/dist/src/executor-CqzPUm3D.mjs.map +0 -1
- package/dist/src/executor-D-CbgdfW.d.cts +0 -94
- package/dist/src/executor-D-CbgdfW.d.cts.map +0 -1
- package/dist/src/executor-D2Vww0YS.d.mts +0 -94
- package/dist/src/executor-D2Vww0YS.d.mts.map +0 -1
- package/dist/src/executor-DZVLtlig.d.mts +0 -94
- package/dist/src/executor-DZVLtlig.d.mts.map +0 -1
- package/dist/src/executor-Df7WIF5r.cjs +0 -36
- package/dist/src/executor-Df7WIF5r.cjs.map +0 -1
- package/dist/src/executor-Dih1DtWS.cjs +0 -36
- package/dist/src/executor-Dih1DtWS.cjs.map +0 -1
- package/dist/src/executor-MgQPT_ao.d.mts +0 -94
- package/dist/src/executor-MgQPT_ao.d.mts.map +0 -1
- package/dist/src/executor-yO6eAP0j.mjs +0 -24
- package/dist/src/executor-yO6eAP0j.mjs.map +0 -1
- package/dist/src/executors/build/executor.cjs +0 -6
- package/dist/src/executors/build/executor.d.cts +0 -3
- package/dist/src/executors/clean/executor.cjs +0 -6
- package/dist/src/executors/clean/executor.d.cts +0 -3
- package/dist/src/executors/docs/executor.cjs +0 -6
- package/dist/src/executors/docs/executor.d.cts +0 -3
- package/dist/src/executors/lint/executor.cjs +0 -6
- package/dist/src/executors/lint/executor.d.cts +0 -3
- package/dist/src/executors/prepare/executor.cjs +0 -6
- package/dist/src/executors/prepare/executor.d.cts +0 -3
- package/dist/src/executors-0N4uK0Ll.mjs +0 -0
- package/dist/src/executors-BJFR9wj9.cjs +0 -0
- package/dist/src/executors-Dvb23_Uh.d.cts +0 -1
- package/dist/src/executors-DxVudqU1.d.mts +0 -1
- package/dist/src/executors.cjs +0 -13
- package/dist/src/executors.d.cts +0 -8
- package/dist/src/executors.d.mts +0 -8
- package/dist/src/executors.mjs +0 -9
- package/dist/src/index-BbciquDs.d.mts +0 -8
- package/dist/src/index-BbciquDs.d.mts.map +0 -1
- package/dist/src/index-COXDf824.d.cts +0 -8
- package/dist/src/index-COXDf824.d.cts.map +0 -1
- package/dist/src/index.cjs +0 -15
- package/dist/src/index.d.cts +0 -9
- package/dist/src/plugin/index.cjs +0 -3
- package/dist/src/plugin/index.d.cts +0 -2
- package/dist/src/plugin-BbxHKJnF.mjs +0 -8
- package/dist/src/plugin-BbxHKJnF.mjs.map +0 -1
- package/dist/src/plugin-jIPJzmTp.cjs +0 -14
- package/dist/src/plugin-jIPJzmTp.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Shell Shock - Nx
|
|
4
4
|
|
|
5
|
+
## [0.0.38](https://github.com/storm-software/shell-shock/releases/tag/nx%400.0.38) (02/26/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **core** to **v0.9.7**
|
|
10
|
+
|
|
11
|
+
## [0.0.37](https://github.com/storm-software/shell-shock/releases/tag/nx%400.0.37) (02/26/2026)
|
|
12
|
+
|
|
13
|
+
### Updated Dependencies
|
|
14
|
+
|
|
15
|
+
- Updated **core** to **v0.9.6**
|
|
16
|
+
|
|
17
|
+
## [0.0.36](https://github.com/storm-software/shell-shock/releases/tag/nx%400.0.36) (02/26/2026)
|
|
18
|
+
|
|
19
|
+
### Updated Dependencies
|
|
20
|
+
|
|
21
|
+
- Updated **core** to **v0.9.5**
|
|
22
|
+
|
|
5
23
|
## [0.0.35](https://github.com/storm-software/shell-shock/releases/tag/nx%400.0.35) (02/25/2026)
|
|
6
24
|
|
|
7
25
|
### Updated Dependencies
|
|
@@ -0,0 +1,155 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -25,11 +25,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
-
let defu = require("defu");
|
|
29
|
-
defu = __toESM(defu);
|
|
30
28
|
let __storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
|
|
31
29
|
let __storm_software_workspace_tools_base_base_executor = require("@storm-software/workspace-tools/base/base-executor");
|
|
32
30
|
let __stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
|
|
31
|
+
let defu = require("defu");
|
|
32
|
+
defu = __toESM(defu);
|
|
33
33
|
let jiti = require("jiti");
|
|
34
34
|
|
|
35
35
|
//#region src/base/base-executor.ts
|
|
@@ -48,7 +48,7 @@ function withExecutor(command, executorFn) {
|
|
|
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];
|
|
51
|
-
const { createShellShock } = await (0, jiti.createJiti)(context.root, { cache: false }).import("@shell-shock/core
|
|
51
|
+
const { createShellShock } = await (0, jiti.createJiti)(context.root, { cache: false }).import("@shell-shock/core");
|
|
52
52
|
const api = await createShellShock((0, defu.default)({
|
|
53
53
|
name: projectConfig.name,
|
|
54
54
|
root: projectConfig.root,
|
|
@@ -56,10 +56,8 @@ function withExecutor(command, executorFn) {
|
|
|
56
56
|
tsconfig: options.tsconfig,
|
|
57
57
|
logLevel: options.logLevel,
|
|
58
58
|
description: projectConfig.metadata?.description,
|
|
59
|
-
|
|
59
|
+
projectType: projectConfig.projectType,
|
|
60
60
|
mode: options.mode,
|
|
61
|
-
skipCache: options.skipCache,
|
|
62
|
-
autoInstall: options.autoInstall,
|
|
63
61
|
output: { outputPath: options.outputPath ?? projectConfig.targets?.build?.options?.outputPath }
|
|
64
62
|
}, options));
|
|
65
63
|
try {
|
|
@@ -103,5 +101,4 @@ Object.defineProperty(exports, 'withExecutor', {
|
|
|
103
101
|
get: function () {
|
|
104
102
|
return withExecutor;
|
|
105
103
|
}
|
|
106
|
-
});
|
|
107
|
-
//# sourceMappingURL=base-executor-BEOdY15z.cjs.map
|
|
104
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import defu from "defu";
|
|
2
1
|
import { writeError } from "@storm-software/config-tools/logger";
|
|
3
2
|
import { withRunExecutor } from "@storm-software/workspace-tools/base/base-executor";
|
|
4
3
|
import { isError } from "@stryke/type-checks/is-error";
|
|
4
|
+
import defu from "defu";
|
|
5
5
|
import { createJiti } from "jiti";
|
|
6
6
|
|
|
7
7
|
//#region src/base/base-executor.ts
|
|
@@ -20,7 +20,7 @@ function withExecutor(command, executorFn) {
|
|
|
20
20
|
if (!context.projectName) throw new Error("The executor requires `projectName` on the context object.");
|
|
21
21
|
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.");
|
|
22
22
|
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
23
|
-
const { createShellShock } = await createJiti(context.root, { cache: false }).import("@shell-shock/core
|
|
23
|
+
const { createShellShock } = await createJiti(context.root, { cache: false }).import("@shell-shock/core");
|
|
24
24
|
const api = await createShellShock(defu({
|
|
25
25
|
name: projectConfig.name,
|
|
26
26
|
root: projectConfig.root,
|
|
@@ -28,10 +28,8 @@ function withExecutor(command, executorFn) {
|
|
|
28
28
|
tsconfig: options.tsconfig,
|
|
29
29
|
logLevel: options.logLevel,
|
|
30
30
|
description: projectConfig.metadata?.description,
|
|
31
|
-
|
|
31
|
+
projectType: projectConfig.projectType,
|
|
32
32
|
mode: options.mode,
|
|
33
|
-
skipCache: options.skipCache,
|
|
34
|
-
autoInstall: options.autoInstall,
|
|
35
33
|
output: { outputPath: options.outputPath ?? projectConfig.targets?.build?.options?.outputPath }
|
|
36
34
|
}, options));
|
|
37
35
|
try {
|
|
@@ -65,4 +63,4 @@ ${error.stack}` : "Unknown error"}`);
|
|
|
65
63
|
|
|
66
64
|
//#endregion
|
|
67
65
|
export { withExecutor as t };
|
|
68
|
-
//# sourceMappingURL=base-executor-
|
|
66
|
+
//# sourceMappingURL=base-executor-DUf5AdoE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,155 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,3 +1,154 @@
|
|
|
1
|
-
import "../../base-executor-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { t as ShellShockExecutorContext } from "../../base-executor-BkNTl-jk.mjs";
|
|
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.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|