forked from eskimoblood/vscode-create-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
93 lines (93 loc) · 2.83 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
{
"name": "create-test",
"displayName": "Switch to test",
"description": "Open or creates test from from source file",
"version": "1.1.4",
"publisher": "eskimoblood",
"engines": {
"vscode": "^1.19.0"
},
"icon": "images/icon.png",
"galleryBanner": {
"color": "#ffffff"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.createTest"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "extension.createTest",
"title": "Create test"
}
],
"configuration": {
"type": "object",
"title": "Switch to test configuration",
"properties": {
"createTest.testFolder": {
"type": "string",
"default": "test",
"description": "name of the test folder"
},
"createTest.testFileExtension": {
"type": "string",
"default": ".spec.js",
"description": "test file extension"
},
"createTest.testFileTemplate": {
"default": [
"import ${moduleName} from '${modulePath}'"
],
"type": [
"array",
"object"
],
"description": "template for the test file"
},
"createTest.srcFolder": {
"type": [
"string",
null
],
"default": null,
"description": "path of the source folder if the folder should not be part of folders in the test folder"
},
"createTest.srcFileExtension": {
"type": "string",
"default": ".js",
"description": "source file extension"
}
}
},
"keybindings": [
{
"command": "extension.createTest",
"key": "ctrl+alt+t",
"mac": "cmd+alt+t",
"when": "editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/node": "^7.0.43",
"typescript": "^2.6.1",
"vscode": "^1.1.6",
"vscode-uri": "^1.0.1"
},
"dependencies": {
"filepath": "^1.1.0"
}
}