@nu-art/build-and-install 0.204.86 → 0.204.87
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/package.json +1 -1
- package/v2/phase/consts.js +2 -2
- package/v2/screens/BAIScreenManager.js +5 -12
package/package.json
CHANGED
package/v2/phase/consts.js
CHANGED
|
@@ -133,7 +133,7 @@ exports.phase_DeployFrontend = {
|
|
|
133
133
|
name: 'Deploy Frontend',
|
|
134
134
|
method: 'deployFrontend',
|
|
135
135
|
filter: () => !!params_1.RuntimeParams.deployFrontend,
|
|
136
|
-
dependencyPhaseKeys: [exports.
|
|
136
|
+
dependencyPhaseKeys: [exports.phaseKey_Compile],
|
|
137
137
|
};
|
|
138
138
|
exports.phaseKey_DeployBackend = 'deploy-backend';
|
|
139
139
|
exports.phase_DeployBackend = {
|
|
@@ -141,6 +141,6 @@ exports.phase_DeployBackend = {
|
|
|
141
141
|
name: 'Deploy Backend',
|
|
142
142
|
method: 'deployBackend',
|
|
143
143
|
filter: () => !!params_1.RuntimeParams.deployBackend,
|
|
144
|
-
dependencyPhaseKeys: [exports.
|
|
144
|
+
dependencyPhaseKeys: [exports.phaseKey_Compile],
|
|
145
145
|
};
|
|
146
146
|
exports.phases_Deploy = [exports.phase_DeployFrontend, exports.phase_DeployBackend];
|
|
@@ -36,19 +36,12 @@ class BAIScreenManager {
|
|
|
36
36
|
return this.screens.find(screenOption => {
|
|
37
37
|
if (screenOption.conditions.condition && !screenOption.conditions.condition())
|
|
38
38
|
return false;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const index = phases.indexOf(screenOption.conditions.stopOnPhase);
|
|
42
|
-
if (currentPhaseIndex >= index)
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
39
|
+
const startPhaseIndex = screenOption.conditions.startOnPhase ? phases.indexOf(screenOption.conditions.startOnPhase) : phases.length;
|
|
40
|
+
const stopPhaseIndex = screenOption.conditions.stopOnPhase ? phases.indexOf(screenOption.conditions.stopOnPhase) : phases.length;
|
|
45
41
|
//Fail fast if current phase is before the startOnPhase
|
|
46
|
-
if (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
return true;
|
|
42
|
+
if (currentPhaseIndex >= startPhaseIndex && currentPhaseIndex < stopPhaseIndex)
|
|
43
|
+
return true;
|
|
44
|
+
return false;
|
|
52
45
|
});
|
|
53
46
|
}
|
|
54
47
|
reAssignScreen() {
|