tnp-helpers 19.0.24 → 19.0.26
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/fesm2022/tnp-helpers.mjs +178 -5
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/classes/base-git.d.ts +56 -43
- package/browser/lib/base/classes/base-project.d.ts +3 -1
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/helpers/for-backend/helpers-file-folders.d.ts +3 -1
- package/browser/lib/old/helpers.d.ts +1 -1
- package/browser/lib/utils.d.ts +10 -0
- package/browser/package.json +1 -1
- package/client/package.json +1 -1
- package/lib/base/classes/base-command-line-feature.backend.js +1 -1
- package/lib/base/classes/base-command-line-feature.backend.js.map +1 -1
- package/lib/base/classes/base-git.d.ts +6 -0
- package/lib/base/classes/base-git.js +9 -3
- package/lib/base/classes/base-git.js.map +1 -1
- package/lib/base/classes/base-project.d.ts +3 -1
- package/lib/base/classes/base-project.js +5 -1
- package/lib/base/classes/base-project.js.map +1 -1
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/env/env.angular-node-app.d.ts +4 -0
- package/lib/env/env.angular-node-app.js +10 -0
- package/lib/env/env.angular-node-app.js.map +1 -0
- package/lib/env/env.docs-webapp.d.ts +4 -0
- package/lib/env/env.docs-webapp.js +10 -0
- package/lib/env/env.docs-webapp.js.map +1 -0
- package/lib/env/env.electron-app.d.ts +4 -0
- package/lib/env/env.electron-app.js +10 -0
- package/lib/env/env.electron-app.js.map +1 -0
- package/lib/env/env.mobile-app.d.ts +4 -0
- package/lib/env/env.mobile-app.js +10 -0
- package/lib/env/env.mobile-app.js.map +1 -0
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +4 -0
- package/lib/env/env.npm-lib-and-cli-tool.js +10 -0
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
- package/lib/env/env.vscode-plugin.d.ts +4 -0
- package/lib/env/env.vscode-plugin.js +10 -0
- package/lib/env/env.vscode-plugin.js.map +1 -0
- package/lib/env/index.d.ts +6 -0
- package/lib/env/index.js +23 -0
- package/lib/env/index.js.map +1 -0
- package/lib/helpers/for-backend/helpers-file-folders.d.ts +3 -1
- package/lib/helpers/for-backend/helpers-file-folders.js +8 -7
- package/lib/helpers/for-backend/helpers-file-folders.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.d.ts +4 -4
- package/lib/helpers/for-backend/helpers-git.backend.js +18 -23
- 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.js +38 -24
- package/lib/helpers/helpers.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/old/helpers.d.ts +2 -3
- package/lib/old/helpers.js +3 -9
- package/lib/old/helpers.js.map +1 -1
- package/lib/utils.d.ts +11 -0
- package/lib/utils.js +138 -1
- package/lib/utils.js.map +1 -1
- package/package.json +1 -1
- package/scss/vars.scss +7 -0
- package/tmp-environment.json +4 -10
- package/websql/fesm2022/tnp-helpers.mjs +178 -5
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/classes/base-git.d.ts +56 -43
- package/websql/lib/base/classes/base-project.d.ts +3 -1
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/helpers/for-backend/helpers-file-folders.d.ts +3 -1
- package/websql/lib/old/helpers.d.ts +1 -1
- package/websql/lib/utils.d.ts +10 -0
- package/websql/package.json +1 -1
- package/client/README.md +0 -24
- package/client/fesm2022/tnp-helpers.mjs +0 -14647
- package/client/fesm2022/tnp-helpers.mjs.map +0 -1
- package/client/index.d.ts +0 -6
- package/client/lib/base/classes/base-bower-json.d.ts +0 -35
- package/client/lib/base/classes/base-cli-worker/base-cli-worker-config.d.ts +0 -28
- package/client/lib/base/classes/base-cli-worker/base-cli-worker-controller.d.ts +0 -16
- package/client/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +0 -40
- package/client/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +0 -90
- package/client/lib/base/classes/base-cli-worker/index.d.ts +0 -5
- package/client/lib/base/classes/base-compiler-for-project.d.ts +0 -8
- package/client/lib/base/classes/base-db.d.ts +0 -10
- package/client/lib/base/classes/base-debounce-compiler-for-project.d.ts +0 -29
- package/client/lib/base/classes/base-feature-for-project.d.ts +0 -7
- package/client/lib/base/classes/base-git.d.ts +0 -193
- package/client/lib/base/classes/base-json-file-reader.d.ts +0 -72
- package/client/lib/base/classes/base-library-build.d.ts +0 -62
- package/client/lib/base/classes/base-linked-projects.d.ts +0 -23
- package/client/lib/base/classes/base-node-modules.d.ts +0 -62
- package/client/lib/base/classes/base-npm-helpers.d.ts +0 -52
- package/client/lib/base/classes/base-package-json.d.ts +0 -108
- package/client/lib/base/classes/base-process-manager.d.ts +0 -31
- package/client/lib/base/classes/base-project-resolver.d.ts +0 -41
- package/client/lib/base/classes/base-project.d.ts +0 -245
- package/client/lib/base/classes/base-quick-fixes.d.ts +0 -16
- package/client/lib/base/classes/base-release-process.d.ts +0 -73
- package/client/lib/base/classes/base-static-pages.d.ts +0 -15
- package/client/lib/base/classes/base-vscode.d.ts +0 -37
- package/client/lib/base/classes/index.d.ts +0 -18
- package/client/lib/base/commit-data.d.ts +0 -94
- package/client/lib/base/config-database.d.ts +0 -15
- package/client/lib/base/core-project.d.ts +0 -100
- package/client/lib/base/index.d.ts +0 -6
- package/client/lib/base/linked-project.d.ts +0 -41
- package/client/lib/base/project-database.d.ts +0 -13
- package/client/lib/base/tcp-udp-ports/index.d.ts +0 -4
- package/client/lib/base/tcp-udp-ports/ports.controller.d.ts +0 -29
- package/client/lib/base/tcp-udp-ports/ports.entity.d.ts +0 -19
- package/client/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +0 -26
- package/client/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.d.ts +0 -20
- package/client/lib/base/tcp-udp-ports/tcp-upd-ports.worker.d.ts +0 -9
- package/client/lib/base/translate.d.ts +0 -228
- package/client/lib/build-info._auto-generated_.d.ts +0 -4
- package/client/lib/helpers/for-backend/helpers-file-folders.d.ts +0 -112
- package/client/lib/helpers/for-backend/helpers-process.d.ts +0 -88
- package/client/lib/helpers/for-browser/angular.helper.d.ts +0 -37
- package/client/lib/helpers/for-browser/helpers-browser.d.ts +0 -12
- package/client/lib/helpers/helpers-array-obj.d.ts +0 -32
- package/client/lib/helpers/helpers-numbers.d.ts +0 -8
- package/client/lib/helpers/helpers-strings-regexes.d.ts +0 -29
- package/client/lib/helpers/helpers-strings.d.ts +0 -56
- package/client/lib/helpers/helpers.d.ts +0 -93
- package/client/lib/index.d.ts +0 -10
- package/client/lib/models.d.ts +0 -141
- package/client/lib/old/execute-command.d.ts +0 -12
- package/client/lib/old/helpers.d.ts +0 -62
- package/client/lib/old/models.d.ts +0 -81
- package/client/lib/utils.d.ts +0 -153
- package/client/lib/validators/validators-git.d.ts +0 -4
- package/client/lib/validators/validators-network.d.ts +0 -4
- package/client/lib/validators/validators.d.ts +0 -7
- package/client/migrations/1736198527297_init.d.ts +0 -19
- package/client/migrations/1736199486472_addingNotAssignablePorts.d.ts +0 -11
- package/client/migrations/1736454437350_addFreePorts.d.ts +0 -10
- package/client/migrations/index.d.ts +0 -2
- package/client/migrations/migrations_index._auto-generated_.d.ts +0 -12
- package/client/public-api.d.ts +0 -2
package/client/index.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { BaseJsonFileReader } from './base-json-file-reader';
|
|
3
|
-
/**
|
|
4
|
-
* Minimal interface describing a bower.json file according to:
|
|
5
|
-
* https://github.com/bower/spec/blob/master/json.md
|
|
6
|
-
*/
|
|
7
|
-
export interface BowerJson {
|
|
8
|
-
name: string;
|
|
9
|
-
version?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
main?: string | string[];
|
|
12
|
-
keywords?: string[];
|
|
13
|
-
authors?: Array<string | {
|
|
14
|
-
name: string;
|
|
15
|
-
email?: string;
|
|
16
|
-
homepage?: string;
|
|
17
|
-
}>;
|
|
18
|
-
license?: string;
|
|
19
|
-
homepage?: string;
|
|
20
|
-
private?: boolean;
|
|
21
|
-
repository?: {
|
|
22
|
-
type: string;
|
|
23
|
-
url: string;
|
|
24
|
-
};
|
|
25
|
-
ignore?: string[];
|
|
26
|
-
dependencies?: Record<string, string>;
|
|
27
|
-
devDependencies?: Record<string, string>;
|
|
28
|
-
resolutions?: Record<string, string>;
|
|
29
|
-
moduleType?: string | string[];
|
|
30
|
-
}
|
|
31
|
-
export declare class BaseBowerJson extends BaseJsonFileReader<BowerJson> {
|
|
32
|
-
cwd: string;
|
|
33
|
-
constructor(cwd: string);
|
|
34
|
-
get dependencies(): Record<string, string>;
|
|
35
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
export declare class BaseCliWorkerConfig {
|
|
3
|
-
static from(opt: Partial<BaseCliWorkerConfig>): BaseCliWorkerConfig;
|
|
4
|
-
/**
|
|
5
|
-
* port taken by service
|
|
6
|
-
*/
|
|
7
|
-
port: number;
|
|
8
|
-
/**
|
|
9
|
-
* unique in whole system id of service
|
|
10
|
-
*/
|
|
11
|
-
serviceID: string;
|
|
12
|
-
/**
|
|
13
|
-
* pid of service process
|
|
14
|
-
*/
|
|
15
|
-
pid: number;
|
|
16
|
-
/**
|
|
17
|
-
* timestamp when service was started
|
|
18
|
-
* (in other cases = null)
|
|
19
|
-
*/
|
|
20
|
-
startTimestamp: number;
|
|
21
|
-
/**
|
|
22
|
-
* version
|
|
23
|
-
*/
|
|
24
|
-
version: string;
|
|
25
|
-
hasBiggerOrEqualWorkerVersionThan(other: BaseCliWorkerConfig): boolean;
|
|
26
|
-
isEquals(other: BaseCliWorkerConfig): boolean;
|
|
27
|
-
get isEmpty(): boolean;
|
|
28
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Taon } from 'taon/browser';
|
|
3
|
-
import { BaseCliWorkerConfig } from './base-cli-worker-config';
|
|
4
|
-
export declare abstract class BaseCliWorkerController extends Taon.Base
|
|
5
|
-
.Controller {
|
|
6
|
-
/**
|
|
7
|
-
* service id
|
|
8
|
-
*/
|
|
9
|
-
private cliWorkerServiceId;
|
|
10
|
-
private cliWorkerServiceVersion;
|
|
11
|
-
baseCLiWorkerCommand_initializeMetadata(serviceId: string, serviceVersion: string): Taon.Response<void>;
|
|
12
|
-
baseCLiWorkerCommand_kill(): Taon.Response<void>;
|
|
13
|
-
info(): Taon.Response<string>;
|
|
14
|
-
baseCLiWorkerCommand_isHealthy(checkingProcessConfig: BaseCliWorkerConfig): Taon.Response<boolean>;
|
|
15
|
-
baseCLiWorkerCommand_hasUpToDateVersion(checkingProcessConfig: BaseCliWorkerConfig): Taon.Response<boolean>;
|
|
16
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import type { CfontAlign, CfontStyle } from '../../../models';
|
|
3
|
-
import type { BaseCliWorker } from './base-cli-worker';
|
|
4
|
-
import type { BaseCliWorkerController } from './base-cli-worker-controller';
|
|
5
|
-
export declare class BaseCliWorkerTerminalUI<WORKER extends BaseCliWorker<BaseCliWorkerController, any>> {
|
|
6
|
-
protected worker: WORKER;
|
|
7
|
-
constructor(worker: WORKER);
|
|
8
|
-
protected headerText(): Promise<string>;
|
|
9
|
-
protected textHeaderStyle(): CfontStyle;
|
|
10
|
-
protected headerTextAlign(): CfontAlign;
|
|
11
|
-
/**
|
|
12
|
-
* override whole terminal header
|
|
13
|
-
*/
|
|
14
|
-
protected header(): Promise<void>;
|
|
15
|
-
infoMessageBelowHeader(): Promise<void>;
|
|
16
|
-
protected get backAction(): {
|
|
17
|
-
back: {
|
|
18
|
-
name: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
protected get chooseAction(): {
|
|
22
|
-
emptyAction: {
|
|
23
|
-
name: string;
|
|
24
|
-
action: () => Promise<void>;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
protected getWorkerTerminalActions(options?: {
|
|
28
|
-
exitIsOnlyReturn?: boolean;
|
|
29
|
-
chooseAction?: boolean;
|
|
30
|
-
}): {
|
|
31
|
-
[uniqeActionName: string]: {
|
|
32
|
-
name: string;
|
|
33
|
-
action: () => unknown | Promise<unknown>;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
infoScreen(options?: {
|
|
37
|
-
exitIsOnlyReturn?: boolean;
|
|
38
|
-
}): Promise<void>;
|
|
39
|
-
displaySpecialWorkerReadyMessage(): void;
|
|
40
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Taon } from 'taon/browser';
|
|
3
|
-
import { BaseCliWorkerConfig } from './base-cli-worker-config';
|
|
4
|
-
import type { BaseCliWorkerController } from './base-cli-worker-controller';
|
|
5
|
-
import { BaseCliWorkerTerminalUI } from './base-cli-worker-terminal-ui';
|
|
6
|
-
export declare abstract class BaseCliWorker<REMOTE_CTRL extends BaseCliWorkerController, TERMINAL_UI extends BaseCliWorkerTerminalUI<any>> {
|
|
7
|
-
/**
|
|
8
|
-
* unique id for service
|
|
9
|
-
*/
|
|
10
|
-
readonly serviceID: string;
|
|
11
|
-
/**
|
|
12
|
-
* external command that will start service
|
|
13
|
-
*/
|
|
14
|
-
readonly startCommand: string;
|
|
15
|
-
/**
|
|
16
|
-
* unique id for service
|
|
17
|
-
*/
|
|
18
|
-
readonly serviceVersion: string;
|
|
19
|
-
readonly SPECIAL_WORKER_READY_MESSAGE = "$$$ WORKER_READY $$$";
|
|
20
|
-
readonly terminalUI: TERMINAL_UI;
|
|
21
|
-
readonly workerContextTemplate: ReturnType<typeof Taon.createContextTemplate>;
|
|
22
|
-
private workerMainContext;
|
|
23
|
-
private workerRemoteContext;
|
|
24
|
-
readonly controllerClass: new () => REMOTE_CTRL;
|
|
25
|
-
private contextForRemoteConnection;
|
|
26
|
-
protected get pathToProcessLocalInfoJson(): string;
|
|
27
|
-
get processLocalInfoObj(): BaseCliWorkerConfig;
|
|
28
|
-
constructor(
|
|
29
|
-
/**
|
|
30
|
-
* unique id for service
|
|
31
|
-
*/
|
|
32
|
-
serviceID: string,
|
|
33
|
-
/**
|
|
34
|
-
* external command that will start service
|
|
35
|
-
*/
|
|
36
|
-
startCommand: string,
|
|
37
|
-
/**
|
|
38
|
-
* unique id for service
|
|
39
|
-
*/
|
|
40
|
-
serviceVersion: string);
|
|
41
|
-
/**
|
|
42
|
-
* start normally process
|
|
43
|
-
* this will crash if process already started
|
|
44
|
-
*/
|
|
45
|
-
protected startNormallyInCurrentProcess(): Promise<void>;
|
|
46
|
-
getControllerForRemoteConnection(): Promise<REMOTE_CTRL>;
|
|
47
|
-
startDetachedIfNeedsToBeStarted(options?: {
|
|
48
|
-
useCurrentWindowForDetach?: boolean;
|
|
49
|
-
}): Promise<any>;
|
|
50
|
-
/**
|
|
51
|
-
* stop if started
|
|
52
|
-
*/
|
|
53
|
-
kill(options?: {
|
|
54
|
-
dontRemoveConfigFile?: boolean;
|
|
55
|
-
}): Promise<any>;
|
|
56
|
-
/**
|
|
57
|
-
* kill detached process and start again
|
|
58
|
-
* @param options.detached - default true
|
|
59
|
-
*/
|
|
60
|
-
restart(options?: {
|
|
61
|
-
detached?: boolean;
|
|
62
|
-
useCurrentWindowForDetach?: boolean;
|
|
63
|
-
}): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* only for cli start
|
|
66
|
-
* @param cliParams on from cli
|
|
67
|
-
*/
|
|
68
|
-
cliStartProcedure(cliParams: any): Promise<any>;
|
|
69
|
-
protected preventExternalConfigChange(): any;
|
|
70
|
-
protected preventStartIfAlreadyStarted(): Promise<void>;
|
|
71
|
-
protected killWorkerWithLowerVersion(): Promise<void>;
|
|
72
|
-
/**
|
|
73
|
-
* This has 2 purposes:
|
|
74
|
-
* - infinite check when when detached process finished starting
|
|
75
|
-
* - quick check if service is healthy / already started
|
|
76
|
-
*/
|
|
77
|
-
protected isServiceHealthy(options: {
|
|
78
|
-
healthCheckRequestTrys?: number;
|
|
79
|
-
}): Promise<boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* start if not started detached process
|
|
82
|
-
*/
|
|
83
|
-
protected startDetached(options?: {
|
|
84
|
-
useCurrentWindowForDetach?: boolean;
|
|
85
|
-
}): Promise<void>;
|
|
86
|
-
private saveProcessInfo;
|
|
87
|
-
protected initializeWorkerMetadata(): Promise<any>;
|
|
88
|
-
protected waitForProcessPortSavedToDisk(): Promise<void>;
|
|
89
|
-
getServicePort(): Promise<number>;
|
|
90
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { IncCompiler } from 'incremental-compiler/browser';
|
|
3
|
-
import { BaseProject } from './base-project';
|
|
4
|
-
export declare abstract class BaseCompilerForProject<ADDITIONAL_DATA = any, PROJECT extends BaseProject = BaseProject> extends IncCompiler.Base<ADDITIONAL_DATA> {
|
|
5
|
-
project: PROJECT;
|
|
6
|
-
protected checkFolderCompiler(project: PROJECT, options: IncCompiler.Models.BaseClientCompilerOptions, dontCheck?: boolean): any;
|
|
7
|
-
constructor(project: PROJECT, options?: IncCompiler.Models.BaseClientCompilerOptions, allowFolderOutSideProject?: boolean);
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import type { BaseProjectResolver } from "./base-project-resolver";
|
|
3
|
-
export declare class BaseDb<DB extends object> {
|
|
4
|
-
private ins;
|
|
5
|
-
private dbName;
|
|
6
|
-
private defaultDb;
|
|
7
|
-
constructor(ins: BaseProjectResolver, dbName: string, defaultDb: DB);
|
|
8
|
-
get isUsingDB(): boolean;
|
|
9
|
-
get projectsDbLocation(): any;
|
|
10
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { ChangeOfFile } from 'incremental-compiler/browser';
|
|
3
|
-
import { BaseCompilerForProject } from './base-compiler-for-project';
|
|
4
|
-
import { BaseProject } from './base-project';
|
|
5
|
-
export declare abstract class BaseDebounceCompilerForProject<ADDITIONAL_DATA = any, PROJECT extends BaseProject = BaseProject> extends BaseCompilerForProject<ADDITIONAL_DATA, PROJECT> {
|
|
6
|
-
protected initialParams: ADDITIONAL_DATA;
|
|
7
|
-
/**
|
|
8
|
-
* default debounce time is 1s
|
|
9
|
-
*/
|
|
10
|
-
protected debounceTime: number;
|
|
11
|
-
abstract action({ changeOfFiles, asyncEvent, }: {
|
|
12
|
-
changeOfFiles: ChangeOfFile[];
|
|
13
|
-
asyncEvent: boolean;
|
|
14
|
-
}): any;
|
|
15
|
-
/**
|
|
16
|
-
* current files that are in project
|
|
17
|
-
*/
|
|
18
|
-
protected exitedFilesAbsPathes: string[];
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated use action() instead
|
|
21
|
-
*/
|
|
22
|
-
syncAction(absFilesPathes: string[], initialParams: ADDITIONAL_DATA): Promise<void>;
|
|
23
|
-
private lastAsyncFilesChanges;
|
|
24
|
-
private debounceAction;
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated use action() instead
|
|
27
|
-
*/
|
|
28
|
-
asyncAction(asyncEvents: ChangeOfFile, initialParams?: ADDITIONAL_DATA): Promise<void>;
|
|
29
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { BaseProject } from './base-project';
|
|
3
|
-
export declare abstract class BaseFeatureForProject<PROJECT extends BaseProject<any, any> = BaseProject<any, any>> {
|
|
4
|
-
protected project: PROJECT;
|
|
5
|
-
get ins(): import("tnp-helpers/browser").BaseProjectResolver<any>;
|
|
6
|
-
constructor(project: PROJECT);
|
|
7
|
-
}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CommitData, PushProcessOptions, TypeOfCommit } from '../../index';
|
|
3
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
4
|
-
import type { BaseProject } from './base-project';
|
|
5
|
-
export declare class BaseGit<PROJECT extends BaseProject = any> extends BaseFeatureForProject<PROJECT> {
|
|
6
|
-
unstageAllFiles(): any;
|
|
7
|
-
revertFileChanges(fileReletivePath: string): any;
|
|
8
|
-
clone(url: string, destinationFolderName?: string, branchName?: string): Promise<any>;
|
|
9
|
-
restoreLastVersion(relativeFilePath: string): void;
|
|
10
|
-
stageAllFiles(): void;
|
|
11
|
-
stageFile(relativeFilePath: string): void;
|
|
12
|
-
stash(options?: {
|
|
13
|
-
onlyStaged?: boolean;
|
|
14
|
-
}): any;
|
|
15
|
-
rebase(toBranch: string): any;
|
|
16
|
-
stashApply(): void;
|
|
17
|
-
fetch(all?: boolean): any;
|
|
18
|
-
resetFiles(...relativePathes: string[]): any;
|
|
19
|
-
get isInsideGitRepo(): any;
|
|
20
|
-
get isWithoutGitRepository(): any;
|
|
21
|
-
get isGitRoot(): any;
|
|
22
|
-
get originURL(): any;
|
|
23
|
-
commit(commitMessage?: string): void;
|
|
24
|
-
/**
|
|
25
|
-
* alias to stage all and commit
|
|
26
|
-
*/
|
|
27
|
-
addAndCommit(commitMessage: string): any;
|
|
28
|
-
/**
|
|
29
|
-
* general default development branch for all kinds of projects
|
|
30
|
-
*/
|
|
31
|
-
getDefaultDevelopmentBranch(): string;
|
|
32
|
-
isUsingActionCommit(): boolean;
|
|
33
|
-
jiraIssuesAreOutsideBrackets(): boolean;
|
|
34
|
-
getUserInfo(global?: boolean): Promise<{
|
|
35
|
-
name?: string;
|
|
36
|
-
email?: string;
|
|
37
|
-
}>;
|
|
38
|
-
setUserInfo({ name, email }: {
|
|
39
|
-
name?: string;
|
|
40
|
-
email?: string;
|
|
41
|
-
}, global?: boolean): Promise<void>;
|
|
42
|
-
stageAllAndCommit(commitMessage: string): any;
|
|
43
|
-
pushCurrentBranch(options?: {
|
|
44
|
-
force?: boolean;
|
|
45
|
-
origin?: string;
|
|
46
|
-
askToRetry?: boolean;
|
|
47
|
-
forcePushNoQuestion?: boolean;
|
|
48
|
-
}): Promise<any>;
|
|
49
|
-
get allOrigins(): any;
|
|
50
|
-
get uncommitedFiles(): any;
|
|
51
|
-
get thereAreSomeUncommitedChange(): any;
|
|
52
|
-
thereAreSomeUncommitedChangeExcept(filesList?: string[]): any;
|
|
53
|
-
/**
|
|
54
|
-
* Resolve last changes
|
|
55
|
-
* - uncommited changes
|
|
56
|
-
* - action commits to melt
|
|
57
|
-
*/
|
|
58
|
-
resolveLastChanges(options?: {
|
|
59
|
-
tryAutomaticActionFirst?: boolean;
|
|
60
|
-
projectNameAsOutputPrefix?: string;
|
|
61
|
-
}): Promise<void>;
|
|
62
|
-
get hasActionCommitsToMelt(): boolean;
|
|
63
|
-
meltActionCommits(): void;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @param newVersion
|
|
67
|
-
* @param pushWithoutAsking
|
|
68
|
-
*/
|
|
69
|
-
tagAndPushToGitRepo(newVersion: string, autoReleaseUsingConfig: boolean, isCiProcess: boolean): Promise<void>;
|
|
70
|
-
pullCurrentBranch(options?: {
|
|
71
|
-
askToRetry?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* default true, when false it will throw error instead process.exit(0)
|
|
74
|
-
*/
|
|
75
|
-
exitOnError?: boolean;
|
|
76
|
-
defaultHardResetCommits?: number;
|
|
77
|
-
}): Promise<any>;
|
|
78
|
-
get currentBranchName(): any;
|
|
79
|
-
get listOfCurrentGitChanges(): any;
|
|
80
|
-
getBranchesNamesBy(pattern: string | RegExp): any;
|
|
81
|
-
resetSoftHEAD(HEAD?: number): void;
|
|
82
|
-
resetHard(options?: {
|
|
83
|
-
HEAD?: number;
|
|
84
|
-
}): any;
|
|
85
|
-
countComits(): any;
|
|
86
|
-
hasAnyCommits(): any;
|
|
87
|
-
get isInMergeProcess(): any;
|
|
88
|
-
lastCommitDate(): any;
|
|
89
|
-
lastCommitHash(): any;
|
|
90
|
-
lastCommitMessage(): string;
|
|
91
|
-
penultimateCommitMessage(): Promise<string>;
|
|
92
|
-
getCommitMessageByIndex(index: number): Promise<any>;
|
|
93
|
-
getCommitMessageByHash(hash: string): Promise<any>;
|
|
94
|
-
getCommitHashByIndex(index: number): Promise<any>;
|
|
95
|
-
penultimateCommitHash(): any;
|
|
96
|
-
checkTagExists(tag: string): any;
|
|
97
|
-
checkout(branchName: string, options?: {
|
|
98
|
-
createBranchIfNotExists?: boolean;
|
|
99
|
-
fetchBeforeCheckout?: boolean;
|
|
100
|
-
switchBranchWhenExists?: boolean;
|
|
101
|
-
}): void;
|
|
102
|
-
allowedGitEmailDomains(): string[];
|
|
103
|
-
cleanRepoFromAnyFilesExceptDotGitFolder(): void;
|
|
104
|
-
checkoutFromTo(checkoutFromBranch: string, branch: string, origin?: string): any;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @param majorVersion example: v1, v2 etc.
|
|
108
|
-
* @returns tag name
|
|
109
|
-
*/
|
|
110
|
-
lastTagNameForMajorVersion(majorVersion: any): any;
|
|
111
|
-
lastTagHash(): any;
|
|
112
|
-
get remoteOriginUrl(): any;
|
|
113
|
-
/**
|
|
114
|
-
* get provider of remote origin
|
|
115
|
-
*/
|
|
116
|
-
get remoteProvider(): string;
|
|
117
|
-
get lastTagVersionName(): any;
|
|
118
|
-
get stagedFiles(): string[];
|
|
119
|
-
get stagedFilesRelativePaths(): string[];
|
|
120
|
-
/**
|
|
121
|
-
* TODO does this make any sense
|
|
122
|
-
*/
|
|
123
|
-
renameOrigin(newNameOrUlr: string): any;
|
|
124
|
-
/**
|
|
125
|
-
* By default no translation of commit
|
|
126
|
-
*/
|
|
127
|
-
transalteGitCommitFromArgs(): {
|
|
128
|
-
from: string;
|
|
129
|
-
to: string;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* By defult true.. when commit branches will not function.
|
|
133
|
-
* (false is better for simple projects)
|
|
134
|
-
*/
|
|
135
|
-
useGitBranchesWhenCommitingAndPushing(): boolean;
|
|
136
|
-
/**
|
|
137
|
-
* usefull when pushing in project with childrens as git repos
|
|
138
|
-
*/
|
|
139
|
-
automaticallyAddAllChangesWhenPushingToGit(): boolean;
|
|
140
|
-
/**
|
|
141
|
-
* usefull when pushing in project with childrens as git repos
|
|
142
|
-
*/
|
|
143
|
-
useGitBranchesAsMetadataForCommits(): boolean;
|
|
144
|
-
cloneTo(cwd: string, newProjectName?: string): Promise<any>;
|
|
145
|
-
/**
|
|
146
|
-
* This is only for push/pull process
|
|
147
|
-
*
|
|
148
|
-
* There are 2 types of projects:
|
|
149
|
-
* - with linked-projects.json
|
|
150
|
-
* - with children from external folder
|
|
151
|
-
*
|
|
152
|
-
* projects that are children of this project (with its own git repo)
|
|
153
|
-
*/
|
|
154
|
-
get gitChildren(): PROJECT[];
|
|
155
|
-
protected setRemoteOriginType(setOrigin: 'ssh' | 'http'): Promise<void>;
|
|
156
|
-
pullProcess(options?: {
|
|
157
|
-
skipCloneGitChildren?: boolean;
|
|
158
|
-
setOrigin?: 'ssh' | 'http';
|
|
159
|
-
}): Promise<void>;
|
|
160
|
-
private validateEmailDomain;
|
|
161
|
-
protected _afterPullProcessAction(setOrigin: 'ssh' | 'http'): Promise<void>;
|
|
162
|
-
pushProcess(options?: PushProcessOptions): Promise<void>;
|
|
163
|
-
_beforeAnyActionOnGitRoot(): any;
|
|
164
|
-
protected _beforePushProcessAction(setOrigin: 'ssh' | 'http'): Promise<any>;
|
|
165
|
-
protected _beforePullProcessAction(setOrigin: 'ssh' | 'http', skipCloneGitChildren?: boolean): Promise<any>;
|
|
166
|
-
protected _getCommitMessage(typeOfCommit: TypeOfCommit, args: string[], commitMessageRequired?: boolean,
|
|
167
|
-
/**
|
|
168
|
-
* only needed when push github
|
|
169
|
-
* and I forgot to add my username before issue
|
|
170
|
-
* taon pfix proper input my-repo#344
|
|
171
|
-
* that should be
|
|
172
|
-
* taon pfix proper input my-username/my-repo#344
|
|
173
|
-
*/
|
|
174
|
-
currentOrigin?: string): Promise<CommitData>;
|
|
175
|
-
/**
|
|
176
|
-
* This will prevent accidental branch change for taon projects
|
|
177
|
-
* @returns branch name
|
|
178
|
-
*/
|
|
179
|
-
duringPushWarnIfProjectNotOnSpecyficDevBranch(): string;
|
|
180
|
-
getChangedFilesInCommitByHash(hash: string): Promise<any>;
|
|
181
|
-
/**
|
|
182
|
-
* @param index 0 - means last commit
|
|
183
|
-
*/
|
|
184
|
-
getChangedFilesInCommitByIndex(index: number): Promise<any>;
|
|
185
|
-
changesSummary(): Promise<any>;
|
|
186
|
-
/**
|
|
187
|
-
* If true command navi reset will reset project
|
|
188
|
-
* and its children.
|
|
189
|
-
*
|
|
190
|
-
* If false command navi reset will reset only project.
|
|
191
|
-
*/
|
|
192
|
-
resetIsRestingAlsoChildren(): boolean;
|
|
193
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
export interface BaseJsonFileReaderOptions<DATA> {
|
|
3
|
-
/**
|
|
4
|
-
* cwd for <my-json>.json
|
|
5
|
-
* <cwd>/<my-json>
|
|
6
|
-
* (you can also provide full path - basename will be cut)
|
|
7
|
-
*/
|
|
8
|
-
cwd?: string;
|
|
9
|
-
/**
|
|
10
|
-
* file name
|
|
11
|
-
* example: package.json, taon.json etc.
|
|
12
|
-
*/
|
|
13
|
-
fileName?: string;
|
|
14
|
-
/**
|
|
15
|
-
* json content to read from memory
|
|
16
|
-
*/
|
|
17
|
-
jsonContent?: Partial<DATA>;
|
|
18
|
-
/**
|
|
19
|
-
* callback for external reload
|
|
20
|
-
*/
|
|
21
|
-
reloadInMemoryCallback?: (data: DATA) => void;
|
|
22
|
-
/**
|
|
23
|
-
* use json with comments reader to read json file
|
|
24
|
-
*/
|
|
25
|
-
readJsonAsJsonWithComments?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* default value for data
|
|
28
|
-
* if file not exist
|
|
29
|
-
* (ONLY FOR cwd + fileName mode)
|
|
30
|
-
*/
|
|
31
|
-
defaultValue?: Partial<DATA>;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Base class for reading json files
|
|
35
|
-
* There are 2 modes of reading json files:
|
|
36
|
-
* - cwd + fileName (read and write to disk in cwd)
|
|
37
|
-
* - jsonContent (read and write to memory and use
|
|
38
|
-
* reloadInMemoryCallback for external reload)
|
|
39
|
-
*/
|
|
40
|
-
export declare class BaseJsonFileReader<DATA> {
|
|
41
|
-
/**
|
|
42
|
-
* null when package.json not exist
|
|
43
|
-
*/
|
|
44
|
-
protected data: DATA | null;
|
|
45
|
-
/**
|
|
46
|
-
* use json with comments reader to read package.json
|
|
47
|
-
*/
|
|
48
|
-
protected readonly readJsonAsJsonWithComments: boolean;
|
|
49
|
-
readonly cwd: string;
|
|
50
|
-
protected readonly fileName: string;
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated
|
|
53
|
-
* use only when cwd and fileName are not provided
|
|
54
|
-
*/
|
|
55
|
-
protected readonly jsonContent?: Partial<DATA>;
|
|
56
|
-
protected readonly defaultValue?: Partial<DATA>;
|
|
57
|
-
protected readonly reloadInMemoryCallback?: (data: DATA) => void;
|
|
58
|
-
constructor(options: BaseJsonFileReaderOptions<DATA>);
|
|
59
|
-
/**
|
|
60
|
-
* cwd + fileName
|
|
61
|
-
*/
|
|
62
|
-
get path(): string;
|
|
63
|
-
/**
|
|
64
|
-
* if something else change package.json in this project
|
|
65
|
-
* and you know that you need to reload it..
|
|
66
|
-
*/
|
|
67
|
-
reloadPackageJsonInMemory(): void;
|
|
68
|
-
saveToDisk(purpose?: string): any;
|
|
69
|
-
linkTo(destination: string): void;
|
|
70
|
-
getAllData(): DATA;
|
|
71
|
-
setAllData(data: DATA): void;
|
|
72
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { LibrariesBuildOptions, LibraryBuildCommandOptions } from '../../models';
|
|
3
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
4
|
-
import type { BaseProject } from './base-project';
|
|
5
|
-
/**
|
|
6
|
-
* Base library build for standard angular/typescript projects
|
|
7
|
-
*/
|
|
8
|
-
export declare abstract class BaseLibraryBuild<PROJECT extends BaseProject<BaseProject, any>> extends BaseFeatureForProject<PROJECT> {
|
|
9
|
-
private cache;
|
|
10
|
-
protected readonly tempOrgTsConfigFile: string;
|
|
11
|
-
protected sortByDeps(libraries: PROJECT[]): PROJECT[];
|
|
12
|
-
/**
|
|
13
|
-
* Use cases:
|
|
14
|
-
* 1. build all libraries in normal mode
|
|
15
|
-
* 2. build all libraries in watch mode
|
|
16
|
-
* 3. build selected libraries in normal mode
|
|
17
|
-
* (with first time all libraries will be build)
|
|
18
|
-
* 4. build selected libraries in watch mode
|
|
19
|
-
* (use normal build for not selected libraries)
|
|
20
|
-
* 5. build selected libraries in watch mode
|
|
21
|
-
* (skip normal build for not selected libraries)
|
|
22
|
-
*/
|
|
23
|
-
selectAndSaveLibraries({ selectedLibs, watch, watchBuildSupported, skipAllLibsQuestion, useLastUserConfiguration, }: {
|
|
24
|
-
selectedLibs: PROJECT[];
|
|
25
|
-
watch: boolean;
|
|
26
|
-
watchBuildSupported?: boolean;
|
|
27
|
-
skipAllLibsQuestion?: boolean;
|
|
28
|
-
useLastUserConfiguration?: boolean;
|
|
29
|
-
}): Promise<{
|
|
30
|
-
selectedLibs: PROJECT[];
|
|
31
|
-
skipRebuildingAllForWatch: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
/**
|
|
34
|
-
* angular libraries from angular.json
|
|
35
|
-
*/
|
|
36
|
-
get libraries(): PROJECT[];
|
|
37
|
-
protected getLibraries(): any;
|
|
38
|
-
/**
|
|
39
|
-
* Angular library build
|
|
40
|
-
*/
|
|
41
|
-
buildLibraries({ watch, strategy, releaseBuild, copylink_to_node_modules, outputLineReplace, libraries, useLastUserConfiguration, }?: LibrariesBuildOptions<PROJECT> & {
|
|
42
|
-
watch?: boolean;
|
|
43
|
-
}): Promise<void>;
|
|
44
|
-
protected libWatchBuildProcess({ lib, locationsForNodeModules, strategy, outputLineReplace, }: {
|
|
45
|
-
lib: PROJECT;
|
|
46
|
-
locationsForNodeModules: string[];
|
|
47
|
-
strategy: 'link' | 'copy';
|
|
48
|
-
outputLineReplace?: (outputLine: string) => string;
|
|
49
|
-
}): Promise<any>;
|
|
50
|
-
protected libNormalBuildProcess({ lib, locationsForNodeModules, strategy, outputLineReplace, }: {
|
|
51
|
-
lib: PROJECT;
|
|
52
|
-
locationsForNodeModules: string[];
|
|
53
|
-
strategy: 'link' | 'copy';
|
|
54
|
-
outputLineReplace?: (outputLine: string) => string;
|
|
55
|
-
}): Promise<any>;
|
|
56
|
-
getLibraryBuildCommand(options?: LibraryBuildCommandOptions): string | undefined;
|
|
57
|
-
get getLibraryBuildSuccessComamnds(): string[];
|
|
58
|
-
selectCopytoProjects(): Promise<string[]>;
|
|
59
|
-
private changeTsConfigForLibrariesTypes;
|
|
60
|
-
protected replaceTsConfigsPathes(): Promise<any>;
|
|
61
|
-
private restoreOriginalTsConfig;
|
|
62
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { LinkedPorjectsConfig, LinkedProject } from '../../index';
|
|
3
|
-
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
4
|
-
import type { BaseProject } from './base-project';
|
|
5
|
-
export declare class BaseLinkedProjects<PROJECT extends BaseProject = any> extends BaseFeatureForProject<PROJECT> {
|
|
6
|
-
private cache;
|
|
7
|
-
get embeddedProject(): PROJECT;
|
|
8
|
-
get projectsDbLocation(): any;
|
|
9
|
-
saveLocationToDB(): Promise<any>;
|
|
10
|
-
saveAllLinkedProjectsToDB(): Promise<void>;
|
|
11
|
-
addLinkedProject(linkedProj: LinkedProject | string): any;
|
|
12
|
-
addLinkedProjects(linkedProjs: LinkedProject[]): any;
|
|
13
|
-
setLinkedProjectsConfig(linkedPorjectsConfig: Partial<LinkedPorjectsConfig>): any;
|
|
14
|
-
private get linkedProjectsConfigPath();
|
|
15
|
-
private get linkedProjectsConfigTempPath();
|
|
16
|
-
protected recreateLinkedProjectsConfig(): any;
|
|
17
|
-
getLinkedProjectsConfig(): LinkedPorjectsConfig;
|
|
18
|
-
get linkedProjects(): LinkedProject[];
|
|
19
|
-
get detectedLinkedProjects(): LinkedProject[];
|
|
20
|
-
get linkedProjectsPrefix(): string;
|
|
21
|
-
resetLinkedProjectsOnlyToCoreBranches(): boolean;
|
|
22
|
-
cloneUnexistedLinkedProjects(setOrigin: 'ssh' | 'http'): Promise<any>;
|
|
23
|
-
}
|