Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 998 Bytes

File metadata and controls

44 lines (28 loc) · 998 Bytes

Contributing

Local Development

1. Install dependencies and build

npm install
npm run build

The compiled plugin will be at dist/index.js.

Husky is configured as a prepare script and installs automatically on npm install. The pre-commit hook runs npm run format.

2. Symlink into OpenCode's plugin directory

mkdir -p ~/.config/opencode/plugin
ln -sfn "$PWD/dist/index.js" ~/.config/opencode/plugin/opencode-easy-vision.js

Restart OpenCode to pick up the symlinked plugin.

3. Rebuild on changes

npm run build

OpenCode loads plugins at startup, so restart it after each rebuild to test changes.

Code Style

npm run format        # format src/
npm run format:check  # check without writing

The project uses Prettier with the config in .prettierrc.json.

CI

CI runs on every push via GitHub Actions (.github/workflows/ci.yml). It checks formatting and runs a build. Publishing to npm is gated on CI passing.