@powerlines/nx 0.10.16 → 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.
- package/CHANGELOG.md +14 -0
- package/dist/{chunk-FZWXH2M7.js → chunk-27KELMBV.js} +2 -2
- package/dist/chunk-7R5TX4YB.js +10 -0
- package/dist/{chunk-32RH3DSY.js → chunk-AACX73LZ.js} +30 -10
- package/dist/chunk-BV7STZ4C.mjs +8 -0
- package/dist/{chunk-KJAIPQKC.js → chunk-CRYBCEUK.js} +2 -2
- package/dist/{chunk-NSFCCGL7.mjs → chunk-GEUX6C2D.mjs} +1 -1
- package/dist/{chunk-K7X3KSVW.mjs → chunk-HGW2SJKK.mjs} +1 -1
- package/dist/{chunk-WMZ45WVV.mjs → chunk-HJUTLWTM.mjs} +30 -10
- package/dist/{chunk-IWLY4VEK.mjs → chunk-IJ4ZTZ37.mjs} +1 -1
- package/dist/{chunk-7SWNXVZN.js → chunk-LICQCU2V.js} +2 -2
- package/dist/{chunk-KNIZUAS5.mjs → chunk-LQMWWP4O.mjs} +1 -1
- package/dist/chunk-LQU7XWFP.mjs +30 -0
- package/dist/{chunk-GUAUB4A5.mjs → chunk-NNGDKZCW.mjs} +2 -36
- package/dist/{chunk-RIB65IPA.mjs → chunk-NY2KTOVC.mjs} +1 -1
- package/dist/{chunk-DKRIOFPB.js → chunk-UA5767MK.js} +2 -2
- package/dist/chunk-VIU4CXA3.js +32 -0
- package/dist/{chunk-QJLAFC2D.js → chunk-WECZYTJT.js} +2 -2
- package/dist/{chunk-LG4AFV5G.js → chunk-Y67CZUIQ.js} +5 -37
- package/dist/executors.js +16 -16
- package/dist/executors.mjs +6 -6
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +25 -23
- package/dist/index.mjs +9 -7
- package/dist/src/base/base-executor.js +2 -2
- package/dist/src/base/base-executor.mjs +1 -1
- package/dist/src/executors/build/executor.js +4 -4
- package/dist/src/executors/build/executor.mjs +2 -2
- package/dist/src/executors/clean/executor.js +4 -4
- package/dist/src/executors/clean/executor.mjs +2 -2
- package/dist/src/executors/docs/executor.js +4 -4
- package/dist/src/executors/docs/executor.mjs +2 -2
- package/dist/src/executors/lint/executor.js +4 -4
- package/dist/src/executors/lint/executor.mjs +2 -2
- package/dist/src/executors/prepare/executor.js +4 -4
- package/dist/src/executors/prepare/executor.mjs +2 -2
- package/dist/src/helpers/constants.d.mts +6 -0
- package/dist/src/helpers/constants.d.ts +6 -0
- package/dist/src/helpers/constants.js +11 -0
- package/dist/src/helpers/constants.mjs +2 -0
- package/dist/src/helpers/plugin-utilities.d.mts +55 -0
- package/dist/src/helpers/plugin-utilities.d.ts +55 -0
- package/dist/src/helpers/plugin-utilities.js +21 -0
- package/dist/src/helpers/plugin-utilities.mjs +4 -0
- package/dist/src/plugin/index.d.mts +1 -173
- package/dist/src/plugin/index.d.ts +1 -173
- package/dist/src/plugin/index.js +4 -2
- package/dist/src/plugin/index.mjs +3 -1
- package/dist/src/types/plugin.d.mts +174 -0
- package/dist/src/types/plugin.d.ts +174 -0
- package/dist/src/types/plugin.js +2 -0
- package/dist/src/types/plugin.mjs +1 -0
- package/package.json +45 -3
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
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
|
-
|
|
11
|
-
|
|
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, "
|
|
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
|
|
22
|
+
get: function () { return chunk7R5TX4YB_js.createNodesV2; }
|
|
25
23
|
});
|
|
26
24
|
Object.defineProperty(exports, "lint", {
|
|
27
25
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkCRYBCEUK_js.executor_default; }
|
|
29
27
|
});
|
|
30
28
|
Object.defineProperty(exports, "prepare", {
|
|
31
29
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk27KELMBV_js.executor_default; }
|
|
33
31
|
});
|
|
34
|
-
Object.defineProperty(exports, "
|
|
32
|
+
Object.defineProperty(exports, "build", {
|
|
35
33
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkLICQCU2V_js.executor_default; }
|
|
37
35
|
});
|
|
38
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "clean", {
|
|
39
37
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkWECZYTJT_js.executor_default; }
|
|
41
39
|
});
|
|
42
|
-
Object.defineProperty(exports, "
|
|
40
|
+
Object.defineProperty(exports, "docs", {
|
|
43
41
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkUA5767MK_js.executor_default; }
|
|
45
43
|
});
|
|
46
|
-
Object.defineProperty(exports, "
|
|
44
|
+
Object.defineProperty(exports, "sync", {
|
|
47
45
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
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
|
|
3
|
-
export { executor_default as
|
|
4
|
-
export { executor_default as
|
|
5
|
-
export { executor_default as
|
|
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
|
-
|
|
9
|
-
|
|
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
|
|
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
|
|
11
|
+
get: function () { return chunkAACX73LZ_js.withExecutor; }
|
|
12
12
|
});
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
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
|
|
14
|
+
get: function () { return chunkLICQCU2V_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkLICQCU2V_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
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
|
|
6
|
-
require('../../../chunk-
|
|
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
|
|
14
|
+
get: function () { return chunkWECZYTJT_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkWECZYTJT_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
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
|
|
6
|
-
require('../../../chunk-
|
|
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
|
|
14
|
+
get: function () { return chunkUA5767MK_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkUA5767MK_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
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
|
|
6
|
-
require('../../../chunk-
|
|
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
|
|
14
|
+
get: function () { return chunkCRYBCEUK_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkCRYBCEUK_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
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
|
|
6
|
-
require('../../../chunk-
|
|
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
|
|
14
|
+
get: function () { return chunk27KELMBV_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk27KELMBV_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
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,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
|
+
});
|
|
@@ -1,177 +1,5 @@
|
|
|
1
1
|
import * as _nx_devkit from '@nx/devkit';
|
|
2
|
-
|
|
3
|
-
interface NxPluginOptions {
|
|
4
|
-
clean?: false | {
|
|
5
|
-
/**
|
|
6
|
-
* The name of the clean target to use when cleaning the project
|
|
7
|
-
*
|
|
8
|
-
* @defaultValue "clean"
|
|
9
|
-
*/
|
|
10
|
-
targetName?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The name of the clean configuration to use when cleaning the project
|
|
13
|
-
*
|
|
14
|
-
* @defaultValue "production"
|
|
15
|
-
*/
|
|
16
|
-
defaultConfiguration?: "production" | "test" | "development";
|
|
17
|
-
/**
|
|
18
|
-
* An array specifying any other target identifiers the clean target depends on
|
|
19
|
-
*
|
|
20
|
-
* @defaultValue ["^clean"]
|
|
21
|
-
*/
|
|
22
|
-
dependsOn?: string[];
|
|
23
|
-
/**
|
|
24
|
-
* An array specifying any input files or globs to consider when determining if the clean target needs to be re-run
|
|
25
|
-
*/
|
|
26
|
-
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
27
|
-
/**
|
|
28
|
-
* An array specifying the output files or globs generated by the clean target
|
|
29
|
-
*/
|
|
30
|
-
outputs?: string[];
|
|
31
|
-
/**
|
|
32
|
-
* The executor to use for the clean target
|
|
33
|
-
*
|
|
34
|
-
* @defaultValue "\@powerlines/nx:clean"
|
|
35
|
-
*/
|
|
36
|
-
executor?: string;
|
|
37
|
-
};
|
|
38
|
-
prepare?: false | {
|
|
39
|
-
/**
|
|
40
|
-
* The name of the prepare target to use when preparing the project
|
|
41
|
-
*
|
|
42
|
-
* @defaultValue "prepare"
|
|
43
|
-
*/
|
|
44
|
-
targetName?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The name of the prepare configuration to use when preparing the project
|
|
47
|
-
*
|
|
48
|
-
* @defaultValue "production"
|
|
49
|
-
*/
|
|
50
|
-
defaultConfiguration?: "production" | "test" | "development";
|
|
51
|
-
/**
|
|
52
|
-
* An array specifying any other target identifiers the prepare target depends on
|
|
53
|
-
*
|
|
54
|
-
* @defaultValue ["^prepare", "clean"]
|
|
55
|
-
*/
|
|
56
|
-
dependsOn?: string[];
|
|
57
|
-
/**
|
|
58
|
-
* An array specifying any input files or globs to consider when determining if the prepare target needs to be re-run
|
|
59
|
-
*/
|
|
60
|
-
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
61
|
-
/**
|
|
62
|
-
* An array specifying the output files or globs generated by the prepare target
|
|
63
|
-
*/
|
|
64
|
-
outputs?: string[];
|
|
65
|
-
/**
|
|
66
|
-
* The executor to use for the prepare target
|
|
67
|
-
*
|
|
68
|
-
* @defaultValue "\@powerlines/nx:prepare"
|
|
69
|
-
*/
|
|
70
|
-
executor?: string;
|
|
71
|
-
};
|
|
72
|
-
lint?: false | {
|
|
73
|
-
/**
|
|
74
|
-
* The name of the lint target to use when linting the project
|
|
75
|
-
*
|
|
76
|
-
* @defaultValue "lint"
|
|
77
|
-
*/
|
|
78
|
-
targetName?: string;
|
|
79
|
-
/**
|
|
80
|
-
* The name of the lint configuration to use when linting the project
|
|
81
|
-
*
|
|
82
|
-
* @defaultValue "production"
|
|
83
|
-
*/
|
|
84
|
-
defaultConfiguration?: "production" | "test" | "development";
|
|
85
|
-
/**
|
|
86
|
-
* An array specifying any other target identifiers the lint target depends on
|
|
87
|
-
*
|
|
88
|
-
* @defaultValue ["^lint", "prepare"]
|
|
89
|
-
*/
|
|
90
|
-
dependsOn?: string[];
|
|
91
|
-
/**
|
|
92
|
-
* An array specifying any input files or globs to consider when determining if the lint target needs to be re-run
|
|
93
|
-
*/
|
|
94
|
-
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
95
|
-
/**
|
|
96
|
-
* An array specifying the output files or globs generated by the lint target
|
|
97
|
-
*/
|
|
98
|
-
outputs?: string[];
|
|
99
|
-
/**
|
|
100
|
-
* The executor to use for the lint target
|
|
101
|
-
*
|
|
102
|
-
* @defaultValue "\@powerlines/nx:lint"
|
|
103
|
-
*/
|
|
104
|
-
executor?: string;
|
|
105
|
-
};
|
|
106
|
-
build?: false | {
|
|
107
|
-
/**
|
|
108
|
-
* The name of the build target to use when building the project
|
|
109
|
-
*
|
|
110
|
-
* @defaultValue "build"
|
|
111
|
-
*/
|
|
112
|
-
targetName?: string;
|
|
113
|
-
/**
|
|
114
|
-
* The name of the build configuration to use when building the project
|
|
115
|
-
*
|
|
116
|
-
* @defaultValue "production"
|
|
117
|
-
*/
|
|
118
|
-
defaultConfiguration?: "production" | "test" | "development";
|
|
119
|
-
/**
|
|
120
|
-
* An array specifying any other target identifiers the build target depends on
|
|
121
|
-
*
|
|
122
|
-
* @defaultValue ["^build", "prepare"]
|
|
123
|
-
*/
|
|
124
|
-
dependsOn?: string[];
|
|
125
|
-
/**
|
|
126
|
-
* An array specifying any input files or globs to consider when determining if the build target needs to be re-run
|
|
127
|
-
*/
|
|
128
|
-
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
129
|
-
/**
|
|
130
|
-
* An array specifying the output files or globs generated by the build target
|
|
131
|
-
*/
|
|
132
|
-
outputs?: string[];
|
|
133
|
-
/**
|
|
134
|
-
* The executor to use for the build target
|
|
135
|
-
*
|
|
136
|
-
* @defaultValue "\@powerlines/nx:build"
|
|
137
|
-
*/
|
|
138
|
-
executor?: string;
|
|
139
|
-
};
|
|
140
|
-
docs?: false | {
|
|
141
|
-
/**
|
|
142
|
-
* The name of the docs target to use when generating documentation for the project
|
|
143
|
-
*
|
|
144
|
-
* @defaultValue "docs"
|
|
145
|
-
*/
|
|
146
|
-
targetName?: string;
|
|
147
|
-
/**
|
|
148
|
-
* The name of the docs configuration to use when generating documentation for the project
|
|
149
|
-
*
|
|
150
|
-
* @defaultValue "production"
|
|
151
|
-
*/
|
|
152
|
-
defaultConfiguration?: "production" | "test" | "development";
|
|
153
|
-
/**
|
|
154
|
-
* An array specifying any other target identifiers the docs target depends on
|
|
155
|
-
*
|
|
156
|
-
* @defaultValue ["^docs", "build"]
|
|
157
|
-
*/
|
|
158
|
-
dependsOn?: string[];
|
|
159
|
-
/**
|
|
160
|
-
* An array specifying any input files or globs to consider when determining if the docs target needs to be re-run
|
|
161
|
-
*/
|
|
162
|
-
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
163
|
-
/**
|
|
164
|
-
* An array specifying the output files or globs generated by the docs target
|
|
165
|
-
*/
|
|
166
|
-
outputs?: string[];
|
|
167
|
-
/**
|
|
168
|
-
* The executor to use for the docs target
|
|
169
|
-
*
|
|
170
|
-
* @defaultValue "\@powerlines/nx:docs"
|
|
171
|
-
*/
|
|
172
|
-
executor?: string;
|
|
173
|
-
};
|
|
174
|
-
}
|
|
2
|
+
import { NxPluginOptions } from '../types/plugin.mjs';
|
|
175
3
|
|
|
176
4
|
declare const createNodesV2: _nx_devkit.CreateNodesV2<NxPluginOptions>;
|
|
177
5
|
|