Skip to content

Commit

Permalink
Add tips to reduce clutter (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Isinlor authored and theofidry committed Jul 10, 2018
1 parent d76b6e9 commit f4d9625
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
1. [Tips](#tips)
1. [Auto-installation](#auto-installation)
1. [Disable links](#disable-links)
1. [Change directory](#change-directory)
1. [Reduce clutter](#reduce-clutter)
1. [Related plugins](#related-plugins)


Expand Down Expand Up @@ -95,7 +97,8 @@ This command creates the following directory structure :


You can continue to run `vendor/bin/behat`, `vendor/bin/phpspec` and co. as before but they will be properly isolated.

Also, `composer.json` and `composer.lock` files in each namespace will allow you to take advantage of automated dependency
management as normally provided by Composer.

### The `all` bin namespace

Expand Down Expand Up @@ -189,6 +192,20 @@ By default, the packages are looked for in the `vendor-bin` directory. The locat
}
```

### Reduce clutter

You can add following line to your `.gitignore` file in order to avoid committing dependencies of your tools.

```.gitignore
/vendor-bin/**/vendor
```

Updating each tool can create many not legible changes in `composer.lock` files. You can use `.gitattributes` file in order
to inform git that it shouldn't show diffs of `composer.lock` files.

```.gitattributes
vendor-bin/**/composer.lock binary
```

## Related plugins

Expand Down

0 comments on commit f4d9625

Please sign in to comment.