-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
205 lines (205 loc) · 5.74 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{
"name": "vscode-diff-viewer",
"displayName": "Diff Viewer",
"description": "Visualize git diff files in VS Code",
"version": "1.5.0",
"license": "MIT",
"publisher": "caponetto",
"homepage": "https://github.com/caponetto/vscode-diff-viewer",
"repository": {
"type": "git",
"url": "https://github.com/caponetto/vscode-diff-viewer.git"
},
"bugs": {
"url": "https://github.com/caponetto/vscode-diff-viewer/issues"
},
"engines": {
"vscode": "^1.66.0"
},
"main": "./dist/extension.js",
"browser": "./dist/extension.js",
"categories": [
"Other"
],
"keywords": [
"diff",
"differences",
"git",
"viewer",
"comparison"
],
"icon": "icon.png",
"extensionKind": [
"ui",
"workspace"
],
"activationEvents": [
"onCustomEditor:diffViewer"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"contributes": {
"commands": [
{
"command": "diffviewer.showLineByLine",
"title": "Show diff line by line",
"icon": "$(file)"
},
{
"command": "diffviewer.showSideBySide",
"title": "Show diff side by side",
"icon": "$(files)"
}
],
"customEditors": [
{
"viewType": "diffViewer",
"displayName": "Diff Viewer",
"selector": [
{
"filenamePattern": "*.{diff,patch}"
}
]
}
],
"languages": [
{
"id": "diff",
"extensions": [
".diff",
".patch"
],
"aliases": [
"diff",
"patch"
]
}
],
"configuration": [
{
"title": "DiffViewer",
"properties": {
"diffviewer.colorScheme": {
"type": "string",
"default": "light",
"enum": [
"light",
"dark"
],
"description": "The color scheme to visualize the diff"
},
"diffviewer.outputFormat": {
"type": "string",
"default": "line-by-line",
"enum": [
"line-by-line",
"side-by-side"
],
"description": "The format of the output data"
},
"diffviewer.drawFileList": {
"type": "boolean",
"default": true,
"description": "Show a file list before the diff"
},
"diffviewer.matching": {
"type": "string",
"default": "none",
"enum": [
"word",
"char",
"none"
],
"description": "Matching level"
},
"diffviewer.matchWordsThreshold": {
"type": "number",
"default": 0.25,
"description": "Similarity threshold for word matching"
},
"diffviewer.matchingMaxComparisons": {
"type": "integer",
"default": 2500,
"description": "Perform at most this much comparisons for line matching a block of changes"
},
"diffviewer.maxLineSizeInBlockForComparison": {
"type": "integer",
"default": 200,
"description": "Maximum number os characters of the bigger line in a block to apply comparison"
},
"diffviewer.maxLineLengthHighlight": {
"type": "integer",
"default": 10000,
"description": "Only perform diff changes highlight if lines are smaller than this"
},
"diffviewer.renderNothingWhenEmpty": {
"type": "boolean",
"default": false,
"description": "Render nothing if the diff shows no change in its comparison"
}
}
}
],
"menus": {
"editor/title": [
{
"command": "diffviewer.showLineByLine",
"group": "navigation@1",
"when": "activeCustomEditorId == 'diffViewer' && config.diffviewer.outputFormat == 'side-by-side'"
},
{
"command": "diffviewer.showSideBySide",
"group": "navigation@1",
"when": "activeCustomEditorId == 'diffViewer' && config.diffviewer.outputFormat == 'line-by-line'"
}
]
}
},
"scripts": {
"lint": "yarn eslint ./src --ext .ts",
"build:dev": "rimraf dist && webpack --mode=development",
"build:prod": "yarn lint && rimraf dist && webpack --mode=production",
"format": "prettier --write . --ignore-path .gitignore",
"format:check": "prettier --check . --ignore-path .gitignore",
"pack:extension": "vsce package --yarn -o ./dist/vscode_diff_viewer_v$npm_package_version.vsix --githubBranch main",
"run:webmode": "yarn vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --version=stable",
"jest:run": "jest --silent",
"test": "yarn jest:run",
"prepare": "husky install"
},
"dependencies": {
"diff2html": "3.4.45"
},
"devDependencies": {
"@jest/types": "^29.5.0",
"@types/jest": "^29.5.2",
"@types/node": "^18.6.4",
"@types/vscode": "^1.66.0",
"@types/vscode-webview": "^1.57.1",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@vscode/test-web": "^0.0.44",
"@vscode/vsce": "^2.19.0",
"css-loader": "^6.8.1",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-unused-imports": "^2.0.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"path-browserify": "1.0.1",
"prettier": "2.7.1",
"rimraf": "^5.0.1",
"source-map-loader": "^4.0.1",
"style-loader": "^3.3.3",
"ts-jest": "^29.1.0",
"ts-loader": "9.4.3",
"ts-node": "^10.9.1",
"tslint-config-prettier": "1.18.0",
"typescript": "5.0.4",
"webpack": "5.94.0",
"webpack-cli": "5.1.4"
}
}