tnp-helpers 18.0.9 → 18.0.12
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/assets/shared/shared_folder_info.txt +1 -1
- package/browser/README.md +24 -24
- package/browser/esm2022/lib/base/base-compiler-for-project.mjs +48 -0
- package/browser/esm2022/lib/base/base-debounce-compiler-for-project.mjs +37 -0
- package/browser/esm2022/lib/base/base-git.mjs +49 -2
- package/browser/esm2022/lib/base/base-project.mjs +97 -26
- package/browser/esm2022/lib/base/base-vscode.mjs +32 -4
- package/browser/esm2022/lib/base/commit-data.mjs +8 -1
- package/browser/esm2022/lib/base/index.mjs +4 -1
- package/browser/esm2022/lib/helpers/helpers-array-obj.mjs +31 -25
- package/browser/esm2022/lib/helpers/helpers.mjs +5 -1
- package/browser/esm2022/lib/utils.mjs +250 -1
- package/browser/fesm2022/tnp-helpers.mjs +637 -53
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-compiler-for-project.d.ts +6 -0
- package/browser/lib/base/base-debounce-compiler-for-project.d.ts +21 -0
- package/browser/lib/base/base-git.d.ts +3 -1
- package/browser/lib/base/base-npm-helpers.d.ts +4 -4
- package/browser/lib/base/base-project.d.ts +23 -9
- package/browser/lib/base/base-vscode.d.ts +7 -1
- package/browser/lib/base/commit-data.d.ts +1 -0
- package/browser/lib/base/index.d.ts +3 -0
- package/browser/lib/helpers/helpers-array-obj.d.ts +2 -2
- package/browser/lib/helpers/helpers.d.ts +4 -0
- package/browser/lib/utils.d.ts +17 -0
- package/client/README.md +24 -24
- package/client/esm2022/lib/base/base-compiler-for-project.mjs +48 -0
- package/client/esm2022/lib/base/base-debounce-compiler-for-project.mjs +37 -0
- package/client/esm2022/lib/base/base-git.mjs +49 -2
- package/client/esm2022/lib/base/base-project.mjs +97 -26
- package/client/esm2022/lib/base/base-vscode.mjs +32 -4
- package/client/esm2022/lib/base/commit-data.mjs +8 -1
- package/client/esm2022/lib/base/index.mjs +4 -1
- package/client/esm2022/lib/helpers/helpers-array-obj.mjs +31 -25
- package/client/esm2022/lib/helpers/helpers.mjs +5 -1
- package/client/esm2022/lib/utils.mjs +250 -1
- package/client/fesm2022/tnp-helpers.mjs +637 -53
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-compiler-for-project.d.ts +6 -0
- package/client/lib/base/base-debounce-compiler-for-project.d.ts +21 -0
- package/client/lib/base/base-git.d.ts +3 -1
- package/client/lib/base/base-npm-helpers.d.ts +4 -4
- package/client/lib/base/base-project.d.ts +23 -9
- package/client/lib/base/base-vscode.d.ts +7 -1
- package/client/lib/base/commit-data.d.ts +1 -0
- package/client/lib/base/index.d.ts +3 -0
- package/client/lib/helpers/helpers-array-obj.d.ts +2 -2
- package/client/lib/helpers/helpers.d.ts +4 -0
- package/client/lib/utils.d.ts +17 -0
- package/lib/base/base-command-line.backend.d.ts +15 -1
- package/lib/base/base-command-line.backend.js +275 -40
- package/lib/base/base-command-line.backend.js.map +1 -1
- package/lib/base/base-compiler-for-project.d.ts +7 -0
- package/lib/base/base-compiler-for-project.js +61 -0
- package/lib/base/base-compiler-for-project.js.map +1 -0
- package/lib/base/base-debounce-compiler-for-project.d.ts +20 -0
- package/lib/base/base-debounce-compiler-for-project.js +61 -0
- package/lib/base/base-debounce-compiler-for-project.js.map +1 -0
- package/lib/base/base-git.d.ts +3 -1
- package/lib/base/base-git.js +55 -11
- package/lib/base/base-git.js.map +1 -1
- package/lib/base/base-ignore-hide.d.ts +14 -0
- package/lib/base/base-ignore-hide.js +55 -0
- package/lib/base/base-ignore-hide.js.map +1 -0
- package/lib/base/base-npm-helpers.d.ts +4 -4
- package/lib/base/base-project-resolver.js +3 -2
- package/lib/base/base-project-resolver.js.map +1 -1
- package/lib/base/base-project.d.ts +19 -7
- package/lib/base/base-project.js +112 -41
- package/lib/base/base-project.js.map +1 -1
- package/lib/base/base-vscode.d.ts +7 -1
- package/lib/base/base-vscode.js +24 -3
- package/lib/base/base-vscode.js.map +1 -1
- package/lib/base/command-line-feature.backend.d.ts +4 -0
- package/lib/base/command-line-feature.backend.js +10 -0
- package/lib/base/command-line-feature.backend.js.map +1 -1
- package/lib/base/commit-data.d.ts +1 -0
- package/lib/base/commit-data.js +13 -8
- package/lib/base/commit-data.js.map +1 -1
- package/lib/base/gh-temp-code.d.ts +12 -0
- package/lib/base/gh-temp-code.js +125 -0
- package/lib/base/gh-temp-code.js.map +1 -0
- package/lib/base/index.d.ts +3 -0
- package/lib/base/index.js +3 -0
- package/lib/base/index.js.map +1 -1
- package/lib/helpers/for-backend/helpers-cli-tool.backend.js +2 -2
- package/lib/helpers/for-backend/helpers-cli-tool.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.d.ts +1 -0
- package/lib/helpers/for-backend/helpers-git.backend.js +53 -3
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-process.backend.js +3 -3
- package/lib/helpers/for-backend/helpers-process.backend.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- package/lib/helpers/helpers-array-obj.d.ts +2 -2
- package/lib/helpers/helpers-array-obj.js +29 -21
- package/lib/helpers/helpers-array-obj.js.map +1 -1
- package/lib/helpers/helpers.d.ts +4 -0
- package/lib/helpers/helpers.js +10 -6
- package/lib/helpers/helpers.js.map +1 -1
- package/lib/index._auto-generated_.d.ts +0 -0
- package/lib/index._auto-generated_.js +6 -0
- package/lib/index._auto-generated_.js.map +1 -0
- 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 +17 -0
- package/lib/utils.js +209 -10
- package/lib/utils.js.map +1 -1
- package/package.json +7 -5
- package/taon.jsonc +49 -48
- package/tmp-environment.json +33 -31
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/base/base-compiler-for-project.mjs +48 -0
- package/websql/esm2022/lib/base/base-debounce-compiler-for-project.mjs +37 -0
- package/websql/esm2022/lib/base/base-git.mjs +49 -2
- package/websql/esm2022/lib/base/base-project.mjs +97 -26
- package/websql/esm2022/lib/base/base-vscode.mjs +32 -4
- package/websql/esm2022/lib/base/commit-data.mjs +8 -1
- package/websql/esm2022/lib/base/index.mjs +4 -1
- package/websql/esm2022/lib/helpers/helpers-array-obj.mjs +31 -25
- package/websql/esm2022/lib/helpers/helpers.mjs +5 -1
- package/websql/esm2022/lib/utils.mjs +250 -1
- package/websql/fesm2022/tnp-helpers.mjs +637 -53
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-compiler-for-project.d.ts +6 -0
- package/websql/lib/base/base-debounce-compiler-for-project.d.ts +21 -0
- package/websql/lib/base/base-git.d.ts +3 -1
- package/websql/lib/base/base-npm-helpers.d.ts +4 -4
- package/websql/lib/base/base-project.d.ts +25 -9
- package/websql/lib/base/base-vscode.d.ts +7 -1
- package/websql/lib/base/commit-data.d.ts +1 -0
- package/websql/lib/base/index.d.ts +3 -0
- package/websql/lib/helpers/helpers-array-obj.d.ts +2 -2
- package/websql/lib/helpers/helpers.d.ts +4 -0
- package/websql/lib/utils.d.ts +17 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { IncCompiler } from 'incremental-compiler/websql';
|
|
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
|
+
protected checkFolderCompiler(project: PROJECT, options: IncCompiler.Models.BaseClientCompilerOptions, dontCheck?: boolean): any;
|
|
6
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { BaseProject } from './base-project';
|
|
3
|
+
import { BaseCompilerForProject } from './base-compiler-for-project';
|
|
4
|
+
import { ChangeOfFile } from 'incremental-compiler/websql';
|
|
5
|
+
export declare abstract class BaseDebounceCompilerForProject<ADDITIONAL_DATA = any, PROJECT extends BaseProject = BaseProject> extends BaseCompilerForProject<ADDITIONAL_DATA, PROJECT> {
|
|
6
|
+
protected initalParams: ADDITIONAL_DATA;
|
|
7
|
+
abstract action({ changeOfFiles, asyncEvent, }: {
|
|
8
|
+
changeOfFiles: ChangeOfFile[];
|
|
9
|
+
asyncEvent: boolean;
|
|
10
|
+
}): any;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use action() instead
|
|
13
|
+
*/
|
|
14
|
+
syncAction(absFilesPathes: string[], initalParams: ADDITIONAL_DATA): Promise<void>;
|
|
15
|
+
private lastAsyncFilesChanges;
|
|
16
|
+
private debounceAction;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated use action() instead
|
|
19
|
+
*/
|
|
20
|
+
asyncAction(asyncEvents: ChangeOfFile, initalParams?: ADDITIONAL_DATA): Promise<void>;
|
|
21
|
+
}
|
|
@@ -9,7 +9,7 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
9
9
|
clone(url: string, destinationFolderName?: string, branchName?: string): Promise<any>;
|
|
10
10
|
restoreLastVersion(relativeFilePath: string): void;
|
|
11
11
|
stageAllFiles(): any;
|
|
12
|
-
stash(
|
|
12
|
+
stash(options?: {
|
|
13
13
|
onlyStaged?: boolean;
|
|
14
14
|
}): any;
|
|
15
15
|
stashApply(): any;
|
|
@@ -127,6 +127,7 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
127
127
|
setOrigin?: 'ssh' | 'http';
|
|
128
128
|
exitCallBack?: () => void;
|
|
129
129
|
forcePushNoQuestion?: boolean;
|
|
130
|
+
overrideCommitMessage?: string;
|
|
130
131
|
commitMessageRequired?: boolean;
|
|
131
132
|
/**
|
|
132
133
|
* only needed when push github
|
|
@@ -160,4 +161,5 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
160
161
|
* @param index 0 - means last commit
|
|
161
162
|
*/
|
|
162
163
|
getChangedFilesInCommitByIndex(index: number): Promise<any>;
|
|
164
|
+
changesSummary(): Promise<any>;
|
|
163
165
|
}
|
|
@@ -60,19 +60,19 @@ export declare class BaseNpmHelpers<PROJCET extends BaseProject = any> extends B
|
|
|
60
60
|
/**
|
|
61
61
|
* npm dependencies from package.json
|
|
62
62
|
*/
|
|
63
|
-
get dependencies():
|
|
63
|
+
get dependencies(): Partial<Record<string, string>>;
|
|
64
64
|
/**
|
|
65
65
|
* peerDependencies dependencies
|
|
66
66
|
*/
|
|
67
|
-
get peerDependencies():
|
|
67
|
+
get peerDependencies(): Partial<Record<string, string>>;
|
|
68
68
|
/**
|
|
69
69
|
* devDependencies dependencies
|
|
70
70
|
*/
|
|
71
|
-
get devDependencies():
|
|
71
|
+
get devDependencies(): Partial<Record<string, string>>;
|
|
72
72
|
/**
|
|
73
73
|
* resolutions dependencies
|
|
74
74
|
*/
|
|
75
|
-
get resolutions():
|
|
75
|
+
get resolutions(): Partial<Record<string, string>>;
|
|
76
76
|
/**
|
|
77
77
|
* @returns object witl all deps from current project package json
|
|
78
78
|
*/
|
|
@@ -64,6 +64,8 @@ export declare abstract class BaseProject<PROJCET extends BaseProject<any, any>
|
|
|
64
64
|
getChildBy(nameOrBasename: string, errors?: boolean): PROJCET;
|
|
65
65
|
get parent(): PROJCET;
|
|
66
66
|
get grandpa(): PROJCET;
|
|
67
|
+
get allNpmPackagesNames(): string[];
|
|
68
|
+
get titleBarName(): string;
|
|
67
69
|
get genericName(): any;
|
|
68
70
|
private checkAndBoldenPath;
|
|
69
71
|
/**
|
|
@@ -75,6 +77,15 @@ export declare abstract class BaseProject<PROJCET extends BaseProject<any, any>
|
|
|
75
77
|
*/
|
|
76
78
|
hasFile(relativePath: string | string[]): boolean;
|
|
77
79
|
hasFolder(relativePath: string | string[]): boolean;
|
|
80
|
+
relative(absoultePath: string): string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @param relativePath
|
|
84
|
+
* @param override it will remove ex
|
|
85
|
+
*/
|
|
86
|
+
createFolder(relativePath: string | string[], options?: {
|
|
87
|
+
override?: boolean;
|
|
88
|
+
}): any;
|
|
78
89
|
/**
|
|
79
90
|
* same as project.pathhasFileExists();
|
|
80
91
|
* but with path.resolve
|
|
@@ -93,7 +104,11 @@ export declare abstract class BaseProject<PROJCET extends BaseProject<any, any>
|
|
|
93
104
|
*/
|
|
94
105
|
run(command: string, options?: Omit<CoreModels.RunOptions, 'cwd'>): {
|
|
95
106
|
sync(): any;
|
|
96
|
-
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead
|
|
107
|
+
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead
|
|
108
|
+
/**
|
|
109
|
+
* name from package.json
|
|
110
|
+
*/
|
|
111
|
+
?: () => boolean) => Promise<number> | number): import("child_process").ChildProcess;
|
|
97
112
|
asyncAsPromise(): Promise<void>;
|
|
98
113
|
unitlOutput(optionsOutput: {
|
|
99
114
|
stdoutMsg: string | string[];
|
|
@@ -135,7 +150,7 @@ export declare abstract class BaseProject<PROJCET extends BaseProject<any, any>
|
|
|
135
150
|
copy(filesOrFolderRelativePathes: string[]): {
|
|
136
151
|
to: (destination: string) => void;
|
|
137
152
|
};
|
|
138
|
-
remove(relativePath: string, exactPath?: boolean):
|
|
153
|
+
remove(relativePath: string | string[], exactPath?: boolean): any;
|
|
139
154
|
removeFolderByRelativePath(relativePathToFolder: string): void;
|
|
140
155
|
assignFreePort(startFrom?: number, howManyFreePortsAfterThatPort?: number): Promise<number>;
|
|
141
156
|
removeItself(): void;
|
|
@@ -163,14 +178,15 @@ export declare abstract class BaseProject<PROJCET extends BaseProject<any, any>
|
|
|
163
178
|
*/
|
|
164
179
|
getMainBranches(): string[];
|
|
165
180
|
isUnsingActionCommit(): boolean;
|
|
181
|
+
useFeatureInBranchNameForTests(): boolean;
|
|
166
182
|
resetProcess(overrideBranch?: string, recrusive?: boolean): Promise<void>;
|
|
167
183
|
linkTo(destPackageLocation: string): void;
|
|
168
|
-
setValueToJSON(relativePath: string, lodashGetPath: string, value: any): void;
|
|
169
|
-
setValueToJSONC(relativePath: string, lodashGetPath: string, value: any): void;
|
|
170
|
-
setValueToJSON5(relativePath: string, lodashGetPath: string, value: any): void;
|
|
171
|
-
getValueFromJSON(relativePath: string, lodashGetPath: string, defaultValue?: any): any;
|
|
172
|
-
getValueFromJSONC(relativePath: string, lodashGetPath: string, defaultValue?: any): any;
|
|
173
|
-
writeFile(relativePath: string, content: string): void;
|
|
184
|
+
setValueToJSON(relativePath: string | string[], lodashGetPath: string, value: any): void;
|
|
185
|
+
setValueToJSONC(relativePath: string | string[], lodashGetPath: string, value: any): void;
|
|
186
|
+
setValueToJSON5(relativePath: string | string[], lodashGetPath: string, value: any): void;
|
|
187
|
+
getValueFromJSON(relativePath: string | string[], lodashGetPath: string, defaultValue?: any): any;
|
|
188
|
+
getValueFromJSONC(relativePath: string | string[], lodashGetPath: string, defaultValue?: any): any;
|
|
189
|
+
writeFile(relativePath: string | string[], content: string): void;
|
|
174
190
|
runCommandGetString(this: BaseProject, command: string): any;
|
|
175
191
|
toString: () => string;
|
|
176
192
|
get parentsNames(): any;
|
|
@@ -209,5 +225,5 @@ export declare abstract class BaseProject<PROJCET extends BaseProject<any, any>
|
|
|
209
225
|
/**
|
|
210
226
|
* get info about porject
|
|
211
227
|
*/
|
|
212
|
-
info(): Promise<
|
|
228
|
+
info(): Promise<any>;
|
|
213
229
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import type { BaseProject } from './base-project';
|
|
3
3
|
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
4
|
-
export declare class BaseVscodeHelpers<PROJCET extends BaseProject = any> extends BaseFeatureForProject {
|
|
4
|
+
export declare class BaseVscodeHelpers<PROJCET extends BaseProject = any> extends BaseFeatureForProject<PROJCET> {
|
|
5
|
+
/**
|
|
6
|
+
* settings.json relative path
|
|
7
|
+
*/
|
|
8
|
+
readonly settingsJson = ".vscode/settings.json";
|
|
9
|
+
readonly extensionsJson = ".vscode/extensions.json";
|
|
5
10
|
private get extensions();
|
|
6
11
|
recreateExtensions(): void;
|
|
12
|
+
recreateWindowTitle(): void;
|
|
7
13
|
}
|
|
@@ -6,7 +6,10 @@ export * from './base-library-build';
|
|
|
6
6
|
export * from './base-npm-helpers';
|
|
7
7
|
export * from './base-linked-projects';
|
|
8
8
|
export * from './base-git';
|
|
9
|
+
export * from './base-vscode';
|
|
9
10
|
export * from './base-release-process';
|
|
11
|
+
export * from './base-compiler-for-project';
|
|
12
|
+
export * from './base-debounce-compiler-for-project';
|
|
10
13
|
export * from './commit-data';
|
|
11
14
|
export * from './core-project';
|
|
12
15
|
export * from './linked-project';
|
|
@@ -15,9 +15,9 @@ export declare class HelpersArrayObj {
|
|
|
15
15
|
moveObjectBefore<T = any>(array: T[], target: T, before: T): T[];
|
|
16
16
|
moveObjectAfter<T = any>(array: T[], target: T, after: T): T[];
|
|
17
17
|
/**
|
|
18
|
-
* @deprecated
|
|
18
|
+
* @deprecated use Utils.uniqArray from tnp-core
|
|
19
19
|
*/
|
|
20
|
-
uniqArray<T = any>(array: any[], uniqueProperty?:
|
|
20
|
+
uniqArray<T = any>(array: any[], uniqueProperty?: keyof T): T[];
|
|
21
21
|
sortKeys(obj: any): any;
|
|
22
22
|
/**
|
|
23
23
|
* Fuzzy search
|
|
@@ -43,6 +43,10 @@ export declare class HelpersTaon extends CoreHelpers {
|
|
|
43
43
|
output?: string;
|
|
44
44
|
copyToDestination?: (fileOrFolderAbsPath: string) => void;
|
|
45
45
|
}) => string): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated
|
|
48
|
+
* use Utils.uniqArray from tnp-core
|
|
49
|
+
*/
|
|
46
50
|
uniqArray<T = any>(array: any[], uniqueProperty?: keyof T): T[];
|
|
47
51
|
urlParse(portOrHost: number | string | URL, forceDomain?: boolean): URL;
|
|
48
52
|
slash(pathFromWindowsOrUnixType: string): any;
|
package/websql/lib/utils.d.ts
CHANGED
|
@@ -41,4 +41,21 @@ export declare namespace UtilsTerminal {
|
|
|
41
41
|
autocomplete?: boolean;
|
|
42
42
|
defaultSelected?: string;
|
|
43
43
|
}) => Promise<T>;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace UtilsTypescript {
|
|
46
|
+
/**
|
|
47
|
+
* Remove TypeScript region blocks by their name, including nested regions.
|
|
48
|
+
*
|
|
49
|
+
* @param sourceCode - The TypeScript source code as a string.
|
|
50
|
+
* @param regionName - The name of the region to remove.
|
|
51
|
+
* @returns Modified TypeScript code without the specified regions.
|
|
52
|
+
*/
|
|
53
|
+
const removeRegionByName: (sourceCode: string, regionName: string) => string;
|
|
54
|
+
/**
|
|
55
|
+
* Function to extract exports from a TypeScript file
|
|
56
|
+
*/
|
|
57
|
+
const exportsFromFile: (filePath: string) => {
|
|
58
|
+
type: "class" | "function" | "const" | "let" | "var" | "enum" | "type" | "interface" | "default" | "module" | "namespace";
|
|
59
|
+
name: string;
|
|
60
|
+
}[];
|
|
44
61
|
}
|