MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / stencilPush

Function stencilPush

lib/stencil-push.js:5–31  ·  view source on GitHub ↗
(options = {}, callback)

Source from the content-addressed store, hash-verified

3
4// eslint-disable-next-line default-param-last
5function stencilPush(options = {}, callback) {
6 async.waterfall(
7 [
8 async.constant(options),
9 utils.readStencilConfigFile,
10 utils.getStoreHash,
11 utils.getThemes,
12 utils.generateBundle,
13 utils.uploadBundle,
14 utils.notifyUserOfThemeLimitReachedIfNecessary,
15 utils.promptUserToDeleteThemesIfNecessary,
16 utils.deleteThemesIfNecessary,
17 utils.checkIfDeletionIsComplete(),
18 utils.uploadBundleAgainIfNecessary,
19 utils.notifyUserOfThemeUploadCompletion,
20 utils.pollForJobCompletion((data) => ({ themeId: data.theme_id })),
21 utils.promptUserWhetherToApplyTheme,
22 utils.getChannels,
23 utils.promptUserForChannels,
24 utils.getVariations,
25 utils.promptUserForVariation,
26 utils.requestToApplyVariationWithRetrys(),
27 utils.notifyUserOfCompletion,
28 ],
29 callback,
30 );
31}
32export default stencilPush;

Callers 1

stencil-push.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected