shoplazza-cli 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +0 -0
- package/.prettierrc +0 -0
- package/README.md +0 -0
- package/examples/checkout-extension/README.md +0 -0
- package/examples/checkout-extension/extension.config.js +0 -0
- package/examples/checkout-extension/extensions/add-shipping-desc/extension.json +0 -0
- package/examples/checkout-extension/extensions/add-shipping-desc/src/index.js +0 -0
- package/examples/checkout-extension/extensions/ext-1/extension.json +0 -0
- package/examples/checkout-extension/extensions/ext-1/src/content.html +0 -0
- package/examples/checkout-extension/extensions/ext-1/src/index.html +0 -0
- package/examples/checkout-extension/extensions/ext-1/src/index.js +0 -0
- package/examples/checkout-extension/extensions/ext-1/src/script.html +0 -0
- package/examples/checkout-extension/extensions/ext-1/src/style.html +0 -0
- package/examples/checkout-extension/extensions/product-list/extension.json +0 -0
- package/examples/checkout-extension/extensions/product-list/src/index.js +0 -0
- package/examples/checkout-extension/extensions/rewrite-navigate/extension.json +0 -0
- package/examples/checkout-extension/extensions/rewrite-navigate/src/content.html +0 -0
- package/examples/checkout-extension/extensions/rewrite-navigate/src/index.html +0 -0
- package/examples/checkout-extension/extensions/rewrite-navigate/src/index.js +0 -0
- package/examples/checkout-extension/extensions/rewrite-navigate/src/script.html +0 -0
- package/examples/checkout-extension/extensions/rewrite-navigate/src/style.html +0 -0
- package/examples/checkout-extension/package-lock.json +0 -0
- package/examples/checkout-extension/package.json +0 -0
- package/fixtures/assets/blog.scss +0 -0
- package/fixtures/assets/cart_modal.scss +0 -0
- package/fixtures/assets/collection_detail.js +0 -0
- package/fixtures/assets/collection_detail.scss +0 -0
- package/fixtures/assets/collection_list.scss +0 -0
- package/fixtures/assets/collection_slider.scss +0 -0
- package/fixtures/assets/feature_columns.scss +0 -0
- package/fixtures/assets/feature_product.scss +0 -0
- package/fixtures/assets/footer.js +0 -0
- package/fixtures/assets/footer.scss +0 -0
- package/fixtures/assets/four_images.scss +0 -0
- package/fixtures/assets/gallery.scss +0 -0
- package/fixtures/assets/header.js +0 -0
- package/fixtures/assets/header.scss +0 -0
- package/fixtures/assets/image_text.scss +0 -0
- package/fixtures/assets/logo_bar.scss +0 -0
- package/fixtures/assets/newsletter.scss +0 -0
- package/fixtures/assets/not_found.scss +0 -0
- package/fixtures/assets/page_detail.scss +0 -0
- package/fixtures/assets/pagination.scss +0 -0
- package/fixtures/assets/postcss.config.js +0 -0
- package/fixtures/assets/product_description.scss +0 -0
- package/fixtures/assets/product_detail.js +0 -0
- package/fixtures/assets/product_detail.scss +0 -0
- package/fixtures/assets/relative_product.scss +0 -0
- package/fixtures/assets/reviews.scss +0 -0
- package/fixtures/assets/rich_text.scss +0 -0
- package/fixtures/assets/search.js +0 -0
- package/fixtures/assets/search.scss +0 -0
- package/fixtures/assets/slide.scss +0 -0
- package/fixtures/assets/slider.scss +0 -0
- package/fixtures/assets/test.scss +0 -0
- package/fixtures/assets/theme.css +0 -0
- package/fixtures/assets/theme.scss +0 -0
- package/fixtures/assets/three_images.scss +0 -0
- package/fixtures/assets/tools.scss +0 -0
- package/fixtures/assets/two_images.scss +0 -0
- package/fixtures/assets/video.scss +0 -0
- package/fixtures/assets/video_text.scss +0 -0
- package/fixtures/config/settings_data.json +0 -0
- package/fixtures/config/settings_schema.json +0 -0
- package/fixtures/layout/theme.liquid +0 -0
- package/fixtures/locales/ar-SA.json +0 -0
- package/fixtures/locales/de-DE.json +0 -0
- package/fixtures/locales/en-US.json +0 -0
- package/fixtures/locales/es-ES.json +0 -0
- package/fixtures/locales/fr-FR.json +0 -0
- package/fixtures/locales/id-ID.json +0 -0
- package/fixtures/locales/it-IT.json +0 -0
- package/fixtures/locales/ja-JP.json +0 -0
- package/fixtures/locales/ko-KR.json +0 -0
- package/fixtures/locales/nl-NL.json +0 -0
- package/fixtures/locales/pl-PL.json +0 -0
- package/fixtures/locales/pt-PT.json +0 -0
- package/fixtures/locales/ru-RU.json +0 -0
- package/fixtures/locales/th-TH.json +0 -0
- package/fixtures/locales/zh-CN.json +0 -0
- package/fixtures/locales/zh-TW.json +0 -0
- package/fixtures/sections/apps.liquid +0 -0
- package/fixtures/sections/blog.liquid +0 -0
- package/fixtures/sections/collection_desc.liquid +0 -0
- package/fixtures/sections/collection_detail.liquid +0 -0
- package/fixtures/sections/collection_image.liquid +0 -0
- package/fixtures/sections/collection_list.liquid +0 -0
- package/fixtures/sections/collection_name.liquid +0 -0
- package/fixtures/sections/collection_slider.liquid +0 -0
- package/fixtures/sections/feature_columns.liquid +0 -0
- package/fixtures/sections/feature_product.liquid +0 -0
- package/fixtures/sections/footer.liquid +0 -0
- package/fixtures/sections/four_images.liquid +0 -0
- package/fixtures/sections/gallery.liquid +0 -0
- package/fixtures/sections/header.liquid +0 -0
- package/fixtures/sections/html.liquid +0 -0
- package/fixtures/sections/image_text.liquid +0 -0
- package/fixtures/sections/instagram_plus.liquid +0 -0
- package/fixtures/sections/logo_bar.liquid +0 -0
- package/fixtures/sections/newsletter.liquid +0 -0
- package/fixtures/sections/not_found.liquid +0 -0
- package/fixtures/sections/overlay_image.liquid +0 -0
- package/fixtures/sections/page_detail.liquid +0 -0
- package/fixtures/sections/photo_collection.liquid +0 -0
- package/fixtures/sections/product_description.liquid +0 -0
- package/fixtures/sections/product_detail.liquid +0 -0
- package/fixtures/sections/products.liquid +0 -0
- package/fixtures/sections/relative_product.liquid +0 -0
- package/fixtures/sections/reviews.liquid +0 -0
- package/fixtures/sections/rich_text.liquid +0 -0
- package/fixtures/sections/search.liquid +0 -0
- package/fixtures/sections/slide.liquid +0 -0
- package/fixtures/sections/three_images.liquid +0 -0
- package/fixtures/sections/two_images.liquid +0 -0
- package/fixtures/sections/video.liquid +0 -0
- package/fixtures/sections/video_text.liquid +0 -0
- package/fixtures/snippets/bgset.liquid +0 -0
- package/fixtures/snippets/card_title.liquid +0 -0
- package/fixtures/snippets/cart_modal.liquid +0 -0
- package/fixtures/snippets/collection.liquid +0 -0
- package/fixtures/snippets/collection_filter_modal.liquid +0 -0
- package/fixtures/snippets/default_image_4.liquid +0 -0
- package/fixtures/snippets/default_image_6.liquid +0 -0
- package/fixtures/snippets/default_image_8.liquid +0 -0
- package/fixtures/snippets/four_images_item.liquid +0 -0
- package/fixtures/snippets/header_ads.liquid +0 -0
- package/fixtures/snippets/hero_image.liquid +0 -0
- package/fixtures/snippets/icon_video_play_large.liquid +0 -0
- package/fixtures/snippets/icon_video_play_medium.liquid +0 -0
- package/fixtures/snippets/icon_video_play_small.liquid +0 -0
- package/fixtures/snippets/lazyimg.liquid +0 -0
- package/fixtures/snippets/lazyimg_art.liquid +0 -0
- package/fixtures/snippets/lazysizes.liquid +0 -0
- package/fixtures/snippets/link.liquid +0 -0
- package/fixtures/snippets/pagination.liquid +0 -0
- package/fixtures/snippets/product.liquid +0 -0
- package/fixtures/snippets/product_art_tpl.liquid +0 -0
- package/fixtures/snippets/product_info_body.liquid +0 -0
- package/fixtures/snippets/product_info_tpl.liquid +0 -0
- package/fixtures/snippets/product_label.liquid +0 -0
- package/fixtures/snippets/settings.liquid +0 -0
- package/fixtures/snippets/social-meta-tags.liquid +0 -0
- package/fixtures/snippets/video_html.liquid +0 -0
- package/fixtures/snippets/video_source.liquid +0 -0
- package/fixtures/snippets/video_thumb_icon.liquid +0 -0
- package/fixtures/templates/404.liquid +0 -0
- package/fixtures/templates/collection.liquid +0 -0
- package/fixtures/templates/index.liquid +0 -0
- package/fixtures/templates/page.liquid +0 -0
- package/fixtures/templates/product.liquid +0 -0
- package/fixtures/templates/search.liquid +0 -0
- package/jest.config.js +0 -0
- package/lib/__tests__/log.test.js +0 -0
- package/lib/__tests__/utils.test.js +0 -0
- package/lib/app/api/index.js +0 -0
- package/lib/app/commands/build.js +0 -0
- package/lib/app/commands/connect.js +0 -0
- package/lib/app/commands/create.js +0 -0
- package/lib/app/commands/deploy.js +0 -0
- package/lib/app/commands/list.js +0 -0
- package/lib/app/commands/release.js +0 -0
- package/lib/app/commands/serve.js +22 -14
- package/lib/app/commands/versions.js +0 -0
- package/lib/app/index.js +0 -0
- package/lib/app/template/basic-app/README.md +0 -0
- package/lib/app/template/basic-app/extension.config.json +0 -0
- package/lib/app/template/basic-app/package.json +0 -0
- package/lib/app/template/basic-app/theme-app/assets/index.css +0 -0
- package/lib/app/template/basic-app/theme-app/assets-manifest.json +0 -0
- package/lib/app/template/basic-app/theme-app/blocks/index.liquid +0 -0
- package/lib/app/template/basic-app/theme-app/locales/ar-SA.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/de-DE.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/en-US.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/es-ES.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/fr-FR.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/id-ID.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/it-IT.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/ja-JP.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/ko-KR.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/nl-NL.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/pl-PL.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/pt-PT.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/ru-RU.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/th-TH.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/zh-CN.json +0 -0
- package/lib/app/template/basic-app/theme-app/locales/zh-TW.json +0 -0
- package/lib/app/template/basic-app/theme-app/snippets/index.liquid +0 -0
- package/lib/app/template/embed-app/README.md +0 -0
- package/lib/app/template/embed-app/extension.config.json +0 -0
- package/lib/app/template/embed-app/package.json +0 -0
- package/lib/app/template/embed-app/theme-app/assets-manifest.json +0 -0
- package/lib/app/template/embed-app/theme-app/blocks/index.liquid +0 -0
- package/lib/app/template/embed-app/theme-app/locales/ar-SA.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/de-DE.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/en-US.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/es-ES.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/fr-FR.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/id-ID.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/it-IT.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/ja-JP.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/ko-KR.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/nl-NL.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/pl-PL.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/pt-PT.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/ru-RU.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/th-TH.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/zh-CN.json +0 -0
- package/lib/app/template/embed-app/theme-app/locales/zh-TW.json +0 -0
- package/lib/app/template/embed-app/theme-app/snippets/index.liquid +0 -0
- package/lib/app/template/embed-app/theme-app/snippets/index_css.liquid +0 -0
- package/lib/app/utils/config.js +0 -0
- package/lib/app/utils/index.js +0 -0
- package/lib/auth/__mocks__/getCode.js +0 -0
- package/lib/auth/__mocks__/index.js +0 -0
- package/lib/auth/child.js +0 -0
- package/lib/auth/getCode.js +0 -0
- package/lib/auth/index.js +0 -0
- package/lib/check.js +0 -0
- package/lib/checkout/api.js +0 -0
- package/lib/checkout/build/plugin/vite-plugin-add-extension-id.js +0 -0
- package/lib/checkout/build/plugin/vite-plugin-transform-extension-html.js +0 -0
- package/lib/checkout/build/vite.config.js +0 -0
- package/lib/checkout/build.js +0 -0
- package/lib/checkout/config.js +0 -0
- package/lib/checkout/create.js +0 -0
- package/lib/checkout/delete.js +0 -0
- package/lib/checkout/deploy.js +0 -0
- package/lib/checkout/dev/client.js +0 -0
- package/lib/checkout/dev/index.js +0 -0
- package/lib/checkout/fields.js +0 -0
- package/lib/checkout/index.js +0 -0
- package/lib/checkout/preview.js +0 -0
- package/lib/checkout/pull.js +0 -0
- package/lib/checkout/push.js +0 -0
- package/lib/checkout/template/README.md +0 -0
- package/lib/checkout/template/_gitignore +0 -0
- package/lib/checkout/template/extension.config.js +0 -0
- package/lib/checkout/template/extensions/extension-template/extension.json +0 -0
- package/lib/checkout/template/extensions/extension-template/src/content.html +0 -0
- package/lib/checkout/template/extensions/extension-template/src/index.html +0 -0
- package/lib/checkout/template/extensions/extension-template/src/index.js +0 -0
- package/lib/checkout/template/extensions/extension-template/src/script.html +0 -0
- package/lib/checkout/template/extensions/extension-template/src/style.html +0 -0
- package/lib/checkout/template/package.json +0 -0
- package/lib/checkout/undeploy.js +0 -0
- package/lib/checkout/util.js +0 -0
- package/lib/checkout/verify.js +0 -0
- package/lib/checkout/version.js +0 -0
- package/lib/commands/__tests__/login.test.js +0 -0
- package/lib/commands/__tests__/logout.test.js +0 -0
- package/lib/commands/__tests__/store.test.js +0 -0
- package/lib/commands/__tests__/switch.test.js +0 -0
- package/lib/commands/login.js +0 -0
- package/lib/commands/logout.js +0 -0
- package/lib/commands/store.js +0 -0
- package/lib/commands/switch.js +0 -0
- package/lib/commands/theme/__tests__/delete.test.js +0 -0
- package/lib/commands/theme/__tests__/init.test.js +0 -0
- package/lib/commands/theme/__tests__/list.test.js +0 -0
- package/lib/commands/theme/__tests__/package.test.js +0 -0
- package/lib/commands/theme/__tests__/publish.test.js +0 -0
- package/lib/commands/theme/__tests__/pull.test.js +0 -0
- package/lib/commands/theme/__tests__/push.test.js +0 -0
- package/lib/commands/theme/__tests__/serve.test.js +0 -0
- package/lib/commands/theme/delete.js +0 -0
- package/lib/commands/theme/init.js +0 -0
- package/lib/commands/theme/list.js +0 -0
- package/lib/commands/theme/package.js +0 -0
- package/lib/commands/theme/publish.js +0 -0
- package/lib/commands/theme/pull.js +0 -0
- package/lib/commands/theme/push.js +0 -0
- package/lib/commands/theme/serve.js +0 -0
- package/lib/commands/theme/share.js +0 -0
- package/lib/commands/version.js +0 -0
- package/lib/common/constants.js +0 -0
- package/lib/common/db/partner.js +0 -0
- package/lib/common/inquirers/choose-app.js +0 -0
- package/lib/common/inquirers/choose-partner.js +0 -0
- package/lib/common/log.js +0 -0
- package/lib/common/login.js +0 -0
- package/lib/common/logout.js +0 -0
- package/lib/db/__mocks__/index.js +0 -0
- package/lib/db/__tests__/analytics.test.js +0 -0
- package/lib/db/__tests__/user.test.js +0 -0
- package/lib/db/analytics.js +0 -0
- package/lib/db/index.js +0 -0
- package/lib/db/user.js +0 -0
- package/lib/function/bin/index.js +0 -0
- package/lib/function/bin/javy/javy-arm-linux-v5.0.1 +0 -0
- package/lib/function/bin/javy/javy-arm-macos-v5.0.1 +0 -0
- package/lib/function/bin/javy/javy-x86_64-linux-v5.0.1 +0 -0
- package/lib/function/bin/javy/javy-x86_64-windows-v5.0.1 +0 -0
- package/lib/function/commands/compile.js +0 -0
- package/lib/function/commands/create.js +0 -0
- package/lib/function/commands/list.js +0 -0
- package/lib/function/commands/release.js +0 -0
- package/lib/function/index.js +0 -0
- package/lib/function/template/js/README.md +0 -0
- package/lib/function/template/js/_gitignore +0 -0
- package/lib/function/template/js/extension.config.json +0 -0
- package/lib/function/template/js/package.json +0 -0
- package/lib/function/template/js/src/index.js +0 -0
- package/lib/function/utils.js +0 -0
- package/lib/log.js +0 -0
- package/lib/openAPI/__mocks__/index.js +0 -0
- package/lib/openAPI/api.js +0 -0
- package/lib/openAPI/index.js +0 -0
- package/lib/oss.js +0 -0
- package/lib/partner-api/axios.js +0 -0
- package/lib/partner-api/index.js +0 -0
- package/lib/report.js +0 -0
- package/lib/tracing.js +0 -0
- package/lib/utils/config.js +0 -0
- package/lib/utils/console.js +0 -0
- package/lib/utils/env.js +0 -0
- package/lib/utils/file.js +0 -0
- package/lib/utils/platform.js +0 -0
- package/lib/utils/utils.js +0 -0
- package/package.json +1 -1
package/.editorconfig
CHANGED
|
File without changes
|
package/.prettierrc
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/jest.config.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/app/api/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/app/commands/list.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -79,21 +79,28 @@ async function syncLocalFiles(extensionId) {
|
|
|
79
79
|
* 交互选择预览主题
|
|
80
80
|
*/
|
|
81
81
|
async function usePrompt() {
|
|
82
|
+
const spinner = ora('Fetching theme list...').start();
|
|
82
83
|
const res = await getThemeList();
|
|
83
|
-
const themeList = res.data?.data?.themes || [];
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
84
|
+
const themeList = res.data?.data?.themes?.filter(item => !!item) || [];
|
|
85
|
+
if (!themeList.length) {
|
|
86
|
+
spinner.succeed('Theme list loaded.');
|
|
87
|
+
throw new Error('Your store has no unpublished themes. Please add themes and try again.');
|
|
88
|
+
} else {
|
|
89
|
+
spinner.succeed('Theme list loaded.');
|
|
90
|
+
const { selectedThemeId } = await inquirer.prompt([
|
|
91
|
+
{
|
|
92
|
+
type: 'list',
|
|
93
|
+
name: 'selectedThemeId',
|
|
94
|
+
message: 'Please select a theme to preview:',
|
|
95
|
+
choices: themeList.map((theme) => ({
|
|
96
|
+
name: theme.name,
|
|
97
|
+
value: theme.id
|
|
98
|
+
})),
|
|
99
|
+
loop: false
|
|
100
|
+
}
|
|
101
|
+
]);
|
|
102
|
+
return selectedThemeId;
|
|
103
|
+
}
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
/**
|
|
@@ -166,6 +173,7 @@ async function serve() {
|
|
|
166
173
|
consoleTips(selectedThemeId, extensionId);
|
|
167
174
|
} catch (error) {
|
|
168
175
|
console.error(chalk.red(`[ERROR IN SERVE] ${error.message}`));
|
|
176
|
+
console.trace(error);
|
|
169
177
|
}
|
|
170
178
|
}
|
|
171
179
|
|
|
File without changes
|
package/lib/app/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/app/utils/config.js
CHANGED
|
File without changes
|
package/lib/app/utils/index.js
CHANGED
|
File without changes
|