@powerlines/nx 0.11.222 → 0.11.224

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 (287) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{src/base/base-executor.d.ts → base-executor-BKuqWAnc.d.mts} +14 -12
  3. package/dist/base-executor-BKuqWAnc.d.mts.map +1 -0
  4. package/dist/base-executor-CL9md5FK.d.cts +28 -0
  5. package/dist/base-executor-CL9md5FK.d.cts.map +1 -0
  6. package/dist/base-executor-DIVmWt0_.mjs +76 -0
  7. package/dist/base-executor-DIVmWt0_.mjs.map +1 -0
  8. package/dist/base-executor-hfeykVFL.cjs +83 -0
  9. package/dist/base-executor.schema-CH9f7UZz.d.cts +131 -0
  10. package/dist/base-executor.schema-CH9f7UZz.d.cts.map +1 -0
  11. package/dist/base-executor.schema-LJ14f-QU.d.mts +131 -0
  12. package/dist/base-executor.schema-LJ14f-QU.d.mts.map +1 -0
  13. package/dist/base-executor.untyped-Bet42T8_.mjs +139 -0
  14. package/dist/base-executor.untyped-Bet42T8_.mjs.map +1 -0
  15. package/dist/base-executor.untyped-DUgXmZji.cjs +144 -0
  16. package/dist/chunk-CbDLau6x.cjs +34 -0
  17. package/dist/constants-BHT2TeEj.cjs +39 -0
  18. package/dist/constants-DPeeG_si.mjs +34 -0
  19. package/dist/constants-DPeeG_si.mjs.map +1 -0
  20. package/dist/executor-9aTY5L1O.d.mts +155 -0
  21. package/dist/executor-9aTY5L1O.d.mts.map +1 -0
  22. package/dist/executor-BA-Xvw_2.cjs +23 -0
  23. package/dist/executor-BDu-MfKS.d.cts +155 -0
  24. package/dist/executor-BDu-MfKS.d.cts.map +1 -0
  25. package/dist/executor-BaJuosQ2.d.cts +139 -0
  26. package/dist/executor-BaJuosQ2.d.cts.map +1 -0
  27. package/dist/executor-BerELzzO.d.cts +165 -0
  28. package/dist/executor-BerELzzO.d.cts.map +1 -0
  29. package/dist/executor-C12a2R2m.d.mts +165 -0
  30. package/dist/executor-C12a2R2m.d.mts.map +1 -0
  31. package/dist/executor-CQoHBvIx.d.mts +155 -0
  32. package/dist/executor-CQoHBvIx.d.mts.map +1 -0
  33. package/dist/executor-CR4F9h0Q.mjs +13 -0
  34. package/dist/executor-CR4F9h0Q.mjs.map +1 -0
  35. package/dist/executor-CmOJDW7i.cjs +30 -0
  36. package/dist/executor-CsYeTG7f.d.mts +155 -0
  37. package/dist/executor-CsYeTG7f.d.mts.map +1 -0
  38. package/dist/executor-DXs-DQDq.cjs +23 -0
  39. package/dist/executor-DY3Q5btA.mjs +18 -0
  40. package/dist/executor-DY3Q5btA.mjs.map +1 -0
  41. package/dist/executor-DaM4shEF.d.mts +139 -0
  42. package/dist/executor-DaM4shEF.d.mts.map +1 -0
  43. package/dist/executor-DriX4F9a.mjs +13 -0
  44. package/dist/executor-DriX4F9a.mjs.map +1 -0
  45. package/dist/executor-DupYdy7P.cjs +23 -0
  46. package/dist/executor-_6Wimayo.d.cts +155 -0
  47. package/dist/executor-_6Wimayo.d.cts.map +1 -0
  48. package/dist/executor-dakLe5jY.mjs +13 -0
  49. package/dist/executor-dakLe5jY.mjs.map +1 -0
  50. package/dist/executor-gauQV_Qs.mjs +18 -0
  51. package/dist/executor-gauQV_Qs.mjs.map +1 -0
  52. package/dist/executor-q94V36zQ.d.cts +155 -0
  53. package/dist/executor-q94V36zQ.d.cts.map +1 -0
  54. package/dist/executor-tEMakUYi.cjs +30 -0
  55. package/dist/executors-C15iG1sF.mjs +1 -0
  56. package/dist/executors-D7478W2S.cjs +0 -0
  57. package/dist/executors-YbcSXKr5.d.mts +1 -0
  58. package/dist/executors-hX1C9GbI.d.cts +1 -0
  59. package/dist/executors.cjs +13 -0
  60. package/dist/executors.d.cts +9 -0
  61. package/dist/executors.d.mts +9 -11
  62. package/dist/executors.mjs +9 -9
  63. package/dist/generator-DeiwVUqC.mjs +11 -0
  64. package/dist/generator-DeiwVUqC.mjs.map +1 -0
  65. package/dist/generator-Dv37nXlF.d.cts +8 -0
  66. package/dist/generator-Dv37nXlF.d.cts.map +1 -0
  67. package/dist/generator-Uu2ErkQj.cjs +22 -0
  68. package/dist/generator-aA0eb35E.d.mts +8 -0
  69. package/dist/generator-aA0eb35E.d.mts.map +1 -0
  70. package/dist/generators-B8_tB0mD.d.cts +17 -0
  71. package/dist/generators-B8_tB0mD.d.cts.map +1 -0
  72. package/dist/generators-Bi9wzfNx.mjs +1 -0
  73. package/dist/generators-DymCAfYw.d.mts +17 -0
  74. package/dist/generators-DymCAfYw.d.mts.map +1 -0
  75. package/dist/generators-q39_jUCw.cjs +0 -0
  76. package/dist/generators.cjs +5 -0
  77. package/dist/generators.d.cts +3 -0
  78. package/dist/generators.d.mts +3 -19
  79. package/dist/generators.mjs +4 -3
  80. package/dist/index-BAMQksFF.d.mts +8 -0
  81. package/dist/index-BAMQksFF.d.mts.map +1 -0
  82. package/dist/index-C5yJ9lGj.d.cts +8 -0
  83. package/dist/index-C5yJ9lGj.d.cts.map +1 -0
  84. package/dist/index.cjs +21 -0
  85. package/dist/index.d.cts +13 -0
  86. package/dist/index.d.mts +13 -16
  87. package/dist/index.mjs +14 -14
  88. package/dist/plugin-A9gAUguP.cjs +12 -0
  89. package/dist/plugin-CODFOru1.d.cts +243 -0
  90. package/dist/plugin-CODFOru1.d.cts.map +1 -0
  91. package/dist/plugin-Dbr_Q4yi.mjs +8 -0
  92. package/dist/plugin-Dbr_Q4yi.mjs.map +1 -0
  93. package/dist/plugin-DpjoI0QS.d.mts +243 -0
  94. package/dist/plugin-DpjoI0QS.d.mts.map +1 -0
  95. package/dist/plugin-utilities-Ci8AHf-K.mjs +347 -0
  96. package/dist/plugin-utilities-Ci8AHf-K.mjs.map +1 -0
  97. package/dist/plugin-utilities-Ddlc3SiI.cjs +366 -0
  98. package/dist/src/base/base-executor.cjs +3 -0
  99. package/dist/src/base/base-executor.d.cts +3 -0
  100. package/dist/src/base/base-executor.d.mts +3 -26
  101. package/dist/src/base/base-executor.mjs +3 -3
  102. package/dist/src/base/base-executor.schema.d.cjs +0 -0
  103. package/dist/src/base/base-executor.schema.d.cts +2 -0
  104. package/dist/src/base/base-executor.schema.d.mts +2 -0
  105. package/dist/src/base/base-executor.untyped.cjs +3 -0
  106. package/dist/src/base/base-executor.untyped.d.cts +6 -0
  107. package/dist/src/base/base-executor.untyped.d.cts.map +1 -0
  108. package/dist/src/base/base-executor.untyped.d.mts +5 -3
  109. package/dist/src/base/base-executor.untyped.d.mts.map +1 -0
  110. package/dist/src/base/base-executor.untyped.mjs +3 -2
  111. package/dist/src/executors/build/executor.cjs +6 -0
  112. package/dist/src/executors/build/executor.d.cts +4 -0
  113. package/dist/src/executors/build/executor.d.mts +4 -7
  114. package/dist/src/executors/build/executor.mjs +4 -4
  115. package/dist/src/executors/build/untyped.cjs +26 -0
  116. package/dist/src/executors/build/untyped.d.cts +6 -0
  117. package/dist/src/executors/build/untyped.d.cts.map +1 -0
  118. package/dist/src/executors/build/untyped.d.mts +5 -3
  119. package/dist/src/executors/build/untyped.d.mts.map +1 -0
  120. package/dist/src/executors/build/untyped.mjs +23 -30
  121. package/dist/src/executors/build/untyped.mjs.map +1 -0
  122. package/dist/src/executors/clean/executor.cjs +6 -0
  123. package/dist/src/executors/clean/executor.d.cts +4 -0
  124. package/dist/src/executors/clean/executor.d.mts +4 -7
  125. package/dist/src/executors/clean/executor.mjs +4 -4
  126. package/dist/src/executors/clean/untyped.cjs +17 -0
  127. package/dist/src/executors/clean/untyped.d.cts +6 -0
  128. package/dist/src/executors/clean/untyped.d.cts.map +1 -0
  129. package/dist/src/executors/clean/untyped.d.mts +5 -3
  130. package/dist/src/executors/clean/untyped.d.mts.map +1 -0
  131. package/dist/src/executors/clean/untyped.mjs +12 -10
  132. package/dist/src/executors/clean/untyped.mjs.map +1 -0
  133. package/dist/src/executors/docs/executor.cjs +6 -0
  134. package/dist/src/executors/docs/executor.d.cts +4 -0
  135. package/dist/src/executors/docs/executor.d.mts +4 -7
  136. package/dist/src/executors/docs/executor.mjs +4 -4
  137. package/dist/src/executors/docs/untyped.cjs +18 -0
  138. package/dist/src/executors/docs/untyped.d.cts +6 -0
  139. package/dist/src/executors/docs/untyped.d.cts.map +1 -0
  140. package/dist/src/executors/docs/untyped.d.mts +5 -3
  141. package/dist/src/executors/docs/untyped.d.mts.map +1 -0
  142. package/dist/src/executors/docs/untyped.mjs +15 -13
  143. package/dist/src/executors/docs/untyped.mjs.map +1 -0
  144. package/dist/src/executors/lint/executor.cjs +6 -0
  145. package/dist/src/executors/lint/executor.d.cts +4 -0
  146. package/dist/src/executors/lint/executor.d.mts +4 -7
  147. package/dist/src/executors/lint/executor.mjs +4 -4
  148. package/dist/src/executors/lint/untyped.cjs +18 -0
  149. package/dist/src/executors/lint/untyped.d.cts +6 -0
  150. package/dist/src/executors/lint/untyped.d.cts.map +1 -0
  151. package/dist/src/executors/lint/untyped.d.mts +5 -3
  152. package/dist/src/executors/lint/untyped.d.mts.map +1 -0
  153. package/dist/src/executors/lint/untyped.mjs +15 -13
  154. package/dist/src/executors/lint/untyped.mjs.map +1 -0
  155. package/dist/src/executors/prepare/executor.cjs +6 -0
  156. package/dist/src/executors/prepare/executor.d.cts +4 -0
  157. package/dist/src/executors/prepare/executor.d.mts +4 -7
  158. package/dist/src/executors/prepare/executor.mjs +4 -4
  159. package/dist/src/executors/prepare/untyped.cjs +4 -0
  160. package/dist/src/executors/prepare/untyped.d.cts +6 -0
  161. package/dist/src/executors/prepare/untyped.d.cts.map +1 -0
  162. package/dist/src/executors/prepare/untyped.d.mts +5 -3
  163. package/dist/src/executors/prepare/untyped.d.mts.map +1 -0
  164. package/dist/src/executors/prepare/untyped.mjs +4 -3
  165. package/dist/src/generators/sync/generator.cjs +5 -0
  166. package/dist/src/generators/sync/generator.d.cts +2 -0
  167. package/dist/src/generators/sync/generator.d.mts +2 -6
  168. package/dist/src/generators/sync/generator.mjs +3 -2
  169. package/dist/src/generators/sync/untyped.cjs +23 -0
  170. package/dist/src/generators/sync/untyped.d.cts +6 -0
  171. package/dist/src/generators/sync/untyped.d.cts.map +1 -0
  172. package/dist/src/generators/sync/untyped.d.mts +5 -3
  173. package/dist/src/generators/sync/untyped.d.mts.map +1 -0
  174. package/dist/src/generators/sync/untyped.mjs +18 -16
  175. package/dist/src/generators/sync/untyped.mjs.map +1 -0
  176. package/dist/src/helpers/constants.cjs +3 -0
  177. package/dist/src/helpers/{constants.d.ts → constants.d.cts} +3 -1
  178. package/dist/src/helpers/constants.d.cts.map +1 -0
  179. package/dist/src/helpers/constants.d.mts +3 -1
  180. package/dist/src/helpers/constants.d.mts.map +1 -0
  181. package/dist/src/helpers/constants.mjs +3 -2
  182. package/dist/src/helpers/plugin-utilities.cjs +6 -0
  183. package/dist/src/helpers/plugin-utilities.d.cts +58 -0
  184. package/dist/src/helpers/plugin-utilities.d.cts.map +1 -0
  185. package/dist/src/helpers/plugin-utilities.d.mts +34 -31
  186. package/dist/src/helpers/plugin-utilities.d.mts.map +1 -0
  187. package/dist/src/helpers/plugin-utilities.mjs +4 -4
  188. package/dist/src/plugin/index.cjs +5 -0
  189. package/dist/src/plugin/index.d.cts +3 -0
  190. package/dist/src/plugin/index.d.mts +3 -6
  191. package/dist/src/plugin/index.mjs +5 -5
  192. package/dist/src/types/plugin.cjs +0 -0
  193. package/dist/src/types/plugin.d.cts +2 -0
  194. package/dist/src/types/plugin.d.mts +2 -241
  195. package/dist/src/types/plugin.mjs +1 -1
  196. package/dist/untyped-BIEzjl_J.mjs +27 -0
  197. package/dist/untyped-BIEzjl_J.mjs.map +1 -0
  198. package/dist/untyped-DKPJSDgJ.cjs +32 -0
  199. package/executors.json +1 -1
  200. package/generators.json +1 -1
  201. package/package.json +110 -93
  202. package/dist/chunk-23KFTIT2.mjs +0 -1
  203. package/dist/chunk-326QB2VK.mjs +0 -14
  204. package/dist/chunk-3BI2YVJ3.js +0 -156
  205. package/dist/chunk-3SNFDQEM.js +0 -26
  206. package/dist/chunk-4OMPO3GC.mjs +0 -154
  207. package/dist/chunk-5DJ7NANG.mjs +0 -15
  208. package/dist/chunk-5NTN2EU4.js +0 -18
  209. package/dist/chunk-7JSSYBGU.mjs +0 -15
  210. package/dist/chunk-ADMWJVSB.js +0 -374
  211. package/dist/chunk-GCIPEE4T.mjs +0 -28
  212. package/dist/chunk-IC47MFKB.mjs +0 -29
  213. package/dist/chunk-IOBDAGVL.js +0 -30
  214. package/dist/chunk-IQVSZEQ6.js +0 -31
  215. package/dist/chunk-JMPYKLTR.js +0 -18
  216. package/dist/chunk-JNVDFQTY.mjs +0 -4900
  217. package/dist/chunk-N2YKXZ5R.js +0 -2
  218. package/dist/chunk-NXR5JH7F.js +0 -10
  219. package/dist/chunk-O6YSETKJ.mjs +0 -4
  220. package/dist/chunk-O7Z4RX77.js +0 -4928
  221. package/dist/chunk-OFHFZ5IV.js +0 -18
  222. package/dist/chunk-PM55S4AK.mjs +0 -19
  223. package/dist/chunk-RLODK6TM.js +0 -281
  224. package/dist/chunk-RLYU2FOM.mjs +0 -366
  225. package/dist/chunk-SHUYVCID.js +0 -6
  226. package/dist/chunk-SQV3SFA4.mjs +0 -8
  227. package/dist/chunk-U4JIT4YZ.mjs +0 -19
  228. package/dist/chunk-UV4HQO3Y.mjs +0 -1
  229. package/dist/chunk-VYOHHZ4P.mjs +0 -15
  230. package/dist/chunk-W75JGXP2.mjs +0 -260
  231. package/dist/chunk-WUJKJGEW.js +0 -17
  232. package/dist/chunk-X666OUXC.js +0 -26
  233. package/dist/chunk-XO62WWX4.js +0 -2
  234. package/dist/executor-AQVlPFta.d.ts +0 -163
  235. package/dist/executor-BNmIhtpF.d.mts +0 -153
  236. package/dist/executor-C0A5mFLO.d.mts +0 -137
  237. package/dist/executor-Cep8-Y3A.d.mts +0 -153
  238. package/dist/executor-CkyahICv.d.ts +0 -137
  239. package/dist/executor-DOsxw-Ih.d.ts +0 -153
  240. package/dist/executor-DUQbjUVt.d.ts +0 -153
  241. package/dist/executor-O3MDQSFT.d.ts +0 -153
  242. package/dist/executor-U4mVkhQK.d.mts +0 -163
  243. package/dist/executor-Xt5qNzC5.d.mts +0 -153
  244. package/dist/executors.d.ts +0 -11
  245. package/dist/executors.js +0 -34
  246. package/dist/generators.d.ts +0 -19
  247. package/dist/generators.js +0 -16
  248. package/dist/index.d.ts +0 -16
  249. package/dist/index.js +0 -51
  250. package/dist/src/base/base-executor.js +0 -12
  251. package/dist/src/base/base-executor.schema.d.d.mts +0 -129
  252. package/dist/src/base/base-executor.schema.d.d.ts +0 -129
  253. package/dist/src/base/base-executor.schema.d.js +0 -2
  254. package/dist/src/base/base-executor.schema.d.mjs +0 -1
  255. package/dist/src/base/base-executor.untyped.d.ts +0 -5
  256. package/dist/src/base/base-executor.untyped.js +0 -10
  257. package/dist/src/executors/build/executor.d.ts +0 -7
  258. package/dist/src/executors/build/executor.js +0 -19
  259. package/dist/src/executors/build/untyped.d.ts +0 -5
  260. package/dist/src/executors/build/untyped.js +0 -37
  261. package/dist/src/executors/clean/executor.d.ts +0 -7
  262. package/dist/src/executors/clean/executor.js +0 -19
  263. package/dist/src/executors/clean/untyped.d.ts +0 -5
  264. package/dist/src/executors/clean/untyped.js +0 -19
  265. package/dist/src/executors/docs/executor.d.ts +0 -7
  266. package/dist/src/executors/docs/executor.js +0 -19
  267. package/dist/src/executors/docs/untyped.d.ts +0 -5
  268. package/dist/src/executors/docs/untyped.js +0 -20
  269. package/dist/src/executors/lint/executor.d.ts +0 -7
  270. package/dist/src/executors/lint/executor.js +0 -19
  271. package/dist/src/executors/lint/untyped.d.ts +0 -5
  272. package/dist/src/executors/lint/untyped.js +0 -20
  273. package/dist/src/executors/prepare/executor.d.ts +0 -7
  274. package/dist/src/executors/prepare/executor.js +0 -19
  275. package/dist/src/executors/prepare/untyped.d.ts +0 -5
  276. package/dist/src/executors/prepare/untyped.js +0 -11
  277. package/dist/src/generators/sync/generator.d.ts +0 -6
  278. package/dist/src/generators/sync/generator.js +0 -17
  279. package/dist/src/generators/sync/untyped.d.ts +0 -5
  280. package/dist/src/generators/sync/untyped.js +0 -25
  281. package/dist/src/helpers/constants.js +0 -11
  282. package/dist/src/helpers/plugin-utilities.d.ts +0 -55
  283. package/dist/src/helpers/plugin-utilities.js +0 -21
  284. package/dist/src/plugin/index.d.ts +0 -6
  285. package/dist/src/plugin/index.js +0 -14
  286. package/dist/src/types/plugin.d.ts +0 -241
  287. package/dist/src/types/plugin.js +0 -2
@@ -1,15 +0,0 @@
1
- import { withExecutor } from './chunk-JNVDFQTY.mjs';
2
- import { __name } from './chunk-O6YSETKJ.mjs';
3
-
4
- // src/executors/clean/executor.ts
5
- async function executorFn(context, api) {
6
- await api.clean(context.inlineConfig);
7
- return {
8
- success: true
9
- };
10
- }
11
- __name(executorFn, "executorFn");
12
- var executor = withExecutor("clean", executorFn);
13
- var executor_default = executor;
14
-
15
- export { executorFn, executor_default };
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkO7Z4RX77_js = require('./chunk-O7Z4RX77.js');
4
- var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
-
6
- // src/executors/docs/executor.ts
7
- async function executorFn(context, api) {
8
- await api.docs(context.inlineConfig);
9
- return {
10
- success: true
11
- };
12
- }
13
- chunkSHUYVCID_js.__name(executorFn, "executorFn");
14
- var executor = chunkO7Z4RX77_js.withExecutor("docs", executorFn);
15
- var executor_default = executor;
16
-
17
- exports.executorFn = executorFn;
18
- exports.executor_default = executor_default;
@@ -1,15 +0,0 @@
1
- import { withExecutor } from './chunk-JNVDFQTY.mjs';
2
- import { __name } from './chunk-O6YSETKJ.mjs';
3
-
4
- // src/executors/docs/executor.ts
5
- async function executorFn(context, api) {
6
- await api.docs(context.inlineConfig);
7
- return {
8
- success: true
9
- };
10
- }
11
- __name(executorFn, "executorFn");
12
- var executor = withExecutor("docs", executorFn);
13
- var executor_default = executor;
14
-
15
- export { executorFn, executor_default };
@@ -1,374 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkRLODK6TM_js = require('./chunk-RLODK6TM.js');
4
- var chunkIQVSZEQ6_js = require('./chunk-IQVSZEQ6.js');
5
- var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
6
- var devkit = require('@nx/devkit');
7
- var nxJson = require('@storm-software/workspace-tools/utils/nx-json');
8
- var pluginHelpers = require('@storm-software/workspace-tools/utils/plugin-helpers');
9
- var projectTags = require('@storm-software/workspace-tools/utils/project-tags');
10
- var getEnvPaths = require('@stryke/env/get-env-paths');
11
- var exists = require('@stryke/fs/exists');
12
- var murmurhash = require('@stryke/hash/murmurhash');
13
- var joinPaths = require('@stryke/path/join-paths');
14
- var kebabCase = require('@stryke/string-format/kebab-case');
15
- var titleCase = require('@stryke/string-format/title-case');
16
- var isError = require('@stryke/type-checks/is-error');
17
- var isSetObject = require('@stryke/type-checks/is-set-object');
18
- var defu = require('defu');
19
- var jiti = require('jiti');
20
- var promises = require('fs/promises');
21
- var nxJson_js = require('nx/src/config/nx-json.js');
22
- var packageJson_js = require('nx/src/utils/package-json.js');
23
-
24
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
25
-
26
- var defu__default = /*#__PURE__*/_interopDefault(defu);
27
-
28
- function getNxTargetInputs(framework) {
29
- return chunkIQVSZEQ6_js.CONFIG_INPUTS.map((input) => input.replace("{framework}", framework));
30
- }
31
- chunkSHUYVCID_js.__name(getNxTargetInputs, "getNxTargetInputs");
32
- function getNxPluginInputs(framework) {
33
- return `**/{${getNxTargetInputs(framework).map((input) => input.replace("{projectRoot}/", "")).join(",")}}`;
34
- }
35
- chunkSHUYVCID_js.__name(getNxPluginInputs, "getNxPluginInputs");
36
- function createNxPlugin(opts) {
37
- const framework = opts?.framework || "powerlines";
38
- const title = `${titleCase.titleCase(framework)} Nx Plugin`;
39
- try {
40
- const name = opts?.name || `${framework}/nx/plugin`;
41
- const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
42
- const targetInputs = getNxTargetInputs(framework);
43
- const pluginInputs = getNxPluginInputs(framework);
44
- return [
45
- pluginInputs,
46
- async (configFiles, options, contextV2) => {
47
- if (options?.verboseOutput) {
48
- console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Initializing the ${title} for the following inputs: ${pluginInputs}`);
49
- }
50
- const envPaths = getEnvPaths.getEnvPaths({
51
- orgId: "storm-software",
52
- appId: framework,
53
- workspaceRoot: contextV2.workspaceRoot
54
- });
55
- if (!envPaths.cache) {
56
- throw new Error("The cache directory could not be determined.");
57
- }
58
- const nxJson$1 = nxJson_js.readNxJson(contextV2.workspaceRoot);
59
- const resolver = jiti.createJiti(contextV2.workspaceRoot, {
60
- debug: !!options?.debug,
61
- interopDefault: true,
62
- fsCache: joinPaths.joinPaths(envPaths.cache, "nx-plugin", murmurhash.murmurhash(contextV2.workspaceRoot, {
63
- maxLength: chunkRLODK6TM_js.ROOT_HASH_LENGTH
64
- }), "jiti"),
65
- moduleCache: true
66
- });
67
- return devkit.createNodesFromFiles(async (configFile, _, context) => {
68
- try {
69
- const projectRoot = pluginHelpers.getProjectRoot(configFile, contextV2.workspaceRoot);
70
- if (!projectRoot) {
71
- console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - package.json and ${framework} configuration files (i.e. ${framework}.config.ts) must be located in the project root directory: ${configFile}`);
72
- return {};
73
- }
74
- const root = pluginHelpers.getRoot(projectRoot, context);
75
- if (options?.verboseOutput) {
76
- console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
77
- }
78
- const userConfig = await chunkRLODK6TM_js.loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
79
- if (!exists.existsSync(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
80
- if (options?.verboseOutput) {
81
- console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
82
- }
83
- return {};
84
- }
85
- const packageJsonContent = await promises.readFile(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"), "utf8");
86
- if (!packageJsonContent) {
87
- if (options?.verboseOutput) {
88
- console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No package.json file found for project in root directory ${projectRoot}`);
89
- }
90
- return {};
91
- }
92
- const packageJson = JSON.parse(packageJsonContent);
93
- if (!userConfig.configFile && !packageJson?.storm) {
94
- if (options?.verboseOutput) {
95
- console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
96
- }
97
- return {};
98
- }
99
- const projectConfig = pluginHelpers.getProjectConfigFromProjectRoot(projectRoot, packageJson);
100
- if (!projectConfig) {
101
- if (options?.verboseOutput) {
102
- console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No project configuration found for project in root directory ${projectRoot}`);
103
- }
104
- return {};
105
- }
106
- const targets = packageJson_js.readTargetsFromPackageJson(packageJson, nxJson$1, projectRoot, context.workspaceRoot);
107
- if (options?.verboseOutput) {
108
- console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
109
- }
110
- if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
111
- targets[options?.clean?.targetName || "clean"] = {
112
- cache: true,
113
- inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : nxJson.withNamedInputs(targetInputs, [
114
- options?.clean?.inputs || "typescript"
115
- ]),
116
- outputs: options?.clean?.outputs,
117
- executor: options?.clean?.executor || `@${framework}/nx:${options?.clean?.targetName || "clean"}`,
118
- dependsOn: options?.clean?.dependsOn ?? [
119
- `^${options?.clean?.targetName || "clean"}`
120
- ],
121
- defaultConfiguration: options?.clean?.defaultConfiguration || "production",
122
- options: {
123
- outputPath: userConfig.output?.outputPath || "dist/{projectRoot}",
124
- projectType: projectConfig.projectType || userConfig.projectType,
125
- autoInstall: userConfig.autoInstall
126
- },
127
- configurations: {
128
- production: {
129
- mode: "production"
130
- },
131
- test: {
132
- mode: "test"
133
- },
134
- development: {
135
- mode: "development",
136
- skipCache: true
137
- }
138
- }
139
- };
140
- }
141
- if (options?.prepare !== false && !targets[options?.prepare?.targetName || "prepare"]) {
142
- targets[options?.prepare?.targetName || "prepare"] = {
143
- cache: true,
144
- inputs: Array.isArray(options?.prepare?.inputs) ? options.prepare.inputs : nxJson.withNamedInputs(targetInputs, [
145
- options?.prepare?.inputs || "typescript"
146
- ]),
147
- outputs: options?.prepare?.outputs ?? [
148
- artifactsFolder
149
- ],
150
- executor: options?.prepare?.executor || `@${framework}/nx:${options?.prepare?.targetName || "prepare"}`,
151
- dependsOn: options?.prepare?.dependsOn ?? [
152
- `^${options?.prepare?.targetName || "build"}`,
153
- options?.clean !== false && `${options?.clean?.targetName || "clean"}`
154
- ].filter(Boolean),
155
- defaultConfiguration: options?.prepare?.defaultConfiguration || "production",
156
- options: {
157
- input: userConfig.input,
158
- projectType: projectConfig.projectType || userConfig.projectType,
159
- autoInstall: userConfig.autoInstall,
160
- skipCache: userConfig.skipCache
161
- },
162
- configurations: {
163
- production: {
164
- mode: "production"
165
- },
166
- test: {
167
- mode: "test"
168
- },
169
- development: {
170
- mode: "development",
171
- skipCache: true
172
- }
173
- }
174
- };
175
- }
176
- if (options?.build !== false && !targets[options?.build?.targetName || "build"]) {
177
- targets[options?.build?.targetName || "build"] = {
178
- cache: true,
179
- inputs: Array.isArray(options?.build?.inputs) ? options.build.inputs : nxJson.withNamedInputs(targetInputs, [
180
- options?.build?.inputs || "typescript"
181
- ]),
182
- outputs: options?.build?.outputs ?? [
183
- "{options.outputPath}"
184
- ],
185
- executor: options?.build?.executor || `@${framework}/nx:${options?.build?.targetName || "build"}`,
186
- dependsOn: options?.build?.dependsOn ?? [
187
- `^${options?.build?.targetName || "build"}`,
188
- userConfig.skipCache ? void 0 : isSetObject.isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
189
- ].filter(Boolean),
190
- defaultConfiguration: options?.build?.defaultConfiguration || "production",
191
- options: {
192
- input: userConfig.input,
193
- outputPath: userConfig.output?.outputPath || "dist/{projectRoot}",
194
- projectType: projectConfig.projectType || userConfig.projectType,
195
- autoInstall: userConfig.autoInstall,
196
- skipCache: userConfig.skipCache
197
- },
198
- configurations: {
199
- production: {
200
- mode: "production"
201
- },
202
- test: {
203
- mode: "test"
204
- },
205
- development: {
206
- mode: "development",
207
- skipCache: true
208
- }
209
- }
210
- };
211
- }
212
- if (options?.lint !== false && !targets[options?.lint?.targetName || "lint"]) {
213
- targets[options?.lint?.targetName || "lint"] = {
214
- cache: true,
215
- inputs: Array.isArray(options?.lint?.inputs) ? options.lint.inputs : nxJson.withNamedInputs([
216
- ...targetInputs,
217
- artifactsFolder
218
- ], options?.lint?.inputs ? [
219
- options.lint.inputs
220
- ] : [
221
- "linting",
222
- "typescript"
223
- ]),
224
- outputs: options?.lint?.outputs ?? [
225
- "{options.outputPath}"
226
- ],
227
- executor: options?.lint?.executor || `@${framework}/nx:${options?.lint?.targetName || "lint"}`,
228
- dependsOn: options?.lint?.dependsOn ?? [
229
- `^${options?.lint?.targetName || "lint"}`,
230
- userConfig.skipCache ? void 0 : isSetObject.isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
231
- ].filter(Boolean),
232
- defaultConfiguration: options?.lint?.defaultConfiguration || "production",
233
- options: {
234
- input: userConfig.input,
235
- projectType: projectConfig.projectType || userConfig.projectType,
236
- autoInstall: userConfig.autoInstall,
237
- skipCache: userConfig.skipCache
238
- },
239
- configurations: {
240
- production: {
241
- mode: "production"
242
- },
243
- test: {
244
- mode: "test"
245
- },
246
- development: {
247
- mode: "development",
248
- skipCache: true
249
- }
250
- }
251
- };
252
- }
253
- if (options?.docs !== false && !targets[options?.docs?.targetName || "docs"]) {
254
- targets[options?.docs?.targetName || "docs"] = {
255
- cache: true,
256
- inputs: Array.isArray(options?.docs?.inputs) ? options.docs.inputs : nxJson.withNamedInputs([
257
- ...targetInputs,
258
- artifactsFolder
259
- ], options?.docs?.inputs ? [
260
- options.docs.inputs
261
- ] : [
262
- "documentation",
263
- "typescript"
264
- ]),
265
- outputs: options?.docs?.outputs ?? [
266
- "{options.outputPath}"
267
- ],
268
- executor: options?.docs?.executor || `@${framework}/nx:${options?.docs?.targetName || "docs"}`,
269
- dependsOn: options?.docs?.dependsOn ?? [
270
- `^${options?.docs?.targetName || "docs"}`,
271
- options?.build !== false && `${options?.build?.targetName || "build"}`,
272
- userConfig.skipCache ? void 0 : isSetObject.isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
273
- ].filter(Boolean),
274
- defaultConfiguration: options?.docs?.defaultConfiguration || "production",
275
- options: {
276
- input: userConfig.input,
277
- projectType: projectConfig.projectType || userConfig.projectType,
278
- autoInstall: userConfig.autoInstall,
279
- skipCache: userConfig.skipCache
280
- },
281
- configurations: {
282
- production: {
283
- mode: "production"
284
- },
285
- test: {
286
- mode: "test"
287
- },
288
- development: {
289
- mode: "development",
290
- skipCache: true
291
- }
292
- }
293
- };
294
- }
295
- if (options?.deploy !== false && !targets[options?.deploy?.targetName || "deploy"]) {
296
- targets[options?.deploy?.targetName || "deploy"] = {
297
- inputs: Array.isArray(options?.deploy?.inputs) ? options.deploy.inputs : nxJson.withNamedInputs([
298
- ...targetInputs,
299
- artifactsFolder
300
- ], options?.deploy?.inputs ? [
301
- options.deploy.inputs
302
- ] : [
303
- "documentation",
304
- "typescript"
305
- ]),
306
- outputs: options?.deploy?.outputs ?? [
307
- "{options.outputPath}"
308
- ],
309
- executor: options?.deploy?.executor || `@${framework}/nx:${options?.deploy?.targetName || "deploy"}`,
310
- dependsOn: options?.deploy?.dependsOn ?? [
311
- `^${options?.deploy?.targetName || "deploy"}`,
312
- options?.build !== false && `${options?.build?.targetName || "build"}`,
313
- userConfig.skipCache ? void 0 : isSetObject.isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
314
- ].filter(Boolean),
315
- defaultConfiguration: options?.deploy?.defaultConfiguration || "production",
316
- options: {
317
- input: userConfig.input,
318
- projectType: projectConfig.projectType || userConfig.projectType,
319
- autoInstall: userConfig.autoInstall,
320
- skipCache: userConfig.skipCache
321
- },
322
- configurations: {
323
- production: {
324
- mode: "production"
325
- },
326
- test: {
327
- mode: "test"
328
- },
329
- development: {
330
- mode: "development",
331
- skipCache: true
332
- }
333
- }
334
- };
335
- }
336
- projectTags.setDefaultProjectTags(projectConfig, name);
337
- projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.projectType || "library", {
338
- overwrite: true
339
- });
340
- if (options?.verboseOutput) {
341
- console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
342
- }
343
- return {
344
- projects: {
345
- [root]: defu__default.default(projectConfig, {
346
- name: kebabCase.kebabCase(userConfig.name),
347
- projectType: userConfig.projectType || "library",
348
- root,
349
- sourceRoot: joinPaths.joinPaths(root, "src"),
350
- targets
351
- })
352
- }
353
- };
354
- } catch (error) {
355
- console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - ${isError.isError(error) ? error.message : "Unknown fatal error"}`);
356
- throw new Error(`The ${title} failed to process the project configuration for file ${configFile}. See previous logs for more details.`, {
357
- cause: error instanceof Error ? error : void 0
358
- });
359
- }
360
- }, configFiles, options, contextV2);
361
- }
362
- ];
363
- } catch (error) {
364
- console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - ${isError.isError(error) ? error.message : "Unknown fatal error during plugin initialization"}`);
365
- throw new Error(`Failed to initialize the ${title}. See previous logs for more details.`, {
366
- cause: error instanceof Error ? error : void 0
367
- });
368
- }
369
- }
370
- chunkSHUYVCID_js.__name(createNxPlugin, "createNxPlugin");
371
-
372
- exports.createNxPlugin = createNxPlugin;
373
- exports.getNxPluginInputs = getNxPluginInputs;
374
- exports.getNxTargetInputs = getNxTargetInputs;
@@ -1,28 +0,0 @@
1
- import { base_executor_untyped_default } from './chunk-4OMPO3GC.mjs';
2
- import { defineUntypedSchema } from 'untyped';
3
-
4
- var untyped_default = defineUntypedSchema({
5
- ...base_executor_untyped_default,
6
- $schema: {
7
- id: "PrepareExecutorSchema",
8
- title: "Prepare Executor",
9
- description: "A type definition for the Powerlines - Prepare executor schema",
10
- required: []
11
- },
12
- autoInstall: {
13
- $schema: {
14
- title: "Auto Install",
15
- type: "boolean",
16
- description: "Automatically install dependencies during prepare stage"
17
- }
18
- },
19
- skipCache: {
20
- $schema: {
21
- title: "Skip Cache",
22
- type: "boolean",
23
- description: "Skip the caching mechanism during the build process (if required)"
24
- }
25
- }
26
- });
27
-
28
- export { untyped_default };
@@ -1,29 +0,0 @@
1
- // src/helpers/constants.ts
2
- var CONFIG_INPUTS = [
3
- "{projectRoot}/{framework}.json",
4
- "{projectRoot}/{framework}.*.json",
5
- "{projectRoot}/{framework}.jsonc",
6
- "{projectRoot}/{framework}.*.jsonc",
7
- "{projectRoot}/{framework}.json5",
8
- "{projectRoot}/{framework}.*.json5",
9
- "{projectRoot}/{framework}.yaml",
10
- "{projectRoot}/{framework}.*.yaml",
11
- "{projectRoot}/{framework}.yml",
12
- "{projectRoot}/{framework}.*.yml",
13
- "{projectRoot}/{framework}.toml",
14
- "{projectRoot}/{framework}.*.toml",
15
- "{projectRoot}/{framework}.config.js",
16
- "{projectRoot}/{framework}.*.config.js",
17
- "{projectRoot}/{framework}.config.cjs",
18
- "{projectRoot}/{framework}.*.config.cjs",
19
- "{projectRoot}/{framework}.config.mjs",
20
- "{projectRoot}/{framework}.*.config.mjs",
21
- "{projectRoot}/{framework}.config.ts",
22
- "{projectRoot}/{framework}.*.config.ts",
23
- "{projectRoot}/{framework}.config.cts",
24
- "{projectRoot}/{framework}.*.config.cts",
25
- "{projectRoot}/{framework}.config.mts",
26
- "{projectRoot}/{framework}.*.config.mts"
27
- ];
28
-
29
- export { CONFIG_INPUTS };
@@ -1,30 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk3BI2YVJ3_js = require('./chunk-3BI2YVJ3.js');
4
- var untyped = require('untyped');
5
-
6
- var untyped_default = untyped.defineUntypedSchema({
7
- ...chunk3BI2YVJ3_js.base_executor_untyped_default,
8
- $schema: {
9
- id: "PrepareExecutorSchema",
10
- title: "Prepare Executor",
11
- description: "A type definition for the Powerlines - Prepare executor schema",
12
- required: []
13
- },
14
- autoInstall: {
15
- $schema: {
16
- title: "Auto Install",
17
- type: "boolean",
18
- description: "Automatically install dependencies during prepare stage"
19
- }
20
- },
21
- skipCache: {
22
- $schema: {
23
- title: "Skip Cache",
24
- type: "boolean",
25
- description: "Skip the caching mechanism during the build process (if required)"
26
- }
27
- }
28
- });
29
-
30
- exports.untyped_default = untyped_default;
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- // src/helpers/constants.ts
4
- var CONFIG_INPUTS = [
5
- "{projectRoot}/{framework}.json",
6
- "{projectRoot}/{framework}.*.json",
7
- "{projectRoot}/{framework}.jsonc",
8
- "{projectRoot}/{framework}.*.jsonc",
9
- "{projectRoot}/{framework}.json5",
10
- "{projectRoot}/{framework}.*.json5",
11
- "{projectRoot}/{framework}.yaml",
12
- "{projectRoot}/{framework}.*.yaml",
13
- "{projectRoot}/{framework}.yml",
14
- "{projectRoot}/{framework}.*.yml",
15
- "{projectRoot}/{framework}.toml",
16
- "{projectRoot}/{framework}.*.toml",
17
- "{projectRoot}/{framework}.config.js",
18
- "{projectRoot}/{framework}.*.config.js",
19
- "{projectRoot}/{framework}.config.cjs",
20
- "{projectRoot}/{framework}.*.config.cjs",
21
- "{projectRoot}/{framework}.config.mjs",
22
- "{projectRoot}/{framework}.*.config.mjs",
23
- "{projectRoot}/{framework}.config.ts",
24
- "{projectRoot}/{framework}.*.config.ts",
25
- "{projectRoot}/{framework}.config.cts",
26
- "{projectRoot}/{framework}.*.config.cts",
27
- "{projectRoot}/{framework}.config.mts",
28
- "{projectRoot}/{framework}.*.config.mts"
29
- ];
30
-
31
- exports.CONFIG_INPUTS = CONFIG_INPUTS;
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkO7Z4RX77_js = require('./chunk-O7Z4RX77.js');
4
- var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
-
6
- // src/executors/clean/executor.ts
7
- async function executorFn(context, api) {
8
- await api.clean(context.inlineConfig);
9
- return {
10
- success: true
11
- };
12
- }
13
- chunkSHUYVCID_js.__name(executorFn, "executorFn");
14
- var executor = chunkO7Z4RX77_js.withExecutor("clean", executorFn);
15
- var executor_default = executor;
16
-
17
- exports.executorFn = executorFn;
18
- exports.executor_default = executor_default;