@servicetitan/startup 30.3.0 → 31.0.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/bin/index.js +5 -6
- package/dist/cli/commands/build.d.ts +10 -3
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/build.js +124 -48
- package/dist/cli/commands/build.js.map +1 -1
- package/dist/cli/commands/bundle-package.d.ts +0 -2
- package/dist/cli/commands/bundle-package.d.ts.map +1 -1
- package/dist/cli/commands/bundle-package.js +54 -36
- package/dist/cli/commands/bundle-package.js.map +1 -1
- package/dist/cli/commands/clean.d.ts +6 -0
- package/dist/cli/commands/clean.d.ts.map +1 -0
- package/dist/cli/commands/clean.js +55 -0
- package/dist/cli/commands/clean.js.map +1 -0
- package/dist/cli/commands/convert-eslint-config.js +163 -107
- package/dist/cli/commands/convert-eslint-config.js.map +1 -1
- package/dist/cli/commands/eslint.d.ts.map +1 -1
- package/dist/cli/commands/eslint.js +43 -24
- package/dist/cli/commands/eslint.js.map +1 -1
- package/dist/cli/commands/get-command.d.ts.map +1 -1
- package/dist/cli/commands/get-command.js +50 -53
- package/dist/cli/commands/get-command.js.map +1 -1
- package/dist/cli/commands/get-user-commands.js +21 -11
- package/dist/cli/commands/get-user-commands.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +31 -30
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init.js +74 -48
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/install.d.ts +8 -1
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +61 -23
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/kendo-ui-license.js +48 -31
- package/dist/cli/commands/kendo-ui-license.js.map +1 -1
- package/dist/cli/commands/lint.d.ts +3 -1
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/commands/lint.js +112 -73
- package/dist/cli/commands/lint.js.map +1 -1
- package/dist/cli/commands/mfe-package-clean.js +80 -57
- package/dist/cli/commands/mfe-package-clean.js.map +1 -1
- package/dist/cli/commands/mfe-package-publish.d.ts +1 -0
- package/dist/cli/commands/mfe-package-publish.d.ts.map +1 -1
- package/dist/cli/commands/mfe-package-publish.js +124 -70
- package/dist/cli/commands/mfe-package-publish.js.map +1 -1
- package/dist/cli/commands/mfe-publish.d.ts.map +1 -1
- package/dist/cli/commands/mfe-publish.js +83 -48
- package/dist/cli/commands/mfe-publish.js.map +1 -1
- package/dist/cli/commands/prepare-package.d.ts +3 -2
- package/dist/cli/commands/prepare-package.d.ts.map +1 -1
- package/dist/cli/commands/prepare-package.js +44 -32
- package/dist/cli/commands/prepare-package.js.map +1 -1
- package/dist/cli/commands/review/__mocks__/expect-calls.d.ts +23 -0
- package/dist/cli/commands/review/__mocks__/expect-calls.d.ts.map +1 -0
- package/dist/cli/commands/review/__mocks__/index.d.ts +2 -0
- package/dist/cli/commands/review/__mocks__/index.d.ts.map +1 -0
- package/dist/cli/commands/review/index.d.ts +3 -0
- package/dist/cli/commands/review/index.d.ts.map +1 -0
- package/dist/cli/commands/review/index.js +20 -0
- package/dist/cli/commands/review/index.js.map +1 -0
- package/dist/cli/commands/review/review.d.ts +28 -0
- package/dist/cli/commands/review/review.d.ts.map +1 -0
- package/dist/cli/commands/review/review.js +239 -0
- package/dist/cli/commands/review/review.js.map +1 -0
- package/dist/cli/commands/review/rules/__mocks__/index.d.ts +4 -0
- package/dist/cli/commands/review/rules/__mocks__/index.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/__mocks__/mock-config.d.ts +7 -0
- package/dist/cli/commands/review/rules/__mocks__/mock-config.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/__mocks__/mock-packages.d.ts +21 -0
- package/dist/cli/commands/review/rules/__mocks__/mock-packages.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/__mocks__/mock-project.d.ts +3 -0
- package/dist/cli/commands/review/rules/__mocks__/mock-project.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/index.d.ts +3 -0
- package/dist/cli/commands/review/rules/index.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/index.js +30 -0
- package/dist/cli/commands/review/rules/index.js.map +1 -0
- package/dist/cli/commands/review/rules/no-typescript-entry-point.d.ts +14 -0
- package/dist/cli/commands/review/rules/no-typescript-entry-point.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/no-typescript-entry-point.js +89 -0
- package/dist/cli/commands/review/rules/no-typescript-entry-point.js.map +1 -0
- package/dist/cli/commands/review/rules/require-explicit-side-effects.d.ts +7 -0
- package/dist/cli/commands/review/rules/require-explicit-side-effects.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/require-explicit-side-effects.js +37 -0
- package/dist/cli/commands/review/rules/require-explicit-side-effects.js.map +1 -0
- package/dist/cli/commands/review/rules/require-npmrc.d.ts +7 -0
- package/dist/cli/commands/review/rules/require-npmrc.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/require-npmrc.js +38 -0
- package/dist/cli/commands/review/rules/require-npmrc.js.map +1 -0
- package/dist/cli/commands/review/rules/require-one-anvil-uikit-contrib-version.d.ts +5 -0
- package/dist/cli/commands/review/rules/require-one-anvil-uikit-contrib-version.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/require-one-anvil-uikit-contrib-version.js +33 -0
- package/dist/cli/commands/review/rules/require-one-anvil-uikit-contrib-version.js.map +1 -0
- package/dist/cli/commands/review/rules/require-one-collection-version.d.ts +45 -0
- package/dist/cli/commands/review/rules/require-one-collection-version.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/require-one-collection-version.js +140 -0
- package/dist/cli/commands/review/rules/require-one-collection-version.js.map +1 -0
- package/dist/cli/commands/review/rules/require-one-package-version.d.ts +20 -0
- package/dist/cli/commands/review/rules/require-one-package-version.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/require-one-package-version.js +70 -0
- package/dist/cli/commands/review/rules/require-one-package-version.js.map +1 -0
- package/dist/cli/commands/review/rules/require-one-uikit-version.d.ts +5 -0
- package/dist/cli/commands/review/rules/require-one-uikit-version.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/require-one-uikit-version.js +40 -0
- package/dist/cli/commands/review/rules/require-one-uikit-version.js.map +1 -0
- package/dist/cli/commands/review/rules/require-project-version-in-root-node-modules.d.ts +19 -0
- package/dist/cli/commands/review/rules/require-project-version-in-root-node-modules.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/require-project-version-in-root-node-modules.js +103 -0
- package/dist/cli/commands/review/rules/require-project-version-in-root-node-modules.js.map +1 -0
- package/dist/cli/commands/review/rules/require-servicetitan-scope.d.ts +7 -0
- package/dist/cli/commands/review/rules/require-servicetitan-scope.d.ts.map +1 -0
- package/dist/cli/commands/review/rules/require-servicetitan-scope.js +37 -0
- package/dist/cli/commands/review/rules/require-servicetitan-scope.js.map +1 -0
- package/dist/cli/commands/review/types.d.ts +72 -0
- package/dist/cli/commands/review/types.d.ts.map +1 -0
- package/dist/cli/commands/review/types.js +36 -0
- package/dist/cli/commands/review/types.js.map +1 -0
- package/dist/cli/commands/review/utils/apply-filter.d.ts +3 -0
- package/dist/cli/commands/review/utils/apply-filter.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/apply-filter.js +20 -0
- package/dist/cli/commands/review/utils/apply-filter.js.map +1 -0
- package/dist/cli/commands/review/utils/collate-dependencies.d.ts +29 -0
- package/dist/cli/commands/review/utils/collate-dependencies.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/collate-dependencies.js +31 -0
- package/dist/cli/commands/review/utils/collate-dependencies.js.map +1 -0
- package/dist/cli/commands/review/utils/compare-version.d.ts +9 -0
- package/dist/cli/commands/review/utils/compare-version.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/compare-version.js +137 -0
- package/dist/cli/commands/review/utils/compare-version.js.map +1 -0
- package/dist/cli/commands/review/utils/format-depends-on.d.ts +2 -0
- package/dist/cli/commands/review/utils/format-depends-on.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/format-depends-on.js +21 -0
- package/dist/cli/commands/review/utils/format-depends-on.js.map +1 -0
- package/dist/cli/commands/review/utils/format-location.d.ts +2 -0
- package/dist/cli/commands/review/utils/format-location.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/format-location.js +25 -0
- package/dist/cli/commands/review/utils/format-location.js.map +1 -0
- package/dist/cli/commands/review/utils/get-key.d.ts +3 -0
- package/dist/cli/commands/review/utils/get-key.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/get-key.js +20 -0
- package/dist/cli/commands/review/utils/get-key.js.map +1 -0
- package/dist/cli/commands/review/utils/get-max-version.d.ts +2 -0
- package/dist/cli/commands/review/utils/get-max-version.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/get-max-version.js +16 -0
- package/dist/cli/commands/review/utils/get-max-version.js.map +1 -0
- package/dist/cli/commands/review/utils/indent.d.ts +2 -0
- package/dist/cli/commands/review/utils/indent.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/indent.js +17 -0
- package/dist/cli/commands/review/utils/indent.js.map +1 -0
- package/dist/cli/commands/review/utils/index.d.ts +14 -0
- package/dist/cli/commands/review/utils/index.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/index.js +32 -0
- package/dist/cli/commands/review/utils/index.js.map +1 -0
- package/dist/cli/commands/review/utils/is-library.d.ts +3 -0
- package/dist/cli/commands/review/utils/is-library.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/is-library.js +15 -0
- package/dist/cli/commands/review/utils/is-library.js.map +1 -0
- package/dist/cli/commands/review/utils/name-to-location.d.ts +3 -0
- package/dist/cli/commands/review/utils/name-to-location.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/name-to-location.js +18 -0
- package/dist/cli/commands/review/utils/name-to-location.js.map +1 -0
- package/dist/cli/commands/review/utils/pluralize.d.ts +2 -0
- package/dist/cli/commands/review/utils/pluralize.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/pluralize.js +15 -0
- package/dist/cli/commands/review/utils/pluralize.js.map +1 -0
- package/dist/cli/commands/review/utils/set-version.d.ts +10 -0
- package/dist/cli/commands/review/utils/set-version.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/set-version.js +33 -0
- package/dist/cli/commands/review/utils/set-version.js.map +1 -0
- package/dist/cli/commands/review/utils/summarize.d.ts +11 -0
- package/dist/cli/commands/review/utils/summarize.d.ts.map +1 -0
- package/dist/cli/commands/review/utils/summarize.js +30 -0
- package/dist/cli/commands/review/utils/summarize.js.map +1 -0
- package/dist/cli/commands/run-task.js +50 -31
- package/dist/cli/commands/run-task.js.map +1 -1
- package/dist/cli/commands/run-task.test.d.ts +2 -0
- package/dist/cli/commands/run-task.test.d.ts.map +1 -0
- package/dist/cli/commands/start.d.ts +11 -3
- package/dist/cli/commands/start.d.ts.map +1 -1
- package/dist/cli/commands/start.js +166 -69
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/commands/styles-check.js +73 -59
- package/dist/cli/commands/styles-check.js.map +1 -1
- package/dist/cli/commands/tests.d.ts +1 -0
- package/dist/cli/commands/tests.d.ts.map +1 -1
- package/dist/cli/commands/tests.js +45 -28
- package/dist/cli/commands/tests.js.map +1 -1
- package/dist/cli/commands/types.d.ts +1 -0
- package/dist/cli/commands/types.d.ts.map +1 -1
- package/dist/cli/commands/types.js +4 -1
- package/dist/cli/commands/types.js.map +1 -1
- package/dist/cli/index.js +43 -34
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/tasks/cli-task.d.ts +0 -1
- package/dist/cli/tasks/cli-task.d.ts.map +1 -1
- package/dist/cli/tasks/cli-task.js +52 -41
- package/dist/cli/tasks/cli-task.js.map +1 -1
- package/dist/cli/tasks/swc-compile-package.d.ts +0 -1
- package/dist/cli/tasks/swc-compile-package.d.ts.map +1 -1
- package/dist/cli/tasks/swc-compile-package.js +75 -34
- package/dist/cli/tasks/swc-compile-package.js.map +1 -1
- package/dist/cli/tasks/task.d.ts +0 -2
- package/dist/cli/tasks/task.d.ts.map +1 -1
- package/dist/cli/tasks/task.js +60 -65
- package/dist/cli/tasks/task.js.map +1 -1
- package/dist/cli/tasks/tsc-compile-package.d.ts +0 -1
- package/dist/cli/tasks/tsc-compile-package.d.ts.map +1 -1
- package/dist/cli/tasks/tsc-compile-package.js +26 -22
- package/dist/cli/tasks/tsc-compile-package.js.map +1 -1
- package/dist/cli/tasks/tsc-compile.d.ts +0 -2
- package/dist/cli/tasks/tsc-compile.d.ts.map +1 -1
- package/dist/cli/tasks/tsc-compile.js +51 -31
- package/dist/cli/tasks/tsc-compile.js.map +1 -1
- package/dist/cli/utils/bundle.d.ts +0 -2
- package/dist/cli/utils/bundle.d.ts.map +1 -1
- package/dist/cli/utils/bundle.js +118 -70
- package/dist/cli/utils/bundle.js.map +1 -1
- package/dist/cli/utils/check-args.d.ts +6 -0
- package/dist/cli/utils/check-args.d.ts.map +1 -0
- package/dist/cli/utils/check-args.js +20 -0
- package/dist/cli/utils/check-args.js.map +1 -0
- package/dist/cli/utils/cli-git.js +23 -9
- package/dist/cli/utils/cli-git.js.map +1 -1
- package/dist/cli/utils/cli-npm.js +62 -23
- package/dist/cli/utils/cli-npm.js.map +1 -1
- package/dist/cli/utils/cli-os.js +34 -33
- package/dist/cli/utils/cli-os.js.map +1 -1
- package/dist/cli/utils/compile-less.d.ts.map +1 -1
- package/dist/cli/utils/compile-less.js +27 -11
- package/dist/cli/utils/compile-less.js.map +1 -1
- package/dist/cli/utils/compile-sass.d.ts.map +1 -1
- package/dist/cli/utils/compile-sass.js +25 -9
- package/dist/cli/utils/compile-sass.js.map +1 -1
- package/dist/cli/utils/compile.d.ts +6 -0
- package/dist/cli/utils/compile.d.ts.map +1 -0
- package/dist/cli/utils/compile.js +33 -0
- package/dist/cli/utils/compile.js.map +1 -0
- package/dist/cli/utils/copy-files.d.ts +8 -0
- package/dist/cli/utils/copy-files.d.ts.map +1 -0
- package/dist/cli/utils/copy-files.js +112 -0
- package/dist/cli/utils/copy-files.js.map +1 -0
- package/dist/cli/utils/eslint.d.ts.map +1 -1
- package/dist/cli/utils/eslint.js +22 -12
- package/dist/cli/utils/eslint.js.map +1 -1
- package/dist/cli/utils/get-module-type.d.ts.map +1 -1
- package/dist/cli/utils/get-module-type.js +21 -13
- package/dist/cli/utils/get-module-type.js.map +1 -1
- package/dist/cli/utils/index.d.ts +7 -5
- package/dist/cli/utils/index.d.ts.map +1 -1
- package/dist/cli/utils/index.js +33 -30
- package/dist/cli/utils/index.js.map +1 -1
- package/dist/cli/utils/is-module-installed.js +11 -4
- package/dist/cli/utils/is-module-installed.js.map +1 -1
- package/dist/cli/utils/lerna-exec.d.ts +4 -3
- package/dist/cli/utils/lerna-exec.d.ts.map +1 -1
- package/dist/cli/utils/lerna-exec.js +40 -19
- package/dist/cli/utils/lerna-exec.js.map +1 -1
- package/dist/cli/utils/maybe-create-git-folder.js +20 -18
- package/dist/cli/utils/maybe-create-git-folder.js.map +1 -1
- package/dist/cli/utils/pipe-stdout.d.ts +3 -0
- package/dist/cli/utils/pipe-stdout.d.ts.map +1 -0
- package/dist/cli/utils/pipe-stdout.js +19 -0
- package/dist/cli/utils/pipe-stdout.js.map +1 -0
- package/dist/cli/utils/process-tree.d.ts +14 -0
- package/dist/cli/utils/process-tree.d.ts.map +1 -0
- package/dist/cli/utils/process-tree.js +78 -0
- package/dist/cli/utils/process-tree.js.map +1 -0
- package/dist/cli/utils/publish.js +12 -6
- package/dist/cli/utils/publish.js.map +1 -1
- package/dist/cli/utils/set-node-options.d.ts +2 -1
- package/dist/cli/utils/set-node-options.d.ts.map +1 -1
- package/dist/cli/utils/set-node-options.js +39 -30
- package/dist/cli/utils/set-node-options.js.map +1 -1
- package/dist/cli/utils/style-extensions.d.ts +2 -0
- package/dist/cli/utils/style-extensions.d.ts.map +1 -0
- package/dist/cli/utils/style-extensions.js +17 -0
- package/dist/cli/utils/style-extensions.js.map +1 -0
- package/dist/cli/utils/tcm.d.ts +5 -2
- package/dist/cli/utils/tcm.d.ts.map +1 -1
- package/dist/cli/utils/tcm.js +51 -46
- package/dist/cli/utils/tcm.js.map +1 -1
- package/dist/cli/utils/type-check.d.ts +7 -0
- package/dist/cli/utils/type-check.d.ts.map +1 -0
- package/dist/cli/utils/type-check.js +33 -0
- package/dist/cli/utils/type-check.js.map +1 -0
- package/dist/cli/utils/watch-stdout.d.ts +3 -0
- package/dist/cli/utils/watch-stdout.d.ts.map +1 -0
- package/dist/cli/utils/watch-stdout.js +26 -0
- package/dist/cli/utils/watch-stdout.js.map +1 -0
- package/dist/index.js +20 -18
- package/dist/index.js.map +1 -1
- package/dist/jest/index.js +12 -4
- package/dist/jest/index.js.map +1 -1
- package/dist/utils/debug.js +23 -11
- package/dist/utils/debug.js.map +1 -1
- package/dist/utils/find-packages.d.ts.map +1 -1
- package/dist/utils/find-packages.js +46 -34
- package/dist/utils/find-packages.js.map +1 -1
- package/dist/utils/format-duration.d.ts +2 -0
- package/dist/utils/format-duration.d.ts.map +1 -0
- package/dist/utils/format-duration.js +24 -0
- package/dist/utils/format-duration.js.map +1 -0
- package/dist/utils/get-branch-configs.js +24 -8
- package/dist/utils/get-branch-configs.js.map +1 -1
- package/dist/utils/get-configuration.d.ts +10 -2
- package/dist/utils/get-configuration.d.ts.map +1 -1
- package/dist/utils/get-configuration.js +120 -52
- package/dist/utils/get-configuration.js.map +1 -1
- package/dist/utils/get-destination-folders.js +25 -18
- package/dist/utils/get-destination-folders.js.map +1 -1
- package/dist/utils/get-folders.d.ts +2 -2
- package/dist/utils/get-folders.d.ts.map +1 -1
- package/dist/utils/get-folders.js +20 -13
- package/dist/utils/get-folders.js.map +1 -1
- package/dist/utils/get-jest-config.js +65 -38
- package/dist/utils/get-jest-config.js.map +1 -1
- package/dist/utils/get-package-data.js +26 -12
- package/dist/utils/get-package-data.js.map +1 -1
- package/dist/utils/get-package-name.js +18 -8
- package/dist/utils/get-package-name.js.map +1 -1
- package/dist/utils/get-packages.d.ts +1 -1
- package/dist/utils/get-packages.d.ts.map +1 -1
- package/dist/utils/get-packages.js +72 -57
- package/dist/utils/get-packages.js.map +1 -1
- package/dist/utils/get-startup-version.js +18 -8
- package/dist/utils/get-startup-version.js.map +1 -1
- package/dist/utils/get-tsconfig.js +19 -12
- package/dist/utils/get-tsconfig.js.map +1 -1
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +34 -29
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/load-shared-dependencies.js +23 -17
- package/dist/utils/load-shared-dependencies.js.map +1 -1
- package/dist/utils/log-errors.d.ts +2 -0
- package/dist/utils/log-errors.d.ts.map +1 -0
- package/dist/utils/log-errors.js +36 -0
- package/dist/utils/log-errors.js.map +1 -0
- package/dist/utils/log.d.ts +0 -1
- package/dist/utils/log.d.ts.map +1 -1
- package/dist/utils/log.js +38 -43
- package/dist/utils/log.js.map +1 -1
- package/dist/utils/pick.js +11 -3
- package/dist/utils/pick.js.map +1 -1
- package/dist/utils/read-json.js +27 -11
- package/dist/utils/read-json.js.map +1 -1
- package/dist/utils/to-array.js +13 -3
- package/dist/utils/to-array.js.map +1 -1
- package/dist/webpack/__mocks__/file-rules.d.ts.map +1 -1
- package/dist/webpack/configs/amd-config.js +13 -3
- package/dist/webpack/configs/amd-config.js.map +1 -1
- package/dist/webpack/configs/cache-config.js +20 -9
- package/dist/webpack/configs/cache-config.js.map +1 -1
- package/dist/webpack/configs/dev-server-config.d.ts +1 -1
- package/dist/webpack/configs/dev-server-config.d.ts.map +1 -1
- package/dist/webpack/configs/dev-server-config.js +47 -45
- package/dist/webpack/configs/dev-server-config.js.map +1 -1
- package/dist/webpack/configs/devtool-config.js +16 -7
- package/dist/webpack/configs/devtool-config.js.map +1 -1
- package/dist/webpack/configs/entry.config.d.ts.map +1 -1
- package/dist/webpack/configs/entry.config.js +28 -7
- package/dist/webpack/configs/entry.config.js.map +1 -1
- package/dist/webpack/configs/externals-config.js +17 -7
- package/dist/webpack/configs/externals-config.js.map +1 -1
- package/dist/webpack/configs/index.d.ts +2 -1
- package/dist/webpack/configs/index.d.ts.map +1 -1
- package/dist/webpack/configs/index.js +30 -28
- package/dist/webpack/configs/index.js.map +1 -1
- package/dist/webpack/configs/loaders/css-loader.js +22 -14
- package/dist/webpack/configs/loaders/css-loader.js.map +1 -1
- package/dist/webpack/configs/loaders/index.d.ts +1 -1
- package/dist/webpack/configs/loaders/index.d.ts.map +1 -1
- package/dist/webpack/configs/loaders/index.js +20 -19
- package/dist/webpack/configs/loaders/index.js.map +1 -1
- package/dist/webpack/configs/loaders/less-loader.js +18 -3
- package/dist/webpack/configs/loaders/less-loader.js.map +1 -1
- package/dist/webpack/configs/loaders/style-loader.js +23 -8
- package/dist/webpack/configs/loaders/style-loader.js.map +1 -1
- package/dist/webpack/configs/loaders/types.js +4 -1
- package/dist/webpack/configs/loaders/types.js.map +1 -1
- package/dist/webpack/configs/module-config.js +17 -5
- package/dist/webpack/configs/module-config.js.map +1 -1
- package/dist/webpack/configs/optimization-config.js +54 -28
- package/dist/webpack/configs/optimization-config.js.map +1 -1
- package/dist/webpack/configs/output-config.js +26 -12
- package/dist/webpack/configs/output-config.js.map +1 -1
- package/dist/webpack/configs/plugins/assets-manifest-plugin.js +23 -14
- package/dist/webpack/configs/plugins/assets-manifest-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/bundle-analyser-plugin.js +19 -9
- package/dist/webpack/configs/plugins/bundle-analyser-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/define-exposed-dependencies-plugin.js +19 -11
- package/dist/webpack/configs/plugins/define-exposed-dependencies-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/define-exposed-instance-dependencies-plugin.js +17 -7
- package/dist/webpack/configs/plugins/define-exposed-instance-dependencies-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/define-web-component-name-plugin.js +13 -5
- package/dist/webpack/configs/plugins/define-web-component-name-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/filter-warnings-plugin.js +11 -3
- package/dist/webpack/configs/plugins/filter-warnings-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/html-plugin.js +28 -20
- package/dist/webpack/configs/plugins/html-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/ignore-plugin/check-resource.js +24 -13
- package/dist/webpack/configs/plugins/ignore-plugin/check-resource.js.map +1 -1
- package/dist/webpack/configs/plugins/ignore-plugin/get-package-json.js +26 -16
- package/dist/webpack/configs/plugins/ignore-plugin/get-package-json.js.map +1 -1
- package/dist/webpack/configs/plugins/ignore-plugin/ignore-plugin.js +15 -6
- package/dist/webpack/configs/plugins/ignore-plugin/ignore-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/ignore-plugin/index.js +18 -16
- package/dist/webpack/configs/plugins/ignore-plugin/index.js.map +1 -1
- package/dist/webpack/configs/plugins/ignore-plugin/is-optional-peer-dependency.js +22 -12
- package/dist/webpack/configs/plugins/ignore-plugin/is-optional-peer-dependency.js.map +1 -1
- package/dist/webpack/configs/plugins/ignore-plugin/is-optional-react-dom-peer-dependency.js +11 -4
- package/dist/webpack/configs/plugins/ignore-plugin/is-optional-react-dom-peer-dependency.js.map +1 -1
- package/dist/webpack/configs/plugins/index.d.ts +0 -2
- package/dist/webpack/configs/plugins/index.d.ts.map +1 -1
- package/dist/webpack/configs/plugins/index.js +29 -29
- package/dist/webpack/configs/plugins/index.js.map +1 -1
- package/dist/webpack/configs/plugins/mini-css-extract-plugin.js +23 -12
- package/dist/webpack/configs/plugins/mini-css-extract-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/moment-locales-plugin.js +18 -8
- package/dist/webpack/configs/plugins/moment-locales-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/virtual-modules-plugin.js +32 -22
- package/dist/webpack/configs/plugins/virtual-modules-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins/watch-run-plugin.js +23 -15
- package/dist/webpack/configs/plugins/watch-run-plugin.js.map +1 -1
- package/dist/webpack/configs/plugins-config.d.ts.map +1 -1
- package/dist/webpack/configs/plugins-config.js +27 -21
- package/dist/webpack/configs/plugins-config.js.map +1 -1
- package/dist/webpack/configs/resolve-config.js +16 -4
- package/dist/webpack/configs/resolve-config.js.map +1 -1
- package/dist/webpack/configs/rules/css-rules.js +43 -18
- package/dist/webpack/configs/rules/css-rules.js.map +1 -1
- package/dist/webpack/configs/rules/font-rules.js +13 -5
- package/dist/webpack/configs/rules/font-rules.js.map +1 -1
- package/dist/webpack/configs/rules/image-rules.js +13 -5
- package/dist/webpack/configs/rules/image-rules.js.map +1 -1
- package/dist/webpack/configs/rules/index.d.ts +0 -1
- package/dist/webpack/configs/rules/index.d.ts.map +1 -1
- package/dist/webpack/configs/rules/index.js +24 -23
- package/dist/webpack/configs/rules/index.js.map +1 -1
- package/dist/webpack/configs/rules/js-rules.d.ts +1 -1
- package/dist/webpack/configs/rules/js-rules.d.ts.map +1 -1
- package/dist/webpack/configs/rules/js-rules.js +47 -7
- package/dist/webpack/configs/rules/js-rules.js.map +1 -1
- package/dist/webpack/configs/rules/less-rules.js +25 -9
- package/dist/webpack/configs/rules/less-rules.js.map +1 -1
- package/dist/webpack/configs/rules/scss-rules.js +25 -9
- package/dist/webpack/configs/rules/scss-rules.js.map +1 -1
- package/dist/webpack/configs/rules/svg-rules.js +40 -20
- package/dist/webpack/configs/rules/svg-rules.js.map +1 -1
- package/dist/webpack/configs/rules-config.d.ts.map +1 -1
- package/dist/webpack/configs/rules-config.js +34 -19
- package/dist/webpack/configs/rules-config.js.map +1 -1
- package/dist/webpack/configs/stats-config.js +14 -4
- package/dist/webpack/configs/stats-config.js.map +1 -1
- package/dist/webpack/configs/types.d.ts +1 -3
- package/dist/webpack/configs/types.d.ts.map +1 -1
- package/dist/webpack/configs/types.js +4 -1
- package/dist/webpack/configs/types.js.map +1 -1
- package/dist/webpack/configs/utils/generate-metadata.js +40 -22
- package/dist/webpack/configs/utils/generate-metadata.js.map +1 -1
- package/dist/webpack/configs/utils/get-launchdarkly-sdk-version.js +20 -11
- package/dist/webpack/configs/utils/get-launchdarkly-sdk-version.js.map +1 -1
- package/dist/webpack/configs/utils/get-web-components-version.js +18 -8
- package/dist/webpack/configs/utils/get-web-components-version.js.map +1 -1
- package/dist/webpack/configs/utils/index.js +18 -16
- package/dist/webpack/configs/utils/index.js.map +1 -1
- package/dist/webpack/configs/watch-options-config.d.ts +6 -0
- package/dist/webpack/configs/watch-options-config.d.ts.map +1 -0
- package/dist/webpack/configs/watch-options-config.js +24 -0
- package/dist/webpack/configs/watch-options-config.js.map +1 -0
- package/dist/webpack/create-webpack-config.d.ts.map +1 -1
- package/dist/webpack/create-webpack-config.js +62 -50
- package/dist/webpack/create-webpack-config.js.map +1 -1
- package/dist/webpack/index.d.ts +1 -1
- package/dist/webpack/index.d.ts.map +1 -1
- package/dist/webpack/index.js +18 -17
- package/dist/webpack/index.js.map +1 -1
- package/dist/webpack/loaders/expose-loader/index.js +15 -15
- package/dist/webpack/loaders/expose-loader/index.js.map +1 -1
- package/dist/webpack/loaders/expose-loader/runtime/get-global-this.js +5 -6
- package/dist/webpack/loaders/expose-loader/runtime/get-global-this.js.map +1 -1
- package/dist/webpack/loaders/expose-loader/utils/contextify-request.js +20 -13
- package/dist/webpack/loaders/expose-loader/utils/contextify-request.js.map +1 -1
- package/dist/webpack/loaders/expose-loader/utils/get-new-user-request.js +22 -11
- package/dist/webpack/loaders/expose-loader/utils/get-new-user-request.js.map +1 -1
- package/dist/webpack/loaders/expose-loader/utils/index.js +20 -18
- package/dist/webpack/loaders/expose-loader/utils/index.js.map +1 -1
- package/dist/webpack/loaders/expose-loader/utils/stringify-request.js +20 -12
- package/dist/webpack/loaders/expose-loader/utils/stringify-request.js.map +1 -1
- package/dist/webpack/types.d.ts +0 -4
- package/dist/webpack/types.d.ts.map +1 -1
- package/dist/webpack/types.js +4 -1
- package/dist/webpack/types.js.map +1 -1
- package/dist/webpack/utils/feature-cohort.js +17 -12
- package/dist/webpack/utils/feature-cohort.js.map +1 -1
- package/dist/webpack/utils/get-caller-filename.js +14 -7
- package/dist/webpack/utils/get-caller-filename.js.map +1 -1
- package/dist/webpack/utils/{bundle.d.ts → get-module-entry-path.d.ts} +1 -1
- package/dist/webpack/utils/get-module-entry-path.d.ts.map +1 -0
- package/dist/webpack/utils/get-module-entry-path.js +21 -0
- package/dist/webpack/utils/get-module-entry-path.js.map +1 -0
- package/dist/webpack/utils/hash-mod.js +16 -11
- package/dist/webpack/utils/hash-mod.js.map +1 -1
- package/dist/webpack/utils/index.d.ts +1 -1
- package/dist/webpack/utils/index.d.ts.map +1 -1
- package/dist/webpack/utils/index.js +21 -19
- package/dist/webpack/utils/index.js.map +1 -1
- package/dist/webpack/utils/split-by-entry.js +17 -7
- package/dist/webpack/utils/split-by-entry.js.map +1 -1
- package/dist/webpack/utils/testing/compile.js +12 -4
- package/dist/webpack/utils/testing/compile.js.map +1 -1
- package/dist/webpack/utils/testing/execute.js +26 -13
- package/dist/webpack/utils/testing/execute.js.map +1 -1
- package/dist/webpack/utils/testing/get-compiler.js +34 -24
- package/dist/webpack/utils/testing/get-compiler.js.map +1 -1
- package/dist/webpack/utils/testing/get-errors.js +12 -4
- package/dist/webpack/utils/testing/get-errors.js.map +1 -1
- package/dist/webpack/utils/testing/get-module-source.js +18 -5
- package/dist/webpack/utils/testing/get-module-source.js.map +1 -1
- package/dist/webpack/utils/testing/get-warnings.js +12 -4
- package/dist/webpack/utils/testing/get-warnings.js.map +1 -1
- package/dist/webpack/utils/testing/index.js +28 -20
- package/dist/webpack/utils/testing/index.js.map +1 -1
- package/dist/webpack/utils/testing/normalize-errors.js +11 -3
- package/dist/webpack/utils/testing/normalize-errors.js.map +1 -1
- package/dist/webpack/utils/testing/read-asset.js +20 -11
- package/dist/webpack/utils/testing/read-asset.js.map +1 -1
- package/dist/webpack/utils/testing/read-assets.js +13 -5
- package/dist/webpack/utils/testing/read-assets.js.map +1 -1
- package/package.json +20 -20
- package/src/cli/commands/__tests__/build.test.ts +69 -44
- package/src/cli/commands/__tests__/clean.test.ts +32 -0
- package/src/cli/commands/__tests__/install.test.ts +50 -8
- package/src/cli/commands/__tests__/kendo-ui-license.test.ts +5 -5
- package/src/cli/commands/__tests__/lint.test.ts +4 -0
- package/src/cli/commands/__tests__/mfe-package-publish.test.ts +21 -2
- package/src/cli/commands/__tests__/mfe-publish.test.ts +19 -23
- package/src/cli/commands/__tests__/prepare-package.test.ts +17 -36
- package/src/cli/commands/__tests__/start.test.ts +81 -44
- package/src/cli/commands/__tests__/tests.test.ts +4 -0
- package/src/cli/commands/build.ts +73 -35
- package/src/cli/commands/bundle-package.ts +0 -4
- package/src/cli/commands/clean.ts +24 -0
- package/src/cli/commands/eslint.ts +1 -1
- package/src/cli/commands/get-command.ts +25 -35
- package/src/cli/commands/index.ts +1 -1
- package/src/cli/commands/install.ts +29 -8
- package/src/cli/commands/lint.ts +22 -17
- package/src/cli/commands/mfe-package-publish.ts +22 -5
- package/src/cli/commands/mfe-publish.ts +5 -18
- package/src/cli/commands/prepare-package.ts +8 -12
- package/src/cli/commands/review/__mocks__/expect-calls.ts +48 -0
- package/src/cli/commands/review/__mocks__/index.ts +1 -0
- package/src/cli/commands/review/__tests__/review.test.ts +483 -0
- package/src/cli/commands/review/index.ts +3 -0
- package/src/cli/commands/review/review.ts +247 -0
- package/src/cli/commands/review/rules/__mocks__/index.ts +3 -0
- package/src/cli/commands/review/rules/__mocks__/mock-config.ts +14 -0
- package/src/cli/commands/review/rules/__mocks__/mock-packages.ts +41 -0
- package/src/cli/commands/review/rules/__mocks__/mock-project.ts +11 -0
- package/src/cli/commands/review/rules/__tests__/no-typescript-entry-point.test.ts +166 -0
- package/src/cli/commands/review/rules/__tests__/require-explicit-side-effects.test.ts +113 -0
- package/src/cli/commands/review/rules/__tests__/require-npmrc.test.ts +71 -0
- package/src/cli/commands/review/rules/__tests__/require-one-anvil-uikit-contrib-version.test.ts +33 -0
- package/src/cli/commands/review/rules/__tests__/require-one-collection-version.test.ts +155 -0
- package/src/cli/commands/review/rules/__tests__/require-one-package-version.test.ts +135 -0
- package/src/cli/commands/review/rules/__tests__/require-one-uikit-version.ts +40 -0
- package/src/cli/commands/review/rules/__tests__/require-project-version-in-root-node-modules.test.ts +186 -0
- package/src/cli/commands/review/rules/__tests__/require-servicetitan-scope.test.ts +83 -0
- package/src/cli/commands/review/rules/index.ts +20 -0
- package/src/cli/commands/review/rules/no-typescript-entry-point.ts +78 -0
- package/src/cli/commands/review/rules/require-explicit-side-effects.ts +31 -0
- package/src/cli/commands/review/rules/require-npmrc.ts +27 -0
- package/src/cli/commands/review/rules/require-one-anvil-uikit-contrib-version.ts +20 -0
- package/src/cli/commands/review/rules/require-one-collection-version.ts +169 -0
- package/src/cli/commands/review/rules/require-one-package-version.ts +76 -0
- package/src/cli/commands/review/rules/require-one-uikit-version.ts +27 -0
- package/src/cli/commands/review/rules/require-project-version-in-root-node-modules.ts +104 -0
- package/src/cli/commands/review/rules/require-servicetitan-scope.ts +27 -0
- package/src/cli/commands/review/types.ts +72 -0
- package/src/cli/commands/review/utils/__tests__/compare-version.test.ts +73 -0
- package/src/cli/commands/review/utils/__tests__/get-max-version.test.ts +17 -0
- package/src/cli/commands/review/utils/__tests__/indent.test.ts +41 -0
- package/src/cli/commands/review/utils/__tests__/name-to-location.test.ts +39 -0
- package/src/cli/commands/review/utils/__tests__/set-version.test.ts +84 -0
- package/src/cli/commands/review/utils/apply-filter.ts +14 -0
- package/src/cli/commands/review/utils/collate-dependencies.ts +46 -0
- package/src/cli/commands/review/utils/compare-version.ts +82 -0
- package/src/cli/commands/review/utils/format-depends-on.ts +11 -0
- package/src/cli/commands/review/utils/format-location.ts +8 -0
- package/src/cli/commands/review/utils/get-key.ts +10 -0
- package/src/cli/commands/review/utils/get-max-version.ts +5 -0
- package/src/cli/commands/review/utils/indent.ts +8 -0
- package/src/cli/commands/review/utils/index.ts +13 -0
- package/src/cli/commands/review/utils/is-library.ts +5 -0
- package/src/cli/commands/review/utils/name-to-location.ts +7 -0
- package/src/cli/commands/review/utils/pluralize.ts +3 -0
- package/src/cli/commands/review/utils/set-version.ts +26 -0
- package/src/cli/commands/review/utils/summarize.ts +21 -0
- package/src/cli/commands/run-task.test.ts +60 -0
- package/src/cli/commands/start.ts +130 -55
- package/src/cli/commands/tests.ts +2 -0
- package/src/cli/commands/types.ts +1 -0
- package/src/cli/index.ts +4 -4
- package/src/cli/tasks/__tests__/cli-task.test.ts +16 -4
- package/src/cli/tasks/__tests__/{swc-compile.test.ts → swc-compile-package.test.ts} +75 -36
- package/src/cli/tasks/__tests__/tsc-compile-package.test.ts +1 -0
- package/src/cli/tasks/__tests__/tsc-compile.test.ts +12 -23
- package/src/cli/tasks/cli-task.ts +12 -18
- package/src/cli/tasks/swc-cli.d.ts +12 -1
- package/src/cli/tasks/swc-compile-package.ts +71 -45
- package/src/cli/tasks/task.ts +2 -11
- package/src/cli/tasks/tsc-compile-package.ts +0 -4
- package/src/cli/tasks/tsc-compile.ts +14 -17
- package/src/cli/types/cpx2.d.ts +8 -1
- package/src/cli/utils/__tests__/bundle.test.ts +1 -1
- package/src/cli/utils/__tests__/check-args.test.ts +34 -0
- package/src/cli/utils/__tests__/compile.test.ts +59 -0
- package/src/cli/utils/__tests__/copy-files.test.ts +157 -0
- package/src/cli/utils/__tests__/get-module-type.test.ts +19 -0
- package/src/cli/utils/__tests__/lerna-exec.test.ts +58 -11
- package/src/cli/utils/__tests__/pipe-stdout.test.ts +39 -0
- package/src/cli/utils/__tests__/process-tree.test.ts +175 -0
- package/src/cli/utils/__tests__/set-node-options.test.ts +51 -6
- package/src/cli/utils/__tests__/tcm.test.ts +90 -86
- package/src/cli/utils/__tests__/type-check.test.ts +47 -0
- package/src/cli/utils/__tests__/watch-stdout.test.ts +68 -0
- package/src/cli/utils/bundle.ts +5 -18
- package/src/cli/utils/check-args.ts +13 -0
- package/src/cli/utils/compile-less.ts +0 -1
- package/src/cli/utils/compile-sass.ts +0 -1
- package/src/cli/utils/compile.ts +22 -0
- package/src/cli/utils/copy-files.ts +76 -0
- package/src/cli/utils/eslint.ts +1 -0
- package/src/cli/utils/get-module-type.ts +4 -6
- package/src/cli/utils/index.ts +7 -6
- package/src/cli/utils/lerna-exec.ts +17 -10
- package/src/cli/utils/pipe-stdout.ts +10 -0
- package/src/cli/utils/process-tree.ts +57 -0
- package/src/cli/utils/set-node-options.ts +15 -12
- package/src/cli/utils/style-extensions.ts +1 -0
- package/src/cli/utils/tcm.ts +22 -32
- package/src/cli/utils/type-check.ts +19 -0
- package/src/cli/utils/watch-stdout.ts +24 -0
- package/src/utils/__tests__/format-duration.test.ts +22 -0
- package/src/utils/__tests__/get-configuration.test.ts +44 -2
- package/src/utils/__tests__/get-packages.test.ts +58 -49
- package/src/utils/__tests__/log-errors.test.ts +102 -0
- package/src/utils/__tests__/log.test.ts +1 -86
- package/src/utils/find-packages.ts +12 -6
- package/src/utils/format-duration.ts +13 -0
- package/src/utils/get-configuration.ts +19 -5
- package/src/utils/get-folders.ts +3 -1
- package/src/utils/get-packages.ts +9 -16
- package/src/utils/index.ts +3 -0
- package/src/utils/log-errors.ts +29 -0
- package/src/utils/log.ts +0 -26
- package/src/webpack/__mocks__/file-rules.ts +0 -5
- package/src/webpack/__tests__/create-webpack-config-web-component.test.ts +4 -5
- package/src/webpack/__tests__/create-webpack-config.test.ts +33 -112
- package/src/webpack/configs/dev-server-config.ts +4 -27
- package/src/webpack/configs/devtool-config.ts +2 -2
- package/src/webpack/configs/entry.config.ts +7 -2
- package/src/webpack/configs/index.ts +2 -1
- package/src/webpack/configs/loaders/index.ts +1 -1
- package/src/webpack/configs/optimization-config.ts +2 -2
- package/src/webpack/configs/plugins/index.ts +0 -2
- package/src/webpack/configs/plugins/virtual-modules-plugin.ts +3 -3
- package/src/webpack/configs/plugins-config.ts +0 -4
- package/src/webpack/configs/resolve-config.ts +1 -1
- package/src/webpack/configs/rules/index.ts +0 -1
- package/src/webpack/configs/rules/js-rules.ts +27 -2
- package/src/webpack/configs/rules-config.ts +1 -11
- package/src/webpack/configs/types.ts +1 -3
- package/src/webpack/configs/watch-options-config.ts +17 -0
- package/src/webpack/create-webpack-config.ts +3 -4
- package/src/webpack/index.ts +1 -1
- package/src/webpack/types.ts +0 -4
- package/src/webpack/utils/index.ts +1 -1
- package/dist/__mocks__/create-package.js +0 -17
- package/dist/__mocks__/create-package.js.map +0 -1
- package/dist/__mocks__/index.js +0 -18
- package/dist/__mocks__/index.js.map +0 -1
- package/dist/cli/utils/assets-copy.d.ts +0 -3
- package/dist/cli/utils/assets-copy.d.ts.map +0 -1
- package/dist/cli/utils/assets-copy.js +0 -25
- package/dist/cli/utils/assets-copy.js.map +0 -1
- package/dist/cli/utils/styles-copy.d.ts +0 -3
- package/dist/cli/utils/styles-copy.d.ts.map +0 -1
- package/dist/cli/utils/styles-copy.js +0 -25
- package/dist/cli/utils/styles-copy.js.map +0 -1
- package/dist/cli/utils/tsc.d.ts +0 -5
- package/dist/cli/utils/tsc.d.ts.map +0 -1
- package/dist/cli/utils/tsc.js +0 -37
- package/dist/cli/utils/tsc.js.map +0 -1
- package/dist/webpack/__mocks__/file-rules.js +0 -79
- package/dist/webpack/__mocks__/file-rules.js.map +0 -1
- package/dist/webpack/__mocks__/index.js +0 -19
- package/dist/webpack/__mocks__/index.js.map +0 -1
- package/dist/webpack/__mocks__/style-rules.js +0 -124
- package/dist/webpack/__mocks__/style-rules.js.map +0 -1
- package/dist/webpack/configs/plugins/provide-react-plugin.d.ts +0 -4
- package/dist/webpack/configs/plugins/provide-react-plugin.d.ts.map +0 -1
- package/dist/webpack/configs/plugins/provide-react-plugin.js +0 -13
- package/dist/webpack/configs/plugins/provide-react-plugin.js.map +0 -1
- package/dist/webpack/configs/plugins/ts-checker-plugin.d.ts +0 -4
- package/dist/webpack/configs/plugins/ts-checker-plugin.d.ts.map +0 -1
- package/dist/webpack/configs/plugins/ts-checker-plugin.js +0 -30
- package/dist/webpack/configs/plugins/ts-checker-plugin.js.map +0 -1
- package/dist/webpack/configs/rules/tsx-rules.d.ts +0 -4
- package/dist/webpack/configs/rules/tsx-rules.d.ts.map +0 -1
- package/dist/webpack/configs/rules/tsx-rules.js +0 -44
- package/dist/webpack/configs/rules/tsx-rules.js.map +0 -1
- package/dist/webpack/utils/bundle.d.ts.map +0 -1
- package/dist/webpack/utils/bundle.js +0 -19
- package/dist/webpack/utils/bundle.js.map +0 -1
- package/src/cli/utils/__tests__/assets-copy.test.ts +0 -52
- package/src/cli/utils/__tests__/styles-copy.test.ts +0 -52
- package/src/cli/utils/__tests__/tsc.test.ts +0 -63
- package/src/cli/utils/assets-copy.ts +0 -23
- package/src/cli/utils/styles-copy.ts +0 -23
- package/src/cli/utils/tsc.ts +0 -38
- package/src/webpack/configs/plugins/provide-react-plugin.ts +0 -12
- package/src/webpack/configs/plugins/ts-checker-plugin.ts +0 -33
- package/src/webpack/configs/rules/tsx-rules.ts +0 -48
- /package/src/webpack/utils/{bundle.ts → get-module-entry-path.ts} +0 -0
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "getErrors", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return getErrors;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _normalizeerrors = require("./normalize-errors");
|
|
5
12
|
function getErrors(stats) {
|
|
6
|
-
return (0,
|
|
13
|
+
return (0, _normalizeerrors.normalizeErrors)(stats.compilation.errors);
|
|
7
14
|
}
|
|
15
|
+
|
|
8
16
|
//# sourceMappingURL=get-errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../src/webpack/utils/testing/get-errors.ts"],"sourcesContent":["import { Stats } from 'webpack';\n\nimport { normalizeErrors } from './normalize-errors';\n\nexport function getErrors(stats: Stats) {\n return normalizeErrors(stats.compilation.errors);\n}\n"],"names":["getErrors","stats","normalizeErrors","compilation","errors"],"mappings":";;;;+BAIgBA;;;eAAAA;;;iCAFgB;AAEzB,SAASA,UAAUC,KAAY;IAClC,OAAOC,IAAAA,gCAAe,EAACD,MAAME,WAAW,CAACC,MAAM;AACnD"}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "getModuleSource", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return getModuleSource;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
4
11
|
function getModuleSource(name, stats) {
|
|
5
|
-
|
|
6
|
-
|
|
12
|
+
const { modules } = stats.toJson({
|
|
13
|
+
source: true
|
|
14
|
+
});
|
|
7
15
|
if (modules) {
|
|
8
|
-
|
|
16
|
+
var _modules_find;
|
|
17
|
+
return (_modules_find = modules.find((m)=>{
|
|
18
|
+
var _m_name;
|
|
19
|
+
return (_m_name = m.name) === null || _m_name === void 0 ? void 0 : _m_name.endsWith(name);
|
|
20
|
+
})) === null || _modules_find === void 0 ? void 0 : _modules_find.source;
|
|
9
21
|
}
|
|
10
22
|
return undefined;
|
|
11
23
|
}
|
|
24
|
+
|
|
12
25
|
//# sourceMappingURL=get-module-source.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../src/webpack/utils/testing/get-module-source.ts"],"sourcesContent":["import { Stats } from 'webpack';\n\nexport function getModuleSource(name: string, stats: Stats) {\n const { modules } = stats.toJson({ source: true });\n\n if (modules) {\n return modules.find(m => m.name?.endsWith(name))?.source;\n }\n\n return undefined;\n}\n"],"names":["getModuleSource","name","stats","modules","toJson","source","find","m","endsWith","undefined"],"mappings":";;;;+BAEgBA;;;eAAAA;;;AAAT,SAASA,gBAAgBC,IAAY,EAAEC,KAAY;IACtD,MAAM,EAAEC,OAAO,EAAE,GAAGD,MAAME,MAAM,CAAC;QAAEC,QAAQ;IAAK;IAEhD,IAAIF,SAAS;YACFA;QAAP,QAAOA,gBAAAA,QAAQG,IAAI,CAACC,CAAAA;gBAAKA;oBAAAA,UAAAA,EAAEN,IAAI,cAANM,8BAAAA,QAAQC,QAAQ,CAACP;wBAAnCE,oCAAAA,cAA2CE,MAAM;IAC5D;IAEA,OAAOI;AACX"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "getWarnings", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return getWarnings;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _normalizeerrors = require("./normalize-errors");
|
|
5
12
|
function getWarnings(stats) {
|
|
6
|
-
return (0,
|
|
13
|
+
return (0, _normalizeerrors.normalizeErrors)(stats.compilation.warnings);
|
|
7
14
|
}
|
|
15
|
+
|
|
8
16
|
//# sourceMappingURL=get-warnings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../src/webpack/utils/testing/get-warnings.ts"],"sourcesContent":["import { Stats } from 'webpack';\n\nimport { normalizeErrors } from './normalize-errors';\n\nexport function getWarnings(stats: Stats) {\n return normalizeErrors(stats.compilation.warnings);\n}\n"],"names":["getWarnings","stats","normalizeErrors","compilation","warnings"],"mappings":";;;;+BAIgBA;;;eAAAA;;;iCAFgB;AAEzB,SAASA,YAAYC,KAAY;IACpC,OAAOC,IAAAA,gCAAe,EAACD,MAAME,WAAW,CAACC,QAAQ;AACrD"}
|
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "getUtils", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return getUtils;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _compile = require("./compile");
|
|
12
|
+
const _execute = require("./execute");
|
|
13
|
+
const _getcompiler = require("./get-compiler");
|
|
14
|
+
const _geterrors = require("./get-errors");
|
|
15
|
+
const _getmodulesource = require("./get-module-source");
|
|
16
|
+
const _getwarnings = require("./get-warnings");
|
|
17
|
+
const _normalizeerrors = require("./normalize-errors");
|
|
18
|
+
const _readasset = require("./read-asset");
|
|
19
|
+
const _readassets = require("./read-assets");
|
|
13
20
|
function getUtils(cwd) {
|
|
14
21
|
return {
|
|
15
|
-
compile:
|
|
16
|
-
execute: (0,
|
|
17
|
-
getCompiler: (0,
|
|
18
|
-
getErrors:
|
|
19
|
-
getModuleSource:
|
|
20
|
-
getWarnings:
|
|
21
|
-
normalizeErrors:
|
|
22
|
-
readAsset:
|
|
23
|
-
readAssets:
|
|
22
|
+
compile: _compile.compile,
|
|
23
|
+
execute: (0, _execute.executeFactory)(cwd),
|
|
24
|
+
getCompiler: (0, _getcompiler.getCompilerFactory)(cwd),
|
|
25
|
+
getErrors: _geterrors.getErrors,
|
|
26
|
+
getModuleSource: _getmodulesource.getModuleSource,
|
|
27
|
+
getWarnings: _getwarnings.getWarnings,
|
|
28
|
+
normalizeErrors: _normalizeerrors.normalizeErrors,
|
|
29
|
+
readAsset: _readasset.readAsset,
|
|
30
|
+
readAssets: _readassets.readAssets
|
|
24
31
|
};
|
|
25
32
|
}
|
|
33
|
+
|
|
26
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../src/webpack/utils/testing/index.ts"],"sourcesContent":["import { compile } from './compile';\nimport { executeFactory } from './execute';\nimport { getCompilerFactory } from './get-compiler';\nimport { getErrors } from './get-errors';\nimport { getModuleSource } from './get-module-source';\nimport { getWarnings } from './get-warnings';\nimport { normalizeErrors } from './normalize-errors';\nimport { readAsset } from './read-asset';\nimport { readAssets } from './read-assets';\n\nexport function getUtils(cwd: string) {\n return {\n compile,\n execute: executeFactory(cwd),\n getCompiler: getCompilerFactory(cwd),\n getErrors,\n getModuleSource,\n getWarnings,\n normalizeErrors,\n readAsset,\n readAssets,\n };\n}\n"],"names":["getUtils","cwd","compile","execute","executeFactory","getCompiler","getCompilerFactory","getErrors","getModuleSource","getWarnings","normalizeErrors","readAsset","readAssets"],"mappings":";;;;+BAUgBA;;;eAAAA;;;yBAVQ;yBACO;6BACI;2BACT;iCACM;6BACJ;iCACI;2BACN;4BACC;AAEpB,SAASA,SAASC,GAAW;IAChC,OAAO;QACHC,SAAAA,gBAAO;QACPC,SAASC,IAAAA,uBAAc,EAACH;QACxBI,aAAaC,IAAAA,+BAAkB,EAACL;QAChCM,WAAAA,oBAAS;QACTC,iBAAAA,gCAAe;QACfC,aAAAA,wBAAW;QACXC,iBAAAA,gCAAe;QACfC,WAAAA,oBAAS;QACTC,YAAAA,sBAAU;IACd;AACJ"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "normalizeErrors", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return normalizeErrors;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
4
11
|
function removeCWD(str) {
|
|
5
12
|
const isWin = process.platform === 'win32';
|
|
6
13
|
let cwd = process.cwd();
|
|
@@ -12,6 +19,7 @@ function removeCWD(str) {
|
|
|
12
19
|
return str.replace(new RegExp(cwd, 'g'), '');
|
|
13
20
|
}
|
|
14
21
|
function normalizeErrors(errors) {
|
|
15
|
-
return errors.map(error
|
|
22
|
+
return errors.map((error)=>removeCWD(error.message.split('\n').slice(0, 2).join('\n')));
|
|
16
23
|
}
|
|
24
|
+
|
|
17
25
|
//# sourceMappingURL=normalize-errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../src/webpack/utils/testing/normalize-errors.ts"],"sourcesContent":["function removeCWD(str: string) {\n const isWin = process.platform === 'win32';\n let cwd = process.cwd();\n\n if (isWin) {\n // eslint-disable-next-line no-param-reassign\n str = str.replace(/\\\\/g, '/');\n cwd = cwd.replace(/\\\\/g, '/');\n }\n\n return str.replace(new RegExp(cwd, 'g'), '');\n}\n\nexport function normalizeErrors(errors: Error[]) {\n return errors.map(error => removeCWD(error.message.split('\\n').slice(0, 2).join('\\n')));\n}\n"],"names":["normalizeErrors","removeCWD","str","isWin","process","platform","cwd","replace","RegExp","errors","map","error","message","split","slice","join"],"mappings":";;;;+BAagBA;;;eAAAA;;;AAbhB,SAASC,UAAUC,GAAW;IAC1B,MAAMC,QAAQC,QAAQC,QAAQ,KAAK;IACnC,IAAIC,MAAMF,QAAQE,GAAG;IAErB,IAAIH,OAAO;QACP,6CAA6C;QAC7CD,MAAMA,IAAIK,OAAO,CAAC,OAAO;QACzBD,MAAMA,IAAIC,OAAO,CAAC,OAAO;IAC7B;IAEA,OAAOL,IAAIK,OAAO,CAAC,IAAIC,OAAOF,KAAK,MAAM;AAC7C;AAEO,SAASN,gBAAgBS,MAAe;IAC3C,OAAOA,OAAOC,GAAG,CAACC,CAAAA,QAASV,UAAUU,MAAMC,OAAO,CAACC,KAAK,CAAC,MAAMC,KAAK,CAAC,GAAG,GAAGC,IAAI,CAAC;AACpF"}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "readAsset", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return readAsset;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
8
17
|
function readAsset(asset, compiler, stats) {
|
|
9
|
-
var _a;
|
|
10
18
|
const usedFs = compiler.outputFileSystem;
|
|
11
|
-
|
|
19
|
+
var _stats_compilation_outputOptions_path;
|
|
20
|
+
const outputPath = (_stats_compilation_outputOptions_path = stats.compilation.outputOptions.path) !== null && _stats_compilation_outputOptions_path !== void 0 ? _stats_compilation_outputOptions_path : '';
|
|
12
21
|
let data = '';
|
|
13
22
|
let targetFile = asset;
|
|
14
23
|
const queryStringIdx = targetFile.indexOf('?');
|
|
@@ -16,11 +25,11 @@ function readAsset(asset, compiler, stats) {
|
|
|
16
25
|
targetFile = targetFile.substr(0, queryStringIdx);
|
|
17
26
|
}
|
|
18
27
|
try {
|
|
19
|
-
data = usedFs.readFileSync(
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
28
|
+
data = usedFs.readFileSync(_path.default.join(outputPath, targetFile)).toString();
|
|
29
|
+
} catch (error) {
|
|
22
30
|
data = String(error);
|
|
23
31
|
}
|
|
24
32
|
return data;
|
|
25
33
|
}
|
|
34
|
+
|
|
26
35
|
//# sourceMappingURL=read-asset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../src/webpack/utils/testing/read-asset.ts"],"sourcesContent":["import path from 'path';\n\nimport { Compiler, Stats } from 'webpack';\nimport { IFs } from 'memfs';\n\nexport function readAsset(asset: string, compiler: Compiler, stats: Stats) {\n const usedFs = compiler.outputFileSystem as IFs;\n const outputPath = stats.compilation.outputOptions.path ?? '';\n\n let data = '';\n let targetFile = asset;\n\n const queryStringIdx = targetFile.indexOf('?');\n\n if (queryStringIdx >= 0) {\n targetFile = targetFile.substr(0, queryStringIdx);\n }\n\n try {\n data = usedFs.readFileSync(path.join(outputPath, targetFile)).toString();\n } catch (error) {\n data = String(error);\n }\n\n return data;\n}\n"],"names":["readAsset","asset","compiler","stats","usedFs","outputFileSystem","outputPath","compilation","outputOptions","path","data","targetFile","queryStringIdx","indexOf","substr","readFileSync","join","toString","error","String"],"mappings":";;;;+BAKgBA;;;eAAAA;;;6DALC;;;;;;AAKV,SAASA,UAAUC,KAAa,EAAEC,QAAkB,EAAEC,KAAY;IACrE,MAAMC,SAASF,SAASG,gBAAgB;QACrBF;IAAnB,MAAMG,aAAaH,CAAAA,wCAAAA,MAAMI,WAAW,CAACC,aAAa,CAACC,IAAI,cAApCN,mDAAAA,wCAAwC;IAE3D,IAAIO,OAAO;IACX,IAAIC,aAAaV;IAEjB,MAAMW,iBAAiBD,WAAWE,OAAO,CAAC;IAE1C,IAAID,kBAAkB,GAAG;QACrBD,aAAaA,WAAWG,MAAM,CAAC,GAAGF;IACtC;IAEA,IAAI;QACAF,OAAON,OAAOW,YAAY,CAACN,aAAI,CAACO,IAAI,CAACV,YAAYK,aAAaM,QAAQ;IAC1E,EAAE,OAAOC,OAAO;QACZR,OAAOS,OAAOD;IAClB;IAEA,OAAOR;AACX"}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "readAssets", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return readAssets;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _readasset = require("./read-asset");
|
|
5
12
|
function readAssets(compiler, stats) {
|
|
6
13
|
const assets = {};
|
|
7
|
-
Object.keys(stats.compilation.assets).forEach(asset
|
|
8
|
-
assets[asset] = (0,
|
|
14
|
+
Object.keys(stats.compilation.assets).forEach((asset)=>{
|
|
15
|
+
assets[asset] = (0, _readasset.readAsset)(asset, compiler, stats);
|
|
9
16
|
});
|
|
10
17
|
return assets;
|
|
11
18
|
}
|
|
19
|
+
|
|
12
20
|
//# sourceMappingURL=read-assets.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../../src/webpack/utils/testing/read-assets.ts"],"sourcesContent":["import { Compiler, Stats } from 'webpack';\n\nimport { readAsset } from './read-asset';\n\nexport function readAssets(compiler: Compiler, stats: Stats) {\n const assets: Record<string, string> = {};\n\n Object.keys(stats.compilation.assets).forEach(asset => {\n assets[asset] = readAsset(asset, compiler, stats);\n });\n\n return assets;\n}\n"],"names":["readAssets","compiler","stats","assets","Object","keys","compilation","forEach","asset","readAsset"],"mappings":";;;;+BAIgBA;;;eAAAA;;;2BAFU;AAEnB,SAASA,WAAWC,QAAkB,EAAEC,KAAY;IACvD,MAAMC,SAAiC,CAAC;IAExCC,OAAOC,IAAI,CAACH,MAAMI,WAAW,CAACH,MAAM,EAAEI,OAAO,CAACC,CAAAA;QAC1CL,MAAM,CAACK,MAAM,GAAGC,IAAAA,oBAAS,EAACD,OAAOP,UAAUC;IAC/C;IAEA,OAAOC;AACX"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/startup",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/startup",
|
|
6
6
|
"repository": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@jest/core": "~29.7.0",
|
|
37
37
|
"@jest/types": "~29.6.3",
|
|
38
38
|
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
|
|
39
|
-
"@servicetitan/eslint-config": "
|
|
40
|
-
"@servicetitan/stylelint-config": "
|
|
39
|
+
"@servicetitan/eslint-config": "31.0.0",
|
|
40
|
+
"@servicetitan/stylelint-config": "31.0.0",
|
|
41
41
|
"@svgr/webpack": "^8.1.0",
|
|
42
|
-
"@swc/cli": "0.
|
|
42
|
+
"@swc/cli": "^0.5.0",
|
|
43
43
|
"@swc/core": "1.11.29",
|
|
44
44
|
"@types/debug": "^4.1.12",
|
|
45
45
|
"@types/jest": "~29.5.12",
|
|
@@ -50,11 +50,9 @@
|
|
|
50
50
|
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
51
51
|
"debug": "^4.4.1",
|
|
52
52
|
"deepmerge": "~4.3.1",
|
|
53
|
-
"
|
|
54
|
-
"eslint": "~9.27.0",
|
|
53
|
+
"eslint": "~9.30.1",
|
|
55
54
|
"execa": "~5.1.1",
|
|
56
|
-
"
|
|
57
|
-
"glob": "~11.0.2",
|
|
55
|
+
"glob": "~11.0.3",
|
|
58
56
|
"html-webpack-plugin": "~5.6.3",
|
|
59
57
|
"identity-obj-proxy": "~3.0.0",
|
|
60
58
|
"jest": "~29.7.0",
|
|
@@ -62,7 +60,7 @@
|
|
|
62
60
|
"jest-environment-jsdom": "^29.7.0",
|
|
63
61
|
"jest-fetch-mock": "~3.0.3",
|
|
64
62
|
"json5": "^2.2.3",
|
|
65
|
-
"lerna": "~8.2.
|
|
63
|
+
"lerna": "~8.2.3",
|
|
66
64
|
"less": "~4.3.0",
|
|
67
65
|
"less-loader": "~12.3.0",
|
|
68
66
|
"less-plugin-npm-import": "~2.1.0",
|
|
@@ -72,25 +70,25 @@
|
|
|
72
70
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
73
71
|
"multimatch": "~5.0.0",
|
|
74
72
|
"portfinder": "~1.0.37",
|
|
75
|
-
"postcss": "~8.5.
|
|
76
|
-
"prettier": "~3.
|
|
77
|
-
"sass": "~1.89.
|
|
73
|
+
"postcss": "~8.5.6",
|
|
74
|
+
"prettier": "~3.6.2",
|
|
75
|
+
"sass": "~1.89.2",
|
|
78
76
|
"sass-loader": "~16.0.5",
|
|
77
|
+
"semver": "~7.7.2",
|
|
79
78
|
"source-map-loader": "~5.0.0",
|
|
80
79
|
"style-loader": "~4.0.0",
|
|
81
|
-
"stylelint": "~16.
|
|
82
|
-
"
|
|
80
|
+
"stylelint": "~16.21.0",
|
|
81
|
+
"terminal-link": "^4.0.0",
|
|
83
82
|
"terser-webpack-plugin": "^5.3.14",
|
|
84
|
-
"ts-jest": "29.
|
|
85
|
-
"ts-loader": "~9.5.2",
|
|
83
|
+
"ts-jest": "29.4.0",
|
|
86
84
|
"ts-node": "~10.9.2",
|
|
87
85
|
"typed-css-modules": "~0.9.1",
|
|
88
86
|
"typescript": "5.8.3",
|
|
89
87
|
"username": "~5.1.0",
|
|
90
88
|
"webpack": "~5.99.9",
|
|
91
|
-
"webpack-assets-manifest": "~6.1
|
|
89
|
+
"webpack-assets-manifest": "~6.2.1",
|
|
92
90
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
93
|
-
"webpack-dev-server": "~5.2.
|
|
91
|
+
"webpack-dev-server": "~5.2.2",
|
|
94
92
|
"webpack-filter-warnings-plugin": "~1.2.1",
|
|
95
93
|
"webpack-merge": "~6.0.1",
|
|
96
94
|
"webpack-virtual-modules": "~0.6.2",
|
|
@@ -106,12 +104,14 @@
|
|
|
106
104
|
"optional": true
|
|
107
105
|
}
|
|
108
106
|
},
|
|
109
|
-
"DEVELOPER_NOTES": {
|
|
107
|
+
"DEVELOPER_NOTES": {
|
|
108
|
+
"@swc/cli": "Update when https://github.com/swc-project/swc/issues/10535 is resolved"
|
|
109
|
+
},
|
|
110
110
|
"publishConfig": {
|
|
111
111
|
"access": "public"
|
|
112
112
|
},
|
|
113
113
|
"cli": {
|
|
114
114
|
"webpack": false
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "c52e188a1217df74052774a2eea6a5126089e3d5"
|
|
117
117
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jest-environment node
|
|
3
3
|
*/
|
|
4
|
-
import { Package, PackageType, getPackages } from '../../../utils';
|
|
4
|
+
import { Package, PackageType, getPackages, log } from '../../../utils';
|
|
5
5
|
import { createPackage } from '../../../__mocks__';
|
|
6
|
-
import { lernaExec,
|
|
6
|
+
import { lernaExec, compile, typeCheck } from '../../utils';
|
|
7
7
|
import { kendoUILicense } from '../kendo-ui-license';
|
|
8
8
|
|
|
9
9
|
import { Build } from '../build';
|
|
@@ -12,8 +12,16 @@ jest.mock('../../../utils', () => ({
|
|
|
12
12
|
...jest.requireActual('../../../utils'),
|
|
13
13
|
getPackages: jest.fn(),
|
|
14
14
|
}));
|
|
15
|
-
jest.mock('../../utils')
|
|
16
|
-
jest.
|
|
15
|
+
jest.mock('../../utils', () => ({
|
|
16
|
+
...jest.requireActual('../../utils'),
|
|
17
|
+
lernaExec: jest.fn(() => Promise.resolve()),
|
|
18
|
+
compile: jest.fn(() => Promise.resolve()),
|
|
19
|
+
typeCheck: jest.fn(() => Promise.resolve()),
|
|
20
|
+
}));
|
|
21
|
+
jest.mock('../kendo-ui-license', () => ({
|
|
22
|
+
...jest.requireActual('../kendo-ui-license'),
|
|
23
|
+
kendoUILicense: jest.fn(() => Promise.resolve()),
|
|
24
|
+
}));
|
|
17
25
|
|
|
18
26
|
describe(`[startup] ${Build.name}`, () => {
|
|
19
27
|
let args: ConstructorParameters<typeof Build>[0];
|
|
@@ -22,33 +30,59 @@ describe(`[startup] ${Build.name}`, () => {
|
|
|
22
30
|
beforeEach(() => {
|
|
23
31
|
args = {};
|
|
24
32
|
packages = [];
|
|
25
|
-
jest.
|
|
33
|
+
jest.clearAllMocks();
|
|
26
34
|
jest.mocked(getPackages).mockImplementation(() => packages);
|
|
27
35
|
});
|
|
28
36
|
|
|
29
37
|
const subject = async () => new Build(args).execute();
|
|
30
38
|
|
|
31
|
-
function itPreparesThePackage() {
|
|
39
|
+
function itPreparesThePackage({ copyFiles = false }: { copyFiles?: boolean } = {}) {
|
|
32
40
|
test('prepares the package', async () => {
|
|
33
41
|
await subject();
|
|
34
42
|
|
|
35
43
|
expect(lernaExec).toHaveBeenCalledWith({
|
|
36
44
|
cmd: 'startup prepare-package',
|
|
45
|
+
parallel: true,
|
|
37
46
|
scope: packages.map(({ name }) => name),
|
|
38
47
|
stream: true,
|
|
48
|
+
...(copyFiles ? { '--': ['--copy-files'] } : {}),
|
|
39
49
|
});
|
|
40
50
|
});
|
|
41
51
|
}
|
|
42
52
|
|
|
53
|
+
function itRunsCompileAndTypeCheck({ useTsc = false }: { useTsc?: boolean } = {}) {
|
|
54
|
+
test('runs compile and typeCheck', async () => {
|
|
55
|
+
await subject();
|
|
56
|
+
|
|
57
|
+
expect(compile).toHaveBeenCalledWith({
|
|
58
|
+
packages: packages.map(({ name }) => name),
|
|
59
|
+
...(useTsc ? { useTsc } : {}),
|
|
60
|
+
});
|
|
61
|
+
expect(typeCheck).toHaveBeenCalledWith({ packages: packages.map(({ name }) => name) });
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
test('command is greedy', () => {
|
|
66
|
+
expect(new Build(args).greedy).toBe(true);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
test('selects TSC and Webpack packages', async () => {
|
|
70
|
+
await subject();
|
|
71
|
+
|
|
72
|
+
expect(getPackages).toHaveBeenCalledWith({ type: [PackageType.TSC, PackageType.Webpack] });
|
|
73
|
+
});
|
|
74
|
+
|
|
43
75
|
describe('with TSC package', () => {
|
|
44
76
|
beforeEach(() => packages.push(createPackage({ type: PackageType.TSC })));
|
|
45
77
|
|
|
46
78
|
itPreparesThePackage();
|
|
79
|
+
itRunsCompileAndTypeCheck();
|
|
47
80
|
|
|
48
|
-
|
|
49
|
-
|
|
81
|
+
describe('with --use-tsc flag', () => {
|
|
82
|
+
beforeEach(() => (args['use-tsc'] = true));
|
|
50
83
|
|
|
51
|
-
|
|
84
|
+
itPreparesThePackage({ copyFiles: true });
|
|
85
|
+
itRunsCompileAndTypeCheck({ useTsc: true });
|
|
52
86
|
});
|
|
53
87
|
});
|
|
54
88
|
|
|
@@ -56,6 +90,7 @@ describe(`[startup] ${Build.name}`, () => {
|
|
|
56
90
|
beforeEach(() => packages.push(createPackage({ type: PackageType.Webpack })));
|
|
57
91
|
|
|
58
92
|
itPreparesThePackage();
|
|
93
|
+
itRunsCompileAndTypeCheck();
|
|
59
94
|
|
|
60
95
|
test('registers Kendo UI license', async () => {
|
|
61
96
|
await subject();
|
|
@@ -88,34 +123,6 @@ describe(`[startup] ${Build.name}`, () => {
|
|
|
88
123
|
});
|
|
89
124
|
});
|
|
90
125
|
|
|
91
|
-
describe('with "esbuild"', () => {
|
|
92
|
-
beforeEach(() => (args.esbuild = true));
|
|
93
|
-
|
|
94
|
-
test('enables esbuild loader', async () => {
|
|
95
|
-
await subject();
|
|
96
|
-
|
|
97
|
-
expect(lernaExec).toHaveBeenCalledWith(
|
|
98
|
-
expect.objectContaining({
|
|
99
|
-
'--': ['--esbuild'],
|
|
100
|
-
})
|
|
101
|
-
);
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
describe('with "experimental-bundlers"', () => {
|
|
106
|
-
beforeEach(() => (args['experimental-bundlers'] = true));
|
|
107
|
-
|
|
108
|
-
test('enables swc-loader', async () => {
|
|
109
|
-
await subject();
|
|
110
|
-
|
|
111
|
-
expect(lernaExec).toHaveBeenCalledWith(
|
|
112
|
-
expect.objectContaining({
|
|
113
|
-
'--': ['--experimental-bundlers'],
|
|
114
|
-
})
|
|
115
|
-
);
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
|
|
119
126
|
describe('with "stat"', () => {
|
|
120
127
|
beforeEach(() => (args.stat = true));
|
|
121
128
|
|
|
@@ -141,6 +148,18 @@ describe(`[startup] ${Build.name}`, () => {
|
|
|
141
148
|
);
|
|
142
149
|
});
|
|
143
150
|
});
|
|
151
|
+
|
|
152
|
+
describe('with "cdn-path"', () => {
|
|
153
|
+
beforeEach(() => (args['cdn-path'] = 'https://example.com/foo'));
|
|
154
|
+
|
|
155
|
+
afterEach(() => delete process.env.CLIENT_CDN_PATH);
|
|
156
|
+
|
|
157
|
+
test('sets process.env.CLIENT_CDN_PATH', async () => {
|
|
158
|
+
await subject();
|
|
159
|
+
|
|
160
|
+
expect(process.env.CLIENT_CDN_PATH).toBe(args['cdn-path']);
|
|
161
|
+
});
|
|
162
|
+
});
|
|
144
163
|
});
|
|
145
164
|
|
|
146
165
|
describe('with "scope"', () => {
|
|
@@ -149,7 +168,9 @@ describe(`[startup] ${Build.name}`, () => {
|
|
|
149
168
|
test('selects scoped packages', async () => {
|
|
150
169
|
await subject();
|
|
151
170
|
|
|
152
|
-
expect(getPackages).toHaveBeenCalledWith(
|
|
171
|
+
expect(getPackages).toHaveBeenCalledWith(
|
|
172
|
+
expect.objectContaining({ scope: args.scope })
|
|
173
|
+
);
|
|
153
174
|
});
|
|
154
175
|
});
|
|
155
176
|
|
|
@@ -159,19 +180,23 @@ describe(`[startup] ${Build.name}`, () => {
|
|
|
159
180
|
test('selectively ignores packages', async () => {
|
|
160
181
|
await subject();
|
|
161
182
|
|
|
162
|
-
expect(getPackages).toHaveBeenCalledWith(
|
|
183
|
+
expect(getPackages).toHaveBeenCalledWith(
|
|
184
|
+
expect.objectContaining({ ignore: args.ignore })
|
|
185
|
+
);
|
|
163
186
|
});
|
|
164
187
|
});
|
|
165
188
|
|
|
166
|
-
describe('with "
|
|
167
|
-
beforeEach(() => (args[
|
|
189
|
+
describe.each(['esbuild', 'experimental-bundlers'])('with "%s"', arg => {
|
|
190
|
+
beforeEach(() => ((args as Record<string, any>)[arg] = true));
|
|
168
191
|
|
|
169
|
-
|
|
192
|
+
test('logs warning', async () => {
|
|
193
|
+
const logSpy = jest.spyOn(log, 'warning');
|
|
170
194
|
|
|
171
|
-
test('sets process.env.CLIENT_CDN_PATH', async () => {
|
|
172
195
|
await subject();
|
|
173
196
|
|
|
174
|
-
expect(
|
|
197
|
+
expect(logSpy).toHaveBeenCalledWith(
|
|
198
|
+
expect.stringContaining(`--${arg} option is obsolete`)
|
|
199
|
+
);
|
|
175
200
|
});
|
|
176
201
|
});
|
|
177
202
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { exec, execSync } from 'child_process';
|
|
2
|
+
import { Clean } from '../clean';
|
|
3
|
+
|
|
4
|
+
jest.mock('child_process', () => ({
|
|
5
|
+
execSync: jest.fn(),
|
|
6
|
+
exec: jest.fn(),
|
|
7
|
+
}));
|
|
8
|
+
|
|
9
|
+
describe(`[startup] ${Clean.name}`, () => {
|
|
10
|
+
beforeEach(() => {
|
|
11
|
+
jest.clearAllMocks();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const subject = async () => new Clean().execute();
|
|
15
|
+
|
|
16
|
+
test.each(['npx nx reset', 'npx jest --clearCache', 'npm cache clear --force'])(
|
|
17
|
+
'runs "%s"',
|
|
18
|
+
async command => {
|
|
19
|
+
await subject();
|
|
20
|
+
|
|
21
|
+
expect(execSync).toHaveBeenCalledWith(command, {
|
|
22
|
+
stdio: ['ignore', 'ignore', 'inherit'],
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
test('runs "git clean -fdX"', async () => {
|
|
28
|
+
await subject();
|
|
29
|
+
|
|
30
|
+
expect(exec).toHaveBeenCalledWith('git clean -fdX');
|
|
31
|
+
});
|
|
32
|
+
});
|