My fingers hurt...
A Presentation by AJ Zane (@azanebrain)
for WordCamp Orange County 2015
(how to be lazy)
1: The benefits of preprocessors
2: Getting setup (quick overview)
3: Why it makes sense with WP
Vanilla PHP:
<?php $title = 'Bracesless WordPress'; >
<?php echo $title; ?>
My fingers hurt...
Precompiled:
- title = 'Bracesless WordPress';
h1.title
= title
#content
p This is much better
| include _smiley-face.jade
Easy to setup
Easy to share
Free
Installing Node
brew install node
OR
nodejs.org/download
Using NPM:
npm install node-sass
IDE that's right for you
Syntax Highlighting
Choose a Task Runner based on its mascot
You will switch
┬ dist/
| ├ app.js
| ├ index.php
| └ style.css
├ lib/
├ src/
| ├ app.coffee
| ├ index.jade
| ├ style.sass
├ .git
├ .gitignore
├ Gulpfile.coffee
├ package.json
└ README.md
Source maps == awesome
github.com/azanebrain/braceslesswp
Precompiled syntaxes are simpler than vanilla code
The learning curve is a matter of forgetting, not learning
"I want to get a new comp and be ready in 10min"
NPM lets you do this
npm install bubba-gump-shrimp
Don't sacrifice hours of dev time to get a new computer running in 10 minutes
comes awesome super hero powers
Adds a layer of complexibility
These tools were not developed for WP theme/plugin development, so watch out
azanebrain.github.io/bracelesswp
my name is AJ Zane
I can be found @azanebrain on all things
Front End Authority | Zan Atlantean | 2pointb