-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
109 lines (109 loc) · 2.75 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
{
"name": "randvar",
"displayName": "randvar",
"description": "A convenient variable name generator plugin",
"version": "1.0.4",
"author": {
"name": "ElChiang",
"email": "[email protected]"
},
"publisher": "ElChiang",
"repository": {
"type": "git",
"url": "git+http://gitlab.alibaba-inc.com/junyu.junyujiang/randvar.git"
},
"license": "MIT",
"icon": "icon.png",
"engines": {
"vscode": "^1.48.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:randvar.start",
"onCommand:randvar.convertVariableName",
"onCommand:randvar.convertVariableNamePreferred",
"onCommand:randvar.setPreferredNamingRule",
"onCommand:randvar.setPreferredTranslator"
],
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "randvar.start",
"title": "Randvar: start"
},
{
"command": "randvar.convertVariableName",
"title": "Randvar: convert to variable name"
},
{
"command": "randvar.convertVariableNamePreferred",
"title": "Randvar: convert to variable name from your preferred config"
},
{
"command": "randvar.setPreferredNamingRule",
"title": "Randvar: set your preferred naming rule"
},
{
"command": "randvar.setPreferredTranslator",
"title": "Randvar: set your preferred translator"
}
],
"configuration": {
"title": "Randvar Variable Name Convertor",
"type": "object",
"properties": {
"randvar.preferredTranslator": {
"type": "string",
"enum": [
"Baidu",
"Google"
],
"description": "The preferred translation tools"
},
"randvar.preferredNamingRule": {
"type": "string",
"enum": [
"Camelcase",
"Snakecase"
],
"description": "The preferred naming rule of variable"
}
}
},
"keybindings": [
{
"key": "alt+shift+r",
"when": "editorTextFocus",
"command": "randvar.convertVariableNamePreferred"
}
]
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"package": "vsce package",
"publish": "vsce publish",
"test": "node ./test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.48.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.0",
"@types/node": "^14.0.27",
"eslint": "^7.6.0",
"glob": "^7.1.6",
"mocha": "^8.0.1",
"typescript": "^3.8.3",
"vscode-test": "^1.4.0"
},
"dependencies": {
"axios": "^0.20.0",
"camelcase": "^6.0.0",
"google-translate-open-api": "^1.3.4",
"humanize-string": "^2.1.0",
"snake-case": "^3.0.3"
}
}