Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
node-version-file: .nvmrc
cache: true
require-lockfile: true
- name: Lint
run: pnpm lint:ci
- name: Check syntax and placement behavior
run: |
node --check gitify/contents/code/main.js
Expand Down
4 changes: 4 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"ignorePatterns": ["dist/**"]
}
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ pnpm install
```

```sh
pnpm lint:check
pnpm test
pnpm bundle
```

CI runs `pnpm lint:ci`, which adds GitHub annotations to lint findings.

Tests run the same script in a JavaScript VM with compositor events and cover panel placement, display boundaries, resizing, repeated opens, and window filtering.

With Gitify installed, run `pnpm test:live` inside a Plasma Wayland session. This needs Node (see `.nvmrc`), plus system Python 3 and PyGObject, provided by `python-gobject` on Arch. Python is intentionally system-managed because the live test imports the distro's PyGObject. It launches Gitify with a temporary profile, measures the window through KWin, and checks placement, resizing, and tray hide/reopen. It tests the installed script if enabled; otherwise, it temporarily loads this checkout's script. It unloads its temporary script and closes the test app when finished.
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"license": "MIT",
"type": "module",
"scripts": {
"lint": "oxlint --fix",
"lint:check": "oxlint",
"lint:ci": "oxlint --format=github",
"test": "node --test --test-isolation=none tests/*.test.js",
"test:live": "python3 scripts/test-live.py",
"bundle": "bash scripts/bundle.sh"
Expand All @@ -22,5 +25,8 @@
"onFail": "download"
}
},
"engines": { "node": ">=24" }
"engines": { "node": ">=24" },
"devDependencies": {
"oxlint": "1.90.0"
}
}
224 changes: 223 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading