-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
131 lines (131 loc) · 3.52 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
{
"name": "copy-json-path",
"publisher": "Malo",
"displayName": "Copy Json Path",
"description": "This extension allows you to copy and paste a jsonpath",
"icon": "assets/logo.png",
"repository": {
"url": "https://github.com/MaloPolese/copy-json-path/tree/main"
},
"version": "1.4.0",
"engines": {
"vscode": "^1.58.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:copy-json-path.copy"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "copy-json-path.copy",
"title": "%vscode-jsonpath.commands.copy%",
"group": "myGroup@1"
}
],
"keybindings": [
{
"command": "copy-json-path.copy",
"key": "cmd+alt+c",
"mac": "cmd+alt+c",
"linux": "ctrl+alt+c",
"windows": "ctrl+alt+c",
"when": "editorTextFocus && (editorLangId == 'json' || editorLangId == 'jsonc')"
}
],
"configuration": {
"title": "Copy Json Path",
"properties": {
"json.copyJsonPath.includeFileName": {
"type": "boolean",
"default": false,
"description": "Include the name of the json file at the beginning of the path"
},
"json.copyJsonPath.useBracketNotation": {
"type": "boolean",
"default": false,
"description": "Use bracket notation instead of dot notation"
},
"json.copyJsonPath.quote": {
"type": "string",
"default": "Double",
"enum": [
"Single",
"Double"
],
"description": "Use single or double quote in bracket notation",
"enumDescriptions": [
"Use single quote",
"Use double quote"
]
},
"json.copyJsonPath.output": {
"type": "string",
"default": "%PATH%",
"description": "Control the output of the path. %PATH% will be replaced by the path. You can add text before and after the path."
}
}
},
"menus": {
"editor/context": [
{
"when": "resourceLangId == json",
"command": "copy-json-path.copy",
"group": "copyPath"
},
{
"when": "resourceLangId == jsonc",
"command": "copy-json-path.copy",
"group": "copyPath"
}
]
}
},
"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",
"format": "prettier --check .",
"fix": "npm-run-all fix:*",
"fix:format": "prettier --write \"src/**/*.ts\" ",
"fix:lint": "npm run lint --fix",
"deploy": "vsce publish",
"prepare": "husky"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"devDependencies": {
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "14.x",
"@types/vscode": "^1.58.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.27.0",
"glob": "^7.1.7",
"husky": "^9.1.7",
"mocha": "^10.1.0",
"prettier": "2.3.2",
"typescript": "^4.4.0",
"vsce": "^2.15.0",
"vscode-test": "^1.5.2"
},
"overrides": {
"xml2js": "^0.5.0"
},
"dependencies": {
"jsonc-parser": "^3.0.0",
"npm-run-all": "^4.1.5"
}
}