Top Banner
The Ultimate WordPress Workflow to Create Websites of the Future Browser sync, gulp, SASS, Vagrant, and other goodies
12
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: WordPress workflow of the future

The Ultimate WordPress Workflow

to Create Websites of the Future

Browser sync, gulp, SASS, Vagrant, and other goodies

Page 2: WordPress workflow of the future

We’ll code it live!

Page 3: WordPress workflow of the future

Three Repos Covered

jumpstart – My personal base for WordPress

jumpstart-install-script – Bash script to load jumpstart

jVVV – jumpstart with Varying Vagrant Vagrants

Find all three – https://github.com/elimc?tab=repositories

Page 4: WordPress workflow of the future

Demonstrate Sexy Synching Action …

Page 5: WordPress workflow of the future

List of Tech

Node – https://nodejs.org/

NPM – https://www.npmjs.com/

SASS and LibSASS – http://sass-lang.com/libsass

Browsersync – http://www.browsersync.io/

Gulp.js – http://gulpjs.com/

Vagrant – https://www.vagrantup.com/

Page 6: WordPress workflow of the future

BrowserSync

Live-reloads everything on any device anywhere

Browsersync in action: http://quick.as/az3sxrb

We combine Browsersync with Gulp.js

Page 7: WordPress workflow of the future

Gulp.js

Basically, faster version of Grunt

Will run tasks for us

Run with Browsersync to reload pages

Page 8: WordPress workflow of the future

Grunt Internals

Convert SASS to CSS and auto-prefix it for browser compatibility

Files temporarily saved before next step

Page 9: WordPress workflow of the future

Gulp Internals

Convert SASS to CSS and auto-prefix it for browser compatibility

Files “piped” like in Unix

Page 10: WordPress workflow of the future

Restarting Gulp

Sometimes gulp breaks if your PHP has compilation errors

To restart Gulp:

1. Enter ^C in the CLI

2. Then enter “gulp” in the CLI

Page 11: WordPress workflow of the future

The Future

Gulp 4.0 will fix many compilation errors

Vagrant can combined with automatic DB backups

Possible integration with deployment scripts?

DevOps is a super active area!

Page 12: WordPress workflow of the future

Thankyou