https://github.com/corrupt952/snacktime
https://github.com/corrupt952/snacktime
chrome-extension
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/corrupt952/snacktime
- Owner: corrupt952
- License: mit
- Created: 2024-10-23T15:37:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-28T13:38:02.000Z (over 1 year ago)
- Last Synced: 2025-02-25T12:40:31.025Z (over 1 year ago)
- Topics: chrome-extension
- Language: TypeScript
- Homepage: https://chromewebstore.google.com/detail/snack-time/okaijbdacnkekgchlligfkjccijcghfn?pli=1
- Size: 2.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snack Time
The repository for chrome extension to remind you to take a break and have a snack.
## Installation
Install this extension from the [Chrome Web Store](https://chromewebstore.google.com/detail/snack-time/okaijbdacnkekgchlligfkjccijcghfn).
## Development
### Prerequisites
- [asdf](https://asdf-vm.com/) or compatible .tool-versions file
### Setup
1. Install Node.js
```bash
asdf install
```
1. Install pnpm
```bash
npm install -g pnpm
```
### Debugging
This extension is developed using CRXJS.
So, if you run `pnpm dev` and load the output directory as an extension, the file will be updated in real time.
`OUTPUT_DIR` is the directory where the output will be placed.
> When modifying `Content.tsx` (Timer component), hot reload may not work properly. In this case, you need to restart the extension:
>
> 1. Go to `chrome://extensions`
> 2. Find "Snack Time" extension
> 3. Click the reload button (↻) or toggle the extension off and on
>
> This is a known limitation of Chrome Extension's content scripts.
1. Install dependencies
```bash
pnpm install
```
1. Run the development server
```bash
OUTPUT_DIR=~/Documents/snack-time pnpm dev
```
1. Load the [extension](chrome://extensions/) from the output directory
## Production
See [.claude/commands/release.md](.claude/commands/release.md) for release procedures.