INTERNALGuide
Develop the extension
Use this page only for internal extension maintenance; end users should follow Install and Connect.
Local build
bash
$ cd movitera-extension
$ npm install
$ npm run build
# dist/ contains manifest, service worker, content script, popup, and assetsLoad in Chrome
- 1
Open `chrome://extensions`.
Enable Developer mode.
- 2
Click `Load unpacked`.
Select
movitera-extension/dist. - 3
Test the popup and a login page.
The default build talks to
https://api.movitera.com.
Development commands
| Command | Use |
|---|---|
npm run watch | Run esbuild in watch mode. |
npm run build:local | Build against http://localhost. |
npm test | Run unit tests with Vitest. |
npm run typecheck | Run tsc --noEmit. |
Manifest guardrail
build.mjs fails when code references a chrome.* namespace that the manifest does not cover. Update public/manifest.json before depending on a new API.