-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
216 lines (216 loc) · 6.57 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
206
207
208
209
210
211
212
213
214
215
216
{
"name": "gitdoc",
"displayName": "GitDoc",
"publisher": "vsls-contrib",
"icon": "images/icon.png",
"description": "Automatically commit/push/pull changes on save, so you can edit a Git repo like a multi-file, versioned document.",
"version": "0.1.0",
"extensionKind": [
"workspace"
],
"repository": {
"type": "git",
"url": "https://github.com/lostintangent/gitdoc.git"
},
"engines": {
"vscode": "^1.70.0"
},
"categories": [
"Other"
],
"keywords": [
"auto",
"commit",
"sync",
"git"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "gitdoc.disable",
"title": "Disable",
"category": "GitDoc"
},
{
"command": "gitdoc.enable",
"title": "Enable",
"category": "GitDoc"
},
{
"command": "gitdoc.restoreVersion",
"title": "Restore Version"
},
{
"command": "gitdoc.squashVersions",
"title": "Squash Version(s) Above"
},
{
"command": "gitdoc.undoVersion",
"title": "Undo Version"
}
],
"configuration": {
"title": "GitDoc",
"properties": {
"gitdoc.autoCommitDelay": {
"type": "number",
"default": 30000,
"description": "Controls the delay in ms after which any changes are automatically committed. Only applies when `GitDoc: Enabled` is set to `true`."
},
"gitdoc.autoPull": {
"type": "string",
"enum": [
"afterDelay",
"onCommit",
"onPush",
"off"
],
"default": "onPush",
"description": "Specifies whether to automatically pull changes from the current remote."
},
"gitdoc.autoPullDelay": {
"type": "number",
"default": 30000,
"description": "Controls the delay in ms after which any commits are automatically pulled. Only applies when `GitDoc: Auto Pull` is set to `afterDelay`."
},
"gitdoc.autoPush": {
"type": "string",
"enum": [
"afterDelay",
"onCommit",
"off"
],
"default": "onCommit",
"description": "Specifies whether to automatically push your changes to the current remote."
},
"gitdoc.autoPushDelay": {
"type": "number",
"default": 30000,
"description": "Controls the delay in ms after which any commits are automatically pushed. Only applies when `GitDoc: Auto Push` is set to `afterDelay`."
},
"gitdoc.commitMessageFormat": {
"type": "string",
"default": "ff",
"markdownDescription": "Specifies the date/time format string (using Luxon) to use when generating auto-commit messages. Views [the docs](https://moment.github.io/luxon/#/formatting?id=table-of-tokens) for more details."
},
"gitdoc.commitValidationLevel": {
"type": "string",
"enum": [
"error",
"warning",
"none"
],
"default": "error",
"description": "Specifies whether to validate that a file is free of problems, before attempting to commit changes to it."
},
"gitdoc.commitOnClose": {
"type": "boolean",
"default": true,
"description": "Specifies whether to automatically commit changes when you close VS Code."
},
"gitdoc.enabled": {
"type": "boolean",
"default": false,
"description": "Specifies whether to automatically create a commit each time you save a file."
},
"gitdoc.filePattern": {
"type": "string",
"default": "**/*",
"description": "Specifies a glob that indicates the specific files that should be automatically committed."
},
"gitdoc.pullOnOpen": {
"type": "boolean",
"default": true,
"description": "Specifies whether to automatically pull remote changes when you open a repo."
},
"gitdoc.pushMode": {
"type": "string",
"enum": [
"forcePush",
"forcePushWithLease",
"push"
],
"default": "forcePush",
"description": "Specifies how changes should be pushed after they're committed. This setting only applies when auto-pushing is enabled."
},
"gitdoc.timeZone": {
"type": "string",
"default": null,
"markdownDescription": "Specifies the timezone (as a [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)) that commit message dates should be offset to. Defaults to UTC."
},
"gitdoc.excludeBranches": {
"type": "array",
"default": [],
"description": "Specifies a list of branches that should be excluded from auto-commits."
}
}
},
"menus": {
"commandPalette": [
{
"command": "gitdoc.disable",
"when": "gitOpenRepositoryCount != 0 && gitdoc:enabled"
},
{
"command": "gitdoc.enable",
"when": "gitOpenRepositoryCount != 0 && !gitdoc:enabled"
},
{
"command": "gitdoc.restoreVersion",
"when": "false"
},
{
"command": "gitdoc.squashVersions",
"when": "false"
},
{
"command": "gitdoc.undoVersion",
"when": "false"
}
],
"timeline/item/context": [
{
"command": "gitdoc.restoreVersion",
"when": "gitdoc:enabled && timelineItem =~ /git:file:commit\\b/",
"group": "gitdoc@1"
},
{
"command": "gitdoc.undoVersion",
"when": "gitdoc:enabled && timelineItem =~ /git:file:commit\\b/",
"group": "gitdoc@2"
},
{
"command": "gitdoc.squashVersions",
"when": "gitdoc:enabled && timelineItem =~ /git:file:commit\\b/",
"group": "gitdoc@3"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"package": "vsce package"
},
"devDependencies": {
"@types/debounce": "^1.2.0",
"@types/luxon": "^2.0.5",
"@types/minimatch": "^3.0.3",
"@types/node": "^18.6.5",
"@types/vscode": "1.70.0",
"tslint": "^5.8.0",
"typescript": "^4.7.4",
"vsce": "^2.10.0"
},
"dependencies": {
"debounce": "^1.2.0",
"luxon": "^2.0.2",
"minimatch": "^3.0.4",
"mobx": "^5.14.2"
}
}