-
Notifications
You must be signed in to change notification settings - Fork 142
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
feat(storefront): strf-9582 stencil push: apply theme to multiple storefronts #825
feat(storefront): strf-9582 stencil push: apply theme to multiple storefronts #825
Conversation
- README.md - documentation updated; - theme-api-client.js - activateThemeByVariationId function updated to process multiple channels; - stencil-push.utils.js - updated to process multiple channels; - stencil-push.js - channel_ids option added;
I thought it could be useful to add possibility to use command like If you think it is a good idea to add |
@bc-max It would make sense to have a separate flag, like |
- stencil-push.js - added option to push a theme to all available channels; - stencil-push.utils.js - added option to push a theme to all available channels; - stencil-push.utils.spec.js - tests added (work in progress); - README.md - minor refactoring;
- stencil-push.utils.spec.js - tests added;
- stencil-push.utils.js - Promise.all added; - theme-api-client.js - JSdocs fix;
…refronts (bigcommerce#825) * feat: strf-9582 stencil push: apply theme to multiple storefronts - README.md - documentation updated; - theme-api-client.js - activateThemeByVariationId function updated to process multiple channels; - stencil-push.utils.js - updated to process multiple channels; - stencil-push.js - channel_ids option added; * feat(storefront): work in progress - stencil-push.js - added option to push a theme to all available channels; - stencil-push.utils.js - added option to push a theme to all available channels; - stencil-push.utils.spec.js - tests added (work in progress); - README.md - minor refactoring; * feat: tests added - stencil-push.utils.spec.js - tests added;
Might be a dumb question, but does this just assume which variation is being applied? I don't see a variation being passed in the command |
@dmaurya-gea There's |
Yes, I'm aware of that flag and we use it. I saw the same being used here for a different purpose so wanted to check. I wish document had an example with the channels flag Anyway, I added the
|
What?
This feature allows users to apply one theme to multiple storefronts/channels. There are several options available for users:
stencil push
command will check whether multiple storefronts/channels available. If yes, user will be prompted to chose one or several/all ids (list of available channels will be shown in radio button style);stencil push -a -c 123 456
allows to apply a theme to selected channels and further system questions will be skipped;stencil push -a -allc
allows to apply a theme to all available channels.Tickets / Documentation
STRF-9582
Screenshots (if appropriate)
cc @bigcommerce/storefront-team