matgargano/vue-wordpress-plugin
Composer 安装命令:
composer require matgargano/vue-wordpress-plugin
包简介
A starting point for using VueJS in WordPress plugins. This is designed to be hacked and changed.
README 文档
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
productionRunnpm run build - For
localRunnpm run build:localto build the JS ornpm run build:local:watchto 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.
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 65
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2017-01-08