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

Method getThemeInfo

lib/StencilDebug.js:55–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 async getThemeInfo() {
56 this.checkExecutableLocation(this._themeConfig);
57 const rawConfig = await this._themeConfig.getRawConfig();
58 const {
59 name,
60 version,
61 /* eslint-disable camelcase */
62 template_engine,
63 css_compiler,
64 meta: { author_name },
65 /* eslint-enable camelcase */
66 } = rawConfig;
67 return {
68 name,
69 version,
70 template_engine,
71 css_compiler,
72 author_name,
73 };
74 }
75
76 async getStencilInfo() {
77 const { apiHost, normalStoreUrl, port } = await this._stencilConfigManager.read();

Callers 1

runMethod · 0.95

Calls 2

getRawConfigMethod · 0.80

Tested by

no test coverage detected