tnp-helpers 16.444.20 → 16.444.22
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 +85 -2
- package/browser/esm2022/lib/base/base-library-build.mjs +4 -2
- package/browser/esm2022/lib/base/base-npm-helpers.mjs +168 -15
- package/browser/esm2022/lib/base/base-project.mjs +14 -1
- package/browser/esm2022/lib/base/base-release-process.mjs +582 -0
- package/browser/esm2022/lib/base/base-vscode.mjs +10 -1
- package/browser/esm2022/lib/base/commit-data.mjs +116 -44
- package/browser/esm2022/lib/base/core-project.mjs +1 -1
- package/browser/esm2022/lib/base/index.mjs +3 -1
- package/browser/esm2022/lib/models.mjs +1 -1
- package/browser/fesm2022/tnp-helpers.mjs +1016 -113
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-git.d.ts +22 -4
- package/browser/lib/base/base-library-build.d.ts +1 -1
- package/browser/lib/base/base-npm-helpers.d.ts +28 -1
- package/browser/lib/base/base-project.d.ts +7 -0
- package/browser/lib/base/base-release-process.d.ts +70 -0
- package/browser/lib/base/commit-data.d.ts +18 -13
- package/browser/lib/base/core-project.d.ts +9 -0
- package/browser/lib/base/index.d.ts +1 -0
- package/browser/lib/models.d.ts +11 -1
- package/client/esm2022/lib/base/base-git.mjs +85 -2
- package/client/esm2022/lib/base/base-library-build.mjs +4 -2
- package/client/esm2022/lib/base/base-npm-helpers.mjs +168 -15
- package/client/esm2022/lib/base/base-project.mjs +14 -1
- package/client/esm2022/lib/base/base-release-process.mjs +582 -0
- package/client/esm2022/lib/base/base-vscode.mjs +10 -1
- package/client/esm2022/lib/base/commit-data.mjs +116 -44
- package/client/esm2022/lib/base/core-project.mjs +1 -1
- package/client/esm2022/lib/base/index.mjs +3 -1
- package/client/esm2022/lib/models.mjs +1 -1
- package/client/fesm2022/tnp-helpers.mjs +1016 -113
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-git.d.ts +22 -4
- package/client/lib/base/base-library-build.d.ts +1 -1
- package/client/lib/base/base-npm-helpers.d.ts +28 -1
- package/client/lib/base/base-project.d.ts +7 -0
- package/client/lib/base/base-release-process.d.ts +70 -0
- package/client/lib/base/commit-data.d.ts +18 -13
- package/client/lib/base/core-project.d.ts +9 -0
- package/client/lib/base/index.d.ts +1 -0
- package/client/lib/models.d.ts +11 -1
- package/client/package.json +32 -31
- package/lib/base/base-command-line.backend.d.ts +4 -0
- package/lib/base/base-command-line.backend.js +113 -1
- package/lib/base/base-command-line.backend.js.map +1 -1
- package/lib/base/base-git.d.ts +19 -1
- package/lib/base/base-git.js +156 -41
- package/lib/base/base-git.js.map +1 -1
- package/lib/base/base-library-build.d.ts +1 -1
- package/lib/base/base-library-build.js +33 -31
- package/lib/base/base-library-build.js.map +1 -1
- package/lib/base/base-npm-helpers.d.ts +30 -2
- package/lib/base/base-npm-helpers.js +212 -17
- package/lib/base/base-npm-helpers.js.map +1 -1
- package/lib/base/base-project.d.ts +7 -0
- package/lib/base/base-project.js +26 -2
- package/lib/base/base-project.js.map +1 -1
- package/lib/base/base-release-process.d.ts +69 -0
- package/lib/base/base-release-process.js +894 -0
- package/lib/base/base-release-process.js.map +1 -0
- package/lib/base/base-vscode.js +9 -0
- package/lib/base/base-vscode.js.map +1 -1
- package/lib/base/commit-data.d.ts +17 -12
- package/lib/base/commit-data.js +138 -78
- package/lib/base/commit-data.js.map +1 -1
- package/lib/base/core-project.d.ts +9 -0
- package/lib/base/core-project.js.map +1 -1
- package/lib/base/index.d.ts +2 -0
- package/lib/base/index.js +2 -0
- package/lib/base/index.js.map +1 -1
- package/lib/base/translate.d.ts +227 -1
- package/lib/base/translate.js +566 -54
- package/lib/base/translate.js.map +1 -1
- package/lib/helpers/for-backend/helpers-console-gui.d.ts +2 -1
- package/lib/helpers/for-backend/helpers-console-gui.js +3 -2
- 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-git.backend.d.ts +29 -1
- package/lib/helpers/for-backend/helpers-git.backend.js +204 -15
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-process.backend.d.ts +10 -8
- package/lib/helpers/for-backend/helpers-process.backend.js +56 -56
- 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 +11 -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 +36 -35
- package/websql/esm2022/lib/base/base-git.mjs +85 -2
- package/websql/esm2022/lib/base/base-library-build.mjs +4 -2
- package/websql/esm2022/lib/base/base-npm-helpers.mjs +168 -15
- package/websql/esm2022/lib/base/base-project.mjs +16 -3
- package/websql/esm2022/lib/base/base-release-process.mjs +582 -0
- package/websql/esm2022/lib/base/base-vscode.mjs +10 -1
- package/websql/esm2022/lib/base/commit-data.mjs +116 -44
- package/websql/esm2022/lib/base/core-project.mjs +1 -1
- package/websql/esm2022/lib/base/index.mjs +3 -1
- package/websql/esm2022/lib/models.mjs +1 -1
- package/websql/fesm2022/tnp-helpers.mjs +1018 -115
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-git.d.ts +22 -4
- package/websql/lib/base/base-library-build.d.ts +1 -1
- package/websql/lib/base/base-npm-helpers.d.ts +28 -1
- package/websql/lib/base/base-project.d.ts +7 -0
- package/websql/lib/base/base-release-process.d.ts +70 -0
- package/websql/lib/base/commit-data.d.ts +18 -13
- package/websql/lib/base/core-project.d.ts +9 -0
- package/websql/lib/base/index.d.ts +1 -0
- package/websql/lib/models.d.ts +11 -1
|
@@ -7,7 +7,7 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
7
7
|
unstageAllFiles(): any;
|
|
8
8
|
revertFileChanges(fileReletivePath: string): any;
|
|
9
9
|
clone(url: string, destinationFolderName?: string, branchName?: string): Promise<any>;
|
|
10
|
-
restoreLastVersion(
|
|
10
|
+
restoreLastVersion(relativeFilePath: string): void;
|
|
11
11
|
stageAllFiles(): any;
|
|
12
12
|
stash(optinos?: {
|
|
13
13
|
onlyStaged?: boolean;
|
|
@@ -19,7 +19,7 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
19
19
|
get isWithoutGitRepository(): any;
|
|
20
20
|
get isGitRoot(): any;
|
|
21
21
|
get originURL(): any;
|
|
22
|
-
commit(commitMessage?: string):
|
|
22
|
+
commit(commitMessage?: string): void;
|
|
23
23
|
/**
|
|
24
24
|
* alias to stage all and commit
|
|
25
25
|
*/
|
|
@@ -52,7 +52,11 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
52
52
|
get isInMergeProcess(): any;
|
|
53
53
|
lastCommitDate(): any;
|
|
54
54
|
lastCommitHash(): any;
|
|
55
|
-
lastCommitMessage():
|
|
55
|
+
lastCommitMessage(): string;
|
|
56
|
+
penultimateCommitMessage(): Promise<string>;
|
|
57
|
+
getCommitMessageByIndex(index: number): Promise<any>;
|
|
58
|
+
getCommitMessageByHash(hash: string): Promise<any>;
|
|
59
|
+
getCommitHashByIndex(index: number): Promise<any>;
|
|
56
60
|
penultimateCommitHash(): any;
|
|
57
61
|
checkTagExists(tag: string): any;
|
|
58
62
|
checkout(branchName: string, options?: {
|
|
@@ -110,6 +114,10 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
110
114
|
pushProcess(options?: {
|
|
111
115
|
force?: boolean;
|
|
112
116
|
typeofCommit?: TypeOfCommit;
|
|
117
|
+
askToConfirmPush?: boolean;
|
|
118
|
+
askToConfirmCommit?: boolean;
|
|
119
|
+
skipLint?: boolean;
|
|
120
|
+
askToConfirmBranchChange?: boolean;
|
|
113
121
|
origin?: string;
|
|
114
122
|
args?: string[];
|
|
115
123
|
setOrigin?: 'ssh' | 'http';
|
|
@@ -117,9 +125,19 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
117
125
|
forcePushNoQuestion?: boolean;
|
|
118
126
|
commitMessageRequired?: boolean;
|
|
119
127
|
skipChildren?: boolean;
|
|
120
|
-
}): Promise<
|
|
128
|
+
}): Promise<void>;
|
|
121
129
|
_beforeAnyActionOnGitRoot(): any;
|
|
122
130
|
protected _beforePushProcessAction(): Promise<any>;
|
|
123
131
|
protected _beforePullProcessAction(cloneChildren?: boolean): Promise<any>;
|
|
124
132
|
protected _getCommitMessage(typeofCommit: TypeOfCommit, args: string[], commitMessageRequired?: boolean): Promise<CommitData>;
|
|
133
|
+
/**
|
|
134
|
+
* This will prevent accidental branch change for firedev projects
|
|
135
|
+
* @returns branch name
|
|
136
|
+
*/
|
|
137
|
+
duringPushWarnIfProjectNotOnSpecyficDevBranch(): string;
|
|
138
|
+
getChangedFilesInCommitByHash(hash: string): Promise<any>;
|
|
139
|
+
/**
|
|
140
|
+
* @param index 0 - means last commit
|
|
141
|
+
*/
|
|
142
|
+
getChangedFilesInCommitByIndex(index: number): Promise<any>;
|
|
125
143
|
}
|
|
@@ -38,7 +38,7 @@ export declare abstract class BaseLibraryBuild<PROJCET extends BaseProject = any
|
|
|
38
38
|
/**
|
|
39
39
|
* Angular library build
|
|
40
40
|
*/
|
|
41
|
-
buildLibraries({ watch, strategy, buildType, copylink_to_node_modules, }?: LibrariesBuildOptions & {
|
|
41
|
+
buildLibraries({ watch, strategy, releaseBuild, buildType, copylink_to_node_modules, }?: LibrariesBuildOptions & {
|
|
42
42
|
watch: boolean;
|
|
43
43
|
}): Promise<void>;
|
|
44
44
|
getLibraryBuildComamnd(options?: LibraryBuildCommandOptions): string | undefined;
|
|
@@ -7,11 +7,21 @@ import { CoreModels } from 'tnp-core/browser';
|
|
|
7
7
|
export declare class BaseNpmHelpers<PROJCET extends BaseProject = any> extends BaseFeatureForProject {
|
|
8
8
|
private packageJSON;
|
|
9
9
|
constructor(project: PROJCET);
|
|
10
|
+
/**
|
|
11
|
+
* if something else change package.json in this project
|
|
12
|
+
* and you know that you need to reload it..
|
|
13
|
+
*/
|
|
14
|
+
reloadPackageJsonInMemory(): void;
|
|
10
15
|
get name(): string;
|
|
11
16
|
/**
|
|
12
17
|
* version from package.json -> property version
|
|
13
18
|
*/
|
|
14
19
|
get version(): string;
|
|
20
|
+
set version(newVersion: string);
|
|
21
|
+
updateDependency(packageName: string, version: string): void;
|
|
22
|
+
get versionWithPatchPlusOne(): string;
|
|
23
|
+
get versionWithMinorPlusOneAndPatchZero(): string;
|
|
24
|
+
get versionWithMajorPlusOneAndMinorZeroAndPatchZero(): string;
|
|
15
25
|
/**
|
|
16
26
|
* Major Version from package.json
|
|
17
27
|
*/
|
|
@@ -51,7 +61,6 @@ export declare class BaseNpmHelpers<PROJCET extends BaseProject = any> extends B
|
|
|
51
61
|
* @returns object witl all deps from package json
|
|
52
62
|
*/
|
|
53
63
|
allDepsFromPackageJson(packageJson: PackageJson): any;
|
|
54
|
-
checkIfLogginInToNpm(): any;
|
|
55
64
|
linkNodeModulesTo(proj: Partial<BaseProject>): any;
|
|
56
65
|
preferYarnOverNpm(): boolean;
|
|
57
66
|
makeSureNodeModulesInstalled(options?: {
|
|
@@ -76,4 +85,22 @@ export declare class BaseNpmHelpers<PROJCET extends BaseProject = any> extends B
|
|
|
76
85
|
unitlOutputContains(stdoutMsg: string | string[], stderMsg?: string | string[], timeout?: number, stdoutOutputContainsCallback?: () => any): any;
|
|
77
86
|
};
|
|
78
87
|
prepareCommand(optiosn?: CoreModels.NpmInstallOptions): Promise<string>;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @param registry without specified registr is checking npm registry
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
isLoggedInToRegistry(registry?: string): Promise<boolean>;
|
|
94
|
+
/**
|
|
95
|
+
* Prompt the user to log in to a specific npm registry.
|
|
96
|
+
* @param {string} [registry] - Optional npm registry URL.
|
|
97
|
+
* @returns {Promise<void>} - A promise that resolves when the login process completes.
|
|
98
|
+
*/
|
|
99
|
+
loginToRegistry(registry?: string): Promise<void>;
|
|
100
|
+
makeSureLoggedInToNpmRegistry(registry?: string): Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated
|
|
103
|
+
* use makeSureLoggedInToNpmRegistry()
|
|
104
|
+
*/
|
|
105
|
+
checkIfLogginInToNpm(): any;
|
|
79
106
|
}
|
|
@@ -9,6 +9,7 @@ import { BaseNpmHelpers } from './base-npm-helpers';
|
|
|
9
9
|
import { BaseLinkedProjects } from './base-linked-projects';
|
|
10
10
|
import { BaseGit } from './base-git';
|
|
11
11
|
import { BaseVscodeHelpers } from './base-vscode';
|
|
12
|
+
import { BaseReleaseProcess } from './base-release-process';
|
|
12
13
|
export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYPE = BaseProjectType> {
|
|
13
14
|
static ins: BaseProjectResolver<BaseProject<any, CoreModels.BaseProjectType>>;
|
|
14
15
|
cache: any;
|
|
@@ -28,6 +29,7 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
28
29
|
npmHelpers: BaseNpmHelpers;
|
|
29
30
|
linkedProjects: BaseLinkedProjects;
|
|
30
31
|
vsCodeHelpers: BaseVscodeHelpers;
|
|
32
|
+
releaseProcess: BaseReleaseProcess;
|
|
31
33
|
git: BaseGit;
|
|
32
34
|
private __location;
|
|
33
35
|
get location(): string;
|
|
@@ -167,6 +169,11 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
167
169
|
* init and build() project
|
|
168
170
|
*/
|
|
169
171
|
build(buildOptions?: any): Promise<void>;
|
|
172
|
+
/**
|
|
173
|
+
* publish project to npm
|
|
174
|
+
*/
|
|
175
|
+
publish(publishOptions?: any): Promise<void>;
|
|
176
|
+
release(releaseOptions?: any): Promise<void>;
|
|
170
177
|
/**
|
|
171
178
|
* lint porject
|
|
172
179
|
*/
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
newVersion: string;
|
|
15
|
+
commitsForChangelog: {
|
|
16
|
+
commitMessages: string;
|
|
17
|
+
index: number;
|
|
18
|
+
}[];
|
|
19
|
+
getReleaseWords(): string[];
|
|
20
|
+
startRelease(options?: Partial<Pick<BaseReleaseProcess<PROJCET>, 'automaticRelease' | 'type' | 'newVersion'>>): Promise<void>;
|
|
21
|
+
private reinstallNodeModules;
|
|
22
|
+
selectChangelogCommits(): Promise<{
|
|
23
|
+
commitMessages: string;
|
|
24
|
+
index: number;
|
|
25
|
+
}[]>;
|
|
26
|
+
private getCommitsUpToReleaseCommit;
|
|
27
|
+
private publishToNpm;
|
|
28
|
+
private testAfterPublish;
|
|
29
|
+
private testBeforePublish;
|
|
30
|
+
private commitAndPush;
|
|
31
|
+
protected releaseCommitTemplate(): string;
|
|
32
|
+
private testLibraries;
|
|
33
|
+
buildAllLibraries(): Promise<void>;
|
|
34
|
+
resetReleaseFiles(): Promise<any>;
|
|
35
|
+
get toBumpProjects(): PROJCET[];
|
|
36
|
+
bumpNewVersionEverywhere(): Promise<any>;
|
|
37
|
+
confirmNewVersion(): Promise<void>;
|
|
38
|
+
private selectReleaseType;
|
|
39
|
+
protected commitMessageInChangelogTransformFn(message: string): Promise<string>;
|
|
40
|
+
getChangelogContentToAppend(askForEveryItem: boolean): Promise<string>;
|
|
41
|
+
/**
|
|
42
|
+
* TODO extend this to all commits from last release
|
|
43
|
+
*/
|
|
44
|
+
updateChangeLogFromCommits(): Promise<void>;
|
|
45
|
+
extractChangedLibrariesInCommit(hashOrIndex: string | number): Promise<string>;
|
|
46
|
+
changelogItemTemplate(hashOrIndex: string | number, confirmEveryItem?: boolean): Promise<string>;
|
|
47
|
+
generateLastChangesSummary(): Promise<string>;
|
|
48
|
+
getLastChangesFromCommits({ maxMessagesToCheck, stopOnCommitMessage, }?: {
|
|
49
|
+
/**
|
|
50
|
+
* default 3
|
|
51
|
+
*/
|
|
52
|
+
maxMessagesToCheck?: number;
|
|
53
|
+
/**
|
|
54
|
+
* stop serching on commit message
|
|
55
|
+
*/
|
|
56
|
+
stopOnCommitMessage?: string;
|
|
57
|
+
}): Promise<string>;
|
|
58
|
+
getLastReleaseCommitData(): Promise<{
|
|
59
|
+
lastRelaseCommitMsg: string;
|
|
60
|
+
/**
|
|
61
|
+
* -1 if not found
|
|
62
|
+
*/
|
|
63
|
+
index: number;
|
|
64
|
+
}>;
|
|
65
|
+
getLastPackageVersionChangesFromChnagelog(): Promise<string>;
|
|
66
|
+
private get changeLogPath();
|
|
67
|
+
get changelogContent(): any;
|
|
68
|
+
changeLogKeyWord(): string;
|
|
69
|
+
getChnagelogData(): ChangelogData[];
|
|
70
|
+
}
|
|
@@ -1,22 +1,33 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
export type CommonCommitMsgBranch = 'refactor' | 'chore' | 'style' | 'docs' | 'test' | 'ci' | 'build';
|
|
2
|
+
export type CommonCommitMsgBranch = 'refactor' | 'chore' | 'style' | 'docs' | 'test' | 'ci' | 'build' | 'release';
|
|
3
3
|
export type TypeOfCommit = 'feature' | 'bugfix' | 'performance' | CommonCommitMsgBranch;
|
|
4
4
|
export type TypeOfMsgPrefix = 'feat' | 'fix' | 'perf' | CommonCommitMsgBranch;
|
|
5
5
|
export declare class CommitData {
|
|
6
|
-
private
|
|
6
|
+
private static cleanHttpFromCommitMessage;
|
|
7
|
+
private static getTeamsIdFrom;
|
|
8
|
+
private static getModuleNameFrom;
|
|
7
9
|
/**
|
|
8
10
|
*
|
|
9
11
|
* @returns jiras (from oldest to newset)
|
|
10
12
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
static extractAndOrderJiraNumbers(commitOrBranchName: string): string[];
|
|
14
|
+
static cleanMessageFromJiraNumTeamIdEtc(message: string, optinos?: {
|
|
15
|
+
teamID: string;
|
|
16
|
+
commitModuleName: string;
|
|
17
|
+
jiraNumbers: string[];
|
|
18
|
+
}): string;
|
|
15
19
|
private static getModuleNameFromBranch;
|
|
16
20
|
static getFromArgs(args: string[], typeOfCommit: TypeOfCommit): Promise<any>;
|
|
17
21
|
static getFromBranch(currentBranchName: string): Promise<any>;
|
|
18
22
|
static from(options: Pick<CommitData, 'message' | 'jiraNumbers' | 'typeOfCommit' | 'commitModuleName' | 'teamID'>): CommitData;
|
|
23
|
+
private _message;
|
|
19
24
|
typeOfCommit: TypeOfCommit;
|
|
25
|
+
/**
|
|
26
|
+
* ex. JIRA-2132 or MYJIRAREFIX-234234
|
|
27
|
+
*/
|
|
28
|
+
jiraNumbers: string[];
|
|
29
|
+
readonly commitModuleName: string;
|
|
30
|
+
readonly teamID: string;
|
|
20
31
|
private clearMessage;
|
|
21
32
|
/**
|
|
22
33
|
* pure message what was done (without jira or prefixes)
|
|
@@ -24,14 +35,8 @@ export declare class CommitData {
|
|
|
24
35
|
*/
|
|
25
36
|
get message(): string;
|
|
26
37
|
set message(message: string);
|
|
27
|
-
/**
|
|
28
|
-
* ex. JIRA-2132 or MYJIRAREFIX-234234
|
|
29
|
-
*/
|
|
30
|
-
jiraNumbers: string[];
|
|
31
|
-
readonly commitModuleName: string;
|
|
32
|
-
readonly teamID: string;
|
|
33
38
|
get branchPrefix(): TypeOfMsgPrefix;
|
|
34
39
|
get commitMessage(): string;
|
|
35
|
-
get branchName():
|
|
40
|
+
get branchName(): string;
|
|
36
41
|
get isActionCommit(): any;
|
|
37
42
|
}
|
|
@@ -15,11 +15,18 @@ export type CoreCommandArgOptions<PROJECT extends BaseProject> = {
|
|
|
15
15
|
watch?: boolean;
|
|
16
16
|
prod?: boolean;
|
|
17
17
|
debug?: boolean;
|
|
18
|
+
isInReleaseProcess?: boolean;
|
|
18
19
|
libraryBuildOptions?: LibrariesBuildOptions;
|
|
19
20
|
/**
|
|
20
21
|
* first arg from command line
|
|
21
22
|
*/
|
|
22
23
|
firstArg: string;
|
|
24
|
+
/**
|
|
25
|
+
* Not question for user ex.
|
|
26
|
+
* - automatic process of patch release
|
|
27
|
+
* - automatic deployment for default server
|
|
28
|
+
*/
|
|
29
|
+
automaticProcess?: boolean;
|
|
23
30
|
/**
|
|
24
31
|
* orignal args with params
|
|
25
32
|
*/
|
|
@@ -46,6 +53,7 @@ export declare class CoreProject<PROJECT extends BaseProject = BaseProject> {
|
|
|
46
53
|
* second color for project (optional)
|
|
47
54
|
*/
|
|
48
55
|
thirdColor?: string;
|
|
56
|
+
npmRegistry?: string;
|
|
49
57
|
description?: string;
|
|
50
58
|
/**
|
|
51
59
|
* ssh url for git repo
|
|
@@ -65,6 +73,7 @@ export declare class CoreProject<PROJECT extends BaseProject = BaseProject> {
|
|
|
65
73
|
environments?: CoreProjectEnvironment[];
|
|
66
74
|
startCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
67
75
|
relaseCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
76
|
+
publishCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
68
77
|
deployCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
69
78
|
testCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
70
79
|
buildCommand?: (options: CoreCommandArgOptions<PROJECT>) => Promise<void>;
|
|
@@ -6,6 +6,7 @@ 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-release-process';
|
|
9
10
|
export * from './commit-data';
|
|
10
11
|
export * from './core-project';
|
|
11
12
|
export * from './linked-project';
|
package/client/lib/models.d.ts
CHANGED
|
@@ -23,6 +23,16 @@ export type LibraryBuildCommandOptions = {
|
|
|
23
23
|
};
|
|
24
24
|
export type LibrariesBuildOptions = {
|
|
25
25
|
strategy?: 'link' | 'copy';
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
* this will be detected in future
|
|
29
|
+
*/
|
|
26
30
|
buildType: core.CoreModels.LibraryType;
|
|
27
31
|
copylink_to_node_modules?: string[];
|
|
28
|
-
|
|
32
|
+
releaseBuild?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export interface ChangelogData {
|
|
35
|
+
changes: string[];
|
|
36
|
+
version: string;
|
|
37
|
+
date: string;
|
|
38
|
+
}
|
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.22",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"json10-writer": "~16.444.
|
|
48
|
+
"json10-writer": "~16.444.15",
|
|
49
49
|
"lowdb": "7.0.1",
|
|
50
50
|
"task.js": "0.1.5",
|
|
51
|
-
"tnp-models": "~16.444.
|
|
51
|
+
"tnp-models": "~16.444.15",
|
|
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",
|
|
@@ -185,7 +186,7 @@
|
|
|
185
186
|
"electron-debug": "3.2.0",
|
|
186
187
|
"electron-reloader": "1.2.3",
|
|
187
188
|
"element-resize-detector": "1.1.15",
|
|
188
|
-
"enquirer": "2.
|
|
189
|
+
"enquirer": "2.4.1",
|
|
189
190
|
"enum-values": "1.2.1",
|
|
190
191
|
"errorhandler": "1.5.0",
|
|
191
192
|
"eslint": "8.51.0",
|
|
@@ -202,12 +203,12 @@
|
|
|
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.
|
|
206
|
+
"firedev-crud": "~16.444.14",
|
|
207
|
+
"firedev-crud-deamon": "~16.444.14",
|
|
208
|
+
"firedev-ports": "~16.444.14",
|
|
209
|
+
"firedev-storage": "~16.444.10",
|
|
210
|
+
"firedev-type-sql": "~16.444.14",
|
|
211
|
+
"firedev-typeorm": "~16.444.10",
|
|
211
212
|
"firedev-ui": "16.444.1",
|
|
212
213
|
"fkill": "6.1.0",
|
|
213
214
|
"font-awesome": "4.7.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.15",
|
|
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.14",
|
|
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.14",
|
|
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.13",
|
|
255
|
+
"magic-renamer": "~16.444.13",
|
|
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.6",
|
|
267
|
+
"ng2-logger": "~16.444.15",
|
|
267
268
|
"ng2-pdfjs-viewer": "16.0.4",
|
|
268
|
-
"ng2-rest": "~16.444.
|
|
269
|
+
"ng2-rest": "~16.444.13",
|
|
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.6",
|
|
282
283
|
"node-localstorage": "2.1.6",
|
|
283
284
|
"node-notifier": "6.0.0",
|
|
284
285
|
"node-polyfill-webpack-plugin": "2.0.1",
|
|
@@ -301,36 +302,36 @@
|
|
|
301
302
|
"primeicons": "6.0.1",
|
|
302
303
|
"primeng": "16.7.0",
|
|
303
304
|
"progress": "2.0.3",
|
|
304
|
-
"prompts": "
|
|
305
|
+
"prompts": "2.4.2",
|
|
305
306
|
"ps-list": "6.1.0",
|
|
306
307
|
"ps-node": "0.1.6",
|
|
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.6",
|
|
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.9",
|
|
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.6",
|
|
331
|
+
"tnp-config": "~16.444.15",
|
|
332
|
+
"tnp-core": "~16.444.18",
|
|
333
|
+
"tnp-db": "~16.444.13",
|
|
334
|
+
"tnp-helpers": "~16.444.21",
|
|
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.15",
|
|
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.6",
|
|
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": "f08fd536bd79de3596483bbeef46baefe54655e5",
|
|
360
361
|
"main": "dist/app.electron.js"
|
|
361
362
|
}
|
|
@@ -54,6 +54,7 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
|
|
|
54
54
|
commitMessageRequired?: boolean;
|
|
55
55
|
noExit?: boolean;
|
|
56
56
|
}): Promise<void>;
|
|
57
|
+
_preventPushPullFromNotCorrectBranch(): Promise<void>;
|
|
57
58
|
push(options?: {
|
|
58
59
|
force?: boolean;
|
|
59
60
|
typeofCommit?: TypeOfCommit;
|
|
@@ -116,6 +117,9 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
|
|
|
116
117
|
REMOTE_https(): Promise<void>;
|
|
117
118
|
origin(): void;
|
|
118
119
|
origins(): void;
|
|
120
|
+
LAST_COMMIT_HASH(): void;
|
|
121
|
+
COMMIT_MESSAGE_BY_HASH(): Promise<void>;
|
|
122
|
+
LAST_5_COMMITS(): Promise<void>;
|
|
119
123
|
isTerminalSupported(): void;
|
|
120
124
|
PROJ_EXT(): void;
|
|
121
125
|
projdb(): void;
|