forked from jasonwilliams/anki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
189 lines (189 loc) · 5.28 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
{
"name": "anki",
"displayName": "Anki for VSCode",
"description": "Sync notes with your locally running Anki",
"version": "1.2.7",
"publisher": "jasew",
"engines": {
"vscode": "^1.66.0"
},
"repository": {
"type": "git",
"url": "https://github.com/jasonwilliams/anki"
},
"categories": [
"Notebooks",
"Other"
],
"activationEvents": [
"onCommand:anki.sync",
"onCommand:anki.sendToStandalone",
"onCommand:anki.sendToDeck",
"onCommand:anki.sendToAsDirStru",
"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.sendToAsDirStru",
"title": "Anki: Send to DirName 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.saveStrategy": {
"type": "string",
"default": "default",
"markdownDescription": "Determines the behavior of the command `Anki: Send To Deck`",
"enum": [
"default",
"useDirStructure"
],
"markdownEnumDescriptions": [
"Send to the deck you specified in the `defaultDeck`",
"allows you to default to using the file path as the deck name, same as what `Anki: Send to DirName Deck` does"
]
},
"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": {
"testEnvironment": "node",
"transform": {
"^.+\\.tsx?$": "esbuild-jest"
}
},
"scripts": {
"compile": "node build.js --production",
"lint": "eslint src --ext ts",
"watch": "node build.js --watch",
"test": "jest",
"test-compile": "tsc -p ./",
"vscode:prepublish": "node build.js --production"
},
"devDependencies": {
"@types/cheerio": "^0.22.21",
"@types/glob": "^7.1.1",
"@types/jest": "^27.0.1",
"@types/jest-cli": "^24.3.0",
"@types/marked": "^4.0.3",
"@types/mocha": "^7.0.2",
"@types/node": "^13.11.0",
"@types/node-fetch": "^2.6.1",
"@types/prismjs": "^1.16.1",
"@types/semver": "^7.3.1",
"@types/vscode": "^1.66.0",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"esbuild": "^0.14.30",
"esbuild-jest": "^0.5.0",
"esbuild-plugin-copy": "^1.2.1",
"esbuild-sass-plugin": "^2.2.6",
"eslint": "^8.12.0",
"glob": "^7.1.6",
"jest": "27.0.6",
"jest-cli": "^27.0.6",
"typescript": "4.6.3",
"@vscode/test-electron": "^2.1.3"
},
"dependencies": {
"cheerio": "^1.0.0-rc.10",
"marked": "^4.0.12",
"node-fetch": "^3.2.3",
"prismjs": "^1.27.0",
"semver": "^7.3.5"
}
}