-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add support for multiple cartridge sources #20
Comments
I will look into it, although it will probably have to be implemented separately for each component, so it may take a while. |
I agree this feature would be a great addition here. Maybe we could contribute with a PR to help here. |
I would definitely be interested in accepting pull requests. I would start by updating |
plus one to this feature |
This feature will be nice to have. |
I have been using Demandware/SFCC's own |
@Jakobud It does, but in a different way.
This issue is about |
Okay that makes sense now. So if the option supported multiple relative/absolute paths to cartridges, how would that work with the clean and bulk upload functionality? Would it loop through all the cartridge paths and zip them together for a bulk upload or what? |
And we can also add some checks before watch and clean like to see if same cartridge exists in two places and give an error to the user. This covers cases when you keep your code in multiple GIT repos and somehow you have a cartridge with same name in two places. If we just upload it we will get unexpected side effects. So just a simple error like "Error! Cartridge app_x already exists in path/to/source1". All the uses cases I covered above (code version bigger than 100MB, or same cartridge in multiple places) might seem strange but I encountered these issues in the past so they happen. Having support for this edge cases would make the tool work nicely for every possible use case. |
Ok I'm already in the process of adding in the ignore option for the watch functionality. I'll PR when I got it working. Running into issues with the underlying watch library chokidar. |
Okay I got a branch done here with ignore implementation. I could use any feedback. https://github.com/Jakobud/dw-utils/tree/feature/watch-ignore-patterns This accepts either a Let me know what you guys think. |
Right now there seems to be support fo just one place where cartridges are loaded and so the config json looks something like:
In some cases we have multiple cartridges that we need to take from multiple repos cloned in different places so it would be nice if there would be support for this.
What I propose is to also add support for "cartridges" to be an array.
So if typeof config.cartridges === "string" then logic is as before and you take cartridges from a single place.
If it's not string then you iterate over the array and watch/clean cartridges from all sources.
The text was updated successfully, but these errors were encountered: