shoplazza-cli 1.0.10 → 1.0.12
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 +1 -2
- 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 +18 -10
- 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 +2 -1
- 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/lib/checkout/create.js
CHANGED
|
File without changes
|
package/lib/checkout/delete.js
CHANGED
|
File without changes
|
package/lib/checkout/deploy.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/checkout/fields.js
CHANGED
|
File without changes
|
package/lib/checkout/index.js
CHANGED
|
File without changes
|
package/lib/checkout/preview.js
CHANGED
|
File without changes
|
package/lib/checkout/pull.js
CHANGED
|
File without changes
|
package/lib/checkout/push.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
|
package/lib/checkout/undeploy.js
CHANGED
|
File without changes
|
package/lib/checkout/util.js
CHANGED
|
File without changes
|
package/lib/checkout/verify.js
CHANGED
|
File without changes
|
package/lib/checkout/version.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/commands/login.js
CHANGED
|
@@ -68,10 +68,25 @@ const requestAnalyticsIfNeeded = async () => {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
+
const handleStoreUrl = (url) => {
|
|
72
|
+
const ERROR_MESSAGE =
|
|
73
|
+
'Invalid store domain. Please provide the store domain in the following format: developer.myshoplaza.com';
|
|
74
|
+
try {
|
|
75
|
+
if (!url.includes('myshoplaza.com')) {
|
|
76
|
+
throw new Error(ERROR_MESSAGE);
|
|
77
|
+
}
|
|
78
|
+
!url.startsWith('https://') && (url = `https://${url}`);
|
|
79
|
+
return new URL(url).host;
|
|
80
|
+
} catch (error) {
|
|
81
|
+
log.error(chalk.red(`✗ ${ERROR_MESSAGE}`));
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
|
|
71
85
|
const loginIntoStore = async (store) => {
|
|
72
86
|
try {
|
|
73
87
|
if (store) {
|
|
74
|
-
|
|
88
|
+
const storeUrl = handleStoreUrl(store);
|
|
89
|
+
storeUrl && (await checkAndLogin(storeUrl));
|
|
75
90
|
} else {
|
|
76
91
|
const answers = await inquirer.prompt([
|
|
77
92
|
{
|
|
@@ -81,15 +96,8 @@ const loginIntoStore = async (store) => {
|
|
|
81
96
|
}
|
|
82
97
|
]);
|
|
83
98
|
if (answers.store) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
chalk.red(
|
|
87
|
-
`✗ Invalid store provided ${answers.store}. Please provide the store in the following format: developer.myshoplaza.com`
|
|
88
|
-
)
|
|
89
|
-
);
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
await checkAndLogin(answers.store);
|
|
99
|
+
const storeUrl = handleStoreUrl(answers.store);
|
|
100
|
+
storeUrl && (await checkAndLogin(storeUrl));
|
|
93
101
|
} else {
|
|
94
102
|
log.error(chalk.red(`✗ Please input the store domain.`));
|
|
95
103
|
return;
|
package/lib/commands/logout.js
CHANGED
|
File without changes
|
package/lib/commands/store.js
CHANGED
|
File without changes
|
package/lib/commands/switch.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
|
package/lib/commands/version.js
CHANGED
|
File without changes
|
package/lib/common/constants.js
CHANGED
|
File without changes
|
package/lib/common/db/partner.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/common/log.js
CHANGED
|
File without changes
|
package/lib/common/login.js
CHANGED
|
File without changes
|
package/lib/common/logout.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/db/analytics.js
CHANGED
|
File without changes
|
package/lib/db/index.js
CHANGED
|
File without changes
|
package/lib/db/user.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -22,7 +22,7 @@ async function compileJsToWasm(command) {
|
|
|
22
22
|
loading.start();
|
|
23
23
|
createDistIfNotExist();
|
|
24
24
|
await new Promise((resolve, reject) =>
|
|
25
|
-
exec(`"${javyPath}" build
|
|
25
|
+
exec(`"${javyPath}" build "./src/index.js" -o "./dist/${config.extensionName}.wasm"`, (err, stdout, stderr) => {
|
|
26
26
|
if (err) {
|
|
27
27
|
reject(err);
|
|
28
28
|
} else {
|
|
@@ -33,6 +33,7 @@ async function compileJsToWasm(command) {
|
|
|
33
33
|
loading.succeed('✅ WASM compile success');
|
|
34
34
|
} catch (error) {
|
|
35
35
|
loading.error('❌ compile failed:' + error.message);
|
|
36
|
+
console.trace(error);
|
|
36
37
|
process.exit(1);
|
|
37
38
|
}
|
|
38
39
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/function/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/function/utils.js
CHANGED
|
File without changes
|
package/lib/log.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/openAPI/api.js
CHANGED
|
File without changes
|
package/lib/openAPI/index.js
CHANGED
|
File without changes
|
package/lib/oss.js
CHANGED
|
File without changes
|
package/lib/partner-api/axios.js
CHANGED
|
File without changes
|
package/lib/partner-api/index.js
CHANGED
|
File without changes
|
package/lib/report.js
CHANGED
|
File without changes
|
package/lib/tracing.js
CHANGED
|
File without changes
|
package/lib/utils/config.js
CHANGED
|
File without changes
|
package/lib/utils/console.js
CHANGED
|
File without changes
|
package/lib/utils/env.js
CHANGED
|
File without changes
|
package/lib/utils/file.js
CHANGED
|
File without changes
|
package/lib/utils/platform.js
CHANGED
|
File without changes
|
package/lib/utils/utils.js
CHANGED
|
File without changes
|