Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 2.39 KB

CONTRIBUTING.md

File metadata and controls

49 lines (30 loc) · 2.39 KB

Contributing

Understanding

Before getting started, you should read our article introducing the project: We're Building A Starter Theme For PrestaShop 1.7.8 and 8.

If you are contributing to this theme, you are probably interested in PrestaShop development as well. Please the following article to get familiar with PrestaShop branching model.

You got any questions ? Join the open source slack.

Join the slack at https://www.prestashop-project.org/slack/

Setting up

There are few things to do before you are ready to contribute.

  1. Check your Git configuration. Read Set Up Your Git For Contributing
  2. Check your editor configuration. The rules are defined in .editorconfig. Do it manually or install the available plugin.
  3. Make sure you at least have NodeJS 14 installed.
  4. You should install the theme inside a PrestaShop instance, please refer to the developers docummentation of the project.

How to build the theme

First you need to install every node module:

npm ci

then create a .env file inside the webpack folder by copying webpack/.env-example and complete it with your environment's informations. Please use a free tcp port.

then build assets:

npm run build

Good practices

  • Follow the BEM convention
  • Be careful about creating SCSS files in the right folder, refer to the documentation for further informations.
  • When you want to submit a PR, please make sure that you ran both linters using npm run lint-fix && npm run scss-fix and fixed every lint issues.
  • If your PR is a work in progress, make sure that you use the Github draft mode.
  • Fill the PR template as much as possible, it's important to speed the process of testing, reviewing...
  • Try to organize your commits in a way to simplify the review.

Reporting issues

Open an issue:

  1. To report a bug.
  2. To propose an improvement and get feedbacks before you code it. (example)