@@ -492,10 +492,10 @@ public function child_theme( $args, $assoc_args ) {
492492 'theme_uri ' => '' ,
493493 ];
494494
495- $ data = wp_parse_args ( $ assoc_args , $ defaults );
496- $ data ['slug ' ] = $ theme_slug ;
497- $ data ['parent_theme_function_safe ' ] = str_replace ( [ ' ' , '- ' ], '_ ' , $ data [ ' parent_theme ' ] );
498- $ data ['description ' ] = ucfirst ( $ data ['parent_theme ' ] ) . ' child theme. ' ;
495+ $ data = wp_parse_args ( $ assoc_args , $ defaults );
496+ $ data ['slug ' ] = $ theme_slug ;
497+ $ data ['prefix_safe ' ] = str_replace ( [ ' ' , '- ' ], '_ ' , $ theme_slug );
498+ $ data ['description ' ] = ucfirst ( $ data ['parent_theme ' ] ) . ' child theme. ' ;
499499
500500 $ theme_dir = WP_CONTENT_DIR . "/themes/ {$ theme_slug }" ;
501501
@@ -608,6 +608,7 @@ private function get_output_path( $assoc_args, $subdir ) {
608608 * options:
609609 * - circle
610610 * - gitlab
611+ * - bitbucket
611612 * - github
612613 * ---
613614 *
@@ -670,8 +671,7 @@ public function plugin( $args, $assoc_args ) {
670671 $ files_to_create = [
671672 $ plugin_path => self ::mustache_render ( 'plugin.mustache ' , $ data ),
672673 $ plugin_readme_path => self ::mustache_render ( 'plugin-readme.mustache ' , $ data ),
673- "{$ plugin_dir }/package.json " => self ::mustache_render ( 'plugin-packages.mustache ' , $ data ),
674- "{$ plugin_dir }/Gruntfile.js " => self ::mustache_render ( 'plugin-gruntfile.mustache ' , $ data ),
674+ "{$ plugin_dir }/composer.json " => self ::mustache_render ( 'plugin-composer.mustache ' , $ data ),
675675 "{$ plugin_dir }/.gitignore " => self ::mustache_render ( 'plugin-gitignore.mustache ' , $ data ),
676676 "{$ plugin_dir }/.distignore " => self ::mustache_render ( 'plugin-distignore.mustache ' , $ data ),
677677 "{$ plugin_dir }/.editorconfig " => file_get_contents ( self ::get_template_path ( '.editorconfig ' ) ),
0 commit comments