fix concerns
This commit is contained in:
parent
a1d01f8ff2
commit
649110ed45
1 changed files with 31 additions and 20 deletions
51
README.md
51
README.md
|
@ -18,32 +18,43 @@ For more info, see:
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
To run this extension:
|
### Running Locally
|
||||||
|
|
||||||
1. Open Firefox and load the `about:debugging` page. Click
|
#### via WebExtensions API (web-ext)
|
||||||
[Load Temporary Add-on](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Temporary_Installation_in_Firefox)
|
|
||||||
and select the `manifest.json` file within the folder of an example extension.
|
1. Install the [web-ext](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Getting_started_with_web-ext) tool.
|
||||||
Here is a [video](https://www.youtube.com/watch?v=cer9EUKegG4)
|
2. Run `web-ext run -s src/`. This launches Firefox and installs the extension automatically.
|
||||||
that demonstrates how to do this.
|
|
||||||
2. Install the
|
This tool provides some additional development features, such as [automatic reloading](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Getting_started_with_web-ext#Automatic_extension_reloading).
|
||||||
[web-ext](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Getting_started_with_web-ext)
|
|
||||||
tool. At the command line, open the example extension's folder and type
|
#### via about:debugging in Firefox
|
||||||
`web-ext run -s src/`. This launches Firefox and installs the extension automatically.
|
|
||||||
This tool provides some additional development features, such as
|
1. Open the `about:debugging` page in Firefox.
|
||||||
[automatic reloading](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Getting_started_with_web-ext#Automatic_extension_reloading).
|
2. Click on `This FIrefox`.
|
||||||
|
3. Click on [Load Temporary Add-on](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Temporary_Installation_in_Firefox).
|
||||||
|
4. Select `src/manifest.json`.
|
||||||
|
|
||||||
|
Here is a [video](https://www.youtube.com/watch?v=cer9EUKegG4) that demonstrates how to do this.
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
```
|
* Install dependencies:
|
||||||
# Install dependencies
|
|
||||||
npm install
|
|
||||||
|
|
||||||
# Run all tests
|
```
|
||||||
npm run test
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
# Only run the linter
|
* Run all tests:
|
||||||
npm run lint
|
|
||||||
```
|
```
|
||||||
|
npm run test
|
||||||
|
```
|
||||||
|
|
||||||
|
* Only run the linter:
|
||||||
|
|
||||||
|
```
|
||||||
|
npm run lint
|
||||||
|
```
|
||||||
|
|
||||||
There is a timeout test that sometimes fails on certain machines, so make sure to run the tests on your clone before you make any changes to see if you have this problem.
|
There is a timeout test that sometimes fails on certain machines, so make sure to run the tests on your clone before you make any changes to see if you have this problem.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue