tnp-helpers 18.0.4 → 18.0.9
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-git.mjs +5 -5
- package/browser/esm2022/lib/base/base-library-build.mjs +114 -10
- package/browser/esm2022/lib/base/base-linked-projects.mjs +1 -1
- package/browser/esm2022/lib/base/base-npm-helpers.mjs +48 -15
- package/browser/esm2022/lib/base/base-project-resolver.mjs +4 -3
- package/browser/esm2022/lib/base/base-project.mjs +10 -1
- package/browser/esm2022/lib/base/base-release-process.mjs +2 -2
- package/browser/esm2022/lib/base/commit-data.mjs +2 -2
- package/browser/esm2022/lib/base/core-project.mjs +1 -1
- package/browser/esm2022/lib/helpers/for-browser/helpers-browser.mjs +2 -2
- package/browser/esm2022/lib/helpers/helpers-strings.mjs +3 -3
- package/browser/esm2022/lib/helpers/helpers.mjs +6 -6
- package/browser/esm2022/lib/index.mjs +3 -3
- package/browser/esm2022/lib/models.mjs +1 -1
- package/browser/esm2022/lib/utils.mjs +141 -1
- package/browser/fesm2022/tnp-helpers.mjs +330 -43
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-git.d.ts +6 -6
- package/browser/lib/base/base-library-build.d.ts +22 -8
- package/browser/lib/base/base-npm-helpers.d.ts +9 -19
- package/browser/lib/base/base-project.d.ts +8 -3
- package/browser/lib/base/commit-data.d.ts +5 -5
- package/browser/lib/base/core-project.d.ts +4 -3
- package/browser/lib/helpers/helpers.d.ts +3 -3
- package/browser/lib/index.d.ts +2 -2
- package/browser/lib/models.d.ts +16 -1
- package/browser/lib/utils.d.ts +32 -0
- package/client/README.md +24 -24
- package/client/esm2022/lib/base/base-git.mjs +5 -5
- package/client/esm2022/lib/base/base-library-build.mjs +114 -10
- package/client/esm2022/lib/base/base-linked-projects.mjs +1 -1
- package/client/esm2022/lib/base/base-npm-helpers.mjs +48 -15
- package/client/esm2022/lib/base/base-project-resolver.mjs +4 -3
- package/client/esm2022/lib/base/base-project.mjs +10 -1
- package/client/esm2022/lib/base/base-release-process.mjs +2 -2
- package/client/esm2022/lib/base/commit-data.mjs +2 -2
- package/client/esm2022/lib/base/core-project.mjs +1 -1
- package/client/esm2022/lib/helpers/for-browser/helpers-browser.mjs +2 -2
- package/client/esm2022/lib/helpers/helpers-strings.mjs +3 -3
- package/client/esm2022/lib/helpers/helpers.mjs +6 -6
- package/client/esm2022/lib/index.mjs +3 -3
- package/client/esm2022/lib/models.mjs +1 -1
- package/client/esm2022/lib/utils.mjs +141 -1
- package/client/fesm2022/tnp-helpers.mjs +330 -43
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-git.d.ts +6 -6
- package/client/lib/base/base-library-build.d.ts +22 -8
- package/client/lib/base/base-npm-helpers.d.ts +9 -19
- package/client/lib/base/base-project.d.ts +8 -3
- package/client/lib/base/commit-data.d.ts +5 -5
- package/client/lib/base/core-project.d.ts +4 -3
- package/client/lib/helpers/helpers.d.ts +3 -3
- package/client/lib/index.d.ts +2 -2
- package/client/lib/models.d.ts +16 -1
- package/client/lib/utils.d.ts +32 -0
- package/lib/base/base-command-line.backend.d.ts +16 -10
- package/lib/base/base-command-line.backend.js +382 -165
- package/lib/base/base-command-line.backend.js.map +1 -1
- package/lib/base/base-db.js +2 -2
- package/lib/base/base-db.js.map +1 -1
- package/lib/base/base-git.d.ts +6 -6
- package/lib/base/base-git.js +26 -21
- package/lib/base/base-git.js.map +1 -1
- package/lib/base/base-library-build.d.ts +23 -19
- package/lib/base/base-library-build.js +403 -285
- package/lib/base/base-library-build.js.map +1 -1
- package/lib/base/base-linked-projects.js +1 -2
- package/lib/base/base-linked-projects.js.map +1 -1
- package/lib/base/base-npm-helpers.d.ts +8 -14
- package/lib/base/base-npm-helpers.js +103 -62
- package/lib/base/base-npm-helpers.js.map +1 -1
- package/lib/base/base-project-resolver.js +7 -5
- package/lib/base/base-project-resolver.js.map +1 -1
- package/lib/base/base-project.d.ts +8 -3
- package/lib/base/base-project.js +22 -6
- package/lib/base/base-project.js.map +1 -1
- package/lib/base/base-release-process.js +9 -4
- package/lib/base/base-release-process.js.map +1 -1
- package/lib/base/base-start-config.backend.js +1 -1
- package/lib/base/base-start-config.backend.js.map +1 -1
- package/lib/base/command-line-feature.backend.js +1 -1
- package/lib/base/command-line-feature.backend.js.map +1 -1
- package/lib/base/commit-data.d.ts +5 -5
- package/lib/base/commit-data.js +1 -1
- package/lib/base/core-project.d.ts +4 -3
- package/lib/base/core-project.js.map +1 -1
- package/lib/base/linked-project.js +1 -1
- package/lib/base/linked-project.js.map +1 -1
- package/lib/helpers/for-backend/helpers-cli-tool.backend.js +0 -1
- package/lib/helpers/for-backend/helpers-cli-tool.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-console-gui.d.ts +6 -0
- package/lib/helpers/for-backend/helpers-console-gui.js +12 -4
- package/lib/helpers/for-backend/helpers-console-gui.js.map +1 -1
- package/lib/helpers/for-backend/helpers-file-folders.backend.d.ts +1 -1
- package/lib/helpers/for-backend/helpers-file-folders.backend.js +18 -18
- package/lib/helpers/for-backend/helpers-file-folders.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.d.ts +2 -2
- package/lib/helpers/for-backend/helpers-git.backend.js +206 -158
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-process.backend.d.ts +7 -0
- package/lib/helpers/for-backend/helpers-process.backend.js +13 -37
- 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/for-browser/helpers-browser.js +1 -1
- package/lib/helpers/for-browser/helpers-browser.js.map +1 -1
- package/lib/helpers/helpers-strings.js +2 -2
- package/lib/helpers/helpers-strings.js.map +1 -1
- package/lib/helpers/helpers.d.ts +3 -3
- package/lib/helpers/helpers.js +28 -28
- package/lib/helpers/helpers.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/models.d.ts +16 -1
- package/lib/models.js.map +1 -1
- package/lib/old/base-component.js +2 -2
- package/lib/old/base-formly-component.js +2 -2
- package/lib/old/dual-component-ctrl.js +2 -2
- package/lib/utils.d.ts +32 -0
- package/lib/utils.js +113 -1
- package/lib/utils.js.map +1 -1
- package/lib/validators/validators-firedev.d.ts +1 -1
- package/lib/validators/validators-firedev.js +5 -5
- package/lib/validators/validators-firedev.js.map +1 -1
- package/package.json +5 -5
- package/src.d.ts +1 -1
- package/{firedev.jsonc → taon.jsonc} +48 -42
- package/tmp-environment.json +37 -40
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/base/base-git.mjs +5 -5
- package/websql/esm2022/lib/base/base-library-build.mjs +114 -10
- package/websql/esm2022/lib/base/base-linked-projects.mjs +1 -1
- package/websql/esm2022/lib/base/base-npm-helpers.mjs +48 -15
- package/websql/esm2022/lib/base/base-project-resolver.mjs +4 -3
- package/websql/esm2022/lib/base/base-project.mjs +10 -1
- package/websql/esm2022/lib/base/base-release-process.mjs +2 -2
- package/websql/esm2022/lib/base/commit-data.mjs +2 -2
- package/websql/esm2022/lib/base/core-project.mjs +1 -1
- package/websql/esm2022/lib/helpers/for-browser/helpers-browser.mjs +2 -2
- package/websql/esm2022/lib/helpers/helpers-strings.mjs +3 -3
- package/websql/esm2022/lib/helpers/helpers.mjs +6 -6
- package/websql/esm2022/lib/index.mjs +3 -3
- package/websql/esm2022/lib/models.mjs +1 -1
- package/websql/esm2022/lib/utils.mjs +141 -1
- package/websql/fesm2022/tnp-helpers.mjs +330 -43
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-git.d.ts +6 -6
- package/websql/lib/base/base-library-build.d.ts +22 -8
- package/websql/lib/base/base-npm-helpers.d.ts +9 -17
- package/websql/lib/base/base-project.d.ts +9 -8
- package/websql/lib/base/commit-data.d.ts +5 -5
- package/websql/lib/base/core-project.d.ts +4 -3
- package/websql/lib/helpers/helpers.d.ts +3 -3
- package/websql/lib/index.d.ts +2 -2
- package/websql/lib/models.d.ts +16 -1
- package/websql/lib/utils.d.ts +32 -0
|
@@ -13,7 +13,7 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
13
13
|
onlyStaged?: boolean;
|
|
14
14
|
}): any;
|
|
15
15
|
stashApply(): any;
|
|
16
|
-
fetch(): any;
|
|
16
|
+
fetch(all?: boolean): any;
|
|
17
17
|
resetFiles(...relativePathes: string[]): any;
|
|
18
18
|
get isInsideGitRepo(): any;
|
|
19
19
|
get isWithoutGitRepository(): any;
|
|
@@ -131,9 +131,9 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
131
131
|
/**
|
|
132
132
|
* only needed when push github
|
|
133
133
|
* and I forgot to add my username before issue
|
|
134
|
-
*
|
|
134
|
+
* taon pfix proper input my-repo#344
|
|
135
135
|
* that should be
|
|
136
|
-
*
|
|
136
|
+
* taon pfix proper input my-username/my-repo#344
|
|
137
137
|
*/
|
|
138
138
|
currentOrigin?: string;
|
|
139
139
|
skipChildren?: boolean;
|
|
@@ -145,13 +145,13 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
145
145
|
/**
|
|
146
146
|
* only needed when push github
|
|
147
147
|
* and I forgot to add my username before issue
|
|
148
|
-
*
|
|
148
|
+
* taon pfix proper input my-repo#344
|
|
149
149
|
* that should be
|
|
150
|
-
*
|
|
150
|
+
* taon pfix proper input my-username/my-repo#344
|
|
151
151
|
*/
|
|
152
152
|
currentOrigin?: string): Promise<CommitData>;
|
|
153
153
|
/**
|
|
154
|
-
* This will prevent accidental branch change for
|
|
154
|
+
* This will prevent accidental branch change for taon projects
|
|
155
155
|
* @returns branch name
|
|
156
156
|
*/
|
|
157
157
|
duringPushWarnIfProjectNotOnSpecyficDevBranch(): string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
+
import { CoreModels } from 'tnp-core/browser';
|
|
2
3
|
import { BaseFeatureForProject } from './base-feature-for-project';
|
|
3
4
|
import { LibrariesBuildOptions, LibraryBuildCommandOptions } from '../models';
|
|
4
5
|
import type { BaseProject } from './base-project';
|
|
5
6
|
/**
|
|
6
7
|
* Base library build for standard angular/typescript projects
|
|
7
8
|
*/
|
|
8
|
-
export declare abstract class BaseLibraryBuild<PROJCET extends BaseProject
|
|
9
|
+
export declare abstract class BaseLibraryBuild<PROJCET extends BaseProject<any, any>> extends BaseFeatureForProject {
|
|
9
10
|
private cache;
|
|
10
11
|
protected sortByDeps(libraries: PROJCET[]): PROJCET[];
|
|
11
12
|
/**
|
|
@@ -19,10 +20,12 @@ export declare abstract class BaseLibraryBuild<PROJCET extends BaseProject = any
|
|
|
19
20
|
* 5. build selected libraries in watch mode
|
|
20
21
|
* (skip normal build for not selected libraries)
|
|
21
22
|
*/
|
|
22
|
-
selectAndSaveLibraries({
|
|
23
|
-
|
|
23
|
+
selectAndSaveLibraries({ selectedLibs, watch, watchBuildSupported, skipAllLibsQuestion, useLastUserConfiguration, }: {
|
|
24
|
+
selectedLibs: PROJCET[];
|
|
24
25
|
watch: boolean;
|
|
25
26
|
watchBuildSupported?: boolean;
|
|
27
|
+
skipAllLibsQuestion?: boolean;
|
|
28
|
+
useLastUserConfiguration?: boolean;
|
|
26
29
|
}): Promise<{
|
|
27
30
|
selectedLibs: PROJCET[];
|
|
28
31
|
skipRebuildingAllForWatch: boolean;
|
|
@@ -31,16 +34,27 @@ export declare abstract class BaseLibraryBuild<PROJCET extends BaseProject = any
|
|
|
31
34
|
* angular libraries from angular.json
|
|
32
35
|
*/
|
|
33
36
|
get libraries(): PROJCET[];
|
|
34
|
-
|
|
35
|
-
watch: boolean;
|
|
36
|
-
watchBuildSupported?: boolean;
|
|
37
|
-
}): Promise<any>;
|
|
37
|
+
protected getLibraries(): any;
|
|
38
38
|
/**
|
|
39
39
|
* Angular library build
|
|
40
40
|
*/
|
|
41
|
-
buildLibraries({ watch, strategy, releaseBuild, buildType, copylink_to_node_modules, }?: LibrariesBuildOptions & {
|
|
41
|
+
buildLibraries({ watch, strategy, releaseBuild, buildType, copylink_to_node_modules, outputLineReplace, libraries, useLastUserConfiguration, }?: LibrariesBuildOptions<PROJCET> & {
|
|
42
42
|
watch?: boolean;
|
|
43
43
|
}): Promise<void>;
|
|
44
|
+
protected libWatchBuildProcess({ lib, locationsForNodeModules, strategy, buildType, outputLineReplace, }: {
|
|
45
|
+
lib: PROJCET;
|
|
46
|
+
locationsForNodeModules: string[];
|
|
47
|
+
strategy: 'link' | 'copy';
|
|
48
|
+
buildType: CoreModels.LibraryType;
|
|
49
|
+
outputLineReplace?: (outputLine: string) => string;
|
|
50
|
+
}): Promise<any>;
|
|
51
|
+
protected libNormalBuildProcess({ lib, locationsForNodeModules, strategy, buildType, outputLineReplace, }: {
|
|
52
|
+
lib: PROJCET;
|
|
53
|
+
locationsForNodeModules: string[];
|
|
54
|
+
strategy: 'link' | 'copy';
|
|
55
|
+
buildType: CoreModels.LibraryType;
|
|
56
|
+
outputLineReplace?: (outputLine: string) => string;
|
|
57
|
+
}): Promise<any>;
|
|
44
58
|
getLibraryBuildComamnd(options?: LibraryBuildCommandOptions): string | undefined;
|
|
45
59
|
get getLibraryBuildSuccessComamnd(): string;
|
|
46
60
|
selectCopytoProjects(): Promise<string[]>;
|
|
@@ -27,18 +27,18 @@ export declare class BaseNpmHelpers<PROJCET extends BaseProject = any> extends B
|
|
|
27
27
|
/**
|
|
28
28
|
* @deprecated use updateDep
|
|
29
29
|
*/
|
|
30
|
-
updateDependency({ packageName, version,
|
|
30
|
+
updateDependency({ packageName, version, updateTaonJsonFirst, }: {
|
|
31
31
|
packageName: string;
|
|
32
32
|
version: string | null;
|
|
33
|
-
|
|
33
|
+
updateTaonJsonFirst?: boolean;
|
|
34
34
|
}): void;
|
|
35
35
|
/**
|
|
36
36
|
* Update dependency in package.json
|
|
37
37
|
*/
|
|
38
|
-
updateDep({ packageName, version,
|
|
38
|
+
updateDep({ packageName, version, updateTaonJsonFirst, addIfNotExists, }: {
|
|
39
39
|
packageName: string;
|
|
40
40
|
version: string | null;
|
|
41
|
-
|
|
41
|
+
updateTaonJsonFirst?: boolean;
|
|
42
42
|
addIfNotExists?: boolean;
|
|
43
43
|
}): Promise<void>;
|
|
44
44
|
get versionWithPatchPlusOne(): string;
|
|
@@ -85,16 +85,9 @@ export declare class BaseNpmHelpers<PROJCET extends BaseProject = any> extends B
|
|
|
85
85
|
allDepsFromPackageJson(packageJson: PackageJson): any;
|
|
86
86
|
linkNodeModulesTo(proj: Partial<BaseProject>): any;
|
|
87
87
|
preferYarnOverNpm(): boolean;
|
|
88
|
-
makeSureNodeModulesInstalled(options?:
|
|
89
|
-
useYarn?: boolean;
|
|
90
|
-
force?: boolean;
|
|
91
|
-
}): Promise<void>;
|
|
88
|
+
makeSureNodeModulesInstalled(options?: Omit<CoreModels.NpmInstallOptions, 'pkg'>): Promise<void>;
|
|
92
89
|
deleteNodeModules(): void;
|
|
93
|
-
reinstallNodeModules(
|
|
94
|
-
reinstalNodeModules(options?: {
|
|
95
|
-
useYarn?: boolean;
|
|
96
|
-
force?: boolean;
|
|
97
|
-
}): any;
|
|
90
|
+
reinstallNodeModules(options?: Omit<CoreModels.NpmInstallOptions, 'pkg'>): Promise<any>;
|
|
98
91
|
/**
|
|
99
92
|
* @returns true if node_modules folder is empty
|
|
100
93
|
*/
|
|
@@ -108,15 +101,12 @@ export declare class BaseNpmHelpers<PROJCET extends BaseProject = any> extends B
|
|
|
108
101
|
stdoutMsg: string | string[];
|
|
109
102
|
stderMsg?: string | string[];
|
|
110
103
|
timeout?: number;
|
|
111
|
-
stdoutOutputContainsCallback
|
|
112
|
-
|
|
113
|
-
* peerDependencies dependencies
|
|
114
|
-
*/
|
|
115
|
-
?: () => any;
|
|
104
|
+
stdoutOutputContainsCallback?: () => any;
|
|
105
|
+
outputLineReplace?: (outputLine: string) => string;
|
|
116
106
|
}): Promise<void>;
|
|
117
107
|
unitlOutputContains(stdoutMsg: string | string[], stderMsg?: string | string[], timeout?: number, stdoutOutputContainsCallback?: () => any): any;
|
|
118
108
|
};
|
|
119
|
-
prepareCommand(
|
|
109
|
+
prepareCommand(options?: CoreModels.NpmInstallOptions): Promise<string>;
|
|
120
110
|
/**
|
|
121
111
|
*
|
|
122
112
|
* @param registry without specified registr is checking npm registry
|
|
@@ -9,8 +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
|
-
export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYPE = BaseProjectType> {
|
|
13
|
-
static ins: BaseProjectResolver<BaseProject<any, CoreModels.BaseProjectType>>;
|
|
12
|
+
export declare abstract class BaseProject<PROJCET extends BaseProject<any, any> = BaseProject<any, any>, TYPE = BaseProjectType> {
|
|
13
|
+
static ins: BaseProjectResolver<BaseProject<BaseProject<any, any>, CoreModels.BaseProjectType>>;
|
|
14
14
|
cache: any;
|
|
15
15
|
static cache: any;
|
|
16
16
|
get globalCache(): any;
|
|
@@ -24,7 +24,7 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
24
24
|
* only available after executing *this.assignFreePort()*
|
|
25
25
|
*/
|
|
26
26
|
readonly port: string;
|
|
27
|
-
libraryBuild: BaseLibraryBuild
|
|
27
|
+
libraryBuild: BaseLibraryBuild<BaseProject>;
|
|
28
28
|
npmHelpers: BaseNpmHelpers;
|
|
29
29
|
linkedProjects: BaseLinkedProjects;
|
|
30
30
|
vsCodeHelpers: BaseVscodeHelpers;
|
|
@@ -100,6 +100,7 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
100
100
|
stderMsg?: string | string[];
|
|
101
101
|
timeout?: number;
|
|
102
102
|
stdoutOutputContainsCallback?: () => any;
|
|
103
|
+
outputLineReplace?: (outputLine: string) => string;
|
|
103
104
|
}): Promise<void>;
|
|
104
105
|
unitlOutputContains(stdoutMsg: string | string[], stderMsg?: string | string[], timeout?: number, stdoutOutputContainsCallback?: () => any): any;
|
|
105
106
|
};
|
|
@@ -188,6 +189,10 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
188
189
|
* init project files structure without depedencies
|
|
189
190
|
*/
|
|
190
191
|
struct(initOptions?: any): Promise<void>;
|
|
192
|
+
/**
|
|
193
|
+
* init and build() project
|
|
194
|
+
*/
|
|
195
|
+
test(testOptions?: any): Promise<void>;
|
|
191
196
|
/**
|
|
192
197
|
* init and build() project
|
|
193
198
|
*/
|
|
@@ -34,9 +34,9 @@ export declare class CommitData {
|
|
|
34
34
|
/**
|
|
35
35
|
* only needed when push github
|
|
36
36
|
* and I forgot to add my username before issue
|
|
37
|
-
*
|
|
37
|
+
* taon pfix proper input my-repo#344
|
|
38
38
|
* that should be
|
|
39
|
-
*
|
|
39
|
+
* taon pfix proper input my-username/my-repo#344
|
|
40
40
|
*/
|
|
41
41
|
currentOrigin?: string;
|
|
42
42
|
}): Promise<CommitData>;
|
|
@@ -45,9 +45,9 @@ export declare class CommitData {
|
|
|
45
45
|
/**
|
|
46
46
|
* only needed when push github
|
|
47
47
|
* and I forgot to add my username before issue
|
|
48
|
-
*
|
|
48
|
+
* taon pfix proper input my-repo#344
|
|
49
49
|
* that should be
|
|
50
|
-
*
|
|
50
|
+
* taon pfix proper input my-username/my-repo#344
|
|
51
51
|
*/
|
|
52
52
|
currentOrigin?: string;
|
|
53
53
|
}): Promise<CommitData>;
|
|
@@ -69,7 +69,7 @@ export declare class CommitData {
|
|
|
69
69
|
set message(message: string);
|
|
70
70
|
get branchPrefix(): TypeOfMsgPrefix;
|
|
71
71
|
/**
|
|
72
|
-
* ex.
|
|
72
|
+
* ex. taon/GH-12 darekf77/tnp-helpers/GH-4
|
|
73
73
|
*/
|
|
74
74
|
get issuesFromOtherProjects(): string[];
|
|
75
75
|
set issuesFromOtherProjects(value: string[]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import type { BaseProject } from './base-project';
|
|
3
|
-
import { LibrariesBuildOptions } from '../index';
|
|
3
|
+
import { LibrariesBuildOptions, TestBuildOptions } from '../index';
|
|
4
4
|
export type CoreProjectEnvironment = {
|
|
5
5
|
shortName?: string;
|
|
6
6
|
name?: string;
|
|
@@ -17,6 +17,7 @@ export type CoreCommandArgOptions<PROJECT extends BaseProject> = {
|
|
|
17
17
|
debug?: boolean;
|
|
18
18
|
isInReleaseProcess?: boolean;
|
|
19
19
|
libraryBuildOptions?: LibrariesBuildOptions;
|
|
20
|
+
testBuildOptions?: TestBuildOptions;
|
|
20
21
|
/**
|
|
21
22
|
* first arg from command line
|
|
22
23
|
*/
|
|
@@ -95,5 +96,5 @@ export declare class CoreProject<PROJECT extends BaseProject = BaseProject> {
|
|
|
95
96
|
*/
|
|
96
97
|
get url(): string;
|
|
97
98
|
}
|
|
98
|
-
export declare const CoreTypescriptProject: CoreProject<BaseProject<any, import("tnp-core/browser").CoreModels.BaseProjectType>>;
|
|
99
|
-
export declare const CoreAngularProject: CoreProject<BaseProject<any, import("tnp-core/browser").CoreModels.BaseProjectType>>;
|
|
99
|
+
export declare const CoreTypescriptProject: CoreProject<BaseProject<BaseProject<any, any>, import("tnp-core/browser").CoreModels.BaseProjectType>>;
|
|
100
|
+
export declare const CoreAngularProject: CoreProject<BaseProject<BaseProject<any, any>, import("tnp-core/browser").CoreModels.BaseProjectType>>;
|
|
@@ -22,14 +22,14 @@ import { HelpersAngular } from './for-browser/angular.helper';
|
|
|
22
22
|
* @param baseCtors Base Classes
|
|
23
23
|
*/
|
|
24
24
|
export declare function applyMixins(derivedCtor: any, baseCtors: any[]): void;
|
|
25
|
-
export declare class
|
|
25
|
+
export declare class HelpersTaon extends CoreHelpers {
|
|
26
26
|
arrays: HelpersArrayObj;
|
|
27
27
|
strings: HelpersStrings;
|
|
28
28
|
numbers: HelpersNumber;
|
|
29
29
|
browser: HelpersBrowser;
|
|
30
30
|
ng: typeof HelpersAngular;
|
|
31
31
|
private static _instance;
|
|
32
|
-
static get Instance():
|
|
32
|
+
static get Instance(): HelpersTaon;
|
|
33
33
|
private constructor();
|
|
34
34
|
CLIWRAP(f: Function, name: string): Function;
|
|
35
35
|
/**
|
|
@@ -79,5 +79,5 @@ export declare class HelpersFiredev extends CoreHelpers {
|
|
|
79
79
|
isValidIp: typeof Validators.network.isValidIp;
|
|
80
80
|
isValidGitRepuUrl: typeof Validators.git.isValidRepoUrl;
|
|
81
81
|
}
|
|
82
|
-
export interface
|
|
82
|
+
export interface HelpersTaon extends HelpersStringsRegexes {
|
|
83
83
|
}
|
package/client/lib/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
export * from './validators/validators';
|
|
3
3
|
export { HelpersAngular } from './helpers/for-browser/angular.helper';
|
|
4
4
|
export * from './utils';
|
|
5
|
-
import {
|
|
5
|
+
import { HelpersTaon as Base } from './helpers/helpers';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Taon helpers
|
|
8
8
|
*/ export declare const Helpers: Base;
|
|
9
9
|
export * from './base';
|
|
10
10
|
export * from './models';
|
package/client/lib/models.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import * as core from 'tnp-core/browser';
|
|
3
|
+
import type { BaseProject } from './base';
|
|
3
4
|
export type BaseProjectType = core.CoreModels.BaseProjectType;
|
|
4
5
|
export declare const BaseProjectTypeArr: string[];
|
|
5
6
|
/**
|
|
@@ -21,15 +22,29 @@ export type LibraryBuildCommandOptions = {
|
|
|
21
22
|
watch?: boolean;
|
|
22
23
|
buildType: core.CoreModels.LibraryType;
|
|
23
24
|
};
|
|
24
|
-
export type LibrariesBuildOptions = {
|
|
25
|
+
export type LibrariesBuildOptions<PROJECT extends BaseProject = BaseProject> = {
|
|
25
26
|
strategy?: 'link' | 'copy';
|
|
26
27
|
/**
|
|
27
28
|
* @deprecated
|
|
28
29
|
* this will be detected in future
|
|
29
30
|
*/
|
|
30
31
|
buildType: core.CoreModels.LibraryType;
|
|
32
|
+
/**
|
|
33
|
+
* by default we are copying all libraries to node_modules of itself
|
|
34
|
+
*/
|
|
31
35
|
copylink_to_node_modules?: string[];
|
|
32
36
|
releaseBuild?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* override build options for specific libraries
|
|
39
|
+
* @todo
|
|
40
|
+
*/
|
|
41
|
+
libraries?: PROJECT[];
|
|
42
|
+
outputLineReplace?: (libForOutput: PROJECT, useExternalProvidedLibs: boolean) => (line: string) => string;
|
|
43
|
+
useLastUserConfiguration?: boolean;
|
|
44
|
+
};
|
|
45
|
+
export type TestBuildOptions = {
|
|
46
|
+
onlySpecyficFiles?: string[];
|
|
47
|
+
updateSnapshot?: boolean;
|
|
33
48
|
};
|
|
34
49
|
export interface ChangelogData {
|
|
35
50
|
changes: string[];
|
package/client/lib/utils.d.ts
CHANGED
|
@@ -9,4 +9,36 @@ export declare namespace UtilsNpm {
|
|
|
9
9
|
removeSuffix?: boolean;
|
|
10
10
|
}) => string;
|
|
11
11
|
const fixMajorVerNumber: (version: string) => string;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace UtilsTerminal {
|
|
14
|
+
const multiselect: <T = string>(options: {
|
|
15
|
+
question: string;
|
|
16
|
+
/**
|
|
17
|
+
* If true, then only one choice can be selected
|
|
18
|
+
*/
|
|
19
|
+
onlyOneChoice?: boolean;
|
|
20
|
+
choices: {
|
|
21
|
+
name: string;
|
|
22
|
+
value: T;
|
|
23
|
+
}[] | {
|
|
24
|
+
[choice: string]: {
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
autocomplete?: boolean;
|
|
29
|
+
defaultSelected?: string[];
|
|
30
|
+
}) => Promise<T[]>;
|
|
31
|
+
const select: <T = string>(options: {
|
|
32
|
+
question: string;
|
|
33
|
+
choices: {
|
|
34
|
+
name: string;
|
|
35
|
+
value: T;
|
|
36
|
+
}[] | {
|
|
37
|
+
[choice: string]: {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
autocomplete?: boolean;
|
|
42
|
+
defaultSelected?: string;
|
|
43
|
+
}) => Promise<T>;
|
|
12
44
|
}
|
|
@@ -3,7 +3,10 @@ import { BaseProject } from './base-project';
|
|
|
3
3
|
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
|
+
/**
|
|
7
|
+
* TODO return argument not need for now
|
|
8
|
+
*/
|
|
9
|
+
preventCwdIsNotProject(): Promise<boolean>;
|
|
7
10
|
hosts(): void;
|
|
8
11
|
countCommits(): void;
|
|
9
12
|
removeSubmodules(): void;
|
|
@@ -21,16 +24,16 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
|
|
|
21
24
|
pullAll(): Promise<void>;
|
|
22
25
|
private __resetInfo;
|
|
23
26
|
reset(): Promise<void>;
|
|
24
|
-
soft(): void
|
|
27
|
+
soft(): Promise<void>;
|
|
25
28
|
rebase(): Promise<void>;
|
|
26
29
|
/**
|
|
27
30
|
* stash only staged files
|
|
28
31
|
*/
|
|
29
|
-
stash(): void
|
|
32
|
+
stash(): Promise<void>;
|
|
30
33
|
/**
|
|
31
34
|
* stash all files
|
|
32
35
|
*/
|
|
33
|
-
stashAll(): void
|
|
36
|
+
stashAll(): Promise<void>;
|
|
34
37
|
/**
|
|
35
38
|
* push force to all orgins
|
|
36
39
|
*/
|
|
@@ -61,10 +64,13 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
|
|
|
61
64
|
origin?: string;
|
|
62
65
|
commitMessageRequired?: boolean;
|
|
63
66
|
noExit?: boolean;
|
|
67
|
+
overrideCommitMessage?: string;
|
|
64
68
|
}): Promise<void>;
|
|
65
69
|
melt(): Promise<void>;
|
|
66
70
|
private meltUpdateCommits;
|
|
67
71
|
pf(): Promise<void>;
|
|
72
|
+
pRel(): Promise<void>;
|
|
73
|
+
pushRelease(): Promise<void>;
|
|
68
74
|
pushFeature(): Promise<void>;
|
|
69
75
|
pushFix(): Promise<void>;
|
|
70
76
|
pfix(): void;
|
|
@@ -83,10 +89,10 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
|
|
|
83
89
|
pushPerf(): Promise<void>;
|
|
84
90
|
pushCi(): Promise<void>;
|
|
85
91
|
pushBuild(): Promise<void>;
|
|
86
|
-
SET_ORIGIN(): void
|
|
87
|
-
RENAME_ORIGIN(): void
|
|
88
|
-
LAST_TAG_HASH(): void
|
|
89
|
-
LAST_TAG(): void
|
|
92
|
+
SET_ORIGIN(): Promise<void>;
|
|
93
|
+
RENAME_ORIGIN(): Promise<void>;
|
|
94
|
+
LAST_TAG_HASH(): Promise<void>;
|
|
95
|
+
LAST_TAG(): Promise<void>;
|
|
90
96
|
CHECK_TAG_EXISTS(): void;
|
|
91
97
|
/**
|
|
92
98
|
* TODO move somewhere
|
|
@@ -108,7 +114,7 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
|
|
|
108
114
|
* TODO move somewhere
|
|
109
115
|
*/
|
|
110
116
|
info(): Promise<void>;
|
|
111
|
-
modified(): void
|
|
117
|
+
modified(): Promise<void>;
|
|
112
118
|
UPDATE(): Promise<void>;
|
|
113
119
|
BRANCH_NAME(): void;
|
|
114
120
|
REMOTES(): void;
|
|
@@ -130,7 +136,7 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
|
|
|
130
136
|
INSTALL_PROJECT_EXT(): Promise<void>;
|
|
131
137
|
INS_PROJ_EXT(): Promise<void>;
|
|
132
138
|
INSTALL_PROJ_EXT(): Promise<void>;
|
|
133
|
-
projdb(): void
|
|
139
|
+
projdb(): Promise<void>;
|
|
134
140
|
private __filterBranchesByPattern;
|
|
135
141
|
private __selectBrach;
|
|
136
142
|
}
|