Make WordPress Core


Ignore:
Timestamp:
06/13/2025 11:01:18 PM (9 months ago)
Author:
westonruter
Message:

Build/Test Tools: Improve dev environment's CLI in speed, non-interactive usage, and argument handling.

  • Start cli container when running env:start. This greatly speeds up calls to WP-CLI since the container is already running rather than having to start up for each call.
  • Facilitate calls to env:cli in non-interactive context (non-TTY) to allow piping content into commands or use in shell scripts.
  • Fix passing arguments to WP-CLI from env:cli so that arguments with spaces are passed as expected.
  • Fix JSHint issues.

This aligns the wordpress-develop environment closer to wp-env. See https://github.com/WordPress/gutenberg/pull/50007.

Props westonruter, jorbin, SirLouen, sandeepdahiya.
Fixes #63564.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docker-compose.yml

    r60305 r60308  
    112112      - ./:/var/www
    113113
     114    # Keeps the service alive.
     115    command: 'sleep infinity'
     116
    114117    # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly.
    115118    init: true
Note: See TracChangeset for help on using the changeset viewer.