Skip to content

Commit eb5f5b6

Browse files
hawkgscrisbeto
authored andcommitted
refactor(devtools): rename detect angular script name
Drop the 'for-extension-icon' since the script is dealing only with the app detection.
1 parent 02e80b4 commit eb5f5b6

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

devtools/projects/shell-browser/src/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ extension_package(
119119
"//devtools/projects/shell-browser/src/app:backend_bundle",
120120
"//devtools/projects/shell-browser/src/app:background_bundle",
121121
"//devtools/projects/shell-browser/src/app:content_script_bundle",
122-
"//devtools/projects/shell-browser/src/app:detect_angular_for_extension_icon_bundle",
122+
"//devtools/projects/shell-browser/src/app:detect_angular_bundle",
123123
"//devtools/projects/shell-browser/src/app:ng_validate_bundle",
124124
"//devtools/projects/shell-browser/src/assets",
125125
"//devtools/projects/shell-browser/src/popups",

devtools/projects/shell-browser/src/app/BUILD.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ ts_project(
176176
)
177177

178178
ts_project(
179-
name = "detect_angular_for_extension_icon",
179+
name = "detect_angular",
180180
srcs = [
181-
"detect-angular-for-extension-icon.ts",
181+
"detect-angular.ts",
182182
],
183183
deps = [
184184
":communication",
@@ -189,21 +189,21 @@ ts_project(
189189
)
190190

191191
esbuild(
192-
name = "detect_angular_for_extension_icon_bundle",
192+
name = "detect_angular_bundle",
193193
srcs = [
194194
"//:node_modules/tslib",
195195
"//devtools/tools/esbuild:esbuild_base",
196196
"//devtools/tools/esbuild:esbuild_config_iife",
197197
],
198198
config = "//devtools/tools/esbuild:esbuild-iife.config.mjs",
199-
entry_point = "detect-angular-for-extension-icon.ts",
199+
entry_point = "detect-angular.ts",
200200
format = "iife",
201201
minify = True,
202202
platform = "browser",
203203
splitting = False,
204204
target = "esnext",
205205
deps = [
206-
":detect_angular_for_extension_icon",
206+
":detect_angular",
207207
],
208208
)
209209

devtools/projects/shell-browser/src/app/detect-angular-for-extension-icon.ts renamed to devtools/projects/shell-browser/src/app/detect-angular.ts

File renamed without changes.

devtools/projects/shell-browser/src/app/ng-validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
if (document.contentType === 'text/html') {
1212
const script = document.createElement('script');
13-
script.src = chrome.runtime.getURL('app/detect_angular_for_extension_icon_bundle.js');
13+
script.src = chrome.runtime.getURL('app/detect_angular_bundle.js');
1414
document.documentElement.appendChild(script);
1515
document.documentElement.removeChild(script);
1616
}

devtools/projects/shell-browser/src/manifest/manifest.chrome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"devtools_page": "devtools.html",
2626
"web_accessible_resources": [
2727
{
28-
"resources": ["app/backend_bundle.js", "app/detect_angular_for_extension_icon_bundle.js"],
28+
"resources": ["app/backend_bundle.js", "app/detect_angular_bundle.js"],
2929
"matches": ["<all_urls>"],
3030
"extension_ids": []
3131
}

0 commit comments

Comments
 (0)