/mt-wp-plugin

MT WordPress plugin

Primary LanguagePHP

MT Wordpress Plugin

Build Status

Development

Requirements

  • PHP and Composer (dependency manager for PHP) are installed

Steps

  1. Install the requirements: composer install
  2. 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/