tnp-helpers 16.444.18 → 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/README.md +24 -24
- package/browser/esm2022/lib/base/base-git.mjs +34 -4
- package/browser/esm2022/lib/base/base-library-build.mjs +39 -27
- package/browser/esm2022/lib/base/base-linked-projects.mjs +15 -4
- package/browser/esm2022/lib/base/base-npm-helpers.mjs +16 -6
- package/browser/esm2022/lib/base/base-project-resolver.mjs +10 -1
- package/browser/esm2022/lib/base/base-project.mjs +67 -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 +175 -51
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-git.d.ts +11 -0
- package/browser/lib/base/base-library-build.d.ts +31 -6
- package/browser/lib/base/base-npm-helpers.d.ts +0 -1
- package/browser/lib/base/base-project-resolver.d.ts +9 -8
- package/browser/lib/base/base-project.d.ts +9 -4
- package/browser/lib/base/base-vscode.d.ts +6 -0
- package/browser/lib/base/core-project.d.ts +14 -3
- package/browser/lib/models.d.ts +1 -5
- package/client/README.md +24 -24
- package/client/esm2022/lib/base/base-git.mjs +34 -4
- package/client/esm2022/lib/base/base-library-build.mjs +39 -27
- package/client/esm2022/lib/base/base-linked-projects.mjs +15 -4
- package/client/esm2022/lib/base/base-npm-helpers.mjs +16 -6
- package/client/esm2022/lib/base/base-project-resolver.mjs +10 -1
- package/client/esm2022/lib/base/base-project.mjs +67 -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 +175 -51
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-git.d.ts +11 -0
- package/client/lib/base/base-library-build.d.ts +31 -6
- package/client/lib/base/base-npm-helpers.d.ts +0 -1
- package/client/lib/base/base-project-resolver.d.ts +9 -8
- package/client/lib/base/base-project.d.ts +9 -4
- package/client/lib/base/base-vscode.d.ts +6 -0
- package/client/lib/base/core-project.d.ts +14 -3
- package/client/lib/models.d.ts +1 -5
- package/client/package.json +25 -25
- package/firedev.jsonc +61 -61
- package/lib/base/base-command-line.backend.d.ts +7 -1
- package/lib/base/base-command-line.backend.js +83 -7
- package/lib/base/base-command-line.backend.js.map +1 -1
- package/lib/base/base-git.d.ts +11 -0
- package/lib/base/base-git.js +92 -56
- package/lib/base/base-git.js.map +1 -1
- package/lib/base/base-library-build.d.ts +39 -8
- package/lib/base/base-library-build.js +256 -231
- package/lib/base/base-library-build.js.map +1 -1
- package/lib/base/base-linked-projects.js +14 -4
- package/lib/base/base-linked-projects.js.map +1 -1
- package/lib/base/base-npm-helpers.d.ts +0 -1
- package/lib/base/base-npm-helpers.js +15 -8
- 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 -5
- package/lib/base/base-project.js +84 -22
- 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 +14 -3
- 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-git.backend.d.ts +2 -0
- package/lib/helpers/for-backend/helpers-git.backend.js +72 -0
- 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 +1 -5
- 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/README.md +24 -24
- package/websql/esm2022/lib/base/base-git.mjs +34 -4
- package/websql/esm2022/lib/base/base-library-build.mjs +39 -27
- package/websql/esm2022/lib/base/base-linked-projects.mjs +15 -4
- package/websql/esm2022/lib/base/base-npm-helpers.mjs +16 -6
- package/websql/esm2022/lib/base/base-project-resolver.mjs +10 -1
- package/websql/esm2022/lib/base/base-project.mjs +76 -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 +183 -59
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-git.d.ts +11 -0
- package/websql/lib/base/base-library-build.d.ts +31 -6
- package/websql/lib/base/base-npm-helpers.d.ts +0 -1
- package/websql/lib/base/base-project-resolver.d.ts +9 -8
- package/websql/lib/base/base-project.d.ts +10 -8
- package/websql/lib/base/base-vscode.d.ts +6 -0
- package/websql/lib/base/core-project.d.ts +14 -3
- package/websql/lib/models.d.ts +1 -5
|
@@ -96,12 +96,23 @@ 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;
|
|
102
112
|
typeofCommit?: TypeOfCommit;
|
|
103
113
|
origin?: string;
|
|
104
114
|
args?: string[];
|
|
115
|
+
setOrigin?: 'ssh' | 'http';
|
|
105
116
|
exitCallBack?: () => void;
|
|
106
117
|
forcePushNoQuestion?: boolean;
|
|
107
118
|
commitMessageRequired?: boolean;
|
|
@@ -5,18 +5,43 @@ import type { BaseProject } from './base-project';
|
|
|
5
5
|
/**
|
|
6
6
|
* Base library build for standard angular/typescript projects
|
|
7
7
|
*/
|
|
8
|
-
export declare class BaseLibraryBuild<PROJCET extends BaseProject = any> extends BaseFeatureForProject {
|
|
8
|
+
export declare abstract class BaseLibraryBuild<PROJCET extends BaseProject = any> extends BaseFeatureForProject {
|
|
9
9
|
private cache;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
protected sortByDeps(libraries: PROJCET[]): PROJCET[];
|
|
11
|
+
/**
|
|
12
|
+
* Use cases:
|
|
13
|
+
* 1. build all libraries in normal mode
|
|
14
|
+
* 2. build all libraries in watch mode
|
|
15
|
+
* 3. build selected libraries in normal mode
|
|
16
|
+
* (with first time all libraries will be build)
|
|
17
|
+
* 4. build selected libraries in watch mode
|
|
18
|
+
* (use normal build for not selected libraries)
|
|
19
|
+
* 5. build selected libraries in watch mode
|
|
20
|
+
* (skip normal build for not selected libraries)
|
|
21
|
+
*/
|
|
22
|
+
selectAndSaveLibraries({ libs, watch, watchBuildSupported, }: {
|
|
23
|
+
libs: PROJCET[];
|
|
24
|
+
watch: boolean;
|
|
25
|
+
watchBuildSupported?: boolean;
|
|
26
|
+
}): Promise<{
|
|
27
|
+
selectedLibs: PROJCET[];
|
|
28
|
+
skipRebuildingAllForWatch: boolean;
|
|
29
|
+
}>;
|
|
12
30
|
/**
|
|
13
31
|
* angular libraries from angular.json
|
|
14
32
|
*/
|
|
15
33
|
get libraries(): PROJCET[];
|
|
16
|
-
selectLibraries({
|
|
17
|
-
|
|
34
|
+
selectLibraries({ watch, watchBuildSupported, }: {
|
|
35
|
+
watch: boolean;
|
|
36
|
+
watchBuildSupported?: boolean;
|
|
18
37
|
}): Promise<any>;
|
|
19
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Angular library build
|
|
40
|
+
*/
|
|
41
|
+
buildLibraries({ watch, strategy, buildType, copylink_to_node_modules, }?: LibrariesBuildOptions & {
|
|
42
|
+
watch: boolean;
|
|
43
|
+
}): Promise<void>;
|
|
20
44
|
getLibraryBuildComamnd(options?: LibraryBuildCommandOptions): string | undefined;
|
|
21
45
|
get getLibraryBuildSuccessComamnd(): string;
|
|
46
|
+
selectCopytoProjects(): Promise<string[]>;
|
|
22
47
|
}
|
|
@@ -55,7 +55,6 @@ export declare class BaseNpmHelpers<PROJCET extends BaseProject = any> extends B
|
|
|
55
55
|
linkNodeModulesTo(proj: Partial<BaseProject>): any;
|
|
56
56
|
preferYarnOverNpm(): boolean;
|
|
57
57
|
makeSureNodeModulesInstalled(options?: {
|
|
58
|
-
checkPackages?: boolean;
|
|
59
58
|
useYarn?: boolean;
|
|
60
59
|
force?: boolean;
|
|
61
60
|
}): Promise<void>;
|
|
@@ -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
|
*/
|
|
@@ -87,9 +89,6 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
87
89
|
* use output from or more preciese crafted api
|
|
88
90
|
*/
|
|
89
91
|
run(command: string, options?: Omit<CoreModels.RunOptions, 'cwd'>): {
|
|
90
|
-
/**
|
|
91
|
-
* name from package.json
|
|
92
|
-
*/
|
|
93
92
|
sync(): any;
|
|
94
93
|
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => number | Promise<number>): import("child_process").ChildProcess;
|
|
95
94
|
asyncAsPromise(): Promise<void>;
|
|
@@ -142,6 +141,9 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
|
|
|
142
141
|
isUnsingActionCommit(): boolean;
|
|
143
142
|
resetProcess(overrideBranch?: string, recrusive?: boolean): Promise<void>;
|
|
144
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;
|
|
145
147
|
writeFile(relativePath: string, content: string): void;
|
|
146
148
|
runCommandGetString(this: BaseProject, command: string): any;
|
|
147
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
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import type { BaseProject } from './base-project';
|
|
3
|
+
import { LibrariesBuildOptions } from '../index';
|
|
3
4
|
export type CoreProjectEnvironment = {
|
|
4
5
|
shortName?: string;
|
|
5
6
|
name?: string;
|
|
@@ -14,12 +15,22 @@ export type CoreCommandArgOptions<PROJECT extends BaseProject> = {
|
|
|
14
15
|
watch?: boolean;
|
|
15
16
|
prod?: boolean;
|
|
16
17
|
debug?: boolean;
|
|
18
|
+
libraryBuildOptions?: LibrariesBuildOptions;
|
|
17
19
|
/**
|
|
18
20
|
* first arg from command line
|
|
19
21
|
*/
|
|
20
|
-
firstArg
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
firstArg: string;
|
|
23
|
+
/**
|
|
24
|
+
* orignal args with params
|
|
25
|
+
*/
|
|
26
|
+
argsWithParams: string;
|
|
27
|
+
copyto?: string[];
|
|
28
|
+
copytoall?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* args from command line (clearn from params)
|
|
31
|
+
*/
|
|
32
|
+
args: string[];
|
|
33
|
+
exitCallback: () => void;
|
|
23
34
|
};
|
|
24
35
|
export declare class CoreProject<PROJECT extends BaseProject = BaseProject> {
|
|
25
36
|
static coreProjects: CoreProject<any>[];
|
package/websql/lib/models.d.ts
CHANGED
|
@@ -22,11 +22,7 @@ export type LibraryBuildCommandOptions = {
|
|
|
22
22
|
buildType: core.CoreModels.LibraryType;
|
|
23
23
|
};
|
|
24
24
|
export type LibrariesBuildOptions = {
|
|
25
|
-
rebuild?: boolean;
|
|
26
|
-
watch?: boolean;
|
|
27
25
|
strategy?: 'link' | 'copy';
|
|
28
|
-
onlySelectedLibs?: string[];
|
|
29
26
|
buildType: core.CoreModels.LibraryType;
|
|
30
|
-
|
|
31
|
-
args?: string[];
|
|
27
|
+
copylink_to_node_modules?: string[];
|
|
32
28
|
};
|