-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
137 lines (137 loc) · 3.75 KB
/
Copy pathpackage.json
File metadata and controls
137 lines (137 loc) · 3.75 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
{
"name": "wp-classmap-watcher",
"displayName": "PHP Classmap Watcher",
"description": "Auto-rebuilds a PHP classmap file when classes are added, deleted or renamed — works with any PHP project",
"version": "1.1.0",
"publisher": "saurab-gupta",
"homepage": "https://marketplace.visualstudio.com/items?itemName=saurab-gupta.wp-classmap-watcher",
"repository": {
"type": "git",
"url": "https://github.com/saurab1996/wp-classmap-watcher"
},
"author": {
"name": "Saurab Gupta",
"url": "https://saurabgupta.in/"
},
"engines": {
"vscode": "^1.70.0"
},
"categories": [
"Programming Languages",
"Other"
],
"keywords":[
"php",
"classmap",
"autoloader",
"wordpress",
"performance"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"package": "rm -rf out && npm run compile && vsce package"
},
"contributes": {
"commands": [
{
"command": "wpClassmap.rebuild",
"title": "PHP: Rebuild Classmap(s)"
},
{
"command": "wpClassmap.addDirectory",
"title": "PHP: Add Classmap Directory"
},
{
"command": "wpClassmap.rebuildFromContext",
"title": "PHP: Rebuild Classmap"
}
],
"configuration": {
"title": "PHP Classmap Watcher",
"properties": {
"wpClassmap.directories": {
"type": "array",
"description": "Directories to scan — each gets its own classmap file.",
"items": {
"type": "object",
"required": [
"includesDir",
"outputFile"
],
"properties": {
"includesDir": {
"type": "string",
"description": "Full absolute path of the directory to scan"
},
"outputFile": {
"type": "string",
"description": "Full absolute path of the output classmap file"
},
"exclude": {
"type": "array",
"items": {
"type": "string"
},
"description": "Directory names to skip (e.g. [\"tests\", \"fixtures\"])",
"default": []
}
}
},
"default": [],
"examples": [
[
{
"includesDir": "/home/user/wp-content/plugins/my-plugin/includes",
"outputFile": "/home/user/wp-content/plugins/my-plugin/classmap.php",
"exclude": [
"tests",
"fixtures"
]
}
]
]
},
"wpClassmap.watchOnSave": {
"type": "boolean",
"default": false,
"description": "Also rebuild when a PHP file is saved."
},
"wpClassmap.exclude": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Global directory names to exclude from all scans. vendor, node_modules and .git are always excluded."
}
}
},
"menus": {
"explorer/context": [
{
"command": "wpClassmap.rebuildFromContext",
"when": "resourceExtname == .php || explorerResourceIsFolder",
"group": "phpClassmap@1"
}
],
"editor/context": [
{
"command": "wpClassmap.rebuildFromContext",
"when": "resourceExtname == .php",
"group": "phpClassmap@1"
}
]
}
},
"devDependencies": {
"@types/node": "^18.0.0",
"@types/vscode": "^1.70.0",
"@vscode/vsce": "^2.19.0",
"typescript": "^5.0.0"
}
}