tnp-helpers 16.444.2 → 16.444.5

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.
Files changed (39) hide show
  1. package/assets/shared/shared_folder_info.txt +1 -1
  2. package/browser/esm2022/lib/base/base-project.mjs +38 -1
  3. package/browser/esm2022/lib/base/core-project.mjs +40 -19
  4. package/browser/fesm2022/tnp-helpers.mjs +76 -16
  5. package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
  6. package/browser/lib/base/base-project.d.ts +8 -0
  7. package/client/esm2022/lib/base/base-project.mjs +38 -1
  8. package/client/esm2022/lib/base/core-project.mjs +40 -19
  9. package/client/fesm2022/tnp-helpers.mjs +76 -16
  10. package/client/fesm2022/tnp-helpers.mjs.map +1 -1
  11. package/client/lib/base/base-project.d.ts +8 -0
  12. package/client/package.json +34 -31
  13. package/lib/base/base-command-line.backend.d.ts +7 -1
  14. package/lib/base/base-command-line.backend.js +166 -38
  15. package/lib/base/base-command-line.backend.js.map +1 -1
  16. package/lib/base/base-project.d.ts +8 -0
  17. package/lib/base/base-project.js +42 -1
  18. package/lib/base/base-project.js.map +1 -1
  19. package/lib/base/core-project.js +30 -7
  20. package/lib/base/core-project.js.map +1 -1
  21. package/lib/helpers/for-backend/helpers-console-gui.d.ts +4 -0
  22. package/lib/helpers/for-backend/helpers-console-gui.js +16 -1
  23. package/lib/helpers/for-backend/helpers-console-gui.js.map +1 -1
  24. package/lib/helpers/for-backend/helpers-git.backend.js +19 -19
  25. package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
  26. package/lib/helpers/for-backend/helpers-process.backend.d.ts +4 -0
  27. package/lib/helpers/for-backend/helpers-process.backend.js +90 -23
  28. package/lib/helpers/for-backend/helpers-process.backend.js.map +1 -1
  29. package/lib/helpers/for-browser/angular.helper.js +3 -3
  30. package/lib/old/base-component.js +3 -3
  31. package/lib/old/base-formly-component.js +3 -3
  32. package/lib/old/dual-component-ctrl.js +3 -3
  33. package/package.json +4 -4
  34. package/tmp-environment.json +38 -35
  35. package/websql/esm2022/lib/base/base-project.mjs +38 -1
  36. package/websql/esm2022/lib/base/core-project.mjs +40 -19
  37. package/websql/fesm2022/tnp-helpers.mjs +76 -16
  38. package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
  39. package/websql/lib/base/base-project.d.ts +8 -0
@@ -73,6 +73,10 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
73
73
  * Minor Version from package.json
74
74
  */
75
75
  get minorVersion(): number;
76
+ /**
77
+ * @deprecated
78
+ */
79
+ bumpPatchVersion(): Promise<any>;
76
80
  get versionPathAsNumber(): number;
77
81
  /**
78
82
  * npm dependencies from package.json
@@ -117,6 +121,10 @@ export declare abstract class BaseProject<PROJCET extends BaseProject = any, TYP
117
121
  force?: boolean;
118
122
  }): void;
119
123
  preferYarnOverNpm(): boolean;
124
+ /**
125
+ *
126
+ * @returns true if node_modules folder is empty
127
+ */
120
128
  nodeModulesEmpty(): any;
121
129
  /**
122
130
  * same has project.hasFile();
@@ -43,12 +43,12 @@
43
43
  "firedev-helpers"
44
44
  ]
45
45
  },
46
- "version": "16.444.2",
46
+ "version": "16.444.5",
47
47
  "dependencies": {
48
- "json10-writer": "16.444.2",
48
+ "json10-writer": "16.444.4",
49
49
  "lowdb": "7.0.1",
50
50
  "task.js": "0.1.5",
51
- "tnp-models": "16.444.2",
51
+ "tnp-models": "16.444.4",
52
52
  "typescript": "~5.0.2"
53
53
  },
54
54
  "scripts": {
@@ -86,7 +86,7 @@
86
86
  "@angular/router": "~16.0.0",
87
87
  "@angular/service-worker": "~16.0.4",
88
88
  "@babel/cli": "7.18.6",
89
- "@compodoc/compodoc": "1.1.20",
89
+ "@compodoc/compodoc": "1.1.23",
90
90
  "@iconify/icons-fa-solid": "1.2.2",
91
91
  "@iconify/icons-mdi": "1.2.1",
92
92
  "@mdi/js": "7.2.96",
@@ -146,7 +146,7 @@
146
146
  "angular-material-css-vars": "5.0.2",
147
147
  "angular-resize-event": "3.2.0",
148
148
  "animate.css": "4.1.1 ",
149
- "any-project-cli": "16.100.10",
149
+ "any-project-cli": "16.444.1",
150
150
  "app-root-path": "3.0.0",
151
151
  "axios": "1.3.5",
152
152
  "background-worker-process": "16.100.10",
@@ -156,6 +156,7 @@
156
156
  "body-parser": "1.18.2",
157
157
  "bootstrap": "4.6.2",
158
158
  "buffer-shims": "1.0.0",
159
+ "bun": "1.0.0",
159
160
  "callsite-record": "4.1.3",
160
161
  "chai": "4.3.7",
161
162
  "chalk": "2.3.2",
@@ -202,13 +203,13 @@
202
203
  "file-saver": "2.0.5",
203
204
  "file-type": "18.5.0",
204
205
  "firedev": "^16",
205
- "firedev-crud": "16.100.10",
206
- "firedev-crud-deamon": "16.100.9",
207
- "firedev-ports": "16.100.10",
208
- "firedev-storage": "16.100.6",
209
- "firedev-type-sql": "16.100.7",
210
- "firedev-typeorm": "16.100.7",
211
- "firedev-ui": "16.100.10",
206
+ "firedev-crud": "16.444.1",
207
+ "firedev-crud-deamon": "16.444.1",
208
+ "firedev-ports": "16.444.1",
209
+ "firedev-storage": "16.444.1",
210
+ "firedev-type-sql": "16.444.1",
211
+ "firedev-typeorm": "16.444.1",
212
+ "firedev-ui": "16.444.1",
212
213
  "fkill": "6.1.0",
213
214
  "font-awesome": "4.7.0",
214
215
  "form-data": "4.0.0",
@@ -226,11 +227,11 @@
226
227
  "image-focus": "1.2.1",
227
228
  "immer": "10.0.2",
228
229
  "immutable": "4.3.0",
229
- "incremental-compiler": "16.100.10",
230
+ "incremental-compiler": "16.444.2",
230
231
  "inquirer": "7.3.3",
231
232
  "inquirer-autocomplete-prompt": "1.3.0",
232
233
  "is-elevated": "3.0.0",
233
- "isomorphic-region-loader": "16.100.9",
234
+ "isomorphic-region-loader": "16.444.1",
234
235
  "istanbul-instrumenter-loader": "2.0.0",
235
236
  "jest": "29.5.0",
236
237
  "jest-date-mock": "1.0.8",
@@ -241,7 +242,7 @@
241
242
  "joi": "17.9.2",
242
243
  "jscodeshift": "0.6.3",
243
244
  "json-stringify-safe": "5.0.1",
244
- "json10": "16.100.7",
245
+ "json10": "16.444.1",
245
246
  "json5": "2.2.1",
246
247
  "json5-writer": "0.2.0",
247
248
  "jszip": "3.10.1",
@@ -250,8 +251,8 @@
250
251
  "localforage": "1.10.0",
251
252
  "lockfile": "1.0.4",
252
253
  "lodash": "4.17.20",
253
- "lodash-walk-object": "16.100.7",
254
- "magic-renamer": "16.100.9",
254
+ "lodash-walk-object": "16.444.1",
255
+ "magic-renamer": "16.444.1",
255
256
  "material-design-icons": "3.0.1",
256
257
  "method-override": "2.3.10",
257
258
  "minimist": "1.2.0",
@@ -262,10 +263,10 @@
262
263
  "ng-in-viewport": "15.0.2",
263
264
  "ng-lock": "16.0.1",
264
265
  "ng-packagr": "16.0.1",
265
- "ng-talkback": "16.100.5",
266
- "ng2-logger": "16.444.2",
266
+ "ng-talkback": "16.444.1",
267
+ "ng2-logger": "16.444.4",
267
268
  "ng2-pdfjs-viewer": "16.0.4",
268
- "ng2-rest": "16.100.7",
269
+ "ng2-rest": "16.444.1",
269
270
  "ngx-ace-wrapper": "14.0.0",
270
271
  "ngx-editor": "15.3.0",
271
272
  "ngx-highlightjs": "9.0.0",
@@ -278,7 +279,7 @@
278
279
  "ngx-scrolltop": "6.0.0",
279
280
  "ngx-store": "3.1.1",
280
281
  "ngx-typed-js": "2.1.1",
281
- "node-cli-tester": "16.100.5",
282
+ "node-cli-tester": "16.444.1",
282
283
  "node-localstorage": "2.1.6",
283
284
  "node-notifier": "6.0.0",
284
285
  "node-polyfill-webpack-plugin": "2.0.1",
@@ -307,7 +308,7 @@
307
308
  "q": "1.5.1",
308
309
  "rallax.js": "2.0.4",
309
310
  "randomcolor": "0.5.3",
310
- "record-replay-req-res-scenario": "16.100.5",
311
+ "record-replay-req-res-scenario": "16.444.1",
311
312
  "reflect-metadata": "0.1.10",
312
313
  "rimraf": "2.6.2",
313
314
  "rxjs": "~7.8.0",
@@ -318,18 +319,18 @@
318
319
  "socket.io": "2.4.1",
319
320
  "sort-package-json": "1.11.0",
320
321
  "sql.js": "1.8.0",
321
- "static-columns": "16.100.6",
322
+ "static-columns": "16.444.1",
322
323
  "string-similarity": "4.0.2",
323
324
  "sudo-block": "3.0.0",
324
325
  "supertest": "6.3.3",
325
326
  "sweetalert2": "11.7.12",
326
327
  "systeminformation": "3.45.7",
327
328
  "threads": "1.7.0",
328
- "tnp-cli": "16.100.5",
329
- "tnp-config": "16.444.2",
330
- "tnp-core": "16.444.2",
331
- "tnp-db": "16.100.9",
332
- "tnp-helpers": "16.444.1",
329
+ "tnp-cli": "16.444.1",
330
+ "tnp-config": "16.444.4",
331
+ "tnp-core": "16.444.5",
332
+ "tnp-db": "16.444.1",
333
+ "tnp-helpers": "16.444.3",
333
334
  "ts-debug": "1.3.0",
334
335
  "ts-json-schema-generator": "2.1.1",
335
336
  "ts-loader": "2.3.1",
@@ -337,13 +338,15 @@
337
338
  "tslib": "~2.3.0",
338
339
  "tslint": "5.9.1",
339
340
  "turndown": "7.1.2",
340
- "typescript-class-helpers": "~16.444.2",
341
+ "typedoc": "0.25.13",
342
+ "typedoc-plugin-markdown": "4.0.3",
343
+ "typescript-class-helpers": "~16.444.4",
341
344
  "typescript-formatter": "~7.2.2",
342
345
  "underscore": "1.9.1",
343
346
  "uuid": "8.3.2",
344
347
  "validator": "9.2.0",
345
348
  "video.js": "8.3.0",
346
- "vpn-split": "16.100.5",
349
+ "vpn-split": "16.444.1",
347
350
  "vscode": "1.1.37",
348
351
  "wait-on": "7.0.1",
349
352
  "watch": "1.0.2",
@@ -353,6 +356,6 @@
353
356
  "yup": "1.1.1",
354
357
  "zone.js": "~0.13.0"
355
358
  },
356
- "lastBuildTagHash": "73fbc9ab8ab220c590399d63af451e5a09a59a73",
359
+ "lastBuildTagHash": "edd381be8dae0af1d7d014ea3582d6d043501a05",
357
360
  "main": "dist/app.electron.js"
358
361
  }
@@ -3,12 +3,14 @@ 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
- prevennCwdIsNotProject(): void;
6
+ preventCwdIsNotProject(): void;
7
+ removeSubmodules(): void;
7
8
  setEditor(): Promise<void>;
8
9
  /**
9
10
  * quick git update push
10
11
  */
11
12
  update(): Promise<void>;
13
+ deepUpdate(noExit?: boolean): Promise<void>;
12
14
  up(): Promise<void>;
13
15
  develop(): Promise<void>;
14
16
  dev(): Promise<void>;
@@ -29,6 +31,8 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
29
31
  * push force to all orgins
30
32
  */
31
33
  pushAllForce(): Promise<void>;
34
+ pAllf(): Promise<void>;
35
+ pAll(): Promise<void>;
32
36
  /**
33
37
  * push to all origins
34
38
  */
@@ -101,6 +105,8 @@ export declare class BaseCommandLine<PARAMS = any, PROJECT extends BaseProject<a
101
105
  UPDATE(): Promise<void>;
102
106
  BRANCH_NAME(): void;
103
107
  REMOTES(): void;
108
+ origins(): void;
109
+ countCommits(): void;
104
110
  isTerminalSupported(): void;
105
111
  PROJ_EXT(): void;
106
112
  projdb(): void;
@@ -15,11 +15,37 @@ var BaseCommandLine = /** @class */ (function (_super) {
15
15
  BaseCommandLine.prototype._ = function () {
16
16
  index_1.Helpers.error('Please select git command');
17
17
  };
18
- BaseCommandLine.prototype.prevennCwdIsNotProject = function () {
18
+ BaseCommandLine.prototype.preventCwdIsNotProject = function () {
19
19
  if (!this.project) {
20
20
  index_1.Helpers.error('This is not a project folder', false, true);
21
21
  }
22
22
  };
23
+ BaseCommandLine.prototype.removeSubmodules = function () {
24
+ var e_1, _a;
25
+ index_1.Helpers.taskStarted('Removing submodules...');
26
+ try {
27
+ for (var _b = tslib_1.__values(index_1.Helpers.foldersFrom(this.cwd, {
28
+ recursive: false,
29
+ })), _c = _b.next(); !_c.done; _c = _b.next()) {
30
+ var folderAbsPath = _c.value;
31
+ if (index_1.Helpers.exists((0, tnp_core_2.crossPlatformPath)([folderAbsPath, '.git']))) {
32
+ try {
33
+ index_1.Helpers.run("git rm --cached ".concat(tnp_core_1.path.basename(folderAbsPath))).sync();
34
+ }
35
+ catch (error) { }
36
+ }
37
+ }
38
+ }
39
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
40
+ finally {
41
+ try {
42
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
43
+ }
44
+ finally { if (e_1) throw e_1.error; }
45
+ }
46
+ index_1.Helpers.taskDone('Done');
47
+ this._exit();
48
+ };
23
49
  //#region commands / set editor
24
50
  BaseCommandLine.prototype.setEditor = function () {
25
51
  return tslib_1.__awaiter(this, void 0, void 0, function () {
@@ -44,10 +70,10 @@ var BaseCommandLine = /** @class */ (function (_super) {
44
70
  return tslib_1.__generator(this, function (_a) {
45
71
  switch (_a.label) {
46
72
  case 0:
47
- this.prevennCwdIsNotProject();
73
+ this.preventCwdIsNotProject();
48
74
  index_1.Helpers.info('Updating & push project...');
49
75
  try {
50
- this.project.git.addAndCommit('chore: update');
76
+ this.project.git.addAndCommit("chore: ".concat(!!this.firstArg ? this.firstArg : 'update'));
51
77
  }
52
78
  catch (error) { }
53
79
  return [4 /*yield*/, this.project.git.pushCurrentBranch({
@@ -63,6 +89,83 @@ var BaseCommandLine = /** @class */ (function (_super) {
63
89
  });
64
90
  });
65
91
  };
92
+ BaseCommandLine.prototype.deepUpdate = function (noExit) {
93
+ if (noExit === void 0) { noExit = false; }
94
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
95
+ var updateProject;
96
+ var _this = this;
97
+ return tslib_1.__generator(this, function (_a) {
98
+ switch (_a.label) {
99
+ case 0:
100
+ this.preventCwdIsNotProject();
101
+ index_1.Helpers.info('Deep updating & pushing project with children...');
102
+ updateProject = function (project) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
103
+ var error_1, _a, _b, child, e_2_1;
104
+ var e_2, _c;
105
+ return tslib_1.__generator(this, function (_d) {
106
+ switch (_d.label) {
107
+ case 0:
108
+ _d.trys.push([0, 2, , 3]);
109
+ return [4 /*yield*/, project.bumpPatchVersion()];
110
+ case 1:
111
+ _d.sent();
112
+ return [3 /*break*/, 3];
113
+ case 2:
114
+ error_1 = _d.sent();
115
+ return [3 /*break*/, 3];
116
+ case 3:
117
+ try {
118
+ project.git.addAndCommit("chore: ".concat(!!this.firstArg ? this.args.join(' ') : 'update'));
119
+ }
120
+ catch (error) { }
121
+ return [4 /*yield*/, project.git.pushCurrentBranch({
122
+ askToRetry: true,
123
+ forcePushNoQuestion: true,
124
+ })];
125
+ case 4:
126
+ _d.sent();
127
+ if (!!project.isMonorepo) return [3 /*break*/, 12];
128
+ _d.label = 5;
129
+ case 5:
130
+ _d.trys.push([5, 10, 11, 12]);
131
+ _a = tslib_1.__values(project.children), _b = _a.next();
132
+ _d.label = 6;
133
+ case 6:
134
+ if (!!_b.done) return [3 /*break*/, 9];
135
+ child = _b.value;
136
+ if (!child.git.isGitRoot) return [3 /*break*/, 8];
137
+ return [4 /*yield*/, updateProject(child)];
138
+ case 7:
139
+ _d.sent();
140
+ _d.label = 8;
141
+ case 8:
142
+ _b = _a.next();
143
+ return [3 /*break*/, 6];
144
+ case 9: return [3 /*break*/, 12];
145
+ case 10:
146
+ e_2_1 = _d.sent();
147
+ e_2 = { error: e_2_1 };
148
+ return [3 /*break*/, 12];
149
+ case 11:
150
+ try {
151
+ if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
152
+ }
153
+ finally { if (e_2) throw e_2.error; }
154
+ return [7 /*endfinally*/];
155
+ case 12: return [2 /*return*/];
156
+ }
157
+ });
158
+ }); };
159
+ return [4 /*yield*/, updateProject(this.project)];
160
+ case 1:
161
+ _a.sent();
162
+ index_1.Helpers.info('Done');
163
+ this._exit();
164
+ return [2 /*return*/];
165
+ }
166
+ });
167
+ });
168
+ };
66
169
  BaseCommandLine.prototype.up = function () {
67
170
  return tslib_1.__awaiter(this, void 0, void 0, function () {
68
171
  return tslib_1.__generator(this, function (_a) {
@@ -114,7 +217,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
114
217
  .results), false), 'location').reverse();
115
218
  index_1.Helpers.taskDone("found ".concat(results.length, " projects..."));
116
219
  openInEditor = function (proj) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
117
- var editor, embededProject, porjToOpen, locaitonFolderToOpen, error_1;
220
+ var editor, embededProject, porjToOpen, locaitonFolderToOpen, error_2;
118
221
  return tslib_1.__generator(this, function (_a) {
119
222
  switch (_a.label) {
120
223
  case 0:
@@ -135,7 +238,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
135
238
  _a.sent();
136
239
  return [3 /*break*/, 5];
137
240
  case 4:
138
- error_1 = _a.sent();
241
+ error_2 = _a.sent();
139
242
  return [3 /*break*/, 5];
140
243
  case 5:
141
244
  index_1.Helpers.run("".concat(editor, " ").concat(locaitonFolderToOpen)).sync();
@@ -190,7 +293,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
190
293
  return tslib_1.__generator(this, function (_a) {
191
294
  switch (_a.label) {
192
295
  case 0:
193
- this.prevennCwdIsNotProject();
296
+ this.preventCwdIsNotProject();
194
297
  return [4 /*yield*/, this.project.pullProcess()];
195
298
  case 1:
196
299
  _a.sent();
@@ -218,7 +321,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
218
321
  switch (_f.label) {
219
322
  case 0:
220
323
  // Helpers.clearConsole();
221
- this.prevennCwdIsNotProject();
324
+ this.preventCwdIsNotProject();
222
325
  parent = this.project.parent;
223
326
  branchFromLinkedProjectConfig = (_b = (_a = parent === null || parent === void 0 ? void 0 : parent.linkedProjects) === null || _a === void 0 ? void 0 : _a.find(function (l) {
224
327
  return ((0, tnp_core_2.crossPlatformPath)([parent.location, l.relativeClonePath]) ===
@@ -284,7 +387,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
284
387
  //#region commands / soft
285
388
  BaseCommandLine.prototype.soft = function () {
286
389
  // TODO when aciton commit
287
- this.prevennCwdIsNotProject();
390
+ this.preventCwdIsNotProject();
288
391
  this.project.git.resetSoftHEAD(1);
289
392
  this._exit();
290
393
  };
@@ -292,11 +395,11 @@ var BaseCommandLine = /** @class */ (function (_super) {
292
395
  //#region commands / rebase
293
396
  BaseCommandLine.prototype.rebase = function () {
294
397
  return tslib_1.__awaiter(this, void 0, void 0, function () {
295
- var currentBranch, safeReset, rebaseBranch, branches, error_2;
398
+ var currentBranch, safeReset, rebaseBranch, branches, error_3;
296
399
  return tslib_1.__generator(this, function (_a) {
297
400
  switch (_a.label) {
298
401
  case 0:
299
- this.prevennCwdIsNotProject();
402
+ this.preventCwdIsNotProject();
300
403
  currentBranch = this.project.git.currentBranchName;
301
404
  safeReset = 10;
302
405
  rebaseBranch = this.firstArg || this.project.getDefaultDevelopmentBranch();
@@ -321,7 +424,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
321
424
  index_1.Helpers.info('REBASE DONE');
322
425
  return [3 /*break*/, 7];
323
426
  case 5:
324
- error_2 = _a.sent();
427
+ error_3 = _a.sent();
325
428
  return [4 /*yield*/, this.project.init()];
326
429
  case 6:
327
430
  _a.sent();
@@ -340,7 +443,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
340
443
  * stash only staged files
341
444
  */
342
445
  BaseCommandLine.prototype.stash = function () {
343
- this.prevennCwdIsNotProject();
446
+ this.preventCwdIsNotProject();
344
447
  this.project.git.stash({ onlyStaged: true });
345
448
  this._exit();
346
449
  };
@@ -350,7 +453,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
350
453
  * stash all files
351
454
  */
352
455
  BaseCommandLine.prototype.stashAll = function () {
353
- this.prevennCwdIsNotProject();
456
+ this.preventCwdIsNotProject();
354
457
  this.project.git.stageAllFiles();
355
458
  this.project.git.stash({ onlyStaged: false });
356
459
  this._exit();
@@ -365,7 +468,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
365
468
  return tslib_1.__generator(this, function (_a) {
366
469
  switch (_a.label) {
367
470
  case 0:
368
- this.prevennCwdIsNotProject();
471
+ this.preventCwdIsNotProject();
369
472
  return [4 /*yield*/, this.pushAll(true)];
370
473
  case 1:
371
474
  _a.sent();
@@ -374,6 +477,30 @@ var BaseCommandLine = /** @class */ (function (_super) {
374
477
  });
375
478
  });
376
479
  };
480
+ BaseCommandLine.prototype.pAllf = function () {
481
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
482
+ return tslib_1.__generator(this, function (_a) {
483
+ switch (_a.label) {
484
+ case 0: return [4 /*yield*/, this.pushAllForce()];
485
+ case 1:
486
+ _a.sent();
487
+ return [2 /*return*/];
488
+ }
489
+ });
490
+ });
491
+ };
492
+ BaseCommandLine.prototype.pAll = function () {
493
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
494
+ return tslib_1.__generator(this, function (_a) {
495
+ switch (_a.label) {
496
+ case 0: return [4 /*yield*/, this.pushAll()];
497
+ case 1:
498
+ _a.sent();
499
+ return [2 /*return*/];
500
+ }
501
+ });
502
+ });
503
+ };
377
504
  /**
378
505
  * push to all origins
379
506
  */
@@ -384,9 +511,9 @@ var BaseCommandLine = /** @class */ (function (_super) {
384
511
  return tslib_1.__generator(this, function (_b) {
385
512
  switch (_b.label) {
386
513
  case 0:
387
- this.prevennCwdIsNotProject();
514
+ this.preventCwdIsNotProject();
388
515
  remotes = this.project.git.allOrigins;
389
- index_1.Helpers.info("\n Remotes for repo:\n ".concat(remotes.map(function (r, i) { return "".concat(i + 1, ". ").concat(r.origin, " ").concat(r.url); }).join('\n'), "\n\n"));
516
+ index_1.Helpers.info("\n\n Remotes for repo:\n\n".concat(remotes.map(function (r, i) { return "".concat(i + 1, ". ").concat(r.origin, " ").concat(r.url); }).join('\n'), "\n\n"));
390
517
  index = 0;
391
518
  _b.label = 1;
392
519
  case 1:
@@ -446,7 +573,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
446
573
  return tslib_1.__generator(this, function (_a) {
447
574
  switch (_a.label) {
448
575
  case 0:
449
- this.prevennCwdIsNotProject();
576
+ this.preventCwdIsNotProject();
450
577
  return [4 /*yield*/, this.project.git.meltActionCommits(true)];
451
578
  case 1:
452
579
  _a.sent();
@@ -473,7 +600,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
473
600
  return tslib_1.__generator(this, function (_a) {
474
601
  switch (_a.label) {
475
602
  case 0:
476
- this.prevennCwdIsNotProject();
603
+ this.preventCwdIsNotProject();
477
604
  return [4 /*yield*/, this.project.pushProcess(tslib_1.__assign(tslib_1.__assign({}, options), { forcePushNoQuestion: options.force, args: this.args, exitCallBack: function () {
478
605
  _this._exit();
479
606
  } }))];
@@ -495,7 +622,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
495
622
  return tslib_1.__generator(this, function (_a) {
496
623
  switch (_a.label) {
497
624
  case 0:
498
- this.prevennCwdIsNotProject();
625
+ this.preventCwdIsNotProject();
499
626
  return [4 /*yield*/, this.meltUpdateCommits(true)];
500
627
  case 1:
501
628
  _a.sent();
@@ -790,7 +917,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
790
917
  //#endregion
791
918
  //#region commands / set origin
792
919
  BaseCommandLine.prototype.SET_ORIGIN = function () {
793
- this.prevennCwdIsNotProject();
920
+ this.preventCwdIsNotProject();
794
921
  var newOriginNameOrUrl = this.firstArg;
795
922
  var proj = this.project;
796
923
  if (proj && proj.git.isInsideGitRepo) {
@@ -806,7 +933,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
806
933
  //#endregion
807
934
  //#region commands / rename origin
808
935
  BaseCommandLine.prototype.RENAME_ORIGIN = function () {
809
- this.prevennCwdIsNotProject();
936
+ this.preventCwdIsNotProject();
810
937
  var newOriginNameOrUrl = this.firstArg;
811
938
  var proj = this.project;
812
939
  if (proj && proj.git.isInsideGitRepo) {
@@ -820,14 +947,14 @@ var BaseCommandLine = /** @class */ (function (_super) {
820
947
  //#endregion
821
948
  //#region commands / last hash tag
822
949
  BaseCommandLine.prototype.LAST_TAG_HASH = function () {
823
- this.prevennCwdIsNotProject();
950
+ this.preventCwdIsNotProject();
824
951
  index_1.Helpers.info(this.project.git.lastTagHash());
825
952
  this._exit();
826
953
  };
827
954
  //#endregion
828
955
  //#region commands / last tag
829
956
  BaseCommandLine.prototype.LAST_TAG = function () {
830
- this.prevennCwdIsNotProject();
957
+ this.preventCwdIsNotProject();
831
958
  var proj = this.project;
832
959
  index_1.Helpers.info("\n\n last tag: ".concat(proj.git.lastTagVersionName, "\n last tag hash: ").concat(proj.git.lastTagHash(), "\n\n"));
833
960
  this._exit();
@@ -848,7 +975,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
848
975
  return tslib_1.__generator(this, function (_a) {
849
976
  switch (_a.label) {
850
977
  case 0:
851
- this.prevennCwdIsNotProject();
978
+ this.preventCwdIsNotProject();
852
979
  return [4 /*yield*/, this.project.lint()];
853
980
  case 1:
854
981
  _a.sent();
@@ -865,7 +992,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
865
992
  BaseCommandLine.prototype.version = function () {
866
993
  return tslib_1.__awaiter(this, void 0, void 0, function () {
867
994
  return tslib_1.__generator(this, function (_a) {
868
- this.prevennCwdIsNotProject();
995
+ this.preventCwdIsNotProject();
869
996
  console.log('Current project verison: ' + this.project.version);
870
997
  this._exit();
871
998
  return [2 /*return*/];
@@ -882,7 +1009,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
882
1009
  return tslib_1.__generator(this, function (_a) {
883
1010
  switch (_a.label) {
884
1011
  case 0:
885
- this.prevennCwdIsNotProject();
1012
+ this.preventCwdIsNotProject();
886
1013
  return [4 /*yield*/, this.project.init()];
887
1014
  case 1:
888
1015
  _a.sent();
@@ -902,7 +1029,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
902
1029
  return tslib_1.__generator(this, function (_a) {
903
1030
  switch (_a.label) {
904
1031
  case 0:
905
- this.prevennCwdIsNotProject();
1032
+ this.preventCwdIsNotProject();
906
1033
  return [4 /*yield*/, this.project.struct()];
907
1034
  case 1:
908
1035
  _a.sent();
@@ -922,7 +1049,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
922
1049
  return tslib_1.__generator(this, function (_a) {
923
1050
  switch (_a.label) {
924
1051
  case 0:
925
- this.prevennCwdIsNotProject();
1052
+ this.preventCwdIsNotProject();
926
1053
  index_1.Helpers.clearConsole();
927
1054
  return [4 /*yield*/, this.project.info()];
928
1055
  case 1:
@@ -939,7 +1066,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
939
1066
  //#endregion
940
1067
  //#region commands / info
941
1068
  BaseCommandLine.prototype.modified = function () {
942
- this.prevennCwdIsNotProject();
1069
+ this.preventCwdIsNotProject();
943
1070
  var proj = this.project;
944
1071
  var libs = proj.children.filter(function (child) {
945
1072
  process.stdout.write('.');
@@ -996,22 +1123,23 @@ var BaseCommandLine = /** @class */ (function (_super) {
996
1123
  //#endregion
997
1124
  //#region commands / remotes
998
1125
  BaseCommandLine.prototype.REMOTES = function () {
999
- this.prevennCwdIsNotProject();
1000
- var folders = index_1.Helpers.foldersFrom(this.project.location);
1001
- folders
1002
- .filter(function (c) { return !tnp_core_1.path.basename(c).startsWith('.'); })
1003
- .forEach(function (cwd) {
1004
- index_1.Helpers.run("git config--get remote.origin.url", { cwd: cwd }).sync();
1005
- });
1126
+ console.log(index_1.Helpers.git.allOrigins(this.cwd));
1006
1127
  this._exit();
1007
1128
  };
1129
+ BaseCommandLine.prototype.origins = function () {
1130
+ this.REMOTES();
1131
+ };
1008
1132
  //#endregion
1133
+ BaseCommandLine.prototype.countCommits = function () {
1134
+ console.log(index_1.Helpers.git.countCommits(this.cwd));
1135
+ this._exit();
1136
+ };
1009
1137
  BaseCommandLine.prototype.isTerminalSupported = function () {
1010
1138
  console.log("Terminal is supported: ".concat(index_1.Helpers.isSupportedFiredevTerminal));
1011
1139
  this._exit();
1012
1140
  };
1013
1141
  BaseCommandLine.prototype.PROJ_EXT = function () {
1014
- this.prevennCwdIsNotProject();
1142
+ this.preventCwdIsNotProject();
1015
1143
  var p = this.project.pathFor('.vscode/extensions.json');
1016
1144
  var extensions = index_1.Helpers.readJson(p, { recommendations: [] }, true);
1017
1145
  for (var index = 0; index < extensions.recommendations.length; index++) {
@@ -1028,7 +1156,7 @@ var BaseCommandLine = /** @class */ (function (_super) {
1028
1156
  this._exit();
1029
1157
  };
1030
1158
  BaseCommandLine.prototype.projdb = function () {
1031
- this.prevennCwdIsNotProject();
1159
+ this.preventCwdIsNotProject();
1032
1160
  index_1.Helpers.info("Projects db location:\n ".concat(this.project.projectsDbLocation, "\n\n opening in vscode...\n\n "));
1033
1161
  index_1.Helpers.run("code ".concat(this.project.projectsDbLocation)).sync();
1034
1162
  this._exit();