Development Setup
Setting up your development environment for BetterSEQTA-Plus
Prerequisites
Before setting up BetterSEQTA-Plus development:
- Node.js: Version 18 or higher
- Package Manager: npm, pnpm, or yarn
- Browser: Chrome, Firefox, or Safari for testing
- Git: For version control
Initial Setup
1. Clone Repository
2. Install Dependencies
3. Build Extension
This creates the extension bundle in the dist/ directory.
Loading Extension in Browser
Chrome/Chromium
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
dist/directory - Extension will be loaded
Firefox
- Open Firefox and navigate to
about:debugging - Click "This Firefox"
- Click "Load Temporary Add-on"
- Select
dist/manifest.json - Extension will be loaded
Development Mode
Watch Mode
For active development with auto-reload:
This will:
- Watch for file changes
- Rebuild automatically
- Reload extension in browser
Manual Reload
After making changes:
- Rebuild:
npm run build - Reload extension in browser
- Refresh SEQTA Learn page
Project Structure
Configuration Files
manifest.json
Extension manifest configuration:
TypeScript Configuration
tsconfig.json for type checking:
Development Tools
VS Code Setup
Recommended extensions:
- ESLint: Code linting
- Prettier: Code formatting
- TypeScript: Type checking
- Chrome Extension: Extension development
Debugging
Content Scripts
- Open SEQTA Learn page
- Open DevTools (F12)
- Go to Sources tab
- Find extension files
- Set breakpoints
Background Scripts
- Go to
chrome://extensions/ - Find BetterSEQTA-Plus
- Click "service worker" link
- DevTools opens for background script
Popup
- Right-click extension icon
- Select "Inspect popup"
- DevTools opens for popup
Testing
Manual Testing
- Load extension in browser
- Navigate to SEQTA Learn
- Test features manually
- Check console for errors
Automated Testing
Building for Production
Production Build
Creating Release Package
Creates a zip file ready for distribution.
Troubleshooting
Extension Not Loading
- Check manifest.json for errors
- Verify all files are built
- Check browser console for errors
- Ensure permissions are correct
Changes Not Appearing
- Rebuild extension
- Reload extension in browser
- Hard refresh SEQTA page (Ctrl+Shift+R)
- Clear browser cache
Type Errors
Fix TypeScript errors before building.
Next Steps
- Architecture - System architecture
- Content Scripts - Page enhancement
- Background Scripts - Extension logic