mirror of
https://fast.feibisi.com/https://github.com/wp-cli/scaffold-command.git
synced 2025-10-04 17:01:28 +08:00
Update plugin.mustache
and plugin-packages.mustache
Currently if you scaffold a child theme and a plugin, the plugin headers are formatted differently than the child theme headers. The plugin also uses a different version number `0.1-alpha`), which is itself different than the version used in the plugin's `package.json` (`0.0.0`). This commit normalizes the header formatting and updates the version numbers.
This commit is contained in:
parent
3b059f19d8
commit
b7bc86f4e4
2 changed files with 11 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
|||
|
||||
{
|
||||
"name": "{{plugin_slug}}",
|
||||
"version": "0.0.0",
|
||||
"version": "0.1.0",
|
||||
"main": "Gruntfile.js",
|
||||
"author": "{{plugin_author}}",
|
||||
"devDependencies": {
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* Plugin Name: {{plugin_name}}
|
||||
* Version: 0.1-alpha
|
||||
* Description: {{plugin_description}}
|
||||
* Author: {{plugin_author}}
|
||||
* Author URI: {{plugin_author_uri}}
|
||||
* Plugin URI: {{plugin_uri}}
|
||||
* Text Domain: {{textdomain}}
|
||||
* Domain Path: /languages
|
||||
* @package {{plugin_package}}
|
||||
* Plugin Name: {{plugin_name}}
|
||||
* Plugin URI: {{plugin_uri}}
|
||||
* Description: {{plugin_description}}
|
||||
* Author: {{plugin_author}}
|
||||
* Author URI: {{plugin_author_uri}}
|
||||
* Text Domain: {{textdomain}}
|
||||
* Domain Path: /languages
|
||||
* Version: 0.1.0
|
||||
*
|
||||
* @package {{plugin_package}}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue