Skip to content

Commit 635b0d9

Browse files
authored
Delete MV2 Dart Debug Extension (#2428)
1 parent ae43e8e commit 635b0d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+667
-2815
lines changed

.github/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@
1919
'dart-debug-extension':
2020
- changed-files:
2121
- any-glob-to-any-file: 'dwds/debug_extension/**/*'
22-
- any-glob-to-any-file: 'dwds/debug_extension_mv3/**/*'

dwds/analysis_options.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ analyzer:
88
# Ignore generated files
99
- "lib/data/*"
1010
# Ignore debug extension builds
11-
- "debug_extension/dev_build/*"
12-
- "debug_extension/prod_build/*"
13-
- "debug_extension_mv3/dev_build/*"
14-
- "debug_extension_mv3/prod_build/*"
11+
- "debug_extension/compiled/*"
1512

1613
linter:
1714
rules:
@@ -32,7 +29,7 @@ dart_code_metrics:
3229
metrics-exclude:
3330
- test/**
3431
rules:
35-
# - arguments-ordering
32+
# - arguments-ordering
3633
# - avoid-banned-imports
3734
- avoid-cascade-after-if-null
3835
- avoid-collection-methods-with-unrelated-types

dwds/debug_extension/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
build/
2-
prod_build/
3-
dev_build/
2+
compiled/
43
extension_key.txt

dwds/debug_extension/CHANGELOG.md

Lines changed: 0 additions & 109 deletions
This file was deleted.

dwds/debug_extension/CONTRIBUTING.md

Lines changed: 39 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
## Building
22

3-
> Note: First make the script executable: `chmod +x tool/build_extension.sh`
3+
- For development: `dart run tool/build_extension.dart`
4+
- For release: ` dart run tool/build_extension.dart --prod`
45

5-
### With DDC (for development):
6-
7-
```
8-
./tool/build_extension.sh
9-
```
10-
11-
- The DDC-compiled extension will be located in the `/dev_build/web` directory.
12-
13-
### With dart2js (for release):
14-
15-
```
16-
./tool/build_extension.sh prod
17-
```
18-
19-
- The dart2js-compiled extension will be located in the `/prod_build` directory.
6+
The dart2js-compiled extension will be located in the `/compiled` directory.
207

218
## Local Development
229

@@ -33,7 +20,7 @@
3320
- Visit chrome://extensions
3421
- Toggle "Developer mode" on
3522
- Click the "Load unpacked" button
36-
- Select the extension directory: `dev_build/web`
23+
- Select the extension directory: `/compiled`
3724

3825
### Debug your local extension
3926

@@ -48,42 +35,41 @@
4835

4936
## Release process
5037

51-
1. Update the version in `web/manifest.json`, `pubspec.yaml`, and in the
52-
`CHANGELOG`.
53-
1. Follow the instructions above to build the dart2js-compiled release version
54-
of the extension.
38+
- Update the version in `web/manifest_mv2.json`, `web/manifest_mv3.json`, `pubspec.yaml`, and in the
39+
`CHANGELOG`.
40+
- Follow the instructions above to build the release version of the extension.
5541

5642
> \*At this point, you should manually verify that everything is working by
5743
> following the steps in [Local Development](#local-development), except load
58-
> the extension from the `prod_build` directory. You will need to add an
59-
> extension key to the `manifest.json` file in `prod_build` to test locally.
44+
> the extension from the `compiled` directory. You will need to add an extension
45+
> key to the `manifest.json` file in `compiled` to test locally.
6046
61-
3. Open a PR to submit the version change.
62-
1. Once submitted, pull the changes down to your local branch, and create a zip
63-
of the `prod_build` directory (NOT `dev_build/web`). **Remove the Googler
64-
extension key that was added by the builder to the `manifest.json` file.**
65-
1. Rename the zip `version_XX.XX.XX.zip` (eg, `version_1.24.0.zip`) and add it
66-
to the go/dart-debug-extension-zips folder
47+
- Open a PR to submit the version change.
48+
- Once submitted, pull the changes down to your local branch, and create a zip
49+
of the `compiled` directory. **Remove the Googler extension key that was added
50+
by the builder to the `manifest.json` file.**
51+
- Rename the zip `version_XX.XX.XX.zip` (eg, `version_1.24.0.zip`) and add it to
52+
the go/dart-debug-extension-zips folder
6753

68-
> *You must be a Googler to do this. Ask for help if not.*
54+
> _You must be a Googler to do this. Ask for help if not._
6955
70-
6. Go to the
71-
[Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole).
72-
1. At the top-right, under Publisher, select dart-bat.
56+
- Go to the
57+
[Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole).
58+
- At the top-right, under Publisher, select dart-bat.
7359

74-
> *If you don’t see dart-bat as an option, you will need someone on the Dart
75-
> team to add you to the dart-bat Google group.*
60+
> _If you don’t see dart-bat as an option, you will need someone on the Dart
61+
> team to add you to the dart-bat Google group._
7662
77-
7. Under Items, select the "Dart Debug Extension".
78-
1. Go to “Package” then select “Upload new package”.
63+
- Under Items, select the "Dart Debug Extension".
64+
- Go to “Package” then select “Upload new package”.
7965

80-
> *The first time you do this, you will be asked to pay a $5 registration fee.
81-
> The registration fee can be expensed.*
66+
> _The first time you do this, you will be asked to pay a $5 registration fee.
67+
> The registration fee can be expensed._
8268
83-
9. Upload the zip file you created in step 4.
84-
1. Save as draft, and verify that the new version is correct.
85-
1. Publish. The extension will be published immediately after going through the
86-
review process.
69+
- Upload the zip file you created in step 4.
70+
- Save as draft, and verify that the new version is correct.
71+
- Publish. The extension will be published immediately after going through the
72+
review process.
8773

8874
## Rollback process
8975

@@ -92,15 +78,15 @@
9278
> still have to go through the review process, which can take anywhere from a
9379
> few hours (most common) to a few days.
9480
95-
1. Find the previous version you want to rollback to in the
96-
go/dart-debug-extension-zips folder.
81+
- Find the previous version you want to rollback to in the
82+
go/dart-debug-extension-zips folder.
9783

98-
> > *You must be a Googler to do this. Ask for help if not.*
84+
> _You must be a Googler to do this. Ask for help if not._
9985
100-
2. Unzip the version you have chosen, and in `manifest.json` edit the version
101-
number to be the next sequential version after the current "bad" version (eg,
102-
the bad version is `1.28.0` and you are rolling back to version `1.27.0`.
103-
Therefore you change `1.27.0` to `1.29.0`).
104-
1. Re-zip the directory and rename it to the new version number. Add it to the
105-
go/dart-debug-extension-zips folder.
106-
1. Now, follow steps 6 - 11 in [Release process](#release-process).
86+
- Unzip the version you have chosen, and in `manifest.json` edit the version
87+
number to be the next sequential version after the current "bad" version (eg,
88+
the bad version is `1.28.0` and you are rolling back to version `1.27.0`.
89+
Therefore you change `1.27.0` to `1.29.0`).
90+
- Re-zip the directory and rename it to the new version number. Add it to the
91+
go/dart-debug-extension-zips folder.
92+
- Now, follow steps 6 - 11 in [Release process](#release-process).

dwds/debug_extension/README.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

dwds/debug_extension/build.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,26 @@ targets:
44
build_web_compilers|entrypoint:
55
options:
66
dart2js_args:
7-
- -O4 # Note: Change to -01 for unminified JS.
7+
- -O1 # Note: Change to -04 for minified JS.
88
- --csp
99
generate_for:
1010
- web/**.dart
11-
extension|client_js_copy_builder:
11+
mv3_extension|client_js_copy_builder:
1212
enabled: true
1313

1414
builders:
1515
client_js_copy_builder:
16+
required_inputs: [".js", ".png", ".html", ".css", ".json"]
1617
import: "tool/copy_builder.dart"
1718
builder_factories:
1819
- copyBuilder
1920
build_extensions:
2021
{
21-
"web/{{}}.dart.js": ["prod_build/{{}}.js"],
22-
"web/{{}}.png": ["prod_build/{{}}.png"],
23-
"web/{{}}.html": ["prod_build/{{}}.html"],
24-
"web/{{}}.css": ["prod_build/{{}}.css"],
25-
"web/manifest.json": ["prod_build/manifest.json"],
26-
"web/panel.js": ["prod_build/panel.js"],
27-
"web/detector.js": ["prod_build/detector.js"],
28-
"web/devtools.js": ["prod_build/devtools.js"],
22+
"web/{{}}.dart.js": ["compiled/{{}}.dart.js"],
23+
"web/static_assets/{{}}.png": ["compiled/static_assets/{{}}.png"],
24+
"web/static_assets/{{}}.html": ["compiled/static_assets/{{}}.html"],
25+
"web/static_assets/{{}}.css": ["compiled/static_assets/{{}}.css"],
26+
"web/manifest.json": ["compiled/manifest.json"],
2927
}
3028
auto_apply: none
3129
build_to: source

dwds/debug_extension/pubspec.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
1-
name: extension
1+
name: mv3_extension
22
publish_to: none
3-
version: 1.30.0
3+
version: 2.1.4
44
homepage: https://github.com/dart-lang/webdev
55
description: >-
6-
A chrome extension for Dart debugging.
6+
A Chrome extension for Dart debugging.
77
88
environment:
99
sdk: ^3.2.0-36.0.dev
1010

1111
dependencies:
12-
async: ^2.3.0
12+
built_value: ^8.3.0
1313
collection: ^1.15.0
1414
js: ^0.6.1+1
15-
pub_semver: ^2.0.0
16-
sse: ^4.1.0
17-
web_socket_channel: ^2.0.0
1815

1916
dev_dependencies:
17+
args: ^2.3.1
2018
build: ^2.0.0
21-
build_web_compilers: ^4.0.4
2219
build_runner: ^2.4.0
2320
built_collection: ^5.0.0
24-
dwds: ^11.0.0
25-
webdev: ^2.0.0
21+
built_value_generator: ^8.3.0
22+
build_web_compilers: ^4.0.4
23+
dwds: ^16.0.0
24+
path: ^1.8.1
25+
sse: ^4.1.2
26+
web_socket_channel: ^2.2.0
27+
28+
dependency_overrides:
29+
dwds:
30+
path: ..
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
dependency_overrides:
2-
webdev:
3-
path: ../../webdev
42
dwds:
53
path: ..

0 commit comments

Comments
 (0)