Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 1.67 KB

README.md

File metadata and controls

71 lines (43 loc) · 1.67 KB

WordPress Boilerplate

Requirements

  • Yarn v1.x
  • Node v14.x

Get started

Install dependencies with Yarn

yarn

Start webpack server with

yarn start

Enjoy 🥳

If your browser doesn't open navigate to:

http://localhost:9000

Linters and Code Formatters

This project has some linters/code formatters like eslint and prettier to improve the code quality.

For commits

We are using the conventional commits and commitlint, so you need to follow this rules.

An example:

fix: prevent add products to minicart when the quantity is equal to 0

Fix #DEV_AZURE_WORK_ITEM_ID

For branches

We have a linter for git branch names, so you can use these prefixes for your branch:

  • feature (branch for a new feature).
  • hotfix (branch for important bugfixes in production).
  • bugfix (branch for bugfixes to be added in the next release).

The name of the git branches must be in lowercase.

An example:

feature/minicart-component

For SCSS

We have a linter for the SCSS code, this lint use the follow config:

Build

yarn build