@@ -28,21 +28,21 @@ Once the command has been run, and the tool finds that the directory is unique,
28
28
The following tool will help you configure your new theme.
29
29
For each setting, set a value and hit " Enter" to continue.
30
30
31
- Theme Name: (WP Theme)
32
- Version: (1. 0.0)
31
+ Theme Name: (WP Theme)
32
+ Version: (0.0.1)
33
33
Template: ()
34
- Theme URI: (https://github.com/example/my -theme)
34
+ Theme URI: (https://github.com/example/wp -theme)
35
35
Theme Bugs URI: (https://github.com/example/wp-theme/issues)
36
- Theme Repository URI: (https:// github.com/ example/wp-theme.git)
36
+ Theme Repository URI: (git@ github.com: example/wp-theme.git)
37
37
Theme Repository Type: (git)
38
38
Description: (This theme was generated using create-wp-theme.)
39
- Author: (Example, INC.)
39
+ Author: (Example, INC.)
40
40
Author Email: (hello@example.com)
41
- Author URI: (https://example.com)
42
- License: (GPL-3.0 )
41
+ Author URI: (https://www. example.com)
42
+ License: (UNLICENSED )
43
43
Tags: (accessibility-ready, translation-ready)
44
- WP Version Required: (4.9.8 )
45
- WP Version Tested: (4.9.8 )
44
+ WP Version Required: (5.0.0 )
45
+ WP Version Tested: (5.0.0 )
46
46
Function Prefix: (wp_theme)
47
47
Class Prefix: (WP_Theme)
48
48
```
@@ -52,52 +52,35 @@ Class Prefix: (WP_Theme)
52
52
The tool will log its progress and errors in the console, exiting on completion and fatal errors.
53
53
54
54
``` shell
55
- Creating theme: My Theme in C:\U sers\n oahm\C ode\c reate-wp-theme-dev\a pp\p ublic\w p-content\t hemes\m y-theme
55
+ Creating theme: WP Theme in C:\U sers\n oahm\C ode\c reate-wp-theme-dev\a pp\p ublic\w p-content\t hemes\m y-theme
56
56
57
57
Repo cloned: https://github.com/dreamsicle-io/wp-theme-assets.git --> C:\U sers\n oahm\C ode\c reate-wp-theme\t mp
58
58
package-lock.json cleaned: C:\U sers\n oahm\C ode\c reate-wp-theme\t mp\p ackage\p ackage-lock.json
59
59
package.json written: C:\U sers\n oahm\C ode\c reate-wp-theme\t mp\p ackage\p ackage.json
60
- File Renamed: C:\U sers\n oahm\C ode\c reate-wp-theme\t mp\p ackage\i ncludes\c lass-my-theme-assets.php
61
- File built: C:\U sers\n oahm\C ode\c reate-wp-theme\t mp\p ackage\i ncludes\c lass-my-theme-assets.php
62
- License fetched: GNU General Public License v3.0
60
+ File Renamed: C:\U sers\n oahm\C ode\c reate-wp-theme\t mp\p ackage\i ncludes\c lass-wp-theme-assets.php
61
+ File built: C:\U sers\n oahm\C ode\c reate-wp-theme\t mp\p ackage\i ncludes\c lass-wp-theme-assets.php
63
62
License written: C:\U sers\n oahm\C ode\c reate-wp-theme\t mp\p ackage\L ICENSE
64
63
Theme copied: C:\U sers\n oahm\C ode\c reate-wp-theme-dev\a pp\p ublic\w p-content\t hemes\m y-theme
65
64
Repo cleaned: C:\U sers\n oahm\C ode\c reate-wp-theme\t mp
66
65
67
- Theme created: My Theme in C:\U sers\n oahm\C ode\c reate-wp-theme-dev\a pp\p ublic\w p-content\t hemes\m y-theme
66
+ Theme created: WP Theme in C:\U sers\n oahm\C ode\c reate-wp-theme-dev\a pp\p ublic\w p-content\t hemes\m y-theme
68
67
```
69
68
70
69
## Options
71
70
72
71
The tool offers several options that will serve as defaults for the tool's prompt. These options can be used to customize the default options of the tool allowing the developer to go through the prompts faster.
73
72
74
73
``` shell
75
- create-wp-theme -X 1.0.0 -A " Example, INC. " -E hello@example .com -u https://example .com my-theme
74
+ create-wp-theme -X 1.0.0 -A Dreamsicle -E hello@dreamsicle .com -u https://www.dreamsicle .com my-theme
76
75
```
76
+ > ** Note:** If the option value has spaces in it, wrap it in quotes. For example - ` "Example, Inc" ` .
77
77
78
- ** The above would ouput the following prompts:**
78
+ ** The above would set the defaults for the following prompts:**
79
79
80
80
``` shell
81
- The following tool will help you configure your new theme.
82
- For each setting, set a value and hit " Enter" to continue.
83
-
84
- Theme Name: (WP Theme)
85
- Version: (1.0.0)
86
- Template: ()
87
- Theme URI: (https://github.com/example/my-theme)
88
- Theme Bugs URI: (https://github.com/example/wp-theme/issues)
89
- Theme Repository URI: (https://github.com/example/wp-theme.git)
90
- Theme Repository Type: (git)
91
- Description: (This theme was generated using create-wp-theme.)
92
- Author: (Example, INC.)
93
- Author Email: (hello@example.com)
94
- Author URI: (https://example.com)
95
- License: (GPL-3.0)
96
- Tags: (accessibility-ready, translation-ready)
97
- WP Version Required: (4.9.8)
98
- WP Version Tested: (4.9.8)
99
- Function Prefix: (wp_theme)
100
- Class Prefix: (WP_Theme)
81
+ Author: (Dreamsicle)
82
+ Author Email: (hello@dreamsicle.com)
83
+ Author URI: (https://www.dreamsicle.com)
101
84
```
102
85
103
86
## Help
@@ -118,18 +101,18 @@ Options:
118
101
-N, --themeName < name> The theme name (default: " WP Theme" )
119
102
-X, --themeVersion [version] The theme version (default: " 0.0.1" )
120
103
-T, --themeTemplate [theme] The parent theme if this is a child theme (default: " " )
121
- -U, --themeURI [uri] The theme URI (default: " https://github.com/dreamsicle-io/create- wp-theme" )
122
- -B, --themeBugsURI [uri] The theme bugs URI (default: " https://github.com/dreamsicle-io/create- wp-theme/issues" )
123
- -R, --themeRepoURI [uri] The theme repository URI (default: " https:// github.com/dreamsicle-io/create- wp-theme.git" )
104
+ -U, --themeURI [uri] The theme URI (default: " https://github.com/example/ wp-theme" )
105
+ -B, --themeBugsURI [uri] The theme bugs URI (default: " https://github.com/example/ wp-theme/issues" )
106
+ -R, --themeRepoURI [uri] The theme repository URI (default: " git@ github.com:example/ wp-theme.git" )
124
107
-r, --themeRepoType [type] The theme repository type (default: " git" )
125
- -d, --themeDescription [description] The theme description (default: " This theme was generated using create-wp-theme." )
126
- -A, --themeAuthor [name] The theme author (default: " Dreamsicle " )
127
- -E, --themeAuthorEmail [email] The theme author email (default: " hello@dreamsicle.io " )
128
- -u, --themeAuthorURI [uri] The theme author URI (default: " https://www.dreamsicle.io " )
129
- -L, --themeLicense [spdx] The theme license as a valid SPDX expression (default: " GPL-3.0 " )
130
- -t, --themeTags [tags] A CSV of WordPress theme tags (default: " accessibility-ready, translation-ready" )
131
- -W, --wpVersionRequired [version] The version of WordPress the theme requires (default: " 4.9.8 " )
132
- -w, --wpVersionTested [version] The version of WordPress the theme has been tested up to (default: " 4.9.8 " )
108
+ -d, --themeDescription [description] The theme description (default: " This theme was generated using create-wp-theme." )
109
+ -A, --themeAuthor [name] The theme author (default: " Example, INC. " )
110
+ -E, --themeAuthorEmail [email] The theme author email (default: " hello@example.com " )
111
+ -u, --themeAuthorURI [uri] The theme author URI (default: " https://www.example.com " )
112
+ -L, --themeLicense [spdx] The theme license as a valid SPDX expression (default: " UNLICENSED " )
113
+ -t, --themeTags [tags] A CSV of WordPress theme tags (default: " accessibility-ready, translation-ready" )
114
+ -W, --wpVersionRequired [version] The version of WordPress the theme requires (default: " 5.0.0 " )
115
+ -w, --wpVersionTested [version] The version of WordPress the theme has been tested up to (default: " 5.0.0 " )
133
116
-F, --functionPrefix [prefix] The prefix for PHP functions (default: " wp_theme" )
134
117
-C, --classPrefix [prefix] The prefix for PHP classes (default: " WP_Theme" )
135
118
-h, --help display help for command
0 commit comments