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.zipHow prepare development environment?
- get this repo:
git clone git@github.com:iworks/wordpress-plugin-stub.git - run
npm installif needednpm install --force - run
grunt buildto build assets
How to preapre test environment?
- get
wordpress-tests-librepogit clone git@github.com:ArcFramework/wordpress-tests-lib.git - set environment variable
WP_TESTS_DIRto path towordpress-tests-librepo - configure
wp-tests-config.phpto usewordpress-tests-librepo - install PHPUnit Polyfills -
composer require --dev yoast/phpunit-polyfills:"^4.0" - set environment variable
WP_TESTS_PHPUNIT_POLYFILLS_PATHto path tophpunit-polyfillsdirectory - add some tests
- run
grunt phpunit