-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
197 lines (197 loc) · 7.47 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
190
191
192
193
194
195
196
197
{
"name": "jsonpath-notebook",
"publisher": "tschranz",
"displayName": "JSONPath Notebook",
"description": "Run JSONPath queries inside Notebooks",
"icon": "images/icon.png",
"author": {
"name": "Tobias Schranz",
"url": "https://github.com/mesarth"
},
"repository": {
"type": "git",
"url": "https://github.com/mesarth/JSONPath-Notebook/"
},
"version": "2.3.0",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Notebooks",
"Other"
],
"keywords": [
"jsonpath",
"json path",
"json query",
"notebook",
"json",
"query"
],
"activationEvents": [
"workspaceContains:**/*.json",
"workspaceContains:**/*.jsonpath-notebook"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "JSONPath",
"aliases": [
"JSONPath"
],
"extensions": [],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "JSONPath",
"scopeName": "source.jsonpath",
"path": "./syntaxes/jsonpath.tmLanguage.json"
}
],
"notebooks": [
{
"type": "jsonpath-notebook",
"displayName": "JSONPath Notebook",
"selector": [
{
"filenamePattern": "*.jsonpath-notebook"
}
]
}
],
"commands": [
{
"command": "jsonpath-notebook.openNewNotebook",
"icon": "$(file)",
"title": "Open new Notebook",
"category": "JSONPath Notebook"
},
{
"command": "jsonpath-notebook.welcome",
"icon": "$(info)",
"title": "Get Started",
"category": "JSONPath Notebook"
}
],
"menus": {
"file/newFile": [
{
"command": "jsonpath-notebook.openNewNotebook"
}
]
},
"configuration": {
"title": "JSONPath Notebook",
"properties": {
"jsonpath-notebook.useRelativePaths": {
"type": "boolean",
"default": true,
"description": "Save relative paths instead of absolute paths for input .json files (context) in notebook file."
},
"jsonpath-notebook.defaultSyntaxMode": {
"type": "string",
"default": "Standard syntax",
"markdownDescription": "Sets the **default syntax mode** for new notebook cells. The syntax mode can be changed for each notebook cell by clicking on the respective icon in the cell's status bar.\n\nStandard syntax mode allows only standard-compliant JSONPath syntax. Extended syntax mode allows additional non-standard syntax, such as the keys selector `~` or the current key identifier `#`.\n\nTake a look at the [JSON P3 documentation](https://jg-rp.github.io/json-p3/guides/jsonpath-extra) for more information about the supported syntax.",
"enum": [
"Extended syntax",
"Standard syntax"
],
"enumDescriptions": [
"Extended syntax: Allows additional non-standard syntax. This may break compatibility with other JSONPath implementations.",
"Standard syntax: Allows only standard compliant JSONPath syntax."
]
}
}
},
"walkthroughs": [
{
"id": "jsonpathNotebookWelcome",
"title": "Get Started with JSONPath Notebook",
"description": "Your first steps to set up a notebook with all the features that the JSONPath Notebook Extension has to offer!",
"steps": [
{
"id": "create",
"title": "Create or Open a JSONPath Notebook",
"description": "Right click in the file explorer and create a new file with an .jsonpath-notebook extension. Or, open the [Command Palette](command:workbench.action.showCommands) and run the command \n**JSONPath Notebook: Open new Notebook**.\n[Open new JSONPath Notebook](command:toSide:jsonpath-notebook.openNewNotebook)\n If you have an existing notebook file, you can just open it.",
"completionEvents": [
"onCommand:jsonpath-notebook.openNewNotebook"
],
"media": {
"image": "images/create-notebook.gif",
"altText": "Create new notebook"
}
},
{
"id": "queries",
"title": "Add and Execute JSONPath queries",
"description": "To add a new JSONPath query, add a new code cell to the notebook by pressing the\n **+ Code** button or run the command **Notebook: Insert Code Cell Above/Below**.\n\n To run a JSONPath cell press the $(notebook-execute) button or run the command **Notebook: Execute Cell**.\nTo run all cells in a notebook press the $(notebook-execute-all) button or run the command **Notebook: Run All**.\n[Read about the JSONPath Syntax](https://github.com/mesarth/JSONPath-Notebook#jsonpath-syntax)",
"media": {
"image": "images/intro.gif",
"altText": "Add and Execute JSONPath queries"
}
},
{
"id": "context",
"title": "Select the Input File",
"description": "JSONPath Notebook tries to automatically figure out which **.json** input file you want the query to run on.\nIf there is a single .json file open in the editor, it will be selected automatically. Otherwise, you will be asked to select a file. \n\nThe input file can be changed for each cell by clicking on the corresponding button in the lower right of the cell.",
"media": {
"image": "images/context.gif",
"altText": "Select the Input File"
}
},
{
"id": "markdown",
"title": "Create a Markdown Cell",
"description": "JSONPath Notebook supports Markdown formatted cells. To add a new Markdown cell press the\n **+ Markdown** button or run the command **Notebook: Insert Markdown Cell Above/Below**.\n For an introduction to the Markdown syntax see [Github Markdown Guide](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code).",
"media": {
"image": "images/markdown.gif",
"altText": "Create a Markdown Cell"
}
},
{
"id": "learnMore",
"title": "Learn more!",
"description": "Explore all the features the JSONPath Notebook Extension has to offer by checking out the documentation.\n[Learn more](https://github.com/mesarth/JSONPath-Notebook/)",
"media": {
"markdown": "/resources/empty.md"
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"package": "vsce package",
"deploy": "vsce publish --skip-duplicate"
},
"devDependencies": {
"@types/chai": "^4.3.5",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "20.2.5",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vscode/test-electron": "^2.3.2",
"@vscode/vsce": "^2.24.0",
"chai": "^4.3.7",
"eslint": "^8.41.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^5.1.3"
},
"dependencies": {
"json-p3": "^1.2.0",
"upath": "^2.0.1"
},
"packageManager": "[email protected]"
}