generated from ardoq/chrome-extension-starter
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
42 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,42 @@ | ||
## Setup | ||
1. Install the chrome extension | ||
2. Set up [rxjs-spy-devtools-plugin](https://github.com/ardoq/rxjs-devtools/tree/master/packages/rxjs-spy-devtools-plugin) in your app and tag the streams that you wish to inspect in the devtools. | ||
## RxJS DevTools for debugging streams | ||
This extension allows you to debug your RxJS stream emissions by hooking into the [rxjs-spy](https://github.com/cartant/rxjs-spy) debugging library. | ||
|
||
## Structure | ||
The project was inspired by [rxjs-spy-devtools](https://github.com/cartant/rxjs-spy-devtools). | ||
|
||
This repo is split into three packages: | ||
- **[packages/rxjs-spy-devtools-plugin](https://github.com/ardoq/rxjs-devtools/tree/master/packages/rxjs-spy-devtools-plugin)**: plugin for [rxjs-spy](https://github.com/cartant/rxjs-spy) | ||
![DevTools screenshot](docs/rxjs-devtools.png) | ||
|
||
## How to use in your app | ||
1. [Install the chrome extension](#installing-the-extension-in-developer-mode) | ||
2. Set up [rxjs-spy-devtools-plugin](https://github.com/ardoq/rxjs-devtools/tree/master/packages/rxjs-spy-devtools-plugin) in your app and [tag the streams](https://github.com/cartant/rxjs-spy#core-concepts) that you wish to inspect in the devtools. | ||
|
||
## Structure & Philosophy | ||
The repo is split into three packages: | ||
- **[packages/rxjs-spy-devtools-plugin](packages/rxjs-spy-devtools-plugin/README.md)**: plugin for [rxjs-spy](https://github.com/cartant/rxjs-spy) that sends info about stream emissions to the dev tools extension | ||
- **packages/extension**: chrome extension for the devtools | ||
- **packages/shared**: shared types, interfaces and utils between all the packages | ||
- **packages/shared**: shared types, interfaces and utils for communication between the rxjs-spy plugin and the extension | ||
|
||
Although the extension currently depends on [rxjs-spy-devtools-plugin](packages/rxjs-spy-devtools-plugin/README.md) to receive info about stream emissions. In theory this repository can be extended with another plugin that sends info about stream emissions in a different manner. | ||
|
||
## Installing the extension in developer mode | ||
1. `git clone` this repository | ||
2. `cd packages/extension` | ||
3. `yarn install ` to install the dependencies. | ||
4. `yarn build` | ||
5. Load the extension in Chrome: | ||
1. Access `chrome://extensions/` | ||
2. Check `Developer mode` | ||
3. Click on `Load unpacked extension` | ||
4. Select the `packages/extension/build` folder | ||
6. You should now see `RxJS Devtools` as a tab in dev tools. | ||
|
||
## Develop the extension | ||
To run and develop the extension locally, inside `packages/extension`: | ||
1. Run `yarn install` to install the dependencies. | ||
2. Run `yarn start` | ||
3. Load the extension in Chrome: | ||
## Developing the extension | ||
1. cd `packages/extension` | ||
2. Run `yarn install` to install the dependencies. | ||
3. Run `yarn start` | ||
4. Load the extension in Chrome: | ||
1. Access `chrome://extensions/` | ||
2. Check `Developer mode` | ||
3. Click on `Load unpacked extension` | ||
4. Select the `packages/extension/build` folder. | ||
4. Happy hacking! | ||
5. Happy hacking! | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "rxjs-spy-devtools-plugin", | ||
"version": "0.0.2", | ||
"description": "Devtools plugin for rxjs-spy", | ||
"description": "RxJS DevTools plugin for rxjs-spy", | ||
"author": "Anton Abilov <[email protected]>", | ||
"homepage": "https://github.com/ardoq/rxjs-devtools#readme", | ||
"license": "MIT", | ||
|
@@ -41,4 +41,4 @@ | |
"dependencies": { | ||
"rxjs-spy": "^7.5.1" | ||
} | ||
} | ||
} |