Skip to content

This repository contains all the tools you need to start new project with WordPress, using all the latest front end development tools.

Notifications You must be signed in to change notification settings

lbngoc/wp-boilerplate

Repository files navigation

WP Boilerplate

This repository contains some tools you need to start building a modern WordPress theme.

                            _  _
Maintained by              | || |
 _ __    __ _   ___    ___ | || |__       ___   ___   _ __ ___
| '_ \  / _` | / _ \  / __|| || '_ \     / __| / _ \ | '_ ` _ \
| | | || (_| || (_) || (__ | || |_) | _ | (__ | (_) || | | | | |
|_| |_| \__, | \___/  \___||_||_.__/ (_) \___| \___/ |_| |_| |_|
         __/ |
        |___/    Feel free to touch me at contact@ngoclb.com

Requirements

Usage Demo

Get Started

First, install create-project if you don't have it

$ npm install -g create-project

Create new project

$ create-project your-project-name lbngoc/wp-boilerplate
$ cd your-project-name

Install development dependencies

$ npm install

Setup Wordpress site and theme

If you want to run this project as stand alone project, run this command first

$ mv docker-compose.standalone.yml docker-compose.override.yml

Either you need to make sure your current devbox network has already started

Open your .env file and change your project details, after that run this command to start setup process

$ npm run setup

Development

We use Docker4WordPresss to init development environment.

For more informations, you can find at here

To start development

$npm run serve

To build theme

$ npm run build

Deployment

Edit your host details inside hosts.yml

For deploy a new release to your host

dep deploy

If you only need update wp-content folder

dep deploy:update_code

Some useful deploy tasks to synchronize between local and host

 pull
  pull:db             Download database from host and import to local
  pull:media          Download media files from host
  pull:plugins        Download plugins from host
  pull:theme          Download only activate theme from host
  pull:themes         Download themes from host
 push
  push:db             Upload and import local database to host
  push:media          Upload media files to host
  push:plugins        Upload plugins to host
  push:theme          Upload only activate theme to host
  push:themes         Upload themes to host

References

About

This repository contains all the tools you need to start new project with WordPress, using all the latest front end development tools.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published