This project requires the following to run:
- Sass
- Grunt
- NPM
This project makes use of the following conventions
- Git Flow development flow
- Semantic versioning
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 installto install all grunt plugins. Seepackage.jsonfor details.
You are now ready to work on the project.
The development process makes use of the Grunt taskrunner.
- Run
gruntto compile your Sass and run the watch task. SeeGruntfile.jsfor details. - Run
grunt buildto output build files to/release. SeeGruntfile.jsfor details.
For maximum flexibility, this project outputs build files as an archive, ready to upload to any server.
- Follow the Git Flow process for creating a release branch
- Releases are versioned following Semantic Versioning
- Run
grunt bump:{major|minor|patch}to increment the version number inpackage.json, - Run
grunt versionto copy the new version number to additional relevant project files:README.mdsass/styles.scss{custom_theme}/style.css{custom_plugin/custom_plugin.php}