visual-framework / vf-wp

WordPress theme and plugins for Visual Framework integration
3 stars 6 forks source link

VF 2.0 WordPress - Themes and Plugins

VF-WP is a collection of WordPress themes and plugins that integrate with the Visual Framework. They are currently heavily tied to the brand-specific "VF 2.0 for the EMBL Design Language". Additional WordPress plugin dependencies are kept in an external repository (see below).

Documentation

Plugin Documentation

Architecture

The Visual Framework WordPress theme uses a plugin-based architecture.

Architecture documentation →

Blocks

Blocks are small, reusable content patterns based on the Visual Framework.

Blocks documentation →

Containers

Containers are large, single use template patterns based on the Visual Framework.

Containers documentation →

Templates

Templates are configurable container stacks that can be used to define preset dynamic theme templates.

Templates documentation →


Development

Theme and Plugin Development

Contributing to this repository requires command line tools:

To start:

# Install dev dependencies
yarn install

This project makes use of Visual Framework components to build its CSS and JavaScript.

These scripts and tasks are available:

yarn run update-components

To interactively update the Visual Framework components (and other npm packages).

gulp build

Note: the CI will run gulp build on commit to master.

gulp default

To launch local development of the above with a watch task.

gulp vf-gutenberg

To compile the Gutenberg React blocks.

EMBL + EMBL-EBI site local development for WordPress

  1. Clone repo by running - git clone --recursive https://github.com/visual-framework/vf-wp.git
  2. Use any of the below variation of command to build the site

    Run command
    • bin/dev quick_group - to build WordPress website with basic Visual Framework default configuration - Plugin/themes enabled
    • bin/dev quick_group_bootstrap - to build WordPress website setup with Visual Framework dummy microsite bootstrap version
    • bin/dev launch - to launch browser
    • bin/dev login - to login in wordpress admin
    Diagnostics
    • bin/dev logs - tail logs from containers
    • bin/dev pma - launch phpMyAdmin to view database
    • bin/dev up - to spin up docker containers
    • bin/dev down - to spin down docker containers
    • bin/dev mailhog - to launch mailhog to view e-mail sent my containers

n.b. To develop locally you'll need to make sure your project's git submodules are up to date: git submodule update --init --recursive

  1. Default variables including CSS/JS version, site title, admin password are configured in .env file.