@powerlines/nx 0.11.218 → 0.11.220
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 +20 -0
- package/dist/{chunk-ZVVHO24E.js → chunk-5UVD555E.js} +1 -1
- package/dist/{chunk-5NHMBXXZ.mjs → chunk-5VLSWKPN.mjs} +1 -1
- package/dist/{chunk-2VN57DMC.js → chunk-6TYW2FMC.js} +2 -2
- package/dist/{chunk-JFLVE4R6.js → chunk-CON4PH6V.js} +2 -2
- package/dist/{chunk-JCB2SUGI.js → chunk-E3WT4AQR.js} +2 -2
- package/dist/{chunk-MDVQOPYK.js → chunk-GJ62I4AV.js} +2 -2
- package/dist/chunk-HNRM52ID.js +374 -0
- package/dist/chunk-IA3YWWWC.mjs +366 -0
- package/dist/{chunk-ETYR57U3.mjs → chunk-KWMCNI6Q.mjs} +1 -1
- package/dist/{chunk-EFG2AWKX.mjs → chunk-OBQF6HPF.mjs} +1 -1
- package/dist/{chunk-H7FXL53F.mjs → chunk-OX5V5IMP.mjs} +1 -1
- package/dist/{chunk-GKRW32W2.mjs → chunk-QN6ZKFPV.mjs} +1 -1
- package/dist/{chunk-XX6ZLY4D.mjs → chunk-RBM4GHDX.mjs} +1 -1
- package/dist/{chunk-VNEJ2D4E.js → chunk-TSCKHENO.js} +2 -2
- package/dist/{chunk-3TZVQPPH.js → chunk-TUMRUZ4M.js} +2 -2
- package/dist/{chunk-CINC3R52.mjs → chunk-Z5G2DQQE.mjs} +1 -1
- package/dist/executors.js +11 -11
- package/dist/executors.mjs +6 -6
- package/dist/index.js +14 -14
- package/dist/index.mjs +8 -8
- 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/plugin-utilities.d.mts +2 -2
- package/dist/src/helpers/plugin-utilities.d.ts +2 -2
- package/dist/src/helpers/plugin-utilities.js +4 -4
- package/dist/src/helpers/plugin-utilities.mjs +1 -1
- package/dist/src/plugin/index.js +3 -3
- package/dist/src/plugin/index.mjs +2 -2
- package/package.json +4 -4
- package/dist/chunk-EQMUIUSF.js +0 -364
- package/dist/chunk-RQR4JLRG.mjs +0 -356
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { ROOT_HASH_LENGTH, loadUserConfigFile } from './chunk-JL4HQ7ZD.mjs';
|
|
2
|
+
import { CONFIG_INPUTS } from './chunk-IC47MFKB.mjs';
|
|
3
|
+
import { __name } from './chunk-O6YSETKJ.mjs';
|
|
4
|
+
import { createNodesFromFiles } from '@nx/devkit';
|
|
5
|
+
import { withNamedInputs } from '@storm-software/workspace-tools/utils/nx-json';
|
|
6
|
+
import { getProjectRoot, getRoot, getProjectConfigFromProjectRoot } from '@storm-software/workspace-tools/utils/plugin-helpers';
|
|
7
|
+
import { setDefaultProjectTags, addProjectTag } from '@storm-software/workspace-tools/utils/project-tags';
|
|
8
|
+
import { getEnvPaths } from '@stryke/env/get-env-paths';
|
|
9
|
+
import { existsSync } from '@stryke/fs/exists';
|
|
10
|
+
import { murmurhash } from '@stryke/hash/murmurhash';
|
|
11
|
+
import { joinPaths } from '@stryke/path/join-paths';
|
|
12
|
+
import { kebabCase } from '@stryke/string-format/kebab-case';
|
|
13
|
+
import { titleCase } from '@stryke/string-format/title-case';
|
|
14
|
+
import { isError } from '@stryke/type-checks/is-error';
|
|
15
|
+
import { isSetObject } from '@stryke/type-checks/is-set-object';
|
|
16
|
+
import defu from 'defu';
|
|
17
|
+
import { createJiti } from 'jiti';
|
|
18
|
+
import { readFile } from 'node:fs/promises';
|
|
19
|
+
import { readNxJson } from 'nx/src/config/nx-json.js';
|
|
20
|
+
import { readTargetsFromPackageJson } from 'nx/src/utils/package-json.js';
|
|
21
|
+
|
|
22
|
+
function getNxTargetInputs(framework) {
|
|
23
|
+
return CONFIG_INPUTS.map((input) => input.replace("{framework}", framework));
|
|
24
|
+
}
|
|
25
|
+
__name(getNxTargetInputs, "getNxTargetInputs");
|
|
26
|
+
function getNxPluginInputs(framework) {
|
|
27
|
+
return `**/{${getNxTargetInputs(framework).map((input) => input.replace("{projectRoot}/", "")).join(",")}}`;
|
|
28
|
+
}
|
|
29
|
+
__name(getNxPluginInputs, "getNxPluginInputs");
|
|
30
|
+
function createNxPlugin(opts) {
|
|
31
|
+
try {
|
|
32
|
+
const framework = opts?.framework || "powerlines";
|
|
33
|
+
const name = opts?.name || `${framework}/nx/plugin`;
|
|
34
|
+
const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
|
|
35
|
+
const targetInputs = getNxTargetInputs(framework);
|
|
36
|
+
const pluginInputs = getNxPluginInputs(framework);
|
|
37
|
+
if (opts?.verboseOutput) {
|
|
38
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Initializing the ${titleCase(framework)} Nx plugin for the following inputs: ${pluginInputs}`);
|
|
39
|
+
}
|
|
40
|
+
return [
|
|
41
|
+
pluginInputs,
|
|
42
|
+
async (configFiles, options, contextV2) => {
|
|
43
|
+
const envPaths = getEnvPaths({
|
|
44
|
+
orgId: "storm-software",
|
|
45
|
+
appId: framework,
|
|
46
|
+
workspaceRoot: contextV2.workspaceRoot
|
|
47
|
+
});
|
|
48
|
+
if (!envPaths.cache) {
|
|
49
|
+
throw new Error("The cache directory could not be determined.");
|
|
50
|
+
}
|
|
51
|
+
const nxJson = readNxJson(contextV2.workspaceRoot);
|
|
52
|
+
const resolver = createJiti(contextV2.workspaceRoot, {
|
|
53
|
+
debug: !!options?.debug,
|
|
54
|
+
interopDefault: true,
|
|
55
|
+
fsCache: joinPaths(envPaths.cache, "nx-plugin", murmurhash(contextV2.workspaceRoot, {
|
|
56
|
+
maxLength: ROOT_HASH_LENGTH
|
|
57
|
+
}), "jiti"),
|
|
58
|
+
moduleCache: true
|
|
59
|
+
});
|
|
60
|
+
return createNodesFromFiles(async (configFile, _, context) => {
|
|
61
|
+
try {
|
|
62
|
+
const projectRoot = getProjectRoot(configFile, contextV2.workspaceRoot);
|
|
63
|
+
if (!projectRoot) {
|
|
64
|
+
console.error(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - package.json and ${framework} configuration files (i.e. ${framework}.config.ts) must be located in the project root directory: ${configFile}`);
|
|
65
|
+
return {};
|
|
66
|
+
}
|
|
67
|
+
const root = getRoot(projectRoot, context);
|
|
68
|
+
if (opts?.verboseOutput) {
|
|
69
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
70
|
+
}
|
|
71
|
+
const userConfig = await loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
|
|
72
|
+
if (!existsSync(joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
|
|
73
|
+
if (opts?.verboseOutput) {
|
|
74
|
+
console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${joinPaths(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
|
|
75
|
+
}
|
|
76
|
+
return {};
|
|
77
|
+
}
|
|
78
|
+
const packageJsonContent = await readFile(joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"), "utf8");
|
|
79
|
+
if (!packageJsonContent) {
|
|
80
|
+
if (opts?.verboseOutput) {
|
|
81
|
+
console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No package.json file found for project in root directory ${projectRoot}`);
|
|
82
|
+
}
|
|
83
|
+
return {};
|
|
84
|
+
}
|
|
85
|
+
const packageJson = JSON.parse(packageJsonContent);
|
|
86
|
+
if (!userConfig.configFile && !packageJson?.storm) {
|
|
87
|
+
if (opts?.verboseOutput) {
|
|
88
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
|
|
89
|
+
}
|
|
90
|
+
return {};
|
|
91
|
+
}
|
|
92
|
+
const projectConfig = getProjectConfigFromProjectRoot(projectRoot, packageJson);
|
|
93
|
+
if (!projectConfig) {
|
|
94
|
+
if (opts?.verboseOutput) {
|
|
95
|
+
console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No project configuration found for project in root directory ${projectRoot}`);
|
|
96
|
+
}
|
|
97
|
+
return {};
|
|
98
|
+
}
|
|
99
|
+
const targets = readTargetsFromPackageJson(packageJson, nxJson, projectRoot, context.workspaceRoot);
|
|
100
|
+
if (opts?.verboseOutput) {
|
|
101
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
|
|
102
|
+
}
|
|
103
|
+
if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
|
|
104
|
+
targets[options?.clean?.targetName || "clean"] = {
|
|
105
|
+
cache: true,
|
|
106
|
+
inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : withNamedInputs(targetInputs, [
|
|
107
|
+
options?.clean?.inputs || "typescript"
|
|
108
|
+
]),
|
|
109
|
+
outputs: options?.clean?.outputs,
|
|
110
|
+
executor: options?.clean?.executor || `@${framework}/nx:${options?.clean?.targetName || "clean"}`,
|
|
111
|
+
dependsOn: options?.clean?.dependsOn ?? [
|
|
112
|
+
`^${options?.clean?.targetName || "clean"}`
|
|
113
|
+
],
|
|
114
|
+
defaultConfiguration: options?.clean?.defaultConfiguration || "production",
|
|
115
|
+
options: {
|
|
116
|
+
outputPath: userConfig.output?.outputPath || "dist/{projectRoot}",
|
|
117
|
+
projectType: projectConfig.projectType || userConfig.projectType,
|
|
118
|
+
autoInstall: userConfig.autoInstall
|
|
119
|
+
},
|
|
120
|
+
configurations: {
|
|
121
|
+
production: {
|
|
122
|
+
mode: "production"
|
|
123
|
+
},
|
|
124
|
+
test: {
|
|
125
|
+
mode: "test"
|
|
126
|
+
},
|
|
127
|
+
development: {
|
|
128
|
+
mode: "development",
|
|
129
|
+
skipCache: true
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
if (options?.prepare !== false && !targets[options?.prepare?.targetName || "prepare"]) {
|
|
135
|
+
targets[options?.prepare?.targetName || "prepare"] = {
|
|
136
|
+
cache: true,
|
|
137
|
+
inputs: Array.isArray(options?.prepare?.inputs) ? options.prepare.inputs : withNamedInputs(targetInputs, [
|
|
138
|
+
options?.prepare?.inputs || "typescript"
|
|
139
|
+
]),
|
|
140
|
+
outputs: options?.prepare?.outputs ?? [
|
|
141
|
+
artifactsFolder
|
|
142
|
+
],
|
|
143
|
+
executor: options?.prepare?.executor || `@${framework}/nx:${options?.prepare?.targetName || "prepare"}`,
|
|
144
|
+
dependsOn: options?.prepare?.dependsOn ?? [
|
|
145
|
+
`^${options?.prepare?.targetName || "build"}`,
|
|
146
|
+
options?.clean !== false && `${options?.clean?.targetName || "clean"}`
|
|
147
|
+
].filter(Boolean),
|
|
148
|
+
defaultConfiguration: options?.prepare?.defaultConfiguration || "production",
|
|
149
|
+
options: {
|
|
150
|
+
input: userConfig.input,
|
|
151
|
+
projectType: projectConfig.projectType || userConfig.projectType,
|
|
152
|
+
autoInstall: userConfig.autoInstall,
|
|
153
|
+
skipCache: userConfig.skipCache
|
|
154
|
+
},
|
|
155
|
+
configurations: {
|
|
156
|
+
production: {
|
|
157
|
+
mode: "production"
|
|
158
|
+
},
|
|
159
|
+
test: {
|
|
160
|
+
mode: "test"
|
|
161
|
+
},
|
|
162
|
+
development: {
|
|
163
|
+
mode: "development",
|
|
164
|
+
skipCache: true
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
if (options?.build !== false && !targets[options?.build?.targetName || "build"]) {
|
|
170
|
+
targets[options?.build?.targetName || "build"] = {
|
|
171
|
+
cache: true,
|
|
172
|
+
inputs: Array.isArray(options?.build?.inputs) ? options.build.inputs : withNamedInputs(targetInputs, [
|
|
173
|
+
options?.build?.inputs || "typescript"
|
|
174
|
+
]),
|
|
175
|
+
outputs: options?.build?.outputs ?? [
|
|
176
|
+
"{options.outputPath}"
|
|
177
|
+
],
|
|
178
|
+
executor: options?.build?.executor || `@${framework}/nx:${options?.build?.targetName || "build"}`,
|
|
179
|
+
dependsOn: options?.build?.dependsOn ?? [
|
|
180
|
+
`^${options?.build?.targetName || "build"}`,
|
|
181
|
+
userConfig.skipCache ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
182
|
+
].filter(Boolean),
|
|
183
|
+
defaultConfiguration: options?.build?.defaultConfiguration || "production",
|
|
184
|
+
options: {
|
|
185
|
+
input: userConfig.input,
|
|
186
|
+
outputPath: userConfig.output?.outputPath || "dist/{projectRoot}",
|
|
187
|
+
projectType: projectConfig.projectType || userConfig.projectType,
|
|
188
|
+
autoInstall: userConfig.autoInstall,
|
|
189
|
+
skipCache: userConfig.skipCache
|
|
190
|
+
},
|
|
191
|
+
configurations: {
|
|
192
|
+
production: {
|
|
193
|
+
mode: "production"
|
|
194
|
+
},
|
|
195
|
+
test: {
|
|
196
|
+
mode: "test"
|
|
197
|
+
},
|
|
198
|
+
development: {
|
|
199
|
+
mode: "development",
|
|
200
|
+
skipCache: true
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
if (options?.lint !== false && !targets[options?.lint?.targetName || "lint"]) {
|
|
206
|
+
targets[options?.lint?.targetName || "lint"] = {
|
|
207
|
+
cache: true,
|
|
208
|
+
inputs: Array.isArray(options?.lint?.inputs) ? options.lint.inputs : withNamedInputs([
|
|
209
|
+
...targetInputs,
|
|
210
|
+
artifactsFolder
|
|
211
|
+
], options?.lint?.inputs ? [
|
|
212
|
+
options.lint.inputs
|
|
213
|
+
] : [
|
|
214
|
+
"linting",
|
|
215
|
+
"typescript"
|
|
216
|
+
]),
|
|
217
|
+
outputs: options?.lint?.outputs ?? [
|
|
218
|
+
"{options.outputPath}"
|
|
219
|
+
],
|
|
220
|
+
executor: options?.lint?.executor || `@${framework}/nx:${options?.lint?.targetName || "lint"}`,
|
|
221
|
+
dependsOn: options?.lint?.dependsOn ?? [
|
|
222
|
+
`^${options?.lint?.targetName || "lint"}`,
|
|
223
|
+
userConfig.skipCache ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
224
|
+
].filter(Boolean),
|
|
225
|
+
defaultConfiguration: options?.lint?.defaultConfiguration || "production",
|
|
226
|
+
options: {
|
|
227
|
+
input: userConfig.input,
|
|
228
|
+
projectType: projectConfig.projectType || userConfig.projectType,
|
|
229
|
+
autoInstall: userConfig.autoInstall,
|
|
230
|
+
skipCache: userConfig.skipCache
|
|
231
|
+
},
|
|
232
|
+
configurations: {
|
|
233
|
+
production: {
|
|
234
|
+
mode: "production"
|
|
235
|
+
},
|
|
236
|
+
test: {
|
|
237
|
+
mode: "test"
|
|
238
|
+
},
|
|
239
|
+
development: {
|
|
240
|
+
mode: "development",
|
|
241
|
+
skipCache: true
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
if (options?.docs !== false && !targets[options?.docs?.targetName || "docs"]) {
|
|
247
|
+
targets[options?.docs?.targetName || "docs"] = {
|
|
248
|
+
cache: true,
|
|
249
|
+
inputs: Array.isArray(options?.docs?.inputs) ? options.docs.inputs : withNamedInputs([
|
|
250
|
+
...targetInputs,
|
|
251
|
+
artifactsFolder
|
|
252
|
+
], options?.docs?.inputs ? [
|
|
253
|
+
options.docs.inputs
|
|
254
|
+
] : [
|
|
255
|
+
"documentation",
|
|
256
|
+
"typescript"
|
|
257
|
+
]),
|
|
258
|
+
outputs: options?.docs?.outputs ?? [
|
|
259
|
+
"{options.outputPath}"
|
|
260
|
+
],
|
|
261
|
+
executor: options?.docs?.executor || `@${framework}/nx:${options?.docs?.targetName || "docs"}`,
|
|
262
|
+
dependsOn: options?.docs?.dependsOn ?? [
|
|
263
|
+
`^${options?.docs?.targetName || "docs"}`,
|
|
264
|
+
options?.build !== false && `${options?.build?.targetName || "build"}`,
|
|
265
|
+
userConfig.skipCache ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
266
|
+
].filter(Boolean),
|
|
267
|
+
defaultConfiguration: options?.docs?.defaultConfiguration || "production",
|
|
268
|
+
options: {
|
|
269
|
+
input: userConfig.input,
|
|
270
|
+
projectType: projectConfig.projectType || userConfig.projectType,
|
|
271
|
+
autoInstall: userConfig.autoInstall,
|
|
272
|
+
skipCache: userConfig.skipCache
|
|
273
|
+
},
|
|
274
|
+
configurations: {
|
|
275
|
+
production: {
|
|
276
|
+
mode: "production"
|
|
277
|
+
},
|
|
278
|
+
test: {
|
|
279
|
+
mode: "test"
|
|
280
|
+
},
|
|
281
|
+
development: {
|
|
282
|
+
mode: "development",
|
|
283
|
+
skipCache: true
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
if (options?.deploy !== false && !targets[options?.deploy?.targetName || "deploy"]) {
|
|
289
|
+
targets[options?.deploy?.targetName || "deploy"] = {
|
|
290
|
+
inputs: Array.isArray(options?.deploy?.inputs) ? options.deploy.inputs : withNamedInputs([
|
|
291
|
+
...targetInputs,
|
|
292
|
+
artifactsFolder
|
|
293
|
+
], options?.deploy?.inputs ? [
|
|
294
|
+
options.deploy.inputs
|
|
295
|
+
] : [
|
|
296
|
+
"documentation",
|
|
297
|
+
"typescript"
|
|
298
|
+
]),
|
|
299
|
+
outputs: options?.deploy?.outputs ?? [
|
|
300
|
+
"{options.outputPath}"
|
|
301
|
+
],
|
|
302
|
+
executor: options?.deploy?.executor || `@${framework}/nx:${options?.deploy?.targetName || "deploy"}`,
|
|
303
|
+
dependsOn: options?.deploy?.dependsOn ?? [
|
|
304
|
+
`^${options?.deploy?.targetName || "deploy"}`,
|
|
305
|
+
options?.build !== false && `${options?.build?.targetName || "build"}`,
|
|
306
|
+
userConfig.skipCache ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
307
|
+
].filter(Boolean),
|
|
308
|
+
defaultConfiguration: options?.deploy?.defaultConfiguration || "production",
|
|
309
|
+
options: {
|
|
310
|
+
input: userConfig.input,
|
|
311
|
+
projectType: projectConfig.projectType || userConfig.projectType,
|
|
312
|
+
autoInstall: userConfig.autoInstall,
|
|
313
|
+
skipCache: userConfig.skipCache
|
|
314
|
+
},
|
|
315
|
+
configurations: {
|
|
316
|
+
production: {
|
|
317
|
+
mode: "production"
|
|
318
|
+
},
|
|
319
|
+
test: {
|
|
320
|
+
mode: "test"
|
|
321
|
+
},
|
|
322
|
+
development: {
|
|
323
|
+
mode: "development",
|
|
324
|
+
skipCache: true
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
setDefaultProjectTags(projectConfig, name);
|
|
330
|
+
addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.projectType || "library", {
|
|
331
|
+
overwrite: true
|
|
332
|
+
});
|
|
333
|
+
if (opts?.verboseOutput) {
|
|
334
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
|
|
335
|
+
}
|
|
336
|
+
return {
|
|
337
|
+
projects: {
|
|
338
|
+
[root]: defu(projectConfig, {
|
|
339
|
+
name: kebabCase(userConfig.name),
|
|
340
|
+
projectType: userConfig.projectType || "library",
|
|
341
|
+
root,
|
|
342
|
+
sourceRoot: joinPaths(root, "src"),
|
|
343
|
+
targets
|
|
344
|
+
})
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
} catch (error) {
|
|
348
|
+
console.error(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - ${isError(error) ? error.message : "Unknown fatal error"}`);
|
|
349
|
+
return {};
|
|
350
|
+
}
|
|
351
|
+
}, configFiles, options, contextV2);
|
|
352
|
+
}
|
|
353
|
+
];
|
|
354
|
+
} catch (error) {
|
|
355
|
+
console.error(`[${opts?.name || "powerlines/plugin/nx"}] - ${(/* @__PURE__ */ new Date()).toISOString()} - ${isError(error) ? error.message : "Unknown fatal error during plugin initialization"}`);
|
|
356
|
+
return [
|
|
357
|
+
`**/{${getNxTargetInputs(opts?.framework || "powerlines").map((input) => input.replace("{projectRoot}/", "")).join(",")}}`,
|
|
358
|
+
async () => {
|
|
359
|
+
return [];
|
|
360
|
+
}
|
|
361
|
+
];
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
__name(createNxPlugin, "createNxPlugin");
|
|
365
|
+
|
|
366
|
+
export { createNxPlugin, getNxPluginInputs, getNxTargetInputs };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5UVD555E_js = require('./chunk-5UVD555E.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
var defu = require('defu');
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ async function executorFn(context, api) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
22
|
-
var executor =
|
|
22
|
+
var executor = chunk5UVD555E_js.withExecutor("build", executorFn);
|
|
23
23
|
var executor_default = executor;
|
|
24
24
|
|
|
25
25
|
exports.executorFn = executorFn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5UVD555E_js = require('./chunk-5UVD555E.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
|
|
6
6
|
// src/executors/docs/executor.ts
|
|
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
14
|
-
var executor =
|
|
14
|
+
var executor = chunk5UVD555E_js.withExecutor("docs", executorFn);
|
|
15
15
|
var executor_default = executor;
|
|
16
16
|
|
|
17
17
|
exports.executorFn = executorFn;
|
package/dist/executors.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-XO62WWX4.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
4
|
+
var chunk6TYW2FMC_js = require('./chunk-6TYW2FMC.js');
|
|
5
|
+
var chunkE3WT4AQR_js = require('./chunk-E3WT4AQR.js');
|
|
6
|
+
var chunkTSCKHENO_js = require('./chunk-TSCKHENO.js');
|
|
7
|
+
var chunkCON4PH6V_js = require('./chunk-CON4PH6V.js');
|
|
8
|
+
var chunkTUMRUZ4M_js = require('./chunk-TUMRUZ4M.js');
|
|
9
|
+
require('./chunk-5UVD555E.js');
|
|
10
10
|
require('./chunk-FSGRYCTL.js');
|
|
11
11
|
require('./chunk-SHUYVCID.js');
|
|
12
12
|
|
|
@@ -14,21 +14,21 @@ require('./chunk-SHUYVCID.js');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "lint", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6TYW2FMC_js.executor_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "prepare", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkE3WT4AQR_js.executor_default; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "build", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkTSCKHENO_js.executor_default; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "clean", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkCON4PH6V_js.executor_default; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "docs", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkTUMRUZ4M_js.executor_default; }
|
|
34
34
|
});
|
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './chunk-UV4HQO3Y.mjs';
|
|
2
|
-
export { executor_default as lint } from './chunk-
|
|
3
|
-
export { executor_default as prepare } from './chunk-
|
|
4
|
-
export { executor_default as build } from './chunk-
|
|
5
|
-
export { executor_default as clean } from './chunk-
|
|
6
|
-
export { executor_default as docs } from './chunk-
|
|
7
|
-
import './chunk-
|
|
2
|
+
export { executor_default as lint } from './chunk-RBM4GHDX.mjs';
|
|
3
|
+
export { executor_default as prepare } from './chunk-5VLSWKPN.mjs';
|
|
4
|
+
export { executor_default as build } from './chunk-KWMCNI6Q.mjs';
|
|
5
|
+
export { executor_default as clean } from './chunk-Z5G2DQQE.mjs';
|
|
6
|
+
export { executor_default as docs } from './chunk-OX5V5IMP.mjs';
|
|
7
|
+
import './chunk-OBQF6HPF.mjs';
|
|
8
8
|
import './chunk-JL4HQ7ZD.mjs';
|
|
9
9
|
import './chunk-O6YSETKJ.mjs';
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGJ62I4AV_js = require('./chunk-GJ62I4AV.js');
|
|
4
4
|
require('./chunk-XO62WWX4.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
5
|
+
var chunk6TYW2FMC_js = require('./chunk-6TYW2FMC.js');
|
|
6
|
+
var chunkE3WT4AQR_js = require('./chunk-E3WT4AQR.js');
|
|
7
|
+
var chunkTSCKHENO_js = require('./chunk-TSCKHENO.js');
|
|
8
|
+
var chunkCON4PH6V_js = require('./chunk-CON4PH6V.js');
|
|
9
|
+
var chunkTUMRUZ4M_js = require('./chunk-TUMRUZ4M.js');
|
|
10
10
|
require('./chunk-N2YKXZ5R.js');
|
|
11
11
|
var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-5UVD555E.js');
|
|
13
|
+
require('./chunk-HNRM52ID.js');
|
|
14
14
|
require('./chunk-FSGRYCTL.js');
|
|
15
15
|
require('./chunk-IQVSZEQ6.js');
|
|
16
16
|
require('./chunk-SHUYVCID.js');
|
|
@@ -19,27 +19,27 @@ require('./chunk-SHUYVCID.js');
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "createNodesV2", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkGJ62I4AV_js.createNodesV2; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "lint", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk6TYW2FMC_js.executor_default; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "prepare", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkE3WT4AQR_js.executor_default; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "build", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkTSCKHENO_js.executor_default; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "clean", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkCON4PH6V_js.executor_default; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "docs", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkTUMRUZ4M_js.executor_default; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "sync", {
|
|
45
45
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { createNodesV2 } from './chunk-
|
|
1
|
+
export { createNodesV2 } from './chunk-QN6ZKFPV.mjs';
|
|
2
2
|
import './chunk-UV4HQO3Y.mjs';
|
|
3
|
-
export { executor_default as lint } from './chunk-
|
|
4
|
-
export { executor_default as prepare } from './chunk-
|
|
5
|
-
export { executor_default as build } from './chunk-
|
|
6
|
-
export { executor_default as clean } from './chunk-
|
|
7
|
-
export { executor_default as docs } from './chunk-
|
|
3
|
+
export { executor_default as lint } from './chunk-RBM4GHDX.mjs';
|
|
4
|
+
export { executor_default as prepare } from './chunk-5VLSWKPN.mjs';
|
|
5
|
+
export { executor_default as build } from './chunk-KWMCNI6Q.mjs';
|
|
6
|
+
export { executor_default as clean } from './chunk-Z5G2DQQE.mjs';
|
|
7
|
+
export { executor_default as docs } from './chunk-OX5V5IMP.mjs';
|
|
8
8
|
import './chunk-23KFTIT2.mjs';
|
|
9
9
|
export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-OBQF6HPF.mjs';
|
|
11
|
+
import './chunk-IA3YWWWC.mjs';
|
|
12
12
|
import './chunk-JL4HQ7ZD.mjs';
|
|
13
13
|
import './chunk-IC47MFKB.mjs';
|
|
14
14
|
import './chunk-O6YSETKJ.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5UVD555E_js = require('../../chunk-5UVD555E.js');
|
|
4
4
|
require('../../chunk-FSGRYCTL.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 chunk5UVD555E_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 chunkTSCKHENO_js = require('../../../chunk-TSCKHENO.js');
|
|
6
|
+
require('../../../chunk-5UVD555E.js');
|
|
7
7
|
require('../../../chunk-FSGRYCTL.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 chunkTSCKHENO_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkTSCKHENO_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-KWMCNI6Q.mjs';
|
|
2
|
+
import '../../../chunk-OBQF6HPF.mjs';
|
|
3
3
|
import '../../../chunk-JL4HQ7ZD.mjs';
|
|
4
4
|
import '../../../chunk-O6YSETKJ.mjs';
|