Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.49 KB

local-dev.md

File metadata and controls

36 lines (29 loc) · 1.49 KB

Local WordPress Test Environment

All PHP tests are based off of the WordPress "unit" test suite, and therefore need a full WordPress test environment. The install script in '/bin' is pretty standard and should work with VVV or whatever.

We provide a docker-based development environment. It is recommended that you use this environment because the setup is scripted and all of the tests can be run with it.

The local server is http://localhost:8228

Requirements

Install Test Environment

  • Install local development environment, dependencies and setup test forms
    • composer dev:install
      • May take awhile.
  • Go to http://localhost:8228 and make sure you have a WordPress site and can login.
    • Username: admin
    • password: password
  • See Commands

JavaScript Development

  • Install
    • yarn
  • Develop JavaScript that is not blocks or the old stuff in /assets
    • yarn start
  • Develop blocks
    • yarn start:blocks
  • Build all JavaScript and CSS
    • yarn build