-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
156 lines (156 loc) · 5.9 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
{
"name": "searchwpdocs",
"displayName": "Search WordPress Docs",
"description": "Search selected text in the WordPress Code Reference without leaving VSCode.",
"version": "3.0.1",
"publisher": "yogensia",
"author": {
"name": "Yogensia",
"email": "[email protected]",
"url": "https://www.yogensia.com/"
},
"license": "MIT",
"homepage": "https://github.com/yogensia/VSCodeSearchWPDocs",
"repository": {
"type": "git",
"url": "https://github.com/yogensia/VSCodeSearchWPDocs"
},
"bugs": {
"url": "https://github.com/yogensia/VSCodeSearchWPDocs/issues",
"email": "[email protected]"
},
"categories": [
"Other"
],
"keywords": [
"wordpress",
"documentation"
],
"main": "./out/extension.js",
"icon": "./assets/icon-128.png",
"engines": {
"vscode": "^1.86.0"
},
"activationEvents": [],
"contributes": {
"configuration": {
"type": "object",
"title": "Search WordPress Docs",
"properties": {
"searchwpdocs.cssTheme": {
"type": "string",
"enum": [
"monokai",
"one-dark"
],
"default": "one-dark",
"description": "Style WordPress documentation on a tab with the following theme."
},
"searchwpdocs.openResultsInTab": {
"type": "boolean",
"default": true,
"title": "Show search results in a VSCode Tab",
"description": "Results will be shown in a tab instead of opening in your default browser. This limits searches to the preferred documentation site, https://developer.wordpress.org/. If the search term is not recognized by this extension, Google's first result will be shown instead."
},
"searchwpdocs.site": {
"type": "string",
"default": "https://google.com/search?q=site:developer.wordpress.org ",
"description": "Url to use when performing a search. Only used when the extension doesn't recognize a search term or when the 'Show Results In Tab' option is disabled. Examples: 'https://codex.wordpress.org/', 'https://queryposts.com/function/', 'https://google.com/search?btnI&q=site:developer.wordpress.org '."
},
"searchwpdocs.showOnSideTab": {
"type": "boolean",
"default": true,
"description": "Results will appear on a panel to the right of the editor, instead of opening as a regular tab in your main view. You can always drag and drop tabs and reorder them as you wish once opened."
}
}
},
"commands": [
{
"command": "extension.searchCodex",
"title": "Search WordPress Docs..."
}
],
"menus": {
"editor/context": [
{
"command": "extension.searchCodex",
"when": "editorTextFocus && editorLangId == php",
"group": "4_search"
}
]
},
"keybindings": [
{
"command": "extension.searchCodex",
"key": "ctrl+alt+f",
"mac": "cmd+alt+f",
"when": "editorTextFocus && editorLangId == php"
}
]
},
"eslintConfig": {
"extends": "@yutengjing/eslint-config-typescript",
"ignorePatterns": [
"test-workspace"
]
},
"prettier": "@yutengjing/prettier-config",
"lint-staged": {
"*.{ts,json,md}": [
"eslint --fix",
"prettier --write"
]
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"scripts": {
"sass": "vite --open",
"compile:sass": "sass --no-source-map --style compressed styles/sass:out/styles",
"vscode:prepublish": "pnpm compile:sass && pnpm esbuild:base --minify",
"preinstall": "npx only-allow pnpm",
"postinstall": "stale-dep -u",
"prepare": "simple-git-hooks",
"clean": "npx rimraf -rf ./out",
"esbuild:base": "stale-dep && tsx scripts/esbuild.ts",
"esbuild:watch": "pnpm compile:sass && pnpm esbuild:base --sourcemap --watch",
"esbuild:analyze": "pnpm esbuild:base --minify --metafile --analyze && esbuild-visualizer --metadata ./meta.json --open",
"compile:test": "pnpm clean && tsc -b ./test/tsconfig.json",
"lint": "eslint src --ext ts",
"test": "stale-dep && pnpm compile:test && node ./out/test/runTests.js",
"package": "vsce package --no-dependencies",
"publish:vs-marketplace": "vsce publish --no-dependencies",
"publish:open-vsx": "ovsx publish --no-dependencies"
},
"dependencies": {
"axios": "^1.6.8",
"cheerio": "1.0.0-rc.12"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.20",
"@types/vscode": "^1.86.0",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^2.24.0",
"@yutengjing/eslint-config-typescript": "^0.5.2",
"@yutengjing/prettier-config": "^1.1.2",
"@yutengjing/release": "^0.2.0",
"@yutengjing/tsconfig-node": "^0.0.5",
"esbuild": "^0.20.1",
"esbuild-visualizer": "^0.6.0",
"eslint": "^8.57.0",
"glob": "^10.3.10",
"lint-staged": "^15.2.2",
"mocha": "^10.3.0",
"ovsx": "^0.8.3",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"sass": "^1.75.0",
"simple-git-hooks": "^2.9.0",
"stale-dep": "^0.7.0",
"tsx": "^4.7.1",
"typescript": "^5.3.3",
"vite": "^5.2.11"
}
}