Xe Plugin is a starter WordPress plugin which have built-in functionalities that are used in almost every plugin. So just focus on the main functionality that you want to built for WordPress.
Latest version of WordPress and Nodejs.
- Change folder name to your plugin name. e.g:
xurais
orxu-rais
. - Navigate to
node_scripts
folder and openconfig.json
with your favorite editor.- Change
"name"
to your plugin name eg:Xurais
orXu Rais
. - Change
"global"
to a unique prefix. e.g:xurais
orxus
. - Change
"build"
to your desired folder path.
- Change
- Open command line, navigate to project folder and run
npm install
to install dependencies. - Run
npm run init
command to change text-domain, prefixes, DocBlocks etc. - Run
npm run build
command to generate a clean copy in destination folder.
Note: .pot
file will also be generated inside languages folder.
🖥️ Hello, fellow developer! 🙂
Your pull requests will be highly welcomed. If you're looking for something to start with, you can check the issues or open one about something you want to contribute and we can discuss it before your pull request.
- You must have latest version of WordPress and Nodejs.
- Create a fork of this repository.
- Clone the fork on your local machine. Your remote repo on Github is called
origin
. - Add the original repository as a remote called
upstream
. - If you created your fork a while ago be sure to pull upstream changes into your local repository.
- Open command line, navigate to the local repository and run
npm install
to install dependencies. - Create a new branch to work on. Keep in mind that code should meet the WordPress Coding Standards.
- Once changes/feature/fix is completed, push your branch to your fork on Github, the remote
origin
. - From your fork open a pull request in the correct branch. Target this project's
main
branch.