-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Typical workflow to use Phive in a project #318
Comments
Hi there, glad you see a value in using phive :)
Just to confirm: Yes. Having the
Adding the Whether or not you should add it, depends on your workflow and to some extend the type of project: While there is no official recommendation, the same line of thought applies as for composer: If you're creating a library or component that is to be shared with (potentially many) others, having an unnecessary large repository including things a regular use wouldn't need, tools (or vendor) should not be commited along. If, on the other hand, you're dealing with an "end" product, like say a website, that is rather unlikely to be included into other projects ;) having all the tools (and vendor) along, makes a lot of things a lot easier. Like CI Runs for instance.
Having
It's indeed identical. The The change was made to allow for additional configuration settings that will be spread over various files but not to clutter the project root directory.
I'm not sure I understand this question. Phive, unless told to do otherwise, assumes the current work directory to be the one to base its work on. So |
Thank you for your answers.
|
👍
As far as I know, composer's default location for installing an 'executable' is
👍
I'm not sure I'm understanding what you'd like to have here. If you have I'd recommend using build automation tools that encapsulate the calls as needed and, depending on your build tool of choice, make it work from whatever subdirectory you are in. |
You're right. I was mixing up |
I'd wish that https://phar.io/ would document this kind of stuff. Maybe a FAQ section? The first thing, that was confusing to me, was reading…
…and then not being able to find the section describing how the |
The website indeed would need some love... As would phive itself. I have so many things in my head i'd like to implement but so little time :-/ I'll try to update some things here as soon as I can to make things more obvious. |
I am exploring Phive and I see the value of the project and the concept. I am figuring out how to best use it in our existing workflows. I tried looking at the documentation and searching on the web and in Github issues to learn more. Unfortunately, this is still largely opaque to me.
I am mainly wondering what is the typical workflow people tend to use in their projects. It is clear to me that we would commit the
phive.xml
file but there are other questions.tools
directory? I'd rather not but I don't see any references to adding the directory to.gitignore
. I know I can add it myself, of course, but I was wondering if there is a reason it's not there.tools
directory to the $PATH or would you rather add some other location to the path? (~/.phive/phars
has different file names and it's not convenient.)phive.xml
, it creates a file./.phive/phars.xml
. That appears to be the same structure asphive.xml
. Which one should I prefer? Should I commit the.phive
directory?phive
in a subdirectory of the project creates the files there. Is there a way to make it run in the project root context? I suppose I am more worried about executing the tools from any subdirectory (hence question 2) but I was curious about this as well.The text was updated successfully, but these errors were encountered: