gr
gr copied to clipboard
This is amazing
This works amazing... :100: @mixu
Thank you
Thanks! Glad to hear that! Let me know if you have any ideas for improvements, and I'll take a look at them next time I'm doing work on gr
. I'm particularly interested if someone can up with a compelling team / project use case (e.g. multiple people working in a multirepo environment). gr works well enough for me but I think there is still some additional potential in terms of making common tasks easier to execute across a fixed set of directories.
I can probably give you a few insights on the team / project use case, I'm working on something similar to these libraries:
http://amp.ampersandjs.com/ http://tachyons.io/
Primarily I think I'll use this to:
- Run gulp tasks ( less, html, bump tags etc... )
- Git ( keep consistent branches, push tags )
- Install Bower or NPM packages
At some point it would be great to:
- Search / Replace across repos ( main use-case would be to update package.json things like that )
I still need to take a full look the plugin system and some of your ideas in the README. As I come across ideas or things I'll shoot them your way.
Another team project use-case. I'm working on a team of developers who are implementing a web project with a front-end in node.js, and a backend of many services. The project is polyglot (node and C# developed in Windows) and our teams may need to perform operations across all of our background service repositories, all front-end repositories, or collections of the whole.
I personally use this tool to operate on just those collections I care about. Just services, just front-end, or the project as a whole, allowing me to save hours of time over the week avoiding switching directories and repeating the same commands over and over.
I use it to do the following things (in order of frequency):
- Git (keep consistent branches, push tags etc...)
- Build the project in chunks I've defined as tags
- Run tests
- Check commit status and repository sanity (look for clean vs changes..)
Because we're on a polyglot project, the fact that gr pretty much only runs git commands, or arbitrary commands of my choosing, is a fantastic boon. Keep up the good work! :+1:
I started writing a tool like this yesterday in node.. then realized in the evening I should search and see if someone already had, and found gr! I haven't tried it yet, but here is my usecase, which I think gr will handle well:
We have a multi-repo project. To run end-to-end testing we need to run npm start
in 8 separate repos. Developing a feature often involves modifying 1/2 or more of the repos, so being able to branch and check on the status of repos will be huge.
I'm also hoping to find some utilities to handle npm link
, because there are also additional repos (beyond the 8!) that are libraries which need to be linked in if we have modified them.