-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
175 lines (175 loc) · 4.2 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
{
"name": "handydandy-notebook",
"publisher": "jakearl",
"displayName": "Handy Dandy Notebook",
"description": "Notebook for evaluating scripts in a variety of languages",
"version": "0.1.4",
"repository": {
"url": "https://github.com/JacksonKearl/vscode-handydandy-notebook"
},
"icon": "notebook.png",
"engines": {
"vscode": "^1.57.0"
},
"categories": [
"Notebooks"
],
"activationEvents": [
"onCommand:handydandy-notebook.newNotebook",
"onCommand:handydandy-notebook.openInNotebook",
"onNotebook:handydandy-notebook",
"onNotebook:handydandy-notebook-md"
],
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"test": "node ./out/test/runTest.js"
},
"contributes": {
"configuration": {
"type": "object",
"title": "Handy Dandy Notebook",
"properties": {
"handydandy-notebook.defaultLang": {
"type": "string",
"default": "javascript",
"description": "the language ID to use when creating a new untitled notebook with no selections"
},
"handydandy-notebook.dispatch": {
"type": "object",
"default": {
"python": [
"python",
[
"-c",
"${code}"
]
],
"typescript": [
"ts-node",
[
"-T",
"--skip-project",
"-e",
"${code}"
]
],
"javascript": [
"node",
[
"-e",
"(async () => { ${code} } )()"
]
],
"ruby": [
"ruby",
[
"-e",
"${code}"
]
],
"shellscript": [
"bash",
[
"-c",
"${code}"
]
]
},
"description": "Mapping from cell language identifiers to the commands that should be invoked to execute code in that languge, along with the arguments that should be passed to those commands, and optionally environment variables for execution",
"additionalProperties": {
"type": "array",
"minItems": 2,
"maxItems": 3,
"items": [
{
"type": "string",
"description": "Program to execute (node, python3, etc.)"
},
{
"type": "array",
"description": "Array of arguments to pass to the program. The token \"${code}\" in an argument will be replaced with the cell contents, and \"${code-path}\" will be replaced with a path to the cell's contents on disk",
"items": {
"description": "Argument to pass to the program. ${code} will be replaced with the cell contents, ${code-path} will be replaced with a path to the cell's contents on disk",
"type": "string"
}
},
{
"type": "object",
"description": "Environment variables to pass to the execution"
}
]
}
}
}
},
"commands": [
{
"title": "New Handy Dandy Notebook",
"command": "handydandy-notebook.newNotebook",
"shortTitle": "Handy Dandy Notebook"
},
{
"title": "Open in Handy Dandy Notebook",
"command": "handydandy-notebook.openInNotebook"
}
],
"menus": {
"commandPalette": [
{
"command": "handydandy-notebook.openInNotebook",
"when": "editorLangId == markdown"
}
],
"file/newFile": [
{
"group": "notebook",
"command": "handydandy-notebook.newNotebook"
}
]
},
"notebooks": [
{
"type": "handydandy-notebook",
"displayName": "Handy Dandy Notebook",
"priority": "default",
"selector": [
{
"filenamePattern": "*.hdnb"
}
]
},
{
"type": "handydandy-notebook-md",
"displayName": "Handy Dandy Notebook",
"priority": "option",
"selector": [
{
"filenamePattern": "*.{md,markdown}"
}
]
}
]
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^13.11.0",
"@types/user-home": "^2.0.0",
"@types/vscode": "1.57.0",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"eslint": "^6.8.0",
"glob": "^7.1.6",
"mocha": "^7.1.2",
"typescript": "^4.0.0",
"vscode-test": "^1.3.0"
},
"dependencies": {
"user-home": "^2.0.0"
}
}