@powerlines/nx 0.11.221 → 0.11.223
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 +21 -0
- package/dist/{src/base/base-executor.d.ts → base-executor-BKuqWAnc.d.mts} +14 -12
- package/dist/base-executor-BKuqWAnc.d.mts.map +1 -0
- package/dist/base-executor-CL9md5FK.d.cts +28 -0
- package/dist/base-executor-CL9md5FK.d.cts.map +1 -0
- package/dist/base-executor-DIVmWt0_.mjs +76 -0
- package/dist/base-executor-DIVmWt0_.mjs.map +1 -0
- package/dist/base-executor-hfeykVFL.cjs +83 -0
- package/dist/base-executor.schema-CH9f7UZz.d.cts +131 -0
- package/dist/base-executor.schema-CH9f7UZz.d.cts.map +1 -0
- package/dist/base-executor.schema-LJ14f-QU.d.mts +131 -0
- package/dist/base-executor.schema-LJ14f-QU.d.mts.map +1 -0
- package/dist/base-executor.untyped-Bet42T8_.mjs +139 -0
- package/dist/base-executor.untyped-Bet42T8_.mjs.map +1 -0
- package/dist/base-executor.untyped-DUgXmZji.cjs +144 -0
- package/dist/chunk-CbDLau6x.cjs +34 -0
- package/dist/constants-BHT2TeEj.cjs +39 -0
- package/dist/constants-DPeeG_si.mjs +34 -0
- package/dist/constants-DPeeG_si.mjs.map +1 -0
- package/dist/executor-9aTY5L1O.d.mts +155 -0
- package/dist/executor-9aTY5L1O.d.mts.map +1 -0
- package/dist/executor-BA-Xvw_2.cjs +23 -0
- package/dist/executor-BDu-MfKS.d.cts +155 -0
- package/dist/executor-BDu-MfKS.d.cts.map +1 -0
- package/dist/executor-BaJuosQ2.d.cts +139 -0
- package/dist/executor-BaJuosQ2.d.cts.map +1 -0
- package/dist/executor-BerELzzO.d.cts +165 -0
- package/dist/executor-BerELzzO.d.cts.map +1 -0
- package/dist/executor-C12a2R2m.d.mts +165 -0
- package/dist/executor-C12a2R2m.d.mts.map +1 -0
- package/dist/executor-CQoHBvIx.d.mts +155 -0
- package/dist/executor-CQoHBvIx.d.mts.map +1 -0
- package/dist/executor-CR4F9h0Q.mjs +13 -0
- package/dist/executor-CR4F9h0Q.mjs.map +1 -0
- package/dist/executor-CmOJDW7i.cjs +30 -0
- package/dist/executor-CsYeTG7f.d.mts +155 -0
- package/dist/executor-CsYeTG7f.d.mts.map +1 -0
- package/dist/executor-DXs-DQDq.cjs +23 -0
- package/dist/executor-DY3Q5btA.mjs +18 -0
- package/dist/executor-DY3Q5btA.mjs.map +1 -0
- package/dist/executor-DaM4shEF.d.mts +139 -0
- package/dist/executor-DaM4shEF.d.mts.map +1 -0
- package/dist/executor-DriX4F9a.mjs +13 -0
- package/dist/executor-DriX4F9a.mjs.map +1 -0
- package/dist/executor-DupYdy7P.cjs +23 -0
- package/dist/executor-_6Wimayo.d.cts +155 -0
- package/dist/executor-_6Wimayo.d.cts.map +1 -0
- package/dist/executor-dakLe5jY.mjs +13 -0
- package/dist/executor-dakLe5jY.mjs.map +1 -0
- package/dist/executor-gauQV_Qs.mjs +18 -0
- package/dist/executor-gauQV_Qs.mjs.map +1 -0
- package/dist/executor-q94V36zQ.d.cts +155 -0
- package/dist/executor-q94V36zQ.d.cts.map +1 -0
- package/dist/executor-tEMakUYi.cjs +30 -0
- package/dist/executors-C15iG1sF.mjs +1 -0
- package/dist/executors-D7478W2S.cjs +0 -0
- package/dist/executors-YbcSXKr5.d.mts +1 -0
- package/dist/executors-hX1C9GbI.d.cts +1 -0
- package/dist/executors.cjs +13 -0
- package/dist/executors.d.cts +9 -0
- package/dist/executors.d.mts +9 -11
- package/dist/executors.mjs +9 -9
- package/dist/generator-DeiwVUqC.mjs +11 -0
- package/dist/generator-DeiwVUqC.mjs.map +1 -0
- package/dist/generator-Dv37nXlF.d.cts +8 -0
- package/dist/generator-Dv37nXlF.d.cts.map +1 -0
- package/dist/generator-Uu2ErkQj.cjs +22 -0
- package/dist/generator-aA0eb35E.d.mts +8 -0
- package/dist/generator-aA0eb35E.d.mts.map +1 -0
- package/dist/generators-B8_tB0mD.d.cts +17 -0
- package/dist/generators-B8_tB0mD.d.cts.map +1 -0
- package/dist/generators-Bi9wzfNx.mjs +1 -0
- package/dist/generators-DymCAfYw.d.mts +17 -0
- package/dist/generators-DymCAfYw.d.mts.map +1 -0
- package/dist/generators-q39_jUCw.cjs +0 -0
- package/dist/generators.cjs +5 -0
- package/dist/generators.d.cts +3 -0
- package/dist/generators.d.mts +3 -19
- package/dist/generators.mjs +4 -3
- package/dist/index-BAMQksFF.d.mts +8 -0
- package/dist/index-BAMQksFF.d.mts.map +1 -0
- package/dist/index-C5yJ9lGj.d.cts +8 -0
- package/dist/index-C5yJ9lGj.d.cts.map +1 -0
- package/dist/index.cjs +21 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.mts +13 -16
- package/dist/index.mjs +14 -14
- package/dist/plugin-A9gAUguP.cjs +12 -0
- package/dist/plugin-CODFOru1.d.cts +243 -0
- package/dist/plugin-CODFOru1.d.cts.map +1 -0
- package/dist/plugin-Dbr_Q4yi.mjs +8 -0
- package/dist/plugin-Dbr_Q4yi.mjs.map +1 -0
- package/dist/plugin-DpjoI0QS.d.mts +243 -0
- package/dist/plugin-DpjoI0QS.d.mts.map +1 -0
- package/dist/plugin-utilities-Ci8AHf-K.mjs +347 -0
- package/dist/plugin-utilities-Ci8AHf-K.mjs.map +1 -0
- package/dist/plugin-utilities-Ddlc3SiI.cjs +366 -0
- package/dist/src/base/base-executor.cjs +3 -0
- package/dist/src/base/base-executor.d.cts +3 -0
- package/dist/src/base/base-executor.d.mts +3 -26
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-executor.schema.d.cjs +0 -0
- package/dist/src/base/base-executor.schema.d.cts +2 -0
- package/dist/src/base/base-executor.schema.d.mts +2 -0
- package/dist/src/base/base-executor.untyped.cjs +3 -0
- package/dist/src/base/base-executor.untyped.d.cts +6 -0
- package/dist/src/base/base-executor.untyped.d.cts.map +1 -0
- package/dist/src/base/base-executor.untyped.d.mts +5 -3
- package/dist/src/base/base-executor.untyped.d.mts.map +1 -0
- package/dist/src/base/base-executor.untyped.mjs +3 -2
- package/dist/src/executors/build/executor.cjs +6 -0
- package/dist/src/executors/build/executor.d.cts +4 -0
- package/dist/src/executors/build/executor.d.mts +4 -7
- package/dist/src/executors/build/executor.mjs +4 -4
- package/dist/src/executors/build/untyped.cjs +26 -0
- package/dist/src/executors/build/untyped.d.cts +6 -0
- package/dist/src/executors/build/untyped.d.cts.map +1 -0
- package/dist/src/executors/build/untyped.d.mts +5 -3
- package/dist/src/executors/build/untyped.d.mts.map +1 -0
- package/dist/src/executors/build/untyped.mjs +23 -30
- package/dist/src/executors/build/untyped.mjs.map +1 -0
- package/dist/src/executors/clean/executor.cjs +6 -0
- package/dist/src/executors/clean/executor.d.cts +4 -0
- package/dist/src/executors/clean/executor.d.mts +4 -7
- package/dist/src/executors/clean/executor.mjs +4 -4
- package/dist/src/executors/clean/untyped.cjs +17 -0
- package/dist/src/executors/clean/untyped.d.cts +6 -0
- package/dist/src/executors/clean/untyped.d.cts.map +1 -0
- package/dist/src/executors/clean/untyped.d.mts +5 -3
- package/dist/src/executors/clean/untyped.d.mts.map +1 -0
- package/dist/src/executors/clean/untyped.mjs +12 -10
- package/dist/src/executors/clean/untyped.mjs.map +1 -0
- package/dist/src/executors/docs/executor.cjs +6 -0
- package/dist/src/executors/docs/executor.d.cts +4 -0
- package/dist/src/executors/docs/executor.d.mts +4 -7
- package/dist/src/executors/docs/executor.mjs +4 -4
- package/dist/src/executors/docs/untyped.cjs +18 -0
- package/dist/src/executors/docs/untyped.d.cts +6 -0
- package/dist/src/executors/docs/untyped.d.cts.map +1 -0
- package/dist/src/executors/docs/untyped.d.mts +5 -3
- package/dist/src/executors/docs/untyped.d.mts.map +1 -0
- package/dist/src/executors/docs/untyped.mjs +15 -13
- package/dist/src/executors/docs/untyped.mjs.map +1 -0
- package/dist/src/executors/lint/executor.cjs +6 -0
- package/dist/src/executors/lint/executor.d.cts +4 -0
- package/dist/src/executors/lint/executor.d.mts +4 -7
- package/dist/src/executors/lint/executor.mjs +4 -4
- package/dist/src/executors/lint/untyped.cjs +18 -0
- package/dist/src/executors/lint/untyped.d.cts +6 -0
- package/dist/src/executors/lint/untyped.d.cts.map +1 -0
- package/dist/src/executors/lint/untyped.d.mts +5 -3
- package/dist/src/executors/lint/untyped.d.mts.map +1 -0
- package/dist/src/executors/lint/untyped.mjs +15 -13
- package/dist/src/executors/lint/untyped.mjs.map +1 -0
- package/dist/src/executors/prepare/executor.cjs +6 -0
- package/dist/src/executors/prepare/executor.d.cts +4 -0
- package/dist/src/executors/prepare/executor.d.mts +4 -7
- package/dist/src/executors/prepare/executor.mjs +4 -4
- package/dist/src/executors/prepare/untyped.cjs +4 -0
- package/dist/src/executors/prepare/untyped.d.cts +6 -0
- package/dist/src/executors/prepare/untyped.d.cts.map +1 -0
- package/dist/src/executors/prepare/untyped.d.mts +5 -3
- package/dist/src/executors/prepare/untyped.d.mts.map +1 -0
- package/dist/src/executors/prepare/untyped.mjs +4 -3
- package/dist/src/generators/sync/generator.cjs +5 -0
- package/dist/src/generators/sync/generator.d.cts +2 -0
- package/dist/src/generators/sync/generator.d.mts +2 -6
- package/dist/src/generators/sync/generator.mjs +3 -2
- package/dist/src/generators/sync/untyped.cjs +23 -0
- package/dist/src/generators/sync/untyped.d.cts +6 -0
- package/dist/src/generators/sync/untyped.d.cts.map +1 -0
- package/dist/src/generators/sync/untyped.d.mts +5 -3
- package/dist/src/generators/sync/untyped.d.mts.map +1 -0
- package/dist/src/generators/sync/untyped.mjs +18 -16
- package/dist/src/generators/sync/untyped.mjs.map +1 -0
- package/dist/src/helpers/constants.cjs +3 -0
- package/dist/src/helpers/{constants.d.ts → constants.d.cts} +3 -1
- package/dist/src/helpers/constants.d.cts.map +1 -0
- package/dist/src/helpers/constants.d.mts +3 -1
- package/dist/src/helpers/constants.d.mts.map +1 -0
- package/dist/src/helpers/constants.mjs +3 -2
- package/dist/src/helpers/plugin-utilities.cjs +6 -0
- package/dist/src/helpers/plugin-utilities.d.cts +58 -0
- package/dist/src/helpers/plugin-utilities.d.cts.map +1 -0
- package/dist/src/helpers/plugin-utilities.d.mts +34 -31
- package/dist/src/helpers/plugin-utilities.d.mts.map +1 -0
- package/dist/src/helpers/plugin-utilities.mjs +4 -4
- package/dist/src/plugin/index.cjs +5 -0
- package/dist/src/plugin/index.d.cts +3 -0
- package/dist/src/plugin/index.d.mts +3 -6
- package/dist/src/plugin/index.mjs +5 -5
- package/dist/src/types/plugin.cjs +0 -0
- package/dist/src/types/plugin.d.cts +2 -0
- package/dist/src/types/plugin.d.mts +2 -241
- package/dist/src/types/plugin.mjs +1 -1
- package/dist/untyped-BIEzjl_J.mjs +27 -0
- package/dist/untyped-BIEzjl_J.mjs.map +1 -0
- package/dist/untyped-DKPJSDgJ.cjs +32 -0
- package/executors.json +1 -1
- package/generators.json +1 -1
- package/package.json +117 -88
- package/dist/chunk-23KFTIT2.mjs +0 -1
- package/dist/chunk-326QB2VK.mjs +0 -14
- package/dist/chunk-3BI2YVJ3.js +0 -156
- package/dist/chunk-3D3MU5VP.js +0 -26
- package/dist/chunk-4OMPO3GC.mjs +0 -154
- package/dist/chunk-ADMWJVSB.js +0 -374
- package/dist/chunk-DXL4NVUO.js +0 -18
- package/dist/chunk-F4QJKUNK.js +0 -18
- package/dist/chunk-GCIPEE4T.mjs +0 -28
- package/dist/chunk-IC47MFKB.mjs +0 -29
- package/dist/chunk-IDXFQ2WL.mjs +0 -15
- package/dist/chunk-IOBDAGVL.js +0 -30
- package/dist/chunk-IQVSZEQ6.js +0 -31
- package/dist/chunk-N2YKXZ5R.js +0 -2
- package/dist/chunk-NB2KHU33.mjs +0 -19
- package/dist/chunk-NXR5JH7F.js +0 -10
- package/dist/chunk-O6YSETKJ.mjs +0 -4
- package/dist/chunk-P5X6KXLE.js +0 -26
- package/dist/chunk-PKGTRC56.mjs +0 -15
- package/dist/chunk-PMQ5YVLP.js +0 -18
- package/dist/chunk-R577MOZR.js +0 -4928
- package/dist/chunk-RBIHD4JS.mjs +0 -4900
- package/dist/chunk-RLODK6TM.js +0 -281
- package/dist/chunk-RLYU2FOM.mjs +0 -366
- package/dist/chunk-SHUYVCID.js +0 -6
- package/dist/chunk-SQV3SFA4.mjs +0 -8
- package/dist/chunk-UV4HQO3Y.mjs +0 -1
- package/dist/chunk-W75JGXP2.mjs +0 -260
- package/dist/chunk-WIPWBPB3.mjs +0 -19
- package/dist/chunk-WUJKJGEW.js +0 -17
- package/dist/chunk-XO62WWX4.js +0 -2
- package/dist/chunk-ZERXJ7S6.mjs +0 -15
- package/dist/executor-AQVlPFta.d.ts +0 -163
- package/dist/executor-BNmIhtpF.d.mts +0 -153
- package/dist/executor-C0A5mFLO.d.mts +0 -137
- package/dist/executor-Cep8-Y3A.d.mts +0 -153
- package/dist/executor-CkyahICv.d.ts +0 -137
- package/dist/executor-DOsxw-Ih.d.ts +0 -153
- package/dist/executor-DUQbjUVt.d.ts +0 -153
- package/dist/executor-O3MDQSFT.d.ts +0 -153
- package/dist/executor-U4mVkhQK.d.mts +0 -163
- package/dist/executor-Xt5qNzC5.d.mts +0 -153
- package/dist/executors.d.ts +0 -11
- package/dist/executors.js +0 -34
- package/dist/generators.d.ts +0 -19
- package/dist/generators.js +0 -16
- package/dist/index.d.ts +0 -16
- package/dist/index.js +0 -51
- package/dist/src/base/base-executor.js +0 -12
- package/dist/src/base/base-executor.schema.d.d.mts +0 -129
- package/dist/src/base/base-executor.schema.d.d.ts +0 -129
- package/dist/src/base/base-executor.schema.d.js +0 -2
- package/dist/src/base/base-executor.schema.d.mjs +0 -1
- package/dist/src/base/base-executor.untyped.d.ts +0 -5
- package/dist/src/base/base-executor.untyped.js +0 -10
- package/dist/src/executors/build/executor.d.ts +0 -7
- package/dist/src/executors/build/executor.js +0 -19
- package/dist/src/executors/build/untyped.d.ts +0 -5
- package/dist/src/executors/build/untyped.js +0 -37
- package/dist/src/executors/clean/executor.d.ts +0 -7
- package/dist/src/executors/clean/executor.js +0 -19
- package/dist/src/executors/clean/untyped.d.ts +0 -5
- package/dist/src/executors/clean/untyped.js +0 -19
- package/dist/src/executors/docs/executor.d.ts +0 -7
- package/dist/src/executors/docs/executor.js +0 -19
- package/dist/src/executors/docs/untyped.d.ts +0 -5
- package/dist/src/executors/docs/untyped.js +0 -20
- package/dist/src/executors/lint/executor.d.ts +0 -7
- package/dist/src/executors/lint/executor.js +0 -19
- package/dist/src/executors/lint/untyped.d.ts +0 -5
- package/dist/src/executors/lint/untyped.js +0 -20
- package/dist/src/executors/prepare/executor.d.ts +0 -7
- package/dist/src/executors/prepare/executor.js +0 -19
- package/dist/src/executors/prepare/untyped.d.ts +0 -5
- package/dist/src/executors/prepare/untyped.js +0 -11
- package/dist/src/generators/sync/generator.d.ts +0 -6
- package/dist/src/generators/sync/generator.js +0 -17
- package/dist/src/generators/sync/untyped.d.ts +0 -5
- package/dist/src/generators/sync/untyped.js +0 -25
- package/dist/src/helpers/constants.js +0 -11
- package/dist/src/helpers/plugin-utilities.d.ts +0 -55
- package/dist/src/helpers/plugin-utilities.js +0 -21
- package/dist/src/plugin/index.d.ts +0 -6
- package/dist/src/plugin/index.js +0 -14
- package/dist/src/types/plugin.d.ts +0 -241
- package/dist/src/types/plugin.js +0 -2
package/dist/chunk-ADMWJVSB.js
DELETED
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkRLODK6TM_js = require('./chunk-RLODK6TM.js');
|
|
4
|
-
var chunkIQVSZEQ6_js = require('./chunk-IQVSZEQ6.js');
|
|
5
|
-
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
6
|
-
var devkit = require('@nx/devkit');
|
|
7
|
-
var nxJson = require('@storm-software/workspace-tools/utils/nx-json');
|
|
8
|
-
var pluginHelpers = require('@storm-software/workspace-tools/utils/plugin-helpers');
|
|
9
|
-
var projectTags = require('@storm-software/workspace-tools/utils/project-tags');
|
|
10
|
-
var getEnvPaths = require('@stryke/env/get-env-paths');
|
|
11
|
-
var exists = require('@stryke/fs/exists');
|
|
12
|
-
var murmurhash = require('@stryke/hash/murmurhash');
|
|
13
|
-
var joinPaths = require('@stryke/path/join-paths');
|
|
14
|
-
var kebabCase = require('@stryke/string-format/kebab-case');
|
|
15
|
-
var titleCase = require('@stryke/string-format/title-case');
|
|
16
|
-
var isError = require('@stryke/type-checks/is-error');
|
|
17
|
-
var isSetObject = require('@stryke/type-checks/is-set-object');
|
|
18
|
-
var defu = require('defu');
|
|
19
|
-
var jiti = require('jiti');
|
|
20
|
-
var promises = require('fs/promises');
|
|
21
|
-
var nxJson_js = require('nx/src/config/nx-json.js');
|
|
22
|
-
var packageJson_js = require('nx/src/utils/package-json.js');
|
|
23
|
-
|
|
24
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
|
-
|
|
26
|
-
var defu__default = /*#__PURE__*/_interopDefault(defu);
|
|
27
|
-
|
|
28
|
-
function getNxTargetInputs(framework) {
|
|
29
|
-
return chunkIQVSZEQ6_js.CONFIG_INPUTS.map((input) => input.replace("{framework}", framework));
|
|
30
|
-
}
|
|
31
|
-
chunkSHUYVCID_js.__name(getNxTargetInputs, "getNxTargetInputs");
|
|
32
|
-
function getNxPluginInputs(framework) {
|
|
33
|
-
return `**/{${getNxTargetInputs(framework).map((input) => input.replace("{projectRoot}/", "")).join(",")}}`;
|
|
34
|
-
}
|
|
35
|
-
chunkSHUYVCID_js.__name(getNxPluginInputs, "getNxPluginInputs");
|
|
36
|
-
function createNxPlugin(opts) {
|
|
37
|
-
const framework = opts?.framework || "powerlines";
|
|
38
|
-
const title = `${titleCase.titleCase(framework)} Nx Plugin`;
|
|
39
|
-
try {
|
|
40
|
-
const name = opts?.name || `${framework}/nx/plugin`;
|
|
41
|
-
const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
|
|
42
|
-
const targetInputs = getNxTargetInputs(framework);
|
|
43
|
-
const pluginInputs = getNxPluginInputs(framework);
|
|
44
|
-
return [
|
|
45
|
-
pluginInputs,
|
|
46
|
-
async (configFiles, options, contextV2) => {
|
|
47
|
-
if (options?.verboseOutput) {
|
|
48
|
-
console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Initializing the ${title} for the following inputs: ${pluginInputs}`);
|
|
49
|
-
}
|
|
50
|
-
const envPaths = getEnvPaths.getEnvPaths({
|
|
51
|
-
orgId: "storm-software",
|
|
52
|
-
appId: framework,
|
|
53
|
-
workspaceRoot: contextV2.workspaceRoot
|
|
54
|
-
});
|
|
55
|
-
if (!envPaths.cache) {
|
|
56
|
-
throw new Error("The cache directory could not be determined.");
|
|
57
|
-
}
|
|
58
|
-
const nxJson$1 = nxJson_js.readNxJson(contextV2.workspaceRoot);
|
|
59
|
-
const resolver = jiti.createJiti(contextV2.workspaceRoot, {
|
|
60
|
-
debug: !!options?.debug,
|
|
61
|
-
interopDefault: true,
|
|
62
|
-
fsCache: joinPaths.joinPaths(envPaths.cache, "nx-plugin", murmurhash.murmurhash(contextV2.workspaceRoot, {
|
|
63
|
-
maxLength: chunkRLODK6TM_js.ROOT_HASH_LENGTH
|
|
64
|
-
}), "jiti"),
|
|
65
|
-
moduleCache: true
|
|
66
|
-
});
|
|
67
|
-
return devkit.createNodesFromFiles(async (configFile, _, context) => {
|
|
68
|
-
try {
|
|
69
|
-
const projectRoot = pluginHelpers.getProjectRoot(configFile, contextV2.workspaceRoot);
|
|
70
|
-
if (!projectRoot) {
|
|
71
|
-
console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - package.json and ${framework} configuration files (i.e. ${framework}.config.ts) must be located in the project root directory: ${configFile}`);
|
|
72
|
-
return {};
|
|
73
|
-
}
|
|
74
|
-
const root = pluginHelpers.getRoot(projectRoot, context);
|
|
75
|
-
if (options?.verboseOutput) {
|
|
76
|
-
console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
77
|
-
}
|
|
78
|
-
const userConfig = await chunkRLODK6TM_js.loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
|
|
79
|
-
if (!exists.existsSync(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
|
|
80
|
-
if (options?.verboseOutput) {
|
|
81
|
-
console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
|
|
82
|
-
}
|
|
83
|
-
return {};
|
|
84
|
-
}
|
|
85
|
-
const packageJsonContent = await promises.readFile(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"), "utf8");
|
|
86
|
-
if (!packageJsonContent) {
|
|
87
|
-
if (options?.verboseOutput) {
|
|
88
|
-
console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No package.json file found for project in root directory ${projectRoot}`);
|
|
89
|
-
}
|
|
90
|
-
return {};
|
|
91
|
-
}
|
|
92
|
-
const packageJson = JSON.parse(packageJsonContent);
|
|
93
|
-
if (!userConfig.configFile && !packageJson?.storm) {
|
|
94
|
-
if (options?.verboseOutput) {
|
|
95
|
-
console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
|
|
96
|
-
}
|
|
97
|
-
return {};
|
|
98
|
-
}
|
|
99
|
-
const projectConfig = pluginHelpers.getProjectConfigFromProjectRoot(projectRoot, packageJson);
|
|
100
|
-
if (!projectConfig) {
|
|
101
|
-
if (options?.verboseOutput) {
|
|
102
|
-
console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No project configuration found for project in root directory ${projectRoot}`);
|
|
103
|
-
}
|
|
104
|
-
return {};
|
|
105
|
-
}
|
|
106
|
-
const targets = packageJson_js.readTargetsFromPackageJson(packageJson, nxJson$1, projectRoot, context.workspaceRoot);
|
|
107
|
-
if (options?.verboseOutput) {
|
|
108
|
-
console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
|
|
109
|
-
}
|
|
110
|
-
if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
|
|
111
|
-
targets[options?.clean?.targetName || "clean"] = {
|
|
112
|
-
cache: true,
|
|
113
|
-
inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : nxJson.withNamedInputs(targetInputs, [
|
|
114
|
-
options?.clean?.inputs || "typescript"
|
|
115
|
-
]),
|
|
116
|
-
outputs: options?.clean?.outputs,
|
|
117
|
-
executor: options?.clean?.executor || `@${framework}/nx:${options?.clean?.targetName || "clean"}`,
|
|
118
|
-
dependsOn: options?.clean?.dependsOn ?? [
|
|
119
|
-
`^${options?.clean?.targetName || "clean"}`
|
|
120
|
-
],
|
|
121
|
-
defaultConfiguration: options?.clean?.defaultConfiguration || "production",
|
|
122
|
-
options: {
|
|
123
|
-
outputPath: userConfig.output?.outputPath || "dist/{projectRoot}",
|
|
124
|
-
projectType: projectConfig.projectType || userConfig.projectType,
|
|
125
|
-
autoInstall: userConfig.autoInstall
|
|
126
|
-
},
|
|
127
|
-
configurations: {
|
|
128
|
-
production: {
|
|
129
|
-
mode: "production"
|
|
130
|
-
},
|
|
131
|
-
test: {
|
|
132
|
-
mode: "test"
|
|
133
|
-
},
|
|
134
|
-
development: {
|
|
135
|
-
mode: "development",
|
|
136
|
-
skipCache: true
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
if (options?.prepare !== false && !targets[options?.prepare?.targetName || "prepare"]) {
|
|
142
|
-
targets[options?.prepare?.targetName || "prepare"] = {
|
|
143
|
-
cache: true,
|
|
144
|
-
inputs: Array.isArray(options?.prepare?.inputs) ? options.prepare.inputs : nxJson.withNamedInputs(targetInputs, [
|
|
145
|
-
options?.prepare?.inputs || "typescript"
|
|
146
|
-
]),
|
|
147
|
-
outputs: options?.prepare?.outputs ?? [
|
|
148
|
-
artifactsFolder
|
|
149
|
-
],
|
|
150
|
-
executor: options?.prepare?.executor || `@${framework}/nx:${options?.prepare?.targetName || "prepare"}`,
|
|
151
|
-
dependsOn: options?.prepare?.dependsOn ?? [
|
|
152
|
-
`^${options?.prepare?.targetName || "build"}`,
|
|
153
|
-
options?.clean !== false && `${options?.clean?.targetName || "clean"}`
|
|
154
|
-
].filter(Boolean),
|
|
155
|
-
defaultConfiguration: options?.prepare?.defaultConfiguration || "production",
|
|
156
|
-
options: {
|
|
157
|
-
input: userConfig.input,
|
|
158
|
-
projectType: projectConfig.projectType || userConfig.projectType,
|
|
159
|
-
autoInstall: userConfig.autoInstall,
|
|
160
|
-
skipCache: userConfig.skipCache
|
|
161
|
-
},
|
|
162
|
-
configurations: {
|
|
163
|
-
production: {
|
|
164
|
-
mode: "production"
|
|
165
|
-
},
|
|
166
|
-
test: {
|
|
167
|
-
mode: "test"
|
|
168
|
-
},
|
|
169
|
-
development: {
|
|
170
|
-
mode: "development",
|
|
171
|
-
skipCache: true
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
if (options?.build !== false && !targets[options?.build?.targetName || "build"]) {
|
|
177
|
-
targets[options?.build?.targetName || "build"] = {
|
|
178
|
-
cache: true,
|
|
179
|
-
inputs: Array.isArray(options?.build?.inputs) ? options.build.inputs : nxJson.withNamedInputs(targetInputs, [
|
|
180
|
-
options?.build?.inputs || "typescript"
|
|
181
|
-
]),
|
|
182
|
-
outputs: options?.build?.outputs ?? [
|
|
183
|
-
"{options.outputPath}"
|
|
184
|
-
],
|
|
185
|
-
executor: options?.build?.executor || `@${framework}/nx:${options?.build?.targetName || "build"}`,
|
|
186
|
-
dependsOn: options?.build?.dependsOn ?? [
|
|
187
|
-
`^${options?.build?.targetName || "build"}`,
|
|
188
|
-
userConfig.skipCache ? void 0 : isSetObject.isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
189
|
-
].filter(Boolean),
|
|
190
|
-
defaultConfiguration: options?.build?.defaultConfiguration || "production",
|
|
191
|
-
options: {
|
|
192
|
-
input: userConfig.input,
|
|
193
|
-
outputPath: userConfig.output?.outputPath || "dist/{projectRoot}",
|
|
194
|
-
projectType: projectConfig.projectType || userConfig.projectType,
|
|
195
|
-
autoInstall: userConfig.autoInstall,
|
|
196
|
-
skipCache: userConfig.skipCache
|
|
197
|
-
},
|
|
198
|
-
configurations: {
|
|
199
|
-
production: {
|
|
200
|
-
mode: "production"
|
|
201
|
-
},
|
|
202
|
-
test: {
|
|
203
|
-
mode: "test"
|
|
204
|
-
},
|
|
205
|
-
development: {
|
|
206
|
-
mode: "development",
|
|
207
|
-
skipCache: true
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
if (options?.lint !== false && !targets[options?.lint?.targetName || "lint"]) {
|
|
213
|
-
targets[options?.lint?.targetName || "lint"] = {
|
|
214
|
-
cache: true,
|
|
215
|
-
inputs: Array.isArray(options?.lint?.inputs) ? options.lint.inputs : nxJson.withNamedInputs([
|
|
216
|
-
...targetInputs,
|
|
217
|
-
artifactsFolder
|
|
218
|
-
], options?.lint?.inputs ? [
|
|
219
|
-
options.lint.inputs
|
|
220
|
-
] : [
|
|
221
|
-
"linting",
|
|
222
|
-
"typescript"
|
|
223
|
-
]),
|
|
224
|
-
outputs: options?.lint?.outputs ?? [
|
|
225
|
-
"{options.outputPath}"
|
|
226
|
-
],
|
|
227
|
-
executor: options?.lint?.executor || `@${framework}/nx:${options?.lint?.targetName || "lint"}`,
|
|
228
|
-
dependsOn: options?.lint?.dependsOn ?? [
|
|
229
|
-
`^${options?.lint?.targetName || "lint"}`,
|
|
230
|
-
userConfig.skipCache ? void 0 : isSetObject.isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
231
|
-
].filter(Boolean),
|
|
232
|
-
defaultConfiguration: options?.lint?.defaultConfiguration || "production",
|
|
233
|
-
options: {
|
|
234
|
-
input: userConfig.input,
|
|
235
|
-
projectType: projectConfig.projectType || userConfig.projectType,
|
|
236
|
-
autoInstall: userConfig.autoInstall,
|
|
237
|
-
skipCache: userConfig.skipCache
|
|
238
|
-
},
|
|
239
|
-
configurations: {
|
|
240
|
-
production: {
|
|
241
|
-
mode: "production"
|
|
242
|
-
},
|
|
243
|
-
test: {
|
|
244
|
-
mode: "test"
|
|
245
|
-
},
|
|
246
|
-
development: {
|
|
247
|
-
mode: "development",
|
|
248
|
-
skipCache: true
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
if (options?.docs !== false && !targets[options?.docs?.targetName || "docs"]) {
|
|
254
|
-
targets[options?.docs?.targetName || "docs"] = {
|
|
255
|
-
cache: true,
|
|
256
|
-
inputs: Array.isArray(options?.docs?.inputs) ? options.docs.inputs : nxJson.withNamedInputs([
|
|
257
|
-
...targetInputs,
|
|
258
|
-
artifactsFolder
|
|
259
|
-
], options?.docs?.inputs ? [
|
|
260
|
-
options.docs.inputs
|
|
261
|
-
] : [
|
|
262
|
-
"documentation",
|
|
263
|
-
"typescript"
|
|
264
|
-
]),
|
|
265
|
-
outputs: options?.docs?.outputs ?? [
|
|
266
|
-
"{options.outputPath}"
|
|
267
|
-
],
|
|
268
|
-
executor: options?.docs?.executor || `@${framework}/nx:${options?.docs?.targetName || "docs"}`,
|
|
269
|
-
dependsOn: options?.docs?.dependsOn ?? [
|
|
270
|
-
`^${options?.docs?.targetName || "docs"}`,
|
|
271
|
-
options?.build !== false && `${options?.build?.targetName || "build"}`,
|
|
272
|
-
userConfig.skipCache ? void 0 : isSetObject.isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
273
|
-
].filter(Boolean),
|
|
274
|
-
defaultConfiguration: options?.docs?.defaultConfiguration || "production",
|
|
275
|
-
options: {
|
|
276
|
-
input: userConfig.input,
|
|
277
|
-
projectType: projectConfig.projectType || userConfig.projectType,
|
|
278
|
-
autoInstall: userConfig.autoInstall,
|
|
279
|
-
skipCache: userConfig.skipCache
|
|
280
|
-
},
|
|
281
|
-
configurations: {
|
|
282
|
-
production: {
|
|
283
|
-
mode: "production"
|
|
284
|
-
},
|
|
285
|
-
test: {
|
|
286
|
-
mode: "test"
|
|
287
|
-
},
|
|
288
|
-
development: {
|
|
289
|
-
mode: "development",
|
|
290
|
-
skipCache: true
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
if (options?.deploy !== false && !targets[options?.deploy?.targetName || "deploy"]) {
|
|
296
|
-
targets[options?.deploy?.targetName || "deploy"] = {
|
|
297
|
-
inputs: Array.isArray(options?.deploy?.inputs) ? options.deploy.inputs : nxJson.withNamedInputs([
|
|
298
|
-
...targetInputs,
|
|
299
|
-
artifactsFolder
|
|
300
|
-
], options?.deploy?.inputs ? [
|
|
301
|
-
options.deploy.inputs
|
|
302
|
-
] : [
|
|
303
|
-
"documentation",
|
|
304
|
-
"typescript"
|
|
305
|
-
]),
|
|
306
|
-
outputs: options?.deploy?.outputs ?? [
|
|
307
|
-
"{options.outputPath}"
|
|
308
|
-
],
|
|
309
|
-
executor: options?.deploy?.executor || `@${framework}/nx:${options?.deploy?.targetName || "deploy"}`,
|
|
310
|
-
dependsOn: options?.deploy?.dependsOn ?? [
|
|
311
|
-
`^${options?.deploy?.targetName || "deploy"}`,
|
|
312
|
-
options?.build !== false && `${options?.build?.targetName || "build"}`,
|
|
313
|
-
userConfig.skipCache ? void 0 : isSetObject.isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
314
|
-
].filter(Boolean),
|
|
315
|
-
defaultConfiguration: options?.deploy?.defaultConfiguration || "production",
|
|
316
|
-
options: {
|
|
317
|
-
input: userConfig.input,
|
|
318
|
-
projectType: projectConfig.projectType || userConfig.projectType,
|
|
319
|
-
autoInstall: userConfig.autoInstall,
|
|
320
|
-
skipCache: userConfig.skipCache
|
|
321
|
-
},
|
|
322
|
-
configurations: {
|
|
323
|
-
production: {
|
|
324
|
-
mode: "production"
|
|
325
|
-
},
|
|
326
|
-
test: {
|
|
327
|
-
mode: "test"
|
|
328
|
-
},
|
|
329
|
-
development: {
|
|
330
|
-
mode: "development",
|
|
331
|
-
skipCache: true
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
projectTags.setDefaultProjectTags(projectConfig, name);
|
|
337
|
-
projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.projectType || "library", {
|
|
338
|
-
overwrite: true
|
|
339
|
-
});
|
|
340
|
-
if (options?.verboseOutput) {
|
|
341
|
-
console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
|
|
342
|
-
}
|
|
343
|
-
return {
|
|
344
|
-
projects: {
|
|
345
|
-
[root]: defu__default.default(projectConfig, {
|
|
346
|
-
name: kebabCase.kebabCase(userConfig.name),
|
|
347
|
-
projectType: userConfig.projectType || "library",
|
|
348
|
-
root,
|
|
349
|
-
sourceRoot: joinPaths.joinPaths(root, "src"),
|
|
350
|
-
targets
|
|
351
|
-
})
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
} catch (error) {
|
|
355
|
-
console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - ${isError.isError(error) ? error.message : "Unknown fatal error"}`);
|
|
356
|
-
throw new Error(`The ${title} failed to process the project configuration for file ${configFile}. See previous logs for more details.`, {
|
|
357
|
-
cause: error instanceof Error ? error : void 0
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
}, configFiles, options, contextV2);
|
|
361
|
-
}
|
|
362
|
-
];
|
|
363
|
-
} catch (error) {
|
|
364
|
-
console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - ${isError.isError(error) ? error.message : "Unknown fatal error during plugin initialization"}`);
|
|
365
|
-
throw new Error(`Failed to initialize the ${title}. See previous logs for more details.`, {
|
|
366
|
-
cause: error instanceof Error ? error : void 0
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
chunkSHUYVCID_js.__name(createNxPlugin, "createNxPlugin");
|
|
371
|
-
|
|
372
|
-
exports.createNxPlugin = createNxPlugin;
|
|
373
|
-
exports.getNxPluginInputs = getNxPluginInputs;
|
|
374
|
-
exports.getNxTargetInputs = getNxTargetInputs;
|
package/dist/chunk-DXL4NVUO.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkR577MOZR_js = require('./chunk-R577MOZR.js');
|
|
4
|
-
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
|
-
|
|
6
|
-
// src/executors/lint/executor.ts
|
|
7
|
-
async function executorFn(context, api) {
|
|
8
|
-
await api.lint(context.inlineConfig);
|
|
9
|
-
return {
|
|
10
|
-
success: true
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
14
|
-
var executor = chunkR577MOZR_js.withExecutor("lint", executorFn);
|
|
15
|
-
var executor_default = executor;
|
|
16
|
-
|
|
17
|
-
exports.executorFn = executorFn;
|
|
18
|
-
exports.executor_default = executor_default;
|
package/dist/chunk-F4QJKUNK.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkR577MOZR_js = require('./chunk-R577MOZR.js');
|
|
4
|
-
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
|
-
|
|
6
|
-
// src/executors/docs/executor.ts
|
|
7
|
-
async function executorFn(context, api) {
|
|
8
|
-
await api.docs(context.inlineConfig);
|
|
9
|
-
return {
|
|
10
|
-
success: true
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
14
|
-
var executor = chunkR577MOZR_js.withExecutor("docs", executorFn);
|
|
15
|
-
var executor_default = executor;
|
|
16
|
-
|
|
17
|
-
exports.executorFn = executorFn;
|
|
18
|
-
exports.executor_default = executor_default;
|
package/dist/chunk-GCIPEE4T.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { base_executor_untyped_default } from './chunk-4OMPO3GC.mjs';
|
|
2
|
-
import { defineUntypedSchema } from 'untyped';
|
|
3
|
-
|
|
4
|
-
var untyped_default = defineUntypedSchema({
|
|
5
|
-
...base_executor_untyped_default,
|
|
6
|
-
$schema: {
|
|
7
|
-
id: "PrepareExecutorSchema",
|
|
8
|
-
title: "Prepare Executor",
|
|
9
|
-
description: "A type definition for the Powerlines - Prepare executor schema",
|
|
10
|
-
required: []
|
|
11
|
-
},
|
|
12
|
-
autoInstall: {
|
|
13
|
-
$schema: {
|
|
14
|
-
title: "Auto Install",
|
|
15
|
-
type: "boolean",
|
|
16
|
-
description: "Automatically install dependencies during prepare stage"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
skipCache: {
|
|
20
|
-
$schema: {
|
|
21
|
-
title: "Skip Cache",
|
|
22
|
-
type: "boolean",
|
|
23
|
-
description: "Skip the caching mechanism during the build process (if required)"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export { untyped_default };
|
package/dist/chunk-IC47MFKB.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// src/helpers/constants.ts
|
|
2
|
-
var CONFIG_INPUTS = [
|
|
3
|
-
"{projectRoot}/{framework}.json",
|
|
4
|
-
"{projectRoot}/{framework}.*.json",
|
|
5
|
-
"{projectRoot}/{framework}.jsonc",
|
|
6
|
-
"{projectRoot}/{framework}.*.jsonc",
|
|
7
|
-
"{projectRoot}/{framework}.json5",
|
|
8
|
-
"{projectRoot}/{framework}.*.json5",
|
|
9
|
-
"{projectRoot}/{framework}.yaml",
|
|
10
|
-
"{projectRoot}/{framework}.*.yaml",
|
|
11
|
-
"{projectRoot}/{framework}.yml",
|
|
12
|
-
"{projectRoot}/{framework}.*.yml",
|
|
13
|
-
"{projectRoot}/{framework}.toml",
|
|
14
|
-
"{projectRoot}/{framework}.*.toml",
|
|
15
|
-
"{projectRoot}/{framework}.config.js",
|
|
16
|
-
"{projectRoot}/{framework}.*.config.js",
|
|
17
|
-
"{projectRoot}/{framework}.config.cjs",
|
|
18
|
-
"{projectRoot}/{framework}.*.config.cjs",
|
|
19
|
-
"{projectRoot}/{framework}.config.mjs",
|
|
20
|
-
"{projectRoot}/{framework}.*.config.mjs",
|
|
21
|
-
"{projectRoot}/{framework}.config.ts",
|
|
22
|
-
"{projectRoot}/{framework}.*.config.ts",
|
|
23
|
-
"{projectRoot}/{framework}.config.cts",
|
|
24
|
-
"{projectRoot}/{framework}.*.config.cts",
|
|
25
|
-
"{projectRoot}/{framework}.config.mts",
|
|
26
|
-
"{projectRoot}/{framework}.*.config.mts"
|
|
27
|
-
];
|
|
28
|
-
|
|
29
|
-
export { CONFIG_INPUTS };
|
package/dist/chunk-IDXFQ2WL.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { withExecutor } from './chunk-RBIHD4JS.mjs';
|
|
2
|
-
import { __name } from './chunk-O6YSETKJ.mjs';
|
|
3
|
-
|
|
4
|
-
// src/executors/lint/executor.ts
|
|
5
|
-
async function executorFn(context, api) {
|
|
6
|
-
await api.lint(context.inlineConfig);
|
|
7
|
-
return {
|
|
8
|
-
success: true
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
__name(executorFn, "executorFn");
|
|
12
|
-
var executor = withExecutor("lint", executorFn);
|
|
13
|
-
var executor_default = executor;
|
|
14
|
-
|
|
15
|
-
export { executorFn, executor_default };
|
package/dist/chunk-IOBDAGVL.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk3BI2YVJ3_js = require('./chunk-3BI2YVJ3.js');
|
|
4
|
-
var untyped = require('untyped');
|
|
5
|
-
|
|
6
|
-
var untyped_default = untyped.defineUntypedSchema({
|
|
7
|
-
...chunk3BI2YVJ3_js.base_executor_untyped_default,
|
|
8
|
-
$schema: {
|
|
9
|
-
id: "PrepareExecutorSchema",
|
|
10
|
-
title: "Prepare Executor",
|
|
11
|
-
description: "A type definition for the Powerlines - Prepare executor schema",
|
|
12
|
-
required: []
|
|
13
|
-
},
|
|
14
|
-
autoInstall: {
|
|
15
|
-
$schema: {
|
|
16
|
-
title: "Auto Install",
|
|
17
|
-
type: "boolean",
|
|
18
|
-
description: "Automatically install dependencies during prepare stage"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
skipCache: {
|
|
22
|
-
$schema: {
|
|
23
|
-
title: "Skip Cache",
|
|
24
|
-
type: "boolean",
|
|
25
|
-
description: "Skip the caching mechanism during the build process (if required)"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
exports.untyped_default = untyped_default;
|
package/dist/chunk-IQVSZEQ6.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// src/helpers/constants.ts
|
|
4
|
-
var CONFIG_INPUTS = [
|
|
5
|
-
"{projectRoot}/{framework}.json",
|
|
6
|
-
"{projectRoot}/{framework}.*.json",
|
|
7
|
-
"{projectRoot}/{framework}.jsonc",
|
|
8
|
-
"{projectRoot}/{framework}.*.jsonc",
|
|
9
|
-
"{projectRoot}/{framework}.json5",
|
|
10
|
-
"{projectRoot}/{framework}.*.json5",
|
|
11
|
-
"{projectRoot}/{framework}.yaml",
|
|
12
|
-
"{projectRoot}/{framework}.*.yaml",
|
|
13
|
-
"{projectRoot}/{framework}.yml",
|
|
14
|
-
"{projectRoot}/{framework}.*.yml",
|
|
15
|
-
"{projectRoot}/{framework}.toml",
|
|
16
|
-
"{projectRoot}/{framework}.*.toml",
|
|
17
|
-
"{projectRoot}/{framework}.config.js",
|
|
18
|
-
"{projectRoot}/{framework}.*.config.js",
|
|
19
|
-
"{projectRoot}/{framework}.config.cjs",
|
|
20
|
-
"{projectRoot}/{framework}.*.config.cjs",
|
|
21
|
-
"{projectRoot}/{framework}.config.mjs",
|
|
22
|
-
"{projectRoot}/{framework}.*.config.mjs",
|
|
23
|
-
"{projectRoot}/{framework}.config.ts",
|
|
24
|
-
"{projectRoot}/{framework}.*.config.ts",
|
|
25
|
-
"{projectRoot}/{framework}.config.cts",
|
|
26
|
-
"{projectRoot}/{framework}.*.config.cts",
|
|
27
|
-
"{projectRoot}/{framework}.config.mts",
|
|
28
|
-
"{projectRoot}/{framework}.*.config.mts"
|
|
29
|
-
];
|
|
30
|
-
|
|
31
|
-
exports.CONFIG_INPUTS = CONFIG_INPUTS;
|
package/dist/chunk-N2YKXZ5R.js
DELETED
package/dist/chunk-NB2KHU33.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { withExecutor } from './chunk-RBIHD4JS.mjs';
|
|
2
|
-
import { __name } from './chunk-O6YSETKJ.mjs';
|
|
3
|
-
import defu from 'defu';
|
|
4
|
-
|
|
5
|
-
async function executorFn(context, api) {
|
|
6
|
-
await api.build(defu({
|
|
7
|
-
input: context.options.input,
|
|
8
|
-
skipCache: context.options.skipCache,
|
|
9
|
-
mode: context.options.mode
|
|
10
|
-
}, context.inlineConfig));
|
|
11
|
-
return {
|
|
12
|
-
success: true
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
__name(executorFn, "executorFn");
|
|
16
|
-
var executor = withExecutor("build", executorFn);
|
|
17
|
-
var executor_default = executor;
|
|
18
|
-
|
|
19
|
-
export { executorFn, executor_default };
|
package/dist/chunk-NXR5JH7F.js
DELETED
package/dist/chunk-O6YSETKJ.mjs
DELETED
package/dist/chunk-P5X6KXLE.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkR577MOZR_js = require('./chunk-R577MOZR.js');
|
|
4
|
-
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
|
-
var defu = require('defu');
|
|
6
|
-
|
|
7
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
-
|
|
9
|
-
var defu__default = /*#__PURE__*/_interopDefault(defu);
|
|
10
|
-
|
|
11
|
-
async function executorFn(context, api) {
|
|
12
|
-
await api.prepare(defu__default.default({
|
|
13
|
-
command: "prepare",
|
|
14
|
-
skipCache: context.options.skipCache,
|
|
15
|
-
autoInstall: context.options.autoInstall
|
|
16
|
-
}, context.inlineConfig));
|
|
17
|
-
return {
|
|
18
|
-
success: true
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
22
|
-
var executor = chunkR577MOZR_js.withExecutor("prepare", executorFn);
|
|
23
|
-
var executor_default = executor;
|
|
24
|
-
|
|
25
|
-
exports.executorFn = executorFn;
|
|
26
|
-
exports.executor_default = executor_default;
|
package/dist/chunk-PKGTRC56.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { withExecutor } from './chunk-RBIHD4JS.mjs';
|
|
2
|
-
import { __name } from './chunk-O6YSETKJ.mjs';
|
|
3
|
-
|
|
4
|
-
// src/executors/docs/executor.ts
|
|
5
|
-
async function executorFn(context, api) {
|
|
6
|
-
await api.docs(context.inlineConfig);
|
|
7
|
-
return {
|
|
8
|
-
success: true
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
__name(executorFn, "executorFn");
|
|
12
|
-
var executor = withExecutor("docs", executorFn);
|
|
13
|
-
var executor_default = executor;
|
|
14
|
-
|
|
15
|
-
export { executorFn, executor_default };
|
package/dist/chunk-PMQ5YVLP.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkR577MOZR_js = require('./chunk-R577MOZR.js');
|
|
4
|
-
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
|
-
|
|
6
|
-
// src/executors/clean/executor.ts
|
|
7
|
-
async function executorFn(context, api) {
|
|
8
|
-
await api.clean(context.inlineConfig);
|
|
9
|
-
return {
|
|
10
|
-
success: true
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
14
|
-
var executor = chunkR577MOZR_js.withExecutor("clean", executorFn);
|
|
15
|
-
var executor_default = executor;
|
|
16
|
-
|
|
17
|
-
exports.executorFn = executorFn;
|
|
18
|
-
exports.executor_default = executor_default;
|