@@ -508,10 +508,10 @@ public function child_theme( $args, $assoc_args ) {
508508 'theme_uri ' => '' ,
509509 ];
510510
511- $ data = wp_parse_args ( $ assoc_args , $ defaults );
512- $ data ['slug ' ] = $ theme_slug ;
513- $ data ['parent_theme_function_safe ' ] = str_replace ( [ ' ' , '- ' ], '_ ' , $ data [ ' parent_theme ' ] );
514- $ data ['description ' ] = ucfirst ( $ data ['parent_theme ' ] ) . ' child theme. ' ;
511+ $ data = wp_parse_args ( $ assoc_args , $ defaults );
512+ $ data ['slug ' ] = $ theme_slug ;
513+ $ data ['prefix_safe ' ] = str_replace ( [ ' ' , '- ' ], '_ ' , $ theme_slug );
514+ $ data ['description ' ] = ucfirst ( $ data ['parent_theme ' ] ) . ' child theme. ' ;
515515
516516 $ theme_dir = WP_CONTENT_DIR . "/themes/ {$ theme_slug }" ;
517517
@@ -624,6 +624,7 @@ private function get_output_path( $assoc_args, $subdir ) {
624624 * options:
625625 * - circle
626626 * - gitlab
627+ * - bitbucket
627628 * - github
628629 * ---
629630 *
@@ -686,8 +687,7 @@ public function plugin( $args, $assoc_args ) {
686687 $ files_to_create = [
687688 $ plugin_path => self ::mustache_render ( 'plugin.mustache ' , $ data ),
688689 $ plugin_readme_path => self ::mustache_render ( 'plugin-readme.mustache ' , $ data ),
689- "{$ plugin_dir }/package.json " => self ::mustache_render ( 'plugin-packages.mustache ' , $ data ),
690- "{$ plugin_dir }/Gruntfile.js " => self ::mustache_render ( 'plugin-gruntfile.mustache ' , $ data ),
690+ "{$ plugin_dir }/composer.json " => self ::mustache_render ( 'plugin-composer.mustache ' , $ data ),
691691 "{$ plugin_dir }/.gitignore " => self ::mustache_render ( 'plugin-gitignore.mustache ' , $ data ),
692692 "{$ plugin_dir }/.distignore " => self ::mustache_render ( 'plugin-distignore.mustache ' , $ data ),
693693 "{$ plugin_dir }/.editorconfig " => file_get_contents ( self ::get_template_path ( '.editorconfig ' ) ),
0 commit comments