-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
309 lines (309 loc) · 10.8 KB
/
Copy pathpackage.json
File metadata and controls
309 lines (309 loc) · 10.8 KB
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
{
"$schema": "https://raw.githubusercontent.com/wraith13/vscode-schemas/master/en/latest/schemas/vscode-extensions.json",
"name": "achievements",
"displayName": "Achievements",
"description": "Add achievements to your coding experience, track and reward your coding journey",
"keywords": [
"gamification",
"productivity",
"streaks",
"motivation",
"coding stats",
"time tracking"
],
"publisher": "BoxBoxJason",
"icon": "icon.png",
"author": {
"name": "BoxBoxJason"
},
"version": "0.7.0",
"engines": {
"vscode": "^1.125.0"
},
"categories": [
"Visualization",
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"extensionDependencies": [
"vscode.git"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "achievements.enable",
"title": "Achievements: Enable / Disable"
},
{
"command": "achievements.settings",
"title": "Achievements: Settings"
},
{
"command": "achievements.show",
"title": "Achievements: Show"
},
{
"command": "achievements.statusBarMenu",
"title": "Achievements: Quick Menu"
}
],
"walkthroughs": [
{
"id": "achievements.gettingStarted",
"title": "Get Started with Achievements",
"description": "Track your coding journey and earn achievements as you work.",
"icon": "icon.png",
"steps": [
{
"id": "showcase",
"title": "Install Achievements and see what it can do",
"description": "A quick look at the Achievements panel.",
"media": {
"image": "docs/achievements.gif",
"altText": "Extension Webview Illustration"
},
"completionEvents": [
"extensionInstalled:boxboxjason.achievements"
]
},
{
"id": "openPanel",
"title": "Open your Achievements panel",
"description": "See your progress, profile, and every achievement's requirements in one place.\n[Open Achievements](command:achievements.show)",
"media": {
"markdown": "docs/walkthroughs/getting-started/open-panel.md"
},
"completionEvents": [
"onCommand:achievements.show"
]
},
{
"id": "setUsername",
"title": "Set your username",
"description": "Your username is shown on your profile in the Achievements panel.\n[Open Settings](command:achievements.settings)",
"media": {
"markdown": "docs/walkthroughs/getting-started/username.md"
},
"completionEvents": [
"onSettingChanged:achievements.username"
]
},
{
"id": "configure",
"title": "Choose what gets tracked",
"description": "Every listener can be turned off individually: nothing here is all-or-nothing.\n[Open Settings](command:achievements.settings)",
"media": {
"markdown": "docs/walkthroughs/getting-started/configure.md"
},
"completionEvents": [
"onCommand:achievements.settings"
]
},
{
"id": "firstAchievement",
"title": "Earn your first achievement",
"description": "Keep coding as usual: achievements unlock automatically and a notification will let you know.",
"media": {
"markdown": "docs/walkthroughs/getting-started/first-achievement.md"
}
}
]
}
],
"configuration": [
{
"title": "achievements",
"properties": {
"achievements.enabled": {
"type": "boolean",
"default": true,
"description": "Enable or disable the Achievements extension."
},
"achievements.logLevel": {
"type": "string",
"default": "INFO",
"enum": [
"DEBUG",
"INFO",
"WARN",
"ERROR",
"FATAL"
],
"description": "Set the log level for the extension."
},
"achievements.notifications": {
"type": "boolean",
"default": true,
"description": "Enable or disable Achievements extension notifications."
},
"achievements.logDirectory": {
"type": "string",
"default": "",
"description": "Specify the directory for log files.",
"pattern": "^(?:[a-zA-Z]:\\\\|/)(?:[^<>:\"|?*]+/)*[^<>:\"|?*]*$",
"patternErrorMessage": "The log directory must be an absolute path with valid characters."
},
"achievements.username": {
"type": "string",
"default": "Guest",
"description": "Set your username for the Achievements extension.",
"pattern": "^(?!\\s*$).+",
"patternErrorMessage": "Username cannot be empty or consist only of whitespace."
},
"achievements.listeners.debug": {
"type": "boolean",
"default": true,
"description": "Enable or disable debug events listeners for the Achievements extension."
},
"achievements.listeners.extensions": {
"type": "boolean",
"default": true,
"description": "Enable or disable extensions / themes events listeners for the Achievements extension. This only tracks locally installed/enabled extensions and does not make any network request; see achievements.checkOutdatedExtensions for the opt-in Marketplace check."
},
"achievements.checkOutdatedExtensions": {
"type": "boolean",
"default": false,
"description": "Opt-in: periodically send the IDs of your installed (non-builtin) extensions to the VS Marketplace (marketplace.visualstudio.com) to check for outdated versions and award related achievements. Disabled by default since this is the only network request made by this extension."
},
"achievements.listeners.files": {
"type": "boolean",
"default": true,
"description": "Enable or disable file events listeners for the Achievements extension."
},
"achievements.listeners.git": {
"type": "boolean",
"default": true,
"description": "Enable or disable git events listeners for the Achievements extension."
},
"achievements.listeners.shortcuts": {
"type": "boolean",
"default": true,
"description": "Enable or disable paste shortcut events listeners for the Achievements extension."
},
"achievements.listeners.tabs": {
"type": "boolean",
"default": true,
"description": "Enable or disable tabs events listeners for the Achievements extension."
},
"achievements.listeners.tasks": {
"type": "boolean",
"default": true,
"description": "Enable or disable tasks events listeners for the Achievements extension."
},
"achievements.listeners.time": {
"type": "boolean",
"default": true,
"description": "Enable or disable time events listeners for the Achievements extension."
},
"achievements.ignore.files": {
"type": "array",
"default": [
"package-lock.json",
"yarn.lock",
"pnpm-lock.yaml",
"bun.lockb",
".ds_store",
"thumbs.db"
],
"items": {
"type": "string"
},
"description": "File names ignored by file-related achievements (case-insensitive)."
},
"achievements.ignore.directories": {
"type": "array",
"default": [
".git",
".svn",
".hg",
".jj",
"node_modules"
],
"items": {
"type": "string"
},
"description": "Directory names ignored by file-related achievements (case-sensitive)."
}
}
}
]
},
"scripts": {
"compile": "npm run clean && npm run tailwind && ts-node esbuild.ts",
"build": "npm run clean && npm run tailwind && npm run check-types && npm run lint && ts-node esbuild.ts --production",
"package": "npm run build && vsce package",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "npm run clean && npx tsc && vscode-test --extensionDevelopmentPath=. --extensionTestsPath=dist/test/index.js",
"watch:esbuild": "npm run tailwind && ts-node esbuild.ts --watch",
"watch:tsc": "tsc --noEmit --watch --preserveWatchOutput",
"watch-tests": "tsc --noEmit --watch --preserveWatchOutput",
"test:coverage": "npm run clean && rm -rf .nyc_output dist-cov && npx tsc && npx nyc instrument dist dist-cov --include=\"**/*.js\" --exclude=\"**/test/**\" && cp -r dist-cov/* dist/ && node dist/test/runTest.js && npx nyc report --reporter=text-summary --reporter=text",
"clean": "rm -rf dist dist-cov .nyc_output",
"tailwind": "npx tailwindcss -i ./src/views/style/main.css -o ./dist/style/main.css --minify",
"changelog": "git-cliff -c cliff.toml -o CHANGELOG.md"
},
"devDependencies": {
"@eslint/js": "10.0.1",
"@tailwindcss/cli": "4.3.2",
"@types/mocha": "10.0.10",
"@types/node": "26.1.1",
"@types/proper-lockfile": "4.1.4",
"@types/react": "19.2.17",
"@types/react-dom": "19.2.3",
"@types/sql.js": "1.4.11",
"@types/vscode": "1.125.0",
"@typescript-eslint/eslint-plugin": "8.64.0",
"@typescript-eslint/parser": "8.64.0",
"@vscode/test-cli": "0.0.15",
"@vscode/test-electron": "3.0.0",
"@vscode/vsce": "3.9.2",
"esbuild": "0.28.1",
"eslint": "10.7.0",
"eslint-plugin-promise": "7.3.0",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "7.1.1",
"nyc": "18.0.0",
"ovsx": "1.0.2",
"ts-node": "10.9.2",
"typescript": "6.0.3"
},
"dependencies": {
"proper-lockfile": "4.1.2",
"react": "19.2.7",
"react-dom": "19.2.7",
"sql.js": "1.14.1"
},
"files": [
"dist",
"assets",
"docs",
"README.md",
"CHANGELOG.md",
"LICENSE.md",
"icon.png",
"node_modules/sql.js/dist/sql-wasm.wasm",
"node_modules/react/**",
"node_modules/react-dom/**"
],
"repository": {
"type": "git",
"url": "https://github.com/BoxBoxJason/achievements"
},
"nyc": {
"all": true,
"include": [
"src/**/*.ts"
],
"exclude": [
"src/test/**"
],
"reporter": [
"text",
"html"
]
}
}