@powerlines/nx 0.10.15 → 0.10.17

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 (54) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/{chunk-FZWXH2M7.js → chunk-27KELMBV.js} +2 -2
  3. package/dist/chunk-7R5TX4YB.js +10 -0
  4. package/dist/{chunk-32RH3DSY.js → chunk-AACX73LZ.js} +30 -10
  5. package/dist/chunk-BV7STZ4C.mjs +8 -0
  6. package/dist/{chunk-KJAIPQKC.js → chunk-CRYBCEUK.js} +2 -2
  7. package/dist/{chunk-NSFCCGL7.mjs → chunk-GEUX6C2D.mjs} +1 -1
  8. package/dist/{chunk-K7X3KSVW.mjs → chunk-HGW2SJKK.mjs} +1 -1
  9. package/dist/{chunk-WMZ45WVV.mjs → chunk-HJUTLWTM.mjs} +30 -10
  10. package/dist/{chunk-IWLY4VEK.mjs → chunk-IJ4ZTZ37.mjs} +1 -1
  11. package/dist/{chunk-7SWNXVZN.js → chunk-LICQCU2V.js} +2 -2
  12. package/dist/{chunk-KNIZUAS5.mjs → chunk-LQMWWP4O.mjs} +1 -1
  13. package/dist/chunk-LQU7XWFP.mjs +30 -0
  14. package/dist/{chunk-TGJAQNLH.mjs → chunk-NNGDKZCW.mjs} +10 -41
  15. package/dist/{chunk-RIB65IPA.mjs → chunk-NY2KTOVC.mjs} +1 -1
  16. package/dist/{chunk-DKRIOFPB.js → chunk-UA5767MK.js} +2 -2
  17. package/dist/chunk-VIU4CXA3.js +32 -0
  18. package/dist/{chunk-QJLAFC2D.js → chunk-WECZYTJT.js} +2 -2
  19. package/dist/{chunk-FD6PSWBL.js → chunk-Y67CZUIQ.js} +13 -42
  20. package/dist/executors.js +16 -16
  21. package/dist/executors.mjs +6 -6
  22. package/dist/index.d.mts +1 -0
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.js +25 -23
  25. package/dist/index.mjs +9 -7
  26. package/dist/src/base/base-executor.js +2 -2
  27. package/dist/src/base/base-executor.mjs +1 -1
  28. package/dist/src/executors/build/executor.js +4 -4
  29. package/dist/src/executors/build/executor.mjs +2 -2
  30. package/dist/src/executors/clean/executor.js +4 -4
  31. package/dist/src/executors/clean/executor.mjs +2 -2
  32. package/dist/src/executors/docs/executor.js +4 -4
  33. package/dist/src/executors/docs/executor.mjs +2 -2
  34. package/dist/src/executors/lint/executor.js +4 -4
  35. package/dist/src/executors/lint/executor.mjs +2 -2
  36. package/dist/src/executors/prepare/executor.js +4 -4
  37. package/dist/src/executors/prepare/executor.mjs +2 -2
  38. package/dist/src/helpers/constants.d.mts +6 -0
  39. package/dist/src/helpers/constants.d.ts +6 -0
  40. package/dist/src/helpers/constants.js +11 -0
  41. package/dist/src/helpers/constants.mjs +2 -0
  42. package/dist/src/helpers/plugin-utilities.d.mts +55 -0
  43. package/dist/src/helpers/plugin-utilities.d.ts +55 -0
  44. package/dist/src/helpers/plugin-utilities.js +21 -0
  45. package/dist/src/helpers/plugin-utilities.mjs +4 -0
  46. package/dist/src/plugin/index.d.mts +1 -173
  47. package/dist/src/plugin/index.d.ts +1 -173
  48. package/dist/src/plugin/index.js +4 -2
  49. package/dist/src/plugin/index.mjs +3 -1
  50. package/dist/src/types/plugin.d.mts +174 -0
  51. package/dist/src/types/plugin.d.ts +174 -0
  52. package/dist/src/types/plugin.js +2 -0
  53. package/dist/src/types/plugin.mjs +1 -0
  54. package/package.json +45 -3
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkLTCZN4I4_js = require('./chunk-LTCZN4I4.js');
4
+ var chunkVIU4CXA3_js = require('./chunk-VIU4CXA3.js');
4
5
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
6
  var devkit = require('@nx/devkit');
6
7
  var nxJson = require('@storm-software/workspace-tools/utils/nx-json');
@@ -23,38 +24,8 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
23
24
 
24
25
  var defu__default = /*#__PURE__*/_interopDefault(defu);
25
26
 
26
- // src/helpers/constants.ts
27
- var CONFIG_INPUTS = [
28
- "{projectRoot}/package.json",
29
- "{projectRoot}/{framework}.json",
30
- "{projectRoot}/{framework}.*.json",
31
- "{projectRoot}/{framework}.jsonc",
32
- "{projectRoot}/{framework}.*.jsonc",
33
- "{projectRoot}/{framework}.json5",
34
- "{projectRoot}/{framework}.*.json5",
35
- "{projectRoot}/{framework}.yaml",
36
- "{projectRoot}/{framework}.*.yaml",
37
- "{projectRoot}/{framework}.yml",
38
- "{projectRoot}/{framework}.*.yml",
39
- "{projectRoot}/{framework}.toml",
40
- "{projectRoot}/{framework}.*.toml",
41
- "{projectRoot}/{framework}.config.js",
42
- "{projectRoot}/{framework}.*.config.js",
43
- "{projectRoot}/{framework}.config.cjs",
44
- "{projectRoot}/{framework}.*.config.cjs",
45
- "{projectRoot}/{framework}.config.mjs",
46
- "{projectRoot}/{framework}.*.config.mjs",
47
- "{projectRoot}/{framework}.config.ts",
48
- "{projectRoot}/{framework}.*.config.ts",
49
- "{projectRoot}/{framework}.config.cts",
50
- "{projectRoot}/{framework}.*.config.cts",
51
- "{projectRoot}/{framework}.config.mts",
52
- "{projectRoot}/{framework}.*.config.mts"
53
- ];
54
-
55
- // src/helpers/plugin-utilities.ts
56
27
  function getNxTargetInputs(framework) {
57
- return CONFIG_INPUTS.map((input) => input.replace("{framework}", framework));
28
+ return chunkVIU4CXA3_js.CONFIG_INPUTS.map((input) => input.replace("{framework}", framework));
58
29
  }
59
30
  chunkSHUYVCID_js.__name(getNxTargetInputs, "getNxTargetInputs");
60
31
  function getNxPluginInputs(framework) {
@@ -63,7 +34,7 @@ function getNxPluginInputs(framework) {
63
34
  chunkSHUYVCID_js.__name(getNxPluginInputs, "getNxPluginInputs");
64
35
  function createNxPlugin(opts) {
65
36
  const framework = opts?.framework || "powerlines";
66
- const name = opts?.name || `${framework}/plugin/nx`;
37
+ const name = opts?.name || `${framework}/nx/plugin`;
67
38
  const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
68
39
  const targetInputs = getNxTargetInputs(framework);
69
40
  const pluginInputs = getNxPluginInputs(framework);
@@ -88,7 +59,7 @@ function createNxPlugin(opts) {
88
59
  return {};
89
60
  }
90
61
  const root = pluginHelpers.getRoot(projectRoot, context);
91
- const cacheDir = joinPaths.joinPaths(envPaths.cache, "projects", murmurhash.murmurhash(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot), {
62
+ const cacheDir = joinPaths.joinPaths(envPaths.cache, "nx-plugin", murmurhash.murmurhash(contextV2.workspaceRoot, {
92
63
  maxLength: chunkLTCZN4I4_js.PROJECT_ROOT_HASH_LENGTH
93
64
  }));
94
65
  const jiti$1 = jiti.createJiti(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot), {
@@ -96,9 +67,10 @@ function createNxPlugin(opts) {
96
67
  fsCache: joinPaths.joinPaths(cacheDir, "jiti"),
97
68
  moduleCache: true
98
69
  });
99
- const userConfig = await chunkLTCZN4I4_js.loadUserConfigFile(projectRoot, jiti$1, "build", "development", configFile, framework);
100
- if (!exists.existsSync(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot))) {
101
- console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Project root directory does not exist (cannot find \`package.json\` file): ${joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot)}`);
70
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
71
+ const userConfig = await chunkLTCZN4I4_js.loadUserConfigFile(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot), jiti$1, "build", "development", configFile, framework);
72
+ if (!exists.existsSync(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
73
+ console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
102
74
  return {};
103
75
  }
104
76
  const packageJsonContent = await promises.readFile(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"), "utf8");
@@ -118,6 +90,7 @@ function createNxPlugin(opts) {
118
90
  }
119
91
  const tsconfig = userConfig?.tsconfig || (exists.existsSync(joinPaths.joinPaths(projectRoot, "tsconfig.json")) ? joinPaths.joinPaths(projectRoot, "tsconfig.json") : void 0);
120
92
  const targets = packageJson_js.readTargetsFromPackageJson(packageJson, nxJson$1, projectRoot, context.workspaceRoot);
93
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
121
94
  if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
122
95
  targets[options?.clean?.targetName || "clean"] = {
123
96
  inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : nxJson.withNamedInputs(targetInputs, [
@@ -306,6 +279,7 @@ function createNxPlugin(opts) {
306
279
  projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
307
280
  overwrite: true
308
281
  });
282
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
309
283
  return {
310
284
  projects: {
311
285
  [root]: defu__default.default(projectConfig, {
@@ -327,9 +301,6 @@ function createNxPlugin(opts) {
327
301
  }
328
302
  chunkSHUYVCID_js.__name(createNxPlugin, "createNxPlugin");
329
303
 
330
- // src/plugin/index.ts
331
- var createNodesV2 = createNxPlugin({
332
- framework: "powerlines"
333
- });
334
-
335
- exports.createNodesV2 = createNodesV2;
304
+ exports.createNxPlugin = createNxPlugin;
305
+ exports.getNxPluginInputs = getNxPluginInputs;
306
+ exports.getNxTargetInputs = getNxTargetInputs;
package/dist/executors.js CHANGED
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
2
 
3
3
  require('./chunk-XO62WWX4.js');
4
- var chunkQJLAFC2D_js = require('./chunk-QJLAFC2D.js');
5
- var chunkDKRIOFPB_js = require('./chunk-DKRIOFPB.js');
6
- var chunkKJAIPQKC_js = require('./chunk-KJAIPQKC.js');
7
- var chunkFZWXH2M7_js = require('./chunk-FZWXH2M7.js');
8
- var chunk7SWNXVZN_js = require('./chunk-7SWNXVZN.js');
9
- require('./chunk-32RH3DSY.js');
4
+ var chunkCRYBCEUK_js = require('./chunk-CRYBCEUK.js');
5
+ var chunk27KELMBV_js = require('./chunk-27KELMBV.js');
6
+ var chunkLICQCU2V_js = require('./chunk-LICQCU2V.js');
7
+ var chunkWECZYTJT_js = require('./chunk-WECZYTJT.js');
8
+ var chunkUA5767MK_js = require('./chunk-UA5767MK.js');
9
+ require('./chunk-AACX73LZ.js');
10
10
  require('./chunk-LTCZN4I4.js');
11
11
  require('./chunk-SHUYVCID.js');
12
12
 
13
13
 
14
14
 
15
- Object.defineProperty(exports, "clean", {
15
+ Object.defineProperty(exports, "lint", {
16
16
  enumerable: true,
17
- get: function () { return chunkQJLAFC2D_js.executor_default; }
17
+ get: function () { return chunkCRYBCEUK_js.executor_default; }
18
18
  });
19
- Object.defineProperty(exports, "docs", {
19
+ Object.defineProperty(exports, "prepare", {
20
20
  enumerable: true,
21
- get: function () { return chunkDKRIOFPB_js.executor_default; }
21
+ get: function () { return chunk27KELMBV_js.executor_default; }
22
22
  });
23
- Object.defineProperty(exports, "lint", {
23
+ Object.defineProperty(exports, "build", {
24
24
  enumerable: true,
25
- get: function () { return chunkKJAIPQKC_js.executor_default; }
25
+ get: function () { return chunkLICQCU2V_js.executor_default; }
26
26
  });
27
- Object.defineProperty(exports, "prepare", {
27
+ Object.defineProperty(exports, "clean", {
28
28
  enumerable: true,
29
- get: function () { return chunkFZWXH2M7_js.executor_default; }
29
+ get: function () { return chunkWECZYTJT_js.executor_default; }
30
30
  });
31
- Object.defineProperty(exports, "build", {
31
+ Object.defineProperty(exports, "docs", {
32
32
  enumerable: true,
33
- get: function () { return chunk7SWNXVZN_js.executor_default; }
33
+ get: function () { return chunkUA5767MK_js.executor_default; }
34
34
  });
@@ -1,9 +1,9 @@
1
1
  import './chunk-UV4HQO3Y.mjs';
2
- export { executor_default as clean } from './chunk-IWLY4VEK.mjs';
3
- export { executor_default as docs } from './chunk-NSFCCGL7.mjs';
4
- export { executor_default as lint } from './chunk-KNIZUAS5.mjs';
5
- export { executor_default as prepare } from './chunk-RIB65IPA.mjs';
6
- export { executor_default as build } from './chunk-K7X3KSVW.mjs';
7
- import './chunk-WMZ45WVV.mjs';
2
+ export { executor_default as lint } from './chunk-LQMWWP4O.mjs';
3
+ export { executor_default as prepare } from './chunk-NY2KTOVC.mjs';
4
+ export { executor_default as build } from './chunk-HGW2SJKK.mjs';
5
+ export { executor_default as clean } from './chunk-IJ4ZTZ37.mjs';
6
+ export { executor_default as docs } from './chunk-GEUX6C2D.mjs';
7
+ import './chunk-HJUTLWTM.mjs';
8
8
  import './chunk-FMYWKI25.mjs';
9
9
  import './chunk-O6YSETKJ.mjs';
package/dist/index.d.mts CHANGED
@@ -14,3 +14,4 @@ import '@storm-software/config/types';
14
14
  import 'powerlines/types/config';
15
15
  import './src/base/base-executor.schema.d.mjs';
16
16
  import 'nx/src/utils/sync-generators';
17
+ import './src/types/plugin.mjs';
package/dist/index.d.ts CHANGED
@@ -14,3 +14,4 @@ import '@storm-software/config/types';
14
14
  import 'powerlines/types/config';
15
15
  import './src/base/base-executor.schema.d.js';
16
16
  import 'nx/src/utils/sync-generators';
17
+ import './src/types/plugin.js';
package/dist/index.js CHANGED
@@ -1,49 +1,51 @@
1
1
  'use strict';
2
2
 
3
+ var chunk7R5TX4YB_js = require('./chunk-7R5TX4YB.js');
3
4
  require('./chunk-XO62WWX4.js');
4
- var chunkQJLAFC2D_js = require('./chunk-QJLAFC2D.js');
5
- var chunkDKRIOFPB_js = require('./chunk-DKRIOFPB.js');
6
- var chunkKJAIPQKC_js = require('./chunk-KJAIPQKC.js');
7
- var chunkFZWXH2M7_js = require('./chunk-FZWXH2M7.js');
5
+ var chunkCRYBCEUK_js = require('./chunk-CRYBCEUK.js');
6
+ var chunk27KELMBV_js = require('./chunk-27KELMBV.js');
7
+ var chunkLICQCU2V_js = require('./chunk-LICQCU2V.js');
8
+ var chunkWECZYTJT_js = require('./chunk-WECZYTJT.js');
9
+ var chunkUA5767MK_js = require('./chunk-UA5767MK.js');
8
10
  require('./chunk-N2YKXZ5R.js');
9
11
  var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
10
- var chunkFD6PSWBL_js = require('./chunk-FD6PSWBL.js');
11
- var chunk7SWNXVZN_js = require('./chunk-7SWNXVZN.js');
12
- require('./chunk-32RH3DSY.js');
12
+ require('./chunk-AACX73LZ.js');
13
+ require('./chunk-Y67CZUIQ.js');
13
14
  require('./chunk-LTCZN4I4.js');
15
+ require('./chunk-VIU4CXA3.js');
14
16
  require('./chunk-SHUYVCID.js');
15
17
 
16
18
 
17
19
 
18
- Object.defineProperty(exports, "clean", {
19
- enumerable: true,
20
- get: function () { return chunkQJLAFC2D_js.executor_default; }
21
- });
22
- Object.defineProperty(exports, "docs", {
20
+ Object.defineProperty(exports, "createNodesV2", {
23
21
  enumerable: true,
24
- get: function () { return chunkDKRIOFPB_js.executor_default; }
22
+ get: function () { return chunk7R5TX4YB_js.createNodesV2; }
25
23
  });
26
24
  Object.defineProperty(exports, "lint", {
27
25
  enumerable: true,
28
- get: function () { return chunkKJAIPQKC_js.executor_default; }
26
+ get: function () { return chunkCRYBCEUK_js.executor_default; }
29
27
  });
30
28
  Object.defineProperty(exports, "prepare", {
31
29
  enumerable: true,
32
- get: function () { return chunkFZWXH2M7_js.executor_default; }
30
+ get: function () { return chunk27KELMBV_js.executor_default; }
33
31
  });
34
- Object.defineProperty(exports, "sync", {
32
+ Object.defineProperty(exports, "build", {
35
33
  enumerable: true,
36
- get: function () { return chunkWUJKJGEW_js.generator_default; }
34
+ get: function () { return chunkLICQCU2V_js.executor_default; }
37
35
  });
38
- Object.defineProperty(exports, "syncGenerator", {
36
+ Object.defineProperty(exports, "clean", {
39
37
  enumerable: true,
40
- get: function () { return chunkWUJKJGEW_js.generatorFn; }
38
+ get: function () { return chunkWECZYTJT_js.executor_default; }
41
39
  });
42
- Object.defineProperty(exports, "createNodesV2", {
40
+ Object.defineProperty(exports, "docs", {
43
41
  enumerable: true,
44
- get: function () { return chunkFD6PSWBL_js.createNodesV2; }
42
+ get: function () { return chunkUA5767MK_js.executor_default; }
45
43
  });
46
- Object.defineProperty(exports, "build", {
44
+ Object.defineProperty(exports, "sync", {
47
45
  enumerable: true,
48
- get: function () { return chunk7SWNXVZN_js.executor_default; }
46
+ get: function () { return chunkWUJKJGEW_js.generator_default; }
47
+ });
48
+ Object.defineProperty(exports, "syncGenerator", {
49
+ enumerable: true,
50
+ get: function () { return chunkWUJKJGEW_js.generatorFn; }
49
51
  });
package/dist/index.mjs CHANGED
@@ -1,12 +1,14 @@
1
+ export { createNodesV2 } from './chunk-BV7STZ4C.mjs';
1
2
  import './chunk-UV4HQO3Y.mjs';
2
- export { executor_default as clean } from './chunk-IWLY4VEK.mjs';
3
- export { executor_default as docs } from './chunk-NSFCCGL7.mjs';
4
- export { executor_default as lint } from './chunk-KNIZUAS5.mjs';
5
- export { executor_default as prepare } from './chunk-RIB65IPA.mjs';
3
+ export { executor_default as lint } from './chunk-LQMWWP4O.mjs';
4
+ export { executor_default as prepare } from './chunk-NY2KTOVC.mjs';
5
+ export { executor_default as build } from './chunk-HGW2SJKK.mjs';
6
+ export { executor_default as clean } from './chunk-IJ4ZTZ37.mjs';
7
+ export { executor_default as docs } from './chunk-GEUX6C2D.mjs';
6
8
  import './chunk-23KFTIT2.mjs';
7
9
  export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
8
- export { createNodesV2 } from './chunk-TGJAQNLH.mjs';
9
- export { executor_default as build } from './chunk-K7X3KSVW.mjs';
10
- import './chunk-WMZ45WVV.mjs';
10
+ import './chunk-HJUTLWTM.mjs';
11
+ import './chunk-NNGDKZCW.mjs';
11
12
  import './chunk-FMYWKI25.mjs';
13
+ import './chunk-LQU7XWFP.mjs';
12
14
  import './chunk-O6YSETKJ.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk32RH3DSY_js = require('../../chunk-32RH3DSY.js');
3
+ var chunkAACX73LZ_js = require('../../chunk-AACX73LZ.js');
4
4
  require('../../chunk-LTCZN4I4.js');
5
5
  require('../../chunk-SHUYVCID.js');
6
6
 
@@ -8,5 +8,5 @@ require('../../chunk-SHUYVCID.js');
8
8
 
9
9
  Object.defineProperty(exports, "withExecutor", {
10
10
  enumerable: true,
11
- get: function () { return chunk32RH3DSY_js.withExecutor; }
11
+ get: function () { return chunkAACX73LZ_js.withExecutor; }
12
12
  });
@@ -1,3 +1,3 @@
1
- export { withExecutor } from '../../chunk-WMZ45WVV.mjs';
1
+ export { withExecutor } from '../../chunk-HJUTLWTM.mjs';
2
2
  import '../../chunk-FMYWKI25.mjs';
3
3
  import '../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunk7SWNXVZN_js = require('../../../chunk-7SWNXVZN.js');
6
- require('../../../chunk-32RH3DSY.js');
5
+ var chunkLICQCU2V_js = require('../../../chunk-LICQCU2V.js');
6
+ require('../../../chunk-AACX73LZ.js');
7
7
  require('../../../chunk-LTCZN4I4.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunk7SWNXVZN_js.executor_default; }
14
+ get: function () { return chunkLICQCU2V_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunk7SWNXVZN_js.executorFn; }
18
+ get: function () { return chunkLICQCU2V_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-K7X3KSVW.mjs';
2
- import '../../../chunk-WMZ45WVV.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-HGW2SJKK.mjs';
2
+ import '../../../chunk-HJUTLWTM.mjs';
3
3
  import '../../../chunk-FMYWKI25.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkQJLAFC2D_js = require('../../../chunk-QJLAFC2D.js');
6
- require('../../../chunk-32RH3DSY.js');
5
+ var chunkWECZYTJT_js = require('../../../chunk-WECZYTJT.js');
6
+ require('../../../chunk-AACX73LZ.js');
7
7
  require('../../../chunk-LTCZN4I4.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkQJLAFC2D_js.executor_default; }
14
+ get: function () { return chunkWECZYTJT_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkQJLAFC2D_js.executorFn; }
18
+ get: function () { return chunkWECZYTJT_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-IWLY4VEK.mjs';
2
- import '../../../chunk-WMZ45WVV.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-IJ4ZTZ37.mjs';
2
+ import '../../../chunk-HJUTLWTM.mjs';
3
3
  import '../../../chunk-FMYWKI25.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkDKRIOFPB_js = require('../../../chunk-DKRIOFPB.js');
6
- require('../../../chunk-32RH3DSY.js');
5
+ var chunkUA5767MK_js = require('../../../chunk-UA5767MK.js');
6
+ require('../../../chunk-AACX73LZ.js');
7
7
  require('../../../chunk-LTCZN4I4.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkDKRIOFPB_js.executor_default; }
14
+ get: function () { return chunkUA5767MK_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkDKRIOFPB_js.executorFn; }
18
+ get: function () { return chunkUA5767MK_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-NSFCCGL7.mjs';
2
- import '../../../chunk-WMZ45WVV.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-GEUX6C2D.mjs';
2
+ import '../../../chunk-HJUTLWTM.mjs';
3
3
  import '../../../chunk-FMYWKI25.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkKJAIPQKC_js = require('../../../chunk-KJAIPQKC.js');
6
- require('../../../chunk-32RH3DSY.js');
5
+ var chunkCRYBCEUK_js = require('../../../chunk-CRYBCEUK.js');
6
+ require('../../../chunk-AACX73LZ.js');
7
7
  require('../../../chunk-LTCZN4I4.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkKJAIPQKC_js.executor_default; }
14
+ get: function () { return chunkCRYBCEUK_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkKJAIPQKC_js.executorFn; }
18
+ get: function () { return chunkCRYBCEUK_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-KNIZUAS5.mjs';
2
- import '../../../chunk-WMZ45WVV.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-LQMWWP4O.mjs';
2
+ import '../../../chunk-HJUTLWTM.mjs';
3
3
  import '../../../chunk-FMYWKI25.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkFZWXH2M7_js = require('../../../chunk-FZWXH2M7.js');
6
- require('../../../chunk-32RH3DSY.js');
5
+ var chunk27KELMBV_js = require('../../../chunk-27KELMBV.js');
6
+ require('../../../chunk-AACX73LZ.js');
7
7
  require('../../../chunk-LTCZN4I4.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkFZWXH2M7_js.executor_default; }
14
+ get: function () { return chunk27KELMBV_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkFZWXH2M7_js.executorFn; }
18
+ get: function () { return chunk27KELMBV_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-RIB65IPA.mjs';
2
- import '../../../chunk-WMZ45WVV.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-NY2KTOVC.mjs';
2
+ import '../../../chunk-HJUTLWTM.mjs';
3
3
  import '../../../chunk-FMYWKI25.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A list of Nx input strings that describe the Powerlines configuration file
3
+ */
4
+ declare const CONFIG_INPUTS: readonly ["{projectRoot}/package.json", "{projectRoot}/{framework}.json", "{projectRoot}/{framework}.*.json", "{projectRoot}/{framework}.jsonc", "{projectRoot}/{framework}.*.jsonc", "{projectRoot}/{framework}.json5", "{projectRoot}/{framework}.*.json5", "{projectRoot}/{framework}.yaml", "{projectRoot}/{framework}.*.yaml", "{projectRoot}/{framework}.yml", "{projectRoot}/{framework}.*.yml", "{projectRoot}/{framework}.toml", "{projectRoot}/{framework}.*.toml", "{projectRoot}/{framework}.config.js", "{projectRoot}/{framework}.*.config.js", "{projectRoot}/{framework}.config.cjs", "{projectRoot}/{framework}.*.config.cjs", "{projectRoot}/{framework}.config.mjs", "{projectRoot}/{framework}.*.config.mjs", "{projectRoot}/{framework}.config.ts", "{projectRoot}/{framework}.*.config.ts", "{projectRoot}/{framework}.config.cts", "{projectRoot}/{framework}.*.config.cts", "{projectRoot}/{framework}.config.mts", "{projectRoot}/{framework}.*.config.mts"];
5
+
6
+ export { CONFIG_INPUTS };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A list of Nx input strings that describe the Powerlines configuration file
3
+ */
4
+ declare const CONFIG_INPUTS: readonly ["{projectRoot}/package.json", "{projectRoot}/{framework}.json", "{projectRoot}/{framework}.*.json", "{projectRoot}/{framework}.jsonc", "{projectRoot}/{framework}.*.jsonc", "{projectRoot}/{framework}.json5", "{projectRoot}/{framework}.*.json5", "{projectRoot}/{framework}.yaml", "{projectRoot}/{framework}.*.yaml", "{projectRoot}/{framework}.yml", "{projectRoot}/{framework}.*.yml", "{projectRoot}/{framework}.toml", "{projectRoot}/{framework}.*.toml", "{projectRoot}/{framework}.config.js", "{projectRoot}/{framework}.*.config.js", "{projectRoot}/{framework}.config.cjs", "{projectRoot}/{framework}.*.config.cjs", "{projectRoot}/{framework}.config.mjs", "{projectRoot}/{framework}.*.config.mjs", "{projectRoot}/{framework}.config.ts", "{projectRoot}/{framework}.*.config.ts", "{projectRoot}/{framework}.config.cts", "{projectRoot}/{framework}.*.config.cts", "{projectRoot}/{framework}.config.mts", "{projectRoot}/{framework}.*.config.mts"];
5
+
6
+ export { CONFIG_INPUTS };
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkVIU4CXA3_js = require('../../chunk-VIU4CXA3.js');
4
+ require('../../chunk-SHUYVCID.js');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "CONFIG_INPUTS", {
9
+ enumerable: true,
10
+ get: function () { return chunkVIU4CXA3_js.CONFIG_INPUTS; }
11
+ });
@@ -0,0 +1,2 @@
1
+ export { CONFIG_INPUTS } from '../../chunk-LQU7XWFP.mjs';
2
+ import '../../chunk-O6YSETKJ.mjs';
@@ -0,0 +1,55 @@
1
+ import { CreateNodesV2 } from '@nx/devkit';
2
+ import { NxPluginOptions } from '../types/plugin.mjs';
3
+
4
+ /**
5
+ * Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
6
+ *
7
+ * @param framework - The framework name to use in the input strings
8
+ * @returns An array of Nx input strings for the configuration file
9
+ */
10
+ declare function getNxTargetInputs(framework: string): string[];
11
+ /**
12
+ * Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
13
+ *
14
+ * @param framework - The framework name to use in the input strings
15
+ * @returns An array of Nx input strings for the configuration file
16
+ */
17
+ declare function getNxPluginInputs(framework: string): string;
18
+ interface CreateNxPluginOptions {
19
+ /**
20
+ * The name of the Nx plugin to create
21
+ *
22
+ * @remarks
23
+ * This will be used in logging and project tagging.
24
+ *
25
+ * @defaultValue "powerlines/plugin/nx"
26
+ */
27
+ name?: string;
28
+ /**
29
+ * The folder where the generated runtime artifacts will be located
30
+ *
31
+ * @remarks
32
+ * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
33
+ *
34
+ * @defaultValue "\{projectRoot\}/.powerlines"
35
+ */
36
+ artifactsFolder?: string;
37
+ /**
38
+ * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
39
+ *
40
+ * @remarks
41
+ * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsFolder | output.artifactsFolder}, this value will be used as the default.
42
+ *
43
+ * @defaultValue "powerlines"
44
+ */
45
+ framework?: string;
46
+ }
47
+ /**
48
+ * Creates an Nx plugin that integrates Powerlines into the Nx build process.
49
+ *
50
+ * @param opts - Options for creating the Nx plugin
51
+ * @returns A CreateNodesV2 function that can be used as an Nx plugin
52
+ */
53
+ declare function createNxPlugin<TOptions extends NxPluginOptions = NxPluginOptions>(opts?: CreateNxPluginOptions): CreateNodesV2<TOptions>;
54
+
55
+ export { type CreateNxPluginOptions, createNxPlugin, getNxPluginInputs, getNxTargetInputs };
@@ -0,0 +1,55 @@
1
+ import { CreateNodesV2 } from '@nx/devkit';
2
+ import { NxPluginOptions } from '../types/plugin.js';
3
+
4
+ /**
5
+ * Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
6
+ *
7
+ * @param framework - The framework name to use in the input strings
8
+ * @returns An array of Nx input strings for the configuration file
9
+ */
10
+ declare function getNxTargetInputs(framework: string): string[];
11
+ /**
12
+ * Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
13
+ *
14
+ * @param framework - The framework name to use in the input strings
15
+ * @returns An array of Nx input strings for the configuration file
16
+ */
17
+ declare function getNxPluginInputs(framework: string): string;
18
+ interface CreateNxPluginOptions {
19
+ /**
20
+ * The name of the Nx plugin to create
21
+ *
22
+ * @remarks
23
+ * This will be used in logging and project tagging.
24
+ *
25
+ * @defaultValue "powerlines/plugin/nx"
26
+ */
27
+ name?: string;
28
+ /**
29
+ * The folder where the generated runtime artifacts will be located
30
+ *
31
+ * @remarks
32
+ * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
33
+ *
34
+ * @defaultValue "\{projectRoot\}/.powerlines"
35
+ */
36
+ artifactsFolder?: string;
37
+ /**
38
+ * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
39
+ *
40
+ * @remarks
41
+ * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsFolder | output.artifactsFolder}, this value will be used as the default.
42
+ *
43
+ * @defaultValue "powerlines"
44
+ */
45
+ framework?: string;
46
+ }
47
+ /**
48
+ * Creates an Nx plugin that integrates Powerlines into the Nx build process.
49
+ *
50
+ * @param opts - Options for creating the Nx plugin
51
+ * @returns A CreateNodesV2 function that can be used as an Nx plugin
52
+ */
53
+ declare function createNxPlugin<TOptions extends NxPluginOptions = NxPluginOptions>(opts?: CreateNxPluginOptions): CreateNodesV2<TOptions>;
54
+
55
+ export { type CreateNxPluginOptions, createNxPlugin, getNxPluginInputs, getNxTargetInputs };
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var chunkY67CZUIQ_js = require('../../chunk-Y67CZUIQ.js');
4
+ require('../../chunk-LTCZN4I4.js');
5
+ require('../../chunk-VIU4CXA3.js');
6
+ require('../../chunk-SHUYVCID.js');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "createNxPlugin", {
11
+ enumerable: true,
12
+ get: function () { return chunkY67CZUIQ_js.createNxPlugin; }
13
+ });
14
+ Object.defineProperty(exports, "getNxPluginInputs", {
15
+ enumerable: true,
16
+ get: function () { return chunkY67CZUIQ_js.getNxPluginInputs; }
17
+ });
18
+ Object.defineProperty(exports, "getNxTargetInputs", {
19
+ enumerable: true,
20
+ get: function () { return chunkY67CZUIQ_js.getNxTargetInputs; }
21
+ });