-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
161 lines (161 loc) · 5.87 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
{
"name": "regreplace",
"displayName": "regreplace",
"description": "Regular expressions replacing befor save.",
"version": "1.3.1",
"publisher": "DomiR",
"license": "MIT",
"homepage": "https://github.com/DomiR/vscode-regreplace/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/DomiR/vscode-regreplace.git"
},
"galleryBanner": {
"color": "#2980b9",
"theme": "dark"
},
"icon": "assets/logo.png",
"bugs": {
"url": "https://github.com/DomiR/vscode-regreplace/issues"
},
"engines": {
"vscode": "^1.6.0"
},
"categories": [
"Languages",
"Other"
],
"keywords": [
"ES6",
"ES2015",
"OnSave",
"Replace"
],
"activationEvents": [
"*"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "regreplace.regreplace",
"title": "RegReplace: Run all"
},
{
"command": "regreplace.run-single-rule",
"title": "RegReplace: Run single rule"
},
{
"command": "regreplace.save-without-regreplace",
"title": "RegReplace: Save without replacing"
}
],
"configuration": {
"title": "Regreplace configuration",
"properties": {
"regreplace.on-save": {
"type": "boolean",
"default": true,
"description": "Regreplace on save."
},
"regreplace.suppress-warnings": {
"type": "boolean",
"default": false,
"description": "Suppress warnings when regreplace fails."
},
"regreplace.commands": {
"type": "array",
"default": [],
"description": "Replace commands.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Command name for debugging.",
"default": ".*"
},
"language": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"description": "LanguageId used instead of match, (exclude will still work) e.g. \"typescript\"",
"default": "javascript"
},
"match": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"description": "Regex for matching files to run commands on. e.g. \"\\.(ts|js|tsx)$\"",
"default": ".*"
},
"exclude": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"description": "Regex for matching files *not* to run commands on. e.g. \"^\\.$\" exclude dot files",
"default": ""
},
"priority": {
"type": "number",
"description": "Command priority determines order.",
"default": 0
},
"find": {
"type": "string",
"description": "Use simple find command. e.g. \"** what\"",
"default": ""
},
"regexp": {
"type": "string",
"description": "Use regexp find command. Needs to be escaped. e.g. \"(\\n)*\"",
"default": ""
},
"replace": {
"type": "string",
"description": "Replace text. Supports groups. e.g. \"$2\n$1\"",
"default": ""
},
"global": {
"type": "boolean",
"description": "Run command asynchronously.",
"default": false
}
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"release": "vsce publish",
"minor": "vsce publish minor",
"package": "vsce package",
"test": "mocha"
},
"devDependencies": {
"@types/node": "^6.0.46",
"typescript": "^2.0.6",
"@types/mocha": "^5.0.0",
"vscode": "^1.0.3",
"mocha": "^5.0.5"
},
"dependencies": {
"diff-match-patch": "^1.0.0"
}
}