This is a repo for streamlining WordPress Theme development.
- Clone this repo and pull WordPress submodule
git submodule update --init --recursive
- Install npm.
- Run
npm install
to get all dependecies. - Edit
wp-config.php
to configure your$table_prefix
. - Create
config-local.php
file basing onconfig-sample.php
and fill it with your local database configuration. - Run
gulp build
to build your local environment folder.
This starter kit uses src
, build
, and dist
folders, which you can find in content
folder, to organize theme development.
src
is the srouce of your development. The structure looks like in WordPresswp-content
folder.build
folder is generated runninggulp build
. When developing in thelocal
environment, WordPress grabs all the content from here.dist
folder is generated runninggulp dist
. When you push your site tostaging
orproduction
environment, WordPress grabs the content from here.
Some ideas will be borrowed from gulp-starter
- Theme
- Setting up a basic theme with:
- All the necessary files according to WordPress Standards
get_component()
functionACF
plugin
- Adding a
Child Theme
- Setting up a basic theme with:
- Styles
- Linting
- Compiling
SASS
- Autoprefixing
- Supporting newer/future
CSS
- Minifying
- JavaScript
- Linting
- Compiling
ES6
- Minifying
- Images
- Compressing
- Icons
- Auto-generating Icon Fonts from
SVG
Icons
- Auto-generating Icon Fonts from
- BrowserSync / LiveReload
- Enabling BrowserSync / LiveReload
- Deployment
- Setting up deployment procedure
- Bower
- Supporting Bower
- README
- Preparing setup / usage manual
- Writing standards manual for writing
CSS
,JavaScript
and a modularPHP
code