-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
165 lines (165 loc) · 4.47 KB
/
package.json
File metadata and controls
165 lines (165 loc) · 4.47 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
{
"name": "codesense",
"displayName": "CodeSense - Baseline Web Compatibility",
"description": "Baseline-powered web compatibility scanner and polyfill manager for modern web development",
"version": "0.1.0",
"type": "module",
"publisher": "Recursion-Labs",
"repository": {
"type": "git",
"url": "https://github.com/Recursion-Labs/codesense"
},
"engines": {
"vscode": "^1.104.0"
},
"categories": [
"Linters",
"Other"
],
"keywords": [
"baseline",
"web-features",
"compatibility",
"polyfill",
"browser-support"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.cjs",
"contributes": {
"commands": [
{
"command": "CodeSense.scanProject",
"title": "🔍 Scan Project for Baseline Compatibility",
"category": "CodeSense"
},
{
"command": "CodeSense.scanFile",
"title": "🔍 Scan Current File",
"category": "CodeSense"
},
{
"command": "CodeSense.generateReport",
"title": "📊 Generate Compatibility Report",
"category": "CodeSense"
},
{
"command": "CodeSense.injectPolyfills",
"title": "💉 Inject Required Polyfills",
"category": "CodeSense"
},
{
"command": "CodeSense.showDashboard",
"title": "📈 Show Compatibility Dashboard",
"category": "CodeSense"
}
],
"configuration": {
"title": "CodeSense",
"properties": {
"CodeSense.autoScan": {
"type": "boolean",
"default": false,
"description": "Automatically scan files on save"
},
"CodeSense.baselineLevel": {
"type": "string",
"enum": [
"widely",
"newly",
"all"
],
"default": "newly",
"description": "Minimum Baseline level to consider safe"
},
"CodeSense.excludePatterns": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"node_modules/**",
"dist/**",
"build/**"
],
"description": "File patterns to exclude from scanning"
},
"CodeSense.polyfillStrategy": {
"type": "string",
"enum": [
"auto",
"manual",
"disabled"
],
"default": "manual",
"description": "Polyfill injection strategy"
}
}
},
"menus": {
"explorer/context": [
{
"command": "CodeSense.scanProject",
"group": "CodeSense"
}
],
"editor/context": [
{
"command": "CodeSense.scanFile",
"group": "CodeSense"
}
]
}
},
"bin": {
"CodeSense": "./dist/cli.js"
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p tsconfig.test.json",
"watch-tests": "tsc -p tsconfig.test.json -w",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test",
"build:cli": "tsc src/cli.ts --outDir dist --target ES2020 --module commonjs",
"prepublishOnly": "npm run package && npm run build:cli"
},
"dependencies": {
"@babel/parser": "^7.28.4",
"@babel/traverse": "^7.28.4",
"@babel/types": "^7.28.4",
"@types/babel__traverse": "^7.28.0",
"chokidar": "^3.6.0",
"compute-baseline": "^0.4.0",
"glob": "^11.0.3",
"minimatch": "^9.0.5",
"postcss": "^8.5.6",
"postcss-selector-parser": "^6.1.2",
"postcss-value-parser": "^4.2.0",
"web-features": "^3.3.0",
"zod": "^4.1.11"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^22.18.8",
"@types/sinon": "^17.0.4",
"@types/vscode": "^1.104.0",
"@typescript-eslint/eslint-plugin": "^8.45.0",
"@typescript-eslint/parser": "^8.45.0",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.6.2",
"esbuild": "^0.25.10",
"eslint": "^9.37.0",
"npm-run-all": "^4.1.5",
"sinon": "^21.0.0",
"typescript": "^5.9.3"
}
}