MT Wordpress Plugin
Development
Requirements
- PHP and Composer (dependency manager for PHP) are installed
Steps
- Install the requirements:
composer install
- Run the unittests:
./vendor/bin/phpunit --bootstrap vendor/autoload.php src/test/php/
Sync required files
Create the CSS files
./node_modules/less/bin/lessc src/less/back-end/back-end.less dist/back-end.css
./node_modules/less/bin/lessc src/less/front-end/front-end.less dist/front-end.css
Sync the required files
rsync -r --relative *.php dist/ languages/ vendor/autoload.php vendor/composer vendor/symfony/polyfill-ctype vendor/myclabs/deep-copy src/js src/js src/main/ <host>:<wordpress-dir>/wp-content/plugins/mt-wp-plugin/