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

Method getDefaultAnswers

lib/stencil-init.js:75–82  ·  view source on GitHub ↗

* @param {{port: (number), normalStoreUrl: (string), accessToken: (string), apiHost: (string)}} stencilConfig * @returns {{port: (number), normalStoreUrl: (string), accessToken: (string), apiHost: (string)}}

(stencilConfig)

Source from the content-addressed store, hash-verified

73 * @returns {{port: (number), normalStoreUrl: (string), accessToken: (string), apiHost: (string)}}
74 */
75 getDefaultAnswers(stencilConfig) {
76 return {
77 normalStoreUrl: stencilConfig.normalStoreUrl,
78 accessToken: stencilConfig.accessToken,
79 port: stencilConfig.port || this._serverConfig.get('/server/port'),
80 apiHost: API_HOST,
81 };
82 }
83
84 /**
85 * @param {{port: (number), normalStoreUrl: (string), accessToken: (string)}} defaultAnswers

Callers 2

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected