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
Live tests: [](https://semaphoreci.com/flowcrypt/flowcrypt-browser)
12
12
13
-
This project is written in TypeScript. Browsers only understand JavaScript, so the project needs to be transpiled. You need to build the project the first time you download it, and build it after each change you make to see the result in the browser. First, install tooling:
13
+
This project is written in TypeScript. Browsers only understand JavaScript, so the project needs to be transpiled. You need to build the project the first time you download it, and build it after each change you make to see the result in the browser. To get started, please follow the instructions below:
14
14
15
+
1. Install the tooling by running the following command after navigating to the appropriate folder:
15
16
```bash
16
17
$ cd some/folder/flowcrypt-browser
17
18
$ npm install
18
19
```
20
+
2. To build the project (currently available for Linux and Mac only), run the following command:
[02:42:12] Finished 'copyChromeToFirefoxEditedManifest' after 10 ms
44
-
[02:42:12] Finished 'default' after 7.97 s
22
+
```bash
23
+
$ npm run build
45
24
```
25
+
After running this command, you can find your built project in the `build/chrome-consumer` and `build/firefox-consumer` folders.
26
+
27
+
To load the extension in Google Chrome, please follow these steps:
28
+
29
+
1. Open your Chrome browser and navigate to `chrome://extensions/`.
30
+
2. If not already enabled, toggle on the `Developer mode` switch located at the top-right corner.
31
+
3. Click on the `Load Unpacked` button.
32
+
4. Browse to and select the appropriate folder, either `build/chrome-consumer` or `chrome-enterprise`.
33
+
34
+
Similarly, to load the extension in Firefox, follow these steps:
35
+
36
+
1. Open your Firefox browser and navigate to `about:debugging`.
37
+
2. Click on the `This Firefox` tab.
38
+
3. Click on the `Load Temporary Add-on` button located at the top-right corner.
39
+
4. Browse to and select the appropriate folder, either `build/firefox-consumer` or `firefox-enterprise`, and select the `manifest.json` file.
46
40
47
-
Now you can find your built project in `build/chrome-consumer` and `build/firefox-consumer`
41
+
If you prefer, you can also use the `run_firefox` script (`npm run run_firefox`) included in the package.json file to run the Firefox extension in a separate instance without interfering with the production extension installed in your browser.
48
42
49
43
Printing debug data to test logs can be done using special `Debug` class:
0 commit comments