@powerlines/nx 0.10.20 → 0.10.21

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 (40) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{chunk-X7QXBIDS.js → chunk-2SGCH2CX.js} +2 -2
  3. package/dist/{chunk-FVXW6LDE.js → chunk-5ITUD4S2.js} +2981 -2711
  4. package/dist/{chunk-EX3O7O2B.js → chunk-62CNXBCW.js} +2 -2
  5. package/dist/{chunk-TO3WM5BR.js → chunk-7N6FX55G.js} +47 -6
  6. package/dist/{chunk-4F2AZ6CR.mjs → chunk-CCLGRDYC.mjs} +2972 -2702
  7. package/dist/{chunk-WN4V3Q7V.js → chunk-CGD3MCHE.js} +2 -2
  8. package/dist/{chunk-H4DMVLQJ.mjs → chunk-E3C75GKA.mjs} +1 -1
  9. package/dist/{chunk-GHJHSY4S.mjs → chunk-ECV5I6QT.mjs} +1 -1
  10. package/dist/{chunk-SDMJCGHR.mjs → chunk-GXGGZVKT.mjs} +1 -1
  11. package/dist/{chunk-DL2U52BR.mjs → chunk-NHE44K6R.mjs} +1 -1
  12. package/dist/{chunk-UKZ7TQQQ.js → chunk-QOJUBMCX.js} +2 -2
  13. package/dist/{chunk-FEJ2ZSZP.mjs → chunk-R6VKTKIJ.mjs} +1 -1
  14. package/dist/{chunk-RDLEKRFJ.mjs → chunk-TC4UAVKW.mjs} +1 -1
  15. package/dist/{chunk-D7WLM2B6.js → chunk-TS76BSIO.js} +2 -2
  16. package/dist/{chunk-OS7UD4XD.mjs → chunk-XRMEXEW2.mjs} +47 -6
  17. package/dist/{chunk-PWKMRXQL.js → chunk-ZTVXZ5Z2.js} +2 -2
  18. package/dist/executors.js +11 -11
  19. package/dist/executors.mjs +6 -6
  20. package/dist/index.js +14 -14
  21. package/dist/index.mjs +8 -8
  22. package/dist/src/base/base-executor.js +2 -2
  23. package/dist/src/base/base-executor.mjs +1 -1
  24. package/dist/src/executors/build/executor.js +4 -4
  25. package/dist/src/executors/build/executor.mjs +2 -2
  26. package/dist/src/executors/clean/executor.js +4 -4
  27. package/dist/src/executors/clean/executor.mjs +2 -2
  28. package/dist/src/executors/docs/executor.js +4 -4
  29. package/dist/src/executors/docs/executor.mjs +2 -2
  30. package/dist/src/executors/lint/executor.js +4 -4
  31. package/dist/src/executors/lint/executor.mjs +2 -2
  32. package/dist/src/executors/prepare/executor.js +4 -4
  33. package/dist/src/executors/prepare/executor.mjs +2 -2
  34. package/dist/src/helpers/plugin-utilities.js +4 -4
  35. package/dist/src/helpers/plugin-utilities.mjs +1 -1
  36. package/dist/src/plugin/index.js +3 -3
  37. package/dist/src/plugin/index.mjs +2 -2
  38. package/dist/src/types/plugin.d.mts +34 -0
  39. package/dist/src/types/plugin.d.ts +34 -0
  40. package/package.json +13 -13
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkTO3WM5BR_js = require('./chunk-TO3WM5BR.js');
3
+ var chunk7N6FX55G_js = require('./chunk-7N6FX55G.js');
4
4
 
5
5
  // src/plugin/index.ts
6
- var createNodesV2 = chunkTO3WM5BR_js.createNxPlugin({
6
+ var createNodesV2 = chunk7N6FX55G_js.createNxPlugin({
7
7
  framework: "powerlines"
8
8
  });
9
9
 
@@ -168,8 +168,8 @@ function createNxPlugin(opts) {
168
168
  executor: options?.build?.executor || `@${framework}/nx:${options?.build?.targetName || "build"}`,
169
169
  dependsOn: [
170
170
  `^${options?.build?.targetName || "build"}`,
171
- "prepare"
172
- ],
171
+ options?.prepare !== false && `^${options?.prepare?.targetName || "prepare"}`
172
+ ].filter(Boolean),
173
173
  defaultConfiguration: options?.build?.defaultConfiguration || "production",
174
174
  options: {
175
175
  entry: userConfig.entry || "{sourceRoot}/index.ts",
@@ -210,8 +210,8 @@ function createNxPlugin(opts) {
210
210
  executor: options?.lint?.executor || `@${framework}/nx:${options?.lint?.targetName || "lint"}`,
211
211
  dependsOn: [
212
212
  `^${options?.lint?.targetName || "lint"}`,
213
- "prepare"
214
- ],
213
+ options?.prepare !== false && `^${options?.prepare?.targetName || "prepare"}`
214
+ ].filter(Boolean),
215
215
  defaultConfiguration: options?.lint?.defaultConfiguration || "production",
216
216
  options: {
217
217
  entry: userConfig.entry || "{sourceRoot}/index.ts",
@@ -251,8 +251,8 @@ function createNxPlugin(opts) {
251
251
  executor: options?.docs?.executor || `@${framework}/nx:${options?.docs?.targetName || "docs"}`,
252
252
  dependsOn: [
253
253
  `^${options?.docs?.targetName || "docs"}`,
254
- "build"
255
- ],
254
+ options?.build !== false && `^${options?.build?.targetName || "build"}`
255
+ ].filter(Boolean),
256
256
  defaultConfiguration: options?.docs?.defaultConfiguration || "production",
257
257
  options: {
258
258
  entry: userConfig.entry || "{sourceRoot}/index.ts",
@@ -275,6 +275,47 @@ function createNxPlugin(opts) {
275
275
  }
276
276
  };
277
277
  }
278
+ if (options?.deploy !== false && !targets[options?.deploy?.targetName || "deploy"]) {
279
+ targets[options?.deploy?.targetName || "deploy"] = {
280
+ inputs: Array.isArray(options?.deploy?.inputs) ? options.deploy.inputs : nxJson.withNamedInputs([
281
+ ...targetInputs,
282
+ artifactsFolder
283
+ ], options?.deploy?.inputs ? [
284
+ options.deploy.inputs
285
+ ] : [
286
+ "documentation",
287
+ "typescript"
288
+ ]),
289
+ outputs: options?.deploy?.outputs ?? [
290
+ "{options.outputPath}"
291
+ ],
292
+ executor: options?.deploy?.executor || `@${framework}/nx:${options?.deploy?.targetName || "deploy"}`,
293
+ dependsOn: [
294
+ `^${options?.deploy?.targetName || "deploy"}`,
295
+ options?.build !== false && `^${options?.build?.targetName || "build"}`
296
+ ].filter(Boolean),
297
+ defaultConfiguration: options?.deploy?.defaultConfiguration || "production",
298
+ options: {
299
+ entry: userConfig.entry || "{sourceRoot}/index.ts",
300
+ projectType: projectConfig.projectType || userConfig.type,
301
+ tsconfig,
302
+ skipInstalls: userConfig.skipInstalls,
303
+ skipCache: userConfig.skipCache
304
+ },
305
+ configurations: {
306
+ production: {
307
+ mode: "production"
308
+ },
309
+ test: {
310
+ mode: "test"
311
+ },
312
+ development: {
313
+ mode: "development",
314
+ skipCache: true
315
+ }
316
+ }
317
+ };
318
+ }
278
319
  projectTags.setDefaultProjectTags(projectConfig, name);
279
320
  projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
280
321
  overwrite: true