-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
152 lines (152 loc) · 5.35 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
{
"name": "mapbox-preview",
"displayName": "Mapbox Preview",
"description": "Preview styles for Mapbox GL JS in a webview panel",
"version": "0.7.1",
"publisher": "AlexanderBelokon",
"private": true,
"license": "bsd-2-clause",
"icon": "assets/icon.png",
"galleryBanner": {
"color": "#0E1836",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/AlexanderBelokon/vscode-mapbox-preview"
},
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Visualization"
],
"keywords": [
"mapbox",
"mapbox-gl-js",
"style",
"preview"
],
"activationEvents": [
"onWebviewPanel:mapboxPreview"
],
"main": "./out/extension.js",
"contributes": {
"configuration": [
{
"id": "mapboxPreview",
"title": "Mapbox Preview",
"order": 1,
"properties": {
"mapboxPreview.token": {
"type": "string",
"editPresentation": "multilineText",
"description": "Mapbox API token"
},
"mapboxPreview.version": {
"type": "string",
"default": "3.0.1",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[+-][A-Za-z0-9+.-]+(?:.\\d+)?)?$",
"patternErrorMessage": "Must be a valid SemVer string",
"description": "Version of Mapbox GL JS to use"
},
"mapboxPreview.refreshOnKeystroke": {
"type": "boolean",
"default": false,
"description": "Controls whether style should be updated every time you press a key in the style editor"
},
"mapboxPreview.updateThrottle": {
"type": "number",
"default": "100",
"description": "Minimum interval between style updates in milliseconds"
},
"mapboxPreview.showCoordinates": {
"type": "boolean",
"default": false,
"description": "Controls whether the coordinate editor is visible in the preview panel"
},
"mapboxPreview.lightPresets": {
"type": "array",
"items": {
"type": "string",
"enum": [
"dawn",
"day",
"dusk",
"night"
]
},
"description": "Select one or more light preset option if using the Mapbox Standard Style. Only works with the Standard style with light presets, not custom styles.",
"uniqueItems": true,
"validationErrorMessage": "Duplicate options are not allowed",
"when": {
"not": {
"properties": {
"mapboxPreview.version": {
"pattern": "^(?:3\\.[0-9]+\\.[0-9]+|[4-9]\\d*\\.\\d+\\.\\d+)$"
}
}
}
}
}
}
}
],
"commands": [
{
"command": "mapboxPreview.start",
"title": "Start",
"category": "Mapbox Preview"
},
{
"command": "mapboxPreview.increase",
"title": "Increase",
"category": "Mapbox Preview"
},
{
"command": "mapboxPreview.decrease",
"title": "Decrease",
"category": "Mapbox Preview"
}
],
"keybindings": [
{
"command": "mapboxPreview.start",
"key": "ctrl+opt+m",
"win": "ctrl+alt+m",
"when": "editorTextFocus"
},
{
"command": "mapboxPreview.increase",
"key": "ctrl+opt+up",
"win": "ctrl+alt+up",
"when": "editorTextFocus"
},
{
"command": "mapboxPreview.decrease",
"key": "ctrl+opt+down",
"win": "ctrl+alt+down",
"when": "editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint . --ext .ts,.tsx",
"watch": "tsc -w -p ./",
"pack": "vsce package",
"publish": "vsce publish"
},
"devDependencies": {
"@types/node": "^16.11.7",
"@types/node-fetch": "^2.6.9",
"@types/vscode": "^1.47.0",
"@types/vscode-webview": "^1.57.0",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"@typescript-eslint/parser": "^5.30.0",
"eslint": "^8.13.0",
"typescript": "^4.7.2",
"vsce": "^2.11.0"
}
}