-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Removed Grunt Config Files From gitignore #24368
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
Conversation
|
Hi @sprankhub. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
torhoehn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
|
Hi @torhoehn, thank you for the review.
|
|
✔️ QA passed |
VladimirZaets
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sprankhub. Thanks for collaboration.
This fix is not fully valid. We provide the sample of Gruntfile.js file and package.json, but we don't want to commit it because of users can have their own customization. If you want to add some customization to all members of your team you can just update sample file that will be successfully committed and all team members will have ability yo use it
|
@VladimirZaets I think @sprankhub uses the correct way to share the config files. If they follow your suggestion their changes could be gone with the next update of Magento. So his approach will exactly allow to have own customization and even to share it. |
|
@VladimirZaets: I agree and this problem could be solved if those lines get removed from the That file seems to be slightly different then the one in this repo since it is lacking the line So how is that Thanks! @torhoehn: I think @VladimirZaets means that Magento devs cloning this repo are also using their own version of those files and they don't want to accidentally commit those files, hence why they are ignored. |
|
I do not really have anything to add besides the points mentioned by @torhoehn and @hostep. I really think this is the right way. If you are working on a client project, it is vital that any dev can checkout the project and directly work on it without having to copy numerous config files from one place to another. |
|
@VladimirZaets could you have a look at this pull request again given the feedback from @torhoehn, @hostep and me? Thanks! |
|
@magento run all tests |
|
@sidolov any thoughts? |
|
I see "progress needs update". Anything from my side that can be done to push this forward? |
|
Maybe @gabrieldagama @sivaschenko can help ? |
|
maybe @okorshenko ? |
|
@ihor-sviziev @sprankhub this pull request requires technical discussion and approval from our side as there are different points of view regarding the .gitignore content that should be considered. Since the priority on this pull request was set to P4, I don't think we'll be able to be addressed soon. Is there any workaround that can solve this issue for developers that require that without the change for everyone? (I.e. using composer post install script) Do you think the priority should be increased? |
|
As we discussed in Slack with @sivaschenko: @sprankhub what do you think about adding information to the devdocs that in case if you want to add this file to your own git repo - you might need to adjust .gitignore file? What do you think? |
|
If the repository/scripts for creating the |
|
Seems like it’s available only for partners
…On Tue, 5 Jan 2021 at 19:00 Pieter Hoste ***@***.***> wrote:
If the repository/scripts for creating the magento/magento2-base package
and/or the meta package magento/project-community-edition would be open
sourced, we could start creating PR's over there. Since the problem can
only be fixed in there I believe. But that's probably never going to happen
... 🙁
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#24368 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOJOULM5IHEM6U3CGCOORTSYNASHANCNFSM4ISKQ5EA>
.
|
|
I still think this change makes sense - especially for client projects. If you would not like to have it in the general repository, it would indeed make sense to implement it somehow in the repository, which creates the meta packages as suggested by @hostep. However, I do not have access to it. Since adding the respective lines to the Feel free to close this PR if you do not want to / "cannot" merge. |
|
Hi @sprankhub thank you for the pull request! However, considering there are different opinions about the desired content of gitignore file and estimated low priority/severity of this change I have to close this PR. |
|
Hi @sprankhub, thank you for your contribution! |
Description (*)
The following two DevDocs posts nicely show how to use Grunt in order to generate the CSS etc.:
When working on a Magento 2 project, it makes sense that anyone working on the project uses the same Grunt configuration, so that the CSS is generated in the exact same way. Hence, it makes sense to include Grunt configuration files into git. The file
/dev/tools/grunt/configs/local-themes.jshas already been removed from.gitignorein other pull requests (#18960 / #19350). This pull requests removes the remaining Grunt configuration files from the default.gitignore.Manual testing scenarios (*)
.gitignore.Contribution checklist (*)