Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Local Dev Environment for starting a new WordPress project.

Notifications You must be signed in to change notification settings

HighTide2020/wp-starter-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

WP Starter Template

Setup Local Environment

Create new project in Local by Flywheel:

  • Set site name, local dev URL, and project directory
  • Choose custom environment:
    • PHP >= 7.1.3 (with php-mbstring enabled)
    • Web server = Apache
    • MySQL >= 5.6

Create Git Repo From Template

  1. Create a new repository in your GitHub or an organization: https://github.com/organizations/example/repositories/new (Do not initialize it with a README, license, or .gitignore files.)

  2. Then clone the starter-template repo without commit history. Move the starter-template files into the project directory and initialize a new repo for the new project:

# @ app/public/

$ git clone --depth 1 https://github.com/m4leware666/wp-starter-template.git
$ rm -rf starter-template/.git
$ cp -r starter-template/. .
$ rm -rf starter-template
$ git init
$ git add .
$ git commit -m "Initial commit"
$ git remote add origin [replace with remote repository URL]
$ git remote -v
$ git push -u origin master

Requirements

Make sure all dependencies have been installed:

Theme development

  • Run yarn from the theme directory to install dependencies
  • Update resources/assets/config.json settings:
    • devUrl should reflect your local development hostname
    • publicPath should reflect your WordPress folder structure (/wp-content/themes/sage for non-Bedrock installs)

Build commands

  • yarn start — Compile assets when file changes are made, start Browsersync session
  • yarn build — Compile and optimize the files in your assets directory
  • yarn build:production — Compile assets for production

Documentation

About

Local Dev Environment for starting a new WordPress project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published