tnp-core 18.0.28 → 18.0.33

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 (100) 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-cli.mjs +21 -0
  5. package/browser/esm2022/lib/core-imports.mjs +3 -3
  6. package/browser/esm2022/lib/core-models.mjs +1 -1
  7. package/browser/esm2022/lib/framework-name.mjs +2 -2
  8. package/browser/esm2022/lib/helpers-messages.mjs +5 -5
  9. package/browser/esm2022/lib/helpers.mjs +13 -6
  10. package/browser/esm2022/lib/index.mjs +3 -1
  11. package/browser/esm2022/lib/node-path-mock.mjs +2 -2
  12. package/browser/esm2022/lib/required.mjs +72 -0
  13. package/browser/esm2022/lib/utils.mjs +9 -2
  14. package/browser/fesm2022/tnp-core.mjs +122 -16
  15. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  16. package/browser/lib/core-cli.d.ts +4 -0
  17. package/browser/lib/core-models.d.ts +24 -4
  18. package/browser/lib/framework-name.d.ts +2 -2
  19. package/browser/lib/helpers-messages.d.ts +4 -4
  20. package/browser/lib/helpers.d.ts +4 -3
  21. package/browser/lib/index.d.ts +2 -0
  22. package/browser/lib/required.d.ts +6 -0
  23. package/browser/lib/utils.d.ts +49 -0
  24. package/cli.backend.js +2 -2
  25. package/client/README.md +24 -24
  26. package/client/esm2022/lib/core-cli.mjs +21 -0
  27. package/client/esm2022/lib/core-imports.mjs +3 -3
  28. package/client/esm2022/lib/core-models.mjs +1 -1
  29. package/client/esm2022/lib/framework-name.mjs +2 -2
  30. package/client/esm2022/lib/helpers-messages.mjs +5 -5
  31. package/client/esm2022/lib/helpers.mjs +13 -6
  32. package/client/esm2022/lib/index.mjs +3 -1
  33. package/client/esm2022/lib/node-path-mock.mjs +2 -2
  34. package/client/esm2022/lib/required.mjs +72 -0
  35. package/client/esm2022/lib/utils.mjs +9 -2
  36. package/client/fesm2022/tnp-core.mjs +122 -16
  37. package/client/fesm2022/tnp-core.mjs.map +1 -1
  38. package/client/lib/core-cli.d.ts +4 -0
  39. package/client/lib/core-models.d.ts +24 -4
  40. package/client/lib/framework-name.d.ts +2 -2
  41. package/client/lib/helpers-messages.d.ts +4 -4
  42. package/client/lib/helpers.d.ts +4 -3
  43. package/client/lib/index.d.ts +2 -0
  44. package/client/lib/required.d.ts +6 -0
  45. package/client/lib/utils.d.ts +49 -0
  46. package/lib/command-exists.d.ts +2 -0
  47. package/lib/command-exists.js +116 -0
  48. package/lib/command-exists.js.map +1 -0
  49. package/lib/core-cli.d.ts +11 -0
  50. package/lib/core-cli.js +124 -0
  51. package/lib/core-cli.js.map +1 -0
  52. package/lib/core-imports.js +3 -3
  53. package/lib/core-imports.js.map +1 -1
  54. package/lib/core-models.d.ts +24 -4
  55. package/lib/core-models.js.map +1 -1
  56. package/lib/framework-name.d.ts +2 -2
  57. package/lib/framework-name.js +1 -1
  58. package/lib/framework-name.js.map +1 -1
  59. package/lib/helpers-messages.d.ts +4 -4
  60. package/lib/helpers-messages.js +8 -8
  61. package/lib/helpers-messages.js.map +1 -1
  62. package/lib/helpers.d.ts +4 -3
  63. package/lib/helpers.js +39 -35
  64. package/lib/helpers.js.map +1 -1
  65. package/lib/index.d.ts +2 -0
  66. package/lib/index.js +2 -0
  67. package/lib/index.js.map +1 -1
  68. package/lib/node-chalk-mock.js +2 -2
  69. package/lib/node-path-mock.js +2 -2
  70. package/lib/required.d.ts +44 -0
  71. package/lib/required.js +76 -0
  72. package/lib/required.js.map +1 -0
  73. package/lib/utils.d.ts +49 -0
  74. package/lib/utils.js +14 -1
  75. package/lib/utils.js.map +1 -1
  76. package/package.json +3 -3
  77. package/src.d.ts +1 -1
  78. package/{firedev.jsonc → taon.jsonc} +65 -65
  79. package/tmp-environment.json +37 -40
  80. package/websql/README.md +24 -24
  81. package/websql/esm2022/lib/core-cli.mjs +21 -0
  82. package/websql/esm2022/lib/core-imports.mjs +3 -3
  83. package/websql/esm2022/lib/core-models.mjs +1 -1
  84. package/websql/esm2022/lib/framework-name.mjs +2 -2
  85. package/websql/esm2022/lib/helpers-messages.mjs +5 -5
  86. package/websql/esm2022/lib/helpers.mjs +13 -6
  87. package/websql/esm2022/lib/index.mjs +3 -1
  88. package/websql/esm2022/lib/node-path-mock.mjs +2 -2
  89. package/websql/esm2022/lib/required.mjs +72 -0
  90. package/websql/esm2022/lib/utils.mjs +9 -2
  91. package/websql/fesm2022/tnp-core.mjs +122 -16
  92. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  93. package/websql/lib/core-cli.d.ts +4 -0
  94. package/websql/lib/core-models.d.ts +24 -4
  95. package/websql/lib/framework-name.d.ts +2 -2
  96. package/websql/lib/helpers-messages.d.ts +4 -4
  97. package/websql/lib/helpers.d.ts +4 -3
  98. package/websql/lib/index.d.ts +2 -0
  99. package/websql/lib/required.d.ts +6 -0
  100. package/websql/lib/utils.d.ts +49 -0
@@ -0,0 +1,4 @@
1
+ // @ts-nocheck
2
+ export declare class CLI {
3
+ static chalk: import("chalk").Chalk;
4
+ }
@@ -7,16 +7,32 @@ export declare namespace CoreModels {
7
7
  };
8
8
  export type NpmInstallOptions = {
9
9
  pkg?: CoreModels.Package;
10
+ /**
11
+ * false by default
12
+ */
10
13
  silent?: boolean;
11
- remove?: boolean;
14
+ /**
15
+ * false by default
16
+ */
12
17
  useYarn?: boolean;
18
+ /**
19
+ * false by default
20
+ */
13
21
  force?: boolean;
22
+ /**
23
+ * Reason for installing package(s)
24
+ */
14
25
  reason?: string;
26
+ /**
27
+ * true by default
28
+ */
15
29
  removeYarnOrPackageJsonLock?: boolean;
30
+ /**
31
+ * false by default
32
+ */
16
33
  generateYarnOrPackageJsonLock?: boolean;
17
- ignoreOptional?: boolean;
18
34
  };
19
- export type InstalationType = '-g' | '--save' | '--save-dev';
35
+ export type InstalationType = '-g' | '--save' | '--save-dev' | 'remove';
20
36
  export const InstalationTypeArr: string[];
21
37
  export type PackageJsonDependencyObj = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'resolutions';
22
38
  export const PackageJsonDependencyObjArr: PackageJsonDependencyObj[];
@@ -79,6 +95,10 @@ export declare namespace CoreModels {
79
95
  stdout?: string | string[];
80
96
  stderr?: string | string[];
81
97
  };
98
+ resolvePromiseMsgCallback?: {
99
+ stdout?: () => any;
100
+ stderr?: () => any;
101
+ };
82
102
  prefix?: string;
83
103
  detach?: boolean;
84
104
  /**
@@ -377,7 +397,7 @@ export declare namespace CoreModels {
377
397
  compilerOptions: CompilerOptions;
378
398
  angularCompilerOptions: AngularCompilerOptions;
379
399
  }
380
- export interface FiredevJson {
400
+ export interface TaonJson {
381
401
  type: CoreModels.LibType;
382
402
  version?: CoreModels.FrameworkVersion;
383
403
  smartContainerBuildTarget?: string;
@@ -1,3 +1,3 @@
1
1
  // @ts-nocheck
2
- export declare const frameworkNameBe: "firedev" | "tnp";
3
- export declare const frameworkName: "firedev" | "tnp";
2
+ export declare const frameworkNameBe: "taon" | "tnp";
3
+ export declare const frameworkName: "taon" | "tnp";
@@ -16,19 +16,19 @@ export declare class HelpersMessages extends HelpersIsomorphic {
16
16
  taskDone(details?: any | string, isLessImportant?: boolean): void;
17
17
  log(details: any, debugLevel?: number): void;
18
18
  /**
19
- * Logs not visible in normal use of firedev-cli
19
+ * Logs not visible in normal use of taon-cli
20
20
  */
21
21
  logSuccess(details: any | string): any;
22
22
  /**
23
- * Logs not visible in normal use of firedev-cli
23
+ * Logs not visible in normal use of taon-cli
24
24
  */
25
25
  logInfo(details: string, repeatable?: boolean): any;
26
26
  /**
27
- * Logs not visible in normal use of firedev-cli
27
+ * Logs not visible in normal use of taon-cli
28
28
  */
29
29
  logError(details: any, noExit?: boolean, noTrace?: boolean): any;
30
30
  /**
31
- * Logs not visible in normal use of firedev-cli
31
+ * Logs not visible in normal use of taon-cli
32
32
  */
33
33
  logWarn(details: string, trace?: boolean): any;
34
34
  warn(details: string, trace?: boolean): void;
@@ -54,9 +54,9 @@ export declare class HelpersCore extends HelpersMessages {
54
54
  remove(fileOrFolderPathOrPatter: string | string[], exactFolder?: boolean): any;
55
55
  get isRunningInGitBash(): boolean;
56
56
  /**
57
- * Check if the current shell is supported by Firedev framework.
57
+ * Check if the current shell is supported by Taon framework.
58
58
  */
59
- get isSupportedFiredevTerminal(): boolean;
59
+ get isSupportedTaonTerminal(): boolean;
60
60
  /**
61
61
  * check if function is class
62
62
  */
@@ -128,9 +128,10 @@ export declare class HelpersCore extends HelpersMessages {
128
128
  stderMsg?: string | string[];
129
129
  timeout?: number;
130
130
  stdoutOutputContainsCallback?: () => any;
131
+ outputLineReplace?: (outputLine: string) => string;
131
132
  }): Promise<void>;
132
133
  /**
133
- * @deprecated use unitOutput
134
+ * @deprecated use unitlOutput
134
135
  * start command as asynchronous nodej proces inside promise
135
136
  * and wait until output contains some string
136
137
  */
@@ -6,5 +6,7 @@ import { HelpersCore as Base } from './helpers';
6
6
  export * from './core-config';
7
7
  export * from './progress-data';
8
8
  export * from './utils';
9
+ export * from './core-cli';
10
+ export * from './required';
9
11
  export { HelpersCore as CoreHelpers, CommandOutputOptions } from './helpers';
10
12
  export declare let Helpers: Base;
@@ -0,0 +1,6 @@
1
+ // @ts-nocheck
2
+ export declare const requiredForDev: {
3
+ npm: any[];
4
+ niceTools: any[];
5
+ programs: any[];
6
+ };
@@ -79,5 +79,54 @@ export declare namespace Utils {
79
79
  */
80
80
  function numValue(pixelsCss: string | number): number;
81
81
  }
82
+ export namespace process {
83
+ interface ProcessStartOptions {
84
+ /**
85
+ * by default is process.cwd();
86
+ */
87
+ cwd?: string;
88
+ showCommand?: boolean;
89
+ /**
90
+ * Modify output line by line
91
+ */
92
+ outputLineReplace?: (outputLineStderOrStdout: string) => string;
93
+ resolvePromiseMsg?: {
94
+ /**
95
+ * unitil this string is in output of stdout
96
+ */
97
+ stdout?: string | string[];
98
+ /**
99
+ * unitil this string is in output of stderr
100
+ */
101
+ stderr?: string | string[];
102
+ /**
103
+ * by default only resolve when exit code is 0
104
+ */
105
+ resolveAfterAnyExitCode?: boolean;
106
+ };
107
+ /**
108
+ * Prefix messages output from child_prcess
109
+ */
110
+ prefix?: string;
111
+ /**
112
+ * Try command again after fail after n miliseconds
113
+ */
114
+ tryAgainWhenFailAfter?: number;
115
+ askToTryAgainOnError?: boolean;
116
+ exitOnErrorCallback?: (code: number) => void;
117
+ /**
118
+ * Use big buffer for big webpack logs
119
+ */
120
+ biggerBuffer?: boolean;
121
+ hideOutput?: {
122
+ stdout?: boolean;
123
+ stderr?: boolean;
124
+ };
125
+ }
126
+ function startAsync(command: string, options?: ProcessStartOptions & {
127
+ detach?: boolean;
128
+ }): Promise<void>;
129
+ function startSync(command: string, options?: ProcessStartOptions): void;
130
+ }
82
131
  export {};
83
132
  }