@nu-art/build-and-install 0.204.97 → 0.204.98
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-runner/PhaseRunner.js +2 -0
- package/v2/unit/core/Unit_TypescriptLib.js +1 -1
- package/v2/unit/firebase-units/Unit_FirebaseFunctionsApp.d.ts +1 -0
- package/v2/unit/firebase-units/Unit_FirebaseFunctionsApp.js +6 -0
- package/v2/unit/firebase-units/Unit_FirebaseHostingApp.js +1 -1
package/package.json
CHANGED
|
@@ -397,6 +397,7 @@ class PhaseRunner extends core_1.BaseUnit {
|
|
|
397
397
|
await this.executeImpl();
|
|
398
398
|
this.killed = true;
|
|
399
399
|
this.logInfo('Completed successfully');
|
|
400
|
+
ts_common_1.StaticLogger.logInfo('-----------', '---------------------------------- Process Completed successfully ----------------------------------');
|
|
400
401
|
if (params_1.RuntimeParams.closeOnExit)
|
|
401
402
|
process.exit(0);
|
|
402
403
|
}
|
|
@@ -461,6 +462,7 @@ class PhaseRunner extends core_1.BaseUnit {
|
|
|
461
462
|
this.logDebug('Runner Params:', RunnerParams_1.MemKey_RunnerParams.get());
|
|
462
463
|
this.logDebug('Project Config:', RunnerParams_1.MemKey_ProjectConfig.get());
|
|
463
464
|
this.logDebug('Default File Routes:', consts_1.MemKey_DefaultFiles.get());
|
|
465
|
+
this.logDebug('Filtered Units:', this.units.map(unit => unit.config.label));
|
|
464
466
|
const dependencyTree = this.unitDependencyTree.map(row => row.map(unit => unit.config.label));
|
|
465
467
|
this.logInfo('Unit Dependencies Tree:', dependencyTree);
|
|
466
468
|
}
|
|
@@ -51,7 +51,6 @@ class Unit_TypescriptLib extends Unit_Typescript_1.Unit_Typescript {
|
|
|
51
51
|
constructor(config) {
|
|
52
52
|
super(config);
|
|
53
53
|
this.addToClassStack(Unit_TypescriptLib);
|
|
54
|
-
runner_dispatchers_1.dispatcher_WatchEvent.addListener(this);
|
|
55
54
|
}
|
|
56
55
|
async __onWatchEvent(type, path) {
|
|
57
56
|
if (type === consts_2.WatchEvent_Ready)
|
|
@@ -63,6 +62,7 @@ class Unit_TypescriptLib extends Unit_Typescript_1.Unit_Typescript {
|
|
|
63
62
|
}
|
|
64
63
|
async init(setInitialized = true) {
|
|
65
64
|
await super.init(false);
|
|
65
|
+
runner_dispatchers_1.dispatcher_WatchEvent.addListener(this);
|
|
66
66
|
this.runtime.pathTo.output = this.runtime.pathTo.pkg + `/${this.config.output}`;
|
|
67
67
|
if (setInitialized)
|
|
68
68
|
this.setStatus('Initialized');
|
|
@@ -11,6 +11,7 @@ export declare class Unit_FirebaseFunctionsApp<C extends Unit_FirebaseFunctionsA
|
|
|
11
11
|
static staggerCount: number;
|
|
12
12
|
__onUnitWatchCompiled(unit: BaseUnit): Promise<void>;
|
|
13
13
|
constructor(config: Unit_FirebaseFunctionsApp<C>['config']);
|
|
14
|
+
protected init(setInitialized?: boolean): Promise<void>;
|
|
14
15
|
resolveConfigs(): Promise<void>;
|
|
15
16
|
compile(): Promise<void>;
|
|
16
17
|
launch(): Promise<void>;
|
|
@@ -32,8 +32,14 @@ class Unit_FirebaseFunctionsApp extends core_1.Unit_TypescriptLib {
|
|
|
32
32
|
constructor(config) {
|
|
33
33
|
super(config);
|
|
34
34
|
this.addToClassStack(Unit_FirebaseFunctionsApp);
|
|
35
|
+
}
|
|
36
|
+
async init(setInitialized = true) {
|
|
37
|
+
await super.init(false);
|
|
38
|
+
// only sign on listeners when the unit is being initialized
|
|
35
39
|
runner_dispatchers_1.dispatcher_WatchEvent.removeListener(this);
|
|
36
40
|
runner_dispatchers_1.dispatcher_UnitWatchCompile.addListener(this);
|
|
41
|
+
if (setInitialized)
|
|
42
|
+
this.setStatus('Initialized');
|
|
37
43
|
}
|
|
38
44
|
//######################### Phase Implementations #########################
|
|
39
45
|
async resolveConfigs() {
|
|
@@ -16,10 +16,10 @@ class Unit_FirebaseHostingApp extends core_1.Unit_TypescriptLib {
|
|
|
16
16
|
constructor(config) {
|
|
17
17
|
super(config);
|
|
18
18
|
this.addToClassStack(Unit_FirebaseHostingApp);
|
|
19
|
-
runner_dispatchers_1.dispatcher_WatchEvent.removeListener(this);
|
|
20
19
|
}
|
|
21
20
|
async init(setInitialized = true) {
|
|
22
21
|
await super.init(setInitialized);
|
|
22
|
+
runner_dispatchers_1.dispatcher_WatchEvent.removeListener(this);
|
|
23
23
|
if (!this.config.firebaseConfig.hostingPort)
|
|
24
24
|
throw new ts_common_1.BadImplementationException(`Unit ${this.config.label} missing hosting port in firebaseConfig`);
|
|
25
25
|
}
|