tnp-core 18.0.46 → 18.0.47

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 (48) hide show
  1. package/README.md +20 -20
  2. package/assets/shared/shared_folder_info.txt +1 -1
  3. package/browser/README.md +24 -24
  4. package/browser/esm2022/lib/core-imports.mjs +1 -6
  5. package/browser/esm2022/lib/core-models.mjs +50 -1
  6. package/browser/esm2022/lib/helpers.mjs +13 -5
  7. package/browser/esm2022/lib/utils.mjs +70 -4
  8. package/browser/fesm2022/tnp-core.mjs +130 -8
  9. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  10. package/browser/lib/core-models.d.ts +65 -3
  11. package/browser/lib/utils.d.ts +29 -13
  12. package/cli.backend.js +2 -2
  13. package/client/README.md +24 -24
  14. package/client/esm2022/lib/core-imports.mjs +1 -6
  15. package/client/esm2022/lib/core-models.mjs +50 -1
  16. package/client/esm2022/lib/helpers.mjs +13 -5
  17. package/client/esm2022/lib/utils.mjs +70 -4
  18. package/client/fesm2022/tnp-core.mjs +130 -8
  19. package/client/fesm2022/tnp-core.mjs.map +1 -1
  20. package/client/lib/core-models.d.ts +65 -3
  21. package/client/lib/utils.d.ts +29 -13
  22. package/lib/core-cli.js +1 -1
  23. package/lib/core-cli.js.map +1 -1
  24. package/lib/core-imports.d.ts +1 -6
  25. package/lib/core-imports.js +1 -3
  26. package/lib/core-imports.js.map +1 -1
  27. package/lib/core-models.d.ts +65 -3
  28. package/lib/core-models.js +49 -0
  29. package/lib/core-models.js.map +1 -1
  30. package/lib/helpers.js +8 -7
  31. package/lib/helpers.js.map +1 -1
  32. package/lib/node-chalk-mock.js +2 -2
  33. package/lib/node-path-mock.js +2 -2
  34. package/lib/utils.d.ts +41 -13
  35. package/lib/utils.js +100 -20
  36. package/lib/utils.js.map +1 -1
  37. package/package.json +2 -4
  38. package/taon.jsonc +64 -65
  39. package/tmp-environment.json +30 -31
  40. package/websql/README.md +24 -24
  41. package/websql/esm2022/lib/core-imports.mjs +1 -6
  42. package/websql/esm2022/lib/core-models.mjs +50 -1
  43. package/websql/esm2022/lib/helpers.mjs +13 -5
  44. package/websql/esm2022/lib/utils.mjs +70 -4
  45. package/websql/fesm2022/tnp-core.mjs +130 -8
  46. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  47. package/websql/lib/core-models.d.ts +65 -3
  48. package/websql/lib/utils.d.ts +29 -13
@@ -36,9 +36,68 @@ export declare namespace CoreModels {
36
36
  export const InstalationTypeArr: string[];
37
37
  export type PackageJsonDependencyObj = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'resolutions';
38
38
  export const PackageJsonDependencyObjArr: PackageJsonDependencyObj[];
39
- export type LibraryType = 'angular' | 'typescript';
40
- export type ReleaseType = 'major' | 'minor' | 'patch';
41
- export type PreReleaseType = 'alpha' | 'beta' | 'rc' | 'next';
39
+ export type ReleaseProcessType = 'manual' | 'local' | 'cloud';
40
+ /**
41
+ * All possible release types for taon
42
+ * for MANUAL/CLOUD release
43
+ */
44
+ export type ReleaseArtifactTaon = 'angular-electron-app' | 'angular-frontend-webapp' | 'angular-ionic-app' | 'mkdocs-docs-webapp' | 'nodejs-backend-server' | 'npm-lib-pkg-and-cli-tool' | 'vscode-extension';
45
+ export const ReleaseArtifactTaonNames: Readonly<{
46
+ ANGULAR_ELECTRON_APP: ReleaseArtifactTaon;
47
+ /**
48
+ * Angular frontend webapp (pwa) inside docker
49
+ */
50
+ ANGULAR_FRONTEND_WEBAPP: ReleaseArtifactTaon;
51
+ /**
52
+ * Angular + Ionic
53
+ */
54
+ ANGULAR_IONIC_APP: ReleaseArtifactTaon;
55
+ /**
56
+ * MkDocs documentation webapp (pwa) inside docker
57
+ */
58
+ MKDOCS_DOCS_WEBAPP: ReleaseArtifactTaon;
59
+ /**
60
+ * Nodejs backend server inside docker
61
+ * (could be backend or frontend or microservice)
62
+ */
63
+ NODEJS_BACKEND_SERVER: ReleaseArtifactTaon;
64
+ /**
65
+ * Npm lib package and global cli tool
66
+ */
67
+ NPM_LIB_PKG_AND_CLI_TOOL: ReleaseArtifactTaon;
68
+ /**
69
+ * Visual Studio Code extension
70
+ */
71
+ VSCODE_EXTENSION: ReleaseArtifactTaon;
72
+ }>;
73
+ export const ReleaseArtifactTaonNamesArr: ReleaseArtifactTaon[];
74
+ /**
75
+ * All possible local release types for taon
76
+ * for LOCAL release
77
+ */
78
+ export type LocalReleaseArtifactTaon = 'docker-backend-frontend-app' | 'global-cli-tool' | 'vscode-extension';
79
+ /**
80
+ * Object with all possible local release types for taon
81
+ * inside LOCAL release
82
+ */
83
+ export const LocalReleaseArtifactTaonNames: Readonly<{
84
+ DOCKER_BACKEND_FRONTEND_APP: LocalReleaseArtifactTaon;
85
+ /**
86
+ * Global CLI tool
87
+ */
88
+ GLOBAL_CLI_TOOL: LocalReleaseArtifactTaon;
89
+ /**
90
+ * Visual Studio Code extension
91
+ */
92
+ VSCODE_EXTENSION: LocalReleaseArtifactTaon;
93
+ }>;
94
+ /**
95
+ * Array with all possible local release types for taon
96
+ * inside LOCAL release
97
+ */
98
+ export const LocalReleaseArtifactTaonNamesArr: LocalReleaseArtifactTaon[];
99
+ export type ReleaseVersionType = 'major' | 'minor' | 'patch';
100
+ export type PreReleaseVersionTag = 'alpha' | 'beta' | 'rc' | 'next';
42
101
  export const NpmSpecialVersions: string[];
43
102
  export type PROGRESS_DATA_TYPE = 'info' | 'error' | 'warning' | 'event';
44
103
  export type EnvironmentName = 'local' | 'static' | 'dev' | 'stage' | 'prod' | 'online' | 'test' | 'qa' | 'custom';
@@ -57,6 +116,9 @@ export declare namespace CoreModels {
57
116
  export type TsUsage = 'import' | 'export';
58
117
  export type BaseProjectType = 'typescript' | 'angular' | 'angular-lib' | 'unknow' | 'unknow-npm-project';
59
118
  export const BaseProjectTypeArr: string[];
119
+ /**
120
+ * @deprecated there will be only one lib type "isomorphic-lib"
121
+ */
60
122
  export type LibType = BaseProjectType | 'isomorphic-lib' | 'container' | 'docker' | 'vscode-ext' | 'chrome-ext' | 'unknow-npm-project';
61
123
  /**
62
124
  * @deprecated
@@ -12,7 +12,6 @@ export declare namespace Utils {
12
12
  export const fullDate: () => any;
13
13
  export const getFreePort: (options?: {
14
14
  startFrom?: number;
15
- howManyFreePortsAfterThatPort?: number;
16
15
  }) => Promise<number>;
17
16
  interface AttrJsoncProp {
18
17
  name: string;
@@ -230,11 +229,29 @@ export declare namespace UtilsMigrations {
230
229
  const isValidTimestamp: (value: any) => boolean;
231
230
  }
232
231
  export declare namespace UtilsTerminal {
232
+ type SelectActionChoice = {
233
+ [choice: string]: {
234
+ /**
235
+ * Title of the choice
236
+ */
237
+ name: string;
238
+ /**
239
+ * Action to execute
240
+ */
241
+ action?: () => any;
242
+ /**
243
+ * If choice is visible
244
+ * default: true
245
+ */
246
+ visible?: boolean;
247
+ };
248
+ };
233
249
  export const clearConsole: () => void;
234
250
  export const multiselect: <T = string>(options: {
235
251
  question: string;
236
252
  /**
237
253
  * If true, then only one choice can be selected
254
+ * @deprecated use select instead
238
255
  */
239
256
  onlyOneChoice?: boolean;
240
257
  choices: {
@@ -248,18 +265,17 @@ export declare namespace UtilsTerminal {
248
265
  autocomplete?: boolean;
249
266
  defaultSelected?: string[];
250
267
  }) => Promise<T[]>;
251
- type SelectActionChoice = {
252
- [choice: string]: {
253
- /**
254
- * Title of the choice
255
- */
256
- name: string;
257
- /**
258
- * Action to execute
259
- */
260
- action?: () => any;
261
- };
262
- };
268
+ /**
269
+ * Similar to select but executes action if provided
270
+ * @returns selected and executed value
271
+ */
272
+ export const multiselectActionAndExecute: <CHOICE extends SelectActionChoice = SelectActionChoice>(choices: CHOICE, options?: {
273
+ question?: string;
274
+ autocomplete?: boolean;
275
+ defaultSelected?: string;
276
+ hint?: string;
277
+ executeActionsOnDefault?: boolean;
278
+ }) => Promise<any>;
263
279
  /**
264
280
  * Similar to select but executes action if provided
265
281
  * @returns selected and executed value