@servicetitan/startup 35.2.0-far-1776.0 → 35.2.0
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/dist/cli/commands/build.d.ts +2 -70
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/build.js +0 -49
- package/dist/cli/commands/build.js.map +1 -1
- package/dist/cli/commands/bundle-package.d.ts +2 -54
- package/dist/cli/commands/bundle-package.d.ts.map +1 -1
- package/dist/cli/commands/bundle-package.js +0 -40
- package/dist/cli/commands/bundle-package.js.map +1 -1
- package/dist/cli/commands/clean.d.ts +2 -3
- package/dist/cli/commands/clean.d.ts.map +1 -1
- package/dist/cli/commands/clean.js +0 -15
- package/dist/cli/commands/clean.js.map +1 -1
- package/dist/cli/commands/convert-eslint-config.d.ts +2 -3
- package/dist/cli/commands/convert-eslint-config.d.ts.map +1 -1
- package/dist/cli/commands/convert-eslint-config.js +0 -2
- package/dist/cli/commands/convert-eslint-config.js.map +1 -1
- package/dist/cli/commands/eslint.d.ts +2 -34
- package/dist/cli/commands/eslint.d.ts.map +1 -1
- package/dist/cli/commands/eslint.js +0 -30
- package/dist/cli/commands/eslint.js.map +1 -1
- package/dist/cli/commands/init.d.ts +2 -16
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +0 -22
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/install.d.ts +2 -36
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +0 -32
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/kendo-ui-license.d.ts +2 -3
- package/dist/cli/commands/kendo-ui-license.d.ts.map +1 -1
- package/dist/cli/commands/kendo-ui-license.js +0 -15
- package/dist/cli/commands/kendo-ui-license.js.map +1 -1
- package/dist/cli/commands/lint.d.ts +2 -70
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/commands/lint.js +0 -49
- package/dist/cli/commands/lint.js.map +1 -1
- package/dist/cli/commands/mfe-check.d.ts +2 -44
- package/dist/cli/commands/mfe-check.d.ts.map +1 -1
- package/dist/cli/commands/mfe-check.js +0 -36
- package/dist/cli/commands/mfe-check.js.map +1 -1
- package/dist/cli/commands/mfe-generate-metadata.d.ts +2 -16
- package/dist/cli/commands/mfe-generate-metadata.d.ts.map +1 -1
- package/dist/cli/commands/mfe-generate-metadata.js +4 -28
- package/dist/cli/commands/mfe-generate-metadata.js.map +1 -1
- package/dist/cli/commands/mfe-list.d.ts +2 -70
- package/dist/cli/commands/mfe-list.d.ts.map +1 -1
- package/dist/cli/commands/mfe-list.js +0 -49
- package/dist/cli/commands/mfe-list.js.map +1 -1
- package/dist/cli/commands/mfe-package-clean.d.ts +2 -53
- package/dist/cli/commands/mfe-package-clean.d.ts.map +1 -1
- package/dist/cli/commands/mfe-package-clean.js +3 -51
- package/dist/cli/commands/mfe-package-clean.js.map +1 -1
- package/dist/cli/commands/mfe-package-publish.d.ts +2 -91
- package/dist/cli/commands/mfe-package-publish.d.ts.map +1 -1
- package/dist/cli/commands/mfe-package-publish.js +3 -70
- package/dist/cli/commands/mfe-package-publish.js.map +1 -1
- package/dist/cli/commands/mfe-package-rollback.d.ts +2 -43
- package/dist/cli/commands/mfe-package-rollback.d.ts.map +1 -1
- package/dist/cli/commands/mfe-package-rollback.js +3 -46
- package/dist/cli/commands/mfe-package-rollback.js.map +1 -1
- package/dist/cli/commands/mfe-publish.d.ts +9 -47
- package/dist/cli/commands/mfe-publish.d.ts.map +1 -1
- package/dist/cli/commands/mfe-publish.js +0 -69
- package/dist/cli/commands/mfe-publish.js.map +1 -1
- package/dist/cli/commands/mfe-purge-cache.d.ts +2 -46
- package/dist/cli/commands/mfe-purge-cache.d.ts.map +1 -1
- package/dist/cli/commands/mfe-purge-cache.js +0 -36
- package/dist/cli/commands/mfe-purge-cache.js.map +1 -1
- package/dist/cli/commands/prepare-package.d.ts +2 -14
- package/dist/cli/commands/prepare-package.d.ts.map +1 -1
- package/dist/cli/commands/prepare-package.js +0 -20
- package/dist/cli/commands/prepare-package.js.map +1 -1
- package/dist/cli/commands/registry/build.d.ts +38 -0
- package/dist/cli/commands/registry/build.d.ts.map +1 -0
- package/dist/cli/commands/registry/build.js +50 -0
- package/dist/cli/commands/registry/build.js.map +1 -0
- package/dist/cli/commands/registry/bundle-package.d.ts +29 -0
- package/dist/cli/commands/registry/bundle-package.d.ts.map +1 -0
- package/dist/cli/commands/registry/bundle-package.js +41 -0
- package/dist/cli/commands/registry/bundle-package.js.map +1 -0
- package/dist/cli/commands/registry/clean.d.ts +5 -0
- package/dist/cli/commands/registry/clean.d.ts.map +1 -0
- package/dist/cli/commands/registry/clean.js +17 -0
- package/dist/cli/commands/registry/clean.js.map +1 -0
- package/dist/cli/commands/registry/command-registry.d.ts +509 -0
- package/dist/cli/commands/registry/command-registry.d.ts.map +1 -0
- package/dist/cli/commands/registry/command-registry.js +138 -0
- package/dist/cli/commands/registry/command-registry.js.map +1 -0
- package/dist/cli/commands/registry/convert-eslint-config.d.ts +5 -0
- package/dist/cli/commands/registry/convert-eslint-config.d.ts.map +1 -0
- package/dist/cli/commands/registry/convert-eslint-config.js +17 -0
- package/dist/cli/commands/registry/convert-eslint-config.js.map +1 -0
- package/dist/cli/commands/registry/define-entry.d.ts +7 -0
- package/dist/cli/commands/registry/define-entry.d.ts.map +1 -0
- package/dist/cli/commands/registry/define-entry.js +15 -0
- package/dist/cli/commands/registry/define-entry.js.map +1 -0
- package/dist/cli/commands/registry/eslint.d.ts +19 -0
- package/dist/cli/commands/registry/eslint.d.ts.map +1 -0
- package/dist/cli/commands/registry/eslint.js +31 -0
- package/dist/cli/commands/registry/eslint.js.map +1 -0
- package/dist/cli/commands/registry/index.d.ts +3 -0
- package/dist/cli/commands/registry/index.d.ts.map +1 -0
- package/dist/cli/commands/registry/index.js +13 -0
- package/dist/cli/commands/registry/index.js.map +1 -0
- package/dist/cli/commands/registry/init.d.ts +11 -0
- package/dist/cli/commands/registry/init.d.ts.map +1 -0
- package/dist/cli/commands/registry/init.js +23 -0
- package/dist/cli/commands/registry/init.js.map +1 -0
- package/dist/cli/commands/registry/install.d.ts +21 -0
- package/dist/cli/commands/registry/install.d.ts.map +1 -0
- package/dist/cli/commands/registry/install.js +33 -0
- package/dist/cli/commands/registry/install.js.map +1 -0
- package/dist/cli/commands/registry/kendo-ui-license.d.ts +5 -0
- package/dist/cli/commands/registry/kendo-ui-license.d.ts.map +1 -0
- package/dist/cli/commands/registry/kendo-ui-license.js +17 -0
- package/dist/cli/commands/registry/kendo-ui-license.js.map +1 -0
- package/dist/cli/commands/registry/lint.d.ts +38 -0
- package/dist/cli/commands/registry/lint.d.ts.map +1 -0
- package/dist/cli/commands/registry/lint.js +50 -0
- package/dist/cli/commands/registry/lint.js.map +1 -0
- package/dist/cli/commands/registry/mfe-check.d.ts +25 -0
- package/dist/cli/commands/registry/mfe-check.d.ts.map +1 -0
- package/dist/cli/commands/registry/mfe-check.js +37 -0
- package/dist/cli/commands/registry/mfe-check.js.map +1 -0
- package/dist/cli/commands/registry/mfe-generate-metadata.d.ts +11 -0
- package/dist/cli/commands/registry/mfe-generate-metadata.d.ts.map +1 -0
- package/dist/cli/commands/registry/mfe-generate-metadata.js +23 -0
- package/dist/cli/commands/registry/mfe-generate-metadata.js.map +1 -0
- package/dist/cli/commands/registry/mfe-list.d.ts +38 -0
- package/dist/cli/commands/registry/mfe-list.d.ts.map +1 -0
- package/dist/cli/commands/registry/mfe-list.js +50 -0
- package/dist/cli/commands/registry/mfe-list.js.map +1 -0
- package/dist/cli/commands/registry/mfe-package-clean.d.ts +29 -0
- package/dist/cli/commands/registry/mfe-package-clean.d.ts.map +1 -0
- package/dist/cli/commands/registry/mfe-package-clean.js +41 -0
- package/dist/cli/commands/registry/mfe-package-clean.js.map +1 -0
- package/dist/cli/commands/registry/mfe-package-publish.d.ts +48 -0
- package/dist/cli/commands/registry/mfe-package-publish.d.ts.map +1 -0
- package/dist/cli/commands/registry/mfe-package-publish.js +60 -0
- package/dist/cli/commands/registry/mfe-package-publish.js.map +1 -0
- package/dist/cli/commands/registry/mfe-package-rollback.d.ts +24 -0
- package/dist/cli/commands/registry/mfe-package-rollback.d.ts.map +1 -0
- package/dist/cli/commands/registry/mfe-package-rollback.js +36 -0
- package/dist/cli/commands/registry/mfe-package-rollback.js.map +1 -0
- package/dist/cli/commands/registry/mfe-publish.d.ts +24 -0
- package/dist/cli/commands/registry/mfe-publish.d.ts.map +1 -0
- package/dist/cli/commands/registry/mfe-publish.js +72 -0
- package/dist/cli/commands/registry/mfe-publish.js.map +1 -0
- package/dist/cli/commands/registry/mfe-purge-cache.d.ts +25 -0
- package/dist/cli/commands/registry/mfe-purge-cache.d.ts.map +1 -0
- package/dist/cli/commands/registry/mfe-purge-cache.js +37 -0
- package/dist/cli/commands/registry/mfe-purge-cache.js.map +1 -0
- package/dist/cli/commands/registry/prepare-package.d.ts +9 -0
- package/dist/cli/commands/registry/prepare-package.d.ts.map +1 -0
- package/dist/cli/commands/registry/prepare-package.js +21 -0
- package/dist/cli/commands/registry/prepare-package.js.map +1 -0
- package/dist/cli/commands/registry/review.d.ts +16 -0
- package/dist/cli/commands/registry/review.d.ts.map +1 -0
- package/dist/cli/commands/registry/review.js +28 -0
- package/dist/cli/commands/registry/review.js.map +1 -0
- package/dist/cli/commands/registry/start.d.ts +30 -0
- package/dist/cli/commands/registry/start.d.ts.map +1 -0
- package/dist/cli/commands/registry/start.js +42 -0
- package/dist/cli/commands/registry/start.js.map +1 -0
- package/dist/cli/commands/registry/stylelint.d.ts +19 -0
- package/dist/cli/commands/registry/stylelint.d.ts.map +1 -0
- package/dist/cli/commands/registry/stylelint.js +31 -0
- package/dist/cli/commands/registry/stylelint.js.map +1 -0
- package/dist/cli/commands/registry/styles-check.d.ts +2 -0
- package/dist/cli/commands/registry/styles-check.d.ts.map +1 -0
- package/dist/cli/commands/registry/styles-check.js +14 -0
- package/dist/cli/commands/registry/styles-check.js.map +1 -0
- package/dist/cli/commands/registry/task.d.ts +19 -0
- package/dist/cli/commands/registry/task.d.ts.map +1 -0
- package/dist/cli/commands/registry/task.js +31 -0
- package/dist/cli/commands/registry/task.js.map +1 -0
- package/dist/cli/commands/registry/test-command.d.ts +22 -0
- package/dist/cli/commands/registry/test-command.d.ts.map +1 -0
- package/dist/cli/commands/registry/test-command.js +38 -0
- package/dist/cli/commands/registry/test-command.js.map +1 -0
- package/dist/cli/commands/registry/upload-sourcemaps.d.ts +15 -0
- package/dist/cli/commands/registry/upload-sourcemaps.d.ts.map +1 -0
- package/dist/cli/commands/registry/upload-sourcemaps.js +27 -0
- package/dist/cli/commands/registry/upload-sourcemaps.js.map +1 -0
- package/dist/cli/commands/review/review.d.ts +2 -26
- package/dist/cli/commands/review/review.d.ts.map +1 -1
- package/dist/cli/commands/review/review.js +0 -14
- package/dist/cli/commands/review/review.js.map +1 -1
- package/dist/cli/commands/run-task.d.ts +2 -34
- package/dist/cli/commands/run-task.d.ts.map +1 -1
- package/dist/cli/commands/run-task.js +0 -30
- package/dist/cli/commands/run-task.js.map +1 -1
- package/dist/cli/commands/start.d.ts +2 -54
- package/dist/cli/commands/start.d.ts.map +1 -1
- package/dist/cli/commands/start.js +0 -41
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/commands/stylelint.d.ts +2 -34
- package/dist/cli/commands/stylelint.d.ts.map +1 -1
- package/dist/cli/commands/stylelint.js +0 -30
- package/dist/cli/commands/stylelint.js.map +1 -1
- package/dist/cli/commands/styles-check.d.ts +2 -1
- package/dist/cli/commands/styles-check.d.ts.map +1 -1
- package/dist/cli/commands/styles-check.js.map +1 -1
- package/dist/cli/commands/test/tests.d.ts +2 -38
- package/dist/cli/commands/test/tests.d.ts.map +1 -1
- package/dist/cli/commands/test/tests.js +0 -36
- package/dist/cli/commands/test/tests.js.map +1 -1
- package/dist/cli/commands/types.d.ts +9 -7
- package/dist/cli/commands/types.d.ts.map +1 -1
- package/dist/cli/commands/types.js +0 -4
- package/dist/cli/commands/types.js.map +1 -1
- package/dist/cli/commands/upload-sourcemaps.d.ts +2 -26
- package/dist/cli/commands/upload-sourcemaps.d.ts.map +1 -1
- package/dist/cli/commands/upload-sourcemaps.js +0 -26
- package/dist/cli/commands/upload-sourcemaps.js.map +1 -1
- package/dist/cli/index.js +17 -16
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/tasks/swc-compile-package/swc-compile-package.d.ts.map +1 -1
- package/dist/cli/tasks/swc-compile-package/swc-compile-package.js +1 -7
- package/dist/cli/tasks/swc-compile-package/swc-compile-package.js.map +1 -1
- package/dist/cli/utils/bundle.js +1 -1
- package/dist/cli/utils/bundle.js.map +1 -1
- package/dist/cli/utils/check-startup-location.d.ts +2 -2
- package/dist/cli/utils/check-startup-location.d.ts.map +1 -1
- package/dist/cli/utils/check-startup-location.js +1 -2
- package/dist/cli/utils/check-startup-location.js.map +1 -1
- package/dist/cli/utils/set-node-options.d.ts +3 -3
- package/dist/cli/utils/set-node-options.d.ts.map +1 -1
- package/dist/cli/utils/set-node-options.js +1 -2
- package/dist/cli/utils/set-node-options.js.map +1 -1
- package/dist/utils/find-up.js +4 -4
- package/dist/utils/find-up.js.map +1 -1
- package/dist/utils/get-package-data.d.ts.map +1 -1
- package/dist/utils/get-package-data.js +1 -28
- package/dist/utils/get-package-data.js.map +1 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +0 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/webpack/configs/cache-config.d.ts.map +1 -1
- package/dist/webpack/configs/cache-config.js +14 -1
- package/dist/webpack/configs/cache-config.js.map +1 -1
- package/dist/webpack/configs/utils/get-launchdarkly-sdk-version.d.ts.map +1 -1
- package/dist/webpack/configs/utils/get-launchdarkly-sdk-version.js +11 -1
- package/dist/webpack/configs/utils/get-launchdarkly-sdk-version.js.map +1 -1
- package/dist/webpack/configs/utils/get-web-components-version.d.ts.map +1 -1
- package/dist/webpack/configs/utils/get-web-components-version.js +7 -5
- package/dist/webpack/configs/utils/get-web-components-version.js.map +1 -1
- package/package.json +12 -17
- package/src/cli/commands/__tests__/build.test.ts +2 -1
- package/src/cli/commands/__tests__/clean.test.ts +2 -1
- package/src/cli/commands/__tests__/convert-eslint-config.test.ts +2 -1
- package/src/cli/commands/__tests__/init.test.ts +4 -3
- package/src/cli/commands/__tests__/install.test.ts +2 -1
- package/src/cli/commands/__tests__/kendo-ui-license.test.ts +3 -2
- package/src/cli/commands/__tests__/lint.test.ts +3 -1
- package/src/cli/commands/__tests__/mfe-check.test.ts +2 -1
- package/src/cli/commands/__tests__/mfe-generate-metadata.test.ts +6 -24
- package/src/cli/commands/__tests__/mfe-list.test.ts +2 -1
- package/src/cli/commands/__tests__/mfe-publish.test.ts +8 -7
- package/src/cli/commands/__tests__/start.test.ts +2 -1
- package/src/cli/commands/build.ts +3 -16
- package/src/cli/commands/bundle-package.ts +3 -12
- package/src/cli/commands/clean.ts +2 -4
- package/src/cli/commands/convert-eslint-config.ts +2 -4
- package/src/cli/commands/eslint.ts +3 -10
- package/src/cli/commands/init.ts +3 -10
- package/src/cli/commands/install.ts +3 -12
- package/src/cli/commands/kendo-ui-license.ts +2 -4
- package/src/cli/commands/lint.ts +3 -15
- package/src/cli/commands/mfe-check.ts +3 -28
- package/src/cli/commands/mfe-generate-metadata.ts +9 -19
- package/src/cli/commands/mfe-list.ts +3 -23
- package/src/cli/commands/mfe-package-clean.ts +3 -27
- package/src/cli/commands/mfe-package-publish.ts +3 -46
- package/src/cli/commands/mfe-package-rollback.ts +3 -26
- package/src/cli/commands/mfe-publish.ts +11 -73
- package/src/cli/commands/mfe-purge-cache.ts +3 -27
- package/src/cli/commands/prepare-package.ts +3 -7
- package/src/cli/commands/registry/__tests__/command-registry.test.ts +13 -0
- package/src/cli/commands/registry/build.ts +16 -0
- package/src/cli/commands/registry/bundle-package.ts +13 -0
- package/src/cli/commands/registry/clean.ts +7 -0
- package/src/cli/commands/registry/command-registry.ts +98 -0
- package/src/cli/commands/registry/convert-eslint-config.ts +7 -0
- package/src/cli/commands/registry/define-entry.ts +11 -0
- package/src/cli/commands/registry/eslint.ts +12 -0
- package/src/cli/commands/registry/index.ts +2 -0
- package/src/cli/commands/registry/init.ts +10 -0
- package/src/cli/commands/registry/install.ts +12 -0
- package/src/cli/commands/registry/kendo-ui-license.ts +7 -0
- package/src/cli/commands/registry/lint.ts +17 -0
- package/src/cli/commands/registry/mfe-check.ts +28 -0
- package/src/cli/commands/registry/mfe-generate-metadata.ts +13 -0
- package/src/cli/commands/registry/mfe-list.ts +25 -0
- package/src/cli/commands/registry/mfe-package-clean.ts +27 -0
- package/src/cli/commands/registry/mfe-package-publish.ts +46 -0
- package/src/cli/commands/registry/mfe-package-rollback.ts +26 -0
- package/src/cli/commands/registry/mfe-publish.ts +55 -0
- package/src/cli/commands/registry/mfe-purge-cache.ts +27 -0
- package/src/cli/commands/registry/prepare-package.ts +8 -0
- package/src/cli/commands/registry/review.ts +11 -0
- package/src/cli/commands/registry/start.ts +14 -0
- package/src/cli/commands/registry/stylelint.ts +12 -0
- package/src/cli/commands/registry/styles-check.ts +4 -0
- package/src/cli/commands/registry/task.ts +12 -0
- package/src/cli/commands/registry/test-command.ts +19 -0
- package/src/cli/commands/registry/upload-sourcemaps.ts +14 -0
- package/src/cli/commands/review/__tests__/review.test.ts +2 -1
- package/src/cli/commands/review/review.ts +3 -11
- package/src/cli/commands/run-task.ts +3 -10
- package/src/cli/commands/start.ts +3 -14
- package/src/cli/commands/stylelint.ts +3 -10
- package/src/cli/commands/styles-check.ts +2 -1
- package/src/cli/commands/test/__tests__/tests.test.ts +2 -1
- package/src/cli/commands/test/tests.ts +3 -16
- package/src/cli/commands/types.ts +8 -6
- package/src/cli/commands/upload-sourcemaps.ts +3 -13
- package/src/cli/index.ts +21 -20
- package/src/cli/tasks/swc-compile-package/__tests__/swc-compile-package.test.ts +1 -8
- package/src/cli/tasks/swc-compile-package/swc-compile-package.ts +1 -11
- package/src/cli/utils/__tests__/bundle.test.ts +17 -0
- package/src/cli/utils/__tests__/check-startup-location.test.ts +5 -17
- package/src/cli/utils/__tests__/set-node-options.test.ts +5 -19
- package/src/cli/utils/bundle.ts +1 -1
- package/src/cli/utils/check-startup-location.ts +5 -3
- package/src/cli/utils/set-node-options.ts +3 -4
- package/src/utils/__tests__/get-package-data.test.ts +26 -97
- package/src/utils/find-up.ts +1 -1
- package/src/utils/get-package-data.ts +2 -27
- package/src/utils/index.ts +0 -2
- package/src/webpack/configs/cache-config.ts +10 -1
- package/src/webpack/configs/utils/__tests__/get-launchdarkly-sdk-version.test.ts +8 -24
- package/src/webpack/configs/utils/__tests__/get-web-components-version.test.ts +10 -30
- package/src/webpack/configs/utils/get-launchdarkly-sdk-version.ts +12 -2
- package/src/webpack/configs/utils/get-web-components-version.ts +5 -8
- package/dist/cli/commands/get-command.d.ts +0 -4
- package/dist/cli/commands/get-command.d.ts.map +0 -1
- package/dist/cli/commands/get-command.js +0 -68
- package/dist/cli/commands/get-command.js.map +0 -1
- package/dist/cli/commands/index.d.ts +0 -15
- package/dist/cli/commands/index.d.ts.map +0 -1
- package/dist/cli/commands/index.js +0 -32
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/utils/find-package-lock.d.ts +0 -2
- package/dist/utils/find-package-lock.d.ts.map +0 -1
- package/dist/utils/find-package-lock.js +0 -26
- package/dist/utils/find-package-lock.js.map +0 -1
- package/dist/utils/get-package-version.d.ts +0 -2
- package/dist/utils/get-package-version.d.ts.map +0 -1
- package/dist/utils/get-package-version.js +0 -31
- package/dist/utils/get-package-version.js.map +0 -1
- package/src/cli/commands/__tests__/get-command.test.ts +0 -19
- package/src/cli/commands/get-command.ts +0 -59
- package/src/cli/commands/index.ts +0 -14
- package/src/utils/__tests__/find-package-lock.test.ts +0 -35
- package/src/utils/__tests__/get-package-version.test.ts +0 -120
- package/src/utils/find-package-lock.ts +0 -10
- package/src/utils/get-package-version.ts +0 -31
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
import { getBranchesConfigs, isWebComponent, log, logErrors, readJson } from '../../utils';
|
|
2
2
|
import { gitGetBranch, npmGetPackageVersionsDetails, npmUnpublish, Version } from '../utils';
|
|
3
|
-
import {
|
|
3
|
+
import type { entry } from './registry/mfe-package-clean';
|
|
4
|
+
import { Command } from './types';
|
|
4
5
|
import { DEFAULT_MFE_REGISTRY } from './utils';
|
|
5
6
|
|
|
6
|
-
export
|
|
7
|
-
all: {
|
|
8
|
-
boolean: true,
|
|
9
|
-
description: 'Unpublish old versions from all branches',
|
|
10
|
-
defaultDescription: 'false',
|
|
11
|
-
},
|
|
12
|
-
branch: {
|
|
13
|
-
string: true,
|
|
14
|
-
description: 'Branch name of versions to unpublish',
|
|
15
|
-
defaultDescription: 'current git branch',
|
|
16
|
-
},
|
|
17
|
-
count: {
|
|
18
|
-
number: true,
|
|
19
|
-
description: 'Keep the specified number of old versions',
|
|
20
|
-
defaultDescription: '5',
|
|
21
|
-
},
|
|
22
|
-
dry: {
|
|
23
|
-
boolean: true,
|
|
24
|
-
description: 'Take no action and only log what would be unpublished',
|
|
25
|
-
},
|
|
26
|
-
registry: { string: true, hidden: true, description: 'Registry url' },
|
|
27
|
-
} satisfies CommandOptions;
|
|
28
|
-
|
|
29
|
-
export class MFEPackageClean extends Command<typeof mfePackageCleanOptions> {
|
|
30
|
-
static readonly options = mfePackageCleanOptions;
|
|
31
|
-
|
|
7
|
+
export class MFEPackageClean extends Command<typeof entry> {
|
|
32
8
|
@logErrors
|
|
33
9
|
async execute() {
|
|
34
10
|
if (!isWebComponent()) {
|
|
@@ -21,51 +21,10 @@ import {
|
|
|
21
21
|
npmView,
|
|
22
22
|
runCommand,
|
|
23
23
|
} from '../utils';
|
|
24
|
-
import {
|
|
24
|
+
import type { entry } from './registry/mfe-package-publish';
|
|
25
|
+
import { Command } from './types';
|
|
25
26
|
import { DEFAULT_MFE_REGISTRY, buildRollbackTag, purgeCache } from './utils';
|
|
26
27
|
|
|
27
|
-
export const mfePackagePublishOptions = {
|
|
28
|
-
branch: {
|
|
29
|
-
string: true,
|
|
30
|
-
description: 'Branch name to associate with published version',
|
|
31
|
-
defaultDescription: 'current git branch',
|
|
32
|
-
},
|
|
33
|
-
build: {
|
|
34
|
-
string: true,
|
|
35
|
-
description: 'Package version',
|
|
36
|
-
defaultDescription: '<branch_name>.<commit_hash>',
|
|
37
|
-
},
|
|
38
|
-
dry: {
|
|
39
|
-
boolean: true,
|
|
40
|
-
description: 'Take no action and only log what would be published',
|
|
41
|
-
},
|
|
42
|
-
force: {
|
|
43
|
-
boolean: true,
|
|
44
|
-
description: 'Force publishing from an unrecognized branch',
|
|
45
|
-
},
|
|
46
|
-
registry: { string: true, hidden: true, description: 'Registry url' },
|
|
47
|
-
trackHistory: {
|
|
48
|
-
boolean: true,
|
|
49
|
-
description: `Tag the previous release, to support rollbacks`,
|
|
50
|
-
defaultDescription: 'true',
|
|
51
|
-
hidden: true,
|
|
52
|
-
},
|
|
53
|
-
tag: {
|
|
54
|
-
string: true,
|
|
55
|
-
description: 'Tag to assign to published version',
|
|
56
|
-
},
|
|
57
|
-
uploadSourcemaps: {
|
|
58
|
-
boolean: true,
|
|
59
|
-
description: 'Upload source maps to Datadog?',
|
|
60
|
-
defaultDescription: 'true',
|
|
61
|
-
},
|
|
62
|
-
purgeCache: {
|
|
63
|
-
boolean: true,
|
|
64
|
-
description: 'Purge unpkg cache after publishing?',
|
|
65
|
-
defaultDescription: 'true',
|
|
66
|
-
},
|
|
67
|
-
} satisfies CommandOptions;
|
|
68
|
-
|
|
69
28
|
interface PublishData {
|
|
70
29
|
buildVersion: string;
|
|
71
30
|
dry: boolean;
|
|
@@ -85,9 +44,7 @@ interface PackageJson {
|
|
|
85
44
|
files?: string[];
|
|
86
45
|
}
|
|
87
46
|
|
|
88
|
-
export class MFEPackagePublish extends Command<typeof
|
|
89
|
-
static readonly options = mfePackagePublishOptions;
|
|
90
|
-
|
|
47
|
+
export class MFEPackagePublish extends Command<typeof entry> {
|
|
91
48
|
@logErrors
|
|
92
49
|
async execute() {
|
|
93
50
|
if (this.args.dry) {
|
|
@@ -1,37 +1,14 @@
|
|
|
1
1
|
import { log, logErrors, readJson } from '../../utils';
|
|
2
2
|
import { DRY_RUN_PREFIX, npmTagVersion, npmView } from '../utils';
|
|
3
|
-
import {
|
|
3
|
+
import type { entry } from './registry/mfe-package-rollback';
|
|
4
|
+
import { Command } from './types';
|
|
4
5
|
import { DEFAULT_MFE_REGISTRY, buildRollbackTag, purgeCache } from './utils';
|
|
5
6
|
|
|
6
|
-
export const mfePackageRollbackOptions = {
|
|
7
|
-
dry: {
|
|
8
|
-
boolean: true,
|
|
9
|
-
description: 'Take no action and only log what would be rolled back',
|
|
10
|
-
},
|
|
11
|
-
registry: {
|
|
12
|
-
string: true,
|
|
13
|
-
hidden: true,
|
|
14
|
-
description: 'Registry url',
|
|
15
|
-
},
|
|
16
|
-
tag: {
|
|
17
|
-
string: true,
|
|
18
|
-
description: 'The tag to rollback to its previous version',
|
|
19
|
-
required: true,
|
|
20
|
-
},
|
|
21
|
-
purgeCache: {
|
|
22
|
-
boolean: true,
|
|
23
|
-
description: 'Purge unpkg cache after rolling back?',
|
|
24
|
-
defaultDescription: 'true',
|
|
25
|
-
},
|
|
26
|
-
} satisfies CommandOptions;
|
|
27
|
-
|
|
28
7
|
interface PackageJson {
|
|
29
8
|
name: string;
|
|
30
9
|
}
|
|
31
10
|
|
|
32
|
-
export class MFEPackageRollback extends Command<typeof
|
|
33
|
-
static readonly options = mfePackageRollbackOptions;
|
|
34
|
-
|
|
11
|
+
export class MFEPackageRollback extends Command<typeof entry> {
|
|
35
12
|
private get dryRunPrefix() {
|
|
36
13
|
return this.args.dry ? DRY_RUN_PREFIX : '';
|
|
37
14
|
}
|
|
@@ -1,82 +1,20 @@
|
|
|
1
1
|
import { getPackages, isWebComponent, logErrors, PackageType } from '../../utils';
|
|
2
2
|
import { lernaExec } from '../utils';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { entry as mfePackageClean } from './registry/mfe-package-clean';
|
|
4
|
+
import { entry as mfePackagePublish } from './registry/mfe-package-publish';
|
|
5
|
+
import { entry as mfePackageRollback } from './registry/mfe-package-rollback';
|
|
6
|
+
import type { entry } from './registry/mfe-publish';
|
|
7
|
+
import { Command } from './types';
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
number: true,
|
|
12
|
-
description: 'Publish/unpublish the specified number of packages concurrently',
|
|
13
|
-
defaultDescription: '1',
|
|
14
|
-
},
|
|
15
|
-
rollback: {
|
|
16
|
-
boolean: true,
|
|
17
|
-
description: 'Rollback specified tag to the previous version',
|
|
18
|
-
},
|
|
19
|
-
scope: {
|
|
20
|
-
array: true,
|
|
21
|
-
string: true,
|
|
22
|
-
description: 'Publish/unpublish only the specified packages',
|
|
23
|
-
},
|
|
24
|
-
} satisfies CommandOptions;
|
|
25
|
-
|
|
26
|
-
type MFEPublishOptions = typeof mfePublishOwnOptions &
|
|
27
|
-
typeof mfePackagePublishOptions &
|
|
28
|
-
typeof mfePackageCleanOptions &
|
|
9
|
+
type MFEPublishOptions = (typeof entry)['options'] &
|
|
10
|
+
(typeof mfePackagePublish)['options'] &
|
|
11
|
+
(typeof mfePackageClean)['options'] &
|
|
29
12
|
// make 'tag' not required for mfe-publish args, since it is only required for rollback
|
|
30
|
-
Omit<typeof
|
|
31
|
-
tag: Omit<typeof
|
|
13
|
+
Omit<(typeof mfePackageRollback)['options'], 'tag'> & {
|
|
14
|
+
tag: Omit<(typeof mfePackageRollback)['options']['tag'], 'required'>;
|
|
32
15
|
};
|
|
33
16
|
|
|
34
|
-
export class MFEPublish extends Command<MFEPublishOptions> {
|
|
35
|
-
static readonly description = 'Publish or unpublish MFE packages';
|
|
36
|
-
static get options() {
|
|
37
|
-
const publishOptions = Object.entries(mfePackagePublishOptions).reduce(
|
|
38
|
-
(result, [key, value]) => {
|
|
39
|
-
result[key] = { group: 'Publish Options:', ...value };
|
|
40
|
-
return result;
|
|
41
|
-
},
|
|
42
|
-
{} as NonNullable<typeof Command.options>
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
const cleanOptions = Object.entries(mfePackageCleanOptions).reduce(
|
|
46
|
-
(result, [key, value]) => {
|
|
47
|
-
// no-break space suffix prevents key collisions
|
|
48
|
-
result[`${key}\u00A0`] = {
|
|
49
|
-
group: 'Clean Options:',
|
|
50
|
-
...value,
|
|
51
|
-
};
|
|
52
|
-
return result;
|
|
53
|
-
},
|
|
54
|
-
{} as NonNullable<typeof Command.options>
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
const rollbackOptions = Object.entries(mfePackageRollbackOptions).reduce(
|
|
58
|
-
(result, [key, value]) => {
|
|
59
|
-
const optionProps = Object.fromEntries(
|
|
60
|
-
Object.entries(value).filter(([k]) => k !== 'required')
|
|
61
|
-
);
|
|
62
|
-
// double no-break space suffix prevents key collisions
|
|
63
|
-
result[`${key}\u00A0\u00A0`] = {
|
|
64
|
-
group: 'Rollback Options:',
|
|
65
|
-
...optionProps,
|
|
66
|
-
};
|
|
67
|
-
return result;
|
|
68
|
-
},
|
|
69
|
-
{} as NonNullable<typeof Command.options>
|
|
70
|
-
);
|
|
71
|
-
|
|
72
|
-
return {
|
|
73
|
-
...mfePublishOwnOptions,
|
|
74
|
-
...publishOptions,
|
|
75
|
-
...cleanOptions,
|
|
76
|
-
...rollbackOptions,
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
17
|
+
export class MFEPublish extends Command<{ options: MFEPublishOptions }> {
|
|
80
18
|
@logErrors
|
|
81
19
|
async execute() {
|
|
82
20
|
const packages = getPackages({ scope: this.args.scope, type: PackageType.Webpack }).filter(
|
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
import { log, logErrors } from '../../utils';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const mfePurgeCacheOptions = {
|
|
5
|
-
host: {
|
|
6
|
-
string: true,
|
|
7
|
-
description: 'Host URL to send purge requests to',
|
|
8
|
-
demandOption: true,
|
|
9
|
-
},
|
|
10
|
-
packageName: {
|
|
11
|
-
string: true,
|
|
12
|
-
description: 'Package name to purge',
|
|
13
|
-
demandOption: true,
|
|
14
|
-
},
|
|
15
|
-
tag: {
|
|
16
|
-
string: true,
|
|
17
|
-
description: 'Package tag to purge',
|
|
18
|
-
demandOption: true,
|
|
19
|
-
},
|
|
20
|
-
token: {
|
|
21
|
-
string: true,
|
|
22
|
-
description: 'X-Purge-Token header value',
|
|
23
|
-
defaultDescription: 'process.env.UNPKG_PURGE_TOKEN',
|
|
24
|
-
},
|
|
25
|
-
} satisfies CommandOptions;
|
|
2
|
+
import type { entry } from './registry/mfe-purge-cache';
|
|
3
|
+
import { Command } from './types';
|
|
26
4
|
|
|
27
5
|
export type PurgeResponse = {
|
|
28
6
|
pod: string;
|
|
@@ -31,9 +9,7 @@ export type PurgeResponse = {
|
|
|
31
9
|
location: string | null;
|
|
32
10
|
}[];
|
|
33
11
|
|
|
34
|
-
export class MFEPurgeCache extends Command<typeof
|
|
35
|
-
static readonly options = mfePurgeCacheOptions;
|
|
36
|
-
|
|
12
|
+
export class MFEPurgeCache extends Command<typeof entry> {
|
|
37
13
|
@logErrors
|
|
38
14
|
async execute() {
|
|
39
15
|
const { host: rawHost, packageName, tag } = this.args;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { logErrors } from '../../utils';
|
|
2
2
|
import { copyFiles } from '../utils';
|
|
3
|
-
import {
|
|
3
|
+
import type { entry } from './registry/prepare-package';
|
|
4
|
+
import { Command } from './types';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
watch: { boolean: true, hidden: true },
|
|
7
|
-
} satisfies CommandOptions;
|
|
8
|
-
|
|
9
|
-
export class PreparePackage extends Command<typeof options> {
|
|
10
|
-
static readonly options = options;
|
|
6
|
+
export class PreparePackage extends Command<typeof entry> {
|
|
11
7
|
@logErrors
|
|
12
8
|
execute() {
|
|
13
9
|
return copyFiles({ watch: this.args.watch });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { commandRegistry } from '../command-registry';
|
|
2
|
+
|
|
3
|
+
jest.mock('stylelint', () => ({ lint: jest.fn() }));
|
|
4
|
+
|
|
5
|
+
describe('[startup] commandRegistry', () => {
|
|
6
|
+
test.each(Object.entries(commandRegistry))(
|
|
7
|
+
'%s: load() resolves to a command class',
|
|
8
|
+
async (_, entry) => {
|
|
9
|
+
const CommandClass = await entry.load();
|
|
10
|
+
expect(typeof CommandClass).toBe('function');
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
import { defineEntry } from './define-entry';
|
|
3
|
+
|
|
4
|
+
export const entry = defineEntry({
|
|
5
|
+
description: 'Build project for production',
|
|
6
|
+
greedy: true,
|
|
7
|
+
options: {
|
|
8
|
+
cdnPath: { string: true, description: 'Base url for application assets' },
|
|
9
|
+
codeCoverage: { boolean: true, description: 'Instrument code for coverage analysis?' },
|
|
10
|
+
config: { string: true, hidden: true, description: 'Use specified configuration' },
|
|
11
|
+
ignore: { array: true, string: true, description: 'Packages to skip' },
|
|
12
|
+
scope: { array: true, string: true, description: 'Packages to build' },
|
|
13
|
+
stat: { boolean: true, description: 'Generate bundle report?' },
|
|
14
|
+
useTsc: { boolean: true, description: 'Use tsc to compile packages?' },
|
|
15
|
+
},
|
|
16
|
+
} satisfies CommandEntry);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
import { defineEntry } from './define-entry';
|
|
3
|
+
|
|
4
|
+
export const entry = defineEntry({
|
|
5
|
+
options: {
|
|
6
|
+
codeCoverage: { boolean: true, hidden: true },
|
|
7
|
+
config: { string: true, hidden: true },
|
|
8
|
+
exposedDependencies: { boolean: true, hidden: true },
|
|
9
|
+
stat: { boolean: true, hidden: true },
|
|
10
|
+
useWatchConfig: { boolean: true, hidden: true },
|
|
11
|
+
watch: { boolean: true, hidden: true },
|
|
12
|
+
},
|
|
13
|
+
} satisfies CommandEntry);
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { CommandName } from '../../../utils';
|
|
2
|
+
import { Command, CommandEntry, Newable } from '../types';
|
|
3
|
+
import { entry as build } from './build';
|
|
4
|
+
import { entry as bundlePackage } from './bundle-package';
|
|
5
|
+
import { entry as clean } from './clean';
|
|
6
|
+
import { entry as convertEslintConfig } from './convert-eslint-config';
|
|
7
|
+
import { entry as eslint } from './eslint';
|
|
8
|
+
import { entry as init } from './init';
|
|
9
|
+
import { entry as install } from './install';
|
|
10
|
+
import { entry as kendoUiLicense } from './kendo-ui-license';
|
|
11
|
+
import { entry as lint } from './lint';
|
|
12
|
+
import { entry as mfeCheck } from './mfe-check';
|
|
13
|
+
import { entry as mfeGenerateMetadata } from './mfe-generate-metadata';
|
|
14
|
+
import { entry as mfeList } from './mfe-list';
|
|
15
|
+
import { entry as mfePackageClean } from './mfe-package-clean';
|
|
16
|
+
import { entry as mfePackagePublish } from './mfe-package-publish';
|
|
17
|
+
import { entry as mfePackageRollback } from './mfe-package-rollback';
|
|
18
|
+
import { entry as mfePublish } from './mfe-publish';
|
|
19
|
+
import { entry as mfePurgeCache } from './mfe-purge-cache';
|
|
20
|
+
import { entry as preparePackage } from './prepare-package';
|
|
21
|
+
import { entry as review } from './review';
|
|
22
|
+
import { entry as start } from './start';
|
|
23
|
+
import { entry as stylelint } from './stylelint';
|
|
24
|
+
import { entry as stylesCheck } from './styles-check';
|
|
25
|
+
import { entry as task } from './task';
|
|
26
|
+
import { entry as test } from './test-command';
|
|
27
|
+
import { entry as uploadSourcemaps } from './upload-sourcemaps';
|
|
28
|
+
|
|
29
|
+
export interface CommandRegistryEntry extends CommandEntry {
|
|
30
|
+
load: () => Promise<Newable<Command>>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function toPascalCase(name: string): string {
|
|
34
|
+
return name
|
|
35
|
+
.split('-')
|
|
36
|
+
.map(part => part[0].toUpperCase() + part.slice(1))
|
|
37
|
+
.join('');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface MakeEntryOptions {
|
|
41
|
+
path?: string;
|
|
42
|
+
className?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function makeEntry<K extends CommandName, T extends CommandEntry>(
|
|
46
|
+
key: K,
|
|
47
|
+
entry: T,
|
|
48
|
+
options: MakeEntryOptions = {}
|
|
49
|
+
) {
|
|
50
|
+
const { path = key, className = toPascalCase(path) } = options;
|
|
51
|
+
return {
|
|
52
|
+
[key]: {
|
|
53
|
+
...entry,
|
|
54
|
+
load: () => import(`../${path}`).then(m => m[className]),
|
|
55
|
+
},
|
|
56
|
+
} as { [k in K]: T & CommandRegistryEntry };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
* Each makeEntry call returns a single-key object. Spreading them preserves the
|
|
61
|
+
* per-command type information, as opposed to widening each value to the union
|
|
62
|
+
* return type.
|
|
63
|
+
*/
|
|
64
|
+
export const commandRegistry = {
|
|
65
|
+
...makeEntry(CommandName.build, build),
|
|
66
|
+
...makeEntry(CommandName['bundle-package'], bundlePackage),
|
|
67
|
+
...makeEntry(CommandName.clean, clean),
|
|
68
|
+
...makeEntry(CommandName['convert-eslint-config'], convertEslintConfig),
|
|
69
|
+
...makeEntry(CommandName.eslint, eslint, { className: 'ESLintCommand' }),
|
|
70
|
+
...makeEntry(CommandName.init, init),
|
|
71
|
+
...makeEntry(CommandName.install, install),
|
|
72
|
+
...makeEntry(CommandName['kendo-ui-license'], kendoUiLicense, { className: 'KendoUILicense' }),
|
|
73
|
+
...makeEntry(CommandName.lint, lint),
|
|
74
|
+
...makeEntry(CommandName['mfe-check'], mfeCheck),
|
|
75
|
+
...makeEntry(CommandName['mfe-generate-metadata'], mfeGenerateMetadata),
|
|
76
|
+
...makeEntry(CommandName['mfe-list'], mfeList, { className: 'MFEList' }),
|
|
77
|
+
...makeEntry(CommandName['mfe-package-clean'], mfePackageClean, {
|
|
78
|
+
className: 'MFEPackageClean',
|
|
79
|
+
}),
|
|
80
|
+
...makeEntry(CommandName['mfe-package-publish'], mfePackagePublish, {
|
|
81
|
+
className: 'MFEPackagePublish',
|
|
82
|
+
}),
|
|
83
|
+
...makeEntry(CommandName['mfe-package-rollback'], mfePackageRollback, {
|
|
84
|
+
className: 'MFEPackageRollback',
|
|
85
|
+
}),
|
|
86
|
+
...makeEntry(CommandName['mfe-publish'], mfePublish, { className: 'MFEPublish' }),
|
|
87
|
+
...makeEntry(CommandName['mfe-purge-cache'], mfePurgeCache, {
|
|
88
|
+
className: 'MFEPurgeCache',
|
|
89
|
+
}),
|
|
90
|
+
...makeEntry(CommandName['prepare-package'], preparePackage),
|
|
91
|
+
...makeEntry(CommandName.review, review),
|
|
92
|
+
...makeEntry(CommandName.start, start),
|
|
93
|
+
...makeEntry(CommandName.stylelint, stylelint),
|
|
94
|
+
...makeEntry(CommandName['styles-check'], stylesCheck),
|
|
95
|
+
...makeEntry(CommandName.task, task, { path: 'run-task' }),
|
|
96
|
+
...makeEntry(CommandName.test, test, { className: 'Tests' }),
|
|
97
|
+
...makeEntry(CommandName['upload-sourcemaps'], uploadSourcemaps),
|
|
98
|
+
} satisfies Record<CommandName, CommandRegistryEntry>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Use this instead of `satisfies CommandEntry` to get both excess property checking
|
|
5
|
+
* and narrow type inference.
|
|
6
|
+
*/
|
|
7
|
+
export function defineEntry<T extends CommandEntry>(
|
|
8
|
+
entry: T & Record<Exclude<keyof T, keyof CommandEntry>, never>
|
|
9
|
+
): T {
|
|
10
|
+
return entry;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
import { defineEntry } from './define-entry';
|
|
3
|
+
|
|
4
|
+
export const entry = defineEntry({
|
|
5
|
+
options: {
|
|
6
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
7
|
+
_: { description: '[paths...]', array: true, string: true },
|
|
8
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
9
|
+
fix: { boolean: true, hidden: true },
|
|
10
|
+
paths: { array: true, string: true, hidden: true },
|
|
11
|
+
},
|
|
12
|
+
} satisfies CommandEntry);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
import { defineEntry } from './define-entry';
|
|
3
|
+
|
|
4
|
+
export const entry = defineEntry({
|
|
5
|
+
description: 'Create example project',
|
|
6
|
+
allowRunFromGlobal: true,
|
|
7
|
+
options: {
|
|
8
|
+
output: { string: true, description: 'Output path' },
|
|
9
|
+
},
|
|
10
|
+
} satisfies CommandEntry);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
import { defineEntry } from './define-entry';
|
|
3
|
+
|
|
4
|
+
export const entry = defineEntry({
|
|
5
|
+
allowRunFromGlobal: true,
|
|
6
|
+
description: 'Install project dependencies',
|
|
7
|
+
options: {
|
|
8
|
+
fix: { boolean: true, description: 'Update and dedupe package-lock.json', hidden: true },
|
|
9
|
+
quiet: { boolean: true, description: 'Suppress output', hidden: true },
|
|
10
|
+
token: { boolean: true, description: 'Configure npm token' },
|
|
11
|
+
},
|
|
12
|
+
} satisfies CommandEntry);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
import { defineEntry } from './define-entry';
|
|
3
|
+
|
|
4
|
+
export const entry = defineEntry({
|
|
5
|
+
description: 'Run eslint and stylelint',
|
|
6
|
+
greedy: true,
|
|
7
|
+
options: {
|
|
8
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
9
|
+
_: { description: '[paths...]', array: true, string: true },
|
|
10
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
11
|
+
fix: { boolean: true, description: 'Apply fixes for issues?' },
|
|
12
|
+
scope: { array: true, string: true, hidden: true, description: 'Packages to lint' },
|
|
13
|
+
ignore: { array: true, string: true, hidden: true, description: 'Packages to skip' },
|
|
14
|
+
parallel: { boolean: true, hidden: true, description: 'Lint each package separately' },
|
|
15
|
+
paths: { array: true, string: true, hidden: true },
|
|
16
|
+
},
|
|
17
|
+
} satisfies CommandEntry);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
import { defineEntry } from './define-entry';
|
|
3
|
+
|
|
4
|
+
export const entry = defineEntry({
|
|
5
|
+
allowRunFromGlobal: true,
|
|
6
|
+
description: 'Check MFE/host dependency compatibility',
|
|
7
|
+
options: {
|
|
8
|
+
metadata: {
|
|
9
|
+
description:
|
|
10
|
+
"Path to MFE's metadata.json file, can be generated with the 'mfe-generate-metadata' command",
|
|
11
|
+
string: true,
|
|
12
|
+
demandOption: true,
|
|
13
|
+
requiresArg: true,
|
|
14
|
+
},
|
|
15
|
+
hostPackageJson: {
|
|
16
|
+
description: 'Path(s) to host package.json files',
|
|
17
|
+
array: true,
|
|
18
|
+
string: true,
|
|
19
|
+
demandOption: true,
|
|
20
|
+
requiresArg: true,
|
|
21
|
+
},
|
|
22
|
+
json: {
|
|
23
|
+
description: 'Output results as JSON',
|
|
24
|
+
boolean: true,
|
|
25
|
+
default: false,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
} satisfies CommandEntry);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
import { defineEntry } from './define-entry';
|
|
3
|
+
|
|
4
|
+
export const entry = defineEntry({
|
|
5
|
+
allowRunFromGlobal: true,
|
|
6
|
+
description: 'Generate MFE metadata for compatibility checking',
|
|
7
|
+
options: {
|
|
8
|
+
output: {
|
|
9
|
+
description: 'Output file path (outputs to stdout if not specified)',
|
|
10
|
+
string: true,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
} satisfies CommandEntry);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
import { defineEntry } from './define-entry';
|
|
3
|
+
|
|
4
|
+
export const entry = defineEntry({
|
|
5
|
+
allowRunFromGlobal: true,
|
|
6
|
+
description: 'List published MFE packages',
|
|
7
|
+
options: {
|
|
8
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
9
|
+
_: { description: '[packageNames...]', array: true, string: true },
|
|
10
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
11
|
+
all: { boolean: true, description: 'List all published versions ' },
|
|
12
|
+
ignore: {
|
|
13
|
+
array: true,
|
|
14
|
+
string: true,
|
|
15
|
+
description: 'Exclude MFEs with names matching specified glob pattern ',
|
|
16
|
+
},
|
|
17
|
+
limit: {
|
|
18
|
+
number: true,
|
|
19
|
+
description: 'List only the specified number of published versions',
|
|
20
|
+
},
|
|
21
|
+
packageNames: { array: true, string: true, hidden: true },
|
|
22
|
+
registry: { string: true, hidden: true },
|
|
23
|
+
tagged: { boolean: true, description: 'List only tagged versions' },
|
|
24
|
+
},
|
|
25
|
+
} satisfies CommandEntry);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CommandEntry } from '../types';
|
|
2
|
+
import { defineEntry } from './define-entry';
|
|
3
|
+
|
|
4
|
+
export const entry = defineEntry({
|
|
5
|
+
options: {
|
|
6
|
+
all: {
|
|
7
|
+
boolean: true,
|
|
8
|
+
description: 'Unpublish old versions from all branches',
|
|
9
|
+
defaultDescription: 'false',
|
|
10
|
+
},
|
|
11
|
+
branch: {
|
|
12
|
+
string: true,
|
|
13
|
+
description: 'Branch name of versions to unpublish',
|
|
14
|
+
defaultDescription: 'current git branch',
|
|
15
|
+
},
|
|
16
|
+
count: {
|
|
17
|
+
number: true,
|
|
18
|
+
description: 'Keep the specified number of old versions',
|
|
19
|
+
defaultDescription: '5',
|
|
20
|
+
},
|
|
21
|
+
dry: {
|
|
22
|
+
boolean: true,
|
|
23
|
+
description: 'Take no action and only log what would be unpublished',
|
|
24
|
+
},
|
|
25
|
+
registry: { string: true, hidden: true, description: 'Registry url' },
|
|
26
|
+
},
|
|
27
|
+
} satisfies CommandEntry);
|