add nix shell file to build background.js
Testing / test (push) Failing after 14m25s

This commit is contained in:
2026-05-01 19:39:33 +02:00
parent 1b0e090466
commit 6f7c4fc7ea
2 changed files with 22 additions and 1 deletions
+9 -1
View File
@@ -411,7 +411,15 @@ npm run check:extension # type-check, build extension/background.js, syntax-ch
uv run pytest -q uv run pytest -q
``` ```
The extension source lives in `extension/src/`. `extension/background.js` is generated and ignored by git. Run `npm run build:extension` before using `Load unpacked` with `extension/`. On NixOS or hosts without global Node/npm:
```sh
nix-shell
npm ci
npm run check:extension
```
The extension source lives in `extension/src/`. `extension/background.js` is generated and ignored by git. Run `npm run build:extension` before using `Load unpacked` with `extension/`. On NixOS, use `nix-shell` first if npm is not installed globally.
--- ---
+13
View File
@@ -0,0 +1,13 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = with pkgs; [
nodejs_22
uv
python3
];
shellHook = ''
echo "browser-cli dev shell: node $(node --version), npm $(npm --version), uv $(uv --version)"
'';
}