Quick reference for building and running both versions of the timer app.
npm installnpm startnpm run package:extensionThen load dist/extension in Chrome as an unpacked extension.
npm run build:desktopsrc/- Shared code used by both platformsextension/- Browser extension specific files (manifest, background script)desktop/- Electron desktop app files (main process, preload)dist/- Build output directory (created by build scripts)
- Edit shared code in
src/for changes that affect both platforms - Edit
extension/background.jsfor extension-specific behavior - Edit
desktop/main.jsfor desktop-specific behavior (window management, etc.)
- Both platforms share the same core logic (
src/main.js) - localStorage works in both contexts
- Audio files and assets are shared
- Keyboard shortcuts work identically in both versions