Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
miya0001 committed Oct 13, 2015
2 parents 9c4c4b3 + 44bbaee commit 8efb0c1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions provision/site-cookbooks/wpcli/recipes/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,11 @@
EOH
notifies :restart, "service[apache2]"
end

template File.join( node[:wpcli][:wp_docroot], ".editorconfig" ) do
source "editorconfig.erb"
owner node[:wpcli][:user]
group node[:wpcli][:group]
mode "0644"
action :create_if_missing
end
21 changes: 21 additions & 0 deletions provision/site-cookbooks/wpcli/templates/default/editorconfig.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[{.jshintrc,*.json,*.yml}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf

0 comments on commit 8efb0c1

Please sign in to comment.