The URI Plugin Template repository is a base template for building WordPress plugins with gulp, PHP Code Sniffer, and Travis CI.
There are a few things you need to do to get up and running:
-
Download master.zip and unzip it
-
Rename
.gitattributes-sample
to.gitattributes
-
Rename the main plugin file
uri-plugin-template.php
and update the header to match your new plugin. -
Update
package.json
with your new plugin info. -
Update the
@package
tag insrc/js/script.js
. -
Gulp runs a task to update the plugin version number from
package.json
, so you don't have to update it in two places. However, gulp looks for the main plugin file by name in order to do this, so you'll need to updategulp.js
to reflect the new name. -
If you already have gulp and gulp-cli installed globally, install gulp and devDependencies in the project directory:
$ cd <project_dir>
$ npm install gulp
$ npm install --save-dev
Finally, don't forget to update this readme.
For a more thorough install, and for PHP Code Sniffer support, head over to SETUP.md.
URI Plugin Template
A base template for building WordPress plugins with gulp, PHP Code Sniffer, and Travis CI.
Contributors: Brandon Fuller
Tags: plugins
Requires at least: 4.0
Tested up to: 4.9
Stable tag: 0.1.0