-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
166 lines (166 loc) · 5.27 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"name": "project-profile-template",
"description": "快速创建特殊名称的模板文件,此外支持快速复制路径、压缩解压文件等。",
"displayName": "文件使用工具 - 新建特殊名称的文件模板",
"version": "0.1.0",
"publisher": "oneone",
"engines": {
"HBuilderX": "^2.7.0"
},
"categories": [
"Other"
],
"main": "./extension",
"activationEvents": [
"onCommand:pt.ProjectProfileTemplate",
"onCommand:pt.copyRelativePath",
"onCommand:pt.copyPath",
"onCommand:pt.compress",
"onCommand:pt.decompress",
"onCommand:pt.uglifyjsCompressed",
"onCommand:pt.unicodeToChinese",
"onCommand:pt.UrlDecode",
"onCommand:pt.UrlEncode"
],
"contributes": {
"commands": [
{
"command": "pt.ProjectProfileTemplate",
"title": "新建特定名称文件"
},
{
"command": "pt.copyPath",
"title": "复制路径"
},
{
"command": "pt.copyRelativePath",
"title": "复制相对路径"
},
{
"command": "pt.compress",
"title": "压缩为zip"
},
{
"command": "pt.decompress",
"title": "解压到当前目录"
},
{
"command": "pt.uglifyjsCompressed",
"title": "压缩js文件"
},
{
"command": "pt.unicodeToChinese",
"title": "unicode转中文"
},
{
"command": "pt.UrlDecode",
"title": "url解码"
},
{
"command": "pt.UrlEncode",
"title": "url编码"
}
],
"expressions": {
"decompress": "!explorerResourceIsWorkspaceFolder && ...workspaceFolderRelativePath =~ /([zip|tar.bz2|tar.gz])$/i"
},
"keybindings":[
{
"command":"pt.ProjectProfileTemplate",
"key":"Ctrl+Shift+N",
"macosx":"command+Ctrl+N"
},
{
"command":"pt.copyRelativePath",
"key":"Ctrl+Shift+C",
"macosx":"command+Ctrl+C"
}
],
"menus": {
"explorer/context": [
{
"command": "pt.ProjectProfileTemplate",
"group": "new@0",
"when": "explorerResourceCount == 1"
},
{
"group": "new@0"
},
{
"command": "pt.copyPath",
"group": "cutcopy@0",
"when": "explorerResourceCount == 1"
},
{
"command": "pt.copyRelativePath",
"group": "cutcopy@0",
"when": "explorerResourceCount == 1"
},
{
"command": "pt.decompress",
"group": "rename@0",
"when": "explorerResourceCount == 1 && expression.decompress"
},
{
"title": "压缩",
"group": "rename@0",
"id": "fileUtils",
"when": "explorerResourceCount == 1"
},
{
"command": "pt.compress",
"group": "fileUtils@1"
},
{
"group": "fileUtils@2"
},
{
"command": "pt.uglifyjsCompressed",
"group": "fileUtils@3"
}
],
"editor/context": [
{
"command": "pt.copyRelativePath",
"group": "copyPath",
"when": "editorTextFocus && activeEditor.file.isProjectFile"
},
{
"title": "压缩/转义/编码解码",
"group": "copyPath@0",
"id": "fileUtils",
"when": "editorTextFocus"
},
{
"command": "pt.unicodeToChinese",
"group": "fileUtils@1"
},
{
"group": "fileUtils@2"
},
{
"command": "pt.uglifyjsCompressed",
"group": "fileUtils@3"
},
{
"group": "fileUtils@4"
},
{
"command": "pt.UrlDecode",
"group": "fileUtils@5"
},
{
"command": "pt.UrlEncode",
"group": "fileUtils@5"
}
]
}
},
"extensionDependencies": [
"plugin-manager"
],
"dependencies": {
"uglify-js": "^3.13.10",
"uglifyjs": "^2.4.11"
}
}