Prerequisites
- Node.js: 18 or higher
- pnpm: Latest version
- Git: For version control
- Chromium/Chrome: For browser extension testing
Installation
1. Clone the Repository
2. Install Dependencies
3. Set Up Browser Tests (First Time Only)
4. Install Git Hooks
Git hooks are automatically installed via theprepare script:
Development Workflow
Run the Extension in Development Mode
- Open Chrome/Chromium
- Navigate to
chrome://extensions - Enable “Developer mode”
- Click “Load unpacked”
- Select
packages/extension/.output/chrome-mv3/
Build All Packages
@tempad-dev/shared@tempad-dev/plugins@tempad-dev/mcp@tempad-dev/extension
Build Individual Packages
Verification Commands
Run these before submitting changes:Typecheck
Lint
Format
Test
Package-Specific Commands
Usepnpm --filter to run commands in specific packages:
-C to change directory:
Pre-Commit Checklist
Before committing changes, always run:- Typecheck:
pnpm typecheck - Lint:
pnpm lintorpnpm lint:fix - Test:
pnpm test:run
Troubleshooting
Dependency Issues
If you encounter dependency resolution errors:Build Errors
Ensure packages are built in order:Extension Not Loading
If the extension fails to load:- Check build output:
packages/extension/.output/chrome-mv3/ - Rebuild:
pnpm build:ext - Check browser console for errors
- Verify manifest.json is present in output
Test Setup Failures
If browser tests fail to run:Editor Setup
VS Code
Recommended extensions:- ESLint
- Volar (Vue Language Features)
- TypeScript Vue Plugin (Volar)
Type Checking in Editor
Vue files require the TypeScript Vue Plugin for proper type checking. Install Volar in VS Code for best experience.Next Steps
- Read Architecture to understand the codebase structure
- See Testing for testing guidelines
- Check Building for build details
- Review package-specific guides: