-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
377 lines (377 loc) · 13.5 KB
/
package.json
File metadata and controls
377 lines (377 loc) · 13.5 KB
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
{
"name": "babel",
"displayName": "Babel",
"publisher": "wmorellato",
"description": "An extension for writers to create and manage stories using VSCode.",
"version": "1.12.0",
"license": "SEE LICENSE IN LICENSE.md",
"keywords": [
"writing",
"stories",
"book"
],
"engines": {
"vscode": "^1.95.0"
},
"icon": "resources/logo-icon.png",
"galleryBanner": {
"color": "#36221b",
"theme": "dark"
},
"categories": [
"Other"
],
"homepage": "https://github.com/wmorellato/babel",
"repository": {
"type": "git",
"url": "https://github.com/wmorellato/babel.git"
},
"activationEvents": [
"onView:story-entries",
"workspaceContains:babel.json",
"onLanguage:markdown"
],
"main": "dist/babel.js",
"contributes": {
"commands": [
{
"command": "babel.newStory",
"icon": {
"dark": "resources/dark/add.svg",
"light": "resources/light/add.svg"
},
"category": "Stories",
"title": "New story"
},
{
"command": "babel.newVersion",
"icon": "$(new-file)",
"category": "Stories",
"title": "New version"
},
{
"command": "babel.editStoryTitle",
"icon": "$(edit)",
"category": "Stories",
"title": "Edit title"
},
{
"command": "babel.exportToTemplate",
"icon": "$(notebook-template)",
"category": "Stories",
"title": "Export to template"
},
{
"command": "babel.sendToKindle",
"icon": "$(device-mobile)",
"category": "Stories",
"title": "Send to Kindle"
},
{
"command": "babel.editVersionName",
"icon": "$(edit)",
"category": "Stories",
"title": "Edit version name"
},
{
"command": "babel.removeStory",
"icon": {
"dark": "resources/dark/remove.svg",
"light": "resources/light/remove.svg"
},
"category": "Stories",
"title": "Remove this story"
},
{
"command": "babel.removeVersion",
"icon": {
"dark": "resources/dark/remove.svg",
"light": "resources/light/remove.svg"
},
"category": "Stories",
"title": "Remove this version"
},
{
"command": "babel.refreshExplorer",
"icon": {
"dark": "resources/dark/refresh.svg",
"light": "resources/light/refresh.svg"
},
"category": "Explorer",
"title": "Refresh"
},
{
"command": "babel.insertMetadata",
"category": "Explorer",
"title": "Insert header"
},
{
"command": "babel.addComment",
"icon": "$(comment-add)",
"category": "Comments",
"title": "Add Comment"
},
{
"command": "babel.editComment",
"icon": "$(edit)",
"category": "Comments",
"title": "Edit Comment"
},
{
"command": "babel.deleteComment",
"icon": "$(trash)",
"category": "Comments",
"title": "Delete Comment"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "story-explorer",
"title": "Story Explorer",
"icon": "resources/logo-bar.svg"
}
]
},
"viewsWelcome": [
{
"view": "story-entries",
"contents": "If you don't see any stories here, wait for it to load or create your first.\n[Add Story](command:babel.newStory)"
}
],
"views": {
"story-explorer": [
{
"id": "story-entries",
"name": "Stories"
},
{
"id": "version-info",
"name": "Version information",
"when": "versionIsOpen"
},
{
"id": "backup-history",
"name": "Backup history",
"visibility": "collapsed"
},
{
"type": "webview",
"id": "babel.activityChartView",
"name": "Activity"
}
]
},
"menus": {
"view/title": [
{
"command": "babel.newStory",
"when": "view == story-entries",
"group": "navigation"
},
{
"command": "babel.refreshExplorer",
"when": "view == story-entries",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "babel.newVersion",
"when": "view == story-entries && viewItem == story-item",
"group": "inline"
},
{
"command": "babel.editStoryTitle",
"when": "view == story-entries && viewItem == story-item"
},
{
"command": "babel.removeStory",
"when": "view == story-entries && viewItem == story-item"
},
{
"command": "babel.removeVersion",
"when": "view == story-entries && viewItem == version-item"
},
{
"command": "babel.exportToTemplate",
"when": "view == story-entries && viewItem == version-item",
"group": "inline"
},
{
"command": "babel.sendToKindle",
"when": "view == story-entries && viewItem == version-item",
"group": "inline"
},
{
"command": "babel.editVersionName",
"when": "view == story-entries && viewItem == version-item",
"group": "inline"
}
],
"editor/context": [
{
"command": "babel.insertMetadata",
"when": "versionIsOpen"
},
{
"command": "babel.addComment",
"when": "editorLangId == markdown && editorHasSelection",
"group": "comments@1"
},
{
"command": "babel.editComment",
"when": "editorLangId == markdown",
"group": "comments@2"
},
{
"command": "babel.deleteComment",
"when": "editorLangId == markdown",
"group": "comments@3"
}
]
},
"keybindings": [
{
"command": "babel.addComment",
"key": "ctrl+shift+m",
"mac": "cmd+shift+m",
"when": "editorLangId == markdown && editorHasSelection"
}
],
"configuration": {
"title": "Babel",
"properties": {
"stories.workspace.removeFiles": {
"type": "boolean",
"description": "If set, the extension will also remove files when removing a story or a version from the workspace. Set with care.",
"default": false
},
"stories.authorInformation.name": {
"type": "string",
"description": "Your real name. If you want to use a pen name, set the option below and fill the \"Pen name\" field."
},
"stories.authorInformation.usePenName": {
"type": "boolean",
"description": "If set, Babel will use the value in the field \"Pen name\" when exporting stories.",
"default": false
},
"stories.authorInformation.penName": {
"type": "string",
"description": "Your pen name. If you want to use this when exporting stories, check the option below."
},
"stories.authorInformation.email": {
"type": "string",
"description": "Your e-mail. Not required, but a lot of templates demand this. Feel free to fill this information directly on the exported file later."
},
"stories.authorInformation.country": {
"type": "string",
"description": "The country where you live. Feel free to fill this information directly on the exported file later."
},
"backup.period": {
"type": "string",
"default": "Weekly",
"enum": [
"Daily",
"Weekly",
"Monthly"
],
"description": "Period of backup operations. Backup is triggered on VSCode startup."
},
"backup.cloudBackup.googleDrive": {
"type": "boolean",
"description": "Enables backup of Babel workspace using Google Drive. Upon enabling this options, you have to restart VSCode to trigger Google Drive setup."
},
"backup.localBackup.path": {
"type": "string",
"default": "...\\Documents\\Babel",
"description": "Path in local computer to store Babel backups. Defaults to Documents folder."
},
"exporter.pandoc-templates": {
"type": "string",
"default": "...\\repos\\pandoc-templates",
"description": "Path to pandoc-templates local copy."
},
"kindle.emailService": {
"type": "string",
"enum": [
"gmail",
"yahoo"
],
"default": "gmail",
"description": "Email service provider to use when sending documents to your Kindle device. Currently, only Gmail and Yahoo are supported."
},
"kindle.recipientEmail": {
"type": "string",
"default": "",
"description": "Registered mail address that will receive the file."
},
"kindle.senderEmail": {
"type": "string",
"default": "",
"description": "Registered email address to send documents to your Kindle device."
},
"kindle.senderPassword": {
"type": "string",
"default": "",
"description": "Password of the registered email address to send documents to your Kindle device."
},
"kindle.exportFormat": {
"type": "string",
"enum": [
"epub",
"docx"
],
"default": "epub",
"description": "Export format to be used when sending documents to your Kindle device. Currently, only EPUB and DOCX are supported."
}
}
}
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js",
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^7.0.2",
"@types/node": "^13.13.46",
"@types/vscode": "^1.95.0",
"chai": "^4.3.4",
"eslint": "^6.8.0",
"glob": "^7.1.6",
"mocha": "^7.2.0",
"nock": "^13.0.11",
"sinon": "^9.2.4",
"typescript": "^3.9.9",
"vscode-test": "^1.6.1",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12"
},
"dependencies": {
"@nodelib/fs.walk": "^1.2.6",
"adm-zip": "^0.4.16",
"dateformat": "^3.0.3",
"docx": "^5.5.0",
"docxtemplater": "^3.21.1",
"eol": "^0.9.1",
"google-auth-library": "^6.1.6",
"googleapis": "^57.0.0",
"jszip": "^3.7.0",
"lint": "^0.8.19",
"lodash-id": "^0.14.0",
"lowdb": "^1.0.0",
"moment": "^2.29.4",
"nodemailer": "^6.10.1",
"open": "^7.4.2",
"parse-md": "^2.0.4",
"rimraf": "^3.0.2",
"server-destroy": "^1.0.1",
"xml": "^1.0.1",
"xml2js": "^0.4.23"
}
}