Skip to content

markbaindesign/bain-2020

Repository files navigation

Bain 2020

By Bain Design

Version: 0.1.0

Table of contents

Requirements

This project requires the following to run:

  • Sass
  • Grunt
  • NPM

Go back to the top

Conventions

This project makes use of the following conventions

  • Git Flow development flow
  • Semantic versioning

Go back to the top

Setup

The following steps should be taken to install the project environment locally.

  • Add the following to your VVV config.yaml and run vagrant reload --provision
  bain-design-2020:
    repo: https://github.com/markbaindesign/bain-2020.git
    hosts:
      - bain-design-2020.test
    custom:
      delete_default_plugins: true
      install_plugins:
        - debug-bar
        - query-monitor
        - classic-editor
      wp_config_constants:
        WP_DEBUG: true
        WP_DEBUG_LOG: true
        WP_DEBUG_DISPLAY: false
        WP_DISABLE_FATAL_ERROR_HANDLER: true
  • Open project directory in terminal and run npm install to install all grunt plugins. See package.jsonfor details.

You are now ready to work on the project.

Go back to the top

Development

The development process makes use of the Grunt taskrunner.

  • Run grunt to compile your Sass and run the watch task. See Gruntfile.jsfor details.
  • Run grunt build to output build files to /release. See Gruntfile.jsfor details.

Go back to the top

Deployment

For maximum flexibility, this project outputs build files as an archive, ready to upload to any server.

Creating a release

  • Follow the Git Flow process for creating a release branch
  • Releases are versioned following Semantic Versioning

Versioning

  • Run grunt bump:{major|minor|patch}to increment the version number in package.json,
  • Run grunt versionto copy the new version number to additional relevant project files:
    • README.md
    • sass/styles.scss
    • {custom_theme}/style.css
    • {custom_plugin/custom_plugin.php}

Go back to the top

About

WordPress theme for bain.design / 2020

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published