Thank you for your interest in contributing! Hummingbird is an open-source development theme for PrestaShop, and your help is highly appreciated π
π¬ Join our Slack community: https://www.prestashop-project.org/slack/
Follow the README.md for detailed setup and build instructions.
- Set up your Git config:
Set up your Git for contributing - Use an editor that supports .editorconfig.
Download an EditorConfig plugin. - Make sure you have Node.js v20 installed.
- If using AI tools to write code, make sure your agent has read the
CONTEXT.mdfile.
- Use BEM naming conventions for CSS.
- Use Bootstrap components when they fully meet your needs.
- Create custom components when Bootstrap isn't sufficient.
- Use Bootstrap CSS variables in your custom components wherever possible to maintain consistency.
- Add comments to your code where clarification is needed.
- Before submitting a PR:
- Format code using Prettier:
npm run prettierandnpm run prettier:fix - Run linters for both JavaScript and styles:
For linting check usenpm run lint && npm run stylelint. Usenpm run lint:fix && npm run stylelint:fixto auto-fix where possible.
Otherwise, fix issues manually.
- Format code using Prettier:
- If your PR is a work in progress, use GitHub draft PR.
- Fill out the PR template thoroughly to speed up testing and review.
- Organize your commits clearly and try to follow
conventional commits to name it.
Examples:feat: add responsive support for product cardsfix: correct header spacing on mobilechore: update dependencies
- AI Code Generation: If you use AI to generate code, ensure it adheres to the modern Hummingbird V2 architecture. PRs containing legacy PrestaShop code (e.g., jQuery, logic bound to CSS classes) generated by AI hallucinations will be requested for changes or rejected.
- Follow the declarative JavaScript framework (
data-ps-*attributes) as outlined in theCONTEXT.md.
You can open an issue to:
- Report a bug π
- Suggest an improvement π‘
- Ask a question or get feedback before starting work π¬