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.
- package/README.md +20 -20
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/README.md +24 -24
- package/browser/esm2022/lib/core-cli.mjs +21 -0
- package/browser/esm2022/lib/core-imports.mjs +3 -3
- package/browser/esm2022/lib/core-models.mjs +1 -1
- package/browser/esm2022/lib/framework-name.mjs +2 -2
- package/browser/esm2022/lib/helpers-messages.mjs +5 -5
- package/browser/esm2022/lib/helpers.mjs +13 -6
- package/browser/esm2022/lib/index.mjs +3 -1
- package/browser/esm2022/lib/node-path-mock.mjs +2 -2
- package/browser/esm2022/lib/required.mjs +72 -0
- package/browser/esm2022/lib/utils.mjs +9 -2
- package/browser/fesm2022/tnp-core.mjs +122 -16
- package/browser/fesm2022/tnp-core.mjs.map +1 -1
- package/browser/lib/core-cli.d.ts +4 -0
- package/browser/lib/core-models.d.ts +24 -4
- package/browser/lib/framework-name.d.ts +2 -2
- package/browser/lib/helpers-messages.d.ts +4 -4
- package/browser/lib/helpers.d.ts +4 -3
- package/browser/lib/index.d.ts +2 -0
- package/browser/lib/required.d.ts +6 -0
- package/browser/lib/utils.d.ts +49 -0
- package/cli.backend.js +2 -2
- package/client/README.md +24 -24
- package/client/esm2022/lib/core-cli.mjs +21 -0
- package/client/esm2022/lib/core-imports.mjs +3 -3
- package/client/esm2022/lib/core-models.mjs +1 -1
- package/client/esm2022/lib/framework-name.mjs +2 -2
- package/client/esm2022/lib/helpers-messages.mjs +5 -5
- package/client/esm2022/lib/helpers.mjs +13 -6
- package/client/esm2022/lib/index.mjs +3 -1
- package/client/esm2022/lib/node-path-mock.mjs +2 -2
- package/client/esm2022/lib/required.mjs +72 -0
- package/client/esm2022/lib/utils.mjs +9 -2
- package/client/fesm2022/tnp-core.mjs +122 -16
- package/client/fesm2022/tnp-core.mjs.map +1 -1
- package/client/lib/core-cli.d.ts +4 -0
- package/client/lib/core-models.d.ts +24 -4
- package/client/lib/framework-name.d.ts +2 -2
- package/client/lib/helpers-messages.d.ts +4 -4
- package/client/lib/helpers.d.ts +4 -3
- package/client/lib/index.d.ts +2 -0
- package/client/lib/required.d.ts +6 -0
- package/client/lib/utils.d.ts +49 -0
- package/lib/command-exists.d.ts +2 -0
- package/lib/command-exists.js +116 -0
- package/lib/command-exists.js.map +1 -0
- package/lib/core-cli.d.ts +11 -0
- package/lib/core-cli.js +124 -0
- package/lib/core-cli.js.map +1 -0
- package/lib/core-imports.js +3 -3
- package/lib/core-imports.js.map +1 -1
- package/lib/core-models.d.ts +24 -4
- package/lib/core-models.js.map +1 -1
- package/lib/framework-name.d.ts +2 -2
- package/lib/framework-name.js +1 -1
- package/lib/framework-name.js.map +1 -1
- package/lib/helpers-messages.d.ts +4 -4
- package/lib/helpers-messages.js +8 -8
- package/lib/helpers-messages.js.map +1 -1
- package/lib/helpers.d.ts +4 -3
- package/lib/helpers.js +39 -35
- package/lib/helpers.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/node-chalk-mock.js +2 -2
- package/lib/node-path-mock.js +2 -2
- package/lib/required.d.ts +44 -0
- package/lib/required.js +76 -0
- package/lib/required.js.map +1 -0
- package/lib/utils.d.ts +49 -0
- package/lib/utils.js +14 -1
- package/lib/utils.js.map +1 -1
- package/package.json +3 -3
- package/src.d.ts +1 -1
- package/{firedev.jsonc → taon.jsonc} +65 -65
- package/tmp-environment.json +37 -40
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/core-cli.mjs +21 -0
- package/websql/esm2022/lib/core-imports.mjs +3 -3
- package/websql/esm2022/lib/core-models.mjs +1 -1
- package/websql/esm2022/lib/framework-name.mjs +2 -2
- package/websql/esm2022/lib/helpers-messages.mjs +5 -5
- package/websql/esm2022/lib/helpers.mjs +13 -6
- package/websql/esm2022/lib/index.mjs +3 -1
- package/websql/esm2022/lib/node-path-mock.mjs +2 -2
- package/websql/esm2022/lib/required.mjs +72 -0
- package/websql/esm2022/lib/utils.mjs +9 -2
- package/websql/fesm2022/tnp-core.mjs +122 -16
- package/websql/fesm2022/tnp-core.mjs.map +1 -1
- package/websql/lib/core-cli.d.ts +4 -0
- package/websql/lib/core-models.d.ts +24 -4
- package/websql/lib/framework-name.d.ts +2 -2
- package/websql/lib/helpers-messages.d.ts +4 -4
- package/websql/lib/helpers.d.ts +4 -3
- package/websql/lib/index.d.ts +2 -0
- package/websql/lib/required.d.ts +6 -0
- package/websql/lib/utils.d.ts +49 -0
@@ -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
|
-
|
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
|
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: "
|
3
|
-
export declare const frameworkName: "
|
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
|
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
|
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
|
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
|
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;
|
package/websql/lib/helpers.d.ts
CHANGED
@@ -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
|
57
|
+
* Check if the current shell is supported by Taon framework.
|
58
58
|
*/
|
59
|
-
get
|
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
|
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
|
*/
|
package/websql/lib/index.d.ts
CHANGED
@@ -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;
|
package/websql/lib/utils.d.ts
CHANGED
@@ -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
|
}
|