itinerisltd/preflight-extra

Extra preflight-command checkers for professional developers.

0.3.1 2018-08-22 03:01 UTC

This package is auto-updated.

Last update: 2024-04-07 15:28:16 UTC


README

Packagist Version PHP from Packagist Packagist Downloads GitHub License Hire Itineris

Extra preflight-command checkers for professional developers.

TODO: Write the readme!

Installation

$ wp package install itinerisltd/preflight-extra:@stable

preflight.toml

# Note: extra-expected-status-codes is experimental.
[extra-expected-status-codes]
enabled = true # Default is enabled.
[[extra-expected-status-codes.groups]]
  code = 404
  paths = [
    '/not-found',
  ]
[[extra-expected-status-codes.groups]]
  code = 200
  paths = [
    '/',
    '/hello-world',
  ]

[extra-production-home-url]
url = 'https://example.com'

[extra-production-site-url]
url = 'https://example.com/wp' # Maybe same as home URL

[extra-required-constants]
includes = [
  'WP_ENV',
  'MY_CONSTANT_A',
  'MY_CONSTANT_B',
]

[extra-required-packages]
includes = [
  'aaemnnosttv/wp-cli-login-command',
  'itinerisltd/preflight-yoast-seo',
]

[extra-required-plugins]
includes = [
  'sunny',
  'wp-cloudflare-guard',
]

For Itineris Team

$ composer test
$ composer check-style

Pull requests without tests will not be accepted!