@powerlines/nx 0.10.8 → 0.10.9
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 +11 -0
- package/dist/{chunk-6QJOYEGY.js → chunk-L5RBARDS.js} +8 -9
- package/dist/{chunk-GQKX6RIX.mjs → chunk-QWEMU3V4.mjs} +9 -9
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -6
- package/dist/index.mjs +1 -1
- package/dist/src/executors/build/schema.json +96 -0
- package/dist/src/executors/clean/schema.json +77 -0
- package/dist/src/executors/docs/schema.json +77 -0
- package/dist/src/executors/lint/schema.json +77 -0
- package/dist/src/plugin/index.d.mts +3 -4
- package/dist/src/plugin/index.d.ts +3 -4
- package/dist/src/plugin/index.js +2 -6
- package/dist/src/plugin/index.mjs +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Powerlines - Nx
|
|
4
4
|
|
|
5
|
+
## [0.10.8](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.8) (11/16/2025)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **nx:** Resolved issue with selecting config files in Nx plugin
|
|
10
|
+
([0f3535f](https://github.com/storm-software/powerlines/commit/0f3535f))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated **powerlines** to **v0.19.4**
|
|
15
|
+
|
|
5
16
|
## [0.10.7](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.7) (11/12/2025)
|
|
6
17
|
|
|
7
18
|
### Updated Dependencies
|
|
@@ -12,6 +12,7 @@ var json = require('@stryke/fs/json');
|
|
|
12
12
|
var murmurhash = require('@stryke/hash/murmurhash');
|
|
13
13
|
var joinPaths = require('@stryke/path/join-paths');
|
|
14
14
|
var kebabCase = require('@stryke/string-format/kebab-case');
|
|
15
|
+
var titleCase = require('@stryke/string-format/title-case');
|
|
15
16
|
var isError = require('@stryke/type-checks/is-error');
|
|
16
17
|
var defu = require('defu');
|
|
17
18
|
var jiti = require('jiti');
|
|
@@ -62,10 +63,11 @@ function getNxPluginInputs(framework) {
|
|
|
62
63
|
chunkSHUYVCID_js.__name(getNxPluginInputs, "getNxPluginInputs");
|
|
63
64
|
function createNxPlugin(opts) {
|
|
64
65
|
const framework = opts?.framework || "powerlines";
|
|
65
|
-
const
|
|
66
|
+
const name = opts?.name || `${framework}/plugin/nx`;
|
|
66
67
|
const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
|
|
67
68
|
const targetInputs = getNxTargetInputs(framework);
|
|
68
69
|
const pluginInputs = getNxPluginInputs(framework);
|
|
70
|
+
console.debug(`[${name}]: Initializing the ${titleCase.titleCase(framework)} Nx plugin for the following inputs: ${pluginInputs}`);
|
|
69
71
|
return [
|
|
70
72
|
pluginInputs,
|
|
71
73
|
async (configFiles, options, contextV2) => {
|
|
@@ -82,7 +84,7 @@ function createNxPlugin(opts) {
|
|
|
82
84
|
try {
|
|
83
85
|
const projectRoot = pluginHelpers.getProjectRoot(configFile, contextV2.workspaceRoot);
|
|
84
86
|
if (!projectRoot) {
|
|
85
|
-
console.error(`[${
|
|
87
|
+
console.error(`[${name}]: package.json and ${framework} configuration files (i.e. ${framework}.config.ts) must be located in the project root directory: ${configFile}`);
|
|
86
88
|
return {};
|
|
87
89
|
}
|
|
88
90
|
const root = pluginHelpers.getRoot(projectRoot, context);
|
|
@@ -97,12 +99,12 @@ function createNxPlugin(opts) {
|
|
|
97
99
|
const userConfig = await chunkUOTRU26N_js.loadUserConfigFile(projectRoot, jiti$1, "build", "development", configFile, framework);
|
|
98
100
|
const packageJson = json.readJsonFileSync(joinPaths.joinPaths(projectRoot, "package.json"));
|
|
99
101
|
if (!userConfig.configFile && !packageJson.storm) {
|
|
100
|
-
console.debug(`[${
|
|
102
|
+
console.debug(`[${name}]: Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
|
|
101
103
|
return {};
|
|
102
104
|
}
|
|
103
105
|
const projectConfig = pluginHelpers.getProjectConfigFromProjectRoot(projectRoot, packageJson);
|
|
104
106
|
if (!projectConfig) {
|
|
105
|
-
console.warn(`[${
|
|
107
|
+
console.warn(`[${name}]: No project configuration found for project in root directory ${projectRoot}`);
|
|
106
108
|
return {};
|
|
107
109
|
}
|
|
108
110
|
const tsconfig = userConfig?.tsconfig || (exists.existsSync(joinPaths.joinPaths(projectRoot, "tsconfig.json")) ? joinPaths.joinPaths(projectRoot, "tsconfig.json") : void 0);
|
|
@@ -291,7 +293,7 @@ function createNxPlugin(opts) {
|
|
|
291
293
|
}
|
|
292
294
|
};
|
|
293
295
|
}
|
|
294
|
-
projectTags.setDefaultProjectTags(projectConfig,
|
|
296
|
+
projectTags.setDefaultProjectTags(projectConfig, name);
|
|
295
297
|
projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
|
|
296
298
|
overwrite: true
|
|
297
299
|
});
|
|
@@ -307,7 +309,7 @@ function createNxPlugin(opts) {
|
|
|
307
309
|
}
|
|
308
310
|
};
|
|
309
311
|
} catch (error) {
|
|
310
|
-
console.error(`[${
|
|
312
|
+
console.error(`[${name}]: ${isError.isError(error) ? error.message : "Unknown fatal error"}`);
|
|
311
313
|
return {};
|
|
312
314
|
}
|
|
313
315
|
}, configFiles, options, contextV2);
|
|
@@ -317,11 +319,8 @@ function createNxPlugin(opts) {
|
|
|
317
319
|
chunkSHUYVCID_js.__name(createNxPlugin, "createNxPlugin");
|
|
318
320
|
|
|
319
321
|
// src/plugin/index.ts
|
|
320
|
-
var name = "powerlines/nx/plugin";
|
|
321
322
|
var createNodesV2 = createNxPlugin({
|
|
322
|
-
name,
|
|
323
323
|
framework: "powerlines"
|
|
324
324
|
});
|
|
325
325
|
|
|
326
326
|
exports.createNodesV2 = createNodesV2;
|
|
327
|
-
exports.name = name;
|
|
@@ -10,6 +10,7 @@ import { readJsonFileSync } from '@stryke/fs/json';
|
|
|
10
10
|
import { murmurhash } from '@stryke/hash/murmurhash';
|
|
11
11
|
import { joinPaths } from '@stryke/path/join-paths';
|
|
12
12
|
import { kebabCase } from '@stryke/string-format/kebab-case';
|
|
13
|
+
import { titleCase } from '@stryke/string-format/title-case';
|
|
13
14
|
import { isError } from '@stryke/type-checks/is-error';
|
|
14
15
|
import defu from 'defu';
|
|
15
16
|
import { createJiti } from 'jiti';
|
|
@@ -56,10 +57,11 @@ function getNxPluginInputs(framework) {
|
|
|
56
57
|
__name(getNxPluginInputs, "getNxPluginInputs");
|
|
57
58
|
function createNxPlugin(opts) {
|
|
58
59
|
const framework = opts?.framework || "powerlines";
|
|
59
|
-
const
|
|
60
|
+
const name = opts?.name || `${framework}/plugin/nx`;
|
|
60
61
|
const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
|
|
61
62
|
const targetInputs = getNxTargetInputs(framework);
|
|
62
63
|
const pluginInputs = getNxPluginInputs(framework);
|
|
64
|
+
console.debug(`[${name}]: Initializing the ${titleCase(framework)} Nx plugin for the following inputs: ${pluginInputs}`);
|
|
63
65
|
return [
|
|
64
66
|
pluginInputs,
|
|
65
67
|
async (configFiles, options, contextV2) => {
|
|
@@ -76,7 +78,7 @@ function createNxPlugin(opts) {
|
|
|
76
78
|
try {
|
|
77
79
|
const projectRoot = getProjectRoot(configFile, contextV2.workspaceRoot);
|
|
78
80
|
if (!projectRoot) {
|
|
79
|
-
console.error(`[${
|
|
81
|
+
console.error(`[${name}]: package.json and ${framework} configuration files (i.e. ${framework}.config.ts) must be located in the project root directory: ${configFile}`);
|
|
80
82
|
return {};
|
|
81
83
|
}
|
|
82
84
|
const root = getRoot(projectRoot, context);
|
|
@@ -91,12 +93,12 @@ function createNxPlugin(opts) {
|
|
|
91
93
|
const userConfig = await loadUserConfigFile(projectRoot, jiti, "build", "development", configFile, framework);
|
|
92
94
|
const packageJson = readJsonFileSync(joinPaths(projectRoot, "package.json"));
|
|
93
95
|
if (!userConfig.configFile && !packageJson.storm) {
|
|
94
|
-
console.debug(`[${
|
|
96
|
+
console.debug(`[${name}]: Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
|
|
95
97
|
return {};
|
|
96
98
|
}
|
|
97
99
|
const projectConfig = getProjectConfigFromProjectRoot(projectRoot, packageJson);
|
|
98
100
|
if (!projectConfig) {
|
|
99
|
-
console.warn(`[${
|
|
101
|
+
console.warn(`[${name}]: No project configuration found for project in root directory ${projectRoot}`);
|
|
100
102
|
return {};
|
|
101
103
|
}
|
|
102
104
|
const tsconfig = userConfig?.tsconfig || (existsSync(joinPaths(projectRoot, "tsconfig.json")) ? joinPaths(projectRoot, "tsconfig.json") : void 0);
|
|
@@ -285,7 +287,7 @@ function createNxPlugin(opts) {
|
|
|
285
287
|
}
|
|
286
288
|
};
|
|
287
289
|
}
|
|
288
|
-
setDefaultProjectTags(projectConfig,
|
|
290
|
+
setDefaultProjectTags(projectConfig, name);
|
|
289
291
|
addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
|
|
290
292
|
overwrite: true
|
|
291
293
|
});
|
|
@@ -301,7 +303,7 @@ function createNxPlugin(opts) {
|
|
|
301
303
|
}
|
|
302
304
|
};
|
|
303
305
|
} catch (error) {
|
|
304
|
-
console.error(`[${
|
|
306
|
+
console.error(`[${name}]: ${isError(error) ? error.message : "Unknown fatal error"}`);
|
|
305
307
|
return {};
|
|
306
308
|
}
|
|
307
309
|
}, configFiles, options, contextV2);
|
|
@@ -311,10 +313,8 @@ function createNxPlugin(opts) {
|
|
|
311
313
|
__name(createNxPlugin, "createNxPlugin");
|
|
312
314
|
|
|
313
315
|
// src/plugin/index.ts
|
|
314
|
-
var name = "powerlines/nx/plugin";
|
|
315
316
|
var createNodesV2 = createNxPlugin({
|
|
316
|
-
name,
|
|
317
317
|
framework: "powerlines"
|
|
318
318
|
});
|
|
319
319
|
|
|
320
|
-
export { createNodesV2
|
|
320
|
+
export { createNodesV2 };
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ export { L as LintExecutorSchema, e as lint } from './executor-CIEyQL42.mjs';
|
|
|
5
5
|
export { P as PrepareExecutorSchema, e as prepare } from './executor-D0PJOQkn.mjs';
|
|
6
6
|
export { default as sync, default as syncGenerator } from './src/generators/sync/generator.mjs';
|
|
7
7
|
export { SyncGeneratorSchema } from './generators.mjs';
|
|
8
|
-
export { createNodesV2
|
|
8
|
+
export { createNodesV2 } from './src/plugin/index.mjs';
|
|
9
9
|
import '@nx/devkit';
|
|
10
10
|
import '@storm-software/workspace-tools/types';
|
|
11
11
|
import 'powerlines';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { L as LintExecutorSchema, e as lint } from './executor-BAcpDLQu.js';
|
|
|
5
5
|
export { P as PrepareExecutorSchema, e as prepare } from './executor-CkqLFUNx.js';
|
|
6
6
|
export { default as sync, default as syncGenerator } from './src/generators/sync/generator.js';
|
|
7
7
|
export { SyncGeneratorSchema } from './generators.js';
|
|
8
|
-
export { createNodesV2
|
|
8
|
+
export { createNodesV2 } from './src/plugin/index.js';
|
|
9
9
|
import '@nx/devkit';
|
|
10
10
|
import '@storm-software/workspace-tools/types';
|
|
11
11
|
import 'powerlines';
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var chunk4S5RU53T_js = require('./chunk-4S5RU53T.js');
|
|
|
7
7
|
var chunkIUHTUUDE_js = require('./chunk-IUHTUUDE.js');
|
|
8
8
|
require('./chunk-N2YKXZ5R.js');
|
|
9
9
|
var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
|
|
10
|
-
var
|
|
10
|
+
var chunkL5RBARDS_js = require('./chunk-L5RBARDS.js');
|
|
11
11
|
var chunkQJEIBIEZ_js = require('./chunk-QJEIBIEZ.js');
|
|
12
12
|
require('./chunk-WUF54G5K.js');
|
|
13
13
|
require('./chunk-UOTRU26N.js');
|
|
@@ -41,11 +41,7 @@ Object.defineProperty(exports, "syncGenerator", {
|
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "createNodesV2", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, "name", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () { return chunk6QJOYEGY_js.name; }
|
|
44
|
+
get: function () { return chunkL5RBARDS_js.createNodesV2; }
|
|
49
45
|
});
|
|
50
46
|
Object.defineProperty(exports, "build", {
|
|
51
47
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ export { executor_default as lint } from './chunk-T52ZTHWM.mjs';
|
|
|
5
5
|
export { executor_default as prepare } from './chunk-AX3G6RLK.mjs';
|
|
6
6
|
import './chunk-23KFTIT2.mjs';
|
|
7
7
|
export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
|
|
8
|
-
export { createNodesV2
|
|
8
|
+
export { createNodesV2 } from './chunk-QWEMU3V4.mjs';
|
|
9
9
|
export { executor_default as build } from './chunk-3TWAKTYR.mjs';
|
|
10
10
|
import './chunk-3WPWHDP3.mjs';
|
|
11
11
|
import './chunk-DVGRVHRD.mjs';
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "#",
|
|
3
|
+
"title": "Build Executor",
|
|
4
|
+
"description": "A type definition for the Powerlines - Build executor schema",
|
|
5
|
+
"required": [],
|
|
6
|
+
"properties": {
|
|
7
|
+
"outputPath": {
|
|
8
|
+
"title": "Output Path",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "path",
|
|
11
|
+
"description": "The output path for the build",
|
|
12
|
+
"id": "#outputPath",
|
|
13
|
+
"default": "dist/{projectRoot}"
|
|
14
|
+
},
|
|
15
|
+
"tsconfig": {
|
|
16
|
+
"title": "TypeScript Configuration File",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "path",
|
|
19
|
+
"description": "The path to the tsconfig file",
|
|
20
|
+
"id": "#tsconfig",
|
|
21
|
+
"default": "{projectRoot}/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
"configFile": {
|
|
24
|
+
"title": "Powerlines Configuration File",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "path",
|
|
27
|
+
"description": "The path to the Powerlines configuration file",
|
|
28
|
+
"id": "#configFile",
|
|
29
|
+
"default": "{projectRoot}/powerlines.config.ts"
|
|
30
|
+
},
|
|
31
|
+
"mode": {
|
|
32
|
+
"title": "Mode",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "The build mode",
|
|
35
|
+
"enum": [
|
|
36
|
+
"development",
|
|
37
|
+
"test",
|
|
38
|
+
"production"
|
|
39
|
+
],
|
|
40
|
+
"id": "#mode"
|
|
41
|
+
},
|
|
42
|
+
"skipInstalls": {
|
|
43
|
+
"title": "Skip Installs",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"description": "Skip installing dependencies before building",
|
|
46
|
+
"id": "#skipInstalls"
|
|
47
|
+
},
|
|
48
|
+
"skipCache": {
|
|
49
|
+
"title": "Skip Cache",
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"description": "Skip the cache when building",
|
|
52
|
+
"id": "#skipCache"
|
|
53
|
+
},
|
|
54
|
+
"logLevel": {
|
|
55
|
+
"title": "Log Level",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The log level to use for the build process",
|
|
58
|
+
"enum": [
|
|
59
|
+
"fatal",
|
|
60
|
+
"error",
|
|
61
|
+
"warn",
|
|
62
|
+
"success",
|
|
63
|
+
"info",
|
|
64
|
+
"debug",
|
|
65
|
+
"trace",
|
|
66
|
+
"silent"
|
|
67
|
+
],
|
|
68
|
+
"id": "#logLevel"
|
|
69
|
+
},
|
|
70
|
+
"entry": {
|
|
71
|
+
"title": "Entry Path(s)",
|
|
72
|
+
"description": "The entry path(s) for the package",
|
|
73
|
+
"oneOf": [
|
|
74
|
+
{
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"id": "#entry",
|
|
85
|
+
"type": "any",
|
|
86
|
+
"default": {}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"type": "object",
|
|
90
|
+
"default": {
|
|
91
|
+
"outputPath": "dist/{projectRoot}",
|
|
92
|
+
"tsconfig": "{projectRoot}/tsconfig.json",
|
|
93
|
+
"configFile": "{projectRoot}/powerlines.config.ts",
|
|
94
|
+
"entry": {}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "#",
|
|
3
|
+
"title": "Clean Executor",
|
|
4
|
+
"description": "A type definition for the Powerlines - Clean executor schema",
|
|
5
|
+
"required": [],
|
|
6
|
+
"properties": {
|
|
7
|
+
"outputPath": {
|
|
8
|
+
"title": "Output Path",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "path",
|
|
11
|
+
"description": "The output path for the build",
|
|
12
|
+
"id": "#outputPath",
|
|
13
|
+
"default": "dist/{projectRoot}"
|
|
14
|
+
},
|
|
15
|
+
"tsconfig": {
|
|
16
|
+
"title": "TypeScript Configuration File",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "path",
|
|
19
|
+
"description": "The path to the tsconfig file",
|
|
20
|
+
"id": "#tsconfig",
|
|
21
|
+
"default": "{projectRoot}/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
"configFile": {
|
|
24
|
+
"title": "Powerlines Configuration File",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "path",
|
|
27
|
+
"description": "The path to the Powerlines configuration file",
|
|
28
|
+
"id": "#configFile",
|
|
29
|
+
"default": "{projectRoot}/powerlines.config.ts"
|
|
30
|
+
},
|
|
31
|
+
"mode": {
|
|
32
|
+
"title": "Mode",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "The build mode",
|
|
35
|
+
"enum": [
|
|
36
|
+
"development",
|
|
37
|
+
"test",
|
|
38
|
+
"production"
|
|
39
|
+
],
|
|
40
|
+
"id": "#mode"
|
|
41
|
+
},
|
|
42
|
+
"skipInstalls": {
|
|
43
|
+
"title": "Skip Installs",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"description": "Skip installing dependencies during prepare stage",
|
|
46
|
+
"id": "#skipInstalls"
|
|
47
|
+
},
|
|
48
|
+
"skipCache": {
|
|
49
|
+
"title": "Skip Cache",
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"description": "Skip the caching mechanism during the build process (if required)",
|
|
52
|
+
"id": "#skipCache"
|
|
53
|
+
},
|
|
54
|
+
"logLevel": {
|
|
55
|
+
"title": "Log Level",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The log level to use for the build process",
|
|
58
|
+
"enum": [
|
|
59
|
+
"fatal",
|
|
60
|
+
"error",
|
|
61
|
+
"warn",
|
|
62
|
+
"success",
|
|
63
|
+
"info",
|
|
64
|
+
"debug",
|
|
65
|
+
"trace",
|
|
66
|
+
"silent"
|
|
67
|
+
],
|
|
68
|
+
"id": "#logLevel"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"type": "object",
|
|
72
|
+
"default": {
|
|
73
|
+
"outputPath": "dist/{projectRoot}",
|
|
74
|
+
"tsconfig": "{projectRoot}/tsconfig.json",
|
|
75
|
+
"configFile": "{projectRoot}/powerlines.config.ts"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "#",
|
|
3
|
+
"title": "Docs Executor",
|
|
4
|
+
"description": "A type definition for the Powerlines - Docs executor schema",
|
|
5
|
+
"required": [],
|
|
6
|
+
"properties": {
|
|
7
|
+
"outputPath": {
|
|
8
|
+
"title": "Output Path",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "path",
|
|
11
|
+
"description": "The output path for the build",
|
|
12
|
+
"id": "#outputPath",
|
|
13
|
+
"default": "dist/{projectRoot}"
|
|
14
|
+
},
|
|
15
|
+
"tsconfig": {
|
|
16
|
+
"title": "TypeScript Configuration File",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "path",
|
|
19
|
+
"description": "The path to the tsconfig file",
|
|
20
|
+
"id": "#tsconfig",
|
|
21
|
+
"default": "{projectRoot}/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
"configFile": {
|
|
24
|
+
"title": "Powerlines Configuration File",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "path",
|
|
27
|
+
"description": "The path to the Powerlines configuration file",
|
|
28
|
+
"id": "#configFile",
|
|
29
|
+
"default": "{projectRoot}/powerlines.config.ts"
|
|
30
|
+
},
|
|
31
|
+
"mode": {
|
|
32
|
+
"title": "Mode",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "The build mode",
|
|
35
|
+
"enum": [
|
|
36
|
+
"development",
|
|
37
|
+
"test",
|
|
38
|
+
"production"
|
|
39
|
+
],
|
|
40
|
+
"id": "#mode"
|
|
41
|
+
},
|
|
42
|
+
"skipInstalls": {
|
|
43
|
+
"title": "Skip Installs",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"description": "Skip installing dependencies before building",
|
|
46
|
+
"id": "#skipInstalls"
|
|
47
|
+
},
|
|
48
|
+
"skipCache": {
|
|
49
|
+
"title": "Skip Cache",
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"description": "Skip the cache when building",
|
|
52
|
+
"id": "#skipCache"
|
|
53
|
+
},
|
|
54
|
+
"logLevel": {
|
|
55
|
+
"title": "Log Level",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The log level to use for the build process",
|
|
58
|
+
"enum": [
|
|
59
|
+
"fatal",
|
|
60
|
+
"error",
|
|
61
|
+
"warn",
|
|
62
|
+
"success",
|
|
63
|
+
"info",
|
|
64
|
+
"debug",
|
|
65
|
+
"trace",
|
|
66
|
+
"silent"
|
|
67
|
+
],
|
|
68
|
+
"id": "#logLevel"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"type": "object",
|
|
72
|
+
"default": {
|
|
73
|
+
"outputPath": "dist/{projectRoot}",
|
|
74
|
+
"tsconfig": "{projectRoot}/tsconfig.json",
|
|
75
|
+
"configFile": "{projectRoot}/powerlines.config.ts"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "#",
|
|
3
|
+
"title": "Lint Executor",
|
|
4
|
+
"description": "A type definition for the Powerlines - Lint executor schema",
|
|
5
|
+
"required": [],
|
|
6
|
+
"properties": {
|
|
7
|
+
"outputPath": {
|
|
8
|
+
"title": "Output Path",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "path",
|
|
11
|
+
"description": "The output path for the build",
|
|
12
|
+
"id": "#outputPath",
|
|
13
|
+
"default": "dist/{projectRoot}"
|
|
14
|
+
},
|
|
15
|
+
"tsconfig": {
|
|
16
|
+
"title": "TypeScript Configuration File",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "path",
|
|
19
|
+
"description": "The path to the tsconfig file",
|
|
20
|
+
"id": "#tsconfig",
|
|
21
|
+
"default": "{projectRoot}/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
"configFile": {
|
|
24
|
+
"title": "Powerlines Configuration File",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "path",
|
|
27
|
+
"description": "The path to the Powerlines configuration file",
|
|
28
|
+
"id": "#configFile",
|
|
29
|
+
"default": "{projectRoot}/powerlines.config.ts"
|
|
30
|
+
},
|
|
31
|
+
"mode": {
|
|
32
|
+
"title": "Mode",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "The build mode",
|
|
35
|
+
"enum": [
|
|
36
|
+
"development",
|
|
37
|
+
"test",
|
|
38
|
+
"production"
|
|
39
|
+
],
|
|
40
|
+
"id": "#mode"
|
|
41
|
+
},
|
|
42
|
+
"skipInstalls": {
|
|
43
|
+
"title": "Skip Installs",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"description": "Skip installing dependencies before building",
|
|
46
|
+
"id": "#skipInstalls"
|
|
47
|
+
},
|
|
48
|
+
"skipCache": {
|
|
49
|
+
"title": "Skip Cache",
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"description": "Skip the cache when building",
|
|
52
|
+
"id": "#skipCache"
|
|
53
|
+
},
|
|
54
|
+
"logLevel": {
|
|
55
|
+
"title": "Log Level",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The log level to use for the build process",
|
|
58
|
+
"enum": [
|
|
59
|
+
"fatal",
|
|
60
|
+
"error",
|
|
61
|
+
"warn",
|
|
62
|
+
"success",
|
|
63
|
+
"info",
|
|
64
|
+
"debug",
|
|
65
|
+
"trace",
|
|
66
|
+
"silent"
|
|
67
|
+
],
|
|
68
|
+
"id": "#logLevel"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"type": "object",
|
|
72
|
+
"default": {
|
|
73
|
+
"outputPath": "dist/{projectRoot}",
|
|
74
|
+
"tsconfig": "{projectRoot}/tsconfig.json",
|
|
75
|
+
"configFile": "{projectRoot}/powerlines.config.ts"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _nx_devkit from '@nx/devkit';
|
|
2
2
|
|
|
3
3
|
interface NxPluginOptions {
|
|
4
4
|
clean?: false | {
|
|
@@ -173,7 +173,6 @@ interface NxPluginOptions {
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
declare const
|
|
177
|
-
declare const createNodesV2: CreateNodesV2<NxPluginOptions>;
|
|
176
|
+
declare const createNodesV2: _nx_devkit.CreateNodesV2<NxPluginOptions>;
|
|
178
177
|
|
|
179
|
-
export { createNodesV2
|
|
178
|
+
export { createNodesV2 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _nx_devkit from '@nx/devkit';
|
|
2
2
|
|
|
3
3
|
interface NxPluginOptions {
|
|
4
4
|
clean?: false | {
|
|
@@ -173,7 +173,6 @@ interface NxPluginOptions {
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
declare const
|
|
177
|
-
declare const createNodesV2: CreateNodesV2<NxPluginOptions>;
|
|
176
|
+
declare const createNodesV2: _nx_devkit.CreateNodesV2<NxPluginOptions>;
|
|
178
177
|
|
|
179
|
-
export { createNodesV2
|
|
178
|
+
export { createNodesV2 };
|
package/dist/src/plugin/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkL5RBARDS_js = require('../../chunk-L5RBARDS.js');
|
|
4
4
|
require('../../chunk-UOTRU26N.js');
|
|
5
5
|
require('../../chunk-SHUYVCID.js');
|
|
6
6
|
|
|
@@ -8,9 +8,5 @@ require('../../chunk-SHUYVCID.js');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "createNodesV2", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "name", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return chunk6QJOYEGY_js.name; }
|
|
11
|
+
get: function () { return chunkL5RBARDS_js.createNodesV2; }
|
|
16
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/nx",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
4
4
|
"description": "A Nx plugin to support Powerlines development in Nx monorepos.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -140,12 +140,12 @@
|
|
|
140
140
|
"typings": "dist/index.d.ts",
|
|
141
141
|
"dependencies": {
|
|
142
142
|
"@nx/devkit": "^22.0.3",
|
|
143
|
-
"@storm-software/build-tools": "^0.158.
|
|
144
|
-
"@storm-software/config": "^1.134.
|
|
145
|
-
"@storm-software/config-tools": "^1.188.
|
|
146
|
-
"@storm-software/esbuild": "^0.53.
|
|
147
|
-
"@storm-software/unbuild": "^0.57.
|
|
148
|
-
"@storm-software/workspace-tools": "^1.293.
|
|
143
|
+
"@storm-software/build-tools": "^0.158.40",
|
|
144
|
+
"@storm-software/config": "^1.134.40",
|
|
145
|
+
"@storm-software/config-tools": "^1.188.40",
|
|
146
|
+
"@storm-software/esbuild": "^0.53.40",
|
|
147
|
+
"@storm-software/unbuild": "^0.57.40",
|
|
148
|
+
"@storm-software/workspace-tools": "^1.293.10",
|
|
149
149
|
"@stryke/fs": "^0.32.13",
|
|
150
150
|
"@stryke/hash": "^0.12.3",
|
|
151
151
|
"@stryke/path": "^0.19.2",
|
|
@@ -154,11 +154,11 @@
|
|
|
154
154
|
"defu": "^6.1.4",
|
|
155
155
|
"jiti": "^2.6.1",
|
|
156
156
|
"nx": "^22.0.3",
|
|
157
|
-
"powerlines": "^0.19.
|
|
157
|
+
"powerlines": "^0.19.5"
|
|
158
158
|
},
|
|
159
159
|
"devDependencies": {
|
|
160
160
|
"@nx/workspace": "^22.0.3",
|
|
161
|
-
"@storm-software/testing-tools": "^1.119.
|
|
161
|
+
"@storm-software/testing-tools": "^1.119.40",
|
|
162
162
|
"@types/node": "^22.19.1",
|
|
163
163
|
"eslint-flat-config-utils": "^2.1.4",
|
|
164
164
|
"jsonc-eslint-parser": "^2.4.1",
|
|
@@ -168,5 +168,5 @@
|
|
|
168
168
|
"publishConfig": { "access": "public" },
|
|
169
169
|
"executors": "./executors.json",
|
|
170
170
|
"generators": "./generators.json",
|
|
171
|
-
"gitHead": "
|
|
171
|
+
"gitHead": "041609f2ea8770273cff82b402e3abdc3fcd9133"
|
|
172
172
|
}
|