-
Notifications
You must be signed in to change notification settings - Fork 188
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
Feature Request: Git Submodule option #163
Comments
I'm not really working on this package at the moment but your idea sounds nice and could maybe be a flag to pass with the existing git command. If you're able to create a PR I'd be happy to review it! |
@DellanX your post is perfect timing for me! I'm also working on a setup to let us develop multiple packages with a lot of front-end assets, and was starting down the route of submodules... If you're going to work on a PR for this, great! If not, I'll try and put something together next week as I'd like to use this package along with a submodule setup. |
I think the feature is pretty easy to add and will give it a shot over the next few days. I've never worked with commands before, so it may take a bit of tinkering. |
Okay, created a fork, and implemented a change.
|
As a non-sail dev, thank you! :) |
As a heads up, I stopped working on this a bit ago. But I can drop what I discovered here:
To handle naming the submodule correctly, the easiest way to publish the packager config file, and set the path to 'packages' To handle removing packages... never really got there. You'll likely need to execute git rm somewhere in the Remove Command. (I added it a few times, but it struggled. Perhaps the force flag is required) |
The ask
Could there be some equivalent command to
packager:git
that uses submodules.I think this would be duplicating the command but replacing
git clone
withgit submodule add
Context
I am working on multiple packages that has a lot of UI views, and the frontend folks on my team with don't know laravel very well. By using submodules, I can wrap our package development environment into a laravel instance with a
.gitmodules
file.I use the
packager:git
command to setup composer for myself, but am looking for a way to make it so that they can develop without me launching a private packagist repository.The text was updated successfully, but these errors were encountered: