type-crafter 0.11.2 → 0.12.0
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 +45 -2
- package/dist/index.js +9501 -7856
- package/dist/utils/logger.d.ts +124 -0
- package/package.json +20 -23
package/dist/utils/logger.d.ts
CHANGED
|
@@ -1,4 +1,128 @@
|
|
|
1
|
+
declare function colorize(text: string, ...codes: string[]): string;
|
|
2
|
+
type Spinner = {
|
|
3
|
+
start: () => void;
|
|
4
|
+
stop: () => void;
|
|
5
|
+
update: (message: string) => void;
|
|
6
|
+
success: (message?: string) => void;
|
|
7
|
+
fail: (message?: string) => void;
|
|
8
|
+
warn: (message?: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function createSpinner(message: string): Spinner;
|
|
11
|
+
export declare function progressBar(current: number, total: number, width?: number): string;
|
|
1
12
|
export declare function logError(header: string, message?: string | null): void;
|
|
2
13
|
export declare function logWarning(header: string, message: string): void;
|
|
3
14
|
export declare function logSuccess(header: string, message: string): void;
|
|
15
|
+
export declare function logInfo(message: string): void;
|
|
16
|
+
export declare function logDebug(message: string): void;
|
|
17
|
+
export declare function logStep(step: number, total: number, message: string): void;
|
|
18
|
+
export declare function logSection(title: string): void;
|
|
19
|
+
export declare function logSectionEnd(): void;
|
|
20
|
+
export declare function logDivider(char?: string, width?: number): void;
|
|
21
|
+
export declare function logKeyValue(key: string, value: string): void;
|
|
22
|
+
export declare function logList(items: string[], bullet?: string): void;
|
|
4
23
|
export declare function greeting(): void;
|
|
24
|
+
export declare function greetingCompact(): void;
|
|
25
|
+
export declare function logFileGenerated(filePath: string): void;
|
|
26
|
+
export declare function logCommand(command: string): void;
|
|
27
|
+
export declare function logTip(message: string): void;
|
|
28
|
+
export declare function logBox(content: string[], title?: string): void;
|
|
29
|
+
export declare function logSuccessBox(content: string[], title?: string): void;
|
|
30
|
+
export declare function logErrorBox(content: string[], title?: string): void;
|
|
31
|
+
export declare const colors: {
|
|
32
|
+
colorize: typeof colorize;
|
|
33
|
+
gradients: {
|
|
34
|
+
brand: (text: string) => string;
|
|
35
|
+
sunset: (text: string) => string;
|
|
36
|
+
ocean: (text: string) => string;
|
|
37
|
+
forest: (text: string) => string;
|
|
38
|
+
fire: (text: string) => string;
|
|
39
|
+
};
|
|
40
|
+
BRAND: {
|
|
41
|
+
primary: string;
|
|
42
|
+
secondary: string;
|
|
43
|
+
accent: string;
|
|
44
|
+
success: string;
|
|
45
|
+
warning: string;
|
|
46
|
+
error: string;
|
|
47
|
+
info: string;
|
|
48
|
+
muted: string;
|
|
49
|
+
};
|
|
50
|
+
BRAND_BG: {
|
|
51
|
+
primary: string;
|
|
52
|
+
secondary: string;
|
|
53
|
+
accent: string;
|
|
54
|
+
success: string;
|
|
55
|
+
warning: string;
|
|
56
|
+
error: string;
|
|
57
|
+
info: string;
|
|
58
|
+
muted: string;
|
|
59
|
+
};
|
|
60
|
+
FG: {
|
|
61
|
+
black: string;
|
|
62
|
+
red: string;
|
|
63
|
+
green: string;
|
|
64
|
+
yellow: string;
|
|
65
|
+
blue: string;
|
|
66
|
+
magenta: string;
|
|
67
|
+
cyan: string;
|
|
68
|
+
white: string;
|
|
69
|
+
gray: string;
|
|
70
|
+
brightRed: string;
|
|
71
|
+
brightGreen: string;
|
|
72
|
+
brightYellow: string;
|
|
73
|
+
brightBlue: string;
|
|
74
|
+
brightMagenta: string;
|
|
75
|
+
brightCyan: string;
|
|
76
|
+
brightWhite: string;
|
|
77
|
+
};
|
|
78
|
+
BG: {
|
|
79
|
+
black: string;
|
|
80
|
+
red: string;
|
|
81
|
+
green: string;
|
|
82
|
+
yellow: string;
|
|
83
|
+
blue: string;
|
|
84
|
+
magenta: string;
|
|
85
|
+
cyan: string;
|
|
86
|
+
white: string;
|
|
87
|
+
brightBlack: string;
|
|
88
|
+
brightRed: string;
|
|
89
|
+
brightGreen: string;
|
|
90
|
+
brightYellow: string;
|
|
91
|
+
brightBlue: string;
|
|
92
|
+
brightMagenta: string;
|
|
93
|
+
brightCyan: string;
|
|
94
|
+
brightWhite: string;
|
|
95
|
+
};
|
|
96
|
+
BOLD: string;
|
|
97
|
+
DIM: string;
|
|
98
|
+
ITALIC: string;
|
|
99
|
+
UNDERLINE: string;
|
|
100
|
+
RESET: string;
|
|
101
|
+
};
|
|
102
|
+
export declare const symbols: {
|
|
103
|
+
success: string;
|
|
104
|
+
error: string;
|
|
105
|
+
warning: string;
|
|
106
|
+
info: string;
|
|
107
|
+
debug: string;
|
|
108
|
+
pointer: string;
|
|
109
|
+
arrowRight: string;
|
|
110
|
+
arrowDown: string;
|
|
111
|
+
bullet: string;
|
|
112
|
+
ellipsis: string;
|
|
113
|
+
topLeft: string;
|
|
114
|
+
topRight: string;
|
|
115
|
+
bottomLeft: string;
|
|
116
|
+
bottomRight: string;
|
|
117
|
+
horizontal: string;
|
|
118
|
+
vertical: string;
|
|
119
|
+
cross: string;
|
|
120
|
+
star: string;
|
|
121
|
+
sparkles: string;
|
|
122
|
+
rocket: string;
|
|
123
|
+
hammer: string;
|
|
124
|
+
package: string;
|
|
125
|
+
check: string;
|
|
126
|
+
lightning: string;
|
|
127
|
+
};
|
|
128
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "type-crafter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "A tool to generate types from a yaml schema for any language",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"dev": "tsc --watch",
|
|
18
18
|
"format:all": "npx prettier --write .",
|
|
19
|
-
"lint:all": "eslint
|
|
19
|
+
"lint:all": "eslint src",
|
|
20
20
|
"clean:output": "rm -rf dist",
|
|
21
21
|
"build": "npm run clean:output && rollup --config rollup.config.js"
|
|
22
22
|
},
|
|
@@ -45,28 +45,25 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/sinha-sahil/type-crafter#readme",
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@rollup/plugin-commonjs": "^
|
|
49
|
-
"@rollup/plugin-node-resolve": "^
|
|
50
|
-
"@rollup/plugin-replace": "^
|
|
51
|
-
"@rollup/plugin-typescript": "^
|
|
52
|
-
"@types/node": "^
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
54
|
-
"@typescript-eslint/parser": "^
|
|
55
|
-
"commander": "^
|
|
56
|
-
"eslint": "^
|
|
57
|
-
"eslint-config-
|
|
58
|
-
"eslint-config-
|
|
59
|
-
"eslint-plugin-import": "^2.25.2",
|
|
60
|
-
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
|
|
61
|
-
"eslint-plugin-promise": "^6.0.0",
|
|
48
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
49
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
50
|
+
"@rollup/plugin-replace": "^6.0.3",
|
|
51
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
52
|
+
"@types/node": "^25.2.0",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
54
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
55
|
+
"commander": "^14.0.3",
|
|
56
|
+
"eslint": "^9.39.2",
|
|
57
|
+
"eslint-config-love": "^149.0.0",
|
|
58
|
+
"eslint-config-prettier": "^10.1.8",
|
|
62
59
|
"handlebars": "^4.7.8",
|
|
63
|
-
"husky": "^
|
|
64
|
-
"prettier": "^3.
|
|
65
|
-
"rollup": "^4.
|
|
60
|
+
"husky": "^9.1.7",
|
|
61
|
+
"prettier": "^3.8.1",
|
|
62
|
+
"rollup": "^4.57.1",
|
|
66
63
|
"rollup-plugin-copy": "^3.5.0",
|
|
67
|
-
"tslib": "^2.
|
|
68
|
-
"type-decoder": "^2.0
|
|
69
|
-
"typescript": "^5.
|
|
70
|
-
"yaml": "^2.
|
|
64
|
+
"tslib": "^2.8.1",
|
|
65
|
+
"type-decoder": "^2.2.0",
|
|
66
|
+
"typescript": "^5.9.3",
|
|
67
|
+
"yaml": "^2.8.2"
|
|
71
68
|
}
|
|
72
69
|
}
|