Contributing to ngx-debug-console
February 27, 2026 ยท View on GitHub
First off, thanks for taking the time to contribute! ๐
Getting Started
- Fork the repo:
https://github.com/andrerds/ngx-debug-console - Clone your fork:
git clone git@github.com:YOUR_USERNAME/ngx-debug-console.git cd ngx-debug-console - Install dependencies:
npm install - Build the lib:
npm run build
Development Workflow
Project Structure
src/
โโโ lib/
โโโ types.ts # LogEntry, LogLevel, DebugConsoleConfig
โโโ debug-console.service.ts # Console interception + log store
โโโ debug-http.interceptor.ts # HTTP auto-capture
โโโ provide-debug-console.ts # provideDebugConsole() function
โโโ debug-console.component.ts # Main component
โโโ debug-console.component.html
โโโ debug-console.component.css
โโโ debug-console.module.ts # NgModule wrapper
Testing locally with npm link
# Inside ngx-debug-console/
npm run build
cd dist
npm link
# Inside your Angular project
npm link ngx-debug-console
How to Contribute
Reporting Bugs
Open an issue at https://github.com/andrerds/ngx-debug-console/issues with:
- Angular version
- Steps to reproduce
- Expected vs actual behavior
- Screenshots if applicable
Suggesting Features
Open an issue with the enhancement label. Describe:
- The use case
- Why it would benefit other users
- Any implementation ideas
Submitting a Pull Request
- Create a branch from
main:git checkout -b feat/my-feature # or git checkout -b fix/my-bugfix - Make your changes following the code style (see below)
- Commit using Conventional Commits:
feat: add dark/light theme toggle fix: prevent duplicate log entries on hot reload docs: update README usage examples chore: bump ng-packagr to 14.2 - Push and open a PR against
main - Fill in the PR template
Code Style
- TypeScript strict mode
- BEM naming for CSS classes (prefix
ndc-) - No external UI dependencies (no Ionic, no Material)
- Keep the lib tree-shakeable โ avoid side effects at module level
- Add JSDoc to all public methods and interfaces
Commit Convention
| Prefix | When to use |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting, no logic change |
refactor | Code change that's neither fix nor feature |
test | Adding or fixing tests |
chore | Build process, dependencies |
Questions?
Open a discussion at https://github.com/andrerds/ngx-debug-console/discussions