@nu-art/build-and-install 0.204.67 → 0.204.68
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.js +11 -26
- package/core/package/generate.js +5 -3
- package/core/params/params.d.ts +3 -2
- package/core/params/params.js +16 -4
- package/defaults/consts.d.ts +11 -23
- package/defaults/consts.js +7 -7
- package/package.json +1 -1
- package/phases/phases.js +7 -3
- package/screen/ProjectScreen.js +0 -1
- package/v2/phase/consts.d.ts +53 -0
- package/v2/phase/consts.js +146 -0
- package/v2/phase/index.d.ts +2 -0
- package/v2/phase/index.js +18 -0
- package/v2/phase/types.d.ts +9 -0
- package/v2/phase/types.js +2 -0
- package/v2/phase-runner/PhaseRunner.d.ts +69 -13
- package/v2/phase-runner/PhaseRunner.js +392 -32
- package/v2/phase-runner/PhaseRunnerDispatcher.d.ts +25 -0
- package/v2/phase-runner/PhaseRunnerDispatcher.js +26 -0
- package/v2/phase-runner/RunnerParams.d.ts +12 -0
- package/v2/phase-runner/RunnerParams.js +9 -0
- package/v2/phase-runner/consts.d.ts +7 -0
- package/v2/phase-runner/consts.js +9 -0
- package/v2/phase-runner/types.d.ts +6 -9
- package/v2/phase-runner/types.js +4 -0
- package/v2/project/types.d.ts +8 -0
- package/v2/project/types.js +2 -0
- package/v2/screens/list-screen.d.ts +47 -0
- package/v2/screens/list-screen.js +196 -0
- package/v2/unit/core/BaseUnit.d.ts +18 -7
- package/v2/unit/core/BaseUnit.js +35 -10
- package/v2/unit/core/Unit_Python.d.ts +18 -2
- package/v2/unit/core/Unit_Python.js +30 -1
- package/v2/unit/core/Unit_Typescript.d.ts +15 -13
- package/v2/unit/core/Unit_Typescript.js +40 -36
- package/v2/unit/core/Unit_TypescriptLib.d.ts +27 -3
- package/v2/unit/core/Unit_TypescriptLib.js +98 -4
- package/v2/unit/core/Unit_TypescriptProject.d.ts +11 -2
- package/v2/unit/core/Unit_TypescriptProject.js +29 -0
- package/v2/unit/core/index.d.ts +2 -1
- package/v2/unit/core/index.js +2 -1
- package/v2/unit/firebase-units/Unit_FirebaseFunctionsApp.d.ts +40 -0
- package/v2/unit/firebase-units/Unit_FirebaseFunctionsApp.js +312 -0
- package/v2/unit/firebase-units/Unit_FirebaseHostingApp.d.ts +32 -0
- package/v2/unit/firebase-units/Unit_FirebaseHostingApp.js +159 -0
- package/v2/unit/firebase-units/index.d.ts +2 -0
- package/v2/unit/firebase-units/index.js +18 -0
- package/v2/unit/thunderstorm.d.ts +291 -0
- package/v2/unit/thunderstorm.js +199 -0
- package/v2/unit/types.d.ts +7 -0
- package/v2/unit/types.js +2 -0
- package/v2/BasePackage.d.ts +0 -4
- package/v2/BasePackage.js +0 -9
- package/v2/ProjectManagerV2.d.ts +0 -8
- package/v2/ProjectManagerV2.js +0 -23
- package/v2/test/test.d.ts +0 -14
- package/v2/test/test.js +0 -85
- package/v2/unit/core/types.d.ts +0 -13
- package/v2/unit/core/types.js +0 -23
package/v2/ProjectManagerV2.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Phase, PhasesImplementor } from "./phase-runner/types";
|
|
2
|
-
export declare class ProjectManagerV2<Phases extends Phase<string>[]> {
|
|
3
|
-
private manageables;
|
|
4
|
-
phases: Phase<string>[];
|
|
5
|
-
constructor(...phases: Phases);
|
|
6
|
-
register(item: PhasesImplementor<Phases>): this;
|
|
7
|
-
execute(): Promise<void>;
|
|
8
|
-
}
|
package/v2/ProjectManagerV2.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectManagerV2 = void 0;
|
|
4
|
-
class ProjectManagerV2 {
|
|
5
|
-
constructor(...phases) {
|
|
6
|
-
this.manageables = [];
|
|
7
|
-
this.phases = [];
|
|
8
|
-
this.phases = phases;
|
|
9
|
-
}
|
|
10
|
-
register(item) {
|
|
11
|
-
this.manageables.push(item);
|
|
12
|
-
return this;
|
|
13
|
-
}
|
|
14
|
-
async execute() {
|
|
15
|
-
var _a;
|
|
16
|
-
for (const phase of this.phases) {
|
|
17
|
-
for (const manageable of this.manageables) {
|
|
18
|
-
await ((_a = manageable[phase.method]) === null || _a === void 0 ? void 0 : _a.call(manageable));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.ProjectManagerV2 = ProjectManagerV2;
|
package/v2/test/test.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BasePackage } from '../BasePackage';
|
|
2
|
-
import { Phase, PhaseImplementor } from '../phase-runner/types';
|
|
3
|
-
declare const Phase_I: Phase<'install'>;
|
|
4
|
-
declare const Phase_C: Phase<'copyPackageJson'>;
|
|
5
|
-
export declare abstract class Package_Python extends BasePackage implements PhaseImplementor<[typeof Phase_I]> {
|
|
6
|
-
install(): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
declare abstract class Package_Typescript extends BasePackage implements PhaseImplementor<[typeof Phase_C]> {
|
|
9
|
-
copyPackageJson(): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export declare class Package_Root extends Package_Typescript {
|
|
12
|
-
constructor(name: string);
|
|
13
|
-
}
|
|
14
|
-
export {};
|
package/v2/test/test.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Package_Root = exports.Package_Python = void 0;
|
|
4
|
-
const BasePackage_1 = require("../BasePackage");
|
|
5
|
-
const params_1 = require("../../core/params/params");
|
|
6
|
-
const cli_1 = require("@nu-art/commando/core/cli");
|
|
7
|
-
const ProjectManagerV2_1 = require("../ProjectManagerV2");
|
|
8
|
-
const Phase_A = {
|
|
9
|
-
name: 'Compile',
|
|
10
|
-
method: 'compile',
|
|
11
|
-
filter: async () => !params_1.RuntimeParams.noBuild
|
|
12
|
-
};
|
|
13
|
-
const Phase_I = {
|
|
14
|
-
name: 'Compile',
|
|
15
|
-
method: 'install',
|
|
16
|
-
filter: async () => params_1.RuntimeParams.install
|
|
17
|
-
};
|
|
18
|
-
const Phase_C = {
|
|
19
|
-
name: 'Copy Package Json',
|
|
20
|
-
method: 'copyPackageJson',
|
|
21
|
-
};
|
|
22
|
-
const Phase_B = {
|
|
23
|
-
name: 'Launch',
|
|
24
|
-
method: 'launch'
|
|
25
|
-
};
|
|
26
|
-
const AllPhases = [
|
|
27
|
-
Phase_A,
|
|
28
|
-
Phase_B,
|
|
29
|
-
];
|
|
30
|
-
class Package_Python extends BasePackage_1.BasePackage {
|
|
31
|
-
async install() {
|
|
32
|
-
await cli_1.Commando.create().append('pip install -r requirements.txt').execute();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.Package_Python = Package_Python;
|
|
36
|
-
class Package_Typescript extends BasePackage_1.BasePackage {
|
|
37
|
-
async copyPackageJson() {
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
class Package_Root extends Package_Typescript {
|
|
41
|
-
constructor(name) {
|
|
42
|
-
super(name);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.Package_Root = Package_Root;
|
|
46
|
-
class Package_Lib extends Package_Typescript {
|
|
47
|
-
constructor(name) {
|
|
48
|
-
super(name);
|
|
49
|
-
this.compile = async () => {
|
|
50
|
-
// compile fe custom to fe
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
class Package_FirebaseHosting extends Package_Typescript {
|
|
55
|
-
constructor(name) {
|
|
56
|
-
super(name);
|
|
57
|
-
this.launch = async () => {
|
|
58
|
-
// launch FE
|
|
59
|
-
};
|
|
60
|
-
this.compile = async () => {
|
|
61
|
-
// compile fe custom to fe
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
class Package_FirebaseFunction extends Package_Typescript {
|
|
66
|
-
constructor(name) {
|
|
67
|
-
super(name);
|
|
68
|
-
this.launch = async () => {
|
|
69
|
-
// launch BE
|
|
70
|
-
};
|
|
71
|
-
this.compile = async () => {
|
|
72
|
-
// compile fe custom to fe
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
const item1 = new Package_FirebaseHosting('item-1');
|
|
77
|
-
const item2 = new Package_Lib('item-2');
|
|
78
|
-
const item3 = new Package_FirebaseFunction('item-3');
|
|
79
|
-
new ProjectManagerV2_1.ProjectManagerV2(...AllPhases)
|
|
80
|
-
.register(item1)
|
|
81
|
-
.register(item2)
|
|
82
|
-
.register(item3)
|
|
83
|
-
.execute()
|
|
84
|
-
.then(() => console.log('completed'))
|
|
85
|
-
.catch((e) => console.error(e));
|
package/v2/unit/core/types.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AsyncVoidFunction } from '@nu-art/ts-common';
|
|
2
|
-
import { Phase } from '../../phase-runner/types';
|
|
3
|
-
export type UnitPhaseImplementor<P extends Phase<string>[]> = {
|
|
4
|
-
[K in P[number]['method']]: AsyncVoidFunction;
|
|
5
|
-
};
|
|
6
|
-
export type Phase_Install = typeof phase_Install;
|
|
7
|
-
export declare const phase_Install: Phase<'install'>;
|
|
8
|
-
export type Phase_CopyPackageJSON = typeof phase_CopyPackageJSON;
|
|
9
|
-
export declare const phase_CopyPackageJSON: Phase<'copyPackageJson'>;
|
|
10
|
-
export type Phase_PreCompile = typeof phase_PreCompile;
|
|
11
|
-
export declare const phase_PreCompile: Phase<'preCompile'>;
|
|
12
|
-
export type Phase_Compile = typeof phase_Compile;
|
|
13
|
-
export declare const phase_Compile: Phase<'compile'>;
|
package/v2/unit/core/types.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.phase_Compile = exports.phase_PreCompile = exports.phase_CopyPackageJSON = exports.phase_Install = void 0;
|
|
4
|
-
const params_1 = require("../../../core/params/params");
|
|
5
|
-
exports.phase_Install = {
|
|
6
|
-
name: 'Install',
|
|
7
|
-
method: 'install',
|
|
8
|
-
filter: () => params_1.RuntimeParams.install,
|
|
9
|
-
};
|
|
10
|
-
exports.phase_CopyPackageJSON = {
|
|
11
|
-
name: 'Copy Package JSON',
|
|
12
|
-
method: 'copyPackageJson',
|
|
13
|
-
};
|
|
14
|
-
exports.phase_PreCompile = {
|
|
15
|
-
name: 'Pre Compile',
|
|
16
|
-
method: 'preCompile',
|
|
17
|
-
filter: () => !params_1.RuntimeParams.noBuild,
|
|
18
|
-
};
|
|
19
|
-
exports.phase_Compile = {
|
|
20
|
-
name: 'Compile',
|
|
21
|
-
method: 'compile',
|
|
22
|
-
filter: () => !params_1.RuntimeParams.noBuild,
|
|
23
|
-
};
|