@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.
Files changed (288) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/base-executor-BkNTl-jk.d.mts +155 -0
  3. package/dist/base-executor-BkNTl-jk.d.mts.map +1 -0
  4. package/dist/{base-executor-BEOdY15z.cjs → base-executor-CkaF97Xd.js} +5 -8
  5. package/dist/{src/base-executor-WGeWcQ9x.mjs → base-executor-DUf5AdoE.mjs} +4 -6
  6. package/dist/base-executor-DUf5AdoE.mjs.map +1 -0
  7. package/dist/base-executor-FX7YJl7f.d.ts +155 -0
  8. package/dist/base-executor-FX7YJl7f.d.ts.map +1 -0
  9. package/dist/executors/build/executor.d.mts +154 -3
  10. package/dist/executors/build/executor.d.mts.map +1 -0
  11. package/dist/executors/build/executor.d.ts +154 -0
  12. package/dist/executors/build/executor.d.ts.map +1 -0
  13. package/dist/executors/build/executor.js +20 -0
  14. package/dist/executors/build/executor.mjs +17 -3
  15. package/dist/executors/build/executor.mjs.map +1 -0
  16. package/dist/executors/build/schema.d.ts +144 -0
  17. package/dist/executors/build/schema.json +163 -0
  18. package/dist/executors/clean/executor.d.mts +154 -3
  19. package/dist/executors/clean/executor.d.mts.map +1 -0
  20. package/dist/executors/clean/executor.d.ts +154 -0
  21. package/dist/executors/clean/executor.d.ts.map +1 -0
  22. package/dist/executors/clean/executor.js +15 -0
  23. package/dist/executors/clean/executor.mjs +13 -3
  24. package/dist/executors/clean/executor.mjs.map +1 -0
  25. package/dist/executors/clean/schema.d.ts +144 -0
  26. package/dist/executors/clean/schema.json +163 -0
  27. package/dist/executors/docs/executor.d.mts +154 -3
  28. package/dist/executors/docs/executor.d.mts.map +1 -0
  29. package/dist/executors/docs/executor.d.ts +154 -0
  30. package/dist/executors/docs/executor.d.ts.map +1 -0
  31. package/dist/executors/docs/executor.js +16 -0
  32. package/dist/executors/docs/executor.mjs +13 -3
  33. package/dist/executors/docs/executor.mjs.map +1 -0
  34. package/dist/executors/docs/schema.d.ts +144 -0
  35. package/dist/executors/docs/schema.json +163 -0
  36. package/dist/executors/lint/executor.d.mts +154 -3
  37. package/dist/executors/lint/executor.d.mts.map +1 -0
  38. package/dist/executors/lint/executor.d.ts +154 -0
  39. package/dist/executors/lint/executor.d.ts.map +1 -0
  40. package/dist/executors/lint/executor.js +16 -0
  41. package/dist/executors/lint/executor.mjs +13 -3
  42. package/dist/executors/lint/executor.mjs.map +1 -0
  43. package/dist/executors/lint/schema.d.ts +144 -0
  44. package/dist/executors/lint/schema.json +163 -0
  45. package/dist/executors/prepare/executor.d.mts +154 -3
  46. package/dist/executors/prepare/executor.d.mts.map +1 -0
  47. package/dist/executors/prepare/executor.d.ts +154 -0
  48. package/dist/executors/prepare/executor.d.ts.map +1 -0
  49. package/dist/executors/prepare/executor.js +20 -0
  50. package/dist/executors/prepare/executor.mjs +17 -3
  51. package/dist/executors/prepare/executor.mjs.map +1 -0
  52. package/dist/executors/prepare/schema.d.ts +144 -0
  53. package/dist/executors/prepare/schema.json +163 -0
  54. package/dist/index.d.mts +3 -9
  55. package/dist/index.d.ts +2 -0
  56. package/dist/index.js +18 -0
  57. package/dist/index.mjs +17 -9
  58. package/dist/index.mjs.map +1 -0
  59. package/dist/plugin/index.d.mts +8 -2
  60. package/dist/plugin/index.d.mts.map +1 -0
  61. package/dist/{index-BbciquDs.d.mts → plugin/index.d.ts} +3 -3
  62. package/dist/plugin/index.d.ts.map +1 -0
  63. package/dist/plugin/index.js +8 -0
  64. package/dist/plugin/index.mjs +7 -2
  65. package/dist/plugin/index.mjs.map +1 -0
  66. package/dist/src/base/base-executor.schema.d.ts +73 -19
  67. package/dist/src/base/base-executor.schema.json +102 -26
  68. package/dist/src/base-executor-BkNTl-jk.d.mts +155 -0
  69. package/dist/src/base-executor-BkNTl-jk.d.mts.map +1 -0
  70. package/dist/src/{base-executor-BEOdY15z.cjs → base-executor-CkaF97Xd.js} +5 -8
  71. package/dist/{base-executor-WGeWcQ9x.mjs → src/base-executor-DUf5AdoE.mjs} +4 -6
  72. package/dist/src/base-executor-DUf5AdoE.mjs.map +1 -0
  73. package/dist/src/base-executor-FX7YJl7f.d.ts +155 -0
  74. package/dist/src/base-executor-FX7YJl7f.d.ts.map +1 -0
  75. package/dist/src/executors/build/executor.d.mts +154 -3
  76. package/dist/src/executors/build/executor.d.mts.map +1 -0
  77. package/dist/src/executors/build/executor.d.ts +154 -0
  78. package/dist/src/executors/build/executor.d.ts.map +1 -0
  79. package/dist/src/executors/build/executor.js +20 -0
  80. package/dist/src/executors/build/executor.mjs +17 -3
  81. package/dist/src/executors/build/executor.mjs.map +1 -0
  82. package/dist/src/executors/build/schema.d.ts +83 -23
  83. package/dist/src/executors/build/schema.json +112 -43
  84. package/dist/src/executors/clean/executor.d.mts +154 -3
  85. package/dist/src/executors/clean/executor.d.mts.map +1 -0
  86. package/dist/src/executors/clean/executor.d.ts +154 -0
  87. package/dist/src/executors/clean/executor.d.ts.map +1 -0
  88. package/dist/src/executors/clean/executor.js +15 -0
  89. package/dist/src/executors/clean/executor.mjs +13 -3
  90. package/dist/src/executors/clean/executor.mjs.map +1 -0
  91. package/dist/src/executors/clean/schema.d.ts +83 -23
  92. package/dist/src/executors/clean/schema.json +112 -43
  93. package/dist/src/executors/docs/executor.d.mts +154 -3
  94. package/dist/src/executors/docs/executor.d.mts.map +1 -0
  95. package/dist/src/executors/docs/executor.d.ts +154 -0
  96. package/dist/src/executors/docs/executor.d.ts.map +1 -0
  97. package/dist/src/executors/docs/executor.js +16 -0
  98. package/dist/src/executors/docs/executor.mjs +13 -3
  99. package/dist/src/executors/docs/executor.mjs.map +1 -0
  100. package/dist/src/executors/docs/schema.d.ts +83 -23
  101. package/dist/src/executors/docs/schema.json +112 -43
  102. package/dist/src/executors/lint/executor.d.mts +154 -3
  103. package/dist/src/executors/lint/executor.d.mts.map +1 -0
  104. package/dist/src/executors/lint/executor.d.ts +154 -0
  105. package/dist/src/executors/lint/executor.d.ts.map +1 -0
  106. package/dist/src/executors/lint/executor.js +16 -0
  107. package/dist/src/executors/lint/executor.mjs +13 -3
  108. package/dist/src/executors/lint/executor.mjs.map +1 -0
  109. package/dist/src/executors/lint/schema.d.ts +83 -23
  110. package/dist/src/executors/lint/schema.json +112 -43
  111. package/dist/src/executors/prepare/executor.d.mts +154 -3
  112. package/dist/src/executors/prepare/executor.d.mts.map +1 -0
  113. package/dist/src/executors/prepare/executor.d.ts +154 -0
  114. package/dist/src/executors/prepare/executor.d.ts.map +1 -0
  115. package/dist/src/executors/prepare/executor.js +20 -0
  116. package/dist/src/executors/prepare/executor.mjs +17 -3
  117. package/dist/src/executors/prepare/executor.mjs.map +1 -0
  118. package/dist/src/executors/prepare/schema.d.ts +83 -23
  119. package/dist/src/executors/prepare/schema.json +112 -43
  120. package/dist/src/index.d.mts +3 -9
  121. package/dist/src/index.d.ts +2 -0
  122. package/dist/src/index.js +18 -0
  123. package/dist/src/index.mjs +17 -9
  124. package/dist/src/index.mjs.map +1 -0
  125. package/dist/src/plugin/index.d.mts +8 -2
  126. package/dist/src/plugin/index.d.mts.map +1 -0
  127. package/dist/{index-COXDf824.d.cts → src/plugin/index.d.ts} +3 -3
  128. package/dist/src/plugin/index.d.ts.map +1 -0
  129. package/dist/src/plugin/index.js +8 -0
  130. package/dist/src/plugin/index.mjs +7 -2
  131. package/dist/src/plugin/index.mjs.map +1 -0
  132. package/docs/api/base-executor.schema.md +70 -19
  133. package/docs/api/build/schema.md +83 -24
  134. package/docs/api/clean/schema.md +83 -24
  135. package/docs/api/docs/schema.md +83 -24
  136. package/docs/api/lint/schema.md +83 -24
  137. package/docs/api/prepare/schema.md +83 -24
  138. package/package.json +37 -50
  139. package/dist/base-executor-BEOdY15z.cjs.map +0 -1
  140. package/dist/base-executor-C986ypeP.d.mts +0 -89
  141. package/dist/base-executor-C986ypeP.d.mts.map +0 -1
  142. package/dist/base-executor-Dm4OV5-b.d.cts +0 -89
  143. package/dist/base-executor-Dm4OV5-b.d.cts.map +0 -1
  144. package/dist/base-executor-WGeWcQ9x.mjs.map +0 -1
  145. package/dist/executor-4-xDAK3Q.d.cts +0 -94
  146. package/dist/executor-4-xDAK3Q.d.cts.map +0 -1
  147. package/dist/executor-96dASirt.d.cts +0 -94
  148. package/dist/executor-96dASirt.d.cts.map +0 -1
  149. package/dist/executor-BAfZ_2mt.mjs +0 -24
  150. package/dist/executor-BAfZ_2mt.mjs.map +0 -1
  151. package/dist/executor-BB0fklpZ.mjs +0 -24
  152. package/dist/executor-BB0fklpZ.mjs.map +0 -1
  153. package/dist/executor-BaLNOEzG.d.mts +0 -94
  154. package/dist/executor-BaLNOEzG.d.mts.map +0 -1
  155. package/dist/executor-BbNRVowe.d.cts +0 -94
  156. package/dist/executor-BbNRVowe.d.cts.map +0 -1
  157. package/dist/executor-Bbdfz3vU.d.mts +0 -94
  158. package/dist/executor-Bbdfz3vU.d.mts.map +0 -1
  159. package/dist/executor-BdDn8ZPU.cjs +0 -36
  160. package/dist/executor-BdDn8ZPU.cjs.map +0 -1
  161. package/dist/executor-BpeEDqH7.cjs +0 -36
  162. package/dist/executor-BpeEDqH7.cjs.map +0 -1
  163. package/dist/executor-C5QxZhO7.mjs +0 -24
  164. package/dist/executor-C5QxZhO7.mjs.map +0 -1
  165. package/dist/executor-COGLRU0m.cjs +0 -35
  166. package/dist/executor-COGLRU0m.cjs.map +0 -1
  167. package/dist/executor-CiTDecl1.d.cts +0 -94
  168. package/dist/executor-CiTDecl1.d.cts.map +0 -1
  169. package/dist/executor-CqzPUm3D.mjs +0 -24
  170. package/dist/executor-CqzPUm3D.mjs.map +0 -1
  171. package/dist/executor-D-CbgdfW.d.cts +0 -94
  172. package/dist/executor-D-CbgdfW.d.cts.map +0 -1
  173. package/dist/executor-D2Vww0YS.d.mts +0 -94
  174. package/dist/executor-D2Vww0YS.d.mts.map +0 -1
  175. package/dist/executor-DZVLtlig.d.mts +0 -94
  176. package/dist/executor-DZVLtlig.d.mts.map +0 -1
  177. package/dist/executor-Df7WIF5r.cjs +0 -36
  178. package/dist/executor-Df7WIF5r.cjs.map +0 -1
  179. package/dist/executor-Dih1DtWS.cjs +0 -36
  180. package/dist/executor-Dih1DtWS.cjs.map +0 -1
  181. package/dist/executor-MgQPT_ao.d.mts +0 -94
  182. package/dist/executor-MgQPT_ao.d.mts.map +0 -1
  183. package/dist/executor-yO6eAP0j.mjs +0 -24
  184. package/dist/executor-yO6eAP0j.mjs.map +0 -1
  185. package/dist/executors/build/executor.cjs +0 -6
  186. package/dist/executors/build/executor.d.cts +0 -3
  187. package/dist/executors/clean/executor.cjs +0 -6
  188. package/dist/executors/clean/executor.d.cts +0 -3
  189. package/dist/executors/docs/executor.cjs +0 -6
  190. package/dist/executors/docs/executor.d.cts +0 -3
  191. package/dist/executors/lint/executor.cjs +0 -6
  192. package/dist/executors/lint/executor.d.cts +0 -3
  193. package/dist/executors/prepare/executor.cjs +0 -6
  194. package/dist/executors/prepare/executor.d.cts +0 -3
  195. package/dist/executors-0N4uK0Ll.mjs +0 -0
  196. package/dist/executors-BJFR9wj9.cjs +0 -0
  197. package/dist/executors-Dvb23_Uh.d.cts +0 -1
  198. package/dist/executors-DxVudqU1.d.mts +0 -1
  199. package/dist/executors.cjs +0 -13
  200. package/dist/executors.d.cts +0 -8
  201. package/dist/executors.d.mts +0 -8
  202. package/dist/executors.mjs +0 -9
  203. package/dist/index-BbciquDs.d.mts.map +0 -1
  204. package/dist/index-COXDf824.d.cts.map +0 -1
  205. package/dist/index.cjs +0 -15
  206. package/dist/index.d.cts +0 -9
  207. package/dist/plugin/index.cjs +0 -3
  208. package/dist/plugin/index.d.cts +0 -2
  209. package/dist/plugin-BbxHKJnF.mjs +0 -8
  210. package/dist/plugin-BbxHKJnF.mjs.map +0 -1
  211. package/dist/plugin-jIPJzmTp.cjs +0 -14
  212. package/dist/plugin-jIPJzmTp.cjs.map +0 -1
  213. package/dist/src/base-executor-BEOdY15z.cjs.map +0 -1
  214. package/dist/src/base-executor-C986ypeP.d.mts +0 -89
  215. package/dist/src/base-executor-C986ypeP.d.mts.map +0 -1
  216. package/dist/src/base-executor-Dm4OV5-b.d.cts +0 -89
  217. package/dist/src/base-executor-Dm4OV5-b.d.cts.map +0 -1
  218. package/dist/src/base-executor-WGeWcQ9x.mjs.map +0 -1
  219. package/dist/src/executor-4-xDAK3Q.d.cts +0 -94
  220. package/dist/src/executor-4-xDAK3Q.d.cts.map +0 -1
  221. package/dist/src/executor-96dASirt.d.cts +0 -94
  222. package/dist/src/executor-96dASirt.d.cts.map +0 -1
  223. package/dist/src/executor-BAfZ_2mt.mjs +0 -24
  224. package/dist/src/executor-BAfZ_2mt.mjs.map +0 -1
  225. package/dist/src/executor-BB0fklpZ.mjs +0 -24
  226. package/dist/src/executor-BB0fklpZ.mjs.map +0 -1
  227. package/dist/src/executor-BaLNOEzG.d.mts +0 -94
  228. package/dist/src/executor-BaLNOEzG.d.mts.map +0 -1
  229. package/dist/src/executor-BbNRVowe.d.cts +0 -94
  230. package/dist/src/executor-BbNRVowe.d.cts.map +0 -1
  231. package/dist/src/executor-Bbdfz3vU.d.mts +0 -94
  232. package/dist/src/executor-Bbdfz3vU.d.mts.map +0 -1
  233. package/dist/src/executor-BdDn8ZPU.cjs +0 -36
  234. package/dist/src/executor-BdDn8ZPU.cjs.map +0 -1
  235. package/dist/src/executor-BpeEDqH7.cjs +0 -36
  236. package/dist/src/executor-BpeEDqH7.cjs.map +0 -1
  237. package/dist/src/executor-C5QxZhO7.mjs +0 -24
  238. package/dist/src/executor-C5QxZhO7.mjs.map +0 -1
  239. package/dist/src/executor-COGLRU0m.cjs +0 -35
  240. package/dist/src/executor-COGLRU0m.cjs.map +0 -1
  241. package/dist/src/executor-CiTDecl1.d.cts +0 -94
  242. package/dist/src/executor-CiTDecl1.d.cts.map +0 -1
  243. package/dist/src/executor-CqzPUm3D.mjs +0 -24
  244. package/dist/src/executor-CqzPUm3D.mjs.map +0 -1
  245. package/dist/src/executor-D-CbgdfW.d.cts +0 -94
  246. package/dist/src/executor-D-CbgdfW.d.cts.map +0 -1
  247. package/dist/src/executor-D2Vww0YS.d.mts +0 -94
  248. package/dist/src/executor-D2Vww0YS.d.mts.map +0 -1
  249. package/dist/src/executor-DZVLtlig.d.mts +0 -94
  250. package/dist/src/executor-DZVLtlig.d.mts.map +0 -1
  251. package/dist/src/executor-Df7WIF5r.cjs +0 -36
  252. package/dist/src/executor-Df7WIF5r.cjs.map +0 -1
  253. package/dist/src/executor-Dih1DtWS.cjs +0 -36
  254. package/dist/src/executor-Dih1DtWS.cjs.map +0 -1
  255. package/dist/src/executor-MgQPT_ao.d.mts +0 -94
  256. package/dist/src/executor-MgQPT_ao.d.mts.map +0 -1
  257. package/dist/src/executor-yO6eAP0j.mjs +0 -24
  258. package/dist/src/executor-yO6eAP0j.mjs.map +0 -1
  259. package/dist/src/executors/build/executor.cjs +0 -6
  260. package/dist/src/executors/build/executor.d.cts +0 -3
  261. package/dist/src/executors/clean/executor.cjs +0 -6
  262. package/dist/src/executors/clean/executor.d.cts +0 -3
  263. package/dist/src/executors/docs/executor.cjs +0 -6
  264. package/dist/src/executors/docs/executor.d.cts +0 -3
  265. package/dist/src/executors/lint/executor.cjs +0 -6
  266. package/dist/src/executors/lint/executor.d.cts +0 -3
  267. package/dist/src/executors/prepare/executor.cjs +0 -6
  268. package/dist/src/executors/prepare/executor.d.cts +0 -3
  269. package/dist/src/executors-0N4uK0Ll.mjs +0 -0
  270. package/dist/src/executors-BJFR9wj9.cjs +0 -0
  271. package/dist/src/executors-Dvb23_Uh.d.cts +0 -1
  272. package/dist/src/executors-DxVudqU1.d.mts +0 -1
  273. package/dist/src/executors.cjs +0 -13
  274. package/dist/src/executors.d.cts +0 -8
  275. package/dist/src/executors.d.mts +0 -8
  276. package/dist/src/executors.mjs +0 -9
  277. package/dist/src/index-BbciquDs.d.mts +0 -8
  278. package/dist/src/index-BbciquDs.d.mts.map +0 -1
  279. package/dist/src/index-COXDf824.d.cts +0 -8
  280. package/dist/src/index-COXDf824.d.cts.map +0 -1
  281. package/dist/src/index.cjs +0 -15
  282. package/dist/src/index.d.cts +0 -9
  283. package/dist/src/plugin/index.cjs +0 -3
  284. package/dist/src/plugin/index.d.cts +0 -2
  285. package/dist/src/plugin-BbxHKJnF.mjs +0 -8
  286. package/dist/src/plugin-BbxHKJnF.mjs.map +0 -1
  287. package/dist/src/plugin-jIPJzmTp.cjs +0 -14
  288. package/dist/src/plugin-jIPJzmTp.cjs.map +0 -1
@@ -1,94 +0,0 @@
1
- import { t as ShellShockExecutorContext } from "./base-executor-C986ypeP.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/lint/schema.d.ts
7
- // Generated by powerlines
8
- // Do not edit this file directly
9
- interface LintExecutorSchema {
10
- /**
11
- * Output Path
12
- *
13
- * The output path for the build
14
- *
15
- * @default "dist/{projectRoot}"
16
- *
17
- * @format path
18
- */
19
- outputPath?: string;
20
-
21
- /**
22
- * TypeScript Configuration File
23
- *
24
- * The path to the tsconfig file
25
- *
26
- *
27
- * @format path
28
- */
29
- tsconfig?: string;
30
-
31
- /**
32
- * Shell Shock Configuration File
33
- *
34
- * The path to the Shell Shock configuration file
35
- *
36
- * @default "{projectRoot}/shell-shock.config.ts"
37
- *
38
- * @format path
39
- */
40
- configFile?: string;
41
-
42
- /**
43
- * Mode
44
- *
45
- * The build mode
46
- *
47
- *
48
- * @enum development,test,production
49
- */
50
- mode?: string;
51
-
52
- /**
53
- * Auto Install
54
- *
55
- * Automatically install dependencies before building
56
- *
57
- */
58
- autoInstall?: boolean;
59
-
60
- /**
61
- * Skip Cache
62
- *
63
- * Skip the cache when building
64
- *
65
- */
66
- skipCache?: boolean;
67
-
68
- /**
69
- * Log Level
70
- *
71
- * The log level to use for the build process
72
- *
73
- *
74
- * @enum fatal,error,warn,success,info,debug,trace,silent
75
- */
76
- logLevel?: string;
77
-
78
- /**
79
- * Entry Path(s)
80
- *
81
- * The entry path(s) for the package
82
- *
83
- *
84
- * @oneOf [object Object],[object Object]
85
- */
86
- entry?: any;
87
- }
88
- //#endregion
89
- //#region src/executors/lint/executor.d.ts
90
- declare function executorFn(context: ShellShockExecutorContext<"lint", LintExecutorSchema>, api: ShellShockAPI): Promise<BaseExecutorResult>;
91
- declare const executor: PromiseExecutor<LintExecutorSchema>;
92
- //#endregion
93
- export { executorFn as n, LintExecutorSchema as r, executor as t };
94
- //# sourceMappingURL=executor-MgQPT_ao.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor-MgQPT_ao.d.mts","names":["LintExecutorSchema"],"sources":["../../src/executors/lint/schema.d.ts","../../src/executors/lint/executor.ts"],"sourcesContent":["\n// Generated by powerlines\n// Do not edit this file directly\n\nexport interface LintExecutorSchema {\n /**\n * Output Path\n * \n * The output path for the build\n * \n * @default \"dist/{projectRoot}\"\n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * TypeScript Configuration File\n * \n * The path to the tsconfig file\n * \n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Shell Shock Configuration File\n * \n * The path to the Shell Shock configuration file\n * \n * @default \"{projectRoot}/shell-shock.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Auto Install\n * \n * Automatically install dependencies before building\n * \n */\n autoInstall?: boolean,\n\n /**\n * Skip Cache\n * \n * Skip the cache when building\n * \n */\n skipCache?: boolean,\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 * Entry Path(s)\n * \n * The entry path(s) for the package\n * \n * \n * @oneOf [object Object],[object Object]\n */\n entry?: any,\n}\n\n"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;ACuBA;;;;EAGW,UAAA,CAAA,EAAA,MAAA;;EAAD;AAuBT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA1BqB,UAAA,UACX,kCAAkC,0BACtC,gBACJ,QAAQ;AD1BX,cCmDM,QDnDWA,ECmDD,eDnDmB,CCmDH,kBDnDG,CAAA"}
@@ -1,24 +0,0 @@
1
- import { t as withExecutor } from "./base-executor-WGeWcQ9x.mjs";
2
- import defu from "defu";
3
-
4
- //#region src/executors/prepare/executor.ts
5
- async function executorFn(context, api) {
6
- await api.prepare(defu({
7
- command: "prepare",
8
- entry: context.options.entry,
9
- skipCache: context.options.skipCache,
10
- autoInstall: context.options.autoInstall,
11
- mode: context.options.mode,
12
- tsconfig: context.options.tsconfig,
13
- configFile: context.options.configFile,
14
- logLevel: context.options.logLevel,
15
- output: { outputPath: context.options.outputPath }
16
- }, context.inlineConfig));
17
- return { success: true };
18
- }
19
- const executor = withExecutor("prepare", executorFn);
20
- var executor_default = executor;
21
-
22
- //#endregion
23
- export { executor_default as n, executorFn as t };
24
- //# sourceMappingURL=executor-yO6eAP0j.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor-yO6eAP0j.mjs","names":["executor: PromiseExecutor<PrepareExecutorSchema>"],"sources":["../../src/executors/prepare/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 { PrepareInlineConfig } from \"powerlines/types/config\";\nimport type { ShellShockExecutorContext } from \"../../base/base-executor\";\nimport { withExecutor } from \"../../base/base-executor\";\nimport type { PrepareExecutorSchema } from \"./schema\";\n\nexport async function executorFn(\n context: ShellShockExecutorContext<\"prepare\", PrepareExecutorSchema>,\n api: ShellShockAPI\n): Promise<BaseExecutorResult> {\n await api.prepare(\n defu(\n {\n command: \"prepare\",\n entry: context.options.entry,\n skipCache: context.options.skipCache,\n autoInstall: context.options.autoInstall,\n mode: context.options.mode,\n tsconfig: context.options.tsconfig,\n configFile: context.options.configFile,\n logLevel: context.options.logLevel,\n output: {\n outputPath: context.options.outputPath\n }\n },\n context.inlineConfig\n ) as PrepareInlineConfig\n );\n\n return {\n success: true\n };\n}\n\nconst executor: PromiseExecutor<PrepareExecutorSchema> = withExecutor<\n \"prepare\",\n PrepareExecutorSchema\n>(\"prepare\", executorFn);\n\nexport default executor;\n"],"mappings":";;;;AA2BA,eAAsB,WACpB,SACA,KAC6B;AAC7B,OAAM,IAAI,QACR,KACE;EACE,SAAS;EACT,OAAO,QAAQ,QAAQ;EACvB,WAAW,QAAQ,QAAQ;EAC3B,aAAa,QAAQ,QAAQ;EAC7B,MAAM,QAAQ,QAAQ;EACtB,UAAU,QAAQ,QAAQ;EAC1B,YAAY,QAAQ,QAAQ;EAC5B,UAAU,QAAQ,QAAQ;EAC1B,QAAQ,EACN,YAAY,QAAQ,QAAQ,YAC7B;EACF,EACD,QAAQ,aACT,CACF;AAED,QAAO,EACL,SAAS,MACV;;AAGH,MAAMA,WAAmD,aAGvD,WAAW,WAAW;AAExB,uBAAe"}
@@ -1,6 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- require('../../base-executor-BEOdY15z.cjs');
3
- const require_executor = require('../../executor-Dih1DtWS.cjs');
4
-
5
- exports.default = require_executor.executor_default;
6
- exports.executorFn = require_executor.executorFn;
@@ -1,3 +0,0 @@
1
- import "../../base-executor-Dm4OV5-b.cjs";
2
- import { n as executorFn, t as executor } from "../../executor-96dASirt.cjs";
3
- export { executor as default, executorFn };
@@ -1,6 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- require('../../base-executor-BEOdY15z.cjs');
3
- const require_executor = require('../../executor-COGLRU0m.cjs');
4
-
5
- exports.default = require_executor.executor_default;
6
- exports.executorFn = require_executor.executorFn;
@@ -1,3 +0,0 @@
1
- import "../../base-executor-Dm4OV5-b.cjs";
2
- import { n as executorFn, t as executor } from "../../executor-D-CbgdfW.cjs";
3
- export { executor as default, executorFn };
@@ -1,6 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- require('../../base-executor-BEOdY15z.cjs');
3
- const require_executor = require('../../executor-BdDn8ZPU.cjs');
4
-
5
- exports.default = require_executor.executor_default;
6
- exports.executorFn = require_executor.executorFn;
@@ -1,3 +0,0 @@
1
- import "../../base-executor-Dm4OV5-b.cjs";
2
- import { n as executorFn, t as executor } from "../../executor-BbNRVowe.cjs";
3
- export { executor as default, executorFn };
@@ -1,6 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- require('../../base-executor-BEOdY15z.cjs');
3
- const require_executor = require('../../executor-Df7WIF5r.cjs');
4
-
5
- exports.default = require_executor.executor_default;
6
- exports.executorFn = require_executor.executorFn;
@@ -1,3 +0,0 @@
1
- import "../../base-executor-Dm4OV5-b.cjs";
2
- import { n as executorFn, t as executor } from "../../executor-CiTDecl1.cjs";
3
- export { executor as default, executorFn };
@@ -1,6 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- require('../../base-executor-BEOdY15z.cjs');
3
- const require_executor = require('../../executor-BpeEDqH7.cjs');
4
-
5
- exports.default = require_executor.executor_default;
6
- exports.executorFn = require_executor.executorFn;
@@ -1,3 +0,0 @@
1
- import "../../base-executor-Dm4OV5-b.cjs";
2
- import { n as executorFn, t as executor } from "../../executor-4-xDAK3Q.cjs";
3
- export { executor as default, executorFn };
File without changes
File without changes
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1,13 +0,0 @@
1
- require('./base-executor-BEOdY15z.cjs');
2
- const require_executor = require('./executor-Dih1DtWS.cjs');
3
- const require_executor$1 = require('./executor-COGLRU0m.cjs');
4
- const require_executor$2 = require('./executor-BdDn8ZPU.cjs');
5
- const require_executor$3 = require('./executor-Df7WIF5r.cjs');
6
- const require_executor$4 = require('./executor-BpeEDqH7.cjs');
7
- require('./executors-BJFR9wj9.cjs');
8
-
9
- exports.build = require_executor.executor_default;
10
- exports.clean = require_executor$1.executor_default;
11
- exports.docs = require_executor$2.executor_default;
12
- exports.lint = require_executor$3.executor_default;
13
- exports.prepare = require_executor$4.executor_default;
@@ -1,8 +0,0 @@
1
- import "./base-executor-Dm4OV5-b.cjs";
2
- import { r as BuildExecutorSchema, t as executor } from "./executor-96dASirt.cjs";
3
- import { r as CleanExecutorSchema, t as executor$1 } from "./executor-D-CbgdfW.cjs";
4
- import { r as DocsExecutorSchema, t as executor$2 } from "./executor-BbNRVowe.cjs";
5
- import { r as LintExecutorSchema, t as executor$3 } from "./executor-CiTDecl1.cjs";
6
- import { r as PrepareExecutorSchema, t as executor$4 } from "./executor-4-xDAK3Q.cjs";
7
- import "./executors-Dvb23_Uh.cjs";
8
- export { BuildExecutorSchema, CleanExecutorSchema, DocsExecutorSchema, LintExecutorSchema, PrepareExecutorSchema, executor as build, executor$1 as clean, executor$2 as docs, executor$3 as lint, executor$4 as prepare };
@@ -1,8 +0,0 @@
1
- import "./base-executor-C986ypeP.mjs";
2
- import { r as BuildExecutorSchema, t as executor } from "./executor-D2Vww0YS.mjs";
3
- import { r as CleanExecutorSchema, t as executor$1 } from "./executor-DZVLtlig.mjs";
4
- import { r as DocsExecutorSchema, t as executor$2 } from "./executor-Bbdfz3vU.mjs";
5
- import { r as LintExecutorSchema, t as executor$3 } from "./executor-MgQPT_ao.mjs";
6
- import { r as PrepareExecutorSchema, t as executor$4 } from "./executor-BaLNOEzG.mjs";
7
- import "./executors-DxVudqU1.mjs";
8
- export { BuildExecutorSchema, CleanExecutorSchema, DocsExecutorSchema, LintExecutorSchema, PrepareExecutorSchema, executor as build, executor$1 as clean, executor$2 as docs, executor$3 as lint, executor$4 as prepare };
@@ -1,9 +0,0 @@
1
- import "./base-executor-WGeWcQ9x.mjs";
2
- import { n as executor_default } from "./executor-BAfZ_2mt.mjs";
3
- import { n as executor_default$1 } from "./executor-BB0fklpZ.mjs";
4
- import { n as executor_default$2 } from "./executor-CqzPUm3D.mjs";
5
- import { n as executor_default$3 } from "./executor-C5QxZhO7.mjs";
6
- import { n as executor_default$4 } from "./executor-yO6eAP0j.mjs";
7
- import "./executors-0N4uK0Ll.mjs";
8
-
9
- export { executor_default as build, executor_default$1 as clean, executor_default$2 as docs, executor_default$3 as lint, executor_default$4 as prepare };
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BbciquDs.d.mts","names":[],"sources":["../../src/plugin/index.ts"],"sourcesContent":[],"mappings":";;;;cAsBa,eAAe,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-COXDf824.d.cts","names":[],"sources":["../../src/plugin/index.ts"],"sourcesContent":[],"mappings":";;;;cAsBa,eAAe,cAAc"}
package/dist/index.cjs DELETED
@@ -1,15 +0,0 @@
1
- require('./base-executor-BEOdY15z.cjs');
2
- const require_executor = require('./executor-Dih1DtWS.cjs');
3
- const require_executor$1 = require('./executor-COGLRU0m.cjs');
4
- const require_executor$2 = require('./executor-BdDn8ZPU.cjs');
5
- const require_executor$3 = require('./executor-Df7WIF5r.cjs');
6
- const require_executor$4 = require('./executor-BpeEDqH7.cjs');
7
- require('./executors-BJFR9wj9.cjs');
8
- const require_plugin = require('./plugin-jIPJzmTp.cjs');
9
-
10
- exports.build = require_executor.executor_default;
11
- exports.clean = require_executor$1.executor_default;
12
- exports.createNodesV2 = require_plugin.createNodesV2;
13
- exports.docs = require_executor$2.executor_default;
14
- exports.lint = require_executor$3.executor_default;
15
- exports.prepare = require_executor$4.executor_default;
package/dist/index.d.cts DELETED
@@ -1,9 +0,0 @@
1
- import "./base-executor-Dm4OV5-b.cjs";
2
- import { r as BuildExecutorSchema, t as executor } from "./executor-96dASirt.cjs";
3
- import { r as CleanExecutorSchema, t as executor$1 } from "./executor-D-CbgdfW.cjs";
4
- import { r as DocsExecutorSchema, t as executor$2 } from "./executor-BbNRVowe.cjs";
5
- import { r as LintExecutorSchema, t as executor$3 } from "./executor-CiTDecl1.cjs";
6
- import { r as PrepareExecutorSchema, t as executor$4 } from "./executor-4-xDAK3Q.cjs";
7
- import "./executors-Dvb23_Uh.cjs";
8
- import { t as createNodesV2 } from "./index-COXDf824.cjs";
9
- export { BuildExecutorSchema, CleanExecutorSchema, DocsExecutorSchema, LintExecutorSchema, PrepareExecutorSchema, executor as build, executor$1 as clean, createNodesV2, executor$2 as docs, executor$3 as lint, executor$4 as prepare };
@@ -1,3 +0,0 @@
1
- const require_plugin = require('../plugin-jIPJzmTp.cjs');
2
-
3
- exports.createNodesV2 = require_plugin.createNodesV2;
@@ -1,2 +0,0 @@
1
- import { t as createNodesV2 } from "../index-COXDf824.cjs";
2
- export { createNodesV2 };
@@ -1,8 +0,0 @@
1
- import { createNxPlugin } from "@powerlines/nx/helpers/plugin-utilities";
2
-
3
- //#region src/plugin/index.ts
4
- const createNodesV2 = createNxPlugin({ framework: "shell-shock" });
5
-
6
- //#endregion
7
- export { createNodesV2 as t };
8
- //# sourceMappingURL=plugin-BbxHKJnF.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-BbxHKJnF.mjs","names":["createNodesV2: CreateNodesV2<NxPluginOptions>"],"sources":["../../src/plugin/index.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 { CreateNodesV2 } from \"@nx/devkit\";\nimport { createNxPlugin } from \"@powerlines/nx/helpers/plugin-utilities\";\nimport type { NxPluginOptions } from \"@powerlines/nx/types/plugin\";\n\nexport const createNodesV2: CreateNodesV2<NxPluginOptions> =\n createNxPlugin<NxPluginOptions>({\n framework: \"shell-shock\"\n });\n"],"mappings":";;;AAsBA,MAAaA,gBACX,eAAgC,EAC9B,WAAW,eACZ,CAAC"}
@@ -1,14 +0,0 @@
1
- const require_base_executor = require('./base-executor-BEOdY15z.cjs');
2
- let __powerlines_nx_helpers_plugin_utilities = require("@powerlines/nx/helpers/plugin-utilities");
3
-
4
- //#region src/plugin/index.ts
5
- const createNodesV2 = (0, __powerlines_nx_helpers_plugin_utilities.createNxPlugin)({ framework: "shell-shock" });
6
-
7
- //#endregion
8
- Object.defineProperty(exports, 'createNodesV2', {
9
- enumerable: true,
10
- get: function () {
11
- return createNodesV2;
12
- }
13
- });
14
- //# sourceMappingURL=plugin-jIPJzmTp.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-jIPJzmTp.cjs","names":["createNodesV2: CreateNodesV2<NxPluginOptions>"],"sources":["../../src/plugin/index.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 { CreateNodesV2 } from \"@nx/devkit\";\nimport { createNxPlugin } from \"@powerlines/nx/helpers/plugin-utilities\";\nimport type { NxPluginOptions } from \"@powerlines/nx/types/plugin\";\n\nexport const createNodesV2: CreateNodesV2<NxPluginOptions> =\n createNxPlugin<NxPluginOptions>({\n framework: \"shell-shock\"\n });\n"],"mappings":";;;;AAsBA,MAAaA,6EACqB,EAC9B,WAAW,eACZ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-BEOdY15z.cjs","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/types/config\";\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/api\").createShellShock;\n }>(\"@shell-shock/core/api\");\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 type: projectConfig.projectType,\n mode: options.mode,\n skipCache: options.skipCache,\n autoInstall: options.autoInstall,\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,iFACE,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,2BADL,QAAQ,MAAM,EAAE,OAAO,OAAO,CAAC,CACf,OAErC,wBAAwB;EAE3B,MAAM,MAAM,MAAM,mCAEd;GACE,MAAM,cAAc;GACpB,MAAM,cAAc;GACpB,YAAY,cAAc;GAC1B,UAAU,QAAQ;GAClB,UAAU,QAAQ;GAClB,aAAa,cAAc,UAAU;GACrC,MAAM,cAAc;GACpB,MAAM,QAAQ;GACd,WAAW,QAAQ;GACnB,aAAa,QAAQ;GACrB,QAAQ,EACN,YACE,QAAQ,cACR,cAAc,SAAS,OAAO,SAAS,YAC1C;GACF,EACD,QACD,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,6BAEI;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,YAAY,QAAQ;KACrB;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,wDACE,qDACE,QACD,gEACS,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,89 +0,0 @@
1
- import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
2
- import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
3
- import { StormWorkspaceConfig } from "@storm-software/config/types";
4
- import { InlineConfig, PowerlinesCommand } from "powerlines/types/config";
5
-
6
- //#region src/base/base-executor.schema.d.ts
7
- // Generated by powerlines
8
- // Do not edit this file directly
9
- interface BaseExecutorSchema {
10
- /**
11
- * Output Path
12
- *
13
- * The output path for the build
14
- *
15
- * @default "dist/{projectRoot}"
16
- *
17
- * @format path
18
- */
19
- outputPath?: string;
20
-
21
- /**
22
- * TypeScript Configuration File
23
- *
24
- * The path to the tsconfig file
25
- *
26
- *
27
- * @format path
28
- */
29
- tsconfig?: string;
30
-
31
- /**
32
- * Shell Shock Configuration File
33
- *
34
- * The path to the Shell Shock configuration file
35
- *
36
- * @default "{projectRoot}/shell-shock.config.ts"
37
- *
38
- * @format path
39
- */
40
- configFile?: string;
41
-
42
- /**
43
- * Mode
44
- *
45
- * The build mode
46
- *
47
- *
48
- * @enum development,test,production
49
- */
50
- mode?: string;
51
-
52
- /**
53
- * Auto Install
54
- *
55
- * Automatically install dependencies during prepare stage
56
- *
57
- */
58
- autoInstall?: boolean;
59
-
60
- /**
61
- * Skip Cache
62
- *
63
- * Skip the caching mechanism during the build process (if required)
64
- *
65
- */
66
- skipCache?: boolean;
67
-
68
- /**
69
- * Log Level
70
- *
71
- * The log level to use for the build process
72
- *
73
- *
74
- * @enum fatal,error,warn,success,info,debug,trace,silent
75
- */
76
- logLevel?: string;
77
- }
78
- //#endregion
79
- //#region src/base/base-executor.d.ts
80
- type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
81
- projectName: string;
82
- command: TCommand;
83
- options: TExecutorSchema;
84
- inlineConfig: InlineConfig;
85
- workspaceConfig: StormWorkspaceConfig;
86
- };
87
- //#endregion
88
- export { ShellShockExecutorContext as t };
89
- //# sourceMappingURL=base-executor-C986ypeP.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-C986ypeP.d.mts","names":["BaseExecutorSchema"],"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 * Output Path\n * \n * The output path for the build\n * \n * @default \"dist/{projectRoot}\"\n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * TypeScript Configuration File\n * \n * The path to the tsconfig file\n * \n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Shell Shock Configuration File\n * \n * The path to the Shell Shock configuration file\n * \n * @default \"{projectRoot}/shell-shock.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: 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 * 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"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;AC0BA;;;;EAE+C,UAAA,CAAA,EAAA,MAAA;;EAGpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AD/BMA,KC0BL,yBD1BuB,CAAA,iBC2BhB,iBD3BgB,GC2BI,iBD3BJ,EAAA,wBC4BT,kBD5BS,GC4BY,kBD5BZ,CAAA,GC6B/B,eD7B+B,GAAA;;WC+BxB;WACA;EANC,YAAA,EAOI,YAPJ;EACO,eAAA,EAOA,oBAPA;CAAoB"}
@@ -1,89 +0,0 @@
1
- import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
2
- import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
3
- import { StormWorkspaceConfig } from "@storm-software/config/types";
4
- import { InlineConfig, PowerlinesCommand } from "powerlines/types/config";
5
-
6
- //#region src/base/base-executor.schema.d.ts
7
- // Generated by powerlines
8
- // Do not edit this file directly
9
- interface BaseExecutorSchema {
10
- /**
11
- * Output Path
12
- *
13
- * The output path for the build
14
- *
15
- * @default "dist/{projectRoot}"
16
- *
17
- * @format path
18
- */
19
- outputPath?: string;
20
-
21
- /**
22
- * TypeScript Configuration File
23
- *
24
- * The path to the tsconfig file
25
- *
26
- *
27
- * @format path
28
- */
29
- tsconfig?: string;
30
-
31
- /**
32
- * Shell Shock Configuration File
33
- *
34
- * The path to the Shell Shock configuration file
35
- *
36
- * @default "{projectRoot}/shell-shock.config.ts"
37
- *
38
- * @format path
39
- */
40
- configFile?: string;
41
-
42
- /**
43
- * Mode
44
- *
45
- * The build mode
46
- *
47
- *
48
- * @enum development,test,production
49
- */
50
- mode?: string;
51
-
52
- /**
53
- * Auto Install
54
- *
55
- * Automatically install dependencies during prepare stage
56
- *
57
- */
58
- autoInstall?: boolean;
59
-
60
- /**
61
- * Skip Cache
62
- *
63
- * Skip the caching mechanism during the build process (if required)
64
- *
65
- */
66
- skipCache?: boolean;
67
-
68
- /**
69
- * Log Level
70
- *
71
- * The log level to use for the build process
72
- *
73
- *
74
- * @enum fatal,error,warn,success,info,debug,trace,silent
75
- */
76
- logLevel?: string;
77
- }
78
- //#endregion
79
- //#region src/base/base-executor.d.ts
80
- type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
81
- projectName: string;
82
- command: TCommand;
83
- options: TExecutorSchema;
84
- inlineConfig: InlineConfig;
85
- workspaceConfig: StormWorkspaceConfig;
86
- };
87
- //#endregion
88
- export { ShellShockExecutorContext as t };
89
- //# sourceMappingURL=base-executor-Dm4OV5-b.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-Dm4OV5-b.d.cts","names":["BaseExecutorSchema"],"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 * Output Path\n * \n * The output path for the build\n * \n * @default \"dist/{projectRoot}\"\n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * TypeScript Configuration File\n * \n * The path to the tsconfig file\n * \n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Shell Shock Configuration File\n * \n * The path to the Shell Shock configuration file\n * \n * @default \"{projectRoot}/shell-shock.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: 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 * 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"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;AC0BA;;;;EAE+C,UAAA,CAAA,EAAA,MAAA;;EAGpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AD/BMA,KC0BL,yBD1BuB,CAAA,iBC2BhB,iBD3BgB,GC2BI,iBD3BJ,EAAA,wBC4BT,kBD5BS,GC4BY,kBD5BZ,CAAA,GC6B/B,eD7B+B,GAAA;;WC+BxB;WACA;EANC,YAAA,EAOI,YAPJ;EACO,eAAA,EAOA,oBAPA;CAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-WGeWcQ9x.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/types/config\";\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/api\").createShellShock;\n }>(\"@shell-shock/core/api\");\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 type: projectConfig.projectType,\n mode: options.mode,\n skipCache: options.skipCache,\n autoInstall: options.autoInstall,\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,wBAAwB;EAE3B,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,MAAM,cAAc;GACpB,MAAM,QAAQ;GACd,WAAW,QAAQ;GACnB,aAAa,QAAQ;GACrB,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"}