tnp-helpers 16.444.19 → 16.444.20
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 +28 -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 +5 -2
- package/browser/esm2022/lib/base/base-project-resolver.mjs +10 -1
- package/browser/esm2022/lib/base/base-project.mjs +65 -9
- 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 +143 -32
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-git.d.ts +10 -0
- package/browser/lib/base/base-library-build.d.ts +2 -1
- package/browser/lib/base/base-project-resolver.d.ts +9 -8
- package/browser/lib/base/base-project.d.ts +9 -7
- package/browser/lib/base/base-vscode.d.ts +6 -0
- package/browser/lib/base/core-project.d.ts +2 -0
- package/browser/lib/models.d.ts +1 -0
- package/client/esm2022/lib/base/base-git.mjs +28 -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 +5 -2
- package/client/esm2022/lib/base/base-project-resolver.mjs +10 -1
- package/client/esm2022/lib/base/base-project.mjs +65 -9
- 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 +143 -32
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-git.d.ts +10 -0
- package/client/lib/base/base-library-build.d.ts +2 -1
- package/client/lib/base/base-project-resolver.d.ts +9 -8
- package/client/lib/base/base-project.d.ts +9 -7
- package/client/lib/base/base-vscode.d.ts +6 -0
- package/client/lib/base/core-project.d.ts +2 -0
- package/client/lib/models.d.ts +1 -0
- package/client/package.json +25 -25
- package/lib/base/base-command-line.backend.d.ts +3 -1
- package/lib/base/base-command-line.backend.js +39 -5
- package/lib/base/base-command-line.backend.js.map +1 -1
- package/lib/base/base-git.d.ts +10 -0
- package/lib/base/base-git.js +83 -53
- 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.js +3 -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 +10 -8
- package/lib/base/base-project.js +81 -21
- package/lib/base/base-project.js.map +1 -1
- 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 +2 -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-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-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 +1 -0
- 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 +30 -30
- package/websql/esm2022/lib/base/base-git.mjs +28 -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 +5 -2
- package/websql/esm2022/lib/base/base-project-resolver.mjs +10 -1
- package/websql/esm2022/lib/base/base-project.mjs +74 -18
- 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 +151 -40
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-git.d.ts +10 -0
- package/websql/lib/base/base-library-build.d.ts +2 -1
- package/websql/lib/base/base-project-resolver.d.ts +9 -8
- package/websql/lib/base/base-project.d.ts +10 -5
- package/websql/lib/base/base-vscode.d.ts +6 -0
- package/websql/lib/base/core-project.d.ts +2 -0
- package/websql/lib/models.d.ts +1 -0
|
@@ -96,6 +96,16 @@ export declare class BaseGit<PROJCET extends BaseProject = any> extends BaseFeat
|
|
|
96
96
|
*/
|
|
97
97
|
useGitBranchesAsMetadataForCommits(): boolean;
|
|
98
98
|
cloneTo(cwd: string, newProjectName?: string): Promise<any>;
|
|
99
|
+
/**
|
|
100
|
+
* This is only for push/pull process
|
|
101
|
+
*
|
|
102
|
+
* There are 2 types of projects:
|
|
103
|
+
* - with linked-projects.json
|
|
104
|
+
* - with children from external folder
|
|
105
|
+
*
|
|
106
|
+
* projects that are children of this project (with its own git repo)
|
|
107
|
+
*/
|
|
108
|
+
get gitChildren(): PROJCET[];
|
|
99
109
|
pullProcess(cloneChildren?: boolean): Promise<any>;
|
|
100
110
|
pushProcess(options?: {
|
|
101
111
|
force?: boolean;
|
|
@@ -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
|
}
|
|
@@ -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,8 @@ 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';
|
|
11
12
|
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
13
|
static ins: BaseProjectResolver<BaseProject<any, CoreModels.BaseProjectType>>;
|
|
17
14
|
cache: any;
|
|
18
15
|
static cache: any;
|
|
@@ -30,7 +27,11 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
30
27
|
libraryBuild: BaseLibraryBuild;
|
|
31
28
|
npmHelpers: BaseNpmHelpers;
|
|
32
29
|
linkedProjects: BaseLinkedProjects;
|
|
30
|
+
vsCodeHelpers: BaseVscodeHelpers;
|
|
33
31
|
git: BaseGit;
|
|
32
|
+
private __location;
|
|
33
|
+
get location(): string;
|
|
34
|
+
set location(v: string);
|
|
34
35
|
constructor(
|
|
35
36
|
/**
|
|
36
37
|
* doesn't need to be real path -> can be link
|
|
@@ -61,7 +62,8 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
61
62
|
getChildBy(nameOrBasename: string, errors?: boolean): PROJCET;
|
|
62
63
|
get parent(): PROJCET;
|
|
63
64
|
get grandpa(): PROJCET;
|
|
64
|
-
get genericName():
|
|
65
|
+
get genericName(): any;
|
|
66
|
+
private checkAndBoldenPath;
|
|
65
67
|
/**
|
|
66
68
|
* same has project.hasFile();
|
|
67
69
|
*/
|
|
@@ -139,6 +141,9 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
139
141
|
isUnsingActionCommit(): boolean;
|
|
140
142
|
resetProcess(overrideBranch?: string, recrusive?: boolean): Promise<void>;
|
|
141
143
|
linkTo(destPackageLocation: string): void;
|
|
144
|
+
setValueToJSON(relativePath: string, lodashGetPath: string, value: any): void;
|
|
145
|
+
getValueFromJSON(relativePath: string, lodashGetPath: string, defaultValue?: any): any;
|
|
146
|
+
getValueFromJSONC(relativePath: string, lodashGetPath: string, defaultValue?: any): any;
|
|
142
147
|
writeFile(relativePath: string, content: string): void;
|
|
143
148
|
runCommandGetString(this: BaseProject, command: string): any;
|
|
144
149
|
toString: () => string;
|
|
@@ -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
|
+
}
|