-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
176 lines (176 loc) · 4.82 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
{
"name": "flutter-tests-assistant",
"displayName": "Flutter Tests Assistant",
"description": "Improve the quality of your code by accelerating your testing workflow.",
"version": "1.0.0",
"publisher": "Monterail",
"engines": {
"vscode": "^1.52.0"
},
"categories": [
"Programming Languages",
"Snippets"
],
"repository": {
"type": "git",
"url": "https://github.com/monterail/vs-code-flutter-tests"
},
"keywords": [
"flutter",
"clean code",
"dart",
"tdd",
"test driven development",
"unit tests",
"test",
"testing"
],
"galleryBanner": {
"color": "#FFFFFF"
},
"icon": "assets/mascot.png",
"activationEvents": [
"onLanguage:dart",
"onCommand:flutter-tests-assistant.goToTestFile",
"onCommand:flutter-tests-assistant.goToSourceFile",
"onCommand:flutter-tests-assistant.executeTestsInTestFile",
"onCommand:flutter-tests-assistant.generateCoverage",
"onCommand:flutter-tests-assistant.toggleCoverageHighlight"
],
"main": "./out/extension.js",
"contributes": {
"snippets": [
{
"language": "dart",
"path": "snippets/snippets.json"
}
],
"commands": [
{
"command": "flutter-tests-assistant.goToTestFile",
"title": "Flutter Tests Assistant: Go to tests",
"icon": "./assets/swap.png"
},
{
"command": "flutter-tests-assistant.goToSourceFile",
"title": "Flutter Tests Assistant: Go to source file",
"icon": "./assets/swap.png"
},
{
"command": "flutter-tests-assistant.executeTestsInTestFile",
"title": "Flutter Tests Assistant: Run tests for file",
"icon": "./assets/run_tests.png"
},
{
"command": "flutter-tests-assistant.generateCoverage",
"title": "Flutter Tests Assistant: Generate test coverage info",
"icon": "./assets/run_tests.png"
},
{
"command": "flutter-tests-assistant.toggleCoverageHighlight",
"title": "Flutter Tests Assistant: Toggle test coverage highlight"
}
],
"keybindings": [
{
"command": "flutter-tests-assistant.goToTestFile",
"key": "ctrl+shift+T",
"mac": "cmd+shift+T",
"when": "resourceLangId == dart && resourceFilename =~ /(?<!_test)\\.dart/"
},
{
"command": "flutter-tests-assistant.goToSourceFile",
"key": "ctrl+shift+T",
"mac": "cmd+shift+T",
"when": "resourceLangId == dart && resourceFilename =~ /_test.dart/"
},
{
"command": "flutter-tests-assistant.executeTestsInTestFile",
"key": "ctrl+alt+shift+R",
"mac": "cmd+alt+shift+R",
"when": "resourceLangId == dart"
},
{
"command": "flutter-tests-assistant.toggleCoverageHighlight",
"key": "ctrl+alt+shift+C",
"mac": "cmd+alt+shift+C",
"when": "resourceLangId == dart"
}
],
"menus": {
"touchBar": [
{
"when": "resourceLangId == dart && resourceFilename =~ /(?<!_test)\\.dart/",
"command": "flutter-tests-assistant.goToTestFile",
"group": "nasc"
},
{
"when": "resourceLangId == dart && resourceFilename =~ /_test.dart/",
"command": "flutter-tests-assistant.goToSourceFile",
"group": "nasc"
},
{
"when": "resourceLangId == dart",
"command": "flutter-tests-assistant.executeTestsInTestFile",
"group": "nasc"
}
],
"explorer/context": [
{
"when": "resourceLangId == dart && resourceFilename =~ /(?<!_test)\\.dart/",
"command": "flutter-tests-assistant.goToTestFile",
"group": "1_modification"
},
{
"when": "resourceLangId == dart && resourceFilename =~ /_test.dart/",
"command": "flutter-tests-assistant.goToSourceFile",
"group": "1_modification"
},
{
"when": "resourceLangId == dart",
"command": "flutter-tests-assistant.executeTestsInTestFile",
"group": "1_modification"
}
],
"editor/context": [
{
"when": "resourceLangId == dart && resourceFilename =~ /(?<!_test)\\.dart/",
"command": "flutter-tests-assistant.goToTestFile",
"group": "1_modification"
},
{
"when": "resourceLangId == dart && resourceFilename =~ /_test.dart/",
"command": "flutter-tests-assistant.goToSourceFile",
"group": "1_modification"
},
{
"when": "resourceLangId == dart",
"command": "flutter-tests-assistant.executeTestsInTestFile",
"group": "1_modification"
}
]
}
},
"scripts": {
"vscode:build": "npm i -g @vscode/vsce && vsce package",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.47.0",
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^13.11.0",
"eslint": "^6.8.0",
"@typescript-eslint/parser": "^2.30.0",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"glob": "^7.1.6",
"mocha": "^7.1.2",
"typescript": "^3.8.3",
"vscode-test": "^1.3.0"
}
}