blessed-components 0.0.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -43
- package/ROADMAP.md +695 -302
- package/dist/index.cjs +57 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -1
- package/dist/progress-bar/blessed.cjs +60 -0
- package/dist/progress-bar/blessed.cjs.map +1 -0
- package/dist/progress-bar/blessed.d.cts +129 -0
- package/dist/progress-bar/blessed.d.ts +129 -0
- package/dist/progress-bar/blessed.js +54 -0
- package/dist/progress-bar/blessed.js.map +1 -0
- package/dist/progress-bar/index.cjs +33 -0
- package/dist/progress-bar/index.cjs.map +1 -0
- package/dist/progress-bar/index.d.cts +181 -0
- package/dist/progress-bar/index.d.ts +181 -0
- package/dist/progress-bar/index.js +31 -0
- package/dist/progress-bar/index.js.map +1 -0
- package/package.json +28 -12
- package/src/components/progress-bar/README.md +193 -0
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Composable, typed terminal UI components for
|
|
4
4
|
[Blessed](https://github.com/chjj/blessed).
|
|
5
5
|
|
|
6
|
-
> **Project status:**
|
|
7
|
-
>
|
|
6
|
+
> **Project status:** early development. `ProgressBar` is available; more
|
|
7
|
+
> components are coming soon.
|
|
8
8
|
|
|
9
9
|
## Goals
|
|
10
10
|
|
|
@@ -17,8 +17,6 @@ Composable, typed terminal UI components for
|
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
|
-
Components are not available yet. Once the first component ships:
|
|
21
|
-
|
|
22
20
|
```sh
|
|
23
21
|
npm install blessed blessed-components
|
|
24
22
|
```
|
|
@@ -31,7 +29,7 @@ npm install blessed blessed-components
|
|
|
31
29
|
|
|
32
30
|
| Component | Purpose | Priority |
|
|
33
31
|
| ------------- | ---------------------------------------------------- | -------- |
|
|
34
|
-
| `ProgressBar` | Render one bounded horizontal progress bar.
|
|
32
|
+
| [`ProgressBar`](./src/components/progress-bar/README.md) | Render one bounded horizontal progress bar. | Available |
|
|
35
33
|
| `Sparkline` | Render compact time-series data with Unicode blocks. | P0 |
|
|
36
34
|
| `MetricBars` | Render labeled metrics as aligned progress bars. | P0 |
|
|
37
35
|
| `Stat` | Display a label and highlighted value. | P0 |
|
|
@@ -110,13 +108,21 @@ Useful commands:
|
|
|
110
108
|
|
|
111
109
|
```sh
|
|
112
110
|
npm run build
|
|
111
|
+
npm run docs
|
|
112
|
+
npm run docs:check
|
|
113
113
|
npm test
|
|
114
114
|
npm run test:watch
|
|
115
115
|
npm run lint
|
|
116
|
+
npm run lint:fix
|
|
117
|
+
npm run biome:check
|
|
116
118
|
npm run typecheck
|
|
117
119
|
npm run format
|
|
120
|
+
npm run format:check
|
|
118
121
|
```
|
|
119
122
|
|
|
123
|
+
ESLint and Biome extend the shared `super-configs` presets. Biome owns
|
|
124
|
+
formatting and import organization; Prettier is not used.
|
|
125
|
+
|
|
120
126
|
## Testing
|
|
121
127
|
|
|
122
128
|
Development follows vertical TDD slices:
|
|
@@ -129,45 +135,12 @@ Development follows vertical TDD slices:
|
|
|
129
135
|
Tests should use public interfaces and observable output. Internal mocks and
|
|
130
136
|
large snapshots are avoided.
|
|
131
137
|
|
|
132
|
-
## Releases
|
|
133
|
-
|
|
134
|
-
[semantic-release](https://github.com/semantic-release/semantic-release)
|
|
135
|
-
publishes from `main`.
|
|
136
|
-
|
|
137
|
-
Commit messages follow
|
|
138
|
-
[Conventional Commits](https://www.conventionalcommits.org/):
|
|
139
|
-
|
|
140
|
-
```text
|
|
141
|
-
fix: clamp progress values
|
|
142
|
-
feat: add progress bar renderer
|
|
143
|
-
feat!: change component update contract
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
Release mapping:
|
|
147
|
-
|
|
148
|
-
| Commit | Release |
|
|
149
|
-
| --------------- | ------- |
|
|
150
|
-
| `fix:` | Patch |
|
|
151
|
-
| `feat:` | Minor |
|
|
152
|
-
| Breaking change | Major |
|
|
153
|
-
|
|
154
|
-
The release workflow:
|
|
155
|
-
|
|
156
|
-
1. Validates formatting, linting, types, tests, and build.
|
|
157
|
-
2. Calculates the next version from commits.
|
|
158
|
-
3. Publishes the package to npm.
|
|
159
|
-
4. Creates a GitHub release with generated notes.
|
|
160
|
-
|
|
161
|
-
### npm trusted publishing setup
|
|
162
|
-
|
|
163
|
-
Before the first release, configure an npm trusted publisher for:
|
|
164
|
-
|
|
165
|
-
- Organization or user: `ElJijuna`
|
|
166
|
-
- Repository: `blessed-components`
|
|
167
|
-
- Workflow filename: `release.yml`
|
|
138
|
+
## Releases and documentation
|
|
168
139
|
|
|
169
|
-
|
|
170
|
-
|
|
140
|
+
`semantic-release` publishes packages from `main`. After a real npm release
|
|
141
|
+
succeeds, the same workflow generates TypeDoc for the released version and
|
|
142
|
+
deploys `docs/api` to GitHub Pages. Commits that produce no release do not
|
|
143
|
+
deploy documentation.
|
|
171
144
|
|
|
172
145
|
## License
|
|
173
146
|
|