-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
115 lines (115 loc) · 2.73 KB
/
package.json
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
{
"name": "jsontomodel",
"publisher": "qinkuan",
"displayName": "JsonToModel",
"description": "JsonToModel,Support dart",
"version": "0.0.10",
"author": {
"name": "光明哨兵-格雷福斯"
},
"engines": {
"vscode": "^1.65.0"
},
"categories": [
"Other"
],
"icon": "assets/extension-icon.png",
"activationEvents": [
"*"
],
"main": "./scr/extension.js",
"contributes": {
"commands": [
{
"command": "extension.hump-named-file",
"title": "驼峰式重命名"
},
{
"command": "extension.json-to-model-file",
"title": "Json转Dart模型"
}
],
"keybindings": [
{
"command": "extension.hump-named-file",
"key": "ctrl+.",
"mac": "cmd+.",
"when": "editorTextFocus"
},
{
"command": "extension.json-to-model-file",
"key": "ctrl+f3",
"mac": "cmd+3",
"when": "editorTextFocus"
}
],
"menus": {
"editor/context": [
{
"when": "editorFocus",
"command": "extension.hump-named-file",
"group": "navigation"
},
{
"when": "editorFocus",
"command": "extension.json-to-model-file",
"group": "navigation"
}
],
"editor/title/context": []
},
"configuration": {
"title": "JSON转模型",
"properties": {
"JSONToModel.method-obj": {
"type": "object",
"default": {
"return": "int",
"name": "my_func",
"params": [
"String params",
"Map params2"
],
"imp": "int a = 1;\n int b = 2;\n\n return a + b;"
},
"description": "为每个模型添加一个方法。以json输入,方法名单词需下划线连接 \n例子:\n {\n \"return\": \"int\", 返回类型 \n \"name\": \"my_func\", 方法名 \n \"params\": [\n \"String params1\", 参数1 \n\"Map params2\", 参数2 \n],\n\"imp\":\"int a = 1; int b = 2; return a + b;\"\n}"
},
"JSONToModel.method-string": {
"type": "string",
"default": "",
"description": "为每个模型添加一个自定方法。以字符串输入"
},
"JSONToModel.safe": {
"type": "boolean",
"default": true,
"description": "添加安全取值方法"
}
}
}
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.65.0",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "14.x",
"eslint": "^8.9.0",
"glob": "^7.2.0",
"mocha": "^9.2.1",
"typescript": "^4.5.5",
"@vscode/test-electron": "^2.1.2"
},
"license": "SEE LICENSE IN LICENSE.txt",
"bugs": {
"url": "https://github.com/Gordon2780/Jsontomodel/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/Gordon2780/Jsontomodel"
},
"homepage": "https://github.com/Gordon2780/Jsontomodel#readme"
}