Skip to content

Commit

Permalink
add .distignore for automatic deployment control (#146)
Browse files Browse the repository at this point in the history
The deployment action utilizes "git archive" if no .distignore is
specified. Doing so, the minified JS/CSS resources are ignored, because
.gitattributes is processed for excludes, but the generated files are
not actually part of git and thus won't become part of the archive.

Using explicit .distignore list we now separate git / Compsoer excludes
from WP deployment. This triggers simple "rsync" without git logic.
  • Loading branch information
stklcode authored May 17, 2020
1 parent d0adbe7 commit fdf7d11
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Directories
/.git
/.github
/.wordpress-org
/node_modules
/vendor

# Files
/.distignore
/.eslintrc.json
/.gitattributes
/.gitignore
/.stylelintrc.json
/.travis.yml
/composer.json
/package.json
/package-lock.json
/composer.lock
/phpcs.xml
/README.md
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/vendor export-ignore

# Files
/.distignore export-ignore
/.eslintrc.json export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
Expand Down

0 comments on commit fdf7d11

Please sign in to comment.