Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 770 Bytes

File metadata and controls

42 lines (29 loc) · 770 Bytes

wporg-events-2023

Local Env Setup

  1. yarn
  2. yarn build
  3. composer install
  4. Set your WORDCAMP_DEV_GOOGLE_MAPS_API_KEY in .wp-env.json if you want to test Google Map.
  5. yarn wp-env start
  6. yarn setup:wp

Environment management

  • Stop the environment.

    yarn wp-env stop
  • Restart the environment.

    yarn wp-env start
  • Open a shell inside the docker container.

    yarn wp-env run wordpress bash
  • Run wp-cli commands. Keep the wp-cli command in quotes so that the flags are passed correctly.

    yarn wp-env run cli "post list --post_status=publish"
  • Watch for PCSS/JS changes and rebuild them as needed.

    yarn run watch