@shell-shock/nx 0.0.79 → 0.0.82
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 +30 -0
- package/dist/base/base-executor.schema.d.ts +16 -4
- package/dist/base/base-executor.schema.json +20 -13
- package/dist/{base-executor-CjzYhdJI.js → base-executor-BKs5qTWJ.js} +28 -13
- package/dist/{base-executor-CXGfAvut.mjs → base-executor-DUy51uSh.mjs} +29 -14
- package/dist/base-executor-DUy51uSh.mjs.map +1 -0
- package/dist/executors/build/executor.d.mts +14 -4
- package/dist/executors/build/executor.d.mts.map +1 -1
- package/dist/executors/build/executor.d.ts +14 -4
- package/dist/executors/build/executor.d.ts.map +1 -1
- package/dist/executors/build/executor.js +1 -1
- package/dist/executors/build/executor.mjs +1 -1
- package/dist/executors/build/executor.mjs.map +1 -1
- package/dist/executors/build/schema.d.ts +16 -4
- package/dist/executors/build/schema.json +20 -13
- package/dist/executors/clean/executor.d.mts +14 -4
- package/dist/executors/clean/executor.d.mts.map +1 -1
- package/dist/executors/clean/executor.d.ts +14 -4
- package/dist/executors/clean/executor.d.ts.map +1 -1
- package/dist/executors/clean/executor.js +1 -1
- package/dist/executors/clean/executor.mjs +1 -1
- package/dist/executors/clean/executor.mjs.map +1 -1
- package/dist/executors/clean/schema.d.ts +16 -4
- package/dist/executors/clean/schema.json +20 -13
- package/dist/executors/docs/executor.d.mts +14 -4
- package/dist/executors/docs/executor.d.mts.map +1 -1
- package/dist/executors/docs/executor.d.ts +14 -4
- package/dist/executors/docs/executor.d.ts.map +1 -1
- package/dist/executors/docs/executor.js +1 -1
- package/dist/executors/docs/executor.mjs +1 -1
- package/dist/executors/docs/executor.mjs.map +1 -1
- package/dist/executors/docs/schema.d.ts +16 -4
- package/dist/executors/docs/schema.json +20 -13
- package/dist/executors/lint/executor.d.mts +14 -4
- package/dist/executors/lint/executor.d.mts.map +1 -1
- package/dist/executors/lint/executor.d.ts +14 -4
- package/dist/executors/lint/executor.d.ts.map +1 -1
- package/dist/executors/lint/executor.js +1 -1
- package/dist/executors/lint/executor.mjs +1 -1
- package/dist/executors/lint/executor.mjs.map +1 -1
- package/dist/executors/lint/schema.d.ts +16 -4
- package/dist/executors/lint/schema.json +20 -13
- package/dist/executors/prepare/executor.d.mts +14 -4
- package/dist/executors/prepare/executor.d.mts.map +1 -1
- package/dist/executors/prepare/executor.d.ts +14 -4
- package/dist/executors/prepare/executor.d.ts.map +1 -1
- package/dist/executors/prepare/executor.js +1 -1
- package/dist/executors/prepare/executor.mjs +1 -1
- package/dist/executors/prepare/executor.mjs.map +1 -1
- package/dist/executors/prepare/schema.d.ts +16 -4
- package/dist/executors/prepare/schema.json +20 -13
- package/dist/index.d.mts +14 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +14 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plugin/index.d.mts +1 -1
- package/dist/plugin/index.d.mts.map +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +129 -24
- package/dist/plugin/index.mjs +129 -24
- package/dist/plugin/index.mjs.map +1 -1
- package/docs/api/base-executor.schema.md +11 -4
- package/docs/api/build/schema.md +11 -4
- package/docs/api/clean/schema.md +11 -4
- package/docs/api/docs/schema.md +11 -4
- package/docs/api/lint/schema.md +11 -4
- package/docs/api/prepare/schema.md +11 -4
- package/package.json +16 -16
- package/dist/base-executor-CXGfAvut.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ interface BaseExecutorSchema {
|
|
|
12
12
|
*
|
|
13
13
|
* The path to the Powerlines configuration file. Alias for `configFile`.
|
|
14
14
|
*
|
|
15
|
-
* @default "{projectRoot}/powerlines.config.ts"
|
|
16
15
|
*
|
|
17
16
|
* @format path
|
|
18
17
|
*/
|
|
@@ -22,7 +21,6 @@ interface BaseExecutorSchema {
|
|
|
22
21
|
*
|
|
23
22
|
* The path to the Powerlines configuration file. Alias for `config`.
|
|
24
23
|
*
|
|
25
|
-
* @default "{projectRoot}/powerlines.config.ts"
|
|
26
24
|
*
|
|
27
25
|
* @format path
|
|
28
26
|
*/
|
|
@@ -41,7 +39,6 @@ interface BaseExecutorSchema {
|
|
|
41
39
|
*
|
|
42
40
|
* The path to the tsconfig file
|
|
43
41
|
*
|
|
44
|
-
* @default "{projectRoot}/tsconfig.json"
|
|
45
42
|
*
|
|
46
43
|
* @format path
|
|
47
44
|
*/
|
|
@@ -71,6 +68,13 @@ interface BaseExecutorSchema {
|
|
|
71
68
|
*
|
|
72
69
|
*/
|
|
73
70
|
sourceMap?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Minify
|
|
73
|
+
*
|
|
74
|
+
* Minify the output
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
minify?: boolean;
|
|
74
78
|
/**
|
|
75
79
|
* Format
|
|
76
80
|
*
|
|
@@ -84,7 +88,6 @@ interface BaseExecutorSchema {
|
|
|
84
88
|
*
|
|
85
89
|
* The platform to build
|
|
86
90
|
*
|
|
87
|
-
* @default "neutral"
|
|
88
91
|
*
|
|
89
92
|
* @enum neutral,node,browser
|
|
90
93
|
*/
|
|
@@ -148,6 +151,13 @@ interface BaseExecutorSchema {
|
|
|
148
151
|
ignore?: string[];
|
|
149
152
|
dot?: boolean;
|
|
150
153
|
}>;
|
|
154
|
+
/**
|
|
155
|
+
* Additional Arguments
|
|
156
|
+
*
|
|
157
|
+
* The additional arguments provided during execution of the command
|
|
158
|
+
*
|
|
159
|
+
*/
|
|
160
|
+
additionalArgs?: Record<string, string>;
|
|
151
161
|
}
|
|
152
162
|
//#endregion
|
|
153
163
|
//#region src/base/base-executor.d.ts
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["BaseExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../src/base/base-executor.schema.d.ts","../src/base/base-executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;;;AAAjB
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["BaseExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","minify","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","additionalArgs"],"sources":["../src/base/base-executor.schema.d.ts","../src/base/base-executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;;;AAAjB;;;;;EASCG,MAAAA;;;;;;;;;EAUAC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;EAURK,QAAAA;;;;;;;;;EAUAC,UAAAA;EClBD;;;;;;;;ED4BCC,QAAAA;;;;;;;EAQAC,SAAAA;;;;;;;EAQAC,MAAAA;;;;;;;ACvBD;EDgCCC,MAAAA,GAASV,KAAAA;;;;;;;;;EAUTW,QAAAA;;;;;;;EAQAC,QAAAA,GAAWZ,KAAAA;;;;;;;EAQXa,UAAAA,GAAab,KAAAA;;;;;;;EAQbc,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAAShB,MAAAA;;;;;;;EAQTiB,MAAAA,GAASlB,KAAAA;IAAQI,KAAAA;IAAgBe,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,cAAAA,GAAiBtB,MAAAA;AAAAA;;;KCnIN,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA;;;;;;;;;;;iBAaH,YAAA,kBACG,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,CAAA,CAE7C,OAAA,EAAS,QAAA,EACT,UAAA,GACE,OAAA,EAAS,yBAAA,CAA0B,QAAA,EAAU,eAAA,GAC7C,GAAA,EAAK,aAAA,KAEH,OAAA,CAAQ,kBAAA,uBACR,kBAAA,sBAGH,eAAA,CAAgB,eAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_base_executor = require('./base-executor-
|
|
2
|
+
const require_base_executor = require('./base-executor-BKs5qTWJ.js');
|
|
3
3
|
let _powerlines_nx_base_base_executor_untyped = require("@powerlines/nx/base/base-executor.untyped");
|
|
4
4
|
_powerlines_nx_base_base_executor_untyped = require_base_executor.__toESM(_powerlines_nx_base_base_executor_untyped);
|
|
5
5
|
let untyped = require("untyped");
|
package/dist/index.mjs
CHANGED
package/dist/plugin/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateNodesV2 } from "@nx/devkit";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@powerlines+nx@0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.39_fc99eff9622fa5d3f6bd2e5db9585b9b/node_modules/@powerlines/nx/dist/src/types/plugin.d.mts
|
|
3
3
|
//#region src/types/plugin.d.ts
|
|
4
4
|
interface NxPluginOptions {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":["NxPluginOptions","clean","targetName","cache","defaultConfiguration","dependsOn","inputs","outputs","executor","prepare","lint","build","docs","deploy","verboseOutput","debug"],"sources":["../../../../node_modules/.pnpm/@powerlines+nx@0.
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["NxPluginOptions","clean","targetName","cache","defaultConfiguration","dependsOn","inputs","outputs","executor","prepare","lint","build","docs","deploy","verboseOutput","debug"],"sources":["../../../../node_modules/.pnpm/@powerlines+nx@0.13.39_fc99eff9622fa5d3f6bd2e5db9585b9b/node_modules/@powerlines/nx/dist/src/types/plugin.d.mts","../../src/plugin/index.ts"],"x_google_ignoreList":[0],"mappings":";;;UACUA,eAAAA;;;;EAIRC,KAAAA;IAJQD;;;;;IAUNE,UAAAA;IAMAC;;;;;IAAAA,KAAAA;IA+BFM;;;;;IAzBEL,oBAAAA;IAyDAG;;;;;IAnDAF,SAAAA;IAsFAA;;;IAlFAC,MAAAA;IAqGFK;;;IAjGEJ,OAAAA;IAyHAF;;;;;IAnHAG,QAAAA;EAAAA;EAwJAJ;;;EAnJFK,OAAAA;IAuKED;;;;;IAjKAN,UAAAA;IAkMAI;;;;;IA5LAH,KAAAA;IA+NG;;;;;IAzNHC,oBAAAA;ICzCA;;;;;ID+CAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFE,IAAAA;;;;;;IAMER,UAAAA;;;;;;IAMAC,KAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFG,KAAAA;;;;;;IAMET,UAAAA;;;;;;IAMAC,KAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFI,IAAAA;;;;;;IAMEV,UAAAA;;;;;;IAMAC,KAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFK,MAAAA;;;;;;IAMEX,UAAAA;;;;;;IAMAC,KAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;;;;;;EAUFM,aAAAA;;;;;;EAMAC,KAAAA;;;;;;;;;EASAZ,KAAAA;AAAAA;;;cCrQW,aAAA,EAAe,aAAA,CAAc,eAAA"}
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateNodesV2 } from "@nx/devkit";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@powerlines+nx@0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.39_fc99eff9622fa5d3f6bd2e5db9585b9b/node_modules/@powerlines/nx/dist/src/types/plugin.d.mts
|
|
3
3
|
//#region src/types/plugin.d.ts
|
|
4
4
|
interface NxPluginOptions {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["NxPluginOptions","clean","targetName","cache","defaultConfiguration","dependsOn","inputs","outputs","executor","prepare","lint","build","docs","deploy","verboseOutput","debug"],"sources":["../../../../node_modules/.pnpm/@powerlines+nx@0.
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["NxPluginOptions","clean","targetName","cache","defaultConfiguration","dependsOn","inputs","outputs","executor","prepare","lint","build","docs","deploy","verboseOutput","debug"],"sources":["../../../../node_modules/.pnpm/@powerlines+nx@0.13.39_fc99eff9622fa5d3f6bd2e5db9585b9b/node_modules/@powerlines/nx/dist/src/types/plugin.d.mts","../../src/plugin/index.ts"],"x_google_ignoreList":[0],"mappings":";;;UACUA,eAAAA;;;;EAIRC,KAAAA;IAJQD;;;;;IAUNE,UAAAA;IAMAC;;;;;IAAAA,KAAAA;IA+BFM;;;;;IAzBEL,oBAAAA;IAyDAG;;;;;IAnDAF,SAAAA;IAsFAA;;;IAlFAC,MAAAA;IAqGFK;;;IAjGEJ,OAAAA;IAyHAF;;;;;IAnHAG,QAAAA;EAAAA;EAwJAJ;;;EAnJFK,OAAAA;IAuKED;;;;;IAjKAN,UAAAA;IAkMAI;;;;;IA5LAH,KAAAA;IA+NG;;;;;IAzNHC,oBAAAA;ICzCA;;;;;ID+CAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFE,IAAAA;;;;;;IAMER,UAAAA;;;;;;IAMAC,KAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFG,KAAAA;;;;;;IAMET,UAAAA;;;;;;IAMAC,KAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFI,IAAAA;;;;;;IAMEV,UAAAA;;;;;;IAMAC,KAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;EAKFK,MAAAA;;;;;;IAMEX,UAAAA;;;;;;IAMAC,KAAAA;;;;;;IAMAC,oBAAAA;;;;;;IAMAC,SAAAA;;;;IAIAC,MAAAA;;;;IAIAC,OAAAA;;;;;;IAMAC,QAAAA;EAAAA;;;;;;;;;EAUFM,aAAAA;;;;;;EAMAC,KAAAA;;;;;;;;;EASAZ,KAAAA;AAAAA;;;cCrQW,aAAA,EAAe,aAAA,CAAc,eAAA"}
|
package/dist/plugin/index.js
CHANGED
|
@@ -50,7 +50,7 @@ let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-stri
|
|
|
50
50
|
let nx_src_config_nx_json_js = require("nx/src/config/nx-json.js");
|
|
51
51
|
let nx_src_utils_package_json_js = require("nx/src/utils/package-json.js");
|
|
52
52
|
|
|
53
|
-
//#region ../../node_modules/.pnpm/@powerlines+nx@0.
|
|
53
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.39_fc99eff9622fa5d3f6bd2e5db9585b9b/node_modules/@powerlines/nx/dist/src/helpers/constants.mjs
|
|
54
54
|
/**
|
|
55
55
|
* A list of Nx input strings that describe the Powerlines configuration file
|
|
56
56
|
*/
|
|
@@ -82,14 +82,109 @@ const CONFIG_INPUTS = [
|
|
|
82
82
|
];
|
|
83
83
|
|
|
84
84
|
//#endregion
|
|
85
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
85
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/ci-checks.mjs
|
|
86
|
+
/**
|
|
87
|
+
* Returns true if the current environment is a CI environment.
|
|
88
|
+
*
|
|
89
|
+
* @returns True if the current environment is a CI environment.
|
|
90
|
+
*/
|
|
91
|
+
const isCI = (env = process.env) => {
|
|
92
|
+
return Boolean(env.STORM_CI || env.CI || env.CONTINUOUS_INTEGRATION || env.BUILD_NUMBER || env.RUN_ID || env.AGOLA_GIT_REF || env.AC_APPCIRCLE || env.APPVEYOR || env.CODEBUILD || env.TF_BUILD || env.bamboo_planKey || env.BITBUCKET_COMMIT || env.BITRISE_IO || env.BUDDY_WORKSPACE_ID || env.BUILDKITE || env.CIRCLECI || env.CIRRUS_CI || env.CF_BUILD_ID || env.CM_BUILD_ID || env.CI_NAME || env.DRONE || env.DSARI || env.EARTHLY_CI || env.EAS_BUILD || env.GERRIT_PROJECT || env.GITEA_ACTIONS || env.GITHUB_ACTIONS || env.GITLAB_CI || env.GOCD || env.BUILDER_OUTPUT || env.HARNESS_BUILD_ID || env.JENKINS_URL || env.BUILD_ID || env.LAYERCI || env.MAGNUM || env.NETLIFY || env.NEVERCODE || env.PROW_JOB_ID || env.RELEASE_BUILD_ID || env.RENDER || env.SAILCI || env.HUDSON || env.JENKINS_URL || env.BUILD_ID || env.SCREWDRIVER || env.SEMAPHORE || env.SOURCEHUT || env.STRIDER || env.TASK_ID || env.RUN_ID || env.TEAMCITY_VERSION || env.TRAVIS || env.VELA || env.NOW_BUILDER || env.APPCENTER_BUILD_ID || env.CI_XCODE_PROJECT || env.XCS || false);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/environment-checks.mjs
|
|
97
|
+
/** Value of process.platform */
|
|
98
|
+
const platform = process?.platform || "";
|
|
99
|
+
/** Detect if stdout.TTY is available */
|
|
100
|
+
const hasTTY = Boolean(process?.stdout && process?.stdout.isTTY);
|
|
101
|
+
/** Detect if `DEBUG` environment variable is set */
|
|
102
|
+
const isDebug = Boolean(process.env.DEBUG);
|
|
103
|
+
/** Detect the `NODE_ENV` environment variable */
|
|
104
|
+
const mode = process.env.STORM_MODE || process.env.NEXT_PUBLIC_VERCEL_ENV || process.env.NODE_ENV || "production";
|
|
105
|
+
/** Detect if the application is running in a staging environment */
|
|
106
|
+
const isStaging = [
|
|
107
|
+
"stg",
|
|
108
|
+
"stage",
|
|
109
|
+
"staging"
|
|
110
|
+
].includes(mode?.toLowerCase());
|
|
111
|
+
/**
|
|
112
|
+
* Check if the current environment is production.
|
|
113
|
+
*
|
|
114
|
+
* @param mode - The mode string to check.
|
|
115
|
+
* @returns Whether the environment is production
|
|
116
|
+
*/
|
|
117
|
+
function isProductionMode(mode$1) {
|
|
118
|
+
return [
|
|
119
|
+
"prd",
|
|
120
|
+
"prod",
|
|
121
|
+
"production",
|
|
122
|
+
"preprod",
|
|
123
|
+
"preproduction",
|
|
124
|
+
"uat"
|
|
125
|
+
].includes(mode$1?.toLowerCase()?.replace(/[\s\-_]/g, ""));
|
|
126
|
+
}
|
|
127
|
+
/** Detect if `NODE_ENV` environment variable is `production` */
|
|
128
|
+
const isProduction = isProductionMode(mode);
|
|
129
|
+
/**
|
|
130
|
+
* Check if the current environment is test.
|
|
131
|
+
*
|
|
132
|
+
* @param mode - The mode string to check.
|
|
133
|
+
* @returns Whether the environment is test
|
|
134
|
+
*/
|
|
135
|
+
function isTestMode(mode$1) {
|
|
136
|
+
return [
|
|
137
|
+
"tst",
|
|
138
|
+
"test",
|
|
139
|
+
"testing",
|
|
140
|
+
"stg",
|
|
141
|
+
"stage",
|
|
142
|
+
"staging",
|
|
143
|
+
"qa",
|
|
144
|
+
"qualityassurance"
|
|
145
|
+
].includes(mode$1?.toLowerCase()?.replace(/[\s\-_]/g, ""));
|
|
146
|
+
}
|
|
147
|
+
/** Detect if `NODE_ENV` environment variable is `test` */
|
|
148
|
+
const isTest = isTestMode(mode) || isStaging || Boolean(process.env.TEST);
|
|
149
|
+
/**
|
|
150
|
+
* Check if the current environment is development.
|
|
151
|
+
*
|
|
152
|
+
* @param mode - The mode string to check.
|
|
153
|
+
* @returns Whether the environment is development
|
|
154
|
+
*/
|
|
155
|
+
function isDevelopmentMode(mode$1) {
|
|
156
|
+
return [
|
|
157
|
+
"dev",
|
|
158
|
+
"development",
|
|
159
|
+
"int",
|
|
160
|
+
"integration"
|
|
161
|
+
].includes(mode$1?.toLowerCase()?.replace(/[\s\-_]/g, ""));
|
|
162
|
+
}
|
|
163
|
+
/** Detect if `NODE_ENV` environment variable is `dev` or `development` */
|
|
164
|
+
const isDevelopment = isDevelopmentMode(mode) || isDebug;
|
|
165
|
+
/** Detect if MINIMAL environment variable is set, running in CI or test or TTY is unavailable */
|
|
166
|
+
const isMinimal = Boolean(process.env.MINIMAL) || isCI() || isTest || !hasTTY;
|
|
167
|
+
/** Detect if process.platform is Windows */
|
|
168
|
+
const isWindows = /^win/i.test(platform);
|
|
169
|
+
/** Detect if process.platform is Linux */
|
|
170
|
+
const isLinux = /^linux/i.test(platform);
|
|
171
|
+
/** Detect if process.platform is macOS (darwin kernel) */
|
|
172
|
+
const isMacOS = /^darwin/i.test(platform);
|
|
173
|
+
/** Color Support */
|
|
174
|
+
const isColorSupported = !process.env.NO_COLOR && (Boolean(process.env.FORCE_COLOR) || (hasTTY || isWindows) && process.env.TERM !== "dumb" || isCI());
|
|
175
|
+
/** Node.js versions */
|
|
176
|
+
const nodeVersion = (process?.versions?.node || "").replace(/^v/, "") || null;
|
|
177
|
+
const nodeMajorVersion = Number(nodeVersion?.split(".")[0]) || null;
|
|
178
|
+
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/path/src/regex.mjs
|
|
86
181
|
const DRIVE_LETTER_START_REGEX = /^[A-Z]:\//i;
|
|
87
182
|
const DRIVE_LETTER_REGEX = /^[A-Z]:$/i;
|
|
88
183
|
const UNC_REGEX = /^[/\\]{2}/;
|
|
89
184
|
const ABSOLUTE_PATH_REGEX = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/i;
|
|
90
185
|
|
|
91
186
|
//#endregion
|
|
92
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
187
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/path/src/slash.mjs
|
|
93
188
|
/**
|
|
94
189
|
* Replace backslash to slash
|
|
95
190
|
*
|
|
@@ -102,7 +197,7 @@ function slash(path) {
|
|
|
102
197
|
}
|
|
103
198
|
|
|
104
199
|
//#endregion
|
|
105
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
200
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/path/src/is-type.mjs
|
|
106
201
|
/**
|
|
107
202
|
* Check if the path is an absolute path.
|
|
108
203
|
*
|
|
@@ -126,7 +221,7 @@ function isAbsolute(path) {
|
|
|
126
221
|
}
|
|
127
222
|
|
|
128
223
|
//#endregion
|
|
129
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
224
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/path/src/join-paths.mjs
|
|
130
225
|
function normalizeWindowsPath(input = "") {
|
|
131
226
|
if (!input) return input;
|
|
132
227
|
return input.replace(/\\/g, "/").replace(DRIVE_LETTER_START_REGEX, (r) => r.toUpperCase());
|
|
@@ -243,7 +338,7 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
243
338
|
}
|
|
244
339
|
|
|
245
340
|
//#endregion
|
|
246
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
341
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/acronyms.mjs
|
|
247
342
|
/**
|
|
248
343
|
* A running list of common acronyms and their meanings.
|
|
249
344
|
*
|
|
@@ -655,7 +750,7 @@ Object.fromEntries(Object.entries(ACRONYMS).map(([key, value]) => [key, value.di
|
|
|
655
750
|
Object.fromEntries(Object.entries(ACRONYMS).map(([key, value]) => [key, value.description]));
|
|
656
751
|
|
|
657
752
|
//#endregion
|
|
658
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
753
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/combine.mjs
|
|
659
754
|
/**
|
|
660
755
|
* Combine two strings with a space in between.
|
|
661
756
|
*
|
|
@@ -668,7 +763,7 @@ function combine(acc, str) {
|
|
|
668
763
|
}
|
|
669
764
|
|
|
670
765
|
//#endregion
|
|
671
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
766
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/decamelize.mjs
|
|
672
767
|
/**
|
|
673
768
|
* Convert a camelCase or PascalCase string to a snake_case string.
|
|
674
769
|
*
|
|
@@ -680,7 +775,7 @@ function decamelize(value) {
|
|
|
680
775
|
}
|
|
681
776
|
|
|
682
777
|
//#endregion
|
|
683
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
778
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/articles.mjs
|
|
684
779
|
const ARTICLES = [
|
|
685
780
|
"a",
|
|
686
781
|
"an",
|
|
@@ -688,7 +783,7 @@ const ARTICLES = [
|
|
|
688
783
|
];
|
|
689
784
|
|
|
690
785
|
//#endregion
|
|
691
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
786
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/conjunctions.mjs
|
|
692
787
|
const CONJUNCTIONS = [
|
|
693
788
|
"and",
|
|
694
789
|
"that",
|
|
@@ -718,7 +813,7 @@ const CONJUNCTIONS = [
|
|
|
718
813
|
];
|
|
719
814
|
|
|
720
815
|
//#endregion
|
|
721
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
816
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/prepositions.mjs
|
|
722
817
|
const PREPOSITIONS = [
|
|
723
818
|
"about",
|
|
724
819
|
"above",
|
|
@@ -784,7 +879,7 @@ const PREPOSITIONS = [
|
|
|
784
879
|
];
|
|
785
880
|
|
|
786
881
|
//#endregion
|
|
787
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
882
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/special-cases.mjs
|
|
788
883
|
const SPECIAL_CASES = [
|
|
789
884
|
"2FA",
|
|
790
885
|
"4K",
|
|
@@ -835,7 +930,7 @@ const SPECIAL_CASES = [
|
|
|
835
930
|
];
|
|
836
931
|
|
|
837
932
|
//#endregion
|
|
838
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
933
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/format-special-cases.mjs
|
|
839
934
|
/**
|
|
840
935
|
* Handle special words in a title.
|
|
841
936
|
*
|
|
@@ -861,7 +956,7 @@ function formatSpecialCases(value, index, words, options) {
|
|
|
861
956
|
}
|
|
862
957
|
|
|
863
958
|
//#endregion
|
|
864
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
959
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/upper-case-first.mjs
|
|
865
960
|
/**
|
|
866
961
|
* Upper case the first character of an input string.
|
|
867
962
|
*
|
|
@@ -876,7 +971,7 @@ function upperCaseFirst(input) {
|
|
|
876
971
|
}
|
|
877
972
|
|
|
878
973
|
//#endregion
|
|
879
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
974
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/title-case.mjs
|
|
880
975
|
/**
|
|
881
976
|
* Convert a string to title case.
|
|
882
977
|
*
|
|
@@ -889,7 +984,7 @@ function titleCase$1(input, options) {
|
|
|
889
984
|
}
|
|
890
985
|
|
|
891
986
|
//#endregion
|
|
892
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
987
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/get-env-paths.mjs
|
|
893
988
|
const homedir = node_os.default.homedir();
|
|
894
989
|
const tmpdir = node_os.default.tmpdir();
|
|
895
990
|
const macos = (orgId) => {
|
|
@@ -967,7 +1062,7 @@ function getEnvPaths(options = {}) {
|
|
|
967
1062
|
}
|
|
968
1063
|
|
|
969
1064
|
//#endregion
|
|
970
|
-
//#region ../../node_modules/.pnpm/@stryke+fs@0.33.
|
|
1065
|
+
//#region ../../node_modules/.pnpm/@stryke+fs@0.33.70_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+core@1.10.0_@emnapi+runt_bab6a976ece1ecde1bcb30fca36fad37/node_modules/@stryke/fs/dist/exists.mjs
|
|
971
1066
|
/**
|
|
972
1067
|
* Check if a file exists
|
|
973
1068
|
*
|
|
@@ -979,7 +1074,7 @@ function existsSync(filePath) {
|
|
|
979
1074
|
}
|
|
980
1075
|
|
|
981
1076
|
//#endregion
|
|
982
|
-
//#region ../../node_modules/.pnpm/@powerlines+nx@0.
|
|
1077
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.39_fc99eff9622fa5d3f6bd2e5db9585b9b/node_modules/@powerlines/nx/dist/src/helpers/plugin-utilities.mjs
|
|
983
1078
|
/**
|
|
984
1079
|
* Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
|
|
985
1080
|
*
|
|
@@ -1044,7 +1139,16 @@ function createNxPlugin(opts) {
|
|
|
1044
1139
|
if (options?.verboseOutput) console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
1045
1140
|
let userConfig = {};
|
|
1046
1141
|
try {
|
|
1047
|
-
if (loadUserConfigFile)
|
|
1142
|
+
if (loadUserConfigFile) {
|
|
1143
|
+
const parsedConfig = await loadUserConfigFile({
|
|
1144
|
+
root: projectRoot,
|
|
1145
|
+
cwd: contextV2.workspaceRoot,
|
|
1146
|
+
mode: isDevelopment ? "development" : isTest ? "test" : "production",
|
|
1147
|
+
configFile,
|
|
1148
|
+
framework
|
|
1149
|
+
}, resolver);
|
|
1150
|
+
if ((0, _stryke_type_checks_is_set_object.isSetObject)(parsedConfig)) userConfig = parsedConfig.config;
|
|
1151
|
+
}
|
|
1048
1152
|
} catch (error) {
|
|
1049
1153
|
console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Failed to load user configuration for project in ${projectRoot} - ${(0, _stryke_type_checks_is_error.isError)(error) ? error.message : (0, _stryke_type_checks_is_set_string.isSetString)(error) ? error : "Unknown error"} \n\nThis error can occur if the project depends on another package in the workspace and the dependent package has not been built yet. To resolve this issue, please ensure that all dependent packages have been built successfully.`);
|
|
1050
1154
|
}
|
|
@@ -1058,7 +1162,7 @@ function createNxPlugin(opts) {
|
|
|
1058
1162
|
return {};
|
|
1059
1163
|
}
|
|
1060
1164
|
const packageJson = JSON.parse(packageJsonContent);
|
|
1061
|
-
if (!userConfig.
|
|
1165
|
+
if (!(userConfig && Object.keys(userConfig).length > 0) && !packageJson?.[(0, _stryke_string_format_camel_case.camelCase)(framework)]) {
|
|
1062
1166
|
if (options?.verboseOutput) console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
|
|
1063
1167
|
return {};
|
|
1064
1168
|
}
|
|
@@ -1077,6 +1181,7 @@ function createNxPlugin(opts) {
|
|
|
1077
1181
|
dependsOn: options?.clean?.dependsOn ?? [`^${options?.clean?.targetName || "clean"}`],
|
|
1078
1182
|
defaultConfiguration: options?.clean?.defaultConfiguration || "production",
|
|
1079
1183
|
options: {
|
|
1184
|
+
root: projectRoot,
|
|
1080
1185
|
projectType: projectConfig.projectType,
|
|
1081
1186
|
outputPath: `{workspaceRoot}/${projectRoot}/dist`,
|
|
1082
1187
|
copyPath: `{workspaceRoot}/dist/${projectRoot}`
|
|
@@ -1116,7 +1221,7 @@ function createNxPlugin(opts) {
|
|
|
1116
1221
|
inputs: Array.isArray(options?.build?.inputs) ? options.build.inputs : (0, _storm_software_workspace_tools_utils_nx_json.withNamedInputs)(targetInputs, [options?.build?.inputs || "typescript"]),
|
|
1117
1222
|
outputs: options?.build?.outputs ?? ["{options.outputPath}"],
|
|
1118
1223
|
executor: options?.build?.executor || `@${framework}/nx:${options?.build?.targetName || "build"}`,
|
|
1119
|
-
dependsOn: options?.build?.dependsOn ?? [`^${options?.build?.targetName || "build"}`, userConfig.skipCache ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
|
|
1224
|
+
dependsOn: options?.build?.dependsOn ?? [`^${options?.build?.targetName || "build"}`, userConfig.skipCache || isDevelopment ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
|
|
1120
1225
|
defaultConfiguration: options?.build?.defaultConfiguration || "production",
|
|
1121
1226
|
options: {
|
|
1122
1227
|
projectType: projectConfig.projectType,
|
|
@@ -1137,7 +1242,7 @@ function createNxPlugin(opts) {
|
|
|
1137
1242
|
inputs: Array.isArray(options?.lint?.inputs) ? options.lint.inputs : (0, _storm_software_workspace_tools_utils_nx_json.withNamedInputs)([...targetInputs, artifactsFolder], options?.lint?.inputs ? [options.lint.inputs] : ["linting", "typescript"]),
|
|
1138
1243
|
outputs: options?.lint?.outputs ?? ["{options.outputPath}"],
|
|
1139
1244
|
executor: options?.lint?.executor || `@${framework}/nx:${options?.lint?.targetName || "lint"}`,
|
|
1140
|
-
dependsOn: options?.lint?.dependsOn ?? [`^${options?.lint?.targetName || "lint"}`, userConfig.skipCache ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
|
|
1245
|
+
dependsOn: options?.lint?.dependsOn ?? [`^${options?.lint?.targetName || "lint"}`, userConfig.skipCache || isDevelopment ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
|
|
1141
1246
|
defaultConfiguration: options?.lint?.defaultConfiguration || "production",
|
|
1142
1247
|
options: {
|
|
1143
1248
|
projectType: projectConfig.projectType,
|
|
@@ -1161,7 +1266,7 @@ function createNxPlugin(opts) {
|
|
|
1161
1266
|
dependsOn: options?.docs?.dependsOn ?? [
|
|
1162
1267
|
`^${options?.docs?.targetName || "docs"}`,
|
|
1163
1268
|
options?.build !== false && `${options?.build?.targetName || "build"}`,
|
|
1164
|
-
userConfig.skipCache ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
1269
|
+
userConfig.skipCache || isDevelopment ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
1165
1270
|
].filter(Boolean),
|
|
1166
1271
|
defaultConfiguration: options?.docs?.defaultConfiguration || "production",
|
|
1167
1272
|
options: {
|
|
@@ -1186,7 +1291,7 @@ function createNxPlugin(opts) {
|
|
|
1186
1291
|
dependsOn: options?.deploy?.dependsOn ?? [
|
|
1187
1292
|
`^${options?.deploy?.targetName || "deploy"}`,
|
|
1188
1293
|
options?.build !== false && `${options?.build?.targetName || "build"}`,
|
|
1189
|
-
userConfig.skipCache ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
1294
|
+
userConfig.skipCache || isDevelopment ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
1190
1295
|
].filter(Boolean),
|
|
1191
1296
|
defaultConfiguration: options?.deploy?.defaultConfiguration || "production",
|
|
1192
1297
|
options: {
|