tnp-helpers 16.444.19 → 16.444.21
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-git.mjs +48 -5
- package/browser/esm2022/lib/base/base-library-build.mjs +27 -12
- package/browser/esm2022/lib/base/base-linked-projects.mjs +14 -3
- package/browser/esm2022/lib/base/base-npm-helpers.mjs +41 -2
- package/browser/esm2022/lib/base/base-project-resolver.mjs +10 -1
- package/browser/esm2022/lib/base/base-project.mjs +71 -9
- package/browser/esm2022/lib/base/base-release-process.mjs +204 -0
- package/browser/esm2022/lib/base/base-vscode.mjs +66 -0
- package/browser/esm2022/lib/base/core-project.mjs +1 -1
- package/browser/esm2022/lib/base/linked-project.mjs +2 -7
- package/browser/esm2022/lib/models.mjs +1 -1
- package/browser/fesm2022/tnp-helpers.mjs +205 -32
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-git.d.ts +17 -0
- package/browser/lib/base/base-library-build.d.ts +2 -1
- package/browser/lib/base/base-npm-helpers.d.ts +3 -0
- package/browser/lib/base/base-project-resolver.d.ts +9 -8
- package/browser/lib/base/base-project.d.ts +12 -7
- package/browser/lib/base/base-release-process.d.ts +40 -0
- package/browser/lib/base/base-vscode.d.ts +6 -0
- package/browser/lib/base/core-project.d.ts +8 -0
- package/browser/lib/models.d.ts +7 -1
- package/client/esm2022/lib/base/base-git.mjs +48 -5
- package/client/esm2022/lib/base/base-library-build.mjs +27 -12
- package/client/esm2022/lib/base/base-linked-projects.mjs +14 -3
- package/client/esm2022/lib/base/base-npm-helpers.mjs +41 -2
- package/client/esm2022/lib/base/base-project-resolver.mjs +10 -1
- package/client/esm2022/lib/base/base-project.mjs +71 -9
- package/client/esm2022/lib/base/base-release-process.mjs +204 -0
- package/client/esm2022/lib/base/base-vscode.mjs +66 -0
- package/client/esm2022/lib/base/core-project.mjs +1 -1
- package/client/esm2022/lib/base/linked-project.mjs +2 -7
- package/client/esm2022/lib/models.mjs +1 -1
- package/client/fesm2022/tnp-helpers.mjs +205 -32
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-git.d.ts +17 -0
- package/client/lib/base/base-library-build.d.ts +2 -1
- package/client/lib/base/base-npm-helpers.d.ts +3 -0
- package/client/lib/base/base-project-resolver.d.ts +9 -8
- package/client/lib/base/base-project.d.ts +12 -7
- package/client/lib/base/base-release-process.d.ts +40 -0
- package/client/lib/base/base-vscode.d.ts +6 -0
- package/client/lib/base/core-project.d.ts +8 -0
- package/client/lib/models.d.ts +7 -1
- package/client/package.json +32 -31
- package/lib/base/base-command-line.backend.d.ts +4 -1
- package/lib/base/base-command-line.backend.js +101 -6
- package/lib/base/base-command-line.backend.js.map +1 -1
- package/lib/base/base-git.d.ts +17 -0
- package/lib/base/base-git.js +120 -52
- package/lib/base/base-git.js.map +1 -1
- package/lib/base/base-library-build.d.ts +2 -1
- package/lib/base/base-library-build.js +159 -127
- package/lib/base/base-library-build.js.map +1 -1
- package/lib/base/base-linked-projects.js +13 -3
- package/lib/base/base-linked-projects.js.map +1 -1
- package/lib/base/base-npm-helpers.d.ts +3 -0
- package/lib/base/base-npm-helpers.js +57 -1
- package/lib/base/base-npm-helpers.js.map +1 -1
- package/lib/base/base-project-resolver.d.ts +10 -9
- package/lib/base/base-project-resolver.js +11 -1
- package/lib/base/base-project-resolver.js.map +1 -1
- package/lib/base/base-project.d.ts +13 -8
- package/lib/base/base-project.js +92 -21
- package/lib/base/base-project.js.map +1 -1
- package/lib/base/base-release-process.d.ts +39 -0
- package/lib/base/base-release-process.js +289 -0
- package/lib/base/base-release-process.js.map +1 -0
- package/lib/base/base-vscode.d.ts +5 -0
- package/lib/base/base-vscode.js +79 -0
- package/lib/base/base-vscode.js.map +1 -0
- package/lib/base/command-line-feature.backend.d.ts +6 -1
- package/lib/base/command-line-feature.backend.js +67 -1
- package/lib/base/command-line-feature.backend.js.map +1 -1
- package/lib/base/core-project.d.ts +8 -0
- package/lib/base/core-project.js.map +1 -1
- package/lib/base/linked-project.js +8 -10
- package/lib/base/linked-project.js.map +1 -1
- package/lib/helpers/for-backend/helpers-console-gui.d.ts +1 -1
- package/lib/helpers/for-backend/helpers-console-gui.js.map +1 -1
- package/lib/helpers/for-backend/helpers-dependencies.backend.js +1 -2
- package/lib/helpers/for-backend/helpers-dependencies.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-file-folders.backend.d.ts +16 -8
- package/lib/helpers/for-backend/helpers-file-folders.backend.js +156 -65
- package/lib/helpers/for-backend/helpers-file-folders.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.d.ts +13 -0
- package/lib/helpers/for-backend/helpers-git.backend.js +93 -11
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-process.backend.js +3 -1
- package/lib/helpers/for-backend/helpers-process.backend.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +3 -3
- package/lib/models.d.ts +7 -1
- package/lib/old/base-component.js +3 -3
- package/lib/old/base-formly-component.js +3 -3
- package/lib/old/dual-component-ctrl.js +3 -3
- package/package.json +4 -4
- package/tmp-environment.json +37 -36
- package/websql/esm2022/lib/base/base-git.mjs +48 -5
- package/websql/esm2022/lib/base/base-library-build.mjs +27 -12
- package/websql/esm2022/lib/base/base-linked-projects.mjs +14 -3
- package/websql/esm2022/lib/base/base-npm-helpers.mjs +41 -2
- package/websql/esm2022/lib/base/base-project-resolver.mjs +10 -1
- package/websql/esm2022/lib/base/base-project.mjs +80 -18
- package/websql/esm2022/lib/base/base-release-process.mjs +204 -0
- package/websql/esm2022/lib/base/base-vscode.mjs +66 -0
- package/websql/esm2022/lib/base/core-project.mjs +1 -1
- package/websql/esm2022/lib/base/linked-project.mjs +2 -7
- package/websql/esm2022/lib/models.mjs +1 -1
- package/websql/fesm2022/tnp-helpers.mjs +213 -40
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-git.d.ts +17 -0
- package/websql/lib/base/base-library-build.d.ts +2 -1
- package/websql/lib/base/base-npm-helpers.d.ts +6 -1
- package/websql/lib/base/base-project-resolver.d.ts +9 -8
- package/websql/lib/base/base-project.d.ts +13 -5
- package/websql/lib/base/base-release-process.d.ts +40 -0
- package/websql/lib/base/base-vscode.d.ts +6 -0
- package/websql/lib/base/core-project.d.ts +8 -0
- package/websql/lib/models.d.ts +7 -1
|
@@ -53,6 +53,8 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
53
53
|
lastCommitDate(): any;
|
|
54
54
|
lastCommitHash(): any;
|
|
55
55
|
lastCommitMessage(): any;
|
|
56
|
+
getCommitMessageByIndex(index: number): Promise<any>;
|
|
57
|
+
getCommitHashByIndex(index: number): Promise<any>;
|
|
56
58
|
penultimateCommitHash(): any;
|
|
57
59
|
checkTagExists(tag: string): any;
|
|
58
60
|
checkout(branchName: string, options?: {
|
|
@@ -96,6 +98,16 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
96
98
|
*/
|
|
97
99
|
useGitBranchesAsMetadataForCommits(): boolean;
|
|
98
100
|
cloneTo(cwd: string, newProjectName?: string): Promise<any>;
|
|
101
|
+
/**
|
|
102
|
+
* This is only for push/pull process
|
|
103
|
+
*
|
|
104
|
+
* There are 2 types of projects:
|
|
105
|
+
* - with linked-projects.json
|
|
106
|
+
* - with children from external folder
|
|
107
|
+
*
|
|
108
|
+
* projects that are children of this project (with its own git repo)
|
|
109
|
+
*/
|
|
110
|
+
get gitChildren(): PROJCET[];
|
|
99
111
|
pullProcess(cloneChildren?: boolean): Promise<any>;
|
|
100
112
|
pushProcess(options?: {
|
|
101
113
|
force?: boolean;
|
|
@@ -112,4 +124,9 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
112
124
|
protected _beforePushProcessAction(): Promise<any>;
|
|
113
125
|
protected _beforePullProcessAction(cloneChildren?: boolean): Promise<any>;
|
|
114
126
|
protected _getCommitMessage(typeofCommit: TypeOfCommit, args: string[], commitMessageRequired?: boolean): Promise<CommitData>;
|
|
127
|
+
/**
|
|
128
|
+
* This will prevent accidental branch change for firedev projects
|
|
129
|
+
* @returns branch name
|
|
130
|
+
*/
|
|
131
|
+
duringPushWarnIfProjectNotOnSpecyficDevBranch(): string;
|
|
115
132
|
}
|
|
@@ -38,9 +38,10 @@ export declare abstract class BaseLibraryBuild<PROJCET extends BaseProject = any
|
|
|
38
38
|
/**
|
|
39
39
|
* Angular library build
|
|
40
40
|
*/
|
|
41
|
-
buildLibraries({ watch, strategy, buildType, }?: LibrariesBuildOptions & {
|
|
41
|
+
buildLibraries({ watch, strategy, buildType, copylink_to_node_modules, }?: LibrariesBuildOptions & {
|
|
42
42
|
watch: boolean;
|
|
43
43
|
}): Promise<void>;
|
|
44
44
|
getLibraryBuildComamnd(options?: LibraryBuildCommandOptions): string | undefined;
|
|
45
45
|
get getLibraryBuildSuccessComamnd(): string;
|
|
46
|
+
selectCopytoProjects(): Promise<string[]>;
|
|
46
47
|
}
|
|
@@ -12,6 +12,9 @@ export declare class BaseNpmHelpers<PROJCET extends BaseProject = any> extends B
|
|
|
12
12
|
* version from package.json -> property version
|
|
13
13
|
*/
|
|
14
14
|
get version(): string;
|
|
15
|
+
get versionWithPatchPlusOne(): string;
|
|
16
|
+
get versionWithMinorPlusOneAndPatchZero(): string;
|
|
17
|
+
get versionWithMajorPlusOneAndMinorZeroAndPatchZero(): string;
|
|
15
18
|
/**
|
|
16
19
|
* Major Version from package.json
|
|
17
20
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { BaseProject } from './base-project';
|
|
3
3
|
import { ConfigDatabase } from './config-database';
|
|
4
4
|
import { ProjectDatabase } from './project-database';
|
|
5
|
-
export declare class BaseProjectResolver<
|
|
5
|
+
export declare class BaseProjectResolver<PROJECT extends Partial<BaseProject> = any> {
|
|
6
6
|
protected classFn: any;
|
|
7
7
|
/**
|
|
8
8
|
* general name for project company
|
|
@@ -11,7 +11,7 @@ export declare class BaseProjectResolver<T extends Partial<BaseProject> = any> {
|
|
|
11
11
|
configDb: ConfigDatabase;
|
|
12
12
|
projectsDb: ProjectDatabase;
|
|
13
13
|
protected readonly NPM_PROJECT_KEY = "npm";
|
|
14
|
-
protected projects:
|
|
14
|
+
protected projects: PROJECT[];
|
|
15
15
|
/**
|
|
16
16
|
* To speed up checking folder I am keeping pathes for alterdy checked folder
|
|
17
17
|
* This may break things that are creating new projects
|
|
@@ -22,20 +22,21 @@ export declare class BaseProjectResolver<T extends Partial<BaseProject> = any> {
|
|
|
22
22
|
/**
|
|
23
23
|
* project from process.cwd()
|
|
24
24
|
*/
|
|
25
|
-
get Current():
|
|
25
|
+
get Current(): PROJECT;
|
|
26
26
|
/**
|
|
27
27
|
* override this
|
|
28
28
|
*/
|
|
29
29
|
typeFrom(location: string, recrusiveCall?: boolean): string;
|
|
30
|
-
From(locationOfProject: string | string[], options?: any):
|
|
30
|
+
From(locationOfProject: string | string[], options?: any): PROJECT;
|
|
31
31
|
nearestTo(absoluteLocation: string, options?: {
|
|
32
32
|
type?: string | string[];
|
|
33
33
|
findGitRoot?: boolean;
|
|
34
34
|
onlyOutSideNodeModules?: boolean;
|
|
35
|
-
}):
|
|
36
|
-
unload(project:
|
|
37
|
-
remove(project:
|
|
38
|
-
add(project:
|
|
35
|
+
}): PROJECT;
|
|
36
|
+
unload(project: PROJECT): void;
|
|
37
|
+
remove(project: PROJECT): void;
|
|
38
|
+
add(project: PROJECT): void;
|
|
39
39
|
allProjectFrom(absoluteLocation: string, stopOnCwd?: string): any;
|
|
40
|
+
allProjectsFromFolder(folderLocation: string): PROJECT[];
|
|
40
41
|
sortGroupOfProject<T extends BaseProject = BaseProject>(projects: T[], resoveDepsArray: (proj: T) => string[], projNameToCompare: (proj: T) => string): T[];
|
|
41
42
|
}
|
|
@@ -8,11 +8,9 @@ import type { BaseLibraryBuild } from './base-library-build';
|
|
|
8
8
|
import { BaseNpmHelpers } from './base-npm-helpers';
|
|
9
9
|
import { BaseLinkedProjects } from './base-linked-projects';
|
|
10
10
|
import { BaseGit } from './base-git';
|
|
11
|
+
import { BaseVscodeHelpers } from './base-vscode';
|
|
12
|
+
import { BaseReleaseProcess } from './base-release-process';
|
|
11
13
|
export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYPE = BaseProjectType> {
|
|
12
|
-
/**
|
|
13
|
-
* doesn't need to be real path -> can be link
|
|
14
|
-
*/
|
|
15
|
-
readonly location: string;
|
|
16
14
|
static ins: BaseProjectResolver<BaseProject<any, CoreModels.BaseProjectType>>;
|
|
17
15
|
cache: any;
|
|
18
16
|
static cache: any;
|
|
@@ -30,7 +28,12 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
30
28
|
libraryBuild: BaseLibraryBuild;
|
|
31
29
|
npmHelpers: BaseNpmHelpers;
|
|
32
30
|
linkedProjects: BaseLinkedProjects;
|
|
31
|
+
vsCodeHelpers: BaseVscodeHelpers;
|
|
32
|
+
releaseProcess: BaseReleaseProcess;
|
|
33
33
|
git: BaseGit;
|
|
34
|
+
private __location;
|
|
35
|
+
get location(): string;
|
|
36
|
+
set location(v: string);
|
|
34
37
|
constructor(
|
|
35
38
|
/**
|
|
36
39
|
* doesn't need to be real path -> can be link
|
|
@@ -62,6 +65,7 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
62
65
|
get parent(): PROJCET;
|
|
63
66
|
get grandpa(): PROJCET;
|
|
64
67
|
get genericName(): any;
|
|
68
|
+
private checkAndBoldenPath;
|
|
65
69
|
/**
|
|
66
70
|
* same has project.hasFile();
|
|
67
71
|
*/
|
|
@@ -87,9 +91,6 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
87
91
|
* use output from or more preciese crafted api
|
|
88
92
|
*/
|
|
89
93
|
run(command: string, options?: Omit<CoreModels.RunOptions, 'cwd'>): {
|
|
90
|
-
/**
|
|
91
|
-
* name from package.json
|
|
92
|
-
*/
|
|
93
94
|
sync(): any;
|
|
94
95
|
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => number | Promise<number>): import("child_process").ChildProcess;
|
|
95
96
|
asyncAsPromise(): Promise<void>;
|
|
@@ -142,6 +143,9 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
142
143
|
isUnsingActionCommit(): boolean;
|
|
143
144
|
resetProcess(overrideBranch?: string, recrusive?: boolean): Promise<void>;
|
|
144
145
|
linkTo(destPackageLocation: string): void;
|
|
146
|
+
setValueToJSON(relativePath: string, lodashGetPath: string, value: any): void;
|
|
147
|
+
getValueFromJSON(relativePath: string, lodashGetPath: string, defaultValue?: any): any;
|
|
148
|
+
getValueFromJSONC(relativePath: string, lodashGetPath: string, defaultValue?: any): any;
|
|
145
149
|
writeFile(relativePath: string, content: string): void;
|
|
146
150
|
runCommandGetString(this: BaseProject, command: string): any;
|
|
147
151
|
toString: () => string;
|
|
@@ -165,6 +169,7 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
165
169
|
* init and build() project
|
|
166
170
|
*/
|
|
167
171
|
build(buildOptions?: any): Promise<void>;
|
|
172
|
+
release(releaseOptions?: any): Promise<void>;
|
|
168
173
|
/**
|
|
169
174
|
* lint porject
|
|
170
175
|
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
3
|
+
import type { BaseProject } from './base-project';
|
|
4
|
+
import { CoreModels } from 'tnp-core/browser';
|
|
5
|
+
import type { ChangelogData } from '.././models';
|
|
6
|
+
export declare class BaseReleaseProcess<PROJCET extends BaseProject = any> extends BaseFeatureForProject {
|
|
7
|
+
project: PROJCET;
|
|
8
|
+
/**
|
|
9
|
+
* Automatic release process of patch plus one version
|
|
10
|
+
*/
|
|
11
|
+
automaticRelease: boolean;
|
|
12
|
+
type: CoreModels.ReleaseType;
|
|
13
|
+
lastChangesSummary: string;
|
|
14
|
+
startRelease(options?: Partial<Pick<BaseReleaseProcess<PROJCET>, 'automaticRelease' | 'type'>>): Promise<void>;
|
|
15
|
+
private selectReleaseType;
|
|
16
|
+
generateChangesForChangelog(): void;
|
|
17
|
+
generateLastChangesSummary(): Promise<string>;
|
|
18
|
+
getLastChangesFromCommits({ maxMessagesToCheck, stopOnCommitMessage, }?: {
|
|
19
|
+
/**
|
|
20
|
+
* default 3
|
|
21
|
+
*/
|
|
22
|
+
maxMessagesToCheck?: number;
|
|
23
|
+
/**
|
|
24
|
+
* stop serching on commit message
|
|
25
|
+
*/
|
|
26
|
+
stopOnCommitMessage?: string;
|
|
27
|
+
}): Promise<string>;
|
|
28
|
+
getLastReleaseCommitData(): Promise<{
|
|
29
|
+
lastRelaseCommitMsg: string;
|
|
30
|
+
/**
|
|
31
|
+
* -1 if not found
|
|
32
|
+
*/
|
|
33
|
+
index: number;
|
|
34
|
+
}>;
|
|
35
|
+
getLastPackageVersionChangesFromChnagelog(): Promise<string>;
|
|
36
|
+
private get changeLogPath();
|
|
37
|
+
get changelogContent(): any;
|
|
38
|
+
changeLogKeyWord(): string;
|
|
39
|
+
getChnagelogData(): ChangelogData[];
|
|
40
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { BaseProject } from './base-project';
|
|
3
|
+
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
4
|
+
export declare class BaseVscodeHelpers<PROJCET extends BaseProject = any> extends BaseFeatureForProject {
|
|
5
|
+
get extensions(): string[];
|
|
6
|
+
}
|
|
@@ -20,10 +20,18 @@ export type CoreCommandArgOptions<PROJECT extends BaseProject> = {
|
|
|
20
20
|
* first arg from command line
|
|
21
21
|
*/
|
|
22
22
|
firstArg: string;
|
|
23
|
+
/**
|
|
24
|
+
* Not question for user ex.
|
|
25
|
+
* - automatic process of patch release
|
|
26
|
+
* - automatic deployment for default server
|
|
27
|
+
*/
|
|
28
|
+
automaticProcess?: boolean;
|
|
23
29
|
/**
|
|
24
30
|
* orignal args with params
|
|
25
31
|
*/
|
|
26
32
|
argsWithParams: string;
|
|
33
|
+
copyto?: string[];
|
|
34
|
+
copytoall?: boolean;
|
|
27
35
|
/**
|
|
28
36
|
* args from command line (clearn from params)
|
|
29
37
|
*/
|
package/client/lib/models.d.ts
CHANGED
|
@@ -24,4 +24,10 @@ export type LibraryBuildCommandOptions = {
|
|
|
24
24
|
export type LibrariesBuildOptions = {
|
|
25
25
|
strategy?: 'link' | 'copy';
|
|
26
26
|
buildType: core.CoreModels.LibraryType;
|
|
27
|
-
|
|
27
|
+
copylink_to_node_modules?: string[];
|
|
28
|
+
};
|
|
29
|
+
export interface ChangelogData {
|
|
30
|
+
changes: string[];
|
|
31
|
+
version: string;
|
|
32
|
+
date: string;
|
|
33
|
+
}
|
package/client/package.json
CHANGED
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"firedev-helpers"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
|
-
"version": "16.444.
|
|
46
|
+
"version": "16.444.21",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"json10-writer": "~16.444.
|
|
48
|
+
"json10-writer": "~16.444.14",
|
|
49
49
|
"lowdb": "7.0.1",
|
|
50
50
|
"task.js": "0.1.5",
|
|
51
|
-
"tnp-models": "~16.444.
|
|
51
|
+
"tnp-models": "~16.444.14",
|
|
52
52
|
"typescript": "~5.0.2"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"@compodoc/compodoc": "1.1.23",
|
|
90
90
|
"@iconify/icons-fa-solid": "1.2.2",
|
|
91
91
|
"@iconify/icons-mdi": "1.2.1",
|
|
92
|
+
"@inquirer/prompts": "5.3.2",
|
|
92
93
|
"@mdi/js": "7.2.96",
|
|
93
94
|
"@ng-matero/extensions": "16.0.0",
|
|
94
95
|
"@ngneat/falso": "6.4.0",
|
|
@@ -146,7 +147,7 @@
|
|
|
146
147
|
"angular-material-css-vars": "5.0.2",
|
|
147
148
|
"angular-resize-event": "3.2.0",
|
|
148
149
|
"animate.css": "4.1.1 ",
|
|
149
|
-
"any-project-cli": "
|
|
150
|
+
"any-project-cli": "16.444.12",
|
|
150
151
|
"app-root-path": "3.0.0",
|
|
151
152
|
"axios": "1.3.5",
|
|
152
153
|
"background-worker-process": "~16.100.10",
|
|
@@ -202,13 +203,13 @@
|
|
|
202
203
|
"file-saver": "2.0.5",
|
|
203
204
|
"file-type": "18.5.0",
|
|
204
205
|
"firedev": "^16",
|
|
205
|
-
"firedev-crud": "~16.444.
|
|
206
|
-
"firedev-crud-deamon": "~16.444.
|
|
207
|
-
"firedev-ports": "~16.444.
|
|
208
|
-
"firedev-storage": "~16.444.
|
|
209
|
-
"firedev-type-sql": "~16.444.
|
|
210
|
-
"firedev-typeorm": "~16.444.
|
|
211
|
-
"firedev-ui": "
|
|
206
|
+
"firedev-crud": "~16.444.13",
|
|
207
|
+
"firedev-crud-deamon": "~16.444.13",
|
|
208
|
+
"firedev-ports": "~16.444.13",
|
|
209
|
+
"firedev-storage": "~16.444.9",
|
|
210
|
+
"firedev-type-sql": "~16.444.13",
|
|
211
|
+
"firedev-typeorm": "~16.444.9",
|
|
212
|
+
"firedev-ui": "16.444.1",
|
|
212
213
|
"fkill": "6.1.0",
|
|
213
214
|
"font-awesome": "4.7.0",
|
|
214
215
|
"form-data": "4.0.0",
|
|
@@ -226,11 +227,11 @@
|
|
|
226
227
|
"image-focus": "1.2.1",
|
|
227
228
|
"immer": "10.0.2",
|
|
228
229
|
"immutable": "4.3.0",
|
|
229
|
-
"incremental-compiler": "~16.444.
|
|
230
|
+
"incremental-compiler": "~16.444.14",
|
|
230
231
|
"inquirer": "7.3.3",
|
|
231
232
|
"inquirer-autocomplete-prompt": "1.3.0",
|
|
232
233
|
"is-elevated": "3.0.0",
|
|
233
|
-
"isomorphic-region-loader": "~16.444.
|
|
234
|
+
"isomorphic-region-loader": "~16.444.13",
|
|
234
235
|
"istanbul-instrumenter-loader": "2.0.0",
|
|
235
236
|
"jest": "29.5.0",
|
|
236
237
|
"jest-date-mock": "1.0.8",
|
|
@@ -241,7 +242,7 @@
|
|
|
241
242
|
"joi": "17.9.2",
|
|
242
243
|
"jscodeshift": "0.6.3",
|
|
243
244
|
"json-stringify-safe": "5.0.1",
|
|
244
|
-
"json10": "~16.444.
|
|
245
|
+
"json10": "~16.444.13",
|
|
245
246
|
"json5": "2.2.1",
|
|
246
247
|
"json5-writer": "0.2.0",
|
|
247
248
|
"jszip": "3.10.1",
|
|
@@ -250,8 +251,8 @@
|
|
|
250
251
|
"localforage": "1.10.0",
|
|
251
252
|
"lockfile": "1.0.4",
|
|
252
253
|
"lodash": "4.17.20",
|
|
253
|
-
"lodash-walk-object": "~16.444.
|
|
254
|
-
"magic-renamer": "~16.444.
|
|
254
|
+
"lodash-walk-object": "~16.444.12",
|
|
255
|
+
"magic-renamer": "~16.444.12",
|
|
255
256
|
"material-design-icons": "3.0.1",
|
|
256
257
|
"method-override": "2.3.10",
|
|
257
258
|
"minimist": "1.2.0",
|
|
@@ -262,10 +263,10 @@
|
|
|
262
263
|
"ng-in-viewport": "15.0.2",
|
|
263
264
|
"ng-lock": "16.0.1",
|
|
264
265
|
"ng-packagr": "16.0.1",
|
|
265
|
-
"ng-talkback": "~16.444.
|
|
266
|
-
"ng2-logger": "~16.444.
|
|
266
|
+
"ng-talkback": "~16.444.5",
|
|
267
|
+
"ng2-logger": "~16.444.14",
|
|
267
268
|
"ng2-pdfjs-viewer": "16.0.4",
|
|
268
|
-
"ng2-rest": "~16.444.
|
|
269
|
+
"ng2-rest": "~16.444.12",
|
|
269
270
|
"ngx-ace-wrapper": "14.0.0",
|
|
270
271
|
"ngx-editor": "15.3.0",
|
|
271
272
|
"ngx-highlightjs": "9.0.0",
|
|
@@ -278,7 +279,7 @@
|
|
|
278
279
|
"ngx-scrolltop": "6.0.0",
|
|
279
280
|
"ngx-store": "3.1.1",
|
|
280
281
|
"ngx-typed-js": "2.1.1",
|
|
281
|
-
"node-cli-tester": "~16.444.
|
|
282
|
+
"node-cli-tester": "~16.444.5",
|
|
282
283
|
"node-localstorage": "2.1.6",
|
|
283
284
|
"node-notifier": "6.0.0",
|
|
284
285
|
"node-polyfill-webpack-plugin": "2.0.1",
|
|
@@ -307,30 +308,30 @@
|
|
|
307
308
|
"q": "1.5.1",
|
|
308
309
|
"rallax.js": "2.0.4",
|
|
309
310
|
"randomcolor": "0.5.3",
|
|
310
|
-
"record-replay-req-res-scenario": "~16.444.
|
|
311
|
+
"record-replay-req-res-scenario": "~16.444.5",
|
|
311
312
|
"reflect-metadata": "0.1.10",
|
|
312
313
|
"rimraf": "2.6.2",
|
|
313
314
|
"rxjs": "~7.8.0",
|
|
314
315
|
"semver": "6.3.0",
|
|
315
|
-
"simple-git": "
|
|
316
|
+
"simple-git": "3.25.0",
|
|
316
317
|
"sinon": "15.2.0",
|
|
317
318
|
"sloc": "0.2.0",
|
|
318
319
|
"socket.io": "4.7.5",
|
|
319
320
|
"socket.io-client": "4.7.5",
|
|
320
321
|
"sort-package-json": "1.11.0",
|
|
321
322
|
"sql.js": "1.8.0",
|
|
322
|
-
"static-columns": "~16.444.
|
|
323
|
+
"static-columns": "~16.444.8",
|
|
323
324
|
"string-similarity": "4.0.2",
|
|
324
325
|
"sudo-block": "3.0.0",
|
|
325
326
|
"supertest": "6.3.3",
|
|
326
327
|
"sweetalert2": "11.7.12",
|
|
327
328
|
"systeminformation": "3.45.7",
|
|
328
329
|
"threads": "1.7.0",
|
|
329
|
-
"tnp-cli": "~16.444.
|
|
330
|
-
"tnp-config": "~16.444.
|
|
331
|
-
"tnp-core": "~16.444.
|
|
332
|
-
"tnp-db": "~16.444.
|
|
333
|
-
"tnp-helpers": "~16.444.
|
|
330
|
+
"tnp-cli": "~16.444.5",
|
|
331
|
+
"tnp-config": "~16.444.14",
|
|
332
|
+
"tnp-core": "~16.444.16",
|
|
333
|
+
"tnp-db": "~16.444.12",
|
|
334
|
+
"tnp-helpers": "~16.444.20",
|
|
334
335
|
"ts-debug": "1.3.0",
|
|
335
336
|
"ts-json-schema-generator": "2.1.1",
|
|
336
337
|
"ts-loader": "2.3.1",
|
|
@@ -340,13 +341,13 @@
|
|
|
340
341
|
"turndown": "7.1.2",
|
|
341
342
|
"typedoc": "0.25.13",
|
|
342
343
|
"typedoc-plugin-markdown": "4.0.3",
|
|
343
|
-
"typescript-class-helpers": "~16.444.
|
|
344
|
+
"typescript-class-helpers": "~16.444.14",
|
|
344
345
|
"typescript-formatter": "~7.2.2",
|
|
345
346
|
"underscore": "1.9.1",
|
|
346
347
|
"uuid": "8.3.2",
|
|
347
348
|
"validator": "9.2.0",
|
|
348
349
|
"video.js": "8.3.0",
|
|
349
|
-
"vpn-split": "~16.444.
|
|
350
|
+
"vpn-split": "~16.444.5",
|
|
350
351
|
"vscode": "1.1.37",
|
|
351
352
|
"wait-on": "7.0.1",
|
|
352
353
|
"watch": "1.0.2",
|
|
@@ -356,6 +357,6 @@
|
|
|
356
357
|
"yup": "1.1.1",
|
|
357
358
|
"zone.js": "~0.13.0"
|
|
358
359
|
},
|
|
359
|
-
"lastBuildTagHash": "
|
|
360
|
+
"lastBuildTagHash": "798f9b3a244baf724b6566eade5e1cf8d4934dab",
|
|
360
361
|
"main": "dist/app.electron.js"
|
|
361
362
|
}
|
|
@@ -4,6 +4,8 @@ import { TypeOfCommit } from './commit-data';
|
|
|
4
4
|
export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<any, any> = BaseProject> extends CommandLineFeature<PARAMS, PROJECT> {
|
|
5
5
|
_(): void;
|
|
6
6
|
preventCwdIsNotProject(): void;
|
|
7
|
+
hosts(): void;
|
|
8
|
+
countCommits(): void;
|
|
7
9
|
removeSubmodules(): void;
|
|
8
10
|
setEditor(): Promise<void>;
|
|
9
11
|
/**
|
|
@@ -16,6 +18,7 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
|
|
|
16
18
|
develop(): Promise<void>;
|
|
17
19
|
dev(): Promise<void>;
|
|
18
20
|
pull(): Promise<void>;
|
|
21
|
+
pullAll(): Promise<void>;
|
|
19
22
|
private __resetInfo;
|
|
20
23
|
reset(): Promise<void>;
|
|
21
24
|
soft(): void;
|
|
@@ -51,6 +54,7 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
|
|
|
51
54
|
commitMessageRequired?: boolean;
|
|
52
55
|
noExit?: boolean;
|
|
53
56
|
}): Promise<void>;
|
|
57
|
+
_preventPushPullFromNotCorrectBranch(): Promise<void>;
|
|
54
58
|
push(options?: {
|
|
55
59
|
force?: boolean;
|
|
56
60
|
typeofCommit?: TypeOfCommit;
|
|
@@ -113,7 +117,6 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
|
|
|
113
117
|
REMOTE_https(): Promise<void>;
|
|
114
118
|
origin(): void;
|
|
115
119
|
origins(): void;
|
|
116
|
-
countCommits(): void;
|
|
117
120
|
isTerminalSupported(): void;
|
|
118
121
|
PROJ_EXT(): void;
|
|
119
122
|
projdb(): void;
|
|
@@ -6,6 +6,7 @@ var index_1 = require("../index");
|
|
|
6
6
|
var command_line_feature_backend_1 = require("./command-line-feature.backend");
|
|
7
7
|
var tnp_core_1 = require("tnp-core");
|
|
8
8
|
var tnp_config_1 = require("tnp-config");
|
|
9
|
+
var tnp_config_2 = require("tnp-config");
|
|
9
10
|
var tnp_core_2 = require("tnp-core");
|
|
10
11
|
var BaseCommandLine = /** @class */ (function (_super) {
|
|
11
12
|
tslib_1.__extends(BaseCommandLine, _super);
|
|
@@ -20,6 +21,19 @@ var BaseCommandLine = /** @class */ (function (_super) {
|
|
|
20
21
|
index_1.Helpers.error('This is not a project folder', false, true);
|
|
21
22
|
}
|
|
22
23
|
};
|
|
24
|
+
//#region commands / hosts
|
|
25
|
+
BaseCommandLine.prototype.hosts = function () {
|
|
26
|
+
index_1.Helpers.run("code ".concat((0, tnp_core_2.crossPlatformPath)(tnp_config_1.HOST_FILE_PATH))).sync();
|
|
27
|
+
process.exit(0);
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region commands / count commits
|
|
31
|
+
BaseCommandLine.prototype.countCommits = function () {
|
|
32
|
+
console.log(index_1.Helpers.git.countCommits(this.cwd));
|
|
33
|
+
this._exit();
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region commands / remove submodules
|
|
23
37
|
BaseCommandLine.prototype.removeSubmodules = function () {
|
|
24
38
|
var e_1, _a;
|
|
25
39
|
index_1.Helpers.taskStarted('Removing submodules...');
|
|
@@ -46,6 +60,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
|
|
|
46
60
|
index_1.Helpers.taskDone('Done');
|
|
47
61
|
this._exit();
|
|
48
62
|
};
|
|
63
|
+
//#endregion
|
|
49
64
|
//#region commands / set editor
|
|
50
65
|
BaseCommandLine.prototype.setEditor = function () {
|
|
51
66
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
@@ -317,6 +332,23 @@ var BaseCommandLine = /** @class */ (function (_super) {
|
|
|
317
332
|
});
|
|
318
333
|
};
|
|
319
334
|
//#endregion
|
|
335
|
+
//#region commands / pull all
|
|
336
|
+
BaseCommandLine.prototype.pullAll = function () {
|
|
337
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
338
|
+
return tslib_1.__generator(this, function (_a) {
|
|
339
|
+
switch (_a.label) {
|
|
340
|
+
case 0:
|
|
341
|
+
this.preventCwdIsNotProject();
|
|
342
|
+
return [4 /*yield*/, this.project.git.pullProcess(true)];
|
|
343
|
+
case 1:
|
|
344
|
+
_a.sent();
|
|
345
|
+
this._exit();
|
|
346
|
+
return [2 /*return*/];
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
});
|
|
350
|
+
};
|
|
351
|
+
//#endregion
|
|
320
352
|
//#region commands / reset
|
|
321
353
|
BaseCommandLine.prototype.__resetInfo = function (branchToReset) {
|
|
322
354
|
index_1.Helpers.info("\n\n YOU ARE RESETING EVERYTHING TO BRANCH: ".concat(tnp_core_1.chalk.bold(branchToReset), "\n\n- curret project (").concat(this.project.name, ")\n").concat(tnp_core_1._.isArray(this.project.children) && this.project.children.length > 0
|
|
@@ -618,6 +650,64 @@ var BaseCommandLine = /** @class */ (function (_super) {
|
|
|
618
650
|
};
|
|
619
651
|
//#endregion
|
|
620
652
|
//#region commands / push
|
|
653
|
+
BaseCommandLine.prototype._preventPushPullFromNotCorrectBranch = function () {
|
|
654
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
655
|
+
var _loop_1, this_1, state_1;
|
|
656
|
+
return tslib_1.__generator(this, function (_a) {
|
|
657
|
+
switch (_a.label) {
|
|
658
|
+
case 0:
|
|
659
|
+
_loop_1 = function () {
|
|
660
|
+
var devBranch, options_1, res;
|
|
661
|
+
return tslib_1.__generator(this, function (_b) {
|
|
662
|
+
switch (_b.label) {
|
|
663
|
+
case 0:
|
|
664
|
+
devBranch = this_1.project.git.duringPushWarnIfProjectNotOnSpecyficDevBranch();
|
|
665
|
+
if (!(!!devBranch && devBranch !== this_1.project.git.currentBranchName)) return [3 /*break*/, 2];
|
|
666
|
+
index_1.Helpers.warn("\n\n ".concat(this_1.project.genericName, "\n\n You are not on ").concat(devBranch, " branch. Please switch to this branch and try again\n\n\n\n "), false);
|
|
667
|
+
options_1 = {
|
|
668
|
+
open: { name: 'Open in vscode' },
|
|
669
|
+
continue: { name: 'Continue (check again)' },
|
|
670
|
+
continueForce: { name: 'Continue (without checking)' },
|
|
671
|
+
exit: { name: 'Exit process' },
|
|
672
|
+
};
|
|
673
|
+
return [4 /*yield*/, index_1.Helpers.selectChoicesAsk('What you want to do ?', Object.keys(options_1).map(function (k) {
|
|
674
|
+
return { name: options_1[k].name, value: k };
|
|
675
|
+
}))];
|
|
676
|
+
case 1:
|
|
677
|
+
res = _b.sent();
|
|
678
|
+
if (res === 'continue') {
|
|
679
|
+
return [2 /*return*/, "continue"];
|
|
680
|
+
}
|
|
681
|
+
if (res === 'exit') {
|
|
682
|
+
this_1._exit();
|
|
683
|
+
}
|
|
684
|
+
if (res === 'open') {
|
|
685
|
+
this_1.project.run('code . ').sync();
|
|
686
|
+
return [2 /*return*/, "continue"];
|
|
687
|
+
}
|
|
688
|
+
if (res === 'continueForce') {
|
|
689
|
+
return [2 /*return*/, { value: void 0 }];
|
|
690
|
+
}
|
|
691
|
+
_b.label = 2;
|
|
692
|
+
case 2: return [2 /*return*/, { value: void 0 }];
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
};
|
|
696
|
+
this_1 = this;
|
|
697
|
+
_a.label = 1;
|
|
698
|
+
case 1:
|
|
699
|
+
if (!true) return [3 /*break*/, 3];
|
|
700
|
+
return [5 /*yield**/, _loop_1()];
|
|
701
|
+
case 2:
|
|
702
|
+
state_1 = _a.sent();
|
|
703
|
+
if (typeof state_1 === "object")
|
|
704
|
+
return [2 /*return*/, state_1.value];
|
|
705
|
+
return [3 /*break*/, 1];
|
|
706
|
+
case 3: return [2 /*return*/];
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
});
|
|
710
|
+
};
|
|
621
711
|
BaseCommandLine.prototype.push = function (options) {
|
|
622
712
|
if (options === void 0) { options = {}; }
|
|
623
713
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
@@ -626,10 +716,13 @@ var BaseCommandLine = /** @class */ (function (_super) {
|
|
|
626
716
|
switch (_a.label) {
|
|
627
717
|
case 0:
|
|
628
718
|
this.preventCwdIsNotProject();
|
|
719
|
+
return [4 /*yield*/, this._preventPushPullFromNotCorrectBranch()];
|
|
720
|
+
case 1:
|
|
721
|
+
_a.sent();
|
|
629
722
|
return [4 /*yield*/, this.project.git.pushProcess(tslib_1.__assign(tslib_1.__assign({}, options), { forcePushNoQuestion: options.force, args: this.args, exitCallBack: function () {
|
|
630
723
|
_this._exit();
|
|
631
724
|
}, setOrigin: this.params['setOrigin'] }))];
|
|
632
|
-
case
|
|
725
|
+
case 2:
|
|
633
726
|
_a.sent();
|
|
634
727
|
if (options.noExit) {
|
|
635
728
|
return [2 /*return*/];
|
|
@@ -1108,7 +1201,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
|
|
|
1108
1201
|
var libs = proj.children.filter(function (child) {
|
|
1109
1202
|
process.stdout.write('.');
|
|
1110
1203
|
return child.git.thereAreSomeUncommitedChangeExcept([
|
|
1111
|
-
|
|
1204
|
+
tnp_config_2.config.file.package_json,
|
|
1112
1205
|
]);
|
|
1113
1206
|
});
|
|
1114
1207
|
console.log('\n' + index_1.Helpers.terminalLine());
|
|
@@ -1209,14 +1302,13 @@ var BaseCommandLine = /** @class */ (function (_super) {
|
|
|
1209
1302
|
this.REMOTES();
|
|
1210
1303
|
};
|
|
1211
1304
|
//#endregion
|
|
1212
|
-
|
|
1213
|
-
console.log(index_1.Helpers.git.countCommits(this.cwd));
|
|
1214
|
-
this._exit();
|
|
1215
|
-
};
|
|
1305
|
+
//#region is terminal supported
|
|
1216
1306
|
BaseCommandLine.prototype.isTerminalSupported = function () {
|
|
1217
1307
|
console.log("Terminal is supported: ".concat(index_1.Helpers.isSupportedFiredevTerminal));
|
|
1218
1308
|
this._exit();
|
|
1219
1309
|
};
|
|
1310
|
+
//#endregion
|
|
1311
|
+
//#region prox ext
|
|
1220
1312
|
BaseCommandLine.prototype.PROJ_EXT = function () {
|
|
1221
1313
|
this.preventCwdIsNotProject();
|
|
1222
1314
|
var p = this.project.pathFor('.vscode/extensions.json');
|
|
@@ -1234,12 +1326,15 @@ var BaseCommandLine = /** @class */ (function (_super) {
|
|
|
1234
1326
|
}
|
|
1235
1327
|
this._exit();
|
|
1236
1328
|
};
|
|
1329
|
+
//#endregion
|
|
1330
|
+
//#region proj db
|
|
1237
1331
|
BaseCommandLine.prototype.projdb = function () {
|
|
1238
1332
|
this.preventCwdIsNotProject();
|
|
1239
1333
|
index_1.Helpers.info("Projects db location:\n ".concat(this.project.linkedProjects.projectsDbLocation, "\n\n opening in vscode...\n\n "));
|
|
1240
1334
|
index_1.Helpers.run("code ".concat(this.project.linkedProjects.projectsDbLocation)).sync();
|
|
1241
1335
|
this._exit();
|
|
1242
1336
|
};
|
|
1337
|
+
//#endregion
|
|
1243
1338
|
//#region filter all project branches by pattern
|
|
1244
1339
|
BaseCommandLine.prototype.__filterBranchesByPattern = function (branchPatternOrBranchName) {
|
|
1245
1340
|
return index_1.Helpers.arrays.uniqArray(this.project.git.getBranchesNamesBy(branchPatternOrBranchName).map(function (a) {
|