-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
164 lines (164 loc) · 6.92 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
153
154
155
156
157
158
159
160
161
162
163
164
{
"name": "adblock",
"displayName": "Adblock/AdGuard/uBlock filters grammar",
"description": "VS code extension that adds support for ad blocking rules syntax.",
"version": "1.1.11",
"publisher": "adguard",
"icon": "icons/aglint_128x128.png",
"main": "./client/out/extension",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Programming Languages",
"Linters"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/AdguardTeam/VscodeAdblockSyntax.git"
},
"bugs": {
"url": "https://github.com/AdguardTeam/VscodeAdblockSyntax/issues"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Only syntax highlighting supported."
},
"virtualWorkspaces": {
"supported": "limited",
"description": "Only syntax highlighting supported. Linter uses Node.js filesystem API, which is not supported in virtual workspaces."
}
},
"contributes": {
"languages": [
{
"id": "adblock",
"aliases": [
"adblock",
"adguard",
"ublock"
],
"extensions": [
".txt"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "adblock",
"scopeName": "text.adblock",
"path": "./syntaxes/out/adblock.plist",
"embeddedLanguages": {
"source.js": "javascript"
}
}
],
"configuration": {
"type": "object",
"title": "Adblock",
"properties": {
"adblock.enableAglint": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enable or disable AGLint integration. If disabled, only syntax highlighting and other language features will be available."
},
"adblock.useExternalAglintPackages": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "If enabled, extension will search for AGLint installations in the system. If disabled, extension will use its own AGLint installation, which is included in the extension (integrated AGLint bundle). If you have AGLint installed in your system / project, it is recommended to enable this option in order to provide consistent results."
},
"adblock.packageManager": {
"scope": "resource",
"type": "string",
"enum": [
"npm",
"yarn",
"pnpm"
],
"enumDescriptions": [
"Node Package Manager",
"Yarn Package Manager",
"pnpm Package Manager"
],
"default": "npm",
"description": "Package manager to use for searching global AGLint installations. Set it to your preferred package manager."
}
}
}
},
"scripts": {
"build:grammar": "tsx tools/grammar-builder.ts",
"build:prod": "yarn clean && yarn build:grammar && yarn test:compile && yarn esbuild:client --minify && yarn esbuild:agtree --minify && yarn esbuild:aglint --minify && yarn esbuild:server --minify && yarn build:vsix",
"build:txt": "tsx tools/build-txt.ts",
"build:vsix": "mkdirp out && vsce package --yarn --out out/vscode-adblock.vsix",
"clean": "rimraf ./client/out && rimraf ./server/out && rimraf ./syntaxes/out && rimraf ./out",
"esbuild:aglint": "esbuild ./server/src/aglint.ts --bundle --outfile=server/out/aglint.js --format=cjs --platform=node --alias:@adguard/agtree=./agtree --external:./agtree",
"esbuild:agtree": "esbuild ./server/src/agtree.ts --bundle --outfile=server/out/agtree.js --format=cjs --platform=node",
"esbuild:client": "esbuild ./client/src/extension.ts --bundle --outfile=client/out/extension.js --format=cjs --platform=node --external:vscode",
"esbuild:server": "esbuild ./server/src/server.ts --bundle --outfile=server/out/server.js --format=cjs --platform=node --external:vscode --external:./agtree",
"extract-changelog": "node -r esbuild-register tools/changelog-extractor.ts",
"increment": "yarn version --patch --no-git-tag-version",
"lint": "yarn lint:ts && yarn lint:md",
"lint:md": "markdownlint .",
"lint:staged": "lint-staged",
"lint:ts": "eslint . --cache --ext .ts",
"postinstall": "cd client && yarn && cd ../server && yarn && cd ..",
"prepare": "husky install",
"test": "jest",
"test:compile": "tsc -p ./client --noEmit && tsc -p ./server --noEmit",
"watch:aglint": "yarn esbuild:aglint --sourcemap --watch",
"watch:agtree": "yarn esbuild:agtree --sourcemap --watch",
"watch:client": "yarn esbuild:client --sourcemap --watch",
"watch:grammar": "sane \"tsx tools/grammar-builder.ts\" --glob=syntaxes/adblock.yaml-tmlanguage",
"watch:server": "yarn esbuild:server --sourcemap --watch"
},
"devDependencies": {
"@swc/core": "^1.3.76",
"@swc/jest": "^0.2.28",
"@types/fs-extra": "^11.0.1",
"@types/jest": "^29.5.1",
"@types/node": "^18.11.18",
"@types/plist": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@vscode/vsce": "^2.22.0",
"commander": "^11.1.0",
"concurrently": "^8.0.1",
"esbuild": "^0.17.17",
"esbuild-register": "^3.5.0",
"escape-string-regexp": "^5.0.0",
"eslint": "^8.46.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-import-newlines": "^1.3.4",
"eslint-plugin-jsdoc": "^46.4.6",
"fs-extra": "^11.1.1",
"husky": "^8.0.3",
"jest": "^29.6.2",
"jsdoc": "^4.0.2",
"lint-staged": "^15.1.0",
"markdownlint": "^0.30.0",
"markdownlint-cli": "^0.35.0",
"mkdirp": "^3.0.1",
"ovsx": "^0.8.3",
"plist": "^3.0.6",
"remark-inline-links": "^7.0.0",
"remark-parse": "^11.0.0",
"remark-stringify": "^11.0.0",
"rimraf": "^4.1.2",
"sane": "^5.0.1",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"tsx": "^4.7.0",
"typescript": "^4.9.5",
"unified": "^11.0.4",
"vscode-oniguruma": "^2.0.1",
"vscode-textmate": "^9.0.0",
"yaml": "^2.2.2"
}
}