tnp-helpers 18.0.12 → 18.0.13
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/esm2022/lib/base/base-debounce-compiler-for-project.mjs +19 -4
- package/browser/esm2022/lib/base/base-git.mjs +78 -2
- package/browser/esm2022/lib/base/base-library-build.mjs +88 -2
- package/browser/esm2022/lib/base/base-project-resolver.mjs +4 -1
- package/browser/esm2022/lib/base/base-project.mjs +19 -2
- package/browser/esm2022/lib/base/base-quick-fixes.mjs +24 -0
- package/browser/esm2022/lib/base/base-vscode.mjs +1 -2
- package/browser/esm2022/lib/base/index.mjs +2 -1
- package/browser/esm2022/lib/helpers/helpers.mjs +1 -11
- package/browser/esm2022/lib/models.mjs +1 -1
- package/browser/esm2022/lib/utils.mjs +151 -1
- package/browser/fesm2022/tnp-helpers.mjs +376 -18
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-debounce-compiler-for-project.d.ts +4 -0
- package/browser/lib/base/base-git.d.ts +3 -26
- package/browser/lib/base/base-library-build.d.ts +6 -2
- package/browser/lib/base/base-project-resolver.d.ts +1 -1
- package/browser/lib/base/base-project.d.ts +5 -4
- package/browser/lib/base/base-quick-fixes.d.ts +7 -0
- package/browser/lib/base/index.d.ts +1 -0
- package/browser/lib/models.d.ts +27 -1
- package/browser/lib/utils.d.ts +29 -0
- package/client/esm2022/lib/base/base-debounce-compiler-for-project.mjs +19 -4
- package/client/esm2022/lib/base/base-git.mjs +78 -2
- package/client/esm2022/lib/base/base-library-build.mjs +88 -2
- package/client/esm2022/lib/base/base-project-resolver.mjs +4 -1
- package/client/esm2022/lib/base/base-project.mjs +19 -2
- package/client/esm2022/lib/base/base-quick-fixes.mjs +24 -0
- package/client/esm2022/lib/base/base-vscode.mjs +1 -2
- package/client/esm2022/lib/base/index.mjs +2 -1
- package/client/esm2022/lib/helpers/helpers.mjs +1 -11
- package/client/esm2022/lib/models.mjs +1 -1
- package/client/esm2022/lib/utils.mjs +151 -1
- package/client/fesm2022/tnp-helpers.mjs +376 -18
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-debounce-compiler-for-project.d.ts +4 -0
- package/client/lib/base/base-git.d.ts +3 -26
- package/client/lib/base/base-library-build.d.ts +6 -2
- package/client/lib/base/base-project-resolver.d.ts +1 -1
- package/client/lib/base/base-project.d.ts +5 -4
- package/client/lib/base/base-quick-fixes.d.ts +7 -0
- package/client/lib/base/index.d.ts +1 -0
- package/client/lib/models.d.ts +27 -1
- package/client/lib/utils.d.ts +29 -0
- package/lib/base/base-command-line.backend.d.ts +12 -8
- package/lib/base/base-command-line.backend.js +129 -2
- package/lib/base/base-command-line.backend.js.map +1 -1
- package/lib/base/base-debounce-compiler-for-project.d.ts +4 -0
- package/lib/base/base-debounce-compiler-for-project.js +19 -2
- package/lib/base/base-debounce-compiler-for-project.js.map +1 -1
- package/lib/base/base-git.d.ts +3 -26
- package/lib/base/base-git.js +173 -96
- package/lib/base/base-git.js.map +1 -1
- package/lib/base/base-library-build.d.ts +6 -2
- package/lib/base/base-library-build.js +178 -57
- package/lib/base/base-library-build.js.map +1 -1
- package/lib/base/base-project-resolver.d.ts +1 -1
- package/lib/base/base-project-resolver.js +3 -0
- package/lib/base/base-project-resolver.js.map +1 -1
- package/lib/base/base-project.d.ts +4 -1
- package/lib/base/base-project.js +26 -5
- package/lib/base/base-project.js.map +1 -1
- package/lib/base/base-quick-fixes.d.ts +6 -0
- package/lib/base/base-quick-fixes.js +31 -0
- package/lib/base/base-quick-fixes.js.map +1 -0
- package/lib/base/base-vscode.js +1 -2
- package/lib/base/base-vscode.js.map +1 -1
- package/lib/base/index-rebuilder.backend.d.ts +0 -0
- package/lib/base/index-rebuilder.backend.js +129 -0
- package/lib/base/index-rebuilder.backend.js.map +1 -0
- package/lib/base/index.d.ts +1 -0
- package/lib/base/index.js +1 -0
- package/lib/base/index.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.d.ts +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.js +42 -12
- 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 +5 -13
- package/lib/helpers/helpers.js.map +1 -1
- package/lib/models.d.ts +27 -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 +29 -0
- package/lib/utils.js +137 -1
- package/lib/utils.js.map +1 -1
- package/package.json +8 -6
- package/tmp-environment.json +33 -30
- package/websql/esm2022/lib/base/base-debounce-compiler-for-project.mjs +19 -4
- package/websql/esm2022/lib/base/base-git.mjs +78 -2
- package/websql/esm2022/lib/base/base-library-build.mjs +88 -2
- package/websql/esm2022/lib/base/base-project-resolver.mjs +4 -1
- package/websql/esm2022/lib/base/base-project.mjs +13 -2
- package/websql/esm2022/lib/base/base-quick-fixes.mjs +24 -0
- package/websql/esm2022/lib/base/base-vscode.mjs +1 -2
- package/websql/esm2022/lib/base/index.mjs +2 -1
- package/websql/esm2022/lib/helpers/helpers.mjs +1 -11
- package/websql/esm2022/lib/models.mjs +1 -1
- package/websql/esm2022/lib/utils.mjs +151 -1
- package/websql/fesm2022/tnp-helpers.mjs +370 -18
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-debounce-compiler-for-project.d.ts +4 -0
- package/websql/lib/base/base-git.d.ts +3 -26
- package/websql/lib/base/base-library-build.d.ts +6 -2
- package/websql/lib/base/base-project-resolver.d.ts +1 -1
- package/websql/lib/base/base-project.d.ts +5 -6
- package/websql/lib/base/base-quick-fixes.d.ts +7 -0
- package/websql/lib/base/index.d.ts +1 -0
- package/websql/lib/models.d.ts +27 -1
- package/websql/lib/utils.d.ts +29 -0
|
@@ -8,6 +8,10 @@ export declare abstract class BaseDebounceCompilerForProject<ADDITIONAL_DATA = a
|
|
|
8
8
|
changeOfFiles: ChangeOfFile[];
|
|
9
9
|
asyncEvent: boolean;
|
|
10
10
|
}): any;
|
|
11
|
+
/**
|
|
12
|
+
* current files that are in project
|
|
13
|
+
*/
|
|
14
|
+
protected exitedFilesAbsPathes: string[];
|
|
11
15
|
/**
|
|
12
16
|
* @deprecated use action() instead
|
|
13
17
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
3
|
-
import { CommitData, TypeOfCommit } from '../index';
|
|
3
|
+
import { CommitData, PushProcessOptions, TypeOfCommit } from '../index';
|
|
4
4
|
import type { BaseProject } from './base-project';
|
|
5
5
|
export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeatureForProject {
|
|
6
6
|
project: PROJCET;
|
|
@@ -35,7 +35,7 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
35
35
|
get uncommitedFiles(): any;
|
|
36
36
|
get thereAreSomeUncommitedChange(): any;
|
|
37
37
|
thereAreSomeUncommitedChangeExcept(filesList?: string[]): any;
|
|
38
|
-
meltActionCommits(
|
|
38
|
+
meltActionCommits(): void;
|
|
39
39
|
pullCurrentBranch(options?: {
|
|
40
40
|
askToRetry?: boolean;
|
|
41
41
|
defaultHardResetCommits?: number;
|
|
@@ -115,30 +115,7 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
115
115
|
cloneChildren?: boolean;
|
|
116
116
|
setOrigin?: 'ssh' | 'http';
|
|
117
117
|
}): Promise<void>;
|
|
118
|
-
pushProcess(options?:
|
|
119
|
-
force?: boolean;
|
|
120
|
-
typeofCommit?: TypeOfCommit;
|
|
121
|
-
askToConfirmPush?: boolean;
|
|
122
|
-
askToConfirmCommit?: boolean;
|
|
123
|
-
skipLint?: boolean;
|
|
124
|
-
askToConfirmBranchChange?: boolean;
|
|
125
|
-
origin?: string;
|
|
126
|
-
args?: string[];
|
|
127
|
-
setOrigin?: 'ssh' | 'http';
|
|
128
|
-
exitCallBack?: () => void;
|
|
129
|
-
forcePushNoQuestion?: boolean;
|
|
130
|
-
overrideCommitMessage?: string;
|
|
131
|
-
commitMessageRequired?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* only needed when push github
|
|
134
|
-
* and I forgot to add my username before issue
|
|
135
|
-
* taon pfix proper input my-repo#344
|
|
136
|
-
* that should be
|
|
137
|
-
* taon pfix proper input my-username/my-repo#344
|
|
138
|
-
*/
|
|
139
|
-
currentOrigin?: string;
|
|
140
|
-
skipChildren?: boolean;
|
|
141
|
-
}): Promise<void>;
|
|
118
|
+
pushProcess(options?: PushProcessOptions): Promise<void>;
|
|
142
119
|
_beforeAnyActionOnGitRoot(): any;
|
|
143
120
|
protected _beforePushProcessAction(): Promise<any>;
|
|
144
121
|
protected _beforePullProcessAction(cloneChildren?: boolean): Promise<any>;
|
|
@@ -6,8 +6,9 @@ import type { BaseProject } from './base-project';
|
|
|
6
6
|
/**
|
|
7
7
|
* Base library build for standard angular/typescript projects
|
|
8
8
|
*/
|
|
9
|
-
export declare abstract class BaseLibraryBuild<PROJCET extends BaseProject<
|
|
9
|
+
export declare abstract class BaseLibraryBuild<PROJCET extends BaseProject<BaseProject, any>> extends BaseFeatureForProject {
|
|
10
10
|
private cache;
|
|
11
|
+
private tempOrgTsConfigFile;
|
|
11
12
|
protected sortByDeps(libraries: PROJCET[]): PROJCET[];
|
|
12
13
|
/**
|
|
13
14
|
* Use cases:
|
|
@@ -56,6 +57,9 @@ export declare abstract class BaseLibraryBuild<PROJCET extends BaseProject<any,
|
|
|
56
57
|
outputLineReplace?: (outputLine: string) => string;
|
|
57
58
|
}): Promise<any>;
|
|
58
59
|
getLibraryBuildComamnd(options?: LibraryBuildCommandOptions): string | undefined;
|
|
59
|
-
get
|
|
60
|
+
get getLibraryBuildSuccessComamnds(): string[];
|
|
60
61
|
selectCopytoProjects(): Promise<string[]>;
|
|
62
|
+
private changeTsConfigForLibrariesTypes;
|
|
63
|
+
private replaceTsConfigsPathes;
|
|
64
|
+
private restoreOriginalTsConfig;
|
|
61
65
|
}
|
|
@@ -28,7 +28,7 @@ export declare class BaseProjectResolver<PROJECT extends Partial<BaseProject> =
|
|
|
28
28
|
*/
|
|
29
29
|
typeFrom(location: string, recrusiveCall?: boolean): string;
|
|
30
30
|
From(locationOfProject: string | string[], options?: any): PROJECT;
|
|
31
|
-
nearestTo(absoluteLocation: string, options?: {
|
|
31
|
+
nearestTo(absoluteLocation: string | string[], options?: {
|
|
32
32
|
type?: string | string[];
|
|
33
33
|
findGitRoot?: boolean;
|
|
34
34
|
onlyOutSideNodeModules?: boolean;
|
|
@@ -9,7 +9,8 @@ import { BaseLinkedProjects } from './base-linked-projects';
|
|
|
9
9
|
import { BaseGit } from './base-git';
|
|
10
10
|
import { BaseVscodeHelpers } from './base-vscode';
|
|
11
11
|
import { BaseReleaseProcess } from './base-release-process';
|
|
12
|
-
|
|
12
|
+
import { BaseQuickFixes } from './base-quick-fixes';
|
|
13
|
+
export declare abstract class BaseProject<PROJCET extends BaseProject = BaseProject<any, any>, TYPE = BaseProjectType> {
|
|
13
14
|
static ins: BaseProjectResolver<BaseProject<BaseProject<any, any>, CoreModels.BaseProjectType>>;
|
|
14
15
|
cache: any;
|
|
15
16
|
static cache: any;
|
|
@@ -30,6 +31,7 @@ export declare abstract class BaseProject<PROJCET extends BaseProject<any, any>
|
|
|
30
31
|
vsCodeHelpers: BaseVscodeHelpers;
|
|
31
32
|
releaseProcess: BaseReleaseProcess;
|
|
32
33
|
git: BaseGit;
|
|
34
|
+
quickFixes: BaseQuickFixes;
|
|
33
35
|
private __location;
|
|
34
36
|
get location(): string;
|
|
35
37
|
set location(v: string);
|
|
@@ -63,6 +65,7 @@ export declare abstract class BaseProject<PROJCET extends BaseProject<any, any>
|
|
|
63
65
|
get children(): PROJCET[];
|
|
64
66
|
getChildBy(nameOrBasename: string, errors?: boolean): PROJCET;
|
|
65
67
|
get parent(): PROJCET;
|
|
68
|
+
get nearestParent(): PROJCET;
|
|
66
69
|
get grandpa(): PROJCET;
|
|
67
70
|
get allNpmPackagesNames(): string[];
|
|
68
71
|
get titleBarName(): string;
|
|
@@ -104,11 +107,7 @@ export declare abstract class BaseProject<PROJCET extends BaseProject<any, any>
|
|
|
104
107
|
*/
|
|
105
108
|
run(command: string, options?: Omit<CoreModels.RunOptions, 'cwd'>): {
|
|
106
109
|
sync(): any;
|
|
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;
|
|
110
|
+
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => Promise<number> | number): import("child_process").ChildProcess;
|
|
112
111
|
asyncAsPromise(): Promise<void>;
|
|
113
112
|
unitlOutput(optionsOutput: {
|
|
114
113
|
stdoutMsg: string | string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
3
|
+
import type { BaseProject } from './base-project';
|
|
4
|
+
export declare class BaseQuickFixes<PROJCET extends BaseProject = any> extends BaseFeatureForProject {
|
|
5
|
+
constructor(project: PROJCET);
|
|
6
|
+
fixSQLLiteModuleInNodeModules(): any;
|
|
7
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from './base-vscode';
|
|
|
10
10
|
export * from './base-release-process';
|
|
11
11
|
export * from './base-compiler-for-project';
|
|
12
12
|
export * from './base-debounce-compiler-for-project';
|
|
13
|
+
export * from './base-quick-fixes';
|
|
13
14
|
export * from './commit-data';
|
|
14
15
|
export * from './core-project';
|
|
15
16
|
export * from './linked-project';
|
package/websql/lib/models.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import * as core from 'tnp-core/websql';
|
|
3
|
-
import type { BaseProject } from './base';
|
|
3
|
+
import type { BaseProject, TypeOfCommit } from './base';
|
|
4
4
|
export type BaseProjectType = core.CoreModels.BaseProjectType;
|
|
5
5
|
export declare const BaseProjectTypeArr: string[];
|
|
6
6
|
/**
|
|
@@ -50,4 +50,30 @@ export interface ChangelogData {
|
|
|
50
50
|
changes: string[];
|
|
51
51
|
version: string;
|
|
52
52
|
date: string;
|
|
53
|
+
}
|
|
54
|
+
export interface PushProcessOptions {
|
|
55
|
+
force?: boolean;
|
|
56
|
+
typeofCommit?: TypeOfCommit;
|
|
57
|
+
mergeUpdateCommits?: boolean;
|
|
58
|
+
askToConfirmPush?: boolean;
|
|
59
|
+
askToConfirmCommit?: boolean;
|
|
60
|
+
skipLint?: boolean;
|
|
61
|
+
askToConfirmBranchChange?: boolean;
|
|
62
|
+
origin?: string;
|
|
63
|
+
args?: string[];
|
|
64
|
+
setOrigin?: 'ssh' | 'http';
|
|
65
|
+
exitCallBack?: () => void;
|
|
66
|
+
forcePushNoQuestion?: boolean;
|
|
67
|
+
overrideCommitMessage?: string;
|
|
68
|
+
commitMessageRequired?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* only needed when push github
|
|
71
|
+
* and I forgot to add my username before issue
|
|
72
|
+
* taon pfix proper input my-repo#344
|
|
73
|
+
* that should be
|
|
74
|
+
* taon pfix proper input my-username/my-repo#344
|
|
75
|
+
*/
|
|
76
|
+
currentOrigin?: string;
|
|
77
|
+
skipChildren?: boolean;
|
|
78
|
+
noExit?: boolean;
|
|
53
79
|
}
|
package/websql/lib/utils.d.ts
CHANGED
|
@@ -58,4 +58,33 @@ export declare namespace UtilsTypescript {
|
|
|
58
58
|
type: "class" | "function" | "const" | "let" | "var" | "enum" | "type" | "interface" | "default" | "module" | "namespace";
|
|
59
59
|
name: string;
|
|
60
60
|
}[];
|
|
61
|
+
}
|
|
62
|
+
export declare namespace UtilsHttp {
|
|
63
|
+
const startHttpServer: (cwd: string, port: number) => Promise<any>;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace UtilsMd {
|
|
66
|
+
/**
|
|
67
|
+
* extract assets pathes from .md file
|
|
68
|
+
*/
|
|
69
|
+
const getAssets: (mdfileContent: string) => string[];
|
|
70
|
+
/**
|
|
71
|
+
* Extract links to other Markdown files from a given Markdown content.
|
|
72
|
+
* @param mdfileContent
|
|
73
|
+
*/
|
|
74
|
+
const getLinksToOtherMdFiles: (mdfileContent: string) => string[];
|
|
75
|
+
/**
|
|
76
|
+
* Move asset paths to a higher directory level by adding "../" before each path.
|
|
77
|
+
*
|
|
78
|
+
* @param mdfileContent - The content of the .md file.
|
|
79
|
+
* @param level - The number of levels to go up (default is 1).
|
|
80
|
+
* @returns The modified content with updated asset paths.
|
|
81
|
+
*/
|
|
82
|
+
const moveAssetsPathesToLevel: (mdfileContent: string, level?: number) => string;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace UtilsQuickFixes {
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @param node_modules/sql.js/dist/sql-wasm.js
|
|
88
|
+
*/
|
|
89
|
+
function replaceSQLliteFaultyCode(contentofSQLWasmJS: string): string;
|
|
61
90
|
}
|