tnp-helpers 13.1.1 → 13.1.3
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/app.d.ts +1 -1
- package/app.js +6 -6
- package/browser/README.md +24 -24
- package/browser/esm2020/lib/base-component.mjs +47 -47
- package/browser/esm2020/lib/base-formly-component.mjs +125 -125
- package/browser/esm2020/lib/condition-wait.mjs +53 -53
- package/browser/esm2020/lib/constants.mjs +6 -6
- package/browser/esm2020/lib/dual-component-ctrl.mjs +120 -120
- package/browser/esm2020/lib/helpers-array-obj.mjs +80 -80
- package/browser/esm2020/lib/helpers-environment.mjs +30 -30
- package/browser/esm2020/lib/helpers-numbers.mjs +5 -5
- package/browser/esm2020/lib/helpers-strings-regexes.mjs +48 -48
- package/browser/esm2020/lib/helpers-strings.mjs +257 -257
- package/browser/esm2020/lib/helpers.mjs +276 -276
- package/browser/esm2020/lib/index.mjs +14 -14
- package/browser/esm2020/lib/long-press.directive.mjs +111 -111
- package/browser/esm2020/lib/project.mjs +413 -413
- package/browser/esm2020/lib/resize-service.mjs +19 -19
- package/browser/esm2020/public-api.mjs +1 -1
- package/browser/esm2020/tnp-helpers.mjs +4 -4
- package/browser/fesm2015/tnp-helpers.mjs +1535 -1535
- package/browser/fesm2020/tnp-helpers.mjs +1527 -1527
- package/browser/lib/base-component.d.ts +17 -17
- package/browser/lib/base-formly-component.d.ts +31 -31
- package/browser/lib/condition-wait.d.ts +8 -8
- package/browser/lib/constants.d.ts +6 -6
- package/browser/lib/dual-component-ctrl.d.ts +25 -25
- package/browser/lib/helpers-array-obj.d.ts +15 -15
- package/browser/lib/helpers-environment.d.ts +5 -5
- package/browser/lib/helpers-numbers.d.ts +3 -3
- package/browser/lib/helpers-strings-regexes.d.ts +28 -28
- package/browser/lib/helpers-strings.d.ts +50 -50
- package/browser/lib/helpers.d.ts +28 -28
- package/browser/lib/index.d.ts +9 -9
- package/browser/lib/long-press.directive.d.ts +25 -25
- package/browser/lib/project.d.ts +91 -91
- package/browser/lib/resize-service.d.ts +9 -9
- package/browser/public-api.d.ts +1 -1
- package/browser/tnp-helpers.d.ts +5 -5
- package/client/README.md +24 -24
- package/client/esm2020/lib/base-component.mjs +47 -47
- package/client/esm2020/lib/base-formly-component.mjs +125 -125
- package/client/esm2020/lib/condition-wait.mjs +53 -53
- package/client/esm2020/lib/constants.mjs +6 -6
- package/client/esm2020/lib/dual-component-ctrl.mjs +120 -120
- package/client/esm2020/lib/helpers-array-obj.mjs +80 -80
- package/client/esm2020/lib/helpers-environment.mjs +30 -30
- package/client/esm2020/lib/helpers-numbers.mjs +5 -5
- package/client/esm2020/lib/helpers-strings-regexes.mjs +48 -48
- package/client/esm2020/lib/helpers-strings.mjs +257 -257
- package/client/esm2020/lib/helpers.mjs +276 -276
- package/client/esm2020/lib/index.mjs +14 -14
- package/client/esm2020/lib/long-press.directive.mjs +111 -111
- package/client/esm2020/lib/project.mjs +413 -413
- package/client/esm2020/lib/resize-service.mjs +19 -19
- package/client/esm2020/public-api.mjs +1 -1
- package/client/esm2020/tnp-helpers.mjs +4 -4
- package/client/fesm2015/tnp-helpers.mjs +1535 -1535
- package/client/fesm2020/tnp-helpers.mjs +1527 -1527
- package/client/lib/base-component.d.ts +17 -17
- package/client/lib/base-formly-component.d.ts +31 -31
- package/client/lib/condition-wait.d.ts +8 -8
- package/client/lib/constants.d.ts +6 -6
- package/client/lib/dual-component-ctrl.d.ts +25 -25
- package/client/lib/helpers-array-obj.d.ts +15 -15
- package/client/lib/helpers-environment.d.ts +5 -5
- package/client/lib/helpers-numbers.d.ts +3 -3
- package/client/lib/helpers-strings-regexes.d.ts +28 -28
- package/client/lib/helpers-strings.d.ts +50 -50
- package/client/lib/helpers.d.ts +28 -28
- package/client/lib/index.d.ts +9 -9
- package/client/lib/long-press.directive.d.ts +25 -25
- package/client/lib/project.d.ts +91 -91
- package/client/lib/resize-service.d.ts +9 -9
- package/client/public-api.d.ts +1 -1
- package/client/tnp-helpers.d.ts +5 -5
- package/index.d.ts +1 -1
- package/index.js +5 -5
- package/lib/angular.helper.d.ts +22 -22
- package/lib/angular.helper.js +50 -50
- package/lib/base-component.d.ts +1 -1
- package/lib/base-component.js +6 -6
- package/lib/base-formly-component.d.ts +1 -1
- package/lib/base-formly-component.js +6 -6
- package/lib/condition-wait.d.ts +8 -8
- package/lib/condition-wait.js +94 -94
- package/lib/constants.d.ts +6 -6
- package/lib/constants.js +10 -10
- package/lib/dual-component-ctrl.d.ts +1 -1
- package/lib/dual-component-ctrl.js +6 -6
- package/lib/git-project.d.ts +44 -44
- package/lib/git-project.js +195 -195
- package/lib/helpers-array-obj.d.ts +15 -15
- package/lib/helpers-array-obj.js +88 -88
- package/lib/helpers-cli-tool.backend.d.ts +45 -45
- package/lib/helpers-cli-tool.backend.js +293 -293
- package/lib/helpers-dependencies.backend.d.ts +11 -11
- package/lib/helpers-dependencies.backend.js +105 -105
- package/lib/helpers-environment.d.ts +5 -5
- package/lib/helpers-environment.js +35 -35
- package/lib/helpers-file-folders.backend.d.ts +84 -84
- package/lib/helpers-file-folders.backend.js +736 -736
- package/lib/helpers-git.backend.d.ts +35 -35
- package/lib/helpers-git.backend.js +541 -545
- package/lib/helpers-git.backend.js.map +1 -1
- package/lib/helpers-json5.backend.d.ts +16 -16
- package/lib/helpers-json5.backend.js +70 -70
- package/lib/helpers-morphi-framework.backend.d.ts +4 -4
- package/lib/helpers-morphi-framework.backend.js +49 -49
- package/lib/helpers-network.backend.d.ts +8 -8
- package/lib/helpers-network.backend.js +48 -48
- package/lib/helpers-npm.backend.d.ts +3 -3
- package/lib/helpers-npm.backend.js +17 -17
- package/lib/helpers-numbers.d.ts +3 -3
- package/lib/helpers-numbers.js +11 -11
- package/lib/helpers-path.backend.d.ts +7 -7
- package/lib/helpers-path.backend.js +36 -36
- package/lib/helpers-process.backend.d.ts +57 -57
- package/lib/helpers-process.backend.js +529 -529
- package/lib/helpers-process.backend.js.map +1 -1
- package/lib/helpers-strings-regexes.d.ts +28 -28
- package/lib/helpers-strings-regexes.js +60 -60
- package/lib/helpers-strings.d.ts +50 -50
- package/lib/helpers-strings.js +265 -265
- package/lib/helpers-system-terminal.backend.d.ts +5 -5
- package/lib/helpers-system-terminal.backend.js +53 -53
- package/lib/helpers.d.ts +67 -67
- package/lib/helpers.js +391 -391
- package/lib/index.d.ts +6 -6
- package/lib/index.js +19 -19
- package/lib/long-press.directive.d.ts +22 -22
- package/lib/long-press.directive.js +141 -141
- package/lib/merge-helpers.backend.d.ts +23 -23
- package/lib/merge-helpers.backend.js +108 -108
- package/lib/project.d.ts +94 -94
- package/lib/project.js +422 -422
- package/lib/resize-service.d.ts +6 -6
- package/lib/resize-service.js +24 -24
- package/lib/ts-code/index.d.ts +1 -1
- package/lib/ts-code/index.js +7 -7
- package/lib/ts-code/ts-code-extractor.d.ts +14 -14
- package/lib/ts-code/ts-code-extractor.js +46 -46
- package/lib/ts-code/ts-code-modifier.backend.d.ts +12 -12
- package/lib/ts-code/ts-code-modifier.backend.js +70 -70
- package/package.json +5 -5
- package/package.json_devDependencies.json +222 -222
- package/package.json_tnp.json5 +41 -41
- package/tmp-environment.json +36 -35
- package/websql/README.md +24 -24
- package/websql/esm2020/lib/base-component.mjs +47 -47
- package/websql/esm2020/lib/base-formly-component.mjs +125 -125
- package/websql/esm2020/lib/condition-wait.mjs +53 -53
- package/websql/esm2020/lib/constants.mjs +6 -6
- package/websql/esm2020/lib/dual-component-ctrl.mjs +120 -120
- package/websql/esm2020/lib/helpers-array-obj.mjs +80 -80
- package/websql/esm2020/lib/helpers-environment.mjs +30 -30
- package/websql/esm2020/lib/helpers-numbers.mjs +5 -5
- package/websql/esm2020/lib/helpers-strings-regexes.mjs +48 -48
- package/websql/esm2020/lib/helpers-strings.mjs +257 -257
- package/websql/esm2020/lib/helpers.mjs +276 -276
- package/websql/esm2020/lib/index.mjs +14 -14
- package/websql/esm2020/lib/long-press.directive.mjs +111 -111
- package/websql/esm2020/lib/project.mjs +413 -413
- package/websql/esm2020/lib/resize-service.mjs +19 -19
- package/websql/esm2020/public-api.mjs +1 -1
- package/websql/esm2020/tnp-helpers.mjs +4 -4
- package/websql/fesm2015/tnp-helpers.mjs +1535 -1535
- package/websql/fesm2020/tnp-helpers.mjs +1527 -1527
- package/websql/lib/base-component.d.ts +17 -17
- package/websql/lib/base-formly-component.d.ts +31 -31
- package/websql/lib/condition-wait.d.ts +8 -8
- package/websql/lib/constants.d.ts +6 -6
- package/websql/lib/dual-component-ctrl.d.ts +25 -25
- package/websql/lib/helpers-array-obj.d.ts +15 -15
- package/websql/lib/helpers-environment.d.ts +5 -5
- package/websql/lib/helpers-numbers.d.ts +3 -3
- package/websql/lib/helpers-strings-regexes.d.ts +28 -28
- package/websql/lib/helpers-strings.d.ts +50 -50
- package/websql/lib/helpers.d.ts +28 -28
- package/websql/lib/index.d.ts +9 -9
- package/websql/lib/long-press.directive.d.ts +25 -25
- package/websql/lib/project.d.ts +91 -91
- package/websql/lib/resize-service.d.ts +9 -9
- package/websql/public-api.d.ts +1 -1
- package/websql/tnp-helpers.d.ts +5 -5
package/lib/project.d.ts
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
export { ChildProcess } from 'child_process';
|
|
2
|
-
import { ProjectGit } from './git-project';
|
|
3
|
-
import { ConfigModels } from 'tnp-config';
|
|
4
|
-
import { Models } from 'tnp-models';
|
|
5
|
-
export declare type EmptyProjectStructure = {
|
|
6
|
-
includeContent?: boolean;
|
|
7
|
-
relativePath: string;
|
|
8
|
-
relativeLinkFrom?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare class Project<T extends Project<any> = any> extends ProjectGit {
|
|
11
|
-
protected cache: {};
|
|
12
|
-
/**
|
|
13
|
-
* Do use this variable for comparatios
|
|
14
|
-
* ONLY FOR VIEWING
|
|
15
|
-
*/
|
|
16
|
-
readonly _type: ConfigModels.LibType;
|
|
17
|
-
browser: Pick<Project<any>, 'location' | 'name'>;
|
|
18
|
-
location: string;
|
|
19
|
-
name: string;
|
|
20
|
-
genericName: string;
|
|
21
|
-
isWorkspace: boolean;
|
|
22
|
-
isVscodeExtension: boolean;
|
|
23
|
-
isDocker: boolean;
|
|
24
|
-
isSite: boolean;
|
|
25
|
-
isSiteInStrictMode?: boolean;
|
|
26
|
-
isSiteInDependencyMode?: boolean;
|
|
27
|
-
isCoreProject: boolean;
|
|
28
|
-
isCommandLineToolOnly: boolean;
|
|
29
|
-
isGenerated: boolean;
|
|
30
|
-
isGeneratedForRelease: boolean;
|
|
31
|
-
isWorkspaceChildProject: boolean;
|
|
32
|
-
isBasedOnOtherProject: boolean;
|
|
33
|
-
isForRecreation: boolean;
|
|
34
|
-
isContainer: boolean;
|
|
35
|
-
isSmartContainer: boolean;
|
|
36
|
-
isSmartContainerChild: boolean;
|
|
37
|
-
isContainerWithLinkedProjects: boolean;
|
|
38
|
-
isContainerChild: boolean;
|
|
39
|
-
isContainerCoreProject: boolean;
|
|
40
|
-
isStandaloneProject: boolean;
|
|
41
|
-
isMonorepo: boolean;
|
|
42
|
-
isUnknowNpmProject: boolean;
|
|
43
|
-
isNaviCli: boolean;
|
|
44
|
-
useFramework: boolean;
|
|
45
|
-
defaultPort?: number;
|
|
46
|
-
version: string;
|
|
47
|
-
lastNpmVersion?: string;
|
|
48
|
-
_routerTargetHttp?: string;
|
|
49
|
-
customizableFilesAndFolders: string[];
|
|
50
|
-
type: ConfigModels.LibType;
|
|
51
|
-
backupName: string;
|
|
52
|
-
resources: string[];
|
|
53
|
-
env: Models.env.EnvConfig;
|
|
54
|
-
allowedEnvironments: ConfigModels.EnvironmentName[];
|
|
55
|
-
children: T[];
|
|
56
|
-
grandpa: T;
|
|
57
|
-
distribution: T;
|
|
58
|
-
childrenThatAreLibs?: T[];
|
|
59
|
-
childrenThatAreClients?: T[];
|
|
60
|
-
childrenThatAreThirdPartyInNodeModules?: T[];
|
|
61
|
-
parent: T;
|
|
62
|
-
preview: T;
|
|
63
|
-
baseline: T;
|
|
64
|
-
static projects: Project<any>[];
|
|
65
|
-
/**
|
|
66
|
-
* To speed up checking folder I am keeping pathes for alterdy checked folder
|
|
67
|
-
* This may break things that are creating new projects
|
|
68
|
-
*/
|
|
69
|
-
static emptyLocations: string[];
|
|
70
|
-
static typeFrom(location: string): ConfigModels.LibType;
|
|
71
|
-
static unload(project: Project): void;
|
|
72
|
-
static From<T = Project<any>>(location: string): T;
|
|
73
|
-
static nearestTo<T = Project>(absoluteLocation: string, options?: {
|
|
74
|
-
type?: ConfigModels.LibType;
|
|
75
|
-
findGitRoot?: boolean;
|
|
76
|
-
onlyOutSideNodeModules?: boolean;
|
|
77
|
-
}): T;
|
|
78
|
-
static allProjectFrom<T = Project>(absoluteLocation: string, stopOnCwd?: string): T[];
|
|
79
|
-
static DefaultPortByType(type: ConfigModels.LibType): number;
|
|
80
|
-
static get isBundleMode(): boolean;
|
|
81
|
-
static get Current(): Project<any>;
|
|
82
|
-
static get NaviCliLocation(): string;
|
|
83
|
-
static get Tnp(): Project<any>;
|
|
84
|
-
static by<T = Project>(libraryType: ConfigModels.NewFactoryType, version?: ConfigModels.FrameworkVersion): T;
|
|
85
|
-
defineProperty<T>(variableName: keyof T, classFn: Function): void;
|
|
86
|
-
setType(this: Project, type: ConfigModels.LibType): void;
|
|
87
|
-
typeIs(this: Project, ...types: ConfigModels.LibType[]): boolean;
|
|
88
|
-
typeIsNot(this: Project, ...types: ConfigModels.LibType[]): boolean;
|
|
89
|
-
forEmptyStructure(): EmptyProjectStructure[];
|
|
90
|
-
}
|
|
91
|
-
export declare type ProjectBuild = {
|
|
92
|
-
project: Project;
|
|
93
|
-
appBuild: boolean;
|
|
94
|
-
};
|
|
1
|
+
export { ChildProcess } from 'child_process';
|
|
2
|
+
import { ProjectGit } from './git-project';
|
|
3
|
+
import { ConfigModels } from 'tnp-config';
|
|
4
|
+
import { Models } from 'tnp-models';
|
|
5
|
+
export declare type EmptyProjectStructure = {
|
|
6
|
+
includeContent?: boolean;
|
|
7
|
+
relativePath: string;
|
|
8
|
+
relativeLinkFrom?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class Project<T extends Project<any> = any> extends ProjectGit {
|
|
11
|
+
protected cache: {};
|
|
12
|
+
/**
|
|
13
|
+
* Do use this variable for comparatios
|
|
14
|
+
* ONLY FOR VIEWING
|
|
15
|
+
*/
|
|
16
|
+
readonly _type: ConfigModels.LibType;
|
|
17
|
+
browser: Pick<Project<any>, 'location' | 'name'>;
|
|
18
|
+
location: string;
|
|
19
|
+
name: string;
|
|
20
|
+
genericName: string;
|
|
21
|
+
isWorkspace: boolean;
|
|
22
|
+
isVscodeExtension: boolean;
|
|
23
|
+
isDocker: boolean;
|
|
24
|
+
isSite: boolean;
|
|
25
|
+
isSiteInStrictMode?: boolean;
|
|
26
|
+
isSiteInDependencyMode?: boolean;
|
|
27
|
+
isCoreProject: boolean;
|
|
28
|
+
isCommandLineToolOnly: boolean;
|
|
29
|
+
isGenerated: boolean;
|
|
30
|
+
isGeneratedForRelease: boolean;
|
|
31
|
+
isWorkspaceChildProject: boolean;
|
|
32
|
+
isBasedOnOtherProject: boolean;
|
|
33
|
+
isForRecreation: boolean;
|
|
34
|
+
isContainer: boolean;
|
|
35
|
+
isSmartContainer: boolean;
|
|
36
|
+
isSmartContainerChild: boolean;
|
|
37
|
+
isContainerWithLinkedProjects: boolean;
|
|
38
|
+
isContainerChild: boolean;
|
|
39
|
+
isContainerCoreProject: boolean;
|
|
40
|
+
isStandaloneProject: boolean;
|
|
41
|
+
isMonorepo: boolean;
|
|
42
|
+
isUnknowNpmProject: boolean;
|
|
43
|
+
isNaviCli: boolean;
|
|
44
|
+
useFramework: boolean;
|
|
45
|
+
defaultPort?: number;
|
|
46
|
+
version: string;
|
|
47
|
+
lastNpmVersion?: string;
|
|
48
|
+
_routerTargetHttp?: string;
|
|
49
|
+
customizableFilesAndFolders: string[];
|
|
50
|
+
type: ConfigModels.LibType;
|
|
51
|
+
backupName: string;
|
|
52
|
+
resources: string[];
|
|
53
|
+
env: Models.env.EnvConfig;
|
|
54
|
+
allowedEnvironments: ConfigModels.EnvironmentName[];
|
|
55
|
+
children: T[];
|
|
56
|
+
grandpa: T;
|
|
57
|
+
distribution: T;
|
|
58
|
+
childrenThatAreLibs?: T[];
|
|
59
|
+
childrenThatAreClients?: T[];
|
|
60
|
+
childrenThatAreThirdPartyInNodeModules?: T[];
|
|
61
|
+
parent: T;
|
|
62
|
+
preview: T;
|
|
63
|
+
baseline: T;
|
|
64
|
+
static projects: Project<any>[];
|
|
65
|
+
/**
|
|
66
|
+
* To speed up checking folder I am keeping pathes for alterdy checked folder
|
|
67
|
+
* This may break things that are creating new projects
|
|
68
|
+
*/
|
|
69
|
+
static emptyLocations: string[];
|
|
70
|
+
static typeFrom(location: string): ConfigModels.LibType;
|
|
71
|
+
static unload(project: Project): void;
|
|
72
|
+
static From<T = Project<any>>(location: string): T;
|
|
73
|
+
static nearestTo<T = Project>(absoluteLocation: string, options?: {
|
|
74
|
+
type?: ConfigModels.LibType;
|
|
75
|
+
findGitRoot?: boolean;
|
|
76
|
+
onlyOutSideNodeModules?: boolean;
|
|
77
|
+
}): T;
|
|
78
|
+
static allProjectFrom<T = Project>(absoluteLocation: string, stopOnCwd?: string): T[];
|
|
79
|
+
static DefaultPortByType(type: ConfigModels.LibType): number;
|
|
80
|
+
static get isBundleMode(): boolean;
|
|
81
|
+
static get Current(): Project<any>;
|
|
82
|
+
static get NaviCliLocation(): string;
|
|
83
|
+
static get Tnp(): Project<any>;
|
|
84
|
+
static by<T = Project>(libraryType: ConfigModels.NewFactoryType, version?: ConfigModels.FrameworkVersion): T;
|
|
85
|
+
defineProperty<T>(variableName: keyof T, classFn: Function): void;
|
|
86
|
+
setType(this: Project, type: ConfigModels.LibType): void;
|
|
87
|
+
typeIs(this: Project, ...types: ConfigModels.LibType[]): boolean;
|
|
88
|
+
typeIsNot(this: Project, ...types: ConfigModels.LibType[]): boolean;
|
|
89
|
+
forEmptyStructure(): EmptyProjectStructure[];
|
|
90
|
+
}
|
|
91
|
+
export declare type ProjectBuild = {
|
|
92
|
+
project: Project;
|
|
93
|
+
appBuild: boolean;
|
|
94
|
+
};
|