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: browser-extension/README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@
4
4
5
5
### Hotreload development
6
6
7
-
-`npm install`
8
-
-`npm run dev`
7
+
-`pnpm install`
8
+
-`pnpm run dev`
9
9
- open [`chrome://extensions`](chrome://extensions)
10
10
- toggle **Developer mode** (top-right)
11
11
- click "Load unpacked" (far left)
@@ -14,15 +14,15 @@
14
14
- click the puzzle icon next to the url bar, then pin the Gitcasso icon
15
15
16
16
### Testing and quality
17
-
-`npm run biome` - runs `biome check` (lint & formatting)
18
-
-`npm run biome:fix` - fixes most of what `biome check` finds
19
-
-`npm run compile` - typechecking
20
-
-`npm test` - vitest
21
-
-`npm test -- -u` updates all the snapshots
17
+
-`pnpm run biome` - runs `biome check` (lint & formatting)
18
+
-`pnpm run biome:fix` - fixes most of what `biome check` finds
19
+
-`pnpm run compile` - typechecking
20
+
-`pnpm test` - vitest
21
+
-`pnpm test -- -u` updates all the snapshots
22
22
23
23
### Deployment
24
-
-`npm run build` - build for mv3 for most browsers
25
-
-`npm run build:firefox` - build mv2 specifically for Firefox
24
+
-`pnpm run build` - build for mv3 for most browsers
25
+
-`pnpm run build:firefox` - build mv2 specifically for Firefox
26
26
27
27
## How it works
28
28
@@ -48,15 +48,15 @@ When the `textarea` gets removed from the page, the `TextareaRegistry` is notifi
48
48
49
49
In `tests/har` there are various `.har` files. These are complete recordings of a single page load.
50
50
51
-
-`npm run har:view` and you can see the recordings, with or without our browser extension.
51
+
-`pnpm run har:view` and you can see the recordings, with or without our browser extension.
52
52
53
53
### Recording new HAR files
54
54
55
55
- you can add or change URLs in `tests/har-index.ts`
56
56
-`npx playwright codegen https://github.com/login --save-storage=playwright/.auth/gh.json` will store new auth tokens
57
57
- login manually, then close the browser
58
58
-***these cookies are very sensitive! we only run this script using a test account that has no permissions or memberships to anything, recommend you do the same!***
59
-
-`npm run har:record` this records new snapshots using those auth tokens (it needs args, run it with no args for docs)
59
+
-`pnpm run har:record` this records new snapshots using those auth tokens (it needs args, run it with no args for docs)
60
60
- DO NOT COMMIT AND PUSH NEW OR CHANGED `har` files!
61
61
- we try to sanitize these (see `har-record.ts` for details) but there may be important PII in them
62
62
- if you need new HAR files for something, let us know and we will generate them ourselves using a dummy account
0 commit comments