WP Manifestindependent plugin directory
manifest / developer / wordpress-plugin-stub

WordPress Plugin Stub

WordPress Plugin Stub

by Marcin Pietrzak · github.com/iworks/wordpress-plugin-stub · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/iworks/wordpress-plugin-stub/archive/refs/heads/master.zip

How prepare development environment?

  1. get this repo: git clone git@github.com:iworks/wordpress-plugin-stub.git
  2. run npm install if needed npm install --force
  3. run grunt build to build assets

How to preapre test environment?

  1. get wordpress-tests-lib repo git clone git@github.com:ArcFramework/wordpress-tests-lib.git
  2. set environment variable WP_TESTS_DIR to path to wordpress-tests-lib repo
  3. configure wp-tests-config.php to use wordpress-tests-lib repo
  4. install PHPUnit Polyfills - composer require --dev yoast/phpunit-polyfills:"^4.0"
  5. set environment variable WP_TESTS_PHPUNIT_POLYFILLS_PATH to path to phpunit-polyfills directory
  6. add some tests
  7. run grunt phpunit

Changelog

CHANGELOG