| | | |

Talking WPRig and Theming in the Gutenberg Era with Morten Rand-Hendricksen

Some Variables - CSS
Some Variables - CSS

This month we’re taking a look at the WPRig WordPress framework from its developer Morten Rand-Hendricksen. This will be a live remote presentation with Q&A as time allows. If you want to learn more ahead of the meetup, follow this link https://wprig.io/

“Pave the cowpath” – WordPress could be the thing that paves the cowpath for the modern web, but it isn’t.

Underscores used to be the starting theme do build off of, but there was no real standard, and modern, build process.

Build Process

  • Modern JavaScript
  • Modern CSS (customer properties, etc)
  • WordPress Coding Standards
  • Code Linting for PHP, JS, CSS
  • Automatic internationalization
  • Code and asset optimization

Starter Theme

  • Accessible
  • Modern best-practices
  • Styled out of the box
  • Minimum required files
  • Optional templates
  • Progressive features
  • Gutenberg

New in WP Rig 2.0

  • Full rebuild of Gulp process and scripts
  • All-in on OO PHP
  • CSS custom properties and components
  • PostCSS everything
  • No more SASS
    • SASS is to CSS like jQuery was to JavaScript
    • CSS now includes the things that SASS used to provide

Where Do I Get It?

Get it from GtiHub using the v2.0 branch

The WP Rig Philosophy

WP Rig does the heavy lifting so you can focus on what you do best: Build themes using modern PHP, CSS, and JavaScript.

Using WP Rig 2.0

  1. Setup you regular WordPress dev environment.
  2. Clone/copy the WP Rig into the themes folder
  3. Check defaults config/config.default.json
  4. Add custom setting as necessary config/config.json
  5. In terminal, run npm run rig-init
  6. In terminal, run npm run dev
  7. Start developing

Requirements

  • npm
  • composer

Configuration

  • config.default.json

SSL Support

  • npm to generate the cert
  • setup config.json and set https: true

PostCSS

  • Allows you to write future CSS that will then get converted to today’s CSS
  • Can configure your level of feature support
    • Custom media queries
    • Custom properties
    • Nesting rules

Debugging

  • Support to prevent minification/optimization to allow development debugging

Live Editing/Previewing

What Wp Rig Does: PHP

  • Watches PHP files
  • Checking PHP against WP coding standards

What Wp Rig Does: CSS

  • Watches CSS files
  • Processes CSS through PostCSS
  • Lints CSS to WP Coding Standards
  • Integrate with editor
  • Minifies files for production release

What Wp Rig Does: JavaScript

  • Watches JS files
  • Lints JS to WP Coding Standards
  • Integrate with editor
  • Minifies files for production release

Starter Theme Features

  • Accessible down-down menus
  • Modern CSS layout
  • Modern JS loading
  • Optimized Google fonts
  • Lazy-loading images
  • AMP-ready
  • Modular in-body CSS loading
  • Plug-n-Play template hierarchy

Demo

  • Make your changes in the config.json not the config.default.json
  • CSS files are broke out into components/modules and only included when needed.

Similar Posts

  • | | | |

    WordPress Meetup 3/21/19

    Show & Tell WPRig – Morten Rand-Hendrickson (to be next guest speaker) Bold Grid Cloud WordPress Repo Testing – WordPress Theme/Plugin Tester Poopy.Life – Temporary WordPress Installs BrowserStack – Website/Browser Testing Service Grav – Static Site CMS Statamic – Static Site Generator Hugo – Static Site Generator Strattic – Static Site Generator for WordPress Caldera…
  • WordCamp US 2019 – How the WordPress Community Can Embrace the Next Generation (Talk + Panel)

    Talk – Olivia Bisset lemonadecode.com/WCUS If WordPress doesn’t become attractive to the next generation it will become a relic. WordCamps Don’t use the word kids, use words like teens and students Make regular tracks attractive to to young people Market to young people, don’t make it all about old people Meetups Don’t use foul language,…
  • |

    WordCamp GR 2019 – Confidently Testing WordPress – Steve Grunwell

    https://stevegrunwell.github.io/confidently-testing-wordpress/#/ Testing Fundamentals Automated Testing Reduces time + chance of human error Easily reproducible Gateway to CI/CD Test Types Unit – Test the smallest possible unit of an app. Often a single function Integration – How individual components interact End-to-End(E2E) – An entire path through an application Automated Testing Pyramid ROI for Testing System Under…
  • |

    Enterprise API Development…Navigating The Battlefield

    Right now at work I’m the lead on a project to establish a new vendor API. Unfortunately there were decisions made on key specifications of how the API was to be developed before it was handed to me. Where I work there is a lot of legacy standards and so it’s challenging to introduce new…
  • WordCamp GR 2017 – Elementary, My Dear Coder – Nicole Paschen Caylor

    Nicole Paschen Caylor – https://github.com/nicolepaschen Code.org The Hour of Code Kodable – paid program, self-guided game Tynker – tynker.com Code Spark Academy Computer Science Curriculum Uses drag-n-drop code blocks Points out more efficient ways of accomplishing task ScratchJr – found on PBS Kids as well(provides more familiar characters) Scratch – for older kids Tips for Success…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)