Coder Social home page Coder Social logo

evanagee / vuejs-wordpress-plugin-starter Goto Github PK

View Code? Open in Web Editor NEW
100.0 6.0 25.0 1.5 MB

A quick way to get up and running with a Vue-based WordPress plugin

Home Page: https://vuewordpress.com

PHP 50.22% JavaScript 47.40% Vue 2.38%
vuejs wordpress wordpress-plugin vue

vuejs-wordpress-plugin-starter's Introduction

image

vuejs-wordpress-plugin-starter

  • Browsersync for auto refreshing during local development
  • webpack to handle all of the assets

Getting Started

  • Clone the repo inside of your wp-content/plugins directory
  • Rename the cloned plugin directory, vwp-plugin.php and the files inside of the inc/ directory to suite your needs.
  • Review the contents of vwp-plugin.php making sure to replace any occurances of vwp-plugin, vwp_plugin and VwpPlugin with your own namespacing.
  • Navigate to the plugin's directory and run npm install npm run watch for development npm run build when you're ready to deploy the plugin.
  • Note templates/admin/index.php is the base PHP template for the plugin settings UI. It has an element <div id="vwp-plugin"></div> where the Vue app is getting mounted.
  • The provided Vue template can be found in src/vue/App.vue.
  • Activate the plugin in WordPress
  • Get to work!

vuejs-wordpress-plugin-starter's People

Contributors

evanagee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vuejs-wordpress-plugin-starter's Issues

[Request] Provide examples of how to add settings / integrate vue templates with php tags

Could you please add a couple boiler plate admin-options/settings to this base plugin?

I'm new to both vuejs and making wordpress plugins and i'm not finding it obvious (nor having much success in searching for) how to take this base plugin and add options/settings to the admin-options-page. As I clearly cannot put <?php.. tags inside the App.vue template I'm unable to bridge the gap between this template and the WP plugins codex.

I'll take a look around your theme starter to see if i can find an answer there but it'd be great if this starter could stand on its own. I realize this is a very new project and you're likely going to evolve it over time - and thank you for your efforts!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.