GithubHelp home page GithubHelp logo

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

View Code? Open in Web Editor NEW

This project forked from evanagee/vuejs-wordpress-plugin-starter

0.0 0.0 0.0 701 KB

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-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

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.