matgargano/vue-wordpress-plugin

A starting point for using VueJS in WordPress plugins. This is designed to be hacked and changed.

Installs: 36

Dependents: 0

Suggesters: 0

Security: 0

Stars: 66

Watchers: 8

Forks: 15

Open Issues: 1

Type:wordpress-plugin

pkg:composer/matgargano/vue-wordpress-plugin

0.0.4 2017-11-18 02:11 UTC

This package is auto-updated.

Last update: 2025-09-26 03:00:47 UTC


README

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.
  • Run npm install
  • Run composer install
  • For production Run npm run build
  • For local Run npm run build:local to build the JS or npm run build:local:watch to watch JS files and build on the fly
  • Activate the plugin
  • Add a <div id="app"></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.