Skip to content

A boilerplate template for theme development in WordPress

Notifications You must be signed in to change notification settings

enriquebeta6/wordpress-boilerplate

Repository files navigation

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