-
Notifications
You must be signed in to change notification settings - Fork 57
/
package.json
146 lines (146 loc) · 4.89 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
{
"name": "RunOnSave",
"displayName": "Run on Save",
"description": "Run commands when a file is saved in vscode.",
"icon": "images/save-icon.png",
"galleryBanner": {
"color": "#3e136e",
"theme": "dark"
},
"version": "0.2.7",
"engines": {
"vscode": "^1.86.0"
},
"publisher": "emeraldwalk",
"license": "Apache-2.0",
"homepage": "https://github.com/emeraldwalk/vscode-runonsave/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/emeraldwalk/vscode-runonsave.git"
},
"bugs": {
"url": "https://github.com/emeraldwalk/vscode-runonsave/issues"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/src/extension",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test",
"package:latest": "npx vsce package -o releases/runonsave-latest.vsix"
},
"contributes": {
"commands": [
{
"command": "extension.emeraldwalk.enableRunOnSave",
"title": "Run On Save: Enable"
},
{
"command": "extension.emeraldwalk.disableRunOnSave",
"title": "Run On Save: Disable"
}
],
"configuration": {
"title": "Run On Save command configuration.",
"type": "object",
"properties": {
"emeraldwalk.runonsave": {
"type": "object",
"properties": {
"autoClearConsole": {
"type": "boolean",
"description": "Automatically clear the console on each save before running commands.",
"default": false
},
"shell": {
"type": "string",
"description": "Shell to execute the command with (gets passed to child_process.exec as an options arg. e.g. child_process(cmd, { shell })."
},
"message": {
"type": "string",
"description": "Optional message to show before all commands run."
},
"messageAfter": {
"type": "string",
"description": "Optional message to show after all command runs."
},
"showElapsed": {
"type": "boolean",
"description": "Print elapsed time for all of the commands.",
"default": false
},
"commands": {
"type": "array",
"items": {
"type": "object",
"properties": {
"match": {
"type": "string",
"description": "Regex for matching files to run commands on \n\nNOTE: This is a regex and not a file path spce, so backslashes have to be escaped. They also have to be escaped in json strings, so you may have to double escape them in certain cases such as targetting contents of folders.\n\ne.g.\n\"match\": \"some\\\\\\\\directory\\\\\\\\.*\"",
"default": ".*"
},
"notMatch": {
"type": "string",
"description": "Regex for matching files *not* to run commands on.",
"default": ".*"
},
"cmd": {
"type": "string",
"description": "Command to execute on save."
},
"isAsync": {
"type": "boolean",
"description": "Run command asynchronously.",
"default": false
},
"message": {
"type": "string",
"description": "Optional message to show before command runs."
},
"messageAfter": {
"type": "string",
"description": "Optional message to show after command runs."
},
"showElapsed": {
"type": "boolean",
"description": "Print elapsed time for the command.",
"default": false
},
"autoShowOutputPanel": {
"description": "Automatically shows the output panel.",
"type": "string",
"default": "never",
"enum": [
"never",
"always",
"error"
]
}
}
}
}
}
}
}
}
},
"devDependencies": {
"@types/vscode": "^1.86.0",
"@types/mocha": "^10.0.8",
"@types/node": "22.7.4",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"eslint": "^9.11.1",
"typescript": "^5.6.2",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1"
}
}