Remove unit name from existing templates.
|1 year ago|
|generators||1 year ago|
|.editorconfig||1 year ago|
|.eslintignore||1 year ago|
|.gitignore||1 year ago|
|README.md||1 year ago|
|package.json||1 year ago|
Generator-wp is a Yeoman generator for generating a base WordPress plugin (with themes to come) or a test environment for WordPress itself. It is forked from generator-wp at UF Health which is based, in part, on generator-wp-make by 10up.
If you need it, install Yeoman through npm:
$ npm install -g yo
To install generator-wp clone this repository, enter the directory, and link it to npm:
$ git clone email@example.com:ChrisWiegman/generator-wp.git && cd generator-wp $ npm install $ npm link
Finally, in the desired project directory (where your plugin or theme will go), initiate the generator:
$ yo wp
generator-wp currently ships with te default project type, it is invoked with a subgenerator.
For each project type you get:
This subgenerator scaffolds out a standard WordPress plugin.
The project even includes some basic unit test examples to help get you started!
$ cd [my-plugin-dir] $ yo wp:plugin
For information on developing and using a generated plugin see the README.md file within after generating.
This subgenerator sets up a quick WordPress environment for testing or other use.
$ cd [the directory where you want to install WordPress] $ yo wp:core
After installation is complete bring up the local environment in Docker with the Develop script and run
./Docker/bin/setup. WordPress will then be accessible at http://wordpress.test
More project types coming soon