# Accessibly Wordpress Widget
Wordpress plugin built with React.

## Prerequisites for deployment
1. [Install subversion](https://formulae.brew.sh/formula/subversion)

## 🚀 Setup
1. Clone the repository in plugins directory of you WP instance
2. Install node module packages `yarn`
3. Install PHP-composer dependencies `composer install`
4. Start development mode `yarn wp-start`
5. To run in production `yarn wp-build`

### Tips

For a fast, easy, and reliable WordPress local dev server, use [Local by Flywheel](https://localwp.com/). This will save you time setting up WordPress on your computer!

----

### Deployment

1. From your root directory `svn co http://plugins.svn.wordpress.org/otm-accessibly`. This will create otm-accessibly folder with svn repo data.
2. Copy root folder to svn trunk `yarn copy-trunk`
3. cd otm-accessibly and commit changes `svn ci -m 'Your message'`. If the commit fails because of ‘Access forbidden’ and you know you have commit access, add your username and password to the check-in command. `svn ci -m 'Your message' --username your_username --password your_password`. **For svn auth credentials ask your team lead (wordpress.org credentials).**
4. Deploy changes from root `yarn push-to-wp`
5. Check your svn repository [here](https://plugins.trac.wordpress.org/browser/otm-accessibly/trunk/accessibly-plugin.php)

More info about svn commands and options [Documentation](https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/)

