From c0ab1d83fb1c7a52687996d5c32fe7f3618a2216 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Mon, 16 May 2016 15:16:07 -0700 Subject: [PATCH] Rename to `.distignore` to imply use for generic distibution --- features/scaffold.feature | 2 +- php/commands/scaffold.php | 2 +- .../{plugin-svnignore.mustache => plugin-distignore.mustache} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename templates/{plugin-svnignore.mustache => plugin-distignore.mustache} (95%) diff --git a/features/scaffold.feature b/features/scaffold.feature index cc79744ae7..9b52d6cd65 100644 --- a/features/scaffold.feature +++ b/features/scaffold.feature @@ -125,7 +125,7 @@ Feature: WordPress code scaffolding .DS_Store node_modules/ """ - And the {PLUGIN_DIR}/hello-world/.svnignore file should contain: + And the {PLUGIN_DIR}/hello-world/.distignore file should contain: """ .git .gitignore diff --git a/php/commands/scaffold.php b/php/commands/scaffold.php index 11bf1b9107..7f29542a6d 100644 --- a/php/commands/scaffold.php +++ b/php/commands/scaffold.php @@ -447,7 +447,7 @@ function plugin( $args, $assoc_args ) { "$plugin_dir/package.json" => Utils\mustache_render( 'plugin-packages.mustache', $data ), "$plugin_dir/Gruntfile.js" => Utils\mustache_render( 'plugin-gruntfile.mustache', $data ), "$plugin_dir/.gitignore" => Utils\mustache_render( 'plugin-gitignore.mustache', $data ), - "$plugin_dir/.svnignore" => Utils\mustache_render( 'plugin-svnignore.mustache', $data ), + "$plugin_dir/.distignore" => Utils\mustache_render( 'plugin-distignore.mustache', $data ), "$plugin_dir/.editorconfig" => file_get_contents( WP_CLI_ROOT . "/templates/.editorconfig" ), ), $force ); diff --git a/templates/plugin-svnignore.mustache b/templates/plugin-distignore.mustache similarity index 95% rename from templates/plugin-svnignore.mustache rename to templates/plugin-distignore.mustache index 7c2581b323..6a8b3da106 100644 --- a/templates/plugin-svnignore.mustache +++ b/templates/plugin-distignore.mustache @@ -1,5 +1,5 @@ # A set of files you probably don't want in your WordPress.org distribution -.svnignore +.distignore .editorconfig .git .gitignore