-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
215 lines (215 loc) · 7.58 KB
/
package.json
File metadata and controls
215 lines (215 loc) · 7.58 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
{
"name": "rename-angular-component",
"displayName": "Rename Angular Component",
"description": "Rename Angular Components, Directives, Pipes and Services",
"publisher": "tomwhite007",
"version": "4.4.1",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/tomwhite007/rename-angular-component.git"
},
"homepage": "https://github.com/tomwhite007/rename-angular-component#readme",
"icon": "assets/rename-angular-component-icon.png",
"galleryBanner": {
"color": "#373436",
"theme": "dark"
},
"engines": {
"vscode": "^1.99.0"
},
"categories": [
"Other"
],
"keywords": [
"angular",
"rename",
"refactor",
"component",
"directive",
"service",
"selector",
"relative",
"paths"
],
"extensionKind": [
"ui",
"workspace"
],
"main": "./dist/extension.js",
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "rename-angular-component.renameComponent",
"title": "Rename Angular Component"
},
{
"command": "rename-angular-component.renameDirective",
"title": "Rename Angular Directive"
},
{
"command": "rename-angular-component.renameService",
"title": "Rename Angular Service"
},
{
"command": "rename-angular-component.renameGuard",
"title": "Rename Angular Route Guard"
},
{
"command": "rename-angular-component.renameModule",
"title": "Rename Angular Module"
},
{
"command": "rename-angular-component.renameFile",
"title": "Rename Angular file"
},
{
"command": "rename-angular-component.showWhatsNew",
"title": "Rename Angular Component: Show the current What's New screen"
},
{
"command": "rename-angular-component.disableWhatsNew",
"title": "Rename Angular Component: Disable What's New popup"
},
{
"command": "rename-angular-component.resetWhatsNew",
"title": "Rename Angular Component: Show What's New screen on startup (reset)"
},
{
"command": "rename-angular-component.renameAllSuffixes",
"title": "Rename all Angular suffixes to v20 styleguide"
},
{
"command": "rename-angular-component.openSuffixRemovalReadme",
"title": "Rename Angular Component: Open Angular 20+ Suffix Removal Guide"
}
],
"menus": {
"commandPalette": [
{
"command": "rename-angular-component.showWhatsNew",
"when": "true"
},
{
"command": "rename-angular-component.renameAllSuffixes",
"when": "renameAngularComponent.isAngularProject"
}
],
"explorer/context": [
{
"when": "renameAngularComponent.isAngularProject && resourceFilename =~ /^.+\\.component\\.(spec.ts|scss|css|sass|less|html|ts)$/",
"command": "rename-angular-component.renameComponent",
"group": "navigation"
},
{
"when": "renameAngularComponent.isAngularProject && resourceFilename =~ /^.+\\.directive\\.(spec.ts|ts)$/",
"command": "rename-angular-component.renameDirective",
"group": "navigation"
},
{
"when": "renameAngularComponent.isAngularProject && resourceFilename =~ /^.+\\.service\\.(spec.ts|ts)$/",
"command": "rename-angular-component.renameService",
"group": "navigation"
},
{
"when": "renameAngularComponent.isAngularProject && resourceFilename =~ /^.+\\.guard\\.(spec.ts|ts)$/",
"command": "rename-angular-component.renameGuard",
"group": "navigation"
},
{
"when": "renameAngularComponent.isAngularProject && resourceFilename =~ /^.+\\.module\\.(spec.ts|ts)$/",
"command": "rename-angular-component.renameModule",
"group": "navigation"
},
{
"when": "renameAngularComponent.isAngularProject && resourceFilename =~ /^((?!\\.component\\.|\\.directive\\.|\\.service\\.|\\.guard\\.|\\.module\\.).)+\\.(spec\\.ts|scss|css|sass|less|html|ts)$/",
"command": "rename-angular-component.renameFile",
"group": "navigation"
}
]
},
"configuration": {
"type": "object",
"title": "Rename Angular Component configuration",
"properties": {
"renameAngularComponent.debugLog": {
"type": "boolean",
"default": false,
"description": "Create debug log file to submit with new issue post"
},
"renameAngularComponent.useLocalDirectPaths": {
"type": "boolean",
"default": true,
"description": "Update imports/exports with direct local paths even if wildcard path exists"
},
"renameAngularComponent.followAngular20FolderAndSelectorNamingConvention": {
"type": "boolean",
"default": false,
"description": "Since Angular 20.x, CLI generated folder names include any dot-suffix in the folder name, and the selector - which breaks the build. \re.g. `my-component.component.ts` will be in a folder called `my-component.component/`. \rSet this to false to generate the folder name, and selector without the dot-suffix."
},
"renameAngularComponent.projectUsesStandaloneComponentsOnly": {
"type": "boolean",
"default": true,
"description": "Untick this if your project uses modules. Then all selectors will be updated in templates, instead of just the Components that import the renamed Component."
},
"renameAngularComponent.showWhatsNewPopup": {
"type": "boolean",
"default": true,
"description": "Show the 'What's New' screen when the extension is updated to a new version."
},
"renameAngularComponent.showSuffixRemovalReadme": {
"type": "boolean",
"default": true,
"description": "Show the README.md file when running the suffix removal command."
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "yarn run check-types && yarn 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": "yarn run check-types && yarn run lint && node esbuild.js --production",
"generate-vsix": "vsce package --out release/",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test --config=unit-tests.vscode-test.mjs",
"test-watch": "vscode-test --config=unit-tests.vscode-test.mjs --watch"
},
"devDependencies": {
"@types/bluebird": "^3.5.42",
"@types/chai": "^5.2.1",
"@types/fs-extra-promise": "^1.0.13",
"@types/minimatch": "^5.1.2",
"@types/mocha": "^10.0.6",
"@types/node": "20.x",
"@types/sinon": "^17.0.4",
"@types/vscode": "^1.99.0",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"chai": "5.2.0",
"esbuild": "^0.25.1",
"eslint": "^9.23.0",
"glob": "^11.0.2",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
"simple-git": "^3.27.0",
"sinon": "^20.0.0",
"typescript": "^5.8.2"
},
"dependencies": {
"bluebird": "^3.7.2",
"fs-extra-promise": "^1.0.1",
"replace-in-file": "^8.3.0"
}
}