Skip to content

Commit 67c793a

Browse files
committed
Prepare distrubuyion and build workflow (#4)
1 parent bafb4b2 commit 67c793a

25 files changed

Lines changed: 307 additions & 806 deletions

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
cache: npm
18+
- run: npm ci
19+
- run: npm run lint
20+
- run: npm run format:check
21+
22+
test:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
cache: npm
30+
- run: npm ci
31+
- run: npm run test:coverage
32+
- uses: actions/upload-artifact@v4
33+
if: always()
34+
with:
35+
name: coverage
36+
path: coverage/
37+
38+
build:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: actions/setup-node@v4
43+
with:
44+
node-version: 20
45+
cache: npm
46+
- run: npm ci
47+
- run: npm run build
48+
- uses: actions/upload-artifact@v4
49+
with:
50+
name: dist
51+
path: packages/*/dist/

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: npm
20+
registry-url: https://registry.npmjs.org
21+
22+
- run: npm ci
23+
- run: npm run lint
24+
- run: npm run format:check
25+
- run: npm run test
26+
- run: npm run build
27+
28+
- name: Publish to npm
29+
run: npm publish -w packages/cli --access public
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
33+
- name: Create GitHub Release
34+
uses: softprops/action-gh-release@v2
35+
with:
36+
generate_release_notes: true

.gitlab-ci.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Clux
22

3-
> **v0.1.0 — This project is under active development.** APIs, commands, and features may change without notice.
3+
> **v0.2.0 — This project is under active development.** APIs, commands, and features may change without notice.
44
55
A tmux session multiplexer with a web dashboard and CLI. Clux lets you create, manage, and monitor multiple tmux sessions from the browser or command line. Run any command — LLM coding agents, dev servers, build scripts, or anything else. It supports inter-pane messaging, session tagging, and real-time output monitoring out of the box.
66

@@ -109,8 +109,8 @@ clux attach my-project
109109
clux/
110110
packages/
111111
core/ # Session management, tmux wrapper, metadata store
112-
cli/ # Commander-based CLI (@clux/cli)
113-
web/ # Express + WebSocket dashboard (@clux/web)
112+
cli/ # Commander-based CLI (@clux-cli/cli)
113+
web/ # Express + WebSocket dashboard (@clux-cli/web)
114114
```
115115

116116
This is an npm workspaces monorepo. The `core` package is a shared dependency used by both `cli` and `web`.

0 commit comments

Comments
 (0)