Skip to content

Commit 37addbc

Browse files
authored
Merge pull request #12 from AndrewWalsh/firefox-add-on
feat: prep Firefox release
2 parents 02921eb + 1b38640 commit 37addbc

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![MIT License][license-shield]][license-url]
44
[![Download in the Chrome Web Store][chrome-shield]][chrome-url]
5+
[![Download in the Firefox Add-on Store][firefox-shield]][firefox-url]
56

67
<!-- PROJECT LOGO -->
78
<br />
@@ -12,7 +13,7 @@
1213

1314

1415
<p align="center" style="max-width: 600px;">
15-
Effortlessly discover API behaviour with a Chrome/Firefox extension that automatically generates OpenAPI specifications in real time for any app or website.
16+
Effortlessly discover API behaviour with a browser extension that automatically generates OpenAPI specifications in real time for any app or website.
1617
<br />
1718
<br />
1819
<a href="https://awalsh.io/posts/openapi-devtools/">Read More</a>
@@ -30,7 +31,7 @@
3031
<img width="80%" src="resources/demo.gif">
3132
</p>
3233

33-
OpenAPI DevTools is a Chrome/Firefox extension that generates OpenAPI specifications in real time from network requests. Once installed it adds a new tab to Chrome DevTools called `OpenAPI`. While the tool is open it automatically converts network requests into a specification.
34+
OpenAPI DevTools is a browser extension that generates OpenAPI specifications in real time from network requests. Once installed it adds a new tab to DevTools called `OpenAPI`. While the tool is open it automatically converts network requests into a specification.
3435

3536
*Features*:
3637
- Instantly generate an OpenAPI 3.1 specification for any website or application just by using it
@@ -47,14 +48,17 @@ OpenAPI DevTools is a Chrome/Firefox extension that generates OpenAPI specificat
4748
<img width="80%" src="resources/demo-img.png">
4849
</p>
4950

50-
[Download the extension in the Chrome Web Store](https://chrome.google.com/webstore/detail/openapi-devtools/jelghndoknklgabjgaeppjhommkkmdii).
51+
[Download the extension in the Chrome Web Store][chrome-url].
52+
53+
[Download the extension in the Firefox Add-on Store][firefox-url].
5154

5255
Otherwise, to install manually:
5356
- [Download and extract the dist.zip file in the latest release](https://github.com/AndrewWalsh/openapi-devtools/releases/latest/download/dist.zip)
5457
- In Chrome, navigate to `chrome://extensions`
5558
- In the top right enable the `Developer mode` toggle
5659
- In the top left click `Load unpacked` and select the extracted `dist` directory
5760
- Open a new tab and then select `OpenAPI` in the developer tools (open with `cmd+i` or `ctrl+i`)
61+
- Firefox is more challenging. Please use the add-on store.
5862

5963
<p align="right">(<a href="#readme-top">back to top</a>)</p>
6064

@@ -78,12 +82,7 @@ An [OpenAPI](https://www.openapis.org/) specification is a description of what a
7882

7983
To develop the project:
8084
- `npm install`
81-
- `npm run build`
82-
- Navigate to `chrome://extensions` for Chromium based browser or `about:addons` for Firefox
83-
- In the top right enable the `Developer mode` toggle
84-
- In the top left click `Load unpacked` and select the `dist` directory
85-
- You should now see the tool in DevTools. You can interact it with like a regular page, including inspection of the React app
86-
- [Extensions Reloader](https://chrome.google.com/webstore/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid) is suggested to update the tool after running `npm run build` and updating the `dist` directory
85+
- `npm run dev`
8786

8887
<p align="right">(<a href="#readme-top">back to top</a>)</p>
8988

@@ -92,4 +91,6 @@ To develop the project:
9291
[license-url]: https://github.com/AndrewWalsh/openapi-devtools/blob/main/LICENSE.txt
9392
[license-shield]: https://img.shields.io/github/license/AndrewWalsh/openapi-devtools.svg?style=for-the-badge
9493
[chrome-url]: https://chrome.google.com/webstore/detail/openapi-devtools/jelghndoknklgabjgaeppjhommkkmdii
95-
[chrome-shield]: https://img.shields.io/badge/Google%20Chrome-4285F4?style=for-the-badge&logo=GoogleChrome&logoColor=white
94+
[chrome-shield]: https://img.shields.io/badge/Google%20Chrome-4285F4?style=for-the-badge&logo=GoogleChrome&logoColor=white
95+
[firefox-url]: https://addons.mozilla.org/en-US/firefox/addon/openapi-devtools/
96+
[firefox-shield]: https://img.shields.io/badge/Firefox-FF7139?style=for-the-badge&logo=Firefox-Browser&logoColor=white

manifest.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@
99
"32": "icon32.png",
1010
"48": "icon48.png",
1111
"128": "icon128.png"
12+
},
13+
"browser_specific_settings": {
14+
"gecko": {
15+
16+
}
1217
}
13-
}
18+
}

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
"type": "module",
77
"scripts": {
88
"test": "vitest",
9-
"dev": "vite",
10-
"run": "tsc && vite build && web-ext run -s dist",
11-
"build": "tsc && vite build && web-ext build -s dist",
12-
"zip": "web-ext build -s dist --overwrite-dest",
9+
"dev": "tsc && vite build && web-ext run -s dist",
10+
"build": "tsc && vite build && web-ext build --overwrite-dest -s dist",
1311
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix"
1412
},
1513
"dependencies": {

resources/dist.zip

-2.25 MB
Binary file not shown.

0 commit comments

Comments
 (0)