-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
130 lines (130 loc) · 5 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
{
"name": "nba-ticker",
"displayName": "NBA Ticker (Live Scores)",
"description": "Live NBA scores in your status bar.",
"version": "0.6.4",
"engines": {
"vscode": "^1.78.0"
},
"publisher": "omkarmoghe",
"license": "See license in LICENSE.",
"categories": [
"Other"
],
"keywords": [
"nba",
"live",
"scores",
"ticker",
"basketball"
],
"icon": "images/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/omkarmoghe/NBA-Ticker.git"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "nba-ticker.openGame",
"title": "NBA Ticker: Open Game"
}
],
"configuration": {
"title": "NBA Ticker",
"properties": {
"nba-ticker.format": {
"markdownDescription": "Specifies how the game info should be displayed. Defaults to `\"${vTeam} ${vScore} - ${hScore} ${hTeam}, ${status}\"`, which looks like `GSW 42 - 24 LAL, 4:20 1st`. The available wildcards are:\n- `${vTeam}`: The visiting team's abbreviated name, (e.g. `\"GSW\"`)\n- `${vScore}`: The visiting team's score\n- `${hTeam}`: The home team's abbreviated name, (e.g. `\"LAL\"`)\n- `${hScore}`: The home team's score\n- `${status}`: The status of the game\n - If the game hasn't started yet, this will be the scheduled start time (e.g. `\"9:30 PM\"`) in your local UTC offset.\n - If the game is ongoing, this will be either `\"<TIME LEFT IN PERIOD> <PERIOD>\"` (e.g. `\"4:20 1st\"`), `\"End of 1st\"`, or `\"Halftime\"`\n - If the game is over, this will be `\"Final\"`\n - If the status is unknown, this will be `\"TBD\"`",
"type": "string",
"default": "${vTeam} ${vScore} - ${hScore} ${hTeam}, ${status}"
},
"nba-ticker.hideFinalScores": {
"markdownDescription": "If checked, final scores will be hidden from the status bar. Final scores will always be visible in the status bar hover when the `hover` option is set to `scoreboard`. Defaults to `false`.",
"type": "boolean",
"default": false
},
"nba-ticker.hover": {
"markdownDescription": "Specifies what to show when hovering over the ticker. Options are `\"details\"` (details about the current game) or `\"scoreboard\"` (all scores).",
"type": "string",
"enum": [
"details",
"scoreboard"
],
"enumDescriptions": [
"Details about the current game such as team records, location, etc.",
"Scoreboard showing all of today's games"
],
"default": "scoreboard"
},
"nba-ticker.pollDelaySeconds": {
"markdownDescription": "Specifies how long to wait before fetching new game data from the API. Defaults to `60` seconds, i.e. every minute. Allowed values are [`10`, `600`].",
"type": "number",
"default": 60,
"minimum": 10,
"maximum": 600
},
"nba-ticker.priority": {
"markdownDescription": "Specifies the ticker's priority relative to other items in the status bar. **Higher values are shows more to the left.**",
"type": "number",
"default": 0,
"minimum": 0
},
"nba-ticker.side": {
"description": "Specifies which side of the status bar to display the ticker. Options are `\"left\"` or `\"right\"`.",
"type": "string",
"enum": [
"left",
"right"
],
"enumDescriptions": [
"Display the ticker on the left side of the status bar.",
"Display the ticker on the right side of the status bar."
],
"default": "left"
},
"nba-ticker.teamFilter": {
"markdownDescription": "Specifies which teams games are shown for; other teams are ignored. All teams will be shown if the array is empty (`[]`). **Use abbreviated team names** (e.g. `[\"GSW\", \"LAL\"]`).",
"type": "array",
"default": [],
"maxItems": 30
},
"nba-ticker.tickerDelaySeconds": {
"markdownDescription": "Specifies how many seconds to show each score. Defaults to `10` seconds. Allowed values are [`1`, `60`].",
"type": "number",
"default": 10,
"minimum": 1,
"maximum": 60
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1",
"@types/mocha": "^10.0",
"@types/node": "^20.2",
"@types/vscode": "^1.78",
"@typescript-eslint/eslint-plugin": "^6.0",
"@typescript-eslint/parser": "^6.0",
"eslint": "^8.40",
"glob": "^10.2",
"mocha": "^10.2",
"typescript": "^5.0",
"vscode-test": "^1.4"
},
"dependencies": {
"axios": "^1.4",
"dayjs": "^1.11"
}
}