hybridelabs/wordpress-template-boilerplate

Boilerplate template for Wordpress using by Hybride Conseil

v1.9.0 2021-06-30 12:35 UTC

This package is auto-updated.

Last update: 2024-10-29 06:18:53 UTC


README

GitHub release (latest by date) semantic-release

Boilerplate template for Wordpress used by Hybride Conseil

How to use

Run the following composer command to install the theme :

composer create-project deshiloh/wordpress-template-boilerplate

Install dependencies with :

npm install

This theme use Laravel Mix follow the documentation to know how to use it. No build scripts required on package.json since the new version. Just make your configuration in the webpack.mix.js.

basics commands:

# command in dev
npx mix watch

# command for production
npx mix --production

TODO before start coding

  • Change the project name in style.css.
  • for security reasons update the wp-config.php file :
define( 'DISALLOW_FILE_EDIT', true );
define( 'DISALLOW_FILE_MODS', true );

Github

  • Create a secret TOKEN in your repository settings under the Secrets section. The TOKEN is used for the semantic release of the project.

Gitlab

  • Create a secret GL_TOKEN in your repository settings variables. The GL_TOKEN is used for the semantic release of the project.

Things to know

  • For performance reasons Tailwindcss is installed and configured with postcss without a preprocessing tool like Sass, Less, or Stylus, more details here.
  • postcss is configured with the postcss-nesting plugin, that allow you to write css like scss. Go to the repo for more informations.