Giter VIP home page Giter VIP logo

wp-boilerplate's Introduction

WP Boilerplate

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

                            _  _
Maintained by              | || |
 _ __    __ _   ___    ___ | || |__       ___   ___   _ __ ___
| '_ \  / _` | / _ \  / __|| || '_ \     / __| / _ \ | '_ ` _ \
| | | || (_| || (_) || (__ | || |_) | _ | (__ | (_) || | | | | |
|_| |_| \__, | \___/  \___||_||_.__/ (_) \___| \___/ |_| |_| |_|
         __/ |
        |___/    Feel free to touch me at [email protected]

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

wp-boilerplate's People

Contributors

dependabot[bot] avatar lbngoc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.