-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
150 lines (150 loc) · 4.73 KB
/
package.json
File metadata and controls
150 lines (150 loc) · 4.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"name": "vscode-plugin-json2interface",
"displayName": "vscode-plugin-json2interface",
"description": "json to typescript interface",
"version": "0.0.2",
"publisher": "sjhleo",
"icon": "icon.png",
"keywords": [
"json",
"type",
"typescript",
"tool"
],
"engines": {
"vscode": "^1.38.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:json2Ts.fromSelection",
"onCommand:json2Ts.fromClipboard",
"onCommand:json2Ts.fromFile"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "json2Ts.fromSelection",
"title": "选择json字符串转换ts",
"category": "Transform JSON"
},
{
"command": "json2Ts.fromClipboard",
"title": "剪切板转换ts",
"category": "Transform JSON"
},
{
"command": "json2Ts.fromFile",
"title": "json文件转换成ts",
"category": "Transform JSON"
}
],
"keybindings": [
{
"command": "json2Ts.fromClipboard",
"key": "ctrl+alt+C"
},
{
"command": "json2Ts.fromSelection",
"key": "ctrl+alt+S"
},
{
"command": "json2Ts.fromFile",
"key": "ctrl+alt+F"
}
],
"menus": {
"editor/context": [
{
"when": "editorFocus",
"command": "json2Ts.fromSelection",
"group": "Transform JSON"
},
{
"when": "editorFocus",
"command": "json2Ts.fromClipboard",
"group": "Transform JSON"
},
{
"when": "editorFocus",
"command": "json2Ts.fromFile",
"group": "Transform JSON"
}
]
},
"configuration": {
"type": "object",
"title": "json2interface configuration",
"properties": {
"json2interface.prefix": {
"type": "string",
"default": "",
"description": "生成接口的默认前缀"
},
"json2interface.name": {
"type": "string",
"default": "RootName",
"description": "生成接口的默认名字"
},
"json2interface.humps": {
"type": "boolean",
"default": false,
"description": "是否将key使用humps进行驼峰处理,a_b => aB,设置后 disallowComments配置失效,转换的结果都不会带有注释"
},
"json2interface.addExport": {
"type": "boolean",
"default": true,
"description": "是否添加export"
},
"json2interface.disallowComments": {
"type": "boolean",
"default": true,
"description": "是否禁用注释"
},
"json2interface.singleLineJsDocComments": {
"type": "boolean",
"default": true,
"description": "单行注释"
}
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/sjhleo/vscode-plugin-json2class.git"
},
"author": "https://github.com/sjhleo",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"package": "npm run compile && vsce package",
"publish": "vsce publish"
},
"dependencies": {
"lodash": "4.17.21",
"copy-paste": "^1.3.0",
"humps": "^2.0.1",
"typeof-jsonc": "^1.1.10"
},
"devDependencies": {
"@types/lodash": "^4.14.155",
"@types/vscode": "^1.38.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"eslint": "^7.19.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0",
"@types/copy-paste": "^1.1.30"
}
}