forked from jasonwilliams/anki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
178 lines (178 loc) · 4.88 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
{
"name": "anki",
"displayName": "Anki for VSCode",
"description": "Sync notes with your locally running Anki",
"version": "1.2.5",
"publisher": "jasew",
"engines": {
"vscode": "^1.47.0"
},
"repository": {
"type": "git",
"url": "https://github.com/jasonwilliams/anki"
},
"categories": [
"Notebooks",
"Other"
],
"activationEvents": [
"onCommand:anki.sync",
"onCommand:anki.sendToStandalone",
"onCommand:anki.sendToDeck",
"onView:decks"
],
"main": "./out/extension.js",
"icon": "anki-icon.png",
"contributes": {
"commands": [
{
"command": "anki.sync",
"title": "Anki: Sync Anki"
},
{
"command": "anki.sendToDeck",
"title": "Anki: Send To Deck",
"enablement": "editorLangId == markdown"
},
{
"command": "anki.sendToStandalone",
"title": "Anki: Send To Own Deck",
"enablement": "editorLangId == markdown"
},
{
"command": "anki.forceInstall",
"title": "Anki: Force Re-install"
}
],
"views": {
"explorer": [
{
"id": "decks",
"name": "Anki Decks"
}
]
},
"markdown.markdownItPlugins": true,
"configuration": {
"title": "Anki",
"properties": {
"anki.api.hostname": {
"type": "string",
"default": "127.0.0.1",
"description": "API Hostname"
},
"anki.api.port": {
"type": "number",
"default": 8765,
"description": "API Port"
},
"anki.api.schema": {
"type": "string",
"default": "http",
"description": "http or https"
},
"anki.defaultDeck": {
"type": "string",
"default": "notes",
"description": "Set's default deck when pushing from Markdown"
},
"anki.log": {
"type": "string",
"default": "error",
"description": "Logging level, defaults to error",
"enum": [
"off",
"error",
"warn",
"info",
"trace"
]
},
"anki.md.card.separator": {
"type": "string",
"default": "(?=^##\\s)",
"description": "Regex for card separator"
},
"anki.md.card.convertMath": {
"type": "boolean",
"default": true,
"description": "If set, convert Latex-style $ ... $ tags and blocks to MathJax-style \\( ... \\) tags and blocks"
},
"anki.md.card.frontBackSeparator": {
"type": "string",
"default": "%",
"description": "Text to match to split the front and back (not regex)"
},
"anki.md.card.tagPattern": {
"type": "string",
"default": "^\\[#(.*)\\]",
"description": "Regex for tags"
},
"anki.md.deck.titleSeparator": {
"type": "string",
"default": "^#\\s",
"description": "Parsing for Deck Name"
},
"anki.md.createTagForTitle": {
"type": "boolean",
"default": true,
"description": "When you run 'Send To Deck' the title (h1) of the markdown file is stored as a tag. This is useful if you have 'daily' notes, you can use the same deck but separate cards by title"
}
}
}
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node"
},
"scripts": {
"compile": "webpack --mode production",
"lint": "eslint src --ext ts",
"watch": "webpack --mode development --watch",
"test": "jest",
"test-compile": "tsc -p ./",
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch"
},
"devDependencies": {
"@types/cheerio": "^0.22.21",
"@types/glob": "^7.1.1",
"@types/jest": "^27.0.1",
"@types/jest-cli": "^24.3.0",
"@types/marked": "^1.2.2",
"@types/mocha": "^7.0.2",
"@types/node": "^13.11.0",
"@types/node-fetch": "^2.5.8",
"@types/prismjs": "^1.16.1",
"@types/semver": "^7.3.1",
"@types/vscode": "^1.47.0",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^6.4.0",
"css-loader": "^5.0.1",
"eslint": "^6.8.0",
"file-loader": "^6.2.0",
"glob": "^7.1.6",
"jest": "27.0.6",
"jest-cli": "^27.0.6",
"mini-css-extract-plugin": "^1.3.0",
"node-sass": "^6.0.1",
"sass-loader": "^10.0.5",
"ts-jest": "27.0.5",
"ts-loader": "^8.0.1",
"typescript": "4.1.3",
"vscode-test": "^1.3.0",
"webpack": "^5.21.1",
"webpack-cli": "^4.5.0"
},
"dependencies": {
"@vscode-logging/logger": "^1.2.2",
"cheerio": "^1.0.0-rc.3",
"marked": "^2.0.0",
"node-fetch": "^2.6.1",
"prismjs": "^1.25.0",
"semver": "^7.3.4"
}
}