Skip to content

Commit dd6ec07

Browse files
author
Nguyễn Tuấn Việt
committed
fix(devtools): build web extension + fix pubignore blocking publish
- Remove packages/hyper_render_devtools/ from root .pubignore — dart pub walks up to git root and was excluding all devtools files during publish - Build devtools_ui Flutter web into extension/devtools/build/ (required by pub.dev devtools extension validation) - Add devtools_ui/web/ platform support files
1 parent e707cde commit dd6ec07

File tree

8 files changed

+81
-6
lines changed

8 files changed

+81
-6
lines changed

.pubignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ build/
66
*.dill
77
*.dill.track.dill
88

9-
# Sub-packages are independent pub.dev packages — exclude from root upload
10-
# NOTE: 'packages/' must NOT be listed here — dart pub walks up to the git root
11-
# and applies this file when publishing sub-packages too, which would exclude
12-
# all their files. Add 'packages/' back only when publishing the root package,
13-
# then remove it immediately after.
14-
packages/hyper_render_devtools/
159

1610
# Tests — not needed by package consumers
1711
test/
917 Bytes
Loading
5.17 KB
Loading
8.06 KB
Loading
5.46 KB
Loading
20.5 KB
Loading
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<!--
5+
If you are serving your web app in a path other than the root, change the
6+
href value below to reflect the base path you are serving from.
7+
8+
The path provided below has to start and end with a slash "/" in order for
9+
it to work correctly.
10+
11+
For more details:
12+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
13+
14+
This is a placeholder for base href that will be replaced by the value of
15+
the `--base-href` argument provided to `flutter build`.
16+
-->
17+
<base href="$FLUTTER_BASE_HREF">
18+
19+
<meta charset="UTF-8">
20+
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
21+
<meta name="description" content="A new Flutter project.">
22+
23+
<!-- iOS meta tags & icons -->
24+
<meta name="mobile-web-app-capable" content="yes">
25+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
26+
<meta name="apple-mobile-web-app-title" content="hyper_render_devtools_ui">
27+
<link rel="apple-touch-icon" href="icons/Icon-192.png">
28+
29+
<!-- Favicon -->
30+
<link rel="icon" type="image/png" href="favicon.png"/>
31+
32+
<title>hyper_render_devtools_ui</title>
33+
<link rel="manifest" href="manifest.json">
34+
</head>
35+
<body>
36+
<!--
37+
You can customize the "flutter_bootstrap.js" script.
38+
This is useful to provide a custom configuration to the Flutter loader
39+
or to give the user feedback during the initialization process.
40+
41+
For more details:
42+
* https://docs.flutter.dev/platform-integration/web/initialization
43+
-->
44+
<script src="flutter_bootstrap.js" async></script>
45+
</body>
46+
</html>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "hyper_render_devtools_ui",
3+
"short_name": "hyper_render_devtools_ui",
4+
"start_url": ".",
5+
"display": "standalone",
6+
"background_color": "#0175C2",
7+
"theme_color": "#0175C2",
8+
"description": "A new Flutter project.",
9+
"orientation": "portrait-primary",
10+
"prefer_related_applications": false,
11+
"icons": [
12+
{
13+
"src": "icons/Icon-192.png",
14+
"sizes": "192x192",
15+
"type": "image/png"
16+
},
17+
{
18+
"src": "icons/Icon-512.png",
19+
"sizes": "512x512",
20+
"type": "image/png"
21+
},
22+
{
23+
"src": "icons/Icon-maskable-192.png",
24+
"sizes": "192x192",
25+
"type": "image/png",
26+
"purpose": "maskable"
27+
},
28+
{
29+
"src": "icons/Icon-maskable-512.png",
30+
"sizes": "512x512",
31+
"type": "image/png",
32+
"purpose": "maskable"
33+
}
34+
]
35+
}

0 commit comments

Comments
 (0)