Skip to content

Commit e5b2731

Browse files
Generate a generic wp-cli.yml
1 parent 13bd47c commit e5b2731

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/WP_CLI/ScaffoldPackageCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,16 @@ public function package( $args, $assoc_args ) {
8787

8888
$package_root = dirname( dirname( dirname( __FILE__ ) ) );
8989
$template_path = $package_root . '/templates/';
90+
$wp_cli_yml = <<<EOT
91+
require:
92+
- command.php
93+
EOT;
9094

9195
$files_written = $this->create_files( array(
9296
"{$package_dir}/.gitignore" => file_get_contents( "{$package_root}/.gitignore" ),
9397
"{$package_dir}/.editorconfig" => file_get_contents( "{$package_root}/.editorconfig" ),
9498
"{$package_dir}/.distignore" => file_get_contents( "{$package_root}/.distignore" ),
95-
"{$package_dir}/wp-cli.yml" => file_get_contents( "{$package_root}/wp-cli.yml" ),
99+
"{$package_dir}/wp-cli.yml" => $wp_cli_yml,
96100
"{$package_dir}/command.php" => Utils\mustache_render( "{$template_path}/command.mustache", $assoc_args ),
97101
"{$package_dir}/composer.json" => Utils\mustache_render( "{$template_path}/composer.mustache", $assoc_args ),
98102
), $force );

0 commit comments

Comments
 (0)