tnp-helpers 19.0.64 → 19.0.66
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/browser/README.md +24 -24
- package/browser/fesm2022/tnp-helpers.mjs +3050 -259
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker-controller.d.ts +3 -4
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +1 -1
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +59 -35
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker.models.d.ts +42 -0
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker.utils.d.ts +4 -0
- package/browser/lib/base/classes/base-cli-worker/index.d.ts +1 -0
- package/browser/lib/base/classes/base-docker.d.ts +1 -0
- package/browser/lib/base/classes/base-git.d.ts +2 -0
- package/browser/lib/base/classes/base-global-command-line.d.ts +254 -0
- package/browser/lib/base/classes/base-node-modules.d.ts +7 -0
- package/browser/lib/base/classes/base-npm-helpers.d.ts +1 -0
- package/browser/lib/base/classes/base-release-process.d.ts +3 -1
- package/browser/lib/base/classes/index.d.ts +2 -1
- package/browser/lib/base/gh-temp-code.d.ts +17 -0
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/utils.d.ts +3 -40
- package/browser/package.json +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-controller.d.ts +3 -4
- package/lib/base/classes/base-cli-worker/base-cli-worker-controller.js +28 -15
- package/lib/base/classes/base-cli-worker/base-cli-worker-controller.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.js +10 -6
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +57 -33
- package/lib/base/classes/base-cli-worker/base-cli-worker.js +326 -213
- package/lib/base/classes/base-cli-worker/base-cli-worker.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.models.d.ts +41 -0
- package/lib/base/classes/base-cli-worker/base-cli-worker.models.js +34 -0
- package/lib/base/classes/base-cli-worker/base-cli-worker.models.js.map +1 -0
- package/lib/base/classes/base-cli-worker/base-cli-worker.utils.d.ts +3 -0
- package/lib/base/classes/base-cli-worker/base-cli-worker.utils.js +19 -0
- package/lib/base/classes/base-cli-worker/base-cli-worker.utils.js.map +1 -0
- package/lib/base/classes/base-cli-worker/index.d.ts +1 -0
- package/lib/base/classes/base-cli-worker/index.js +1 -0
- package/lib/base/classes/base-cli-worker/index.js.map +1 -1
- package/lib/base/classes/base-command-line-feature.backend.d.ts +47 -0
- package/lib/base/classes/base-command-line-feature.backend.js +147 -0
- package/lib/base/classes/base-command-line-feature.backend.js.map +1 -0
- package/lib/base/classes/base-docker.d.ts +1 -0
- package/lib/base/classes/base-docker.js +7 -0
- package/lib/base/classes/base-docker.js.map +1 -1
- package/lib/base/classes/base-git.d.ts +2 -0
- package/lib/base/classes/base-git.js +6 -1
- package/lib/base/classes/base-git.js.map +1 -1
- package/lib/base/classes/base-global-command-line.backend.d.ts +1 -0
- package/lib/base/classes/base-global-command-line.backend.js +55 -62
- package/lib/base/classes/base-global-command-line.backend.js.map +1 -1
- package/lib/base/classes/base-global-command-line.d.ts +260 -0
- package/lib/base/classes/base-global-command-line.js +2406 -0
- package/lib/base/classes/base-global-command-line.js.map +1 -0
- package/lib/base/classes/base-node-modules.d.ts +7 -0
- package/lib/base/classes/base-node-modules.js +98 -81
- package/lib/base/classes/base-node-modules.js.map +1 -1
- package/lib/base/classes/base-npm-helpers.d.ts +1 -0
- package/lib/base/classes/base-npm-helpers.js +1 -1
- package/lib/base/classes/base-npm-helpers.js.map +1 -1
- package/lib/base/classes/base-project-resolver.js +2 -1
- package/lib/base/classes/base-project-resolver.js.map +1 -1
- package/lib/base/classes/base-project.js +8 -6
- package/lib/base/classes/base-project.js.map +1 -1
- package/lib/base/classes/base-release-process.d.ts +3 -1
- package/lib/base/classes/base-release-process.js +4 -3
- package/lib/base/classes/base-release-process.js.map +1 -1
- package/lib/base/classes/index.d.ts +1 -1
- package/lib/base/classes/index.js +2 -4
- package/lib/base/classes/index.js.map +1 -1
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
- package/lib/base/tcp-udp-ports/ports.entity.d.ts +1 -1
- package/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.js +27 -14
- package/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/helpers/for-backend/helpers-dependencies.backend.d.ts +3 -0
- package/lib/helpers/for-backend/helpers-dependencies.backend.js +34 -0
- package/lib/helpers/for-backend/helpers-dependencies.backend.js.map +1 -0
- package/lib/helpers/for-backend/helpers-git.backend.d.ts +1 -0
- package/lib/helpers/for-backend/helpers-git.backend.js +46 -17
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- package/lib/helpers/helpers-numbers.js.map +1 -1
- package/lib/old/base-component.js +2 -2
- package/lib/old/base-formly-component.js +2 -2
- package/lib/old/dual-component-ctrl.js +2 -2
- package/lib/utils.d.ts +3 -40
- package/lib/utils.js +34 -111
- package/lib/utils.js.map +1 -1
- package/lib/validators/validators-firedev.d.ts +3 -0
- package/lib/validators/validators-firedev.js +34 -0
- package/lib/validators/validators-firedev.js.map +1 -0
- package/lib/validators/validators-git.d.ts +3 -0
- package/lib/validators/validators-git.js +13 -0
- package/lib/validators/validators-git.js.map +1 -0
- package/lib/validators/validators-network.d.ts +3 -0
- package/lib/validators/validators-network.js +19 -0
- package/lib/validators/validators-network.js.map +1 -0
- package/lib/validators/validators.d.ts +6 -0
- package/lib/validators/validators.js +11 -0
- package/lib/validators/validators.js.map +1 -0
- package/package.json +1 -1
- package/tmp-environment.json +37 -0
- package/websql/README.md +24 -24
- package/websql/fesm2022/tnp-helpers.mjs +3050 -259
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker-controller.d.ts +3 -4
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +1 -1
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +59 -35
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker.models.d.ts +42 -0
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker.utils.d.ts +4 -0
- package/websql/lib/base/classes/base-cli-worker/index.d.ts +1 -0
- package/websql/lib/base/classes/base-docker.d.ts +1 -0
- package/websql/lib/base/classes/base-git.d.ts +2 -0
- package/websql/lib/base/classes/base-global-command-line.d.ts +254 -0
- package/websql/lib/base/classes/base-node-modules.d.ts +7 -0
- package/websql/lib/base/classes/base-npm-helpers.d.ts +1 -0
- package/websql/lib/base/classes/base-release-process.d.ts +3 -1
- package/websql/lib/base/classes/index.d.ts +2 -1
- package/websql/lib/base/gh-temp-code.d.ts +17 -0
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/utils.d.ts +3 -40
- package/websql/package.json +1 -1
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Taon } from 'taon/browser';
|
|
3
3
|
import { BaseCliWorkerConfig } from './base-cli-worker-config';
|
|
4
|
-
export declare abstract class BaseCliWorkerController extends Taon.Base
|
|
5
|
-
.Controller {
|
|
4
|
+
export declare abstract class BaseCliWorkerController<UPLOAD_FILE_QUERY_PARAMS = {}> extends Taon.Base.Controller<UPLOAD_FILE_QUERY_PARAMS> {
|
|
6
5
|
/**
|
|
7
6
|
* service id
|
|
8
7
|
*/
|
|
9
8
|
private cliWorkerServiceId;
|
|
10
9
|
private cliWorkerServiceVersion;
|
|
11
10
|
baseCLiWorkerCommand_initializeMetadata(serviceId: string, serviceVersion: string): Taon.Response<void>;
|
|
12
|
-
baseCLiWorkerCommand_kill(): Taon.Response<void>;
|
|
13
|
-
info(): Taon.
|
|
11
|
+
baseCLiWorkerCommand_kill(dontRemoveConfigFile?: boolean): Taon.Response<void>;
|
|
12
|
+
info(): Taon.ResponseHtml;
|
|
14
13
|
baseCLiWorkerCommand_isHealthy(checkingProcessConfig: BaseCliWorkerConfig): Taon.Response<boolean>;
|
|
15
14
|
baseCLiWorkerCommand_hasUpToDateVersion(checkingProcessConfig: BaseCliWorkerConfig): Taon.Response<boolean>;
|
|
16
15
|
}
|
|
@@ -8,7 +8,7 @@ export type BaseWorkerTerminalActionReturnType = {
|
|
|
8
8
|
action: () => unknown | Promise<unknown>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export declare class BaseCliWorkerTerminalUI<WORKER extends BaseCliWorker<BaseCliWorkerController
|
|
11
|
+
export declare class BaseCliWorkerTerminalUI<WORKER extends BaseCliWorker<BaseCliWorkerController<any>, any>> {
|
|
12
12
|
protected worker: WORKER;
|
|
13
13
|
constructor(worker: WORKER);
|
|
14
14
|
protected headerText(): Promise<string>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { Taon } from 'taon/browser';
|
|
2
|
+
import { EndpointContext, Taon } from 'taon/browser';
|
|
3
3
|
import { BaseCliWorkerConfig } from './base-cli-worker-config';
|
|
4
4
|
import type { BaseCliWorkerController } from './base-cli-worker-controller';
|
|
5
5
|
import { BaseCliWorkerTerminalUI } from './base-cli-worker-terminal-ui';
|
|
6
|
-
|
|
6
|
+
import { BaseCliMethodOptions } from './base-cli-worker.models';
|
|
7
|
+
export declare abstract class BaseCliWorker<REMOTE_CTRL extends BaseCliWorkerController<any>, TERMINAL_UI extends BaseCliWorkerTerminalUI<any> = any> {
|
|
7
8
|
/**
|
|
8
9
|
* unique id for service
|
|
9
10
|
*/
|
|
@@ -17,15 +18,13 @@ export declare abstract class BaseCliWorker<REMOTE_CTRL extends BaseCliWorkerCon
|
|
|
17
18
|
*/
|
|
18
19
|
readonly serviceVersion: string;
|
|
19
20
|
readonly SPECIAL_WORKER_READY_MESSAGE = "$$$ WORKER_READY $$$";
|
|
21
|
+
/**
|
|
22
|
+
* dependency workers that should be started before this worker
|
|
23
|
+
*/
|
|
24
|
+
readonly dependencyWorkers: Map<string, BaseCliWorker<any, any>>;
|
|
20
25
|
readonly terminalUI: TERMINAL_UI;
|
|
21
26
|
readonly workerContextTemplate: ReturnType<typeof Taon.createContextTemplate>;
|
|
22
|
-
private workerMainContext;
|
|
23
|
-
getRemoteControllerFor(ipAddressOfTaonInstance: string, port?: number): Promise<REMOTE_CTRL>;
|
|
24
|
-
private workerRemoteContext;
|
|
25
27
|
readonly controllerClass: new () => REMOTE_CTRL;
|
|
26
|
-
private contextForRemoteConnection;
|
|
27
|
-
protected get pathToProcessLocalInfoJson(): string;
|
|
28
|
-
get processLocalInfoObj(): BaseCliWorkerConfig;
|
|
29
28
|
constructor(
|
|
30
29
|
/**
|
|
31
30
|
* unique id for service
|
|
@@ -39,43 +38,65 @@ export declare abstract class BaseCliWorker<REMOTE_CTRL extends BaseCliWorkerCon
|
|
|
39
38
|
* unique id for service
|
|
40
39
|
*/
|
|
41
40
|
serviceVersion: string);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}): Promise<void>;
|
|
51
|
-
getControllerForRemoteConnection(options?: {
|
|
52
|
-
calledFrom?: string;
|
|
53
|
-
}): Promise<REMOTE_CTRL>;
|
|
54
|
-
startDetachedIfNeedsToBeStarted(options?: {
|
|
55
|
-
useCurrentWindowForDetach?: boolean;
|
|
56
|
-
}): Promise<any>;
|
|
41
|
+
get processLocalInfoObj(): BaseCliWorkerConfig;
|
|
42
|
+
getRemoteControllerFor<ctrl = REMOTE_CTRL>(options?: {
|
|
43
|
+
methodOptions: Partial<BaseCliMethodOptions>;
|
|
44
|
+
/**
|
|
45
|
+
* Optionally get other controller from remote context
|
|
46
|
+
*/
|
|
47
|
+
controllerClass?: new () => ctrl;
|
|
48
|
+
}): Promise<ctrl>;
|
|
57
49
|
/**
|
|
58
50
|
* stop if started
|
|
59
51
|
*/
|
|
60
52
|
kill(options?: {
|
|
53
|
+
methodOptions?: Partial<BaseCliMethodOptions>;
|
|
61
54
|
dontRemoveConfigFile?: boolean;
|
|
62
|
-
}): Promise<
|
|
55
|
+
}): Promise<void>;
|
|
63
56
|
/**
|
|
64
57
|
* kill detached process and start again
|
|
65
58
|
* @param options.detached - default true
|
|
66
59
|
*/
|
|
67
60
|
restart(options?: {
|
|
68
|
-
|
|
69
|
-
useCurrentWindowForDetach?: boolean;
|
|
61
|
+
methodOptions?: BaseCliMethodOptions;
|
|
70
62
|
}): Promise<void>;
|
|
71
63
|
/**
|
|
72
64
|
* only for cli start
|
|
73
65
|
* @param cliParams on from cli
|
|
74
66
|
*/
|
|
75
|
-
cliStartProcedure(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
67
|
+
cliStartProcedure(options: {
|
|
68
|
+
methodOptions?: Partial<BaseCliMethodOptions>;
|
|
69
|
+
}): Promise<{
|
|
70
|
+
controller: REMOTE_CTRL;
|
|
71
|
+
worker: BaseCliWorker<any, any>;
|
|
72
|
+
serviceId: string;
|
|
73
|
+
}>;
|
|
74
|
+
protected getRemoteContextFor(options?: {
|
|
75
|
+
methodOptions?: Partial<BaseCliMethodOptions>;
|
|
76
|
+
}): Promise<EndpointContext>;
|
|
77
|
+
protected get pathToProcessLocalInfoJson(): string;
|
|
78
|
+
protected get processLocalInfoPortNotInited(): boolean;
|
|
79
|
+
protected get workerIsStarting(): boolean;
|
|
80
|
+
protected startDetachedIfNeedsToBeStarted(options?: {
|
|
81
|
+
methodOptions?: Partial<BaseCliMethodOptions>;
|
|
82
|
+
}): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* <strong>IMPORTANT USE ONLY IN DEVELOPMENT !!!</strong>
|
|
85
|
+
* for production use startDetachedIfNeedsToBeStarted()
|
|
86
|
+
* start normally process
|
|
87
|
+
* this will crash if process already started
|
|
88
|
+
*/
|
|
89
|
+
protected startNormallyInCurrentProcess(options?: {
|
|
90
|
+
methodOptions?: Partial<BaseCliMethodOptions>;
|
|
91
|
+
actionBeforeTerminalUI?: () => Promise<void>;
|
|
92
|
+
}): Promise<void>;
|
|
93
|
+
protected preventExternalConfigChange(): void;
|
|
94
|
+
protected preventStartIfAlreadyStarted(options?: {
|
|
95
|
+
methodOptions?: Partial<BaseCliMethodOptions>;
|
|
96
|
+
}): Promise<void>;
|
|
97
|
+
protected killWorkerWithLowerVersion(options?: {
|
|
98
|
+
methodOptions?: Partial<BaseCliMethodOptions>;
|
|
99
|
+
}): Promise<void>;
|
|
79
100
|
/**
|
|
80
101
|
* This has 2 purposes:
|
|
81
102
|
* - infinite check when when detached process finished starting
|
|
@@ -83,17 +104,20 @@ export declare abstract class BaseCliWorker<REMOTE_CTRL extends BaseCliWorkerCon
|
|
|
83
104
|
*/
|
|
84
105
|
protected isServiceHealthy(options: {
|
|
85
106
|
healthCheckRequestTrys?: number;
|
|
107
|
+
methodOptions?: Partial<BaseCliMethodOptions>;
|
|
86
108
|
}): Promise<boolean>;
|
|
87
109
|
/**
|
|
88
110
|
* start if not started detached process
|
|
89
111
|
*/
|
|
90
112
|
protected startDetached(options?: {
|
|
91
|
-
|
|
113
|
+
methodOptions?: Partial<BaseCliMethodOptions>;
|
|
92
114
|
}): Promise<void>;
|
|
93
115
|
private saveProcessInfo;
|
|
94
|
-
protected initializeWorkerMetadata(
|
|
95
|
-
|
|
96
|
-
|
|
116
|
+
protected initializeWorkerMetadata(options?: {
|
|
117
|
+
methodOptions?: Partial<BaseCliMethodOptions>;
|
|
118
|
+
}): Promise<void>;
|
|
119
|
+
protected waitForProcessPortSavedToDisk(options: {
|
|
120
|
+
methodOptions: BaseCliMethodOptions;
|
|
97
121
|
}): Promise<void>;
|
|
98
|
-
getServicePort(): Promise<number>;
|
|
122
|
+
protected getServicePort(): Promise<number>;
|
|
99
123
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { BaseClass } from 'taon/browser';
|
|
3
|
+
interface BaseCliWorkerOptionCallable {
|
|
4
|
+
/**
|
|
5
|
+
* Name of the function from which the option was called
|
|
6
|
+
*/
|
|
7
|
+
calledFrom: string;
|
|
8
|
+
}
|
|
9
|
+
declare class BaseCliWorkerConfigGetContextOptions {
|
|
10
|
+
/**
|
|
11
|
+
* default localhost
|
|
12
|
+
*/
|
|
13
|
+
ipAddressOfTaonInstance?: string;
|
|
14
|
+
port?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Default mode: DETACHED_CHILD_PROCESS
|
|
18
|
+
*/
|
|
19
|
+
export declare enum BaseCLiWorkerStartMode {
|
|
20
|
+
CHILD_PROCESS = "child",
|
|
21
|
+
IN_CURRENT_PROCESS = "process",
|
|
22
|
+
DETACHED_WINDOW = "window"
|
|
23
|
+
}
|
|
24
|
+
export declare class BaseCLiWorkerStartParams {
|
|
25
|
+
/**
|
|
26
|
+
* Start mode
|
|
27
|
+
* Default mode DETACHED_CHILD_PROCESS
|
|
28
|
+
*/
|
|
29
|
+
mode: BaseCLiWorkerStartMode;
|
|
30
|
+
restart?: boolean;
|
|
31
|
+
kill?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare class BaseCliMethodOptions extends BaseClass<BaseCliMethodOptions> implements BaseCliWorkerOptionCallable {
|
|
34
|
+
static from(opt?: Partial<BaseCliMethodOptions>): BaseCliMethodOptions;
|
|
35
|
+
connectionOptions?: BaseCliWorkerConfigGetContextOptions;
|
|
36
|
+
cliParams?: BaseCLiWorkerStartParams;
|
|
37
|
+
/**
|
|
38
|
+
* Name of the function from which the option was called
|
|
39
|
+
*/
|
|
40
|
+
calledFrom: string;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -61,6 +61,7 @@ export declare class BaseGit<PROJECT extends BaseProject = any> extends BaseFeat
|
|
|
61
61
|
resolveLastChanges(options?: {
|
|
62
62
|
tryAutomaticActionFirst?: boolean;
|
|
63
63
|
projectNameAsOutputPrefix?: string;
|
|
64
|
+
questionPrefixMessage?: string;
|
|
64
65
|
}): Promise<void>;
|
|
65
66
|
get hasActionCommitsToMelt(): boolean;
|
|
66
67
|
/**
|
|
@@ -172,6 +173,7 @@ export declare class BaseGit<PROJECT extends BaseProject = any> extends BaseFeat
|
|
|
172
173
|
}): Promise<void>;
|
|
173
174
|
validateEmailDomain(allowedEmailsEnds: string[]): Promise<void>;
|
|
174
175
|
protected _afterPullProcessAction(setOrigin: 'ssh' | 'http', skipCloneGitChildren?: boolean): Promise<void>;
|
|
176
|
+
backupBranch(branchName?: string): Promise<string>;
|
|
175
177
|
pushProcess(options?: PushProcessOptions): Promise<void>;
|
|
176
178
|
_beforeAnyActionOnGitRoot(): void;
|
|
177
179
|
protected _beforePushProcessAction(setOrigin: 'ssh' | 'http'): Promise<void>;
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { PushProcessOptions } from '../../index';
|
|
3
|
+
import { TypeOfCommit } from '../commit-data';
|
|
4
|
+
import { BaseCommandLineFeature } from './base-command-line-feature';
|
|
5
|
+
import { BaseProject } from './base-project';
|
|
6
|
+
import type { BaseProjectResolver } from './base-project-resolver';
|
|
7
|
+
export declare class BaseGlobalCommandLine<PARAMS = any, PROJECT extends BaseProject<any, any> = BaseProject<any, any>, PROJECT_RESOLVER extends BaseProjectResolver<PROJECT> = BaseProjectResolver<PROJECT>> extends BaseCommandLineFeature<PARAMS, PROJECT, PROJECT_RESOLVER> {
|
|
8
|
+
_(): void;
|
|
9
|
+
/**
|
|
10
|
+
* TODO return argument not need for now
|
|
11
|
+
*/
|
|
12
|
+
cwdIsProject(options?: {
|
|
13
|
+
requireProjectWithGitRoot?: boolean;
|
|
14
|
+
}): Promise<boolean>;
|
|
15
|
+
hosts(): any;
|
|
16
|
+
countCommits(): any;
|
|
17
|
+
removeSubmodules(): any;
|
|
18
|
+
removeSubmodule(): any;
|
|
19
|
+
setEditor(): Promise<any>;
|
|
20
|
+
upapi(): Promise<any>;
|
|
21
|
+
apiup(): Promise<any>;
|
|
22
|
+
apiUpdate(): Promise<any>;
|
|
23
|
+
cu(): Promise<any>;
|
|
24
|
+
choreUpdate(): Promise<any>;
|
|
25
|
+
colorvscode(): any;
|
|
26
|
+
/**
|
|
27
|
+
* Generate or update .vscode/settings.json file color settings
|
|
28
|
+
*/
|
|
29
|
+
settingsVscode(): any;
|
|
30
|
+
refreshVscodeColors(): any;
|
|
31
|
+
protected _regenerateVscodeSettingsColors(overideBottomColor?: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* quick git update push
|
|
34
|
+
*/
|
|
35
|
+
update(): Promise<any>;
|
|
36
|
+
private updateProject;
|
|
37
|
+
deepUp(noExit?: boolean): Promise<any>;
|
|
38
|
+
deepUpForce(noExit?: boolean): Promise<any>;
|
|
39
|
+
deepUpdateForce(noExit?: boolean): Promise<any>;
|
|
40
|
+
deepUpdate(noExit?: boolean): Promise<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Push update
|
|
43
|
+
*/
|
|
44
|
+
up(): Promise<any>;
|
|
45
|
+
/**
|
|
46
|
+
* Push update
|
|
47
|
+
*/
|
|
48
|
+
pu(): Promise<any>;
|
|
49
|
+
develop(): Promise<any>;
|
|
50
|
+
dev(): Promise<any>;
|
|
51
|
+
repul(): Promise<any>;
|
|
52
|
+
repull(): Promise<any>;
|
|
53
|
+
pul(): Promise<any>;
|
|
54
|
+
pull(): Promise<any>;
|
|
55
|
+
pullAll(): Promise<any>;
|
|
56
|
+
pp(): Promise<any>;
|
|
57
|
+
private __resetInfo;
|
|
58
|
+
fetch(): Promise<any>;
|
|
59
|
+
reset(): Promise<any>;
|
|
60
|
+
soft(): Promise<any>;
|
|
61
|
+
rebase(): Promise<any>;
|
|
62
|
+
/**
|
|
63
|
+
* stash only staged files
|
|
64
|
+
*/
|
|
65
|
+
stash(): Promise<any>;
|
|
66
|
+
/**
|
|
67
|
+
* stash all files
|
|
68
|
+
*/
|
|
69
|
+
stashAll(): Promise<any>;
|
|
70
|
+
/**
|
|
71
|
+
* push force to all orgins
|
|
72
|
+
*/
|
|
73
|
+
pushAllForce(): Promise<any>;
|
|
74
|
+
pAllForce(): Promise<any>;
|
|
75
|
+
pAllf(): Promise<any>;
|
|
76
|
+
pAll(): Promise<any>;
|
|
77
|
+
/**
|
|
78
|
+
* push to all origins
|
|
79
|
+
*/
|
|
80
|
+
pushAll(force?: boolean): Promise<any>;
|
|
81
|
+
forcePush(): Promise<any>;
|
|
82
|
+
pushForce(): Promise<any>;
|
|
83
|
+
/**
|
|
84
|
+
* Commit and push this for single repo
|
|
85
|
+
*/
|
|
86
|
+
commit(options?: {
|
|
87
|
+
force?: boolean;
|
|
88
|
+
typeofCommit?: TypeOfCommit;
|
|
89
|
+
origin?: string;
|
|
90
|
+
commitMessageRequired?: boolean;
|
|
91
|
+
noExit?: boolean;
|
|
92
|
+
}): Promise<any>;
|
|
93
|
+
_preventPushPullFromNotCorrectBranch(): Promise<any>;
|
|
94
|
+
qPush(): Promise<any>;
|
|
95
|
+
quickPush(): Promise<any>;
|
|
96
|
+
repushauto(): Promise<any>;
|
|
97
|
+
rePush(skipQuesion?: boolean): Promise<any>;
|
|
98
|
+
push(options?: PushProcessOptions): Promise<void>;
|
|
99
|
+
melt(): Promise<any>;
|
|
100
|
+
meltUp(): Promise<any>;
|
|
101
|
+
meltAll(): Promise<any>;
|
|
102
|
+
private __meltCommitsFunc;
|
|
103
|
+
private meltUpdateCommits;
|
|
104
|
+
pf(): Promise<any>;
|
|
105
|
+
pRel(): Promise<any>;
|
|
106
|
+
pRelease(): Promise<any>;
|
|
107
|
+
pushRelease(): Promise<any>;
|
|
108
|
+
mPush(): Promise<any>;
|
|
109
|
+
fmPush(): Promise<any>;
|
|
110
|
+
mfPush(): Promise<any>;
|
|
111
|
+
mforcePush(): Promise<any>;
|
|
112
|
+
meltforcePush(): Promise<any>;
|
|
113
|
+
forceMeltPush(): Promise<any>;
|
|
114
|
+
meltPush(force?: boolean): Promise<any>;
|
|
115
|
+
pushFeature(): Promise<any>;
|
|
116
|
+
pushFix(): Promise<any>;
|
|
117
|
+
pfix(): any;
|
|
118
|
+
pushChore(): Promise<any>;
|
|
119
|
+
pc(): Promise<any>;
|
|
120
|
+
pushRefactor(): Promise<any>;
|
|
121
|
+
pushref(): Promise<any>;
|
|
122
|
+
pref(): Promise<any>;
|
|
123
|
+
pushStyle(): Promise<any>;
|
|
124
|
+
pstyl(): Promise<any>;
|
|
125
|
+
pstyle(): Promise<any>;
|
|
126
|
+
pushDocs(): Promise<any>;
|
|
127
|
+
pd(): Promise<any>;
|
|
128
|
+
pdocs(): Promise<any>;
|
|
129
|
+
pushTest(): Promise<any>;
|
|
130
|
+
pTest(): Promise<any>;
|
|
131
|
+
pTests(): Promise<any>;
|
|
132
|
+
pushPerf(): Promise<any>;
|
|
133
|
+
pushCi(): Promise<any>;
|
|
134
|
+
branch(): Promise<any>;
|
|
135
|
+
pushBuild(): Promise<any>;
|
|
136
|
+
SET_ORIGIN(): Promise<any>;
|
|
137
|
+
RENAME_ORIGIN(): Promise<any>;
|
|
138
|
+
LAST_TAG_HASH(): Promise<any>;
|
|
139
|
+
LAST_TAG(): Promise<any>;
|
|
140
|
+
CHECK_TAG_EXISTS(): any;
|
|
141
|
+
/**
|
|
142
|
+
* TODO move somewhere
|
|
143
|
+
*/
|
|
144
|
+
lint(): Promise<any>;
|
|
145
|
+
/**
|
|
146
|
+
* TODO move somewhere
|
|
147
|
+
*/
|
|
148
|
+
version(): Promise<any>;
|
|
149
|
+
/**
|
|
150
|
+
* TODO move somewhere
|
|
151
|
+
*/
|
|
152
|
+
init(): Promise<any>;
|
|
153
|
+
/**
|
|
154
|
+
* init parent and first level children
|
|
155
|
+
*/
|
|
156
|
+
initAll(): Promise<any>;
|
|
157
|
+
/**
|
|
158
|
+
* TODO move somewhere
|
|
159
|
+
*/
|
|
160
|
+
struct(): Promise<any>;
|
|
161
|
+
/**
|
|
162
|
+
* TODO move somewhere
|
|
163
|
+
*/
|
|
164
|
+
info(): Promise<any>;
|
|
165
|
+
modified(): Promise<any>;
|
|
166
|
+
refresh(): Promise<void>;
|
|
167
|
+
changes(): Promise<any>;
|
|
168
|
+
allTags(): Promise<any>;
|
|
169
|
+
removeTag(): Promise<any>;
|
|
170
|
+
BRANCH_NAME(): any;
|
|
171
|
+
REMOTES(): any;
|
|
172
|
+
SET_REMOTE_SSH(): Promise<any>;
|
|
173
|
+
SET_REMOTE_http(): Promise<any>;
|
|
174
|
+
SET_REMOTE_https(): Promise<any>;
|
|
175
|
+
protected _resolveChildFromArg(): any;
|
|
176
|
+
origin(): any;
|
|
177
|
+
remote(): any;
|
|
178
|
+
originHttp(): any;
|
|
179
|
+
originHttps(): any;
|
|
180
|
+
originssh(): any;
|
|
181
|
+
origins(): any;
|
|
182
|
+
gitConfig(): any;
|
|
183
|
+
LAST_COMMIT_HASH(): any;
|
|
184
|
+
COMMIT_MESSAGE_BY_HASH(): Promise<any>;
|
|
185
|
+
LAST_5_COMMITS(): Promise<any>;
|
|
186
|
+
updateDepsFrom(): Promise<any>;
|
|
187
|
+
isSupportedTaonTerminal(): any;
|
|
188
|
+
isRunningInWindowsCmd(): any;
|
|
189
|
+
isRunningInWindowsPowerShell(): any;
|
|
190
|
+
INSTALL_PROJECT_EXTENSIONS(): Promise<void>;
|
|
191
|
+
INSTALL_PROJECT_EXT(): Promise<void>;
|
|
192
|
+
INS_PROJ_EXT(): Promise<void>;
|
|
193
|
+
INSTALL_PROJ_EXT(): Promise<void>;
|
|
194
|
+
projdb(): Promise<any>;
|
|
195
|
+
private __filterBranchesByPattern;
|
|
196
|
+
private __selectBrach;
|
|
197
|
+
clone(): Promise<any>;
|
|
198
|
+
ghSave(): Promise<any>;
|
|
199
|
+
ghRestore(): Promise<any>;
|
|
200
|
+
ports(): Promise<any>;
|
|
201
|
+
/**
|
|
202
|
+
* tnp startCliServicePortsWorker --restart
|
|
203
|
+
*/
|
|
204
|
+
startCliServicePortsWorker(): Promise<void>;
|
|
205
|
+
waitForUserAnyKey(): Promise<any>;
|
|
206
|
+
pauseTerminal(): any;
|
|
207
|
+
sleepTerminal(): any;
|
|
208
|
+
ghPagesInit(): Promise<any>;
|
|
209
|
+
isPortInUse(): Promise<any>;
|
|
210
|
+
procInfo(): any;
|
|
211
|
+
processInfo(): any;
|
|
212
|
+
lastGitTag(): any;
|
|
213
|
+
checkPort(): Promise<any>;
|
|
214
|
+
checkPorts(): Promise<any>;
|
|
215
|
+
removeSymlinksDryRun(): any;
|
|
216
|
+
selectJava(): Promise<any>;
|
|
217
|
+
selectTomcat(): Promise<any>;
|
|
218
|
+
LN(): any;
|
|
219
|
+
copy(): any;
|
|
220
|
+
simulateDomain(): Promise<any>;
|
|
221
|
+
preview(): Promise<void>;
|
|
222
|
+
/**
|
|
223
|
+
* read huge file and display only lines with specyfic words
|
|
224
|
+
*/
|
|
225
|
+
shorten(): Promise<any>;
|
|
226
|
+
dumpPackagesVersions(): void;
|
|
227
|
+
zip(): Promise<any>;
|
|
228
|
+
unzip(): Promise<any>;
|
|
229
|
+
startTransmission(): Promise<any>;
|
|
230
|
+
_removeTransmission(): Promise<any>;
|
|
231
|
+
backupBranch(): Promise<any>;
|
|
232
|
+
bb(): Promise<any>;
|
|
233
|
+
countCodeLines(): Promise<any>;
|
|
234
|
+
countCode(): Promise<any>;
|
|
235
|
+
countLines(): Promise<any>;
|
|
236
|
+
isNodeVersionOk(): any;
|
|
237
|
+
pwd(): void;
|
|
238
|
+
more(): Promise<any>;
|
|
239
|
+
less(): Promise<any>;
|
|
240
|
+
/**
|
|
241
|
+
* npm install --global bin-version-check-cli
|
|
242
|
+
* npm i -g yt-dlp
|
|
243
|
+
* choco install ffmpeg
|
|
244
|
+
*/
|
|
245
|
+
MP3(args: any): any;
|
|
246
|
+
MP4(args: any): any;
|
|
247
|
+
gif(): void;
|
|
248
|
+
killZs(): any;
|
|
249
|
+
startZs(): any;
|
|
250
|
+
zsKill(): any;
|
|
251
|
+
zsStart(): any;
|
|
252
|
+
startZscaller(): any;
|
|
253
|
+
killZscaller(): any;
|
|
254
|
+
}
|
|
@@ -58,5 +58,12 @@ export declare class BaseNodeModules<NPM_HELPERS extends BaseNpmHelpers = BaseNp
|
|
|
58
58
|
* (or yarn install)
|
|
59
59
|
*/
|
|
60
60
|
prepareCommand(options: CoreModels.NpmInstallOptions, cwd?: string): Promise<string>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param rootDir
|
|
64
|
+
* @param packageName
|
|
65
|
+
* @returns absolute paths to package dirs
|
|
66
|
+
*/
|
|
67
|
+
private findPackageDirs;
|
|
61
68
|
dedupePackages(packagesConfig?: DedupePackage[], countOnly?: boolean, fake?: boolean): void;
|
|
62
69
|
}
|
|
@@ -39,6 +39,7 @@ export declare class BaseNpmHelpers<PROJECT extends BaseProject = BaseProject> e
|
|
|
39
39
|
children: boolean;
|
|
40
40
|
};
|
|
41
41
|
skipQuestionToUser?: boolean;
|
|
42
|
+
messagePrefix?: string;
|
|
42
43
|
}): Promise<boolean>;
|
|
43
44
|
/**
|
|
44
45
|
* @param registry when not specified, it will use the default npm registry
|
|
@@ -38,7 +38,9 @@ export declare class BaseReleaseProcess<PROJECT extends BaseProject<any, any> =
|
|
|
38
38
|
get toBumpProjects(): PROJECT[];
|
|
39
39
|
bumpNewVersionEverywhere(): Promise<any>;
|
|
40
40
|
confirmNewVersion(): Promise<void>;
|
|
41
|
-
protected selectReleaseType(versionToUseResolveFn?: (releaseVersionBumpType: CoreModels.ReleaseVersionType) => string
|
|
41
|
+
protected selectReleaseType(versionToUseResolveFn?: (releaseVersionBumpType: CoreModels.ReleaseVersionType) => string, options?: {
|
|
42
|
+
quesitonPrefixMessage?: string;
|
|
43
|
+
}): Promise<CoreModels.ReleaseVersionType>;
|
|
42
44
|
protected commitMessageInChangelogTransformFn(message: string): Promise<string>;
|
|
43
45
|
getChangelogContentToAppend(askForEveryItem: boolean): Promise<string>;
|
|
44
46
|
/**
|
|
@@ -19,4 +19,5 @@ export * from './base-quick-fixes';
|
|
|
19
19
|
export * from './base-cli-worker';
|
|
20
20
|
export * from './base-process-manager';
|
|
21
21
|
export * from './base-command-line-feature';
|
|
22
|
-
export * from './base-file-folders-operations';
|
|
22
|
+
export * from './base-file-folders-operations';
|
|
23
|
+
export * from './base-global-command-line';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { BaseProject } from './classes/base-project';
|
|
3
|
+
/**
|
|
4
|
+
* Class to save and restore temporary code
|
|
5
|
+
* TODO fix removing files from repo
|
|
6
|
+
*/
|
|
7
|
+
export declare class GhTempCode {
|
|
8
|
+
private cwd;
|
|
9
|
+
private project;
|
|
10
|
+
constructor(cwd: string, project: BaseProject);
|
|
11
|
+
private GHTEMP_CODE_REPO_PATH;
|
|
12
|
+
private get cwdRepo();
|
|
13
|
+
private get tempPathRepo();
|
|
14
|
+
init(): any;
|
|
15
|
+
save(): Promise<any>;
|
|
16
|
+
restore(): Promise<any>;
|
|
17
|
+
}
|
package/browser/lib/utils.d.ts
CHANGED
|
@@ -192,44 +192,7 @@ export declare namespace UtilsPasswords {
|
|
|
192
192
|
const hashPassword: (password: string) => Promise<string>;
|
|
193
193
|
const verifyPassword: (password: string, stored: string) => Promise<boolean>;
|
|
194
194
|
}
|
|
195
|
-
export declare namespace
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
*
|
|
199
|
-
* Example:
|
|
200
|
-
* embedData({ version: "1.2.3", envName: "__" }, "project.zip")
|
|
201
|
-
* -> "version|-|1.2.3||--||envName|-|__|||project.zip"
|
|
202
|
-
*/
|
|
203
|
-
function embedData<T extends Record<string, any>>(data: T, orgFilename: string, options?: {
|
|
204
|
-
skipAddingBasenameAtEnd?: boolean;
|
|
205
|
-
}): string;
|
|
206
|
-
/**
|
|
207
|
-
* Extract metadata from filename (reverse of embedData).
|
|
208
|
-
*
|
|
209
|
-
* Example:
|
|
210
|
-
* extractData<{ version: string; env: string }>("myfile__version-1.2.3__env-prod.zip")
|
|
211
|
-
* -> { version: "1.2.3", env: "prod" }
|
|
212
|
-
*/
|
|
213
|
-
function extractData<T extends Record<string, any>>(filename: string): T;
|
|
214
|
-
const getOnlyMetadataString: (filename: string) => string;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Easy way to connect CLI commands to cli class methods.
|
|
218
|
-
*
|
|
219
|
-
* Example:
|
|
220
|
-
* in clic class
|
|
221
|
-
* $FirstCli {
|
|
222
|
-
*
|
|
223
|
-
* @UtilsCliMethod.decorator('doSomething')
|
|
224
|
-
* doSomething() {
|
|
225
|
-
* console.log('doing something');
|
|
226
|
-
* }
|
|
227
|
-
* }
|
|
228
|
-
*
|
|
229
|
-
* UtilsCliMethod.getFrom($FirstCli.prototype.doSomething) // "firstcli:dosomething"
|
|
230
|
-
*
|
|
231
|
-
*/
|
|
232
|
-
export declare namespace UtilsCliMethod {
|
|
233
|
-
const decorator: (methodName: string) => MethodDecorator;
|
|
234
|
-
const getFrom: (ClassPrototypeMethodFnHere: Function, globalMethod?: boolean) => string;
|
|
195
|
+
export declare namespace UtilsDocker {
|
|
196
|
+
const DOCKER_LABEL_KEY = "com.docker.compose.project";
|
|
197
|
+
const cleanImagesByDockerLabel: (labelKey: string, labelValue: string) => Promise<void>;
|
|
235
198
|
}
|
package/browser/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Taon } from 'taon';
|
|
2
2
|
import { BaseCliWorkerConfig } from './base-cli-worker-config';
|
|
3
|
-
export declare abstract class BaseCliWorkerController extends Taon.Base
|
|
4
|
-
.Controller {
|
|
3
|
+
export declare abstract class BaseCliWorkerController<UPLOAD_FILE_QUERY_PARAMS = {}> extends Taon.Base.Controller<UPLOAD_FILE_QUERY_PARAMS> {
|
|
5
4
|
/**
|
|
6
5
|
* service id
|
|
7
6
|
*/
|
|
8
7
|
private cliWorkerServiceId;
|
|
9
8
|
private cliWorkerServiceVersion;
|
|
10
9
|
baseCLiWorkerCommand_initializeMetadata(serviceId: string, serviceVersion: string): Taon.Response<void>;
|
|
11
|
-
baseCLiWorkerCommand_kill(): Taon.Response<void>;
|
|
12
|
-
info(): Taon.
|
|
10
|
+
baseCLiWorkerCommand_kill(dontRemoveConfigFile?: boolean): Taon.Response<void>;
|
|
11
|
+
info(): Taon.ResponseHtml;
|
|
13
12
|
baseCLiWorkerCommand_isHealthy(checkingProcessConfig: BaseCliWorkerConfig): Taon.Response<boolean>;
|
|
14
13
|
baseCLiWorkerCommand_hasUpToDateVersion(checkingProcessConfig: BaseCliWorkerConfig): Taon.Response<boolean>;
|
|
15
14
|
}
|