├── .gitignore
├── README.md
├── _config.yml
├── includes
├── Classes
│ ├── AccessControl.php
│ ├── Activator.php
│ ├── AdminAjaxHandler.php
│ ├── AdminApp.php
│ ├── HelperClass.php
│ ├── Menu.php
│ ├── PostType.php
│ └── index.php
├── autoload.php
└── global_functions.php
├── index.php
├── languages
└── index.php
├── license.txt
├── mix-manifest.json
├── package-lock.json
├── package.json
├── plugin-name.php
├── src
├── images
│ └── logo.png
├── js
│ ├── AdminApp.vue
│ ├── Components
│ │ ├── Dashboard.vue
│ │ ├── Settings.vue
│ │ └── Supports.vue
│ ├── boot.js
│ ├── elements.js
│ ├── main.js
│ ├── plugin_main_js_file.js
│ └── routes.js
├── scss
│ └── admin
│ │ ├── app.scss
│ │ └── global_css.scss
└── setup.js
├── webpack.mix.js
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | /.assets
3 | logs
4 | *.log
5 | npm-debug.log*
6 | yarn-debug.log*
7 | yarn-error.log*
8 | lerna-debug.log*
9 |
10 | # Diagnostic reports (https://nodejs.org/api/report.html)
11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 |
13 | # Runtime data
14 | pids
15 | *.pid
16 | *.seed
17 | *.pid.lock
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 | .grunt
31 |
32 | # Bower dependency directory (https://bower.io/)
33 | bower_components
34 |
35 | # node-waf configuration
36 | .lock-wscript
37 |
38 | # Compiled binary addons (https://nodejs.org/api/addons.html)
39 | build/Release
40 |
41 | # Dependency directories
42 | node_modules/
43 | jspm_packages/
44 |
45 | # TypeScript v1 declaration files
46 | typings/
47 |
48 | # TypeScript cache
49 | *.tsbuildinfo
50 |
51 | # Optional npm cache directory
52 | .npm
53 |
54 | # Optional eslint cache
55 | .eslintcache
56 |
57 | # Microbundle cache
58 | .rpt2_cache/
59 | .rts2_cache_cjs/
60 | .rts2_cache_es/
61 | .rts2_cache_umd/
62 |
63 | # Optional REPL history
64 | .node_repl_history
65 |
66 | # Output of 'npm pack'
67 | *.tgz
68 |
69 | # Yarn Integrity file
70 | .yarn-integrity
71 |
72 | # dotenv environment variables file
73 | .env
74 | .env.test
75 |
76 | # parcel-bundler cache (https://parceljs.org/)
77 | .cache
78 |
79 | # Next.js build output
80 | .next
81 |
82 | # Nuxt.js build / generate output
83 | .nuxt
84 | dist
85 |
86 | # Gatsby files
87 | .cache/
88 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
89 | # https://nextjs.org/blog/next-9-1#public-directory-support
90 | # public
91 |
92 | # vuepress build output
93 | .vuepress/dist
94 |
95 | # Serverless directories
96 | .serverless/
97 |
98 | # FuseBox cache
99 | .fusebox/
100 |
101 | # DynamoDB Local files
102 | .dynamodb/
103 |
104 | # TernJS port file
105 | .tern-port
106 |
107 | assets/
108 | src/images/.DS_Store
109 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # WordPress boilerplate plugin with Vue.js
2 |
3 | #### A simple boilerplate plugin for WordPress using vue js.
4 |
5 | ## How to use:
6 |
7 | * Clone this repository on your local `plugin folder`
8 |
9 | * Run command `npm i` to install node modules.
10 |
11 | Now just setup for your own plugin, it's very easy using node auto command.
12 | ##### 1. Auto setup:
13 | Just run `node src/setup`
14 | it will ask for a plugin name, type your plugin name and hit enter.
15 |
16 | Your plugin is ready to use.
17 |
18 | Now run `npm run watch`
19 | Then activate the plugin from your WP admin dashboard.
20 |
21 | If you want to make setup by hand you can do it also. But auto setup is the best option for you.
22 |
23 | Or Manual Setup
24 |
25 | ## Step to make your own plugin
26 |
27 | * Open with an IDE (Vscode, sublime, PhpStorm etc)
28 |
29 | * Change all the `plugin_name` to Your-Plugin-Name
30 | * Change all the `PLUGINNAME` to YOURPLUGINNAME (Upper case)
31 | * Change all the `PluginName` to YourPluginName (Upper Camel Case)
32 | * Change all the `Plugin_Name` to your_plugin_name
33 | * Change all the `textdomain` to yourtextdomain
34 |
35 |