https://github.com/tobycm/hackatime-cli
Fire terminal-craft ysws submission
https://github.com/tobycm/hackatime-cli
Last synced: 10 months ago
JSON representation
Fire terminal-craft ysws submission
- Host: GitHub
- URL: https://github.com/tobycm/hackatime-cli
- Owner: tobycm
- License: mit
- Created: 2025-03-18T19:58:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T00:52:48.000Z (about 1 year ago)
- Last Synced: 2025-08-29T23:49:08.516Z (10 months ago)
- Language: TypeScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hackatime-cli
Fire terminal-craft ysws submission. Demo: [https://asciinema.org/a/708933](https://asciinema.org/a/708933)
## Installation
Please check out the [Releases](https://github.com/tobycm/hackatime-cli/releases) page.
## Keybinds
- Press `q` anywhere to quit (except for the input prompt)
- Press `Enter` to submit the input
- Press `Space` or `k` to toggle pause the animation
## Build
### Prerequisites
- [Bun](https://bun.sh)
### Step 1: Install dependencies
```sh
bun install
```
### Step 2: Build
Build JS file:
```sh
bun build --minify --target=node index.tsx --outfile=hackatime-cli.js
```
Build JS file and bundle with Bun to make exe for your platform:
```sh
bun build --compile --outfile=hackatime-cli --minify index.tsx
```
For Windows:
```sh
bun build --compile --outfile=hackatime-cli-windows-amd64 --minify --target=bun-windows-amd64 index.tsx
```
For Linux:
```sh
bun build --compile --outfile=hackatime-cli-linux-amd64 --minify --target=bun-linux-amd64 index.tsx
```
For MacOS:
```sh
bun build --compile --outfile=hackatime-cli-darwin-arm64 --minify --target=bun-darwin-arm64 index.tsx
```
## Development
Do step 1 of the build process
To run the program:
```sh
bun run start
```
With hot restart:
```sh
bun run dev
```