Create a new wordpress plugin in seconds using GruntJS.
If you don't have NodeJS and grunt already installed on your PC then follow these instructions, otherwise proceed to next section.
-
Install NodeJS.
-
Install GruntJS by typing the following command:
npm install -g grunt-cli
- Run the following command in the repository root directory to install all the required grunt plugins:
npm install
This setup is required only once.
- Duplicate file
build-sample.json
asbuild.json
- Fill in values in
build.json
. You should at-least give the values for "plugin-name", "author-name", "author-email" - Type the following in the repository root directory:
grunt
A directory named dist would be created and would have the generated code for your wordpress plugin.
The generated code for wordpress plugins mainly comes from the awesome WordPress Plugin Boilerplate by Tom McFarlin.