itzikbenh / WordVue

WordPress starter theme with Vue.js integrated. Webpack+HMR version - https://github.com/itzikbenh/WordVuePack
49 stars 9 forks source link

WordPress starter theme with Vue.js integrated.

This theme pretty much includes only a way to compile your assets with Vue code. It's meant for you to learn Vue inside WordPress, or to create your own theme. It includes an example component. I'm using Gulp+Webpack to compile the assets. Gulp handles the CSS and running Webpack, while Webpack handles JS.

There are packages you would probably want to use such as axios, vuex, etc. I would leave them to you to install.

Clone the theme, run npm install and start playing.

Make sure to modify the BrowserSync proxy link inside the gulpfile.js.

Commands

  1. gulp Will compile, start BrowserSync and watch for any changes.
  2. gulp production Will compile and minify assets.

Vue devtools

Download it here