This guide is meant for developers wanting to work on the plugin code.
Make a fork and clone it:
git clone --recurse-submodules [email protected]:{YOUR GITHUB USERNAME}/wp-posts-to-posts.git posts-to-posts
You can now work on the PHP and CSS files.
Don't modify admin/box.js
directly. Instead:
-
Install CoffeeScript:
npm install -g coffee-script
and edit the admin/box.coffee
file. To compile it, run:
coffee -c admin
The plugin comes with a few unit tests.
- Install PHPUnit.
- Create
tests/wp-tests-config.php
file. (sample) - Install the scbFramework in the mu-plugins dir.
- Run
./bin/test