From 3c4b7b70c0ac9c5a768a7462eb1b678412a8030c Mon Sep 17 00:00:00 2001 From: Oliver Stark Date: Tue, 29 May 2018 17:57:17 +0200 Subject: [PATCH] web/cpresources >> .gitignore --- src/.gitignore.example | 4 ---- src/services/Git.php | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/.gitignore.example b/src/.gitignore.example index f773ad8..d04fdfb 100644 --- a/src/.gitignore.example +++ b/src/.gitignore.example @@ -5,10 +5,6 @@ # COMPOSER /vendor -# CRAFT STORAGE -/storage/* -!/storage/.gitkeep - # ASSETS /web/assets/* /web/cpresources/* diff --git a/src/services/Git.php b/src/services/Git.php index 1b5cafe..c758c32 100644 --- a/src/services/Git.php +++ b/src/services/Git.php @@ -224,6 +224,7 @@ public function assureDotGitignore() if (strpos($gitignored, "web/assets") === false) { $gitignored .= PHP_EOL . '# ASSETS (added by fortrabbit/craft-copy)'; $gitignored .= PHP_EOL . '/web/assets/*' . PHP_EOL; + $gitignored .= PHP_EOL . '/web/cpresources/*' . PHP_EOL; return (file_put_contents($gitignoreFile, $gitignored)) ? true : false; }