You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/DEVELOPMENT.md
+24-8Lines changed: 24 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,35 +11,50 @@ pnpm install
11
11
> This repository includes a list of suggested VS Code extensions.
12
12
> It's a good idea to use [VS Code](https://code.visualstudio.com) and accept its suggestion to install them, as they'll help with development.
13
13
14
-
## Building
14
+
## Building for Development
15
15
16
16
Run [ESBuild](https://esbuild.github.io) locally to build source files:
17
17
18
18
```shell
19
-
pnpm build
19
+
pnpm dev
20
20
```
21
21
22
22
Add `--watch` to run the builder in a watch mode that continuously re-builds as you save files:
23
23
24
24
```shell
25
-
pnpm build --watch
25
+
pnpm dev --watch
26
26
```
27
27
28
-
### Using Local Builds
28
+
### Local Development with Chrome
29
29
30
30
Follow Google Chrome's _[Load an unpacked extension](https://developer.chrome.com/docs/extensions/mv3/getstarted/#unpacked)_ guide to load this repository's directory as an extension locally.
31
31
32
32
> ♻️ Remember to reload the extension in `chrome://extensions` whenever you make changes locally!
33
33
34
-
## Publishing
34
+
### Local Development with Firefox
35
+
36
+
Follow Firefox's _[Temporary installation in Firefox](https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/)_ guide to load this repository's directory as an extension locally.
37
+
38
+
You'll then need to authorize the extension to run on <https://github.com>:
39
+
40
+
1. Find and select the _Extensions_ icon in the top right of Firefox
41
+
2. Select the _"Manage Extension"_ gear icon next to _Refined Saved Replies_
42
+
3. Select the _"Always Allow on github.com"_ option
35
43
36
-
The `zip` command will create a `./refined-saved-replies.zip` file containing relevant `manifest.json`, `assets/`, and `lib/` contents.
44
+
> ♻️ Remember to reload the extension in `about:debugging#/runtime/this-firefox` whenever you make changes locally!
45
+
46
+
## Building for Production
47
+
48
+
Run [`web-ext`](https://extensionworkshop.com) to build a production-ready `.zip` under `./web-ext-artifacts/`:
37
49
38
50
```shell
39
-
pnpm zip
51
+
pnpm build
40
52
```
41
53
42
-
Upload that file to the [Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole).
54
+
Then upload that `./web-ext-artifacts/refined_saved_replies-*.zip` file to:
55
+
56
+
-[Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole)
0 commit comments