@powerlines/nx 0.11.217 → 0.11.218
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 +6 -0
- package/dist/{chunk-2OUVFH73.js → chunk-2VN57DMC.js} +2 -2
- package/dist/chunk-3BI2YVJ3.js +156 -0
- package/dist/{chunk-5XND6U2P.js → chunk-3TZVQPPH.js} +2 -2
- package/dist/chunk-4OMPO3GC.mjs +154 -0
- package/dist/{chunk-AQU4Y7TY.mjs → chunk-5NHMBXXZ.mjs} +1 -1
- package/dist/{chunk-UWZA4FE6.mjs → chunk-CINC3R52.mjs} +1 -1
- package/dist/{chunk-MMYSL52M.mjs → chunk-EFG2AWKX.mjs} +220 -388
- package/dist/{chunk-TWOXCXFE.js → chunk-EQMUIUSF.js} +16 -16
- package/dist/{chunk-BUUW4BAS.mjs → chunk-ETYR57U3.mjs} +2 -2
- package/dist/chunk-FSGRYCTL.js +281 -0
- package/dist/{chunk-2YJP4HRC.mjs → chunk-GCIPEE4T.mjs} +7 -7
- package/dist/{chunk-ELBUYWVF.mjs → chunk-GKRW32W2.mjs} +1 -1
- package/dist/{chunk-C4XEVBMI.mjs → chunk-H7FXL53F.mjs} +1 -1
- package/dist/{chunk-VSMLSWBT.js → chunk-IOBDAGVL.js} +8 -8
- package/dist/{chunk-5QDW5A4Z.js → chunk-JCB2SUGI.js} +2 -2
- package/dist/{chunk-TL367T24.js → chunk-JFLVE4R6.js} +2 -2
- package/dist/chunk-JL4HQ7ZD.mjs +260 -0
- package/dist/{chunk-WJP3FWAH.js → chunk-MDVQOPYK.js} +2 -2
- package/dist/{chunk-ZYOL33SX.mjs → chunk-RQR4JLRG.mjs} +15 -15
- package/dist/{chunk-QJE3HWRQ.js → chunk-VNEJ2D4E.js} +3 -3
- package/dist/{chunk-JQZOWO7J.mjs → chunk-XX6ZLY4D.mjs} +1 -1
- package/dist/{chunk-BM4NZS6T.js → chunk-ZVVHO24E.js} +244 -412
- package/dist/{executor-Bb8vGV8C.d.ts → executor-AQVlPFta.d.ts} +90 -19
- package/dist/{executor-CQzw0-So.d.mts → executor-BNmIhtpF.d.mts} +90 -19
- package/dist/{executor-DwTFXSVb.d.mts → executor-C0A5mFLO.d.mts} +74 -19
- package/dist/{executor-u-vw0Uzf.d.mts → executor-Cep8-Y3A.d.mts} +90 -19
- package/dist/{executor-DY7vA66P.d.ts → executor-CkyahICv.d.ts} +74 -19
- package/dist/{executor-C2WSCUOW.d.ts → executor-DOsxw-Ih.d.ts} +90 -19
- package/dist/{executor-C5rCem7d.d.ts → executor-DUQbjUVt.d.ts} +90 -19
- package/dist/{executor-C9MI57kJ.d.ts → executor-O3MDQSFT.d.ts} +90 -19
- package/dist/{executor-fccJAIjg.d.mts → executor-U4mVkhQK.d.mts} +90 -19
- package/dist/{executor-DXaEo8YG.d.mts → executor-Xt5qNzC5.d.mts} +90 -19
- package/dist/executors.d.mts +5 -6
- package/dist/executors.d.ts +5 -6
- package/dist/executors.js +12 -12
- package/dist/executors.mjs +7 -7
- package/dist/index.d.mts +5 -6
- package/dist/index.d.ts +5 -6
- package/dist/index.js +15 -15
- package/dist/index.mjs +9 -9
- package/dist/src/base/base-executor.d.mts +1 -2
- package/dist/src/base/base-executor.d.ts +1 -2
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-executor.schema.d.d.mts +74 -19
- package/dist/src/base/base-executor.schema.d.d.ts +74 -19
- package/dist/src/base/base-executor.schema.d.ts +74 -19
- package/dist/src/base/base-executor.schema.json +108 -26
- package/dist/src/base/base-executor.untyped.js +2 -2
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/executors/build/executor.d.mts +1 -2
- package/dist/src/executors/build/executor.d.ts +1 -2
- package/dist/src/executors/build/executor.js +5 -5
- package/dist/src/executors/build/executor.mjs +3 -3
- package/dist/src/executors/build/schema.d.ts +90 -19
- package/dist/src/executors/build/schema.json +119 -25
- package/dist/src/executors/build/untyped.js +3 -3
- package/dist/src/executors/build/untyped.mjs +2 -2
- package/dist/src/executors/clean/executor.d.mts +1 -2
- package/dist/src/executors/clean/executor.d.ts +1 -2
- package/dist/src/executors/clean/executor.js +5 -5
- package/dist/src/executors/clean/executor.mjs +3 -3
- package/dist/src/executors/clean/schema.d.ts +74 -19
- package/dist/src/executors/clean/schema.json +108 -26
- package/dist/src/executors/clean/untyped.js +2 -2
- package/dist/src/executors/clean/untyped.mjs +1 -1
- package/dist/src/executors/docs/executor.d.mts +1 -2
- package/dist/src/executors/docs/executor.d.ts +1 -2
- package/dist/src/executors/docs/executor.js +5 -5
- package/dist/src/executors/docs/executor.mjs +3 -3
- package/dist/src/executors/docs/schema.d.ts +90 -19
- package/dist/src/executors/docs/schema.json +120 -26
- package/dist/src/executors/docs/untyped.js +3 -3
- package/dist/src/executors/docs/untyped.mjs +2 -2
- package/dist/src/executors/lint/executor.d.mts +1 -2
- package/dist/src/executors/lint/executor.d.ts +1 -2
- package/dist/src/executors/lint/executor.js +5 -5
- package/dist/src/executors/lint/executor.mjs +3 -3
- package/dist/src/executors/lint/schema.d.ts +90 -19
- package/dist/src/executors/lint/schema.json +120 -26
- package/dist/src/executors/lint/untyped.js +3 -3
- package/dist/src/executors/lint/untyped.mjs +2 -2
- package/dist/src/executors/prepare/executor.d.mts +1 -2
- package/dist/src/executors/prepare/executor.d.ts +1 -2
- package/dist/src/executors/prepare/executor.js +5 -5
- package/dist/src/executors/prepare/executor.mjs +3 -3
- package/dist/src/executors/prepare/schema.d.ts +90 -19
- package/dist/src/executors/prepare/schema.json +120 -26
- package/dist/src/executors/prepare/untyped.js +3 -3
- package/dist/src/executors/prepare/untyped.mjs +2 -2
- package/dist/src/helpers/plugin-utilities.js +5 -5
- package/dist/src/helpers/plugin-utilities.mjs +2 -2
- package/dist/src/plugin/index.js +4 -4
- package/dist/src/plugin/index.mjs +3 -3
- package/docs/api/base-executor.schema.md +71 -19
- package/docs/api/build/schema.md +89 -19
- package/docs/api/clean/schema.md +71 -19
- package/docs/api/docs/schema.md +89 -19
- package/docs/api/lint/schema.md +89 -19
- package/docs/api/prepare/schema.md +89 -19
- package/package.json +11 -11
- package/dist/chunk-AGZ4P3AS.mjs +0 -87
- package/dist/chunk-IR6TAW72.js +0 -81
- package/dist/chunk-NU3VTAH5.js +0 -98
- package/dist/chunk-XXWF7X5C.mjs +0 -75
package/dist/chunk-NU3VTAH5.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
4
|
-
var getConfig = require('@storm-software/config-tools/get-config');
|
|
5
|
-
var exists = require('@stryke/fs/exists');
|
|
6
|
-
var append = require('@stryke/path/append');
|
|
7
|
-
var joinPaths = require('@stryke/path/join-paths');
|
|
8
|
-
var replace = require('@stryke/path/replace');
|
|
9
|
-
var isFunction = require('@stryke/type-checks/is-function');
|
|
10
|
-
var isSetObject = require('@stryke/type-checks/is-set-object');
|
|
11
|
-
var c12 = require('c12');
|
|
12
|
-
var defu = require('defu');
|
|
13
|
-
require('@stryke/fs/json');
|
|
14
|
-
require('@stryke/fs/list-files');
|
|
15
|
-
require('@stryke/fs/remove-file');
|
|
16
|
-
require('@stryke/helpers/get-unique');
|
|
17
|
-
require('@stryke/path/file-path-fns');
|
|
18
|
-
var kebabCase = require('@stryke/string-format/kebab-case');
|
|
19
|
-
|
|
20
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
|
-
|
|
22
|
-
var defu__default = /*#__PURE__*/_interopDefault(defu);
|
|
23
|
-
|
|
24
|
-
async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
25
|
-
return defu__default.default({
|
|
26
|
-
workspaceRoot
|
|
27
|
-
}, await getConfig.getWorkspaceConfig(true, {
|
|
28
|
-
cwd,
|
|
29
|
-
workspaceRoot,
|
|
30
|
-
useDefault: true
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
chunkSHUYVCID_js.__name(loadWorkspaceConfig, "loadWorkspaceConfig");
|
|
34
|
-
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
|
|
35
|
-
let resolvedUserConfig = {};
|
|
36
|
-
let resolvedUserConfigFile;
|
|
37
|
-
if (configFile) {
|
|
38
|
-
resolvedUserConfigFile = exists.existsSync(replace.replacePath(configFile, projectRoot)) ? replace.replacePath(configFile, projectRoot) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), replace.replacePath(configFile, projectRoot))) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), replace.replacePath(configFile, projectRoot)) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile) : void 0;
|
|
39
|
-
}
|
|
40
|
-
if (!resolvedUserConfigFile) {
|
|
41
|
-
resolvedUserConfigFile = exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
|
|
42
|
-
}
|
|
43
|
-
if (resolvedUserConfigFile) {
|
|
44
|
-
const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
|
|
45
|
-
if (resolved) {
|
|
46
|
-
let config = {};
|
|
47
|
-
if (isFunction.isFunction(resolved)) {
|
|
48
|
-
config = await Promise.resolve(resolved({
|
|
49
|
-
command,
|
|
50
|
-
mode,
|
|
51
|
-
isSsrBuild: false,
|
|
52
|
-
isPreview: false
|
|
53
|
-
}));
|
|
54
|
-
}
|
|
55
|
-
if (isSetObject.isSetObject(config)) {
|
|
56
|
-
resolvedUserConfig = {
|
|
57
|
-
...config,
|
|
58
|
-
config,
|
|
59
|
-
configFile: resolvedUserConfigFile
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
const result = await c12.loadConfig({
|
|
65
|
-
cwd: projectRoot,
|
|
66
|
-
name: framework,
|
|
67
|
-
envName: mode,
|
|
68
|
-
globalRc: true,
|
|
69
|
-
packageJson: true,
|
|
70
|
-
dotenv: true,
|
|
71
|
-
jiti
|
|
72
|
-
});
|
|
73
|
-
return defu__default.default(resolvedUserConfig, isSetObject.isSetObject(result?.config) ? {
|
|
74
|
-
...result.config,
|
|
75
|
-
...result
|
|
76
|
-
} : {});
|
|
77
|
-
}
|
|
78
|
-
chunkSHUYVCID_js.__name(loadUserConfigFile, "loadUserConfigFile");
|
|
79
|
-
var PROJECT_ROOT_HASH_LENGTH = 45;
|
|
80
|
-
var CACHE_HASH_LENGTH = 62;
|
|
81
|
-
function getPrefixedProjectRootHash(name, projectRootHash) {
|
|
82
|
-
const combined = `${kebabCase.kebabCase(name)}_${projectRootHash}`;
|
|
83
|
-
return combined.length > PROJECT_ROOT_HASH_LENGTH ? combined.slice(0, PROJECT_ROOT_HASH_LENGTH) : combined;
|
|
84
|
-
}
|
|
85
|
-
chunkSHUYVCID_js.__name(getPrefixedProjectRootHash, "getPrefixedProjectRootHash");
|
|
86
|
-
async function writeMetaFile(context) {
|
|
87
|
-
const metaFilePath = joinPaths.joinPaths(context.dataPath, "meta.json");
|
|
88
|
-
context.debug(`Writing runtime metadata to ${metaFilePath}`);
|
|
89
|
-
await context.fs.write(metaFilePath, JSON.stringify(context.meta, null, 2));
|
|
90
|
-
}
|
|
91
|
-
chunkSHUYVCID_js.__name(writeMetaFile, "writeMetaFile");
|
|
92
|
-
|
|
93
|
-
exports.CACHE_HASH_LENGTH = CACHE_HASH_LENGTH;
|
|
94
|
-
exports.PROJECT_ROOT_HASH_LENGTH = PROJECT_ROOT_HASH_LENGTH;
|
|
95
|
-
exports.getPrefixedProjectRootHash = getPrefixedProjectRootHash;
|
|
96
|
-
exports.loadUserConfigFile = loadUserConfigFile;
|
|
97
|
-
exports.loadWorkspaceConfig = loadWorkspaceConfig;
|
|
98
|
-
exports.writeMetaFile = writeMetaFile;
|
package/dist/chunk-XXWF7X5C.mjs
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import baseExecutorSchema from '@storm-software/workspace-tools/base/base-executor.untyped';
|
|
2
|
-
import { defineUntypedSchema } from 'untyped';
|
|
3
|
-
|
|
4
|
-
// src/base/base-executor.untyped.ts
|
|
5
|
-
var base_executor_untyped_default = defineUntypedSchema({
|
|
6
|
-
...baseExecutorSchema,
|
|
7
|
-
$schema: {
|
|
8
|
-
id: "BaseExecutorSchema",
|
|
9
|
-
title: "Base Executor",
|
|
10
|
-
description: "A shared/base schema type definition for Powerlines executors",
|
|
11
|
-
required: []
|
|
12
|
-
},
|
|
13
|
-
tsconfig: {
|
|
14
|
-
$schema: {
|
|
15
|
-
title: "TypeScript Configuration File",
|
|
16
|
-
type: "string",
|
|
17
|
-
format: "path",
|
|
18
|
-
description: "The path to the tsconfig file"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
configFile: {
|
|
22
|
-
$schema: {
|
|
23
|
-
title: "Powerlines Configuration File",
|
|
24
|
-
type: "string",
|
|
25
|
-
format: "path",
|
|
26
|
-
description: "The path to the Powerlines configuration file"
|
|
27
|
-
},
|
|
28
|
-
$default: "{projectRoot}/powerlines.config.ts"
|
|
29
|
-
},
|
|
30
|
-
mode: {
|
|
31
|
-
$schema: {
|
|
32
|
-
title: "Mode",
|
|
33
|
-
type: "string",
|
|
34
|
-
description: "The build mode",
|
|
35
|
-
enum: [
|
|
36
|
-
"development",
|
|
37
|
-
"test",
|
|
38
|
-
"production"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
autoInstall: {
|
|
43
|
-
$schema: {
|
|
44
|
-
title: "Auto Install",
|
|
45
|
-
type: "boolean",
|
|
46
|
-
description: "Automatically install dependencies during prepare stage"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
skipCache: {
|
|
50
|
-
$schema: {
|
|
51
|
-
title: "Skip Cache",
|
|
52
|
-
type: "boolean",
|
|
53
|
-
description: "Skip the caching mechanism during the build process (if required)"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
logLevel: {
|
|
57
|
-
$schema: {
|
|
58
|
-
title: "Log Level",
|
|
59
|
-
type: "string",
|
|
60
|
-
description: "The log level to use for the build process",
|
|
61
|
-
enum: [
|
|
62
|
-
"fatal",
|
|
63
|
-
"error",
|
|
64
|
-
"warn",
|
|
65
|
-
"success",
|
|
66
|
-
"info",
|
|
67
|
-
"debug",
|
|
68
|
-
"trace",
|
|
69
|
-
"silent"
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
export { base_executor_untyped_default };
|