Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify composer scripts #5183

Merged

Conversation

mlocati
Copy link
Contributor

@mlocati mlocati commented Mar 7, 2017

Composer automatically adds to the PATH variable the concrete/vendor/bin directory, so we can call the scripts in it without specifying the folder.

This also implies that we can avoid duplicating script definitions for posix and Windows.

I had to remove the --colors option in the phpcs script, because PHP on Windows doesn't support VT100 control codes (well, from PHP 7.2 it will, thanks to this contribution of mine 馃槈 )

Composer automatically adds to the PATH variable the concrete/vendor/bin
directory, so we can call the scripts in it without specifying the folder.

This also implies that we can avoid duplicating script definitions for posix
and Windows.
Copy link
Member

@KorvinSzanto KorvinSzanto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃憤 Works for me and way cleaner

@KorvinSzanto KorvinSzanto merged commit 78af2da into concretecms:develop Mar 8, 2017
@mlocati mlocati deleted the simplify-composer-scripts branch March 8, 2017 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants