-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
153 lines (153 loc) · 5.78 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
{
"name": "codebraid-preview",
"displayName": "Codebraid Preview",
"description": "Preview Markdown documents with Pandoc. Optionally execute code blocks and inline code with Codebraid, using Jupyter kernels or its built-in code execution system.",
"version": "0.10.0-dev1",
"publisher": "gpoore",
"homepage": "https://github.com/gpoore/codebraid-preview-vscode",
"license": "See license in LICENSE.txt (BSD 3-Clause except as noted otherwise)",
"repository": {
"type": "git",
"url": "https://github.com/gpoore/codebraid-preview-vscode.git"
},
"engines": {
"vscode": "^1.63.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:markdown",
"onCommand:codebraidPreview.startPreview",
"onCommand:codebraidPreview.runCodebraid",
"onCommand:codebraidPreview.exportDocument"
],
"main": "./dist/extension.js",
"contributes": {
"grammars": [
{
"path": "./syntaxes/julia_codeblock.json",
"scopeName": "markdown.julia.codebraid",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.julia": "julia"
}
}
],
"commands": [
{
"command": "codebraidPreview.startPreview",
"title": "Open Codebraid Preview",
"category": "Codebraid preview"
},
{
"command": "codebraidPreview.runCodebraid",
"title": "Run code with Codebraid",
"category": "Codebraid preview"
},
{
"command": "codebraidPreview.exportDocument",
"title": "Export document with Pandoc",
"category": "Codebraid preview"
}
],
"configuration": {
"title": "Codebraid Preview",
"properties": {
"codebraid.preview.maxPreviews": {
"type": "number",
"default": 5,
"description": "Maximum number of preview panels allowed concurrently."
},
"codebraid.preview.minBuildInterval": {
"type": "number",
"default": 1000,
"description": "Minimum interval between document builds in milliseconds."
},
"codebraid.preview.scrollPreviewWithEditor": {
"type": "boolean",
"default": true,
"description": "Scroll preview to sync with editor"
},
"codebraid.preview.scrollEditorWithPreview": {
"type": "boolean",
"default": true,
"description": "Scroll editor to sync with preview"
},
"codebraid.preview.css.useDefault": {
"type": "boolean",
"default": true,
"description": "Whether the preview's default CSS is used"
},
"codebraid.preview.css.overrideDefault": {
"type": "boolean",
"default": true,
"description": "Whether document CSS overrides the preview's default CSS (determines which is loaded last)"
},
"codebraid.preview.pandoc.fromFormat": {
"type": "string",
"default": "commonmark_x",
"description": "Pandoc source format (`--from=FORMAT`). Currently, only \"commonmark_x\" supports scroll sync."
},
"codebraid.preview.pandoc.options": {
"type": "array",
"items": {
"type": "string",
"description": "Pandoc option in `--option`, `--option=VALUE`, or `--option VALUE` form. Options are evaluated within a shell, so spaces must be quoted.",
"pattern": "^(?!-f|--from|-r|--read)(?:-[a-zA-Z]|--[a-zA-Z]+(?:-[a-zA-Z]+)*)(?:[ =](?:\"[^\"]+\"(?!\")|'[^']+'|[^ \"';&|]+(?=[\"']|$))+)?$",
"patternErrorMessage": "One option (including any value) per line/array element. Options are evaluated within a shell, so spaces must be quoted. Specify source format in \"pandocFromFormat\"."
},
"default": [],
"description": "Pandoc command-line options. In the settings GUI, one option per line (for example, `--filter FILTER`). In `settings.json`, an array with one option per element (for example, `[\"--filter FILTER\"]`). Options are evaluated within a shell, so spaces must be quoted."
},
"codebraid.preview.pandoc.previewDefaultsFile": {
"type": "string",
"default": "_codebraid_preview.yaml",
"pattern": "^[^\\\\/]+$",
"patternErrorMessage": "Must be a file name without a path to the file.",
"description": "Special Pandoc defaults file in document directory. If it exists and defines \"input-files\", the preview will automatically work with all files in a multi-file document."
},
"codebraid.preview.pandoc.showRaw": {
"type": "boolean",
"default": true,
"description": "Display a verbatim representation of non-HTML raw content `{=format}` in the preview."
}
}
}
},
"dependencies": {
"@types/js-yaml": "^4.0.5",
"@vscode/codicons": "^0.0.31",
"js-yaml": "^4.1.0",
"katex": "^0.16.0"
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "18.x",
"@types/vscode": "^1.63.0",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"@vscode/test-electron": "^2.1.4",
"eslint": "^8.1.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"ts-loader": "^9.2.5",
"typescript": "^4.4.4",
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0"
}
}