aboutsummaryrefslogtreecommitdiffhomepage
path: root/DEVELOPING.md
blob: 687e3895044c56795b01d005c418d6861ebec473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
## Setting up development environment

### Installing dependencies

The minimum requirements are:
- GNU Bash
- [GNU Coreutils](https://www.gnu.org/software/coreutils/)
- Git
- Node.js (version 16 and above)

To install the project dependencies run

```sh
# install dependencies
npm install

# install rollup or use npx
npm install -g rollup standard
```


## Style guidelines

We use [StandardJS](https://standardjs.com/) with pre-defined ESLint rules to ensure a consistent coding style and catch potential bugs. For checking lint, run

```
npm run lint
```


## Linking Package

```sh
# without code minified
npm build

# with code minified
PRODUCTION=true npm build
```

## Firefox Addon

1. To build addon(after `dist/` is generated from `npm build`), run

```sh
npm run addon
```

2. Then go to `about:debugging` page in Firfox Browser, then press `This Firefox` for extension page

3. Press `Load Temporary Add-on...`, then select `manifest.json` in `addon/`