Vue Diagonal Screens Wordpress Plugin
I created this as a starting point for developing using VueJS within WordPress.
It provides out of the box:
- VueJS
- NPM tasks for building and watching for both production and development
Getting started
- Pull this into the plugins directory of your project either by cloning or using composer. Make sure you have Node.js and Composer installed.
(Mac: /Applications/MAMP/htdocs/wordpress/wp-content/plugins)
- Run
npm install
- Run
composer install
- For production Run
npm run webpack
- Activate the plugin
- Add a
<div id="VwpOledMain"></div>
into your project and the sample application, it's not very exciting but it's a way to quickly scaffold a VueJS plugin.
Note
I may not be the greatest with ES6, feel free to fork or issue a pull request if I've written anything against convention.