More Premium Hugo Themes Premium Vue Themes

Vue Wp Plugin Starter

Vue Wordpress Plugin Starter with Vue3, Typescript, and Webpack

Vue Wp Plugin Starter

Vue Wordpress Plugin Starter with Vue3, Typescript, and Webpack

Author Avatar Theme by niiknow
Github Stars Github Stars: 23
Last Commit Last Commit: Jan 16, 2024 -
First Commit Created: Apr 29, 2023 -
Vue Wp Plugin Starter screenshot

Product Analysis: Vue Wordpress Plugin Starter

Overview

Vue Wordpress Plugin Starter is a template project that allows users to effortlessly create a new WordPress plugin using Vue3, Typescript, and Laravel Mix as the Webpack wrapper. It provides a convenient starting point for developers to build plugins with modern frontend technologies.

Features

  • Vue3 and Typescript: The plugin template is built on Vue3 and Typescript, providing developers with the benefits of these technologies for building robust and scalable plugins.
  • Laravel Mix (Webpack wrapper): Laravel Mix is used as the Webpack wrapper, simplifying the process of compiling and bundling frontend assets.
  • Easy Scaffolding: Users can simply click the “Use this template” button to create a new plugin based on the template project.
  • Dependency Installation: The template project provides instructions to install PHP dependencies using Composer and front-end dependencies using npm.
  • Deployment Guide: A step-by-step guide is provided to help users deploy their plugin to a WordPress website.
  • Translation Support: The template project includes functionality for plugin translation, allowing developers to generate pot files and create language translations for the frontend.
  • Frontend Apps: The template project includes two frontend apps. Shortcodes can be used to embed these apps in WordPress pages or posts.

Installation

To create a new plugin using Vue Wordpress Plugin Starter, follow these steps:

  1. Click the “Use this template” button to create a new project based on the template.
  2. Install PHP dependencies by running composer install.
  3. Install front-end dependencies by running npm install.
  4. To build the plugin for deployment, run npm run build. This will generate wp-your-plugin-name.zip file.
  5. Deploy the generated wp-your-plugin-name.zip to your WordPress website.
  6. To create plugin translation files, run npm run make-pot. This will generate pot files in the languages/ folder. Then, run npm run compile-vue-translation to create languages/translation.json file for the Vue front-end.
  7. Update the readme.txt file appropriately, as it is a required file for WordPress plugins.

Summary

Vue Wordpress Plugin Starter is a convenient template project that allows developers to easily create new WordPress plugins with Vue3, Typescript, and Laravel Mix. It provides features like easy scaffolding, dependency installation guides, deployment instructions, and translation support. The template project serves as a great starting point for building modern and scalable plugins for WordPress websites.