tnp-helpers 19.0.73 → 19.0.76
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/browser/fesm2022/tnp-helpers.mjs +127 -53
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/classes/base-git.d.ts +3 -1
- package/browser/lib/base/classes/base-global-command-line.d.ts +28 -15
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/utils.d.ts +1 -0
- package/browser/package.json +1 -1
- package/lib/base/classes/base-git.d.ts +3 -1
- package/lib/base/classes/base-git.js +8 -3
- package/lib/base/classes/base-git.js.map +1 -1
- package/lib/base/classes/base-global-command-line.d.ts +25 -12
- package/lib/base/classes/base-global-command-line.js +128 -77
- package/lib/base/classes/base-global-command-line.js.map +1 -1
- package/lib/base/classes/base-node-modules.js +7 -7
- package/lib/base/classes/base-node-modules.js.map +1 -1
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/env/env.angular-node-app.d.ts +1 -0
- package/lib/env/env.angular-node-app.js +3 -2
- package/lib/env/env.angular-node-app.js.map +1 -1
- package/lib/env/env.docs-webapp.d.ts +1 -0
- package/lib/env/env.docs-webapp.js +3 -2
- package/lib/env/env.docs-webapp.js.map +1 -1
- package/lib/env/env.electron-app.d.ts +1 -0
- package/lib/env/env.electron-app.js +3 -2
- package/lib/env/env.electron-app.js.map +1 -1
- package/lib/env/env.mobile-app.d.ts +1 -0
- package/lib/env/env.mobile-app.js +3 -2
- package/lib/env/env.mobile-app.js.map +1 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -0
- package/lib/env/env.npm-lib-and-cli-tool.js +3 -2
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib/env/env.vscode-plugin.d.ts +1 -0
- package/lib/env/env.vscode-plugin.js +3 -2
- package/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.js +8 -2
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- 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 +1 -0
- package/lib/utils.js +13 -0
- package/lib/utils.js.map +1 -1
- package/package.json +1 -1
- package/websql/fesm2022/tnp-helpers.mjs +127 -53
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/classes/base-git.d.ts +3 -1
- package/websql/lib/base/classes/base-global-command-line.d.ts +28 -15
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/utils.d.ts +1 -0
- package/websql/package.json +1 -1
|
@@ -1389,6 +1389,22 @@ var UtilsMd;
|
|
|
1389
1389
|
/* */
|
|
1390
1390
|
return (void 0);
|
|
1391
1391
|
};
|
|
1392
|
+
UtilsMd.moveAssetsPathsToLevelFromFile = (absFilePath, level = 1) => {
|
|
1393
|
+
/* */
|
|
1394
|
+
/* */
|
|
1395
|
+
/* */
|
|
1396
|
+
/* */
|
|
1397
|
+
/* */
|
|
1398
|
+
/* */
|
|
1399
|
+
/* */
|
|
1400
|
+
/* */
|
|
1401
|
+
/* */
|
|
1402
|
+
/* */
|
|
1403
|
+
/* */
|
|
1404
|
+
/* */
|
|
1405
|
+
/* */
|
|
1406
|
+
return (void 0);
|
|
1407
|
+
};
|
|
1392
1408
|
/**
|
|
1393
1409
|
* Move asset paths to a higher directory level by adding "../" before each path.
|
|
1394
1410
|
*
|
|
@@ -7408,7 +7424,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
|
|
|
7408
7424
|
/**
|
|
7409
7425
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
7410
7426
|
*/
|
|
7411
|
-
const CURRENT_PACKAGE_VERSION = '19.0.
|
|
7427
|
+
const CURRENT_PACKAGE_VERSION = '19.0.76';
|
|
7412
7428
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
7413
7429
|
|
|
7414
7430
|
//#endregion
|
|
@@ -11775,6 +11791,9 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
11775
11791
|
/* */
|
|
11776
11792
|
/* */
|
|
11777
11793
|
/* */
|
|
11794
|
+
/* */
|
|
11795
|
+
/* */
|
|
11796
|
+
/* */
|
|
11778
11797
|
return (void 0);
|
|
11779
11798
|
}
|
|
11780
11799
|
//#region methods & getters / has action commits to melt
|
|
@@ -12805,7 +12824,14 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
12805
12824
|
}
|
|
12806
12825
|
//#endregion
|
|
12807
12826
|
//#region methods & getters / get changes summary
|
|
12808
|
-
async changesSummary() {
|
|
12827
|
+
async changesSummary(options) {
|
|
12828
|
+
/* */
|
|
12829
|
+
/* */
|
|
12830
|
+
/* */
|
|
12831
|
+
/* */
|
|
12832
|
+
/* */
|
|
12833
|
+
/* */
|
|
12834
|
+
/* */
|
|
12809
12835
|
/* */
|
|
12810
12836
|
/* */
|
|
12811
12837
|
/* */
|
|
@@ -15829,14 +15855,7 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15829
15855
|
return (void 0);
|
|
15830
15856
|
}
|
|
15831
15857
|
//#endregion
|
|
15832
|
-
|
|
15833
|
-
/**
|
|
15834
|
-
* quick git update push
|
|
15835
|
-
*/
|
|
15836
|
-
async _update(commitMessage, force = false) {
|
|
15837
|
-
/* */
|
|
15838
|
-
/* */
|
|
15839
|
-
/* */
|
|
15858
|
+
async updateProject(project, options) {
|
|
15840
15859
|
/* */
|
|
15841
15860
|
/* */
|
|
15842
15861
|
/* */
|
|
@@ -15847,32 +15866,12 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15847
15866
|
/* */
|
|
15848
15867
|
/* */
|
|
15849
15868
|
/* */
|
|
15850
|
-
/* */
|
|
15851
|
-
/* */
|
|
15852
|
-
return (void 0);
|
|
15853
|
-
}
|
|
15854
|
-
async forceup() {
|
|
15855
|
-
await this.forceUpdate();
|
|
15856
|
-
}
|
|
15857
|
-
async forceUpdate() {
|
|
15858
15869
|
/* */
|
|
15859
15870
|
/* */
|
|
15860
15871
|
/* */
|
|
15861
15872
|
/* */
|
|
15862
|
-
/* */
|
|
15863
|
-
return (void 0);
|
|
15864
|
-
}
|
|
15865
|
-
async update() {
|
|
15866
|
-
/* */
|
|
15867
|
-
/* */
|
|
15868
|
-
return (void 0);
|
|
15869
|
-
}
|
|
15870
|
-
async docsUp() {
|
|
15871
15873
|
/* */
|
|
15872
15874
|
/* */
|
|
15873
|
-
return (void 0);
|
|
15874
|
-
}
|
|
15875
|
-
async updateProject(project, force = false) {
|
|
15876
15875
|
/* */
|
|
15877
15876
|
/* */
|
|
15878
15877
|
/* */
|
|
@@ -15895,24 +15894,12 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15895
15894
|
/* */
|
|
15896
15895
|
/* */
|
|
15897
15896
|
/* */
|
|
15898
|
-
return (void 0);
|
|
15899
|
-
}
|
|
15900
|
-
async deepUp(noExit = false) {
|
|
15901
15897
|
/* */
|
|
15902
15898
|
/* */
|
|
15903
|
-
return (void 0);
|
|
15904
|
-
}
|
|
15905
|
-
async upAll(noExit = false) {
|
|
15906
15899
|
/* */
|
|
15907
15900
|
/* */
|
|
15908
|
-
return (void 0);
|
|
15909
|
-
}
|
|
15910
|
-
async deepUpForce(noExit = false) {
|
|
15911
15901
|
/* */
|
|
15912
15902
|
/* */
|
|
15913
|
-
return (void 0);
|
|
15914
|
-
}
|
|
15915
|
-
async deepUpdateForce(noExit = false) {
|
|
15916
15903
|
/* */
|
|
15917
15904
|
/* */
|
|
15918
15905
|
/* */
|
|
@@ -15925,9 +15912,6 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15925
15912
|
/* */
|
|
15926
15913
|
/* */
|
|
15927
15914
|
/* */
|
|
15928
|
-
return (void 0);
|
|
15929
|
-
}
|
|
15930
|
-
async deepUpdate(noExit = false) {
|
|
15931
15915
|
/* */
|
|
15932
15916
|
/* */
|
|
15933
15917
|
/* */
|
|
@@ -15940,21 +15924,111 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15940
15924
|
/* */
|
|
15941
15925
|
return (void 0);
|
|
15942
15926
|
}
|
|
15927
|
+
//#region commands / force update
|
|
15928
|
+
async forceUpdate() {
|
|
15929
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
15930
|
+
return;
|
|
15931
|
+
}
|
|
15932
|
+
await this.updateProject(this.project, {
|
|
15933
|
+
force: true,
|
|
15934
|
+
});
|
|
15935
|
+
this._exit();
|
|
15936
|
+
}
|
|
15937
|
+
/**
|
|
15938
|
+
* alias for forceupdate
|
|
15939
|
+
*/
|
|
15940
|
+
async forceup() {
|
|
15941
|
+
await this.forceUpdate();
|
|
15942
|
+
}
|
|
15943
|
+
//#endregion
|
|
15944
|
+
//#region commands / update
|
|
15945
|
+
async update() {
|
|
15946
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
15947
|
+
return;
|
|
15948
|
+
}
|
|
15949
|
+
await this.updateProject(this.project);
|
|
15950
|
+
this._exit();
|
|
15951
|
+
}
|
|
15943
15952
|
/**
|
|
15944
|
-
*
|
|
15953
|
+
* alias for update
|
|
15945
15954
|
*/
|
|
15946
15955
|
async up() {
|
|
15947
|
-
|
|
15948
|
-
/* */
|
|
15949
|
-
return (void 0);
|
|
15956
|
+
await this.update();
|
|
15950
15957
|
}
|
|
15951
15958
|
/**
|
|
15952
|
-
*
|
|
15959
|
+
* alias for update
|
|
15953
15960
|
*/
|
|
15954
15961
|
async pu() {
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
|
|
15962
|
+
await this.update();
|
|
15963
|
+
}
|
|
15964
|
+
//#endregion
|
|
15965
|
+
//#region commands / docs update
|
|
15966
|
+
async docsUpdate() {
|
|
15967
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
15968
|
+
return;
|
|
15969
|
+
}
|
|
15970
|
+
await this.updateProject(this.project, {
|
|
15971
|
+
commitType: 'docs',
|
|
15972
|
+
});
|
|
15973
|
+
this._exit();
|
|
15974
|
+
}
|
|
15975
|
+
/**
|
|
15976
|
+
* alias for docsUpdate
|
|
15977
|
+
*/
|
|
15978
|
+
async docsUp() {
|
|
15979
|
+
await this.docsUpdate();
|
|
15980
|
+
}
|
|
15981
|
+
//#endregion
|
|
15982
|
+
//#region commands / deep update
|
|
15983
|
+
async deepUpdate() {
|
|
15984
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
15985
|
+
return;
|
|
15986
|
+
}
|
|
15987
|
+
await this.updateProject(this.project, {
|
|
15988
|
+
updateType: 'deep',
|
|
15989
|
+
});
|
|
15990
|
+
this._exit();
|
|
15991
|
+
}
|
|
15992
|
+
/**
|
|
15993
|
+
* alias for deepupdate
|
|
15994
|
+
*/
|
|
15995
|
+
async deepUp() {
|
|
15996
|
+
await this.deepUpdate();
|
|
15997
|
+
}
|
|
15998
|
+
//#endregion
|
|
15999
|
+
//#region commands / update all
|
|
16000
|
+
async updateAll() {
|
|
16001
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
16002
|
+
return;
|
|
16003
|
+
}
|
|
16004
|
+
await this.updateProject(this.project, {
|
|
16005
|
+
updateType: 'first-level',
|
|
16006
|
+
});
|
|
16007
|
+
this._exit();
|
|
16008
|
+
}
|
|
16009
|
+
/**
|
|
16010
|
+
* alias for updateAll
|
|
16011
|
+
*/
|
|
16012
|
+
async upAll() {
|
|
16013
|
+
await this.updateAll();
|
|
16014
|
+
}
|
|
16015
|
+
//#endregion
|
|
16016
|
+
//#region commands / deep update force
|
|
16017
|
+
async deepUpdateForce() {
|
|
16018
|
+
if (!(await this.cwdIsProject({ requireProjectWithGitRoot: true }))) {
|
|
16019
|
+
return;
|
|
16020
|
+
}
|
|
16021
|
+
await this.updateProject(this.project, {
|
|
16022
|
+
updateType: 'deep',
|
|
16023
|
+
force: true,
|
|
16024
|
+
});
|
|
16025
|
+
this._exit();
|
|
16026
|
+
}
|
|
16027
|
+
/**
|
|
16028
|
+
* alias for deepUpdateForce
|
|
16029
|
+
*/
|
|
16030
|
+
async deepUpForce() {
|
|
16031
|
+
await this.deepUpdateForce();
|
|
15958
16032
|
}
|
|
15959
16033
|
//#endregion
|
|
15960
16034
|
//#region commands / develop
|