Boilerplate setup for a React & ES6 WordPress plugin.
This plugin adds a menu item to your wp-admin, which will load a very simple react component.
It's a work in progress! Feel free to open any issues and submit PR's :)
- Install Node.js
npm install
within plugin directory.
cd /path/to/wordpress/wp-content/plugins/wp-react-boilerplate
npm install
gulp
This repo uses Gulp and webpack to concatenate files.
gulp
- (default) Will run build tasks for css and react js
gulp watch
- Will watch files and update when changed.