@emailmaker/emailmaker 1.0.107-dev.3 → 1.0.107-dev.4
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/README.md +1 -1
- package/cli/dist/lib/cli/project.js +2 -16
- package/cli/dist/lib/config.js +20 -29
- package/cli/dist/lib/local-test.js +3 -19
- package/cli/dist/lib/paths.js +11 -0
- package/cli/dist/lib/resolveNpmSpawn.d.ts +20 -0
- package/cli/dist/lib/resolveNpmSpawn.js +71 -0
- package/cli/dist/lib/template-engine/context/pluginPackageJsonData.js +21 -19
- package/cli/dist/lib/template-engine/context/standVitePackageJsonData.js +7 -8
- package/cli/dist/lib/template-engine/resolveVariantDir.d.ts +5 -1
- package/cli/dist/lib/template-engine/resolveVariantDir.js +22 -0
- package/cli/dist/lib/templates/shared/i18n.js +2 -2
- package/cli/dist/lib/templates/shared/paths.js +3 -4
- package/cli/dist/lib/types/package-config.d.ts +1 -0
- package/cli/lib/cli/project.ts +2 -18
- package/cli/lib/config.ts +19 -30
- package/cli/lib/local-test.ts +3 -22
- package/cli/lib/paths.ts +15 -0
- package/cli/lib/resolveNpmSpawn.ts +72 -0
- package/cli/lib/template-engine/buildStandIndexHtml.test.ts +1 -0
- package/cli/lib/template-engine/context/pluginPackageJsonData.ts +23 -23
- package/cli/lib/template-engine/context/standVitePackageJsonData.ts +7 -12
- package/cli/lib/template-engine/pluginEtaParity.test.ts +1 -0
- package/cli/lib/template-engine/resolveVariantDir.ts +22 -0
- package/cli/lib/template-engine/standAdvancedViteDevHostEta.test.ts +4 -3
- package/cli/lib/template-engine/standWebpackDevHostEta.test.ts +7 -6
- package/cli/lib/templates/shared/i18n.ts +2 -2
- package/cli/lib/templates/shared/paths.ts +3 -4
- package/cli/lib/types/package-config.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/project-templates/plugin/assets/vite/{plugin-build.config.mjs → plugin-build.config.ts} +7 -5
- package/cli/project-templates/plugin/assets/vite/{sandbox-build.config.mjs → sandbox-build.config.ts} +7 -5
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.module.cjs → plugin-build.legacy.module.ts} +20 -7
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.umd.cjs → plugin-build.legacy.umd.ts} +20 -7
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.module.cjs → plugin-build.modern.module.ts} +9 -4
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.umd.cjs → plugin-build.modern.umd.ts} +9 -4
- package/cli/project-templates/plugin/assets/webpack/{sandbox-build.config.cjs → sandbox-build.config.ts} +13 -3
- package/cli/project-templates/plugin/bundler-vite/release.html.eta +1 -0
- package/cli/project-templates/plugin/bundler-webpack/public/release.html.eta +1 -0
- package/cli/project-templates/plugin/shared-base/public/demo/product-1.svg +10 -0
- package/cli/project-templates/plugin/shared-base/public/demo/product-2.svg +10 -0
- package/cli/project-templates/plugin/shared-base/scripts/build-runner.ts +22 -0
- package/cli/project-templates/plugin/shared-base/scripts/build-types.ts +17 -0
- package/cli/project-templates/plugin/shared-base/scripts/clean.ts +16 -0
- package/cli/project-templates/plugin/shared-base/scripts/dev-runner.ts +52 -0
- package/cli/project-templates/plugin/shared-base/scripts/npmRun.ts +61 -0
- package/cli/project-templates/plugin/shared-base/scripts/release-runner.ts +18 -0
- package/cli/project-templates/plugin/shared-base/scripts/scriptRuntime.ts +10 -0
- package/cli/project-templates/plugin/shared-base/src/dev/hostApp.tsx.eta +1 -0
- package/cli/project-templates/plugin/shared-base/src/dev-release.tsx.eta +1 -0
- package/cli/project-templates/plugin/shared-base/src/dev.tsx.eta +1 -1
- package/cli/project-templates/shared/partials/plugin-dev-host-app-advanced.eta +93 -0
- package/cli/project-templates/shared/partials/plugin-dev-host-app-minimal.eta +54 -0
- package/cli/project-templates/shared/partials/plugin-dev-tsx-advanced.eta +3 -2
- package/cli/project-templates/shared/partials/plugin-dev-tsx-debug.eta +18 -0
- package/cli/project-templates/shared/partials/plugin-dev-tsx-release.eta +33 -0
- package/cli/project-templates/shared/partials/plugin-dev-tsx-runtime-helpers.eta +8 -8
- package/cli/project-templates/shared/partials/plugin-index-ts.eta +0 -1
- package/cli/project-templates/shared/partials/plugin-vite-dev-host.eta +9 -5
- package/cli/project-templates/shared/partials/plugin-vite-plugin-build.eta +7 -5
- package/cli/project-templates/shared/partials/plugin-vite-release-html.eta +12 -0
- package/cli/project-templates/shared/partials/plugin-vite-sandbox-build.eta +7 -5
- package/cli/project-templates/shared/partials/plugin-webpack-dev-host-legacy.eta +12 -5
- package/cli/project-templates/shared/partials/plugin-webpack-dev-host-modern.eta +13 -6
- package/cli/project-templates/shared/partials/plugin-webpack-release-html.eta +12 -0
- package/cli/project-templates/shared/partials/plugin-webpack-sandbox-build.eta +13 -3
- package/cli/project-templates/shared/partials/plugin-wp-legacy-module.eta +28 -10
- package/cli/project-templates/shared/partials/plugin-wp-legacy-umd.eta +28 -10
- package/cli/project-templates/shared/partials/plugin-wp-modern-module.eta +9 -4
- package/cli/project-templates/shared/partials/plugin-wp-modern-umd.eta +9 -4
- package/cli/project-templates/shared/partials/stand-dev-host-vite-memory.eta +3 -3
- package/cli/project-templates/shared/partials/stand-dev-host-vite-subpath.eta +8 -4
- package/cli/project-templates/shared/partials/stand-dev-host-vite-umd.eta +5 -5
- package/cli/project-templates/shared/partials/stand-dev-host-vite.eta +3 -3
- package/cli/project-templates/shared/partials/stand-dev-host-webpack-subpath.eta +8 -4
- package/cli/project-templates/shared/partials/stand-dev-host-webpack-umd.eta +9 -3
- package/cli/project-templates/shared/partials/stand-dev-host-webpack.eta +8 -4
- package/cli/project-templates/shared/partials/stand-dev-storage-middleware.eta +370 -0
- package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.ts +80 -0
- package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.ts.eta +1 -0
- package/cli/project-templates/shared/stand-webpack-base/config/lib/{createWebpackStandConfig.cjs → createWebpackStandConfig.ts} +31 -19
- package/cli/project-templates/{stand/advanced/umd/vite/config/lib/umdServeMiddleware.mjs → shared/stand-webpack-base/config/lib/umdServeMiddleware.ts} +19 -11
- package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.ts.eta +1 -0
- package/cli/project-templates/stand/advanced/memory-usage/vite/config/lib/{createMemoryUsageStandConfig.mjs → createMemoryUsageStandConfig.ts} +25 -20
- package/cli/project-templates/stand/advanced/umd/vite/config/lib/umdServeMiddleware.ts +68 -0
- package/cli/project-templates/stand/react-adapter/webpack/README.md.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/config/dev-host.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/package.json.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/public/index.html.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/editorConfig.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/email.html.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/getAuthToken.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/oauthCredentials.ts +9 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/storageProvider.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/index.tsx.eta +1 -0
- package/cli/scripts/cli-matrix-smoke.ts +19 -10
- package/cli/scripts/verify-global-cli.ts +1 -1
- package/cli/scripts/vite-plugin-version-matrix.ts +299 -0
- package/cli/tsconfig.json +2 -2
- package/emailmaker-core.aa9efbce.js +1 -0
- package/emailmaker-esm.js +788 -153
- package/emailmaker.d.ts +32 -0
- package/emailmaker.js +4 -4
- package/iframe/js/amp.BGJMqoms.js +1 -1
- package/iframe/js/chunk.oX6nCJbK.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.BSaCN7eK.js +1 -1
- package/iframe/js/sanitize-html.Dy7Uwo8P.js +1 -1
- package/images/integrations/activecampaign.svg +4 -0
- package/images/integrations/bento.svg +9 -0
- package/images/integrations/brevo.svg +7 -0
- package/images/integrations/campaign_monitor.svg +10 -0
- package/images/integrations/constant_contact.svg +24 -0
- package/images/integrations/dotdigital.svg +144 -0
- package/images/integrations/getresponse.svg +23 -0
- package/images/integrations/hubspot.svg +3 -0
- package/images/integrations/klaviyo.svg +10 -0
- package/images/integrations/mailchimp.svg +9 -0
- package/images/integrations/salesforce.svg +20 -0
- package/js/browser-image-compression.js +9 -0
- package/package.json +2 -5
- package/runtime/@ant-design/cssinjs/index.js +1 -1
- package/runtime/@ant-design/icons/index.js +1 -1
- package/runtime/@ant-design/pro-layout/index.js +1 -1
- package/runtime/README.md +13 -13
- package/runtime/antd/index.js +1 -1
- package/runtime/app-core/index.js +1 -2
- package/runtime/classnames/index.js +1 -1
- package/runtime/core/index.js +6 -6
- package/runtime/dayjs/index.js +1 -1
- package/runtime/di/index.js +1 -2
- package/runtime/disposable/index.js +1 -2
- package/runtime/errors-runtime/index.js +1 -2
- package/runtime/guid/index.js +1 -2
- package/runtime/index.js +2 -4
- package/runtime/package.json +2 -3
- package/runtime/prop-types/index.js +1 -1
- package/runtime/react/index.js +1 -1
- package/runtime/react/jsx-dev-runtime/index.js +1 -1
- package/runtime/react/jsx-runtime/index.js +1 -1
- package/runtime/react-dom/client/index.js +1 -1
- package/runtime/react-dom/index.js +1 -1
- package/runtime/react-router-dom/index.js +1 -1
- package/runtime/uuid/index.js +1 -1
- package/static/amd/{8fc2a596.js → 19aeb269.js} +88 -88
- package/static/core/192ec827.js +1 -0
- package/static/core/22c1de2e2.js +1 -0
- package/static/core/24faedf0.js +1 -0
- package/static/core/29231645.js +1 -0
- package/static/core/2a3177fc2.js +1 -0
- package/static/core/346aabd2.js +3 -0
- package/static/core/3b800ed6.js +1 -0
- package/static/core/3e840e90.js +1 -0
- package/static/core/40cc9fd7.js +1 -0
- package/static/core/421bdec22.js +1 -0
- package/static/core/4aaa358b2.js +903 -0
- package/static/core/50ff48bc.js +4 -0
- package/static/core/5282795d2.js +6 -0
- package/static/core/563a283d.js +1 -0
- package/static/core/5d47e095.js +47 -0
- package/static/core/5f574386.js +1 -0
- package/static/core/67a41193.js +1 -0
- package/static/core/698dace4.js +7 -0
- package/static/core/6b648e2d.js +1 -0
- package/static/core/7629adfd.js +1 -0
- package/static/core/7717f2932.js +3 -0
- package/static/core/776cb34a.js +1 -0
- package/static/core/78a1e31e.js +1 -0
- package/static/core/7d56d643.js +1 -0
- package/static/core/841752212.js +40 -0
- package/static/core/8477e97e.js +1 -0
- package/static/core/8756d562.js +1 -0
- package/static/core/91d328d8.js +1 -0
- package/static/core/9270dbb6.js +6 -0
- package/static/core/96371334.js +566 -0
- package/static/core/9b9ddaef2.js +168 -0
- package/static/core/af1da4b4.js +1 -0
- package/static/core/b5096b152.js +471 -0
- package/static/core/bde6775a.js +1 -0
- package/static/core/bf1b888c.js +4 -0
- package/static/core/cec8d739.js +11 -0
- package/static/core/cf45bf332.js +598 -0
- package/static/core/cfac3d32.js +1 -0
- package/static/core/d21c95cf2.js +1 -0
- package/static/core/dbd9ca52.js +1 -0
- package/static/core/dc590181.js +1 -0
- package/static/core/e0039d55.js +1 -0
- package/static/core/e4071c1a.js +4 -0
- package/static/core/ef87b75c.js +41 -0
- package/static/core/f47701f32.js +20 -0
- package/static/core/f83d7ac42.js +3 -0
- package/static/core/fcc67e6b.js +1 -0
- package/static/core/fd40d85c.js +1 -0
- package/static/core/fe638847.js +1 -0
- package/static/esm/{e8401d17.js → 203c9644.js} +3 -3
- package/static/esm/4b679053.js +27 -0
- package/static/esm/{b273a6c2.js → f31a26c6.js} +1 -1
- package/static/runtime/disposable-CD74igiJ.js +1 -0
- package/static/runtime/guid-C0wuVR8v.js +1 -0
- package/vite/index.d.ts +17 -6
- package/vite/index.js +315 -270
- package/vite/pluginDev/index.d.ts +10 -19
- package/vite/pluginDev/index.js +251 -204
- package/webpack/index.d.ts +24 -5
- package/webpack/index.js +168 -144
- package/webpack/pluginDev/index.d.ts +21 -22
- package/webpack/pluginDev/index.js +242 -177
- package/cli/dist/lib/template-engine/buildStandIndexHtml.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/buildStandIndexHtml.test.js +0 -89
- package/cli/dist/lib/template-engine/emitEtaTree.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/emitEtaTree.test.js +0 -34
- package/cli/dist/lib/template-engine/pluginEtaParity.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/pluginEtaParity.test.js +0 -105
- package/cli/dist/lib/template-engine/resolveVariantDir.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/resolveVariantDir.test.js +0 -52
- package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.js +0 -67
- package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.js +0 -83
- package/cli/dist/lib/template-engine/storageProviderEta.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/storageProviderEta.test.js +0 -26
- package/cli/project-templates/plugin/shared-base/scripts/build-types.cjs +0 -8
- package/cli/project-templates/plugin/shared-base/scripts/clean.cjs +0 -6
- package/cli/project-templates/plugin/shared-base/scripts/dev-runner.cjs +0 -48
- package/cli/project-templates/plugin/shared-base/scripts/release-runner.cjs +0 -63
- package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.mjs +0 -80
- package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.cjs +0 -235
- package/cli/project-templates/shared/stand-webpack-base/config/lib/umdServeMiddleware.cjs +0 -38
- package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.cjs +0 -235
- package/emailmaker-core.80d62b88.js +0 -569
- package/runtime/_core/app-core/index.js +0 -1
- package/runtime/_core/chunks/app-core-DphKKh8f.js +0 -1
- package/runtime/_core/chunks/chunk-oqAt0Dze.js +0 -1
- package/runtime/_core/chunks/di-BHUzE57z.js +0 -1
- package/runtime/_core/chunks/disposable-PhM3rJkj.js +0 -1
- package/runtime/_core/chunks/errors-runtime-VjCOXaQX.js +0 -1
- package/runtime/_core/chunks/guid-D2-FTZQG.js +0 -1
- package/runtime/_core/di/index.js +0 -1
- package/runtime/_core/disposable/index.js +0 -1
- package/runtime/_core/errors-runtime/index.js +0 -1
- package/runtime/_core/guid/index.js +0 -1
- package/runtime/_core/index.js +0 -1
- package/shared/hostBootstrap.js +0 -47
- package/shared/pluginDevOptions.js +0 -31
- package/shared/runtimeManifest.js +0 -72
- package/shared/stringCase.js +0 -16
- package/static/core/2360f32a.js +0 -3
- package/static/core/2687db56.js +0 -3
- package/static/core/2b250af6.js +0 -1261
- package/static/core/3469930c.js +0 -302
- package/static/core/34ce9042.js +0 -201
- package/static/core/4091ba5b.js +0 -25
- package/static/core/41ce3a6a.js +0 -173
- package/static/core/4ac4908c.js +0 -2213
- package/static/core/519096c1.js +0 -2597
- package/static/core/5fa1772b.js +0 -116550
- package/static/core/61312909.js +0 -3
- package/static/core/62a98c07.js +0 -75301
- package/static/core/6309c0f2.js +0 -3
- package/static/core/68d9f440.js +0 -3
- package/static/core/73b645ab.js +0 -2
- package/static/core/81019351.js +0 -280
- package/static/core/835b37ef.js +0 -591
- package/static/core/91242fb3.js +0 -3
- package/static/core/972b15b0.js +0 -92399
- package/static/core/974ef468.js +0 -493
- package/static/core/a17614422.js +0 -38078
- package/static/core/a2fa7b5b.js +0 -4232
- package/static/core/a513adfd.js +0 -89857
- package/static/core/a7c73a9b.js +0 -3813
- package/static/core/b64c7c90.js +0 -228
- package/static/core/cdc9ba92.js +0 -4711
- package/static/core/d1db685d.js +0 -2193
- package/static/core/d661febc.js +0 -3
- package/static/core/d6d2d2d0.js +0 -23
- package/static/core/df1a1225.js +0 -607
- package/static/core/e5bff179.js +0 -1302
- package/static/core/e5d602f5.js +0 -2
- package/static/core/eb029366.js +0 -1532
- package/static/core/f46c035a.js +0 -2
- package/static/core/f8b9d89a.js +0 -461
- package/static/core/fd897ad7.js +0 -3
- package/static/core/fdd890c7.js +0 -6168
- package/static/esm/29eb18ff.js +0 -164
- package/vite/mime-types.js +0 -179
- package/vite/utils.js +0 -44
- /package/cli/project-templates/plugin/bundler-vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-vite/config/{plugin-build.mjs.eta → plugin-build.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-vite/config/{sandbox-build.mjs.eta → sandbox-build.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-webpack/config/{plugin-build.cjs.eta → plugin-build.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-webpack/config/{sandbox-build.cjs.eta → sandbox-build.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/memory-usage/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/shadow-dom/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/shadow-dom/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/subpath/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/subpath/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/umd/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/umd/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/closed-loop/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/closed-loop/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/oauth/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/oauth/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/react-adapter/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/iframe/{iframe-eblock.80d62b88.html → iframe-eblock.aa9efbce.html} +0 -0
- /package/iframe/{iframe.80d62b88.html → iframe.aa9efbce.html} +0 -0
- /package/{runtime/chunks → static/runtime}/DownloadOutlined-a2ZUz7zB.js +0 -0
- /package/{runtime/chunks → static/runtime}/chunk-D-iEO58U.js +0 -0
- /package/{runtime/chunks → static/runtime}/classnames-DBEldvch.js +0 -0
- /package/{runtime/chunks → static/runtime}/client-5XqXGmAI.js +0 -0
- /package/{runtime/chunks → static/runtime}/dayjs.min-CO3mzOeV.js +0 -0
- /package/{runtime/_core/chunks/defineProperty-BGJFuFMq.js → static/runtime/defineProperty-CGNmw-jw.js} +0 -0
- /package/{runtime/chunks → static/runtime}/dist-Cns8cA2n.js +0 -0
- /package/{runtime/chunks → static/runtime}/dist-Ct0xRt3Y.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-0FFT3fCz.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-BwJ3eGbx.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-D8EsVtRL.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-Da4O25Kw.js +0 -0
- /package/{runtime/chunks → static/runtime}/jsx-dev-runtime-V4_MuHNS.js +0 -0
- /package/{runtime/chunks → static/runtime}/jsx-runtime-DBeCoE0b.js +0 -0
- /package/{runtime/chunks → static/runtime}/objectWithoutProperties-Bk0EDksJ.js +0 -0
- /package/{runtime/chunks → static/runtime}/prop-types-DxD5wgQ0.js +0 -0
- /package/{runtime/chunks → static/runtime}/react-TEeeBWTl.js +0 -0
- /package/{runtime/chunks → static/runtime}/react-dom-BKKa1g6U.js +0 -0
package/README.md
CHANGED
|
@@ -12,11 +12,10 @@ exports.runProjectCommand = runProjectCommand;
|
|
|
12
12
|
const fs_1 = __importDefault(require("fs"));
|
|
13
13
|
const path_1 = __importDefault(require("path"));
|
|
14
14
|
const child_process_1 = require("child_process");
|
|
15
|
-
const module_1 = require("module");
|
|
16
15
|
const prompts_1 = __importDefault(require("prompts"));
|
|
17
16
|
const config_1 = require("../config");
|
|
18
|
-
const requireNode = (0, module_1.createRequire)(__filename);
|
|
19
17
|
const local_test_1 = require("../local-test");
|
|
18
|
+
const resolveNpmSpawn_1 = require("../resolveNpmSpawn");
|
|
20
19
|
const template_engine_1 = require("../template-engine");
|
|
21
20
|
const runtimeMessages_1 = require("./runtimeMessages");
|
|
22
21
|
const shared_1 = require("./shared");
|
|
@@ -35,19 +34,6 @@ function writeFiles(targetDir, files) {
|
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
|
-
function resolveCommand(command) {
|
|
39
|
-
if (process.platform === 'win32' && command === 'npm') {
|
|
40
|
-
const npmPackageJson = requireNode.resolve('npm/package.json');
|
|
41
|
-
return {
|
|
42
|
-
executable: process.execPath,
|
|
43
|
-
argsPrefix: [path_1.default.join(path_1.default.dirname(npmPackageJson), 'bin', 'npm-cli.js')],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
executable: command,
|
|
48
|
-
argsPrefix: [],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
37
|
function createProjectCommandEnv() {
|
|
52
38
|
const env = { ...process.env };
|
|
53
39
|
for (const key of Object.keys(env)) {
|
|
@@ -79,7 +65,7 @@ function createProjectCommandEnv() {
|
|
|
79
65
|
}
|
|
80
66
|
function runProjectCommand(targetDir, command, args = []) {
|
|
81
67
|
const runtimeMessages = (0, runtimeMessages_1.getRuntimeCliMessages)();
|
|
82
|
-
const { executable, argsPrefix } =
|
|
68
|
+
const { executable, argsPrefix } = (0, resolveNpmSpawn_1.resolveSpawnCommand)(command);
|
|
83
69
|
const result = (0, child_process_1.spawnSync)(executable, [...argsPrefix, ...args], {
|
|
84
70
|
cwd: targetDir,
|
|
85
71
|
stdio: 'inherit',
|
package/cli/dist/lib/config.js
CHANGED
|
@@ -17,11 +17,10 @@ const fs_1 = __importDefault(require("fs"));
|
|
|
17
17
|
const path_1 = __importDefault(require("path"));
|
|
18
18
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
19
19
|
const child_process_1 = require("child_process");
|
|
20
|
-
const module_1 = require("module");
|
|
21
20
|
const paths_1 = require("./paths");
|
|
21
|
+
const resolveNpmSpawn_1 = require("./resolveNpmSpawn");
|
|
22
22
|
const runtimeMessages_1 = require("./cli/runtimeMessages");
|
|
23
23
|
const json_1 = require("./types/json");
|
|
24
|
-
const requireNode = (0, module_1.createRequire)(__filename);
|
|
25
24
|
const MODE_TO_FILE = {
|
|
26
25
|
dev: '.env.dev',
|
|
27
26
|
prod: '.env.prod',
|
|
@@ -38,19 +37,18 @@ const VERSIONS_CONFIG_PATH = path_1.default.resolve((0, paths_1.getBuildToolsRoo
|
|
|
38
37
|
const DEFAULT_APP_NAME = 'emailmaker';
|
|
39
38
|
const DEFAULT_ENV_MODE = 'dev';
|
|
40
39
|
const DEFAULT_PACKAGE_NAME = '@emailmaker/emailmaker';
|
|
41
|
-
const DEFAULT_RUNTIME_PACKAGE = '@emailmaker/runtime';
|
|
42
40
|
const DEFAULT_UI_KIT_PACKAGE = '@emailmaker/ui-kit';
|
|
43
41
|
const DEFAULT_EXTENSIONS_API_PACKAGE = '@emailmaker/extensions-app';
|
|
44
42
|
const DEFAULT_EXTENSIONS_REACT_PACKAGE = '@emailmaker/extensions-react';
|
|
45
43
|
const DEFAULT_EXTENSIONS_SANDBOX_PACKAGE = '@emailmaker/extensions-sandbox';
|
|
46
44
|
const DEFAULT_CLI_PACKAGE = '@emailmaker/cli';
|
|
47
|
-
const DEFAULT_VERSION = '1.0.107-dev.
|
|
48
|
-
const
|
|
49
|
-
const DEFAULT_UI_KIT_VERSION = '0.1.0-dev.1';
|
|
45
|
+
const DEFAULT_VERSION = '1.0.107-dev.4';
|
|
46
|
+
const DEFAULT_UI_KIT_VERSION = '0.1.0-dev.2';
|
|
50
47
|
const DEFAULT_OPENAPI_BASE_URL = 'https://app.emailmaker.ru/api/';
|
|
51
48
|
const TOOL_VERSIONS = {
|
|
52
49
|
vite: '^7',
|
|
53
50
|
typescript: '^5',
|
|
51
|
+
tsx: '^4.21.0',
|
|
54
52
|
webpack: '^5',
|
|
55
53
|
webpackCli: '^6',
|
|
56
54
|
webpackDevServer: '^5',
|
|
@@ -66,6 +64,13 @@ function resolveEmbeddedValue(value) {
|
|
|
66
64
|
}
|
|
67
65
|
return value;
|
|
68
66
|
}
|
|
67
|
+
function getRuntimePackageName(mainPackageName) {
|
|
68
|
+
const normalized = String(mainPackageName || '').replace(/\/+$/, '');
|
|
69
|
+
if (!normalized) {
|
|
70
|
+
throw new Error('[runtime-package] mainPackageName is empty');
|
|
71
|
+
}
|
|
72
|
+
return `${normalized}/runtime`;
|
|
73
|
+
}
|
|
69
74
|
function loadEnvFile(filePath, override) {
|
|
70
75
|
if (!fs_1.default.existsSync(filePath)) {
|
|
71
76
|
return;
|
|
@@ -133,7 +138,7 @@ function applyVersionsOverlay(envMode) {
|
|
|
133
138
|
return;
|
|
134
139
|
}
|
|
135
140
|
process.env.REACT_APP_VERSION = channelVersions.host;
|
|
136
|
-
process.env.REACT_APP_RUNTIME_VERSION = channelVersions.
|
|
141
|
+
process.env.REACT_APP_RUNTIME_VERSION = channelVersions.host;
|
|
137
142
|
process.env.REACT_APP_UI_KIT_VERSION = channelVersions.uiKit;
|
|
138
143
|
process.env.REACT_APP_EXTENSIONS_API_VERSION = channelVersions.extensionsApi;
|
|
139
144
|
process.env.REACT_APP_EXTENSIONS_REACT_VERSION = channelVersions.extensionsReact;
|
|
@@ -142,19 +147,6 @@ function applyVersionsOverlay(envMode) {
|
|
|
142
147
|
process.env.REACT_APP_RELEASE_CHANNEL = releaseChannel;
|
|
143
148
|
process.env.RELEASE_CHANNEL = releaseChannel;
|
|
144
149
|
}
|
|
145
|
-
function resolveCommand(command) {
|
|
146
|
-
if (process.platform === 'win32' && (command === 'npm' || command === 'npx')) {
|
|
147
|
-
const npmPackageJson = requireNode.resolve('npm/package.json');
|
|
148
|
-
return {
|
|
149
|
-
executable: process.execPath,
|
|
150
|
-
argsPrefix: [path_1.default.join(path_1.default.dirname(npmPackageJson), 'bin', `${command}-cli.js`)],
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
return {
|
|
154
|
-
executable: command,
|
|
155
|
-
argsPrefix: [],
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
150
|
function resolveEnvDir(cwd, appName) {
|
|
159
151
|
if (!appName) {
|
|
160
152
|
return cwd;
|
|
@@ -214,14 +206,12 @@ function loadLocalEnvironment(options = {}) {
|
|
|
214
206
|
function getMissingConfigNames(config) {
|
|
215
207
|
const requiredFields = [
|
|
216
208
|
['REACT_APP_PACKAGE_NAME', config.packageName],
|
|
217
|
-
['REACT_APP_RUNTIME_PACKAGE', config.runtimePackageName],
|
|
218
209
|
['REACT_APP_UI_KIT_PACKAGE', config.uiKitPackageName],
|
|
219
210
|
['REACT_APP_EXTENSIONS_API_PACKAGE', config.extensionsApiPackageName],
|
|
220
211
|
['REACT_APP_EXTENSIONS_REACT_PACKAGE', config.extensionsReactPackageName],
|
|
221
212
|
['REACT_APP_EXTENSIONS_SANDBOX_PACKAGE', config.extensionsSandboxPackageName],
|
|
222
213
|
['REACT_APP_CLI_PACKAGE', config.cliPackageName],
|
|
223
214
|
['REACT_APP_VERSION', config.version],
|
|
224
|
-
['REACT_APP_RUNTIME_VERSION', config.runtimeVersion],
|
|
225
215
|
['REACT_APP_UI_KIT_VERSION', config.uiKitVersion],
|
|
226
216
|
];
|
|
227
217
|
return requiredFields
|
|
@@ -229,16 +219,18 @@ function getMissingConfigNames(config) {
|
|
|
229
219
|
.map(([name]) => name);
|
|
230
220
|
}
|
|
231
221
|
function resolvePackageConfig(options = {}) {
|
|
222
|
+
const packageName = readEmbeddedProductIdentity('REACT_APP_PACKAGE_NAME', DEFAULT_PACKAGE_NAME);
|
|
223
|
+
const version = readConfiguredValue('REACT_APP_VERSION', DEFAULT_VERSION);
|
|
232
224
|
const config = {
|
|
233
|
-
packageName
|
|
234
|
-
runtimePackageName:
|
|
225
|
+
packageName,
|
|
226
|
+
runtimePackageName: getRuntimePackageName(packageName),
|
|
235
227
|
uiKitPackageName: readEmbeddedProductIdentity('REACT_APP_UI_KIT_PACKAGE', DEFAULT_UI_KIT_PACKAGE),
|
|
236
228
|
extensionsApiPackageName: readEmbeddedProductIdentity('REACT_APP_EXTENSIONS_API_PACKAGE', DEFAULT_EXTENSIONS_API_PACKAGE),
|
|
237
229
|
extensionsReactPackageName: readEmbeddedProductIdentity('REACT_APP_EXTENSIONS_REACT_PACKAGE', DEFAULT_EXTENSIONS_REACT_PACKAGE),
|
|
238
230
|
extensionsSandboxPackageName: readEmbeddedProductIdentity('REACT_APP_EXTENSIONS_SANDBOX_PACKAGE', DEFAULT_EXTENSIONS_SANDBOX_PACKAGE),
|
|
239
231
|
cliPackageName: readEmbeddedProductIdentity('REACT_APP_CLI_PACKAGE', DEFAULT_CLI_PACKAGE),
|
|
240
|
-
version
|
|
241
|
-
runtimeVersion:
|
|
232
|
+
version,
|
|
233
|
+
runtimeVersion: version,
|
|
242
234
|
uiKitVersion: readConfiguredValue('REACT_APP_UI_KIT_VERSION', DEFAULT_UI_KIT_VERSION),
|
|
243
235
|
extensionsApiVersion: process.env.REACT_APP_EXTENSIONS_API_VERSION || readConfiguredValue('REACT_APP_VERSION', DEFAULT_VERSION),
|
|
244
236
|
extensionsReactVersion: process.env.REACT_APP_EXTENSIONS_REACT_VERSION || readConfiguredValue('REACT_APP_VERSION', DEFAULT_VERSION),
|
|
@@ -272,7 +264,7 @@ function npmViewVersionToString(parsed) {
|
|
|
272
264
|
return '';
|
|
273
265
|
}
|
|
274
266
|
function readLatestRegistryVersion(packageName, distTag = 'latest') {
|
|
275
|
-
const { executable, argsPrefix } =
|
|
267
|
+
const { executable, argsPrefix } = (0, resolveNpmSpawn_1.resolveSpawnCommand)('npm');
|
|
276
268
|
const packageSpec = distTag && distTag !== 'latest'
|
|
277
269
|
? `${packageName}@${distTag}`
|
|
278
270
|
: packageName;
|
|
@@ -312,7 +304,6 @@ function resolveLatestPackageConfig(config, options = {}) {
|
|
|
312
304
|
return fallbackVersion;
|
|
313
305
|
};
|
|
314
306
|
const latestPackageVersion = resolveOrFallback(config.packageName, config.version);
|
|
315
|
-
const latestRuntimeVersion = resolveOrFallback(config.runtimePackageName, config.runtimeVersion);
|
|
316
307
|
const latestUiKitVersion = resolveOrFallback(config.uiKitPackageName, config.uiKitVersion);
|
|
317
308
|
const latestExtensionsApiVersion = resolveOrFallback(config.extensionsApiPackageName, config.version);
|
|
318
309
|
const latestExtensionsReactVersion = resolveOrFallback(config.extensionsReactPackageName, config.version);
|
|
@@ -321,7 +312,7 @@ function resolveLatestPackageConfig(config, options = {}) {
|
|
|
321
312
|
return {
|
|
322
313
|
...config,
|
|
323
314
|
version: latestPackageVersion,
|
|
324
|
-
runtimeVersion:
|
|
315
|
+
runtimeVersion: latestPackageVersion,
|
|
325
316
|
uiKitVersion: latestUiKitVersion,
|
|
326
317
|
extensionsApiVersion: latestExtensionsApiVersion,
|
|
327
318
|
extensionsReactVersion: latestExtensionsReactVersion,
|
|
@@ -7,32 +7,18 @@ exports.createLocalPackageTarballs = createLocalPackageTarballs;
|
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const child_process_1 = require("child_process");
|
|
10
|
-
const module_1 = require("module");
|
|
11
10
|
const paths_1 = require("./paths");
|
|
11
|
+
const resolveNpmSpawn_1 = require("./resolveNpmSpawn");
|
|
12
12
|
const runtimeMessages_1 = require("./cli/runtimeMessages");
|
|
13
13
|
const types_1 = require("./types");
|
|
14
|
-
const requireNode = (0, module_1.createRequire)(__filename);
|
|
15
14
|
const PROJECT_ROOT = (0, paths_1.getMonorepoRoot)();
|
|
16
15
|
const DEFAULT_BUILD_DIR = path_1.default.resolve(PROJECT_ROOT, 'build');
|
|
17
16
|
function ensureDirectory(dirPath) {
|
|
18
17
|
fs_1.default.mkdirSync(dirPath, { recursive: true });
|
|
19
18
|
}
|
|
20
|
-
function resolveCommand(command) {
|
|
21
|
-
if (process.platform === 'win32' && (command === 'npm' || command === 'npx')) {
|
|
22
|
-
const npmPackageJson = requireNode.resolve('npm/package.json');
|
|
23
|
-
return {
|
|
24
|
-
executable: process.execPath,
|
|
25
|
-
argsPrefix: [path_1.default.join(path_1.default.dirname(npmPackageJson), 'bin', `${command}-cli.js`)],
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
executable: command,
|
|
30
|
-
argsPrefix: [],
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
19
|
function packPackage(packageDir, destinationDir) {
|
|
34
20
|
const runtimeMessages = (0, runtimeMessages_1.getRuntimeCliMessages)();
|
|
35
|
-
const { executable, argsPrefix } =
|
|
21
|
+
const { executable, argsPrefix } = (0, resolveNpmSpawn_1.resolveNpmSpawnCommand)('npm');
|
|
36
22
|
const result = (0, child_process_1.spawnSync)(executable, [...argsPrefix, 'pack', '--pack-destination', destinationDir], {
|
|
37
23
|
cwd: packageDir,
|
|
38
24
|
encoding: 'utf8',
|
|
@@ -60,7 +46,7 @@ function buildLocalTestPackages(normalizedBuildDir, options = {}) {
|
|
|
60
46
|
}
|
|
61
47
|
const targets = includeUmdBundle ? 'esm,react-adapter,umd' : 'esm,react-adapter';
|
|
62
48
|
console.log(`[cli] ${runtimeMessages.localTestBuildStarting(targets)}`);
|
|
63
|
-
const { executable, argsPrefix } =
|
|
49
|
+
const { executable, argsPrefix } = (0, resolveNpmSpawn_1.resolveNpmSpawnCommand)('npx');
|
|
64
50
|
const result = (0, child_process_1.spawnSync)(executable, [...argsPrefix, 'tsx', 'build-tools/pipeline.ts', '--targets', targets, '--mode', 'production', '--lint=false', '--type-check=false'], {
|
|
65
51
|
cwd: PROJECT_ROOT,
|
|
66
52
|
stdio: 'inherit',
|
|
@@ -101,11 +87,9 @@ function createLocalPackageTarballs(options) {
|
|
|
101
87
|
const packageDirs = standOnlyPackages
|
|
102
88
|
? {
|
|
103
89
|
packageName: normalizedBuildDir,
|
|
104
|
-
runtimePackageName: path_1.default.resolve(normalizedBuildDir, 'runtime'),
|
|
105
90
|
}
|
|
106
91
|
: {
|
|
107
92
|
packageName: normalizedBuildDir,
|
|
108
|
-
runtimePackageName: path_1.default.resolve(normalizedBuildDir, 'runtime'),
|
|
109
93
|
uiKitPackageName: path_1.default.resolve(normalizedBuildDir, 'ui-kit'),
|
|
110
94
|
extensionsApiPackageName: path_1.default.resolve(normalizedBuildDir, 'extensions/api'),
|
|
111
95
|
extensionsReactPackageName: path_1.default.resolve(normalizedBuildDir, 'extensions/react'),
|
package/cli/dist/lib/paths.js
CHANGED
|
@@ -6,11 +6,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.getCliPackageRoot = getCliPackageRoot;
|
|
7
7
|
exports.getBuildToolsRoot = getBuildToolsRoot;
|
|
8
8
|
exports.getMonorepoRoot = getMonorepoRoot;
|
|
9
|
+
const fs_1 = __importDefault(require("fs"));
|
|
9
10
|
const path_1 = __importDefault(require("path"));
|
|
10
11
|
/**
|
|
11
12
|
* Корень npm-пакета `build-tools/cli` (корректно и из исходников `lib/…`, и из `dist/lib/…` после tsc).
|
|
12
13
|
*/
|
|
13
14
|
function getCliPackageRoot() {
|
|
15
|
+
const candidates = [
|
|
16
|
+
path_1.default.resolve(__dirname, '..'),
|
|
17
|
+
path_1.default.resolve(__dirname, '..', '..'),
|
|
18
|
+
];
|
|
19
|
+
for (const candidate of candidates) {
|
|
20
|
+
if (fs_1.default.existsSync(path_1.default.join(candidate, 'package.json'))
|
|
21
|
+
&& fs_1.default.existsSync(path_1.default.join(candidate, 'project-templates'))) {
|
|
22
|
+
return candidate;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
14
25
|
return path_1.default.resolve(__dirname, '..', '..');
|
|
15
26
|
}
|
|
16
27
|
/** Корень `build-tools/` */
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Путь к npm-cli.js / npx-cli.js для spawn через node.exe (нужно на Windows без shell).
|
|
3
|
+
* `require.resolve('npm/package.json')` работает только если пакет `npm` в дереве зависимостей;
|
|
4
|
+
* у типичной установки Node он лежит рядом с node.exe (см. fallback).
|
|
5
|
+
*/
|
|
6
|
+
export declare function findNpmCliJs(command: 'npm' | 'npx'): string | null;
|
|
7
|
+
export type NpmSpawnArgs = {
|
|
8
|
+
executable: string;
|
|
9
|
+
argsPrefix: string[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Запуск npm/npx на Windows без shell: через node.exe и *-cli.js из установки Node.
|
|
13
|
+
* Если путь не найден — откат на имя команды в PATH.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveNpmSpawnCommand(command: 'npm' | 'npx'): NpmSpawnArgs;
|
|
16
|
+
/**
|
|
17
|
+
* Только `npm` / `npx` нормализуются на Windows; остальные команды — как есть.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveSpawnCommand(command: string): NpmSpawnArgs;
|
|
20
|
+
//# sourceMappingURL=resolveNpmSpawn.d.ts.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.findNpmCliJs = findNpmCliJs;
|
|
7
|
+
exports.resolveNpmSpawnCommand = resolveNpmSpawnCommand;
|
|
8
|
+
exports.resolveSpawnCommand = resolveSpawnCommand;
|
|
9
|
+
const fs_1 = __importDefault(require("fs"));
|
|
10
|
+
const path_1 = __importDefault(require("path"));
|
|
11
|
+
const module_1 = require("module");
|
|
12
|
+
const requireNode = (0, module_1.createRequire)(__filename);
|
|
13
|
+
/**
|
|
14
|
+
* Путь к npm-cli.js / npx-cli.js для spawn через node.exe (нужно на Windows без shell).
|
|
15
|
+
* `require.resolve('npm/package.json')` работает только если пакет `npm` в дереве зависимостей;
|
|
16
|
+
* у типичной установки Node он лежит рядом с node.exe (см. fallback).
|
|
17
|
+
*/
|
|
18
|
+
function findNpmCliJs(command) {
|
|
19
|
+
const binaryName = `${command}-cli.js`;
|
|
20
|
+
try {
|
|
21
|
+
const npmPackageJson = requireNode.resolve('npm/package.json');
|
|
22
|
+
const p = path_1.default.join(path_1.default.dirname(npmPackageJson), 'bin', binaryName);
|
|
23
|
+
if (fs_1.default.existsSync(p)) {
|
|
24
|
+
return p;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
/* npm не в node_modules CLI-пакета — ищем рядом с текущим node */
|
|
29
|
+
}
|
|
30
|
+
const binDir = path_1.default.dirname(process.execPath);
|
|
31
|
+
const npmRootCandidates = [
|
|
32
|
+
path_1.default.join(binDir, 'node_modules', 'npm'),
|
|
33
|
+
path_1.default.join(binDir, '..', 'lib', 'node_modules', 'npm'),
|
|
34
|
+
];
|
|
35
|
+
for (const npmRoot of npmRootCandidates) {
|
|
36
|
+
const p = path_1.default.join(npmRoot, 'bin', binaryName);
|
|
37
|
+
if (fs_1.default.existsSync(p)) {
|
|
38
|
+
return p;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Запуск npm/npx на Windows без shell: через node.exe и *-cli.js из установки Node.
|
|
45
|
+
* Если путь не найден — откат на имя команды в PATH.
|
|
46
|
+
*/
|
|
47
|
+
function resolveNpmSpawnCommand(command) {
|
|
48
|
+
if (process.platform === 'win32' && (command === 'npm' || command === 'npx')) {
|
|
49
|
+
const cliJs = findNpmCliJs(command);
|
|
50
|
+
if (cliJs) {
|
|
51
|
+
return {
|
|
52
|
+
executable: process.execPath,
|
|
53
|
+
argsPrefix: [cliJs],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
executable: command,
|
|
59
|
+
argsPrefix: [],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Только `npm` / `npx` нормализуются на Windows; остальные команды — как есть.
|
|
64
|
+
*/
|
|
65
|
+
function resolveSpawnCommand(command) {
|
|
66
|
+
if (command === 'npm' || command === 'npx') {
|
|
67
|
+
return resolveNpmSpawnCommand(command);
|
|
68
|
+
}
|
|
69
|
+
return { executable: command, argsPrefix: [] };
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=resolveNpmSpawn.js.map
|
|
@@ -12,20 +12,19 @@ function buildPluginPackageJsonData(options) {
|
|
|
12
12
|
const generatedPaths = (0, paths_1.getGeneratedPaths)(options);
|
|
13
13
|
const usesModuleType = pluginFormat !== 'umd';
|
|
14
14
|
const appPackageVersion = localTarballs ? localTarballs.packageName : packageConfig.version;
|
|
15
|
-
const runtimePackageVersion = localTarballs ? localTarballs.runtimePackageName : packageConfig.runtimeVersion;
|
|
16
15
|
const extensionsApiVersion = localTarballs ? localTarballs.extensionsApiPackageName : packageConfig.extensionsApiVersion;
|
|
17
16
|
const extensionsSandboxVersion = localTarballs ? localTarballs.extensionsSandboxPackageName : packageConfig.extensionsSandboxVersion;
|
|
18
17
|
const extensionsReactVersion = localTarballs?.extensionsReactPackageName || packageConfig.extensionsReactVersion;
|
|
19
18
|
const uiKitVersion = localTarballs?.uiKitPackageName || packageConfig.uiKitVersion;
|
|
20
19
|
const mainPkgKey = (0, utils_1.resolveLocalPublishedPackageKey)(localPublishedNames, 'packageName', packageConfig.packageName);
|
|
21
|
-
const runtimePkgKey = (0, utils_1.resolveLocalPublishedPackageKey)(localPublishedNames, 'runtimePackageName', packageConfig.runtimePackageName);
|
|
22
20
|
const extApiKey = (0, utils_1.resolveLocalPublishedPackageKey)(localPublishedNames, 'extensionsApiPackageName', packageConfig.extensionsApiPackageName);
|
|
23
21
|
const extReactKey = (0, utils_1.resolveLocalPublishedPackageKey)(localPublishedNames, 'extensionsReactPackageName', packageConfig.extensionsReactPackageName);
|
|
24
22
|
const extSandboxKey = (0, utils_1.resolveLocalPublishedPackageKey)(localPublishedNames, 'extensionsSandboxPackageName', packageConfig.extensionsSandboxPackageName);
|
|
25
23
|
const uiKitKey = (0, utils_1.resolveLocalPublishedPackageKey)(localPublishedNames, 'uiKitPackageName', packageConfig.uiKitPackageName);
|
|
26
|
-
const
|
|
24
|
+
const dependencies = {
|
|
27
25
|
[mainPkgKey]: appPackageVersion,
|
|
28
|
-
|
|
26
|
+
};
|
|
27
|
+
const peerDependencies = {
|
|
29
28
|
[extApiKey]: extensionsApiVersion,
|
|
30
29
|
[extReactKey]: extensionsReactVersion,
|
|
31
30
|
[extSandboxKey]: extensionsSandboxVersion,
|
|
@@ -34,12 +33,11 @@ function buildPluginPackageJsonData(options) {
|
|
|
34
33
|
peerDependencies[uiKitKey] = packageConfig.uiKitVersion;
|
|
35
34
|
}
|
|
36
35
|
const devDependencies = {
|
|
37
|
-
[mainPkgKey]: appPackageVersion,
|
|
38
|
-
[runtimePkgKey]: runtimePackageVersion,
|
|
39
36
|
[extApiKey]: extensionsApiVersion,
|
|
40
37
|
[extReactKey]: extensionsReactVersion,
|
|
41
38
|
[extSandboxKey]: extensionsSandboxVersion,
|
|
42
39
|
typescript: String(packageConfig.versions.typescript),
|
|
40
|
+
tsx: packageConfig.versions.tsx,
|
|
43
41
|
...utils_1.LEGACY_REACT_DEPENDENCIES,
|
|
44
42
|
};
|
|
45
43
|
if (includesUiPreset || localTarballs?.uiKitPackageName) {
|
|
@@ -57,6 +55,7 @@ function buildPluginPackageJsonData(options) {
|
|
|
57
55
|
devDependencies['webpack-dev-server'] = packageConfig.versions.webpackDevServer;
|
|
58
56
|
devDependencies['ts-loader'] = packageConfig.versions.tsLoader;
|
|
59
57
|
}
|
|
58
|
+
const webpackCliCommand = 'tsx ./node_modules/webpack-cli/bin/cli.js';
|
|
60
59
|
return {
|
|
61
60
|
name: pluginPackageName,
|
|
62
61
|
version: '0.1.0',
|
|
@@ -68,25 +67,28 @@ function buildPluginPackageJsonData(options) {
|
|
|
68
67
|
files: ['dist', 'README.md'],
|
|
69
68
|
scripts: bundler === 'vite'
|
|
70
69
|
? {
|
|
71
|
-
start: '
|
|
72
|
-
'start:release': '
|
|
73
|
-
'dev:app':
|
|
70
|
+
start: 'npm run dev:app',
|
|
71
|
+
'start:release': 'tsx ./scripts/release-runner.ts',
|
|
72
|
+
'dev:app': 'tsx ./scripts/dev-runner.ts',
|
|
73
|
+
'dev:host': `vite --config ./${generatedPaths.devConfig}`,
|
|
74
74
|
'dev:sandbox': `vite build --config ./${generatedPaths.sandboxBuildConfig} --watch --mode development`,
|
|
75
|
-
build: '
|
|
76
|
-
'build:types': '
|
|
75
|
+
build: 'tsx ./scripts/build-runner.ts',
|
|
76
|
+
'build:types': 'tsx ./scripts/build-types.ts',
|
|
77
77
|
'build:app': `vite build --config ./${generatedPaths.pluginBuildConfig}`,
|
|
78
78
|
'build:sandbox': `vite build --config ./${generatedPaths.sandboxBuildConfig} --mode production`,
|
|
79
79
|
}
|
|
80
80
|
: {
|
|
81
|
-
start: '
|
|
82
|
-
'start:release': '
|
|
83
|
-
'dev:app':
|
|
84
|
-
'dev:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
'build:
|
|
88
|
-
'build:
|
|
81
|
+
start: 'npm run dev:app',
|
|
82
|
+
'start:release': 'tsx ./scripts/release-runner.ts',
|
|
83
|
+
'dev:app': 'tsx ./scripts/dev-runner.ts',
|
|
84
|
+
'dev:host': `${webpackCliCommand} serve --config ./${generatedPaths.devConfig} --mode development`,
|
|
85
|
+
'dev:sandbox': `${webpackCliCommand} --config ./${generatedPaths.sandboxBuildConfig} --mode development --watch`,
|
|
86
|
+
build: 'tsx ./scripts/build-runner.ts',
|
|
87
|
+
'build:types': 'tsx ./scripts/build-types.ts',
|
|
88
|
+
'build:app': `${webpackCliCommand} --config ./${generatedPaths.pluginBuildConfig} --mode production`,
|
|
89
|
+
'build:sandbox': `${webpackCliCommand} --config ./${generatedPaths.sandboxBuildConfig} --mode production`,
|
|
89
90
|
},
|
|
91
|
+
dependencies,
|
|
90
92
|
peerDependencies,
|
|
91
93
|
devDependencies,
|
|
92
94
|
};
|
|
@@ -18,13 +18,11 @@ function buildStandVitePackageJsonData(options) {
|
|
|
18
18
|
const advancedProfile = (0, utils_1.getAdvancedStandProfile)(options);
|
|
19
19
|
const isMemoryUsageStand = standMode === 'advanced' && advancedProfile === 'memory-usage';
|
|
20
20
|
const appPackageVersion = localTarballs?.packageName || packageConfig.version;
|
|
21
|
-
const runtimePackageVersion = localTarballs?.runtimePackageName || packageConfig.runtimeVersion;
|
|
22
21
|
const mainPkgKey = (0, utils_1.resolveLocalPublishedPackageKey)(localPublishedNames, 'packageName', packageConfig.packageName);
|
|
23
|
-
const runtimePkgKey = (0, utils_1.resolveLocalPublishedPackageKey)(localPublishedNames, 'runtimePackageName', packageConfig.runtimePackageName);
|
|
24
22
|
const devDependencies = {
|
|
25
23
|
[mainPkgKey]: appPackageVersion,
|
|
26
|
-
[runtimePkgKey]: runtimePackageVersion,
|
|
27
24
|
typescript: String(packageConfig.versions.typescript),
|
|
25
|
+
tsx: packageConfig.versions.tsx,
|
|
28
26
|
formidable: '^3.5.2',
|
|
29
27
|
...utils_1.LEGACY_REACT_DEPENDENCIES,
|
|
30
28
|
};
|
|
@@ -45,12 +43,13 @@ function buildStandVitePackageJsonData(options) {
|
|
|
45
43
|
devDependencies['webpack-dev-server'] = packageConfig.versions.webpackDevServer;
|
|
46
44
|
devDependencies['ts-loader'] = packageConfig.versions.tsLoader;
|
|
47
45
|
}
|
|
46
|
+
const webpackCliCommand = 'tsx ./node_modules/webpack-cli/bin/cli.js';
|
|
48
47
|
const scripts = bundler === 'vite'
|
|
49
48
|
? isMemoryUsageStand
|
|
50
49
|
? {
|
|
51
|
-
start: `cross-env NODE_OPTIONS=--max-old-space-size=
|
|
52
|
-
build: `cross-env NODE_OPTIONS=--max-old-space-size=
|
|
53
|
-
preview: `cross-env NODE_OPTIONS=--max-old-space-size=
|
|
50
|
+
start: `cross-env NODE_OPTIONS=--max-old-space-size=512 vite --config ./${generatedPaths.devConfig}`,
|
|
51
|
+
build: `cross-env NODE_OPTIONS=--max-old-space-size=512 vite build --config ./${generatedPaths.devConfig}`,
|
|
52
|
+
preview: `cross-env NODE_OPTIONS=--max-old-space-size=512 vite preview --config ./${generatedPaths.devConfig}`,
|
|
54
53
|
}
|
|
55
54
|
: {
|
|
56
55
|
start: `vite --config ./${generatedPaths.devConfig}`,
|
|
@@ -58,8 +57,8 @@ function buildStandVitePackageJsonData(options) {
|
|
|
58
57
|
preview: `vite preview --config ./${generatedPaths.devConfig}`,
|
|
59
58
|
}
|
|
60
59
|
: {
|
|
61
|
-
start:
|
|
62
|
-
build:
|
|
60
|
+
start: `${webpackCliCommand} serve --config ./${generatedPaths.devConfig} --mode development`,
|
|
61
|
+
build: `${webpackCliCommand} --config ./${generatedPaths.devConfig} --mode production`,
|
|
63
62
|
};
|
|
64
63
|
return {
|
|
65
64
|
...BASE_STAND_PACKAGE_JSON,
|
|
@@ -35,16 +35,20 @@ declare function resolveStandWebpackBaseLayerDir(cliRoot?: string): string;
|
|
|
35
35
|
/** Слои: общая статика stand+webpack, затем вариант (oauth / closed-loop). */
|
|
36
36
|
declare function getStandWebpackEtaLayerRoots(templateOptions: StandEtaRoutingInput, cliRoot?: string): string[] | null;
|
|
37
37
|
declare function resolveStandReactAdapterViteVariantDir(cliRoot?: string): string;
|
|
38
|
+
declare function resolveStandReactAdapterWebpackVariantDir(cliRoot?: string): string;
|
|
38
39
|
declare function resolveStandAdvancedUmdWebpackVariantDir(cliRoot?: string): string;
|
|
39
40
|
declare function resolveStandAdvancedShadowDomWebpackVariantDir(cliRoot?: string): string;
|
|
40
41
|
/** demo-stand react-adapter + vite */
|
|
41
42
|
declare function shouldUseEtaStandReactAdapterVite(options: StandEtaRoutingInput): boolean;
|
|
43
|
+
/** demo-stand react-adapter + webpack */
|
|
44
|
+
declare function shouldUseEtaStandReactAdapterWebpack(options: StandEtaRoutingInput): boolean;
|
|
42
45
|
/** advanced + vite (shadow-dom | umd | memory-usage | subpath) */
|
|
43
46
|
declare function getStandAdvancedViteEtaLayerRoots(templateOptions: StandEtaRoutingInput, cliRoot?: string): string[] | null;
|
|
44
47
|
/** advanced + webpack (subpath | umd | shadow-dom) */
|
|
45
48
|
declare function getStandAdvancedWebpackEtaLayerRoots(templateOptions: StandEtaRoutingInput, cliRoot?: string): string[] | null;
|
|
46
49
|
declare function getStandReactAdapterViteEtaLayerRoots(templateOptions: StandEtaRoutingInput, cliRoot?: string): string[] | null;
|
|
50
|
+
declare function getStandReactAdapterWebpackEtaLayerRoots(templateOptions: StandEtaRoutingInput, cliRoot?: string): string[] | null;
|
|
47
51
|
/** Stand + Eta: простые slug, react-adapter, advanced-ветки. */
|
|
48
52
|
declare function getStandEtaLayerRoots(templateOptions: StandEtaRoutingInput, cliRoot?: string): string[] | null;
|
|
49
|
-
export { getCliPackageRoot, getEtaPartialsDir, shouldUseEtaStandOauthVite, shouldUseEtaStandClosedLoopVite, shouldUseEtaStandOauthWebpack, shouldUseEtaStandClosedLoopWebpack, resolveStandOauthViteVariantDir, resolveStandClosedLoopViteVariantDir, resolveStandOauthWebpackVariantDir, resolveStandClosedLoopWebpackVariantDir, resolveEtaStandViteVariantRoot, resolveEtaStandWebpackVariantRoot, resolveStandViteBaseLayerDir, resolveStandWebpackBaseLayerDir, getStandViteEtaLayerRoots, getStandWebpackEtaLayerRoots, getStandReactAdapterViteEtaLayerRoots, getStandAdvancedViteEtaLayerRoots, getStandAdvancedWebpackEtaLayerRoots, shouldUseEtaStandReactAdapterVite, resolveStandReactAdapterViteVariantDir, resolveStandAdvancedUmdWebpackVariantDir, resolveStandAdvancedShadowDomWebpackVariantDir, getStandEtaLayerRoots, };
|
|
53
|
+
export { getCliPackageRoot, getEtaPartialsDir, shouldUseEtaStandOauthVite, shouldUseEtaStandClosedLoopVite, shouldUseEtaStandOauthWebpack, shouldUseEtaStandClosedLoopWebpack, resolveStandOauthViteVariantDir, resolveStandClosedLoopViteVariantDir, resolveStandOauthWebpackVariantDir, resolveStandClosedLoopWebpackVariantDir, resolveEtaStandViteVariantRoot, resolveEtaStandWebpackVariantRoot, resolveStandViteBaseLayerDir, resolveStandWebpackBaseLayerDir, getStandViteEtaLayerRoots, getStandWebpackEtaLayerRoots, getStandReactAdapterViteEtaLayerRoots, getStandReactAdapterWebpackEtaLayerRoots, getStandAdvancedViteEtaLayerRoots, getStandAdvancedWebpackEtaLayerRoots, shouldUseEtaStandReactAdapterVite, shouldUseEtaStandReactAdapterWebpack, resolveStandReactAdapterViteVariantDir, resolveStandReactAdapterWebpackVariantDir, resolveStandAdvancedUmdWebpackVariantDir, resolveStandAdvancedShadowDomWebpackVariantDir, getStandEtaLayerRoots, };
|
|
50
54
|
//# sourceMappingURL=resolveVariantDir.d.ts.map
|
|
@@ -20,10 +20,13 @@ exports.resolveStandWebpackBaseLayerDir = resolveStandWebpackBaseLayerDir;
|
|
|
20
20
|
exports.getStandViteEtaLayerRoots = getStandViteEtaLayerRoots;
|
|
21
21
|
exports.getStandWebpackEtaLayerRoots = getStandWebpackEtaLayerRoots;
|
|
22
22
|
exports.getStandReactAdapterViteEtaLayerRoots = getStandReactAdapterViteEtaLayerRoots;
|
|
23
|
+
exports.getStandReactAdapterWebpackEtaLayerRoots = getStandReactAdapterWebpackEtaLayerRoots;
|
|
23
24
|
exports.getStandAdvancedViteEtaLayerRoots = getStandAdvancedViteEtaLayerRoots;
|
|
24
25
|
exports.getStandAdvancedWebpackEtaLayerRoots = getStandAdvancedWebpackEtaLayerRoots;
|
|
25
26
|
exports.shouldUseEtaStandReactAdapterVite = shouldUseEtaStandReactAdapterVite;
|
|
27
|
+
exports.shouldUseEtaStandReactAdapterWebpack = shouldUseEtaStandReactAdapterWebpack;
|
|
26
28
|
exports.resolveStandReactAdapterViteVariantDir = resolveStandReactAdapterViteVariantDir;
|
|
29
|
+
exports.resolveStandReactAdapterWebpackVariantDir = resolveStandReactAdapterWebpackVariantDir;
|
|
27
30
|
exports.resolveStandAdvancedUmdWebpackVariantDir = resolveStandAdvancedUmdWebpackVariantDir;
|
|
28
31
|
exports.resolveStandAdvancedShadowDomWebpackVariantDir = resolveStandAdvancedShadowDomWebpackVariantDir;
|
|
29
32
|
exports.getStandEtaLayerRoots = getStandEtaLayerRoots;
|
|
@@ -148,6 +151,9 @@ function getStandWebpackEtaLayerRoots(templateOptions, cliRoot = (0, paths_1.get
|
|
|
148
151
|
function resolveStandReactAdapterViteVariantDir(cliRoot = (0, paths_1.getCliPackageRoot)()) {
|
|
149
152
|
return path_1.default.join(cliRoot, 'project-templates', 'stand', 'react-adapter', 'vite');
|
|
150
153
|
}
|
|
154
|
+
function resolveStandReactAdapterWebpackVariantDir(cliRoot = (0, paths_1.getCliPackageRoot)()) {
|
|
155
|
+
return path_1.default.join(cliRoot, 'project-templates', 'stand', 'react-adapter', 'webpack');
|
|
156
|
+
}
|
|
151
157
|
function resolveStandAdvancedViteVariantDir(profile, cliRoot = (0, paths_1.getCliPackageRoot)()) {
|
|
152
158
|
return path_1.default.join(cliRoot, 'project-templates', 'stand', 'advanced', profile, 'vite');
|
|
153
159
|
}
|
|
@@ -168,6 +174,14 @@ function shouldUseEtaStandReactAdapterVite(options) {
|
|
|
168
174
|
return false;
|
|
169
175
|
return (0, utils_1.getDemoStandMode)(options) === 'react-adapter';
|
|
170
176
|
}
|
|
177
|
+
/** demo-stand react-adapter + webpack */
|
|
178
|
+
function shouldUseEtaStandReactAdapterWebpack(options) {
|
|
179
|
+
if (!(0, utils_1.isDemoStandKind)(options.kind))
|
|
180
|
+
return false;
|
|
181
|
+
if (options.bundler !== 'webpack')
|
|
182
|
+
return false;
|
|
183
|
+
return (0, utils_1.getDemoStandMode)(options) === 'react-adapter';
|
|
184
|
+
}
|
|
171
185
|
/** advanced + vite (shadow-dom | umd | memory-usage | subpath) */
|
|
172
186
|
function getStandAdvancedViteEtaLayerRoots(templateOptions, cliRoot = (0, paths_1.getCliPackageRoot)()) {
|
|
173
187
|
if (templateOptions.bundler !== 'vite')
|
|
@@ -216,6 +230,11 @@ function getStandReactAdapterViteEtaLayerRoots(templateOptions, cliRoot = (0, pa
|
|
|
216
230
|
return null;
|
|
217
231
|
return [resolveStandViteBaseLayerDir(cliRoot), resolveStandReactAdapterViteVariantDir(cliRoot)];
|
|
218
232
|
}
|
|
233
|
+
function getStandReactAdapterWebpackEtaLayerRoots(templateOptions, cliRoot = (0, paths_1.getCliPackageRoot)()) {
|
|
234
|
+
if (!shouldUseEtaStandReactAdapterWebpack(templateOptions))
|
|
235
|
+
return null;
|
|
236
|
+
return [resolveStandWebpackBaseLayerDir(cliRoot), resolveStandReactAdapterWebpackVariantDir(cliRoot)];
|
|
237
|
+
}
|
|
219
238
|
/** Stand + Eta: простые slug, react-adapter, advanced-ветки. */
|
|
220
239
|
function getStandEtaLayerRoots(templateOptions, cliRoot = (0, paths_1.getCliPackageRoot)()) {
|
|
221
240
|
const simpleVite = getStandViteEtaLayerRoots(templateOptions, cliRoot);
|
|
@@ -227,6 +246,9 @@ function getStandEtaLayerRoots(templateOptions, cliRoot = (0, paths_1.getCliPack
|
|
|
227
246
|
const reactVite = getStandReactAdapterViteEtaLayerRoots(templateOptions, cliRoot);
|
|
228
247
|
if (reactVite)
|
|
229
248
|
return reactVite;
|
|
249
|
+
const reactWebpack = getStandReactAdapterWebpackEtaLayerRoots(templateOptions, cliRoot);
|
|
250
|
+
if (reactWebpack)
|
|
251
|
+
return reactWebpack;
|
|
230
252
|
const advVite = getStandAdvancedViteEtaLayerRoots(templateOptions, cliRoot);
|
|
231
253
|
if (advVite)
|
|
232
254
|
return advVite;
|
|
@@ -118,7 +118,7 @@ const MESSAGES = {
|
|
|
118
118
|
'readmeStand.emailTemplate': '- `src/dev/email.html` - base email template',
|
|
119
119
|
'readmeStand.editorConfigFile': '- `src/dev/editorConfig.ts` - base config passed to `init(...)` (editor API)',
|
|
120
120
|
'readmeStand.storageProviderFile': '- `src/dev/storageProvider.ts` - StorageProvider (`pathMode`, `./storage`)',
|
|
121
|
-
'readmeStand.storageMiddleware': '- `scripts/devStorageMiddleware.
|
|
121
|
+
'readmeStand.storageMiddleware': '- `scripts/devStorageMiddleware.ts` - middleware for `/dev-storage`',
|
|
122
122
|
'readmeStand.storageFolder': '- `storage/` - folder for uploaded files',
|
|
123
123
|
'readmeStand.configDir': '- `config/` - bundler config used by `npm run start` and `npm run build`',
|
|
124
124
|
'readmeStand.oauthCredentialsFile': '- `src/dev/oauthCredentials.ts` - OAuth credentials',
|
|
@@ -239,7 +239,7 @@ const MESSAGES = {
|
|
|
239
239
|
'readmeStand.emailTemplate': '- `src/dev/email.html` - базовый шаблон письма',
|
|
240
240
|
'readmeStand.editorConfigFile': '- `src/dev/editorConfig.ts` - базовый config для вызова `init(...)` редактора',
|
|
241
241
|
'readmeStand.storageProviderFile': '- `src/dev/storageProvider.ts` - StorageProvider (`pathMode`, `./storage`)',
|
|
242
|
-
'readmeStand.storageMiddleware': '- `scripts/devStorageMiddleware.
|
|
242
|
+
'readmeStand.storageMiddleware': '- `scripts/devStorageMiddleware.ts` - middleware для `/dev-storage`',
|
|
243
243
|
'readmeStand.storageFolder': '- `storage/` - папка для загруженных файлов',
|
|
244
244
|
'readmeStand.configDir': '- `config/` - bundler-конфиг для `npm run start` и `npm run build`',
|
|
245
245
|
'readmeStand.oauthCredentialsFile': '- `src/dev/oauthCredentials.ts` - OAuth credentials',
|
|
@@ -8,14 +8,13 @@ function getGeneratedPaths(options) {
|
|
|
8
8
|
const isSubpathAdvancedStand = isStand
|
|
9
9
|
&& (0, utils_1.getDemoStandMode)(options) === 'advanced'
|
|
10
10
|
&& (0, utils_1.getAdvancedStandProfile)(options) === 'subpath';
|
|
11
|
-
const ext = bundler === 'vite' ? 'mjs' : 'cjs';
|
|
12
11
|
return {
|
|
13
12
|
indexHtml: bundler === 'vite'
|
|
14
13
|
? (isSubpathAdvancedStand ? 'advanced/subpath/index.html' : 'index.html')
|
|
15
14
|
: (isSubpathAdvancedStand ? 'public/advanced/subpath/index.html' : 'public/index.html'),
|
|
16
|
-
devConfig:
|
|
17
|
-
pluginBuildConfig: isStand ? undefined :
|
|
18
|
-
sandboxBuildConfig: isStand ? undefined :
|
|
15
|
+
devConfig: 'config/dev-host.ts',
|
|
16
|
+
pluginBuildConfig: isStand ? undefined : 'config/plugin-build.ts',
|
|
17
|
+
sandboxBuildConfig: isStand ? undefined : 'config/sandbox-build.ts',
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
20
|
//# sourceMappingURL=paths.js.map
|