This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
188 lines (188 loc) · 6.63 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
{
"name": "create-tests",
"displayName": "Create tests",
"description": "An extension to quickly generate test files.",
"version": "1.1.1",
"publisher": "hardikmodha",
"homepage": "https://github.com/HardikModha/vscode-create-tests/blob/master/README.md",
"author": {
"name": "Hardik Modha",
"email": "[email protected]"
},
"engines": {
"vscode": "^1.24.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Other"
],
"keywords": [
"code generator",
"tests",
"test file generator",
"create tests",
"create test file"
],
"activationEvents": [
"onLanguage:typescript",
"onLanguage:javascript",
"onLanguage:typescriptreact",
"onLanguage:javascriptreact"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "createTests.create",
"title": "Create test file"
}
],
"menus": {
"explorer/context": [
{
"when": "resourceLangId == typescript",
"command": "createTests.create",
"group": "2_workspace"
},
{
"when": "resourceLangId == javascript",
"command": "createTests.create",
"group": "2_workspace"
},
{
"when": "resourceLangId == typescriptreact",
"command": "createTests.create",
"group": "2_workspace"
},
{
"when": "resourceLangId == javascriptreact",
"command": "createTests.create",
"group": "2_workspace"
}
],
"editor/title/context": [
{
"when": "resourceLangId == typescript",
"command": "createTests.create",
"group": "2_workspace"
},
{
"when": "resourceLangId == javascript",
"command": "createTests.create",
"group": "2_workspace"
},
{
"when": "resourceLangId == typescriptreact",
"command": "createTests.create",
"group": "2_workspace"
},
{
"when": "resourceLangId == javascriptreact",
"command": "createTests.create",
"group": "2_workspace"
}
],
"editor/context": [
{
"when": "resourceLangId == typescript",
"command": "createTests.create",
"group": "2_workspace"
},
{
"when": "resourceLangId == javascript",
"command": "createTests.create",
"group": "2_workspace"
},
{
"when": "resourceLangId == typescriptreact",
"command": "createTests.create",
"group": "2_workspace"
},
{
"when": "resourceLangId == javascriptreact",
"command": "createTests.create",
"group": "2_workspace"
}
]
},
"configuration": {
"title": "Where to keep the test files?",
"properties": {
"createTests.defaultLocationForTestFiles": {
"type": "string",
"default": "same location as source file",
"enum": [
"same location as source file",
"project root"
],
"description": "Where to keep the created test files?"
},
"createTests.sourceDir": {
"type": "string",
"default": "src",
"description": "Name of directory which contains all source files. This directory is not created when generating the directory structure for the test file."
},
"createTests.testDirectoryName": {
"type": "string",
"default": "tests",
"description": "Name of the test directory."
},
"createTests.customLocationForTestFiles": {
"type": "string",
"description": "Set this property in case you want to specify the custom location for test files."
},
"createTests.testFilesSuffix": {
"type": "string",
"default": "test",
"description": "Suffix to use for the test files."
},
"createTests.shouldSwitchToTestFile": {
"type": "boolean",
"default": true,
"description": "Whether to switch to the test file or not after creating it."
},
"createTests.template.*": {
"type": [
"array",
"object"
],
"description": "Language specific templates that you want to use."
},
"createTests.template.default": {
"type": [
"array",
"object"
],
"default": [
"import {${moduleName}} from '${modulePath}';"
],
"description": "Default template to use for all test file"
}
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/HardikModha/vscode-create-tests.git"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"lint-ts": "tslint --config ./tslint.json --project ./tsconfig.json",
"test": "npm run lint-ts && npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/node": "^7.0.43",
"tslint": "^5.10.0",
"typescript": "^2.6.1",
"vscode": "^1.1.35"
},
"dependencies": {
"@types/mkdirp": "^0.5.2",
"mkdirp": "^0.5.1"
}
}