-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
The WorkLog Chrome extension repository needs to be prepared for generating a production-ready build suitable for Chrome Web Store publication. This issue focuses on configuring the Vite build process, generating the dist directory correctly, and ensuring the repository is structured for packaging, using React, TypeScript, TailwindCSS, and Chrome Extension Manifest V3.
Key Requirements:
- Configure Vite Build: Update
vite.config.tsto ensure the build outputs a production-readydistdirectory with minified assets and a correctly structuredmanifest.jsonat the root. - Optimize Manifest: Review and update
manifest.jsonto include minimal permissions (e.g., only those needed for time tracking and API integration) and set an initial version (e.g.,0.0.1) for future updates. - Exclude Unnecessary Files: Ensure the
distdirectory excludes development files (e.g.,.gitignore,.git,node_modules,vite.config.ts) and only includes necessary assets (e.g.,manifest.json, compiled JS/CSS, icons). - Verify Build Output: Test the
distdirectory in Chrome Developer Mode (chrome://extensions/) to confirm functionality of the time calculation sheet and compatibility with planned features (e.g., time tracking screen). - Add Build Documentation: Update the README with clear instructions for generating the
distdirectory usingnpm run build. - Automate Build Process: Optionally, set up a GitHub Action to automate the build process and verify the
distoutput on push or pull request events. - Ensure Asset Compatibility: Verify that static assets (e.g., icons in
public/) meet Chrome Web Store requirements (e.g., 128x128 icon) and are included in thedistdirectory.