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

Method initBundle

lib/stencil-bundle.js:91–103  ·  view source on GitHub ↗

* Initializes bundling process and executes all required tasks. * * @returns {Promise } - path of the generated bundle

()

Source from the content-addressed store, hash-verified

89 * @returns {Promise<string>} - path of the generated bundle
90 */
91 async initBundle() {
92 try {
93 const result = await async.series({
94 validate: this._validateTheme.bind(this),
95 bundle: this._bundleTaskRunner.bind(this),
96 });
97 return result.bundle;
98 } catch (err) {
99 const errorMessage = err.message ? err.message : String(err);
100 console.error('failed -- '.red + errorMessage.red);
101 throw err;
102 }
103 }
104
105 getCssAssembleTask(compiler) {
106 const assembleOptions = {

Callers 3

bundleThemeMethod · 0.95
runFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected