Iris AI Assistant browser extension for Chrome, Firefox, Safari, and Edge
TypeScript package. Built with tsc/tsup; consumed by other workspaces.
Scripts#
| Command | Definition |
|---|---|
pnpm dev |
npm run build:dev && npm run watch |
pnpm build |
npm run build:chrome && npm run build:firefox && npm run build:safari && npm run |
pnpm build:dev |
node scripts/build.js --mode=development |
pnpm build:chrome |
node scripts/build.js --browser=chrome --mode=production |
pnpm build:firefox |
node scripts/build.js --browser=firefox --mode=production |
pnpm build:safari |
node scripts/build.js --browser=safari --mode=production |
pnpm build:edge |
node scripts/build.js --browser=edge --mode=production |
pnpm watch |
node scripts/watch.js |
pnpm clean |
rm -rf dist |
pnpm lint |
eslint src --ext .js |
pnpm lint:fix |
eslint src --ext .js --fix |
pnpm test |
vitest |
pnpm test:e2e |
playwright test |
pnpm package |
npm run build && node scripts/package.js |
pnpm package:chrome |
npm run build:chrome && node scripts/package.js --browser=chrome |
Layout#
_locales/scripts/src/
Working on this package#
The fastest local loop is via Nx:
bash
pnpm nx test iris-browser-extension
pnpm nx lint iris-browser-extension
pnpm nx build iris-browser-extension
When Nx is unhappy (usually because another worktree has duplicate project names), bypass it with the underlying tools from this directory:
bash
npx tsc --noEmit
npx vitest run
See the root README for monorepo-wide conventions (catalog deps, commit format, git workflow). See the Contributor Guide for the full PR workflow.