@nu-art/build-and-install 0.204.67 → 0.204.69

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.
Files changed (59) hide show
  1. package/build-and-install.js +11 -26
  2. package/core/package/generate.js +5 -3
  3. package/core/params/params.d.ts +3 -2
  4. package/core/params/params.js +16 -4
  5. package/defaults/consts.d.ts +11 -23
  6. package/defaults/consts.js +7 -7
  7. package/package.json +1 -1
  8. package/phases/phases.js +7 -3
  9. package/screen/ProjectScreen.js +0 -1
  10. package/v2/phase/consts.d.ts +53 -0
  11. package/v2/phase/consts.js +146 -0
  12. package/v2/phase/index.d.ts +2 -0
  13. package/v2/phase/index.js +18 -0
  14. package/v2/phase/types.d.ts +9 -0
  15. package/v2/phase/types.js +2 -0
  16. package/v2/phase-runner/PhaseRunner.d.ts +69 -13
  17. package/v2/phase-runner/PhaseRunner.js +392 -32
  18. package/v2/phase-runner/PhaseRunnerDispatcher.d.ts +25 -0
  19. package/v2/phase-runner/PhaseRunnerDispatcher.js +26 -0
  20. package/v2/phase-runner/RunnerParams.d.ts +12 -0
  21. package/v2/phase-runner/RunnerParams.js +9 -0
  22. package/v2/phase-runner/consts.d.ts +7 -0
  23. package/v2/phase-runner/consts.js +9 -0
  24. package/v2/phase-runner/types.d.ts +6 -9
  25. package/v2/phase-runner/types.js +4 -0
  26. package/v2/project/types.d.ts +8 -0
  27. package/v2/project/types.js +2 -0
  28. package/v2/screens/list-screen.d.ts +47 -0
  29. package/v2/screens/list-screen.js +196 -0
  30. package/v2/unit/core/BaseUnit.d.ts +18 -7
  31. package/v2/unit/core/BaseUnit.js +35 -10
  32. package/v2/unit/core/Unit_Python.d.ts +18 -2
  33. package/v2/unit/core/Unit_Python.js +30 -1
  34. package/v2/unit/core/Unit_Typescript.d.ts +15 -13
  35. package/v2/unit/core/Unit_Typescript.js +40 -36
  36. package/v2/unit/core/Unit_TypescriptLib.d.ts +27 -3
  37. package/v2/unit/core/Unit_TypescriptLib.js +98 -4
  38. package/v2/unit/core/Unit_TypescriptProject.d.ts +11 -2
  39. package/v2/unit/core/Unit_TypescriptProject.js +29 -0
  40. package/v2/unit/core/index.d.ts +2 -1
  41. package/v2/unit/core/index.js +2 -1
  42. package/v2/unit/firebase-units/Unit_FirebaseFunctionsApp.d.ts +40 -0
  43. package/v2/unit/firebase-units/Unit_FirebaseFunctionsApp.js +312 -0
  44. package/v2/unit/firebase-units/Unit_FirebaseHostingApp.d.ts +32 -0
  45. package/v2/unit/firebase-units/Unit_FirebaseHostingApp.js +159 -0
  46. package/v2/unit/firebase-units/index.d.ts +2 -0
  47. package/v2/unit/firebase-units/index.js +18 -0
  48. package/v2/unit/thunderstorm.d.ts +291 -0
  49. package/v2/unit/thunderstorm.js +199 -0
  50. package/v2/unit/types.d.ts +7 -0
  51. package/v2/unit/types.js +2 -0
  52. package/v2/BasePackage.d.ts +0 -4
  53. package/v2/BasePackage.js +0 -9
  54. package/v2/ProjectManagerV2.d.ts +0 -8
  55. package/v2/ProjectManagerV2.js +0 -23
  56. package/v2/test/test.d.ts +0 -14
  57. package/v2/test/test.js +0 -85
  58. package/v2/unit/core/types.d.ts +0 -13
  59. package/v2/unit/core/types.js +0 -23
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Unit_FirebaseHostingApp = void 0;
4
+ const core_1 = require("../core");
5
+ const params_1 = require("../../../core/params/params");
6
+ const ts_common_1 = require("@nu-art/ts-common");
7
+ const fs_1 = require("fs");
8
+ const consts_1 = require("../../../core/consts");
9
+ const tools_1 = require("@nu-art/commando/core/tools");
10
+ const nvm_1 = require("@nu-art/commando/cli/nvm");
11
+ const basic_1 = require("@nu-art/commando/cli/basic");
12
+ const RunnerParams_1 = require("../../phase-runner/RunnerParams");
13
+ const cli_1 = require("@nu-art/commando/core/cli");
14
+ const CONST_VersionApp = 'version-app.json';
15
+ class Unit_FirebaseHostingApp extends core_1.Unit_TypescriptLib {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.APP_PID_LOG = '_APP_PID_';
19
+ this.APP_KILL_LOG = '_APP_KILLED_';
20
+ }
21
+ //######################### Phase Implementations #########################
22
+ async resolveConfigs() {
23
+ await this.resolveHostingRC();
24
+ await this.resolveHostingJSON();
25
+ await this.resolveHostingRuntimeConfig();
26
+ }
27
+ async compile() {
28
+ this.setStatus('Compile');
29
+ await this.resolveTSConfig();
30
+ await this.clearOutputDir();
31
+ await this.createAppVersionFile();
32
+ await this.compileImpl();
33
+ this.setStatus('Compiled');
34
+ }
35
+ async launch() {
36
+ this.setStatus('Launching');
37
+ await this.initLaunch();
38
+ await this.initLaunchListeners();
39
+ await this.clearPorts();
40
+ await this.runApp();
41
+ }
42
+ async deployFrontend() {
43
+ await this.deployImpl();
44
+ }
45
+ //######################### ResolveConfig Logic #########################
46
+ getEnvConfig() {
47
+ const env = params_1.RuntimeParams.environment;
48
+ const envConfig = this.config.firebaseConfig.envs.find(_env => _env.env === env);
49
+ if (!envConfig)
50
+ throw new ts_common_1.ImplementationMissingException(`Missing EnvConfig for env ${env} in unit ${this.config.label}`);
51
+ return envConfig;
52
+ }
53
+ async resolveHostingRC() {
54
+ const envConfig = this.getEnvConfig();
55
+ const rcConfig = { projects: { default: envConfig.projectId } };
56
+ const targetPath = `${this.runtime.pathTo.pkg}/${consts_1.CONST_FirebaseRC}`;
57
+ await fs_1.promises.writeFile(targetPath, JSON.stringify(rcConfig, null, 2), { encoding: 'utf-8' });
58
+ }
59
+ async resolveHostingJSON() {
60
+ const envConfig = this.getEnvConfig();
61
+ const fileContent = envConfig.isLocal ? {} : this.config.firebaseConfig.hosting;
62
+ const targetPath = `${this.runtime.pathTo.pkg}/${consts_1.CONST_FirebaseJSON}`;
63
+ await fs_1.promises.writeFile(targetPath, JSON.stringify(fileContent, null, 2), { encoding: 'utf-8' });
64
+ }
65
+ async resolveHostingRuntimeConfig() {
66
+ var _a;
67
+ const envConfig = this.getEnvConfig();
68
+ const emulatorConfig = {
69
+ hostname: 'localhost',
70
+ port: this.config.firebaseConfig.basePort + 2,
71
+ };
72
+ const feConfig = {
73
+ ModuleFE_Thunderstorm: {
74
+ appName: `${this.config.key} - (${envConfig.env})`
75
+ },
76
+ ModuleFE_XHR: {
77
+ origin: envConfig.isLocal ? `https://localhost:${this.config.firebaseConfig.basePort}` : envConfig.backend.url,
78
+ timeout: envConfig.backend.timeout || 30000,
79
+ compress: envConfig.backend.compress || false,
80
+ minLogLevel: envConfig.backend.minLogLevel || false,
81
+ },
82
+ ModuleFE_FirebaseListener: {
83
+ emulatorConfig: envConfig.isLocal ? emulatorConfig : undefined,
84
+ firebaseConfig: (_a = envConfig.firebase.listener) === null || _a === void 0 ? void 0 : _a.config
85
+ }
86
+ };
87
+ const targetPath = (0, tools_1.convertToFullPath)(`${this.config.pathToPackage}/src/main/config.ts`);
88
+ const fileContent = `export const config = ${JSON.stringify(feConfig, null, 2)};`;
89
+ await fs_1.promises.writeFile(targetPath, fileContent, { encoding: 'utf-8' });
90
+ }
91
+ //######################### Compile Logic #########################
92
+ async compileImpl() {
93
+ await nvm_1.NVM
94
+ .createCommando(basic_1.Cli_Basic)
95
+ .cd(this.runtime.pathTo.pkg)
96
+ .append(`ENV=${params_1.RuntimeParams.environment} npm run build`)
97
+ .execute();
98
+ }
99
+ async createAppVersionFile() {
100
+ //Writing the file to the package source instead of the output is fine,
101
+ //Webpack bundles files into the output automatically!
102
+ const targetPath = `${this.runtime.pathTo.pkg}/src/main/${CONST_VersionApp}`;
103
+ const appVersion = RunnerParams_1.MemKey_ProjectConfig.get().projectVersion;
104
+ const fileContent = JSON.stringify({ version: appVersion }, null, 2);
105
+ await fs_1.promises.writeFile(targetPath, fileContent, { encoding: 'utf-8' });
106
+ }
107
+ //######################### Launch Logic #########################
108
+ async initLaunch() {
109
+ if (!this.config.firebaseConfig.hostingPort)
110
+ throw new ts_common_1.BadImplementationException(`Unit ${this.config.label} missing hosting port in firebaseConfig`);
111
+ this.launchCommando = nvm_1.NVM.createInteractiveCommando(basic_1.Cli_Basic)
112
+ .setUID(this.config.key)
113
+ .cd(this.runtime.pathTo.pkg);
114
+ }
115
+ async initLaunchListeners() {
116
+ this.listeners = {
117
+ pid: new cli_1.CommandoCLIKeyValueListener(new RegExp(`${this.APP_PID_LOG}=(\\d+)`)),
118
+ kill: new cli_1.CommandoCLIListener(() => this.launchCommando.close(), this.APP_KILL_LOG),
119
+ };
120
+ this.listeners.pid.listen(this.launchCommando);
121
+ this.listeners.kill.listen(this.launchCommando);
122
+ }
123
+ getPID() {
124
+ const pid = Number(this.listeners.pid.getValue());
125
+ return isNaN(pid) ? undefined : pid;
126
+ }
127
+ async clearPorts() {
128
+ await this.launchCommando
129
+ .debug()
130
+ .append(`array=($(lsof -ti:${[this.config.firebaseConfig.hostingPort].join(',')}))`)
131
+ .append(`((\${#array[@]} > 0)) && kill -9 "\${array[@]}"`)
132
+ .append('echo ')
133
+ .execute();
134
+ }
135
+ async runApp() {
136
+ await this.launchCommando
137
+ .append(`npm run start &`)
138
+ .append('pid=$!')
139
+ .append(`echo "${this.APP_PID_LOG}=\${pid}"`)
140
+ .append(`wait \$pid`)
141
+ .append(`echo "${this.APP_KILL_LOG} \${pid}"`)
142
+ .execute();
143
+ }
144
+ async kill() {
145
+ var _a;
146
+ if (!this.launchCommando)
147
+ return;
148
+ const appPid = this.getPID();
149
+ await ((_a = this.launchCommando) === null || _a === void 0 ? void 0 : _a.gracefullyKill(appPid));
150
+ }
151
+ //######################### Deploy Logic #########################
152
+ async deployImpl() {
153
+ await nvm_1.NVM.createCommando(basic_1.Cli_Basic)
154
+ .cd(this.runtime.pathTo.pkg)
155
+ .append(`firebase --debug deploy --only hosting`)
156
+ .execute();
157
+ }
158
+ }
159
+ exports.Unit_FirebaseHostingApp = Unit_FirebaseHostingApp;
@@ -0,0 +1,2 @@
1
+ export * from './Unit_FirebaseHostingApp';
2
+ export * from './Unit_FirebaseFunctionsApp';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Unit_FirebaseHostingApp"), exports);
18
+ __exportStar(require("./Unit_FirebaseFunctionsApp"), exports);
@@ -0,0 +1,291 @@
1
+ import { BaseUnit, Unit_TypescriptLib } from './core';
2
+ import { RelativePath } from '@nu-art/ts-common';
3
+ export declare const Unit_TSCommon: Unit_TypescriptLib<{}, {}, {
4
+ key: string;
5
+ label: string;
6
+ pathToPackage: RelativePath;
7
+ output: string;
8
+ filter: () => NonNullable<boolean | undefined>;
9
+ }, {
10
+ pathTo: {
11
+ pkg: string;
12
+ output: string;
13
+ };
14
+ }>;
15
+ export declare const Unit_TSStyles: Unit_TypescriptLib<{}, {}, {
16
+ key: string;
17
+ label: string;
18
+ pathToPackage: RelativePath;
19
+ output: string;
20
+ filter: () => NonNullable<boolean | undefined>;
21
+ }, {
22
+ pathTo: {
23
+ pkg: string;
24
+ output: string;
25
+ };
26
+ }>;
27
+ export declare const Unit_GoogleServices: Unit_TypescriptLib<{}, {}, {
28
+ key: string;
29
+ label: string;
30
+ pathToPackage: RelativePath;
31
+ output: string;
32
+ filter: () => NonNullable<boolean | undefined>;
33
+ }, {
34
+ pathTo: {
35
+ pkg: string;
36
+ output: string;
37
+ };
38
+ }>;
39
+ export declare const Unit_Commando: Unit_TypescriptLib<{}, {}, {
40
+ key: string;
41
+ label: string;
42
+ pathToPackage: RelativePath;
43
+ output: string;
44
+ filter: () => NonNullable<boolean | undefined>;
45
+ }, {
46
+ pathTo: {
47
+ pkg: string;
48
+ output: string;
49
+ };
50
+ }>;
51
+ export declare const Unit_BAI: Unit_TypescriptLib<{}, {}, {
52
+ key: string;
53
+ label: string;
54
+ pathToPackage: RelativePath;
55
+ output: string;
56
+ filter: () => NonNullable<boolean | undefined>;
57
+ }, {
58
+ pathTo: {
59
+ pkg: string;
60
+ output: string;
61
+ };
62
+ }>;
63
+ export declare const Unit_Firebase: Unit_TypescriptLib<{}, {}, {
64
+ key: string;
65
+ label: string;
66
+ pathToPackage: RelativePath;
67
+ output: string;
68
+ filter: () => NonNullable<boolean | undefined>;
69
+ }, {
70
+ pathTo: {
71
+ pkg: string;
72
+ output: string;
73
+ };
74
+ }>;
75
+ export declare const Unit_Thunderstorm: Unit_TypescriptLib<{}, {}, {
76
+ key: string;
77
+ label: string;
78
+ pathToPackage: RelativePath;
79
+ output: string;
80
+ filter: () => NonNullable<boolean | undefined>;
81
+ }, {
82
+ pathTo: {
83
+ pkg: string;
84
+ output: string;
85
+ };
86
+ }>;
87
+ export declare const Unit_TSPDF: Unit_TypescriptLib<{}, {}, {
88
+ key: string;
89
+ label: string;
90
+ pathToPackage: RelativePath;
91
+ output: string;
92
+ filter: () => NonNullable<boolean | undefined>;
93
+ }, {
94
+ pathTo: {
95
+ pkg: string;
96
+ output: string;
97
+ };
98
+ }>;
99
+ export declare const Unit_Slack: Unit_TypescriptLib<{}, {}, {
100
+ key: string;
101
+ label: string;
102
+ pathToPackage: RelativePath;
103
+ output: string;
104
+ filter: () => NonNullable<boolean | undefined>;
105
+ }, {
106
+ pathTo: {
107
+ pkg: string;
108
+ output: string;
109
+ };
110
+ }>;
111
+ export declare const Unit_LiveDocs: Unit_TypescriptLib<{}, {}, {
112
+ key: string;
113
+ label: string;
114
+ pathToPackage: RelativePath;
115
+ output: string;
116
+ filter: () => NonNullable<boolean | undefined>;
117
+ }, {
118
+ pathTo: {
119
+ pkg: string;
120
+ output: string;
121
+ };
122
+ }>;
123
+ export declare const Unit_UserAccount: Unit_TypescriptLib<{}, {}, {
124
+ key: string;
125
+ label: string;
126
+ pathToPackage: RelativePath;
127
+ output: string;
128
+ filter: () => NonNullable<boolean | undefined>;
129
+ }, {
130
+ pathTo: {
131
+ pkg: string;
132
+ output: string;
133
+ };
134
+ }>;
135
+ export declare const Unit_Permissions: Unit_TypescriptLib<{}, {}, {
136
+ key: string;
137
+ label: string;
138
+ pathToPackage: RelativePath;
139
+ output: string;
140
+ filter: () => NonNullable<boolean | undefined>;
141
+ }, {
142
+ pathTo: {
143
+ pkg: string;
144
+ output: string;
145
+ };
146
+ }>;
147
+ export declare const Unit_TSShortUrl: Unit_TypescriptLib<{}, {}, {
148
+ key: string;
149
+ label: string;
150
+ pathToPackage: RelativePath;
151
+ output: string;
152
+ filter: () => NonNullable<boolean | undefined>;
153
+ }, {
154
+ pathTo: {
155
+ pkg: string;
156
+ output: string;
157
+ };
158
+ }>;
159
+ export declare const Unit_DependencyViewer: Unit_TypescriptLib<{}, {}, {
160
+ key: string;
161
+ label: string;
162
+ pathToPackage: RelativePath;
163
+ output: string;
164
+ filter: () => NonNullable<boolean | undefined>;
165
+ }, {
166
+ pathTo: {
167
+ pkg: string;
168
+ output: string;
169
+ };
170
+ }>;
171
+ export declare const Unit_FocusedObject: Unit_TypescriptLib<{}, {}, {
172
+ key: string;
173
+ label: string;
174
+ pathToPackage: RelativePath;
175
+ output: string;
176
+ filter: () => NonNullable<boolean | undefined>;
177
+ }, {
178
+ pathTo: {
179
+ pkg: string;
180
+ output: string;
181
+ };
182
+ }>;
183
+ export declare const Unit_Messaging: Unit_TypescriptLib<{}, {}, {
184
+ key: string;
185
+ label: string;
186
+ pathToPackage: RelativePath;
187
+ output: string;
188
+ filter: () => NonNullable<boolean | undefined>;
189
+ }, {
190
+ pathTo: {
191
+ pkg: string;
192
+ output: string;
193
+ };
194
+ }>;
195
+ export declare const Unit_Workspace: Unit_TypescriptLib<{}, {}, {
196
+ key: string;
197
+ label: string;
198
+ pathToPackage: RelativePath;
199
+ output: string;
200
+ filter: () => NonNullable<boolean | undefined>;
201
+ }, {
202
+ pathTo: {
203
+ pkg: string;
204
+ output: string;
205
+ };
206
+ }>;
207
+ export declare const Unit_PushPubSub: Unit_TypescriptLib<{}, {}, {
208
+ key: string;
209
+ label: string;
210
+ pathToPackage: RelativePath;
211
+ output: string;
212
+ filter: () => NonNullable<boolean | undefined>;
213
+ }, {
214
+ pathTo: {
215
+ pkg: string;
216
+ output: string;
217
+ };
218
+ }>;
219
+ export declare const Unit_Jira: Unit_TypescriptLib<{}, {}, {
220
+ key: string;
221
+ label: string;
222
+ pathToPackage: RelativePath;
223
+ output: string;
224
+ filter: () => NonNullable<boolean | undefined>;
225
+ }, {
226
+ pathTo: {
227
+ pkg: string;
228
+ output: string;
229
+ };
230
+ }>;
231
+ export declare const Unit_BugReport: Unit_TypescriptLib<{}, {}, {
232
+ key: string;
233
+ label: string;
234
+ pathToPackage: RelativePath;
235
+ output: string;
236
+ filter: () => NonNullable<boolean | undefined>;
237
+ }, {
238
+ pathTo: {
239
+ pkg: string;
240
+ output: string;
241
+ };
242
+ }>;
243
+ export declare const Unit_Github: Unit_TypescriptLib<{}, {}, {
244
+ key: string;
245
+ label: string;
246
+ pathToPackage: RelativePath;
247
+ output: string;
248
+ filter: () => NonNullable<boolean | undefined>;
249
+ }, {
250
+ pathTo: {
251
+ pkg: string;
252
+ output: string;
253
+ };
254
+ }>;
255
+ export declare const Unit_FileUpload: Unit_TypescriptLib<{}, {}, {
256
+ key: string;
257
+ label: string;
258
+ pathToPackage: RelativePath;
259
+ output: string;
260
+ filter: () => NonNullable<boolean | undefined>;
261
+ }, {
262
+ pathTo: {
263
+ pkg: string;
264
+ output: string;
265
+ };
266
+ }>;
267
+ export declare const Unit_TSOpenAI: Unit_TypescriptLib<{}, {}, {
268
+ key: string;
269
+ label: string;
270
+ pathToPackage: RelativePath;
271
+ output: string;
272
+ filter: () => NonNullable<boolean | undefined>;
273
+ }, {
274
+ pathTo: {
275
+ pkg: string;
276
+ output: string;
277
+ };
278
+ }>;
279
+ export declare const Unit_SchemaToTypes: Unit_TypescriptLib<{}, {}, {
280
+ key: string;
281
+ label: string;
282
+ pathToPackage: RelativePath;
283
+ output: string;
284
+ filter: () => NonNullable<boolean | undefined>;
285
+ }, {
286
+ pathTo: {
287
+ pkg: string;
288
+ output: string;
289
+ };
290
+ }>;
291
+ export declare const allTSUnits: BaseUnit[];
@@ -0,0 +1,199 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.allTSUnits = exports.Unit_SchemaToTypes = exports.Unit_TSOpenAI = exports.Unit_FileUpload = exports.Unit_Github = exports.Unit_BugReport = exports.Unit_Jira = exports.Unit_PushPubSub = exports.Unit_Workspace = exports.Unit_Messaging = exports.Unit_FocusedObject = exports.Unit_DependencyViewer = exports.Unit_TSShortUrl = exports.Unit_Permissions = exports.Unit_UserAccount = exports.Unit_LiveDocs = exports.Unit_Slack = exports.Unit_TSPDF = exports.Unit_Thunderstorm = exports.Unit_Firebase = exports.Unit_BAI = exports.Unit_Commando = exports.Unit_GoogleServices = exports.Unit_TSStyles = exports.Unit_TSCommon = void 0;
4
+ const core_1 = require("./core");
5
+ const params_1 = require("../../core/params/params");
6
+ exports.Unit_TSCommon = new core_1.Unit_TypescriptLib({
7
+ key: 'ts-common',
8
+ label: 'TS/ts-common',
9
+ pathToPackage: '_thunderstorm/ts-common',
10
+ output: 'dist',
11
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
12
+ });
13
+ exports.Unit_TSStyles = new core_1.Unit_TypescriptLib({
14
+ key: 'ts-styles',
15
+ label: 'TS/ts-styles',
16
+ pathToPackage: '_thunderstorm/ts-styles',
17
+ output: 'dist',
18
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
19
+ });
20
+ exports.Unit_GoogleServices = new core_1.Unit_TypescriptLib({
21
+ key: 'google-services',
22
+ label: 'TS/google-services',
23
+ pathToPackage: '_thunderstorm/google-services',
24
+ output: 'dist',
25
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
26
+ });
27
+ exports.Unit_Commando = new core_1.Unit_TypescriptLib({
28
+ key: 'commando',
29
+ label: 'TS/commando',
30
+ pathToPackage: '_thunderstorm/commando',
31
+ output: 'dist',
32
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
33
+ });
34
+ exports.Unit_BAI = new core_1.Unit_TypescriptLib({
35
+ key: 'build-and-install',
36
+ label: 'TS/build-and-install',
37
+ pathToPackage: '_thunderstorm/build-and-install',
38
+ output: 'dist',
39
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
40
+ });
41
+ exports.Unit_Firebase = new core_1.Unit_TypescriptLib({
42
+ key: 'firebase',
43
+ label: 'TS/firebase',
44
+ pathToPackage: '_thunderstorm/firebase',
45
+ output: 'dist',
46
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
47
+ });
48
+ exports.Unit_Thunderstorm = new core_1.Unit_TypescriptLib({
49
+ key: 'thunderstorm',
50
+ label: 'TS/thunderstorm',
51
+ pathToPackage: '_thunderstorm/thunderstorm',
52
+ output: 'dist',
53
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
54
+ });
55
+ exports.Unit_TSPDF = new core_1.Unit_TypescriptLib({
56
+ key: 'ts-pdf',
57
+ label: 'TS/ts-pdf',
58
+ pathToPackage: '_thunderstorm/ts-pdf',
59
+ output: 'dist',
60
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
61
+ });
62
+ exports.Unit_Slack = new core_1.Unit_TypescriptLib({
63
+ key: 'slack',
64
+ label: 'TS/slack',
65
+ pathToPackage: '_thunderstorm/slack',
66
+ output: 'dist',
67
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
68
+ });
69
+ exports.Unit_LiveDocs = new core_1.Unit_TypescriptLib({
70
+ key: 'live-docs',
71
+ label: 'TS/live-docs',
72
+ pathToPackage: '_thunderstorm/live-docs',
73
+ output: 'dist',
74
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
75
+ });
76
+ exports.Unit_UserAccount = new core_1.Unit_TypescriptLib({
77
+ key: 'user-account',
78
+ label: 'TS/user-account',
79
+ pathToPackage: '_thunderstorm/user-account',
80
+ output: 'dist',
81
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
82
+ });
83
+ exports.Unit_Permissions = new core_1.Unit_TypescriptLib({
84
+ key: 'permissions',
85
+ label: 'TS/permissions',
86
+ pathToPackage: '_thunderstorm/permissions',
87
+ output: 'dist',
88
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
89
+ });
90
+ exports.Unit_TSShortUrl = new core_1.Unit_TypescriptLib({
91
+ key: 'ts-short-url',
92
+ label: 'TS/short-url',
93
+ pathToPackage: '_thunderstorm/ts-short-url',
94
+ output: 'dist',
95
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
96
+ });
97
+ exports.Unit_DependencyViewer = new core_1.Unit_TypescriptLib({
98
+ key: 'ts-dependency-viewer',
99
+ label: 'TS/dependency-viewer',
100
+ pathToPackage: '_thunderstorm/ts-dependency-viewer',
101
+ output: 'dist',
102
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
103
+ });
104
+ exports.Unit_FocusedObject = new core_1.Unit_TypescriptLib({
105
+ key: 'ts-focused-object',
106
+ label: 'TS/focused-object',
107
+ pathToPackage: '_thunderstorm/ts-focused-object',
108
+ output: 'dist',
109
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
110
+ });
111
+ exports.Unit_Messaging = new core_1.Unit_TypescriptLib({
112
+ key: 'ts-messaging',
113
+ label: 'TS/messaging',
114
+ pathToPackage: '_thunderstorm/ts-messaging',
115
+ output: 'dist',
116
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
117
+ });
118
+ exports.Unit_Workspace = new core_1.Unit_TypescriptLib({
119
+ key: 'ts-workspace',
120
+ label: 'TS/workspace',
121
+ pathToPackage: '_thunderstorm/ts-workspace',
122
+ output: 'dist',
123
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
124
+ });
125
+ exports.Unit_PushPubSub = new core_1.Unit_TypescriptLib({
126
+ key: 'push-pub-sub',
127
+ label: 'TS/push-pub-sub',
128
+ pathToPackage: '_thunderstorm/push-pub-sub',
129
+ output: 'dist',
130
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
131
+ });
132
+ exports.Unit_Jira = new core_1.Unit_TypescriptLib({
133
+ key: 'jira',
134
+ label: 'TS/jira',
135
+ pathToPackage: '_thunderstorm/jira',
136
+ output: 'dist',
137
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
138
+ });
139
+ exports.Unit_BugReport = new core_1.Unit_TypescriptLib({
140
+ key: 'bug-report',
141
+ label: 'TS/bug-report',
142
+ pathToPackage: '_thunderstorm/bug-report',
143
+ output: 'dist',
144
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
145
+ });
146
+ exports.Unit_Github = new core_1.Unit_TypescriptLib({
147
+ key: 'github',
148
+ label: 'TS/github',
149
+ pathToPackage: '_thunderstorm/github',
150
+ output: 'dist',
151
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
152
+ });
153
+ exports.Unit_FileUpload = new core_1.Unit_TypescriptLib({
154
+ key: 'file-upload',
155
+ label: 'TS/file-upload',
156
+ pathToPackage: '_thunderstorm/file-upload',
157
+ output: 'dist',
158
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
159
+ });
160
+ exports.Unit_TSOpenAI = new core_1.Unit_TypescriptLib({
161
+ key: 'ts-openai',
162
+ label: 'TS/openai',
163
+ pathToPackage: '_thunderstorm/ts-openai',
164
+ output: 'dist',
165
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
166
+ });
167
+ exports.Unit_SchemaToTypes = new core_1.Unit_TypescriptLib({
168
+ key: 'schema-to-types',
169
+ label: 'TS/schema-to-types',
170
+ pathToPackage: '_thunderstorm/schema-to-types',
171
+ output: 'dist',
172
+ filter: () => params_1.RuntimeParams.runWithThunderstorm,
173
+ });
174
+ exports.allTSUnits = [
175
+ exports.Unit_TSCommon,
176
+ exports.Unit_TSStyles,
177
+ exports.Unit_GoogleServices,
178
+ exports.Unit_Commando,
179
+ exports.Unit_BAI,
180
+ exports.Unit_Firebase,
181
+ exports.Unit_Thunderstorm,
182
+ exports.Unit_TSPDF,
183
+ exports.Unit_Slack,
184
+ exports.Unit_LiveDocs,
185
+ exports.Unit_UserAccount,
186
+ exports.Unit_Permissions,
187
+ exports.Unit_TSShortUrl,
188
+ exports.Unit_DependencyViewer,
189
+ exports.Unit_FocusedObject,
190
+ exports.Unit_Messaging,
191
+ exports.Unit_Workspace,
192
+ exports.Unit_PushPubSub,
193
+ exports.Unit_Jira,
194
+ exports.Unit_BugReport,
195
+ exports.Unit_Github,
196
+ exports.Unit_FileUpload,
197
+ exports.Unit_TSOpenAI,
198
+ exports.Unit_SchemaToTypes
199
+ ];
@@ -0,0 +1,7 @@
1
+ import { AsyncVoidFunction } from '@nu-art/ts-common';
2
+ import { Phase } from '../phase';
3
+ import { BaseUnit } from './core';
4
+ export type Unit<P extends Phase<string>[]> = BaseUnit & UnitPhaseImplementor<P>;
5
+ export type UnitPhaseImplementor<P extends Phase<string>[]> = {
6
+ [K in P[number]['method']]: AsyncVoidFunction;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export declare class BasePackage {
2
- readonly name: string;
3
- constructor(name: string);
4
- }
package/v2/BasePackage.js DELETED
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BasePackage = void 0;
4
- class BasePackage {
5
- constructor(name) {
6
- this.name = name;
7
- }
8
- }
9
- exports.BasePackage = BasePackage;