Skip to content

Commit

Permalink
Merge pull request #311 from TangRufus/composer-v2-repositories-only
Browse files Browse the repository at this point in the history
Add `only` option to `compsoer.json` examples
  • Loading branch information
koyan committed Apr 21, 2020
2 parents 929f4b8 + 42ffeaa commit 8b356c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Example composer.json:
"repositories":[
{
"type":"composer",
"url":"https://wpackagist.org"
"url":"https://wpackagist.org",
"only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
}
],
"require": {
Expand Down
3 changes: 2 additions & 1 deletion web/templates/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
<div class="highlighter"> "repositories":[
{
"type":"composer",
"url":"https://wpackagist.org"
"url":"https://wpackagist.org",
"only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
}
],
</div> "require": {
Expand Down

0 comments on commit 8b356c1

Please sign in to comment.