Skip to content

Commit 45510f3

Browse files
Merge pull request #25 from DeDuckProject/claude/open-source-release-plan-IoaSl
Expand docs: trigger modes, check-trigger action, and setup guide
2 parents a09aeaa + 6767bae commit 45510f3

3 files changed

Lines changed: 381 additions & 75 deletions

File tree

CLAUDE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ git-glimpse is a GitHub Action + CLI that automatically generates visual demo cl
88

99
```
1010
packages/
11-
core/ — Core library: diff analysis, script generation, recording, publishing
12-
action/ — GitHub Action wrapper
13-
cli/ — CLI for local use (`npx git-glimpse`)
14-
frameworks/ — Framework-specific route detectors (Remix, Next.js, SvelteKit)
15-
examples/ — Example project configurations
16-
tests/ — Integration tests
11+
core/ — Core library: diff analysis, trigger logic, script generation, recording, publishing
12+
action/ — GitHub Action wrapper (main action + check-trigger companion)
13+
cli/ — CLI for local use (`npx git-glimpse`)
14+
check-trigger/ — Lightweight companion action for early trigger evaluation
15+
examples/ — Example project configurations
16+
tests/ — Integration and unit tests
1717
```
1818

1919
## Development Setup

CONTRIBUTING.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Contributing to GitGlimpse
2+
3+
## Setup
4+
5+
```bash
6+
pnpm install
7+
pnpm build
8+
pnpm test
9+
```
10+
11+
Node.js ≥ 20 and pnpm are required. For integration tests you also need FFmpeg and Playwright Chromium:
12+
13+
```bash
14+
sudo apt-get install -y ffmpeg # Linux
15+
brew install ffmpeg # macOS
16+
pnpm --filter @git-glimpse/core exec playwright install chromium --with-deps
17+
```
18+
19+
## Repo structure
20+
21+
```
22+
packages/
23+
core/ — Core library: diff analysis, trigger logic, script generation, recording, publishing
24+
action/ — GitHub Action wrapper (main action + check-trigger companion)
25+
cli/ — CLI for local use (`npx git-glimpse`)
26+
check-trigger/ — Lightweight companion action for early trigger evaluation
27+
examples/ — Example project configurations
28+
tests/ — Integration and unit tests
29+
```
30+
31+
## Running tests
32+
33+
```bash
34+
pnpm test # unit tests (fast, no external deps)
35+
pnpm run test:integration # Playwright + FFmpeg (no API key needed)
36+
pnpm run test:llm # full pipeline with real LLM (requires ANTHROPIC_API_KEY)
37+
```
38+
39+
## Making changes
40+
41+
- **Core logic** lives in `packages/core/src/`
42+
- **Action entrypoint** is `packages/action/src/index.ts`
43+
- **Check-trigger entrypoint** is `packages/action/src/check.ts`
44+
- After changing action source, rebuild the dist: `pnpm build` in `packages/action`
45+
46+
## Branching
47+
48+
- Features: `feat/<name>`
49+
- Bug fixes: `fix/<name>`
50+
- Releases: `release/v<version>`
51+
52+
## Submitting a PR
53+
54+
1. Fork the repo and create a branch from `main`
55+
2. Make your changes with tests where applicable
56+
3. Run `pnpm test` and confirm everything passes
57+
4. Open a PR with a clear description of what changed and why
58+
59+
## Reporting issues
60+
61+
Please include:
62+
- What you expected to happen
63+
- What actually happened
64+
- Your `git-glimpse.config.ts` (redact any secrets)
65+
- The GitHub Actions log output if relevant

0 commit comments

Comments
 (0)