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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move cake executables into bin directory #123

Merged
merged 3 commits into from Aug 29, 2014
Merged

Conversation

bcrowe
Copy link
Contributor

@bcrowe bcrowe commented Aug 29, 2014

Refs cakephp/cakephp#4347

Note: wasn't sure if we should just leave Installer.php in src/Console... heh, but I did. Open to suggestions on a better location or directory name for it.

@ADmad
Copy link
Member

ADmad commented Aug 29, 2014

Installer.php is fine where it is.

@lorenzo
Copy link
Member

lorenzo commented Aug 29, 2014

Nice! thanks for taking care of this

lorenzo added a commit that referenced this pull request Aug 29, 2014
Move cake executables into bin directory
@lorenzo lorenzo merged commit ad9ff97 into cakephp:master Aug 29, 2014
@bcrowe
Copy link
Contributor Author

bcrowe commented Aug 29, 2014

Will take care of docs in a few.

@bcrowe
Copy link
Contributor Author

bcrowe commented Aug 29, 2014

Closed now that docs PR is open: cakephp/docs#1670

@@ -27,5 +27,8 @@
},
"scripts": {
"post-install-cmd": "App\\Console\\Installer::postInstall"
},
"config" : {
"bin-dir" : "bin"
Copy link
Member

Choose a reason for hiding this comment

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

Does this also move the other scripts that composer normally installs like phpunit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From what I saw, just boris. But I'm not at my computer right now.

Sent from my iPhone

On Aug 29, 2014, at 20:48, Mark Story notifications@github.com wrote:

In composer.json:

@@ -27,5 +27,8 @@
},
"scripts": {
"post-install-cmd": "App\Console\Installer::postInstall"

  • },
  • "config" : {
  •   "bin-dir" : "bin"
    
    Does this also move the other scripts that composer normally installs like phpunit?


Reply to this email directly or view it on GitHub.

Copy link
Member

Choose a reason for hiding this comment

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

I bet it will move phpunit as well. That's not necessarily a problem, but something we'll have to update in the documentation.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would like to see the bin-dir config change in composer.json reverted

bin/cake is an application binary, i would not want to end up all vendors binaries in there as well

Copy link
Member

Choose a reason for hiding this comment

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

bin/cake is an application binary, i would not want to end up all vendors binaries in there as well

I don't like that either.

Copy link
Member

Choose a reason for hiding this comment

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

One problem with moving the bin stub is that it won't actually do anything in the cakephp/cakephp repo. Is it a good idea to have a non-functioning script in the repo?

Copy link
Contributor

Choose a reason for hiding this comment

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

True. I guess that does not make sense either. Another suggestion would be
for the postinstall command to create the symlink?
Op 15 okt. 2014 17:06 schreef "Mark Story" notifications@github.com:

In composer.json:

@@ -27,5 +27,8 @@
},
"scripts": {
"post-install-cmd": "App\Console\Installer::postInstall"

  • },
  • "config" : {
  •   "bin-dir" : "bin"
    

One problem with moving the bin stub is that it won't actually do anything
in the cakephp/cakephp repo. Is it a good idea to have a non-functioning
script in the repo?


Reply to this email directly or view it on GitHub
https://github.com/cakephp/app/pull/123/files#r18899259.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a consensus on removing bin-dir config from composer.json?

2014-10-15 17:58 GMT+02:00 Ceeram c33ram@gmail.com:

True. I guess that does not make sense either. Another suggestion would be
for the postinstall command to create the symlink?
Op 15 okt. 2014 17:06 schreef "Mark Story" notifications@github.com:

In composer.json:

@@ -27,5 +27,8 @@
},
"scripts": {
"post-install-cmd": "App\Console\Installer::postInstall"

  • },
  • "config" : {
  •  "bin-dir" : "bin"
    

One problem with moving the bin stub is that it won't actually do
anything in the cakephp/cakephp repo. Is it a good idea to have a
non-functioning script in the repo?


Reply to this email directly or view it on GitHub
https://github.com/cakephp/app/pull/123/files#r18899259.

Copy link
Member

Choose a reason for hiding this comment

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

Not on my part, I like all binaries in the bin folder

Copy link
Member

Choose a reason for hiding this comment

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

@lorenzo They would still all in same bin folder. Just vendor/bin instead of app/bin. As @ceeram suggested we could symlink app/bin/cake to vendor/bin/cake using post install script.

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

5 participants