@nu-art/build-and-install 0.300.8 → 0.400.1
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/build-and-install-v3.d.ts +29 -0
- package/build-and-install-v3.js +132 -0
- package/build-and-install-v3.js.map +1 -0
- package/build-and-install.js +18 -24
- package/build-and-install.js.map +1 -0
- package/core/consts.d.ts +7 -2
- package/core/consts.js +12 -9
- package/core/consts.js.map +1 -0
- package/core/exceptions/PhaseAggregatedException.d.ts +5 -0
- package/core/exceptions/PhaseAggregatedException.js +9 -0
- package/core/exceptions/PhaseAggregatedException.js.map +1 -0
- package/core/package/consts.d.ts +1 -1
- package/core/package/consts.js +7 -9
- package/core/package/consts.js.map +1 -0
- package/core/params/params.d.ts +18 -19
- package/core/params/params.js +142 -178
- package/core/params/params.js.map +1 -0
- package/core/types/configs/firebasejson.js +2 -2
- package/core/types/configs/firebasejson.js.map +1 -0
- package/core/types/configs/firebaserc.js +2 -2
- package/core/types/configs/firebaserc.js.map +1 -0
- package/core/types/configs/index.d.ts +3 -3
- package/core/types/configs/index.js +4 -19
- package/core/types/configs/index.js.map +1 -0
- package/core/types/configs/package-json.d.ts +2 -1
- package/core/types/configs/package-json.js +2 -2
- package/core/types/configs/package-json.js.map +1 -0
- package/core/types/core.js +2 -2
- package/core/types/core.js.map +1 -0
- package/core/types/index.d.ts +4 -4
- package/core/types/index.js +5 -20
- package/core/types/index.js.map +1 -0
- package/core/types/package/index.d.ts +2 -2
- package/core/types/package/index.js +3 -18
- package/core/types/package/index.js.map +1 -0
- package/core/types/package/package.d.ts +10 -14
- package/core/types/package/package.js +15 -12
- package/core/types/package/package.js.map +1 -0
- package/core/types/package/runtime-package.d.ts +2 -2
- package/core/types/package/runtime-package.js +2 -2
- package/core/types/package/runtime-package.js.map +1 -0
- package/core/types/project-config.d.ts +31 -2
- package/core/types/project-config.js +2 -2
- package/core/types/project-config.js.map +1 -0
- package/defaults/backend-proxy/proxy._ts +3 -1
- package/defaults/consts.d.ts +0 -7
- package/defaults/consts.js +10 -10
- package/defaults/consts.js.map +1 -0
- package/{v2/phase-runner → old}/PhaseRunnerDispatcher.d.ts +4 -4
- package/old/PhaseRunnerDispatcher.js +33 -0
- package/old/PhaseRunnerDispatcher.js.map +1 -0
- package/{v2/unit → old}/runner-dispatchers.d.ts +3 -3
- package/old/runner-dispatchers.js +4 -0
- package/old/runner-dispatchers.js.map +1 -0
- package/package.json +20 -15
- package/v3/PhaseManager.d.ts +26 -0
- package/v3/PhaseManager.js +144 -0
- package/v3/PhaseManager.js.map +1 -0
- package/v3/RunningStatusHandler.d.ts +16 -0
- package/v3/RunningStatusHandler.js +57 -0
- package/v3/RunningStatusHandler.js.map +1 -0
- package/v3/UnitsDependencyMapper/UnitsDependencyMapper.d.ts +52 -0
- package/v3/UnitsDependencyMapper/UnitsDependencyMapper.js +287 -0
- package/v3/UnitsDependencyMapper/UnitsDependencyMapper.js.map +1 -0
- package/v3/UnitsMapper/UnitsMapper.d.ts +21 -0
- package/v3/UnitsMapper/UnitsMapper.js +60 -0
- package/v3/UnitsMapper/UnitsMapper.js.map +1 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_Base.d.ts +23 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_Base.js +17 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_Base.js.map +1 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseFunction.d.ts +62 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseFunction.js +56 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseFunction.js.map +1 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseHosting.d.ts +38 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseHosting.js +49 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseHosting.js.map +1 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_Node.d.ts +30 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_Node.js +59 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_Node.js.map +1 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_NodeLib.d.ts +25 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_NodeLib.js +29 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_NodeLib.js.map +1 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_NodeProject.d.ts +24 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_NodeProject.js +23 -0
- package/v3/UnitsMapper/resolvers/UnitMapper_NodeProject.js.map +1 -0
- package/v3/UnitsMapper/resolvers/index.d.ts +4 -0
- package/v3/UnitsMapper/resolvers/index.js +5 -0
- package/v3/UnitsMapper/resolvers/index.js.map +1 -0
- package/v3/UnitsMapper/types.d.ts +25 -0
- package/v3/UnitsMapper/types.js +2 -0
- package/v3/UnitsMapper/types.js.map +1 -0
- package/v3/core/FileSystemUtils.d.ts +34 -0
- package/v3/core/FileSystemUtils.js +152 -0
- package/v3/core/FileSystemUtils.js.map +1 -0
- package/v3/core/FilesCache.d.ts +7 -0
- package/v3/core/FilesCache.js +34 -0
- package/v3/core/FilesCache.js.map +1 -0
- package/v3/core/Unit_HelpPrinter.d.ts +16 -0
- package/v3/core/Unit_HelpPrinter.js +48 -0
- package/v3/core/Unit_HelpPrinter.js.map +1 -0
- package/v3/core/types.d.ts +17 -0
- package/v3/core/types.js +6 -0
- package/v3/core/types.js.map +1 -0
- package/v3/phase/consts.d.ts +52 -0
- package/v3/phase/consts.js +127 -0
- package/v3/phase/consts.js.map +1 -0
- package/v3/phase/index.d.ts +2 -0
- package/v3/phase/index.js +3 -0
- package/v3/phase/index.js.map +1 -0
- package/v3/phase/types.d.ts +9 -0
- package/v3/phase/types.js +2 -0
- package/v3/phase/types.js.map +1 -0
- package/v3/units/BaseUnit.d.ts +46 -0
- package/v3/units/BaseUnit.js +120 -0
- package/v3/units/BaseUnit.js.map +1 -0
- package/v3/units/ProjectUnit.d.ts +18 -0
- package/v3/units/ProjectUnit.js +12 -0
- package/v3/units/ProjectUnit.js.map +1 -0
- package/v3/units/Unit_NodeProject.d.ts +30 -0
- package/v3/units/Unit_NodeProject.js +244 -0
- package/v3/units/Unit_NodeProject.js.map +1 -0
- package/v3/units/Unit_PackageJson.d.ts +18 -0
- package/v3/units/Unit_PackageJson.js +51 -0
- package/v3/units/Unit_PackageJson.js.map +1 -0
- package/v3/units/Unit_TypescriptLib.d.ts +45 -0
- package/v3/units/Unit_TypescriptLib.js +377 -0
- package/v3/units/Unit_TypescriptLib.js.map +1 -0
- package/v3/units/firebase/Unit_FirebaseFunctionsApp.d.ts +60 -0
- package/v3/units/firebase/Unit_FirebaseFunctionsApp.js +281 -0
- package/v3/units/firebase/Unit_FirebaseFunctionsApp.js.map +1 -0
- package/v3/units/firebase/Unit_FirebaseHostingApp.d.ts +49 -0
- package/v3/units/firebase/Unit_FirebaseHostingApp.js +100 -0
- package/v3/units/firebase/Unit_FirebaseHostingApp.js.map +1 -0
- package/v3/units/index.d.ts +5 -0
- package/v3/units/index.js +6 -0
- package/v3/units/index.js.map +1 -0
- package/core/params/types.d.ts +0 -51
- package/core/params/types.js +0 -2
- package/tsconfig.json +0 -23
- package/v2/phase/consts.d.ts +0 -53
- package/v2/phase/consts.js +0 -151
- package/v2/phase/index.d.ts +0 -2
- package/v2/phase/index.js +0 -18
- package/v2/phase/types.d.ts +0 -12
- package/v2/phase/types.js +0 -2
- package/v2/phase-runner/PhaseRunner.d.ts +0 -69
- package/v2/phase-runner/PhaseRunner.js +0 -472
- package/v2/phase-runner/PhaseRunnerDispatcher.js +0 -37
- package/v2/phase-runner/RunnerParams.d.ts +0 -12
- package/v2/phase-runner/RunnerParams.js +0 -9
- package/v2/phase-runner/consts.d.ts +0 -7
- package/v2/phase-runner/consts.js +0 -9
- package/v2/phase-runner/kaki.d.ts +0 -0
- package/v2/phase-runner/kaki.js +0 -1
- package/v2/phase-runner/types.d.ts +0 -13
- package/v2/phase-runner/types.js +0 -6
- package/v2/project/types.d.ts +0 -8
- package/v2/project/types.js +0 -2
- package/v2/screens/BAIScreen.d.ts +0 -22
- package/v2/screens/BAIScreen.js +0 -82
- package/v2/screens/BAIScreenManager.d.ts +0 -28
- package/v2/screens/BAIScreenManager.js +0 -77
- package/v2/screens/BAIScreen_Launch.d.ts +0 -28
- package/v2/screens/BAIScreen_Launch.js +0 -173
- package/v2/screens/BAIScreen_UnitList.d.ts +0 -36
- package/v2/screens/BAIScreen_UnitList.js +0 -203
- package/v2/unit/consts.d.ts +0 -6
- package/v2/unit/consts.js +0 -8
- package/v2/unit/core/BaseUnit.d.ts +0 -39
- package/v2/unit/core/BaseUnit.js +0 -138
- package/v2/unit/core/Unit_Python.d.ts +0 -16
- package/v2/unit/core/Unit_Python.js +0 -26
- package/v2/unit/core/Unit_Typescript.d.ts +0 -49
- package/v2/unit/core/Unit_Typescript.js +0 -143
- package/v2/unit/core/Unit_TypescriptLib.d.ts +0 -48
- package/v2/unit/core/Unit_TypescriptLib.js +0 -226
- package/v2/unit/core/Unit_TypescriptProject.d.ts +0 -31
- package/v2/unit/core/Unit_TypescriptProject.js +0 -194
- package/v2/unit/core/index.d.ts +0 -5
- package/v2/unit/core/index.js +0 -21
- package/v2/unit/firebase-units/Unit_FirebaseFunctionsApp.d.ts +0 -35
- package/v2/unit/firebase-units/Unit_FirebaseFunctionsApp.js +0 -309
- package/v2/unit/firebase-units/Unit_FirebaseHostingApp.d.ts +0 -24
- package/v2/unit/firebase-units/Unit_FirebaseHostingApp.js +0 -138
- package/v2/unit/firebase-units/consts.d.ts +0 -2
- package/v2/unit/firebase-units/consts.js +0 -9
- package/v2/unit/firebase-units/index.d.ts +0 -2
- package/v2/unit/firebase-units/index.js +0 -18
- package/v2/unit/runner-dispatchers.js +0 -6
- package/v2/unit/thunderstorm.d.ts +0 -171
- package/v2/unit/thunderstorm.js +0 -199
- package/v2/unit/tools/tools.d.ts +0 -2
- package/v2/unit/tools/tools.js +0 -15
- package/v2/unit/types.d.ts +0 -8
- package/v2/unit/types.js +0 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Logger } from '@nu-art/ts-common';
|
|
2
|
+
import { BaiParams } from './core/params/params.js';
|
|
3
|
+
import { Phase } from './v3/phase/index.js';
|
|
4
|
+
import { ProjectUnit } from './v3/units/ProjectUnit.js';
|
|
5
|
+
import { Unit_NodeProject } from './v3/units/index.js';
|
|
6
|
+
import { BaseCliParam } from '@nu-art/commando/cli-params/types';
|
|
7
|
+
import { RunningStatusHandler } from './v3/RunningStatusHandler.js';
|
|
8
|
+
export declare const DefaultPhases: Phase<string>[][];
|
|
9
|
+
type BAI_Options = {
|
|
10
|
+
pathToProject: string;
|
|
11
|
+
runtimeParams: BaseCliParam<string, any>[];
|
|
12
|
+
};
|
|
13
|
+
export declare class BuildAndInstall extends Logger {
|
|
14
|
+
private phases;
|
|
15
|
+
private pathToProject;
|
|
16
|
+
private allUnits;
|
|
17
|
+
readonly nodeProjectUnit: Unit_NodeProject;
|
|
18
|
+
readonly runtimeParams: BaiParams;
|
|
19
|
+
readonly projectUnits: ProjectUnit[];
|
|
20
|
+
private unitsDependencyMapper;
|
|
21
|
+
readonly runningStatus: RunningStatusHandler;
|
|
22
|
+
constructor(config?: Partial<BAI_Options>);
|
|
23
|
+
init(): Promise<void>;
|
|
24
|
+
setApplicativeUnits(projectUnits: ProjectUnit[]): void;
|
|
25
|
+
setPhases(phases: Phase<string>[][]): void;
|
|
26
|
+
build(): Promise<ProjectUnit<import("./v3/units/ProjectUnit.js").Config_ProjectUnit>[]>;
|
|
27
|
+
run(): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { _keys, arrayToMap, BeLogged, DebugFlag, filterDuplicates, LogClient_Terminal, Logger, LogLevel, merge } from '@nu-art/ts-common';
|
|
2
|
+
import { AllBaiParams } from './core/params/params.js';
|
|
3
|
+
import { phases_Build, phases_Deploy, phases_Launch } from './v3/phase/index.js';
|
|
4
|
+
import { UnitsMapper } from './v3/UnitsMapper/UnitsMapper.js';
|
|
5
|
+
import { UnitsDependencyMapper } from './v3/UnitsDependencyMapper/UnitsDependencyMapper.js';
|
|
6
|
+
import { FilesCache } from './v3/core/FilesCache.js';
|
|
7
|
+
import { ProjectUnit } from './v3/units/ProjectUnit.js';
|
|
8
|
+
import { PhaseManager } from './v3/PhaseManager.js';
|
|
9
|
+
import { Unit_NodeProject } from './v3/units/index.js';
|
|
10
|
+
import { resolve } from 'path';
|
|
11
|
+
import { CONST_BaiConfig, CONST_NodeModules } from './core/consts.js';
|
|
12
|
+
import { FileSystemUtils } from './v3/core/FileSystemUtils.js';
|
|
13
|
+
import { UnitMapper_FirebaseFunction, UnitMapper_FirebaseHosting, UnitMapper_NodeLib, UnitMapper_NodeProject } from './v3/UnitsMapper/resolvers/index.js';
|
|
14
|
+
import { CLIParamsResolver } from '@nu-art/commando/cli-params/CLIParamsResolver';
|
|
15
|
+
import { RunningStatusHandler } from './v3/RunningStatusHandler.js';
|
|
16
|
+
export const DefaultPhases = [
|
|
17
|
+
...phases_Build,
|
|
18
|
+
...phases_Launch,
|
|
19
|
+
...phases_Deploy,
|
|
20
|
+
];
|
|
21
|
+
export class BuildAndInstall extends Logger {
|
|
22
|
+
phases = DefaultPhases;
|
|
23
|
+
pathToProject;
|
|
24
|
+
allUnits = [];
|
|
25
|
+
nodeProjectUnit;
|
|
26
|
+
runtimeParams;
|
|
27
|
+
projectUnits = [];
|
|
28
|
+
unitsDependencyMapper;
|
|
29
|
+
runningStatus;
|
|
30
|
+
constructor(config = {}) {
|
|
31
|
+
super();
|
|
32
|
+
const defaultConfig = merge({
|
|
33
|
+
pathToProject: process.env.INIT_CWD ?? process.cwd(),
|
|
34
|
+
}, config);
|
|
35
|
+
defaultConfig.runtimeParams = filterDuplicates([...(config.runtimeParams ?? []), ...AllBaiParams], param => param.keyName);
|
|
36
|
+
this.runtimeParams = CLIParamsResolver.create(...defaultConfig.runtimeParams).resolveParamValue();
|
|
37
|
+
BeLogged.addClient(LogClient_Terminal);
|
|
38
|
+
this.pathToProject = defaultConfig.pathToProject;
|
|
39
|
+
this.runningStatus = new RunningStatusHandler(this.pathToProject, this.runtimeParams);
|
|
40
|
+
}
|
|
41
|
+
async init() {
|
|
42
|
+
await this.runningStatus.init();
|
|
43
|
+
if (this.runtimeParams.debug)
|
|
44
|
+
DebugFlag.DefaultLogLevel = LogLevel.Debug;
|
|
45
|
+
if (this.runtimeParams.verbose)
|
|
46
|
+
DebugFlag.DefaultLogLevel = LogLevel.Verbose;
|
|
47
|
+
this.setMinLevel(DebugFlag.DefaultLogLevel);
|
|
48
|
+
this.logDebug('Runtime params:', this.runtimeParams);
|
|
49
|
+
}
|
|
50
|
+
setApplicativeUnits(projectUnits) {
|
|
51
|
+
this.projectUnits.push(...projectUnits);
|
|
52
|
+
}
|
|
53
|
+
setPhases(phases) {
|
|
54
|
+
this.phases = phases;
|
|
55
|
+
}
|
|
56
|
+
async build() {
|
|
57
|
+
await this.init();
|
|
58
|
+
this.logVerbose(`Resolving units from: ${this.pathToProject}`);
|
|
59
|
+
const unitsMapper = new UnitsMapper();
|
|
60
|
+
this.allUnits = await unitsMapper
|
|
61
|
+
.addRules(UnitMapper_NodeLib)
|
|
62
|
+
.addRules(UnitMapper_NodeProject)
|
|
63
|
+
.addRules(UnitMapper_FirebaseHosting)
|
|
64
|
+
.addRules(UnitMapper_FirebaseFunction)
|
|
65
|
+
.setRuntimeParams(this.runtimeParams)
|
|
66
|
+
.resolveUnits(this.pathToProject);
|
|
67
|
+
Object.freeze(this.allUnits);
|
|
68
|
+
this.logDebug('Units found:', this.allUnits.map(unit => `${unit.constructor?.['name']}: ${unit.config.key}`).join('\n'));
|
|
69
|
+
const unitKeyToUnitMap = arrayToMap(this.allUnits, unit => unit.config.key);
|
|
70
|
+
const allProjectUnits = this.allUnits.filter(unit => unit.isInstanceOf(ProjectUnit));
|
|
71
|
+
const nodeProjectUnit = allProjectUnits.find(unit => unit.isInstanceOf(Unit_NodeProject));
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
this['nodeProjectUnit'] = nodeProjectUnit;
|
|
74
|
+
this.nodeProjectUnit.assignUnit(allProjectUnits);
|
|
75
|
+
this.logDebug(`Parent unit: ${this.nodeProjectUnit.config.key}`);
|
|
76
|
+
this.logDebug(`Child units: ${allProjectUnits.map(unit => unit.config.key).join(', ')}`);
|
|
77
|
+
const pathToBaiConfig = resolve(this.nodeProjectUnit.config.fullPath, CONST_BaiConfig);
|
|
78
|
+
this.logVerbose(`Loading BAI-Config from: ${pathToBaiConfig}`);
|
|
79
|
+
const baiConfig = await FilesCache.load.json(pathToBaiConfig);
|
|
80
|
+
this.logDebug('Loaded BAI-Config', baiConfig);
|
|
81
|
+
this.projectUnits.push(...allProjectUnits);
|
|
82
|
+
Object.freeze(this.projectUnits);
|
|
83
|
+
const unitsDependencies = this.projectUnits.map(unit => ({
|
|
84
|
+
key: unit.config.key,
|
|
85
|
+
dependsOn: _keys(unit.config.dependencies).filter(key => !!unitKeyToUnitMap[key])
|
|
86
|
+
}));
|
|
87
|
+
const globalOutputFolder = resolve(this.pathToProject, '.trash/output');
|
|
88
|
+
this.unitsDependencyMapper = new UnitsDependencyMapper(unitsDependencies, globalOutputFolder);
|
|
89
|
+
const runtimeContext = ({
|
|
90
|
+
version: '',
|
|
91
|
+
parentUnit: this.nodeProjectUnit,
|
|
92
|
+
childUnits: allProjectUnits,
|
|
93
|
+
baiConfig,
|
|
94
|
+
runtimeParams: this.runtimeParams,
|
|
95
|
+
unitsMapper: this.unitsDependencyMapper,
|
|
96
|
+
unitsResolver: (keys, className) => {
|
|
97
|
+
return keys.map(key => unitKeyToUnitMap[key]).filter(unit => unit.isInstanceOf(className));
|
|
98
|
+
},
|
|
99
|
+
globalOutputFolder,
|
|
100
|
+
});
|
|
101
|
+
this.projectUnits.forEach(unit => unit.setupRuntimeContext(runtimeContext));
|
|
102
|
+
if (!(await FileSystemUtils.file.exists(resolve(this.nodeProjectUnit.config.fullPath, CONST_NodeModules)))) {
|
|
103
|
+
this.logInfo(`root project is missing ${CONST_NodeModules} folder. Enabling install...`);
|
|
104
|
+
this.runtimeParams.install = true;
|
|
105
|
+
}
|
|
106
|
+
return allProjectUnits;
|
|
107
|
+
}
|
|
108
|
+
async run() {
|
|
109
|
+
const keyToUnitMap = arrayToMap(this.projectUnits, u => u.config.key);
|
|
110
|
+
const topLevelApps = this.projectUnits.filter(unit => unit.config.isTopLevelApp);
|
|
111
|
+
const topLevelAppKeys = topLevelApps.map(unit => unit.config.key);
|
|
112
|
+
const participatingUnitKeys = this.runtimeParams.allUnits
|
|
113
|
+
? undefined
|
|
114
|
+
: [...this.unitsDependencyMapper.getTransitiveDependencies(topLevelAppKeys), ...topLevelAppKeys];
|
|
115
|
+
const unitDependencyTree = (await this.unitsDependencyMapper.buildDependencyTree(participatingUnitKeys))
|
|
116
|
+
.map(units => units.map(unitKey => keyToUnitMap[unitKey]));
|
|
117
|
+
const phaseManager = new PhaseManager(this.runningStatus, this.phases, unitDependencyTree);
|
|
118
|
+
const executionPlan = await phaseManager.calculateExecutionSteps();
|
|
119
|
+
let killCounter = 0;
|
|
120
|
+
process.on('SIGINT', async () => {
|
|
121
|
+
this.logWarning('\n\n\n---------------------------------- Process Interrupted ----------------------------------\n\n\n');
|
|
122
|
+
await phaseManager.break();
|
|
123
|
+
killCounter++;
|
|
124
|
+
if (killCounter > 5)
|
|
125
|
+
process.exit(1);
|
|
126
|
+
});
|
|
127
|
+
await phaseManager.execute(executionPlan);
|
|
128
|
+
this.logInfo('Completed successfully');
|
|
129
|
+
this.logInfo('---------------------------------- Process Completed successfully ----------------------------------');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=build-and-install-v3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-and-install-v3.js","sourceRoot":"/Users/tacb0ss/dev/nu-art/beamz/_thunderstorm/build-and-install/src/main/","sources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C,CAAC,CAAC;QAEH,MAAM,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAE1C,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,CAAC,sGAAsG,CAAC,CAAC;IACtH,CAAC;CACD"}
|
package/build-and-install.js
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.catch(err => {
|
|
20
|
-
process.on('SIGINT', () => {
|
|
21
|
-
console.log('Failed with error: ', err);
|
|
22
|
-
return process.exit(1);
|
|
23
|
-
});
|
|
24
|
-
});
|
|
1
|
+
import { BuildAndInstall } from './build-and-install-v3.js';
|
|
2
|
+
(async () => {
|
|
3
|
+
const buildAndInstall = new BuildAndInstall();
|
|
4
|
+
await buildAndInstall.build();
|
|
5
|
+
await buildAndInstall.run();
|
|
6
|
+
})()
|
|
7
|
+
.catch(console.error)
|
|
8
|
+
.then(() => process.exit(0));
|
|
9
|
+
// .execute()
|
|
10
|
+
// .then(() => {
|
|
11
|
+
// })
|
|
12
|
+
// .catch(err => {
|
|
13
|
+
// process.on('SIGINT', () => {
|
|
14
|
+
// console.log('Failed with error: ', err);
|
|
15
|
+
// return process.exit(1);
|
|
16
|
+
// });
|
|
17
|
+
// });
|
|
18
|
+
//# sourceMappingURL=build-and-install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-and-install.js","sourceRoot":"/Users/tacb0ss/dev/nu-art/beamz/_thunderstorm/build-and-install/src/main/","sources":["build-and-install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,CAAC,KAAK,IAAI,EAAE;IACX,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;IAC9C,MAAM,eAAe,CAAC,KAAK,EAAE,CAAC;IAC9B,MAAM,eAAe,CAAC,GAAG,EAAE,CAAC;AAC7B,CAAC,CAAC,EAAE;KACF,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;KACpB,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAE9B,aAAa;AACb,iBAAiB;AACjB,MAAM;AACN,mBAAmB;AACnB,iCAAiC;AACjC,8CAA8C;AAC9C,6BAA6B;AAC7B,QAAQ;AACR,OAAO"}
|
package/core/consts.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { MemKey } from '@nu-art/ts-common/mem-storage/
|
|
2
|
-
import { RuntimeProjectConfig } from './types';
|
|
1
|
+
import { MemKey } from '@nu-art/ts-common/mem-storage/index';
|
|
2
|
+
import { RuntimeProjectConfig } from './types/index.js';
|
|
3
3
|
export declare const CONST_PackageJSONTemplate = "__package.json";
|
|
4
4
|
export declare const CONST_PackageJSON = "package.json";
|
|
5
|
+
export declare const CONST_NodeModules = "node_modules";
|
|
6
|
+
export declare const CONST_BaiConfig = "bai-config.json";
|
|
5
7
|
export declare const CONST_FirebaseRC = ".firebaserc";
|
|
6
8
|
export declare const CONST_FirebaseJSON = "firebase.json";
|
|
9
|
+
export declare const CONST_TS_CONFIG = "tsconfig.json";
|
|
10
|
+
export declare const CONST_PNPM_WORKSPACE = "pnpm-workspace.yaml";
|
|
11
|
+
export declare const CONST_PNPM_LOCK = "pnpm-lock.yaml";
|
|
7
12
|
export declare const MemKey_Packages: MemKey<RuntimeProjectConfig>;
|
package/core/consts.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { MemKey } from '@nu-art/ts-common/mem-storage/index';
|
|
2
|
+
export const CONST_PackageJSONTemplate = '__package.json';
|
|
3
|
+
export const CONST_PackageJSON = 'package.json';
|
|
4
|
+
export const CONST_NodeModules = 'node_modules';
|
|
5
|
+
export const CONST_BaiConfig = 'bai-config.json';
|
|
6
|
+
export const CONST_FirebaseRC = '.firebaserc';
|
|
7
|
+
export const CONST_FirebaseJSON = 'firebase.json';
|
|
8
|
+
export const CONST_TS_CONFIG = 'tsconfig.json';
|
|
9
|
+
export const CONST_PNPM_WORKSPACE = 'pnpm-workspace.yaml';
|
|
10
|
+
export const CONST_PNPM_LOCK = 'pnpm-lock.yaml';
|
|
11
|
+
export const MemKey_Packages = new MemKey('bai-packages', true);
|
|
12
|
+
//# sourceMappingURL=consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"/Users/tacb0ss/dev/nu-art/beamz/_thunderstorm/build-and-install/src/main/","sources":["core/consts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,qCAAqC,CAAC;AAI3D,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAChD,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAChD,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AACjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAC9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAClD,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAC/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,qBAAqB,CAAC;AAC1D,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAEhD,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,MAAM,CAAuB,cAAc,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CustomException } from '@nu-art/ts-common';
|
|
2
|
+
export class PhaseAggregatedException extends CustomException {
|
|
3
|
+
constructor(errors, step) {
|
|
4
|
+
super(PhaseAggregatedException, `One or more errors occurred in step execution: ${JSON.stringify(step)}`);
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
this.cause = errors;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=PhaseAggregatedException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhaseAggregatedException.js","sourceRoot":"/Users/tacb0ss/dev/nu-art/beamz/_thunderstorm/build-and-install/src/main/","sources":["core/exceptions/PhaseAggregatedException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAGlD,MAAM,OAAO,wBACZ,SAAQ,eAAe;IAEvB,YAAY,MAAe,EAAE,IAAmB;QAC/C,KAAK,CAAC,wBAAwB,EAAE,kDAAkD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC1G,aAAa;QACb,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;IACrB,CAAC;CACD"}
|
package/core/package/consts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FirebasePackageConfig } from '../types';
|
|
1
|
+
import { FirebasePackageConfig } from '../types/index.js';
|
|
2
2
|
export type DefaultType_ProjectEnvs = 'local' | 'dev' | 'staging' | 'prod';
|
|
3
3
|
export declare const Default_ProjectEnvs: ("local" | "dev" | "staging" | "prod")[];
|
|
4
4
|
export declare const Default_FunctionsIgnoreFiles: string[];
|
package/core/package/consts.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Default_FirebaseProjectConfig = exports.Default_HostingConfig = exports.Default_FunctionsIgnoreFiles = exports.Default_ProjectEnvs = void 0;
|
|
4
1
|
const EnvName_local = 'local';
|
|
5
2
|
const EnvName_dev = 'dev';
|
|
6
3
|
const EnvName_staging = 'staging';
|
|
7
4
|
const EnvName_prod = 'prod';
|
|
8
|
-
|
|
5
|
+
export const Default_ProjectEnvs = [
|
|
9
6
|
EnvName_local,
|
|
10
7
|
EnvName_dev,
|
|
11
8
|
EnvName_staging,
|
|
12
9
|
EnvName_prod,
|
|
13
10
|
];
|
|
14
|
-
|
|
11
|
+
export const Default_FunctionsIgnoreFiles = [
|
|
15
12
|
'src',
|
|
16
13
|
'.config',
|
|
17
14
|
'dist-test',
|
|
@@ -25,7 +22,7 @@ exports.Default_FunctionsIgnoreFiles = [
|
|
|
25
22
|
'firestore-debug.log',
|
|
26
23
|
'firebase-debug.log'
|
|
27
24
|
];
|
|
28
|
-
|
|
25
|
+
export const Default_HostingConfig = {
|
|
29
26
|
public: 'dist',
|
|
30
27
|
rewrites: [
|
|
31
28
|
{
|
|
@@ -34,10 +31,11 @@ exports.Default_HostingConfig = {
|
|
|
34
31
|
}
|
|
35
32
|
]
|
|
36
33
|
};
|
|
37
|
-
|
|
34
|
+
export const Default_FirebaseProjectConfig = {
|
|
38
35
|
pathToFirebaseConfig: '.firebase_config',
|
|
39
36
|
functions: {
|
|
40
|
-
ignore:
|
|
37
|
+
ignore: Default_FunctionsIgnoreFiles,
|
|
41
38
|
},
|
|
42
|
-
hosting:
|
|
39
|
+
hosting: Default_HostingConfig
|
|
43
40
|
};
|
|
41
|
+
//# sourceMappingURL=consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"/Users/tacb0ss/dev/nu-art/beamz/_thunderstorm/build-and-install/src/main/","sources":["core/package/consts.ts"],"names":[],"mappings":"AAKA,MAAM,aAAa,GAAG,OAAgB,CAAC;AACvC,MAAM,WAAW,GAAG,KAAc,CAAC;AACnC,MAAM,eAAe,GAAG,SAAkB,CAAC;AAC3C,MAAM,YAAY,GAAG,MAAe,CAAC;AAErC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAClC,aAAa;IACb,WAAW;IACX,eAAe;IACf,YAAY;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C,KAAK;IACL,SAAS;IACT,WAAW;IACX,WAAW;IACX,cAAc;IACd,mBAAmB;IACnB,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,oBAAoB;IACpB,qBAAqB;IACrB,oBAAoB;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACpC,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE;QACT;YACC,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,aAAa;SAC1B;KACD;CACD,CAAC;AAQF,MAAM,CAAC,MAAM,6BAA6B,GAAiB;IAC1D,oBAAoB,EAAE,kBAAkB;IACxC,SAAS,EAAE;QACV,MAAM,EAAE,4BAA4B;KACpC;IACD,OAAO,EAAE,qBAAqB;CAC9B,CAAC"}
|
package/core/params/params.d.ts
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { BaseCliParam } from '@nu-art/commando/cli-params/types';
|
|
2
|
-
export declare const
|
|
1
|
+
import { BaseCliParam, CliParams } from '@nu-art/commando/cli-params/types';
|
|
2
|
+
export declare const BaiParam_AllUnits: BaseCliParam<'allUnits', boolean>;
|
|
3
3
|
export declare const BaiParam_DependencyTree: BaseCliParam<'dependencyTree', boolean>;
|
|
4
4
|
export declare const BaiParam_CheckCyclicImports: BaseCliParam<'checkCyclicImports', boolean>;
|
|
5
|
-
export declare const BaiParam_PrintEnv: BaseCliParam<'printEnv', boolean>;
|
|
6
5
|
export declare const BaiParam_continue: BaseCliParam<'continue', boolean>;
|
|
7
6
|
export declare const BaiParam_SetEnv: BaseCliParam<'environment', string>;
|
|
8
7
|
export declare const BaiParam_Setup: BaseCliParam<'setup', boolean>;
|
|
9
8
|
export declare const BaiParam_Install: BaseCliParam<'install', boolean>;
|
|
10
|
-
export declare const BaiParam_InstallPackages: BaseCliParam<'installPackages', boolean>;
|
|
11
|
-
export declare const BaiParam_InstallGlobals: BaseCliParam<'installGlobals', boolean>;
|
|
12
9
|
export declare const BaiParam_Clean: BaseCliParam<'clean', boolean>;
|
|
13
10
|
export declare const BaiParam_Purge: BaseCliParam<'purge', boolean>;
|
|
14
11
|
export declare const BaiParam_Generate: BaseCliParam<'generate', boolean>;
|
|
15
12
|
export declare const BaiParam_GenerateDocs: BaseCliParam<'generateDocs', boolean>;
|
|
16
13
|
export declare const BaiParam_NoBuild: BaseCliParam<'noBuild', boolean>;
|
|
14
|
+
export declare const BaiParam_Prepare: BaseCliParam<'prepare', boolean>;
|
|
17
15
|
export declare const BaiParam_DryRun: BaseCliParam<'dryRun', boolean>;
|
|
18
16
|
export declare const BaiParam_RunWithThunderstorm: BaseCliParam<'runWithThunderstorm', boolean>;
|
|
19
17
|
export declare const BaiParam_WithCommando: BaseCliParam<'withCommando', boolean>;
|
|
20
18
|
export declare const BaiParam_NoThunderstorm: BaseCliParam<'noThunderstorm', boolean>;
|
|
21
19
|
export declare const BaiParam_Lint: BaseCliParam<'lint', boolean>;
|
|
22
20
|
export declare const BaiParam_Watch: BaseCliParam<'watch', boolean>;
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const
|
|
25
|
-
export declare const
|
|
26
|
-
export
|
|
21
|
+
export declare const BaiParam_WatchBuildTree: BaseCliParam<'watchBuildTree', boolean>;
|
|
22
|
+
export declare const BaiParam_Test: BaseCliParam<'test', boolean>;
|
|
23
|
+
export declare const TestTypes: string[];
|
|
24
|
+
export type TestType = typeof TestTypes[number];
|
|
25
|
+
export declare const BaiParam_TestType: BaseCliParam<'testType', TestType[]>;
|
|
26
|
+
export declare const BaiParam_TestFile: BaseCliParam<'testFiles', string[]>;
|
|
27
|
+
export declare const BaiParam_TestCase: BaseCliParam<'testCases', string[]>;
|
|
28
|
+
export declare const BaiParam_TestDebugPort: BaseCliParam<'testDebugPort', number>;
|
|
29
|
+
export declare const BaiParam_Launch: BaseCliParam<'launch', boolean>;
|
|
27
30
|
export declare const BaiParam_DebugBackend: BaseCliParam<'debugBackend', boolean>;
|
|
28
31
|
export declare const BaiParam_Deploy: BaseCliParam<'deploy', string>;
|
|
29
|
-
export declare const BaiParam_DeployBackend: BaseCliParam<'deployBackend', string>;
|
|
30
|
-
export declare const BaiParam_DeployFrontend: BaseCliParam<'deployFrontend', string>;
|
|
31
|
-
export declare const BaiParam_NoGit: BaseCliParam<'noGit', boolean>;
|
|
32
32
|
export declare const BaiParam_Debug: BaseCliParam<'debug', boolean>;
|
|
33
33
|
export declare const BaiParam_DebugLifecycle: BaseCliParam<'debugLifecycle', boolean>;
|
|
34
34
|
export declare const BaiParam_Verbose: BaseCliParam<'verbose', boolean>;
|
|
35
35
|
export declare const BaiParam_QuickDeploy: BaseCliParam<'quickDeploy', boolean>;
|
|
36
|
-
|
|
37
|
-
export declare const
|
|
38
|
-
export declare const
|
|
39
|
-
export declare const BaiParam_EncounterManager: BaseCliParam<'encounterManager', boolean>;
|
|
40
|
-
export declare const BaiParam_EncounterManagerListen: BaseCliParam<'encounterManagerListen', boolean>;
|
|
36
|
+
type PromoteType = 'patch' | 'minor' | 'major';
|
|
37
|
+
export declare const BaiParam_Publish: BaseCliParam<'publish', PromoteType>;
|
|
38
|
+
export declare const BaiParam_PublishDryRun: BaseCliParam<'publishDryRun', boolean>;
|
|
41
39
|
export declare const BaiParam_UsePackage: BaseCliParam<'usePackage', string[]>;
|
|
42
|
-
export declare const AllBaiParams: (BaseCliParam<"
|
|
43
|
-
export
|
|
40
|
+
export declare const AllBaiParams: (BaseCliParam<"allUnits", boolean> | BaseCliParam<"dependencyTree", boolean> | BaseCliParam<"checkCyclicImports", boolean> | BaseCliParam<"continue", boolean> | BaseCliParam<"environment", string> | BaseCliParam<"setup", boolean> | BaseCliParam<"install", boolean> | BaseCliParam<"clean", boolean> | BaseCliParam<"purge", boolean> | BaseCliParam<"generate", boolean> | BaseCliParam<"generateDocs", boolean> | BaseCliParam<"noBuild", boolean> | BaseCliParam<"prepare", boolean> | BaseCliParam<"dryRun", boolean> | BaseCliParam<"runWithThunderstorm", boolean> | BaseCliParam<"withCommando", boolean> | BaseCliParam<"noThunderstorm", boolean> | BaseCliParam<"lint", boolean> | BaseCliParam<"watch", boolean> | BaseCliParam<"watchBuildTree", boolean> | BaseCliParam<"test", boolean> | BaseCliParam<"testType", string[]> | BaseCliParam<"testFiles", string[]> | BaseCliParam<"testCases", string[]> | BaseCliParam<"testDebugPort", number> | BaseCliParam<"launch", boolean> | BaseCliParam<"debugBackend", boolean> | BaseCliParam<"deploy", string> | BaseCliParam<"debug", boolean> | BaseCliParam<"debugLifecycle", boolean> | BaseCliParam<"verbose", boolean> | BaseCliParam<"publish", PromoteType> | BaseCliParam<"publishDryRun", boolean> | BaseCliParam<"usePackage", string[]>)[];
|
|
41
|
+
export type BaiParams = CliParams<typeof AllBaiParams>;
|
|
42
|
+
export {};
|