Thanks for your interest in contributing to ngx-mq.
The goal of this project is to provide a simple and declarative way to handle media queries in Angular.
Please review the guidelines below to ensure your contributions align with the project’s standards.
Follow the steps below to set up the project locally.
💡 Tip: If you're contributing for the first time, please fork the repository before cloning it. This ensures you can push your changes to your own fork and open a Pull Request later.
# clone your fork
git clone https://github.com/<username>/ngx-mq.git
cd ngx-mq
npm install
npm run build:watch
cd demo
npm startYou’re ready to start contributing.
To keep the repository clean and easy to maintain, please follow the branch and commit naming conventions below.
Use short, descriptive branch names based on the task type:
feat/add-feature
fix/resolve-issue
docs/update-guide
refactor/cleanupFollow the Conventional Commits format:
<type>(optional scope): short descriptionCommon types: feat, fix, docs, refactor, test, chore
Keep commits focused, one change at a time.
Consistent code style helps keep the project readable and easy to maintain. Run the linters before committing any changes.
npm run lintTests help ensure the library remains stable and predictable as it evolves. Run all tests locally before submitting a pull request.
npm run testAim to keep test coverage high and meaningful.
Important:
Do not open pull requests directly to themainbranch.
Themainbranch represents the upcoming development baseline and may contain unreleased or experimental changes.
Each published version of ngx-mq has its own release branch:
1.x.x→ for Angular 16 – 18 compatible releases2.x.x→ for Angular 19 – 20 compatible releases- (future majors will follow the same pattern)
When submitting a PR:
- Identify which Angular version your change applies to.
- Open your PR against the corresponding branch (
1.x.x,2.x.x, etc.). - Use
mainonly if your contribution targets upcoming major features.
Keep pull requests clear and focused.
Follow the provided template and include a concise description of your changes.