chore: add clipper extension package (#2281)

This commit is contained in:
Aman Harwara
2023-04-11 22:14:02 +05:30
committed by GitHub
parent 0b0466c9fa
commit 4f5e634685
214 changed files with 3163 additions and 355 deletions

View File

@@ -0,0 +1,53 @@
# @standardnotes/clipper
## Development flow
- Run `yarn watch:web` in a terminal to watch changes in the `@standardnotes/web` package
### Chromium
- Run `yarn watch-mv3` in another terminal to watch changes in the extension source
#### "Load unpacked" method
- Go to `chrome://extensions`
- Enable `Developer mode`
- Click "Load unpacked" and select the `dist` folder in the current package
You might need to manually press the reload button when you make changers
#### CLI method
```console
yarn run-chromium --chromium-profile=PATH/TO/PROFILE
```
- You might need to specify the Chromium binary using the `--chromium-binary` argument
- Running `yarn run-chromium` without the `--chromium-profile` argument will create a new temporary profile every time
This method will automatically reload the extension when you make changes
### Firefox
- Run `yarn watch` in another terminal to watch changes in the extension source
```console
yarn run-firefox --firefox-profile=PATH/TO/PROFILE
```
- You might need to specify the Firefox binary using the `--firefox` or `-f` argument
- Running `yarn run-firefox` without the `--firefox-profile` argument will create a new temporary profile every time
## Build
## Firefox
```console
yarn build-firefox
```
## Chromium
```console
yarn build-chromium
```