-
Notifications
You must be signed in to change notification settings - Fork 0
Contributing
WoompaLoompa edited this page Jul 21, 2026
·
2 revisions
Guide for contributing to the CLINK payment plugin.
- Check existing issues
- Use Bug Report template
- Include:
- Medusa version
- Plugin version
- Steps to reproduce
- Logs
- Check discussions
- Use Feature Request template
- Describe use case
- Fork repository
- Create feature branch
- Make changes
- Add tests
- Submit PR
- Node.js 18+
- npm or yarn
- Git
# Clone
git clone https://github.com/shocknet/medusa-bitcoin-lightning-payment-module-via-clink.git
# Install
npm install
# Test
npm test
# Build
npm run build- TypeScript strict mode
- ESLint for linting
- Prettier for formatting
- Files:
kebab-case.ts - Classes:
PascalCase - Functions:
camelCase - Constants:
UPPER_SNAKE_CASE
# All tests
npm test
# Watch mode
npm run test:watch
# Coverage
npm run test:coveragedescribe("Feature", () => {
it("should do something", async () => {
// Arrange
const input = { /* ... */ }
// Act
const result = await service.method(input)
// Assert
expect(result).toEqual(expected)
})
})Follow Conventional Commits:
-
feat:new feature -
fix:bug fix -
docs:documentation -
test:adding tests
Examples:
feat: add Kraken support
fix: handle expired invoice
docs: update merchant guide
- Code follows style guidelines
- Self-review completed
- Tests added/updated
- Documentation updated
- No console.log statements
- All tests pass