Skip to content

Commit b84c552

Browse files
committed
feat: initial cli based on opentui
1 parent 51b2614 commit b84c552

File tree

7 files changed

+666
-2
lines changed

7 files changed

+666
-2
lines changed

bun.lock

Lines changed: 92 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
*.log
4+
.DS_Store

cli/README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# @codebuff/cli
2+
3+
A Terminal User Interface (TUI) package built with OpenTUI and React.
4+
5+
## Installation
6+
7+
```bash
8+
bun install
9+
```
10+
11+
## Development
12+
13+
Run the TUI in development mode:
14+
15+
```bash
16+
bun run dev
17+
```
18+
19+
## Build
20+
21+
Build the package:
22+
23+
```bash
24+
bun run build
25+
```
26+
27+
## Run
28+
29+
Run the built TUI:
30+
31+
```bash
32+
bun run start
33+
```
34+
35+
Or use the binary directly:
36+
37+
```bash
38+
codebuff-tui
39+
```
40+
41+
## Features
42+
43+
- Built with OpenTUI for modern terminal interfaces
44+
- Uses React for declarative component-based UI
45+
- TypeScript support out of the box

cli/package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "@codebuff/cli",
3+
"version": "1.0.0",
4+
"private": true,
5+
"type": "module",
6+
"bin": {
7+
"codebuff-tui": "./dist/index.js"
8+
},
9+
"exports": {
10+
".": {
11+
"bun": "./src/index.tsx",
12+
"import": "./dist/index.js",
13+
"types": "./dist/index.d.ts",
14+
"default": "./dist/index.js"
15+
}
16+
},
17+
"scripts": {
18+
"dev": "bun run src/index.tsx",
19+
"build": "bun build src/index.tsx --outdir dist --target node --format esm",
20+
"start": "bun run dist/index.js",
21+
"typecheck": "tsc --noEmit -p ."
22+
},
23+
"sideEffects": false,
24+
"engines": {
25+
"bun": ">=1.2.11"
26+
},
27+
"dependencies": {
28+
"@opentui/react": "^0.1.25",
29+
"react": "^19.0.0"
30+
},
31+
"devDependencies": {
32+
"@types/node": "22",
33+
"@types/bun": "^1.2.11",
34+
"@types/react": "^18.3.12"
35+
}
36+
}

0 commit comments

Comments
 (0)