angular/devtools
garrettld e18a0ed1a3 fix(devtools): fix padding in property tree view (#54648)
This import was missed when switching devtools to standalone.

fixes #54622

PR Close #54648
2024-04-01 10:52:37 -07:00
..
cypress refactor(devtools): migrate devtools to prettier formatting (#53945) 2024-01-19 19:09:54 +01:00
docs refactor(devtools): remove support for v11 and older versions of Angular (#45883) 2022-05-05 15:28:42 -07:00
projects fix(devtools): fix padding in property tree view (#54648) 2024-04-01 10:52:37 -07:00
src Revert "Revert "refactor(devtools): implement multiframe support in devtools page (#53934)" (#54629)" (#54805) 2024-03-26 09:19:06 -07:00
tools fix(devtools): issue where backendReady race condition causes Angular not detected error (#54805) 2024-03-26 09:19:06 -07:00
.gitignore refactor(devtools): prepare codebase for migration to angular/angular repo 2021-11-21 20:23:18 -05:00
BUILD.bazel refactor(devtools): consolidate devtools global styles into 1 file (#49001) 2023-02-14 20:25:23 +01:00
cypress.json refactor(devtools): bring the angular devtools directory into the root bazel workspace 2022-01-26 16:35:31 -05:00
DEVELOPING.md docs(devtools): update development docs (#53948) 2024-01-16 19:17:18 -08:00
packages.bzl refactor(devtools): bring the angular devtools directory into the root bazel workspace 2022-01-26 16:35:31 -05:00
README.md release: bump Angular DevTools version to 1.0.12 (#55056) 2024-03-27 09:55:36 -07:00
styles.scss feat(devtools): Implement initial DI debugging features in devtools (#51719) 2023-10-10 13:10:50 -07:00
tsconfig.json fix(devtools): issue where backendReady race condition causes Angular not detected error (#54805) 2024-03-26 09:19:06 -07:00
tsconfig.spec.json fix(devtools): issue where backendReady race condition causes Angular not detected error (#54805) 2024-03-26 09:19:06 -07:00
tslint.json build(devtools): disable the "Rebase PR on target branch" circleci job so that the PR that merges the unrelated history of rangle/angular-devtools can be successfully merged into angular/angular 2022-01-26 16:35:30 -05:00

Angular DevTools

Angular DevTools is a browser DevTools extension for debugging and profiling Angular applications.

Installing and Running locally

To setup your local development environment for Angular DevTools, see DEVELOPING.md

Publish Angular DevTools

Publishing Angular DevTools is a five step process:

  1. Sync and update workspace.
  2. Update extension version numbers.
  3. Publish to Chrome.
  4. Publish to Firefox.
  5. Commit and merge the updated version numbers.

1. Sync workspace

Before starting anything, make sure your workspace is up to date with latest changes and dependencies.

git checkout main
git pull upstream main
nvm install
yarn --frozen-lockfile

2. Update extension version numbers

Bump the version numbers listed in manifest.chrome.json and manifest.firefox.json.

3. Publish to Chrome Chrome

To publish Angular DevTools to the Chrome Web Store, first build and package the extension.

# Build the Chrome version.
yarn devtools:build:chrome

# Package the extension.
(cd dist/bin/devtools/projects/shell-browser/src/prodapp && zip -r ~/devtools-chrome.zip *)

Then upload it to the Chrome Web Store.

  1. Go to the extension page
  2. Make sure your email is part of the Google Group we use for publishing the extension
  3. Navigate to "Developer Dashboard"
  4. Enter your account credentials
  5. You should be able to change the publisher to "Angular"

You can choose to either publish immediately or only get approval but hold to publish at a later time. Note that even publishing immediately still requires approval from Chrome Web Store before it is available to users. Historically this has been pretty quick (< 30 minutes), but there is no hard upper limit on how long a review might take: https://developer.chrome.com/docs/webstore/review-process#review-time.

4. Firefox

To publish Angular DevTools as a Firefox Add-on, first build and package the extension.

# Build the Firefox version.
yarn devtools:build:firefox

# Package the extension.
(cd dist/bin/devtools/projects/shell-browser/src/prodapp && zip -r ~/devtools-firefox.zip *)

Then upload it:

  1. Go to the Firefox Addons page
  2. For email enter devrel@angular.io
  3. Find the password on Valentine
  4. Setup Google Authenticator with the 2FA QR code. You can find the QR code on Valentine

The Firefox publishing process is slightly more involved than Chrome. In particular, they require extension source code with instructions to build and run it. Since DevTools exists in a monorepo with critical build tooling existing outside the devtools/ directory, we need to upload the entire monorepo. Package it without dependencies and generated files with the following command and upload it.

zip -r ~/angular-source.zip * -x ".git/*" -x "node_modules/*" -x "**/node_modules/*" -x "dist/"

Suggested note to reviewer:

This is a monorepo and includes much more code than just the DevTools extension. The relevant code is under devtools/... and devtools/README.md contains instructions for building and testing locally.

The uploaded source is equivalent to https://github.com/angular/angular/tree/${permalink to current main}/ with the single change of a bumped version number in the manifest.json file.

5. Commit and merge

Commit the version bump:

git checkout -b devtools-release
git add . && git commit -m "release: bump Angular DevTools version to 1.0.10"
git push -u origin devtools-release

Then create and merge a PR targeting patch with this change.

Once the PR merges and both Chrome and Firefox are showing the new version to end users, then the release is complete!