Skip to content

Commit

Permalink
web/cpresources >> .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Stark committed May 29, 2018
1 parent a16cc81 commit 3c4b7b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions src/.gitignore.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
# COMPOSER
/vendor

# CRAFT STORAGE
/storage/*
!/storage/.gitkeep

# ASSETS
/web/assets/*
/web/cpresources/*
Expand Down
1 change: 1 addition & 0 deletions src/services/Git.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3c4b7b7

Please sign in to comment.