Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions features/scaffold.feature
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ Feature: WordPress code scaffolding
.DS_Store
node_modules/
"""
And the {PLUGIN_DIR}/hello-world/.svnignore file should contain:
"""
.git
.gitignore
"""
And the {PLUGIN_DIR}/hello-world/hello-world.php file should contain:
"""
* Plugin Name: Hello World
Expand Down
1 change: 1 addition & 0 deletions php/commands/scaffold.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,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/.editorconfig" => file_get_contents( WP_CLI_ROOT . "/templates/.editorconfig" ),
), $force );

Expand Down
17 changes: 17 additions & 0 deletions templates/plugin-svnignore.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# A set of files you probably don't want in your WordPress.org distribution
.svnignore
.editorconfig
.git
.gitignore
.travis.yml
bin
composer.json
composer.lock
Gruntfile.js
package.json
phpunit.xml
phpunit.xml.dist
README.md
tests
vendor
node_modules