From 63a0979de8ab7b4866da32f0ccd5bbdcce5ecc99 Mon Sep 17 00:00:00 2001 From: Thilo Haas Date: Thu, 8 Aug 2024 10:23:01 +0200 Subject: [PATCH] readd build --- .gitignore | 2 +- build/app-data/index.d.ts | 26 - build/app-data/index.js | 114 - build/app-data/index.js.map | 1 - build/app-globals/index.d.ts | 1 - build/app-globals/index.js | 4 - build/app-globals/index.js.map | 1 - build/cli/check-version.d.ts | 16 - build/cli/check-version.js | 29 - build/cli/check-version.js.map | 1 - build/cli/config-flags.d.ts | 132 - build/cli/config-flags.js | 229 -- build/cli/config-flags.js.map | 1 - build/cli/find-config.d.ts | 23 - build/cli/find-config.js | 58 - build/cli/find-config.js.map | 1 - build/cli/index.d.ts | 3 - build/cli/index.js | 3 - build/cli/index.js.map | 1 - build/cli/ionic-config.d.ts | 25 - build/cli/ionic-config.js | 55 - build/cli/ionic-config.js.map | 1 - build/cli/load-compiler.d.ts | 3 - build/cli/load-compiler.js | 12 - build/cli/load-compiler.js.map | 1 - build/cli/logs.d.ts | 46 - build/cli/logs.js | 103 - build/cli/logs.js.map | 1 - build/cli/parse-flags.d.ts | 50 - build/cli/parse-flags.js | 460 --- build/cli/parse-flags.js.map | 1 - build/cli/public.d.ts | 19 - build/cli/public.js | 2 - build/cli/public.js.map | 1 - build/cli/run.d.ts | 14 - build/cli/run.js | 135 - build/cli/run.js.map | 1 - build/cli/task-build.d.ts | 3 - build/cli/task-build.js | 41 - build/cli/task-build.js.map | 1 - build/cli/task-docs.d.ts | 3 - build/cli/task-docs.js | 12 - build/cli/task-docs.js.map | 1 - build/cli/task-generate.d.ts | 35 - build/cli/task-generate.js | 255 -- build/cli/task-generate.js.map | 1 - build/cli/task-help.d.ts | 10 - build/cli/task-help.js | 52 - build/cli/task-help.js.map | 1 - build/cli/task-info.d.ts | 9 - build/cli/task-info.js | 24 - build/cli/task-info.js.map | 1 - build/cli/task-prerender.d.ts | 4 - build/cli/task-prerender.js | 33 - build/cli/task-prerender.js.map | 1 - build/cli/task-serve.d.ts | 2 - build/cli/task-serve.js | 26 - build/cli/task-serve.js.map | 1 - build/cli/task-telemetry.d.ts | 10 - build/cli/task-telemetry.js | 40 - build/cli/task-telemetry.js.map | 1 - build/cli/task-test.d.ts | 7 - build/cli/task-test.js | 55 - build/cli/task-test.js.map | 1 - build/cli/task-watch.d.ts | 3 - build/cli/task-watch.js | 50 - build/cli/task-watch.js.map | 1 - build/cli/telemetry/helpers.d.ts | 25 - build/cli/telemetry/helpers.js | 53 - build/cli/telemetry/helpers.js.map | 1 - build/cli/telemetry/shouldTrack.d.ts | 9 - build/cli/telemetry/shouldTrack.js | 13 - build/cli/telemetry/shouldTrack.js.map | 1 - build/cli/telemetry/telemetry.d.ts | 89 - build/cli/telemetry/telemetry.js | 398 --- build/cli/telemetry/telemetry.js.map | 1 - build/cli/telemetry/test/helpers.spec.d.ts | 1 - build/cli/telemetry/test/helpers.spec.js | 85 - build/cli/telemetry/test/helpers.spec.js.map | 1 - build/cli/telemetry/test/telemetry.spec.d.ts | 1 - build/cli/telemetry/test/telemetry.spec.js | 234 -- .../cli/telemetry/test/telemetry.spec.js.map | 1 - build/cli/test/ionic-config.spec.d.ts | 1 - build/cli/test/ionic-config.spec.js | 75 - build/cli/test/ionic-config.spec.js.map | 1 - build/cli/test/parse-flags.spec.d.ts | 1 - build/cli/test/parse-flags.spec.js | 393 --- build/cli/test/parse-flags.spec.js.map | 1 - build/cli/test/run.spec.d.ts | 1 - build/cli/test/run.spec.js | 218 -- build/cli/test/run.spec.js.map | 1 - build/cli/test/task-generate.spec.d.ts | 1 - build/cli/test/task-generate.spec.js | 106 - build/cli/test/task-generate.spec.js.map | 1 - build/client/client-build.d.ts | 2 - build/client/client-build.js | 8 - build/client/client-build.js.map | 1 - build/client/client-host-ref.d.ts | 28 - build/client/client-host-ref.js | 55 - build/client/client-host-ref.js.map | 1 - build/client/client-load-module.d.ts | 5 - build/client/client-load-module.js | 29 - build/client/client-load-module.js.map | 1 - build/client/client-log.d.ts | 7 - build/client/client-log.js | 14 - build/client/client-log.js.map | 1 - build/client/client-patch-browser.d.ts | 2 - build/client/client-patch-browser.js | 42 - build/client/client-patch-browser.js.map | 1 - build/client/client-style.d.ts | 3 - build/client/client-style.js | 3 - build/client/client-style.js.map | 1 - build/client/client-task-queue.d.ts | 4 - build/client/client-task-queue.js | 90 - build/client/client-task-queue.js.map | 1 - build/client/client-window.d.ts | 17 - build/client/client-window.js | 47 - build/client/client-window.js.map | 1 - build/client/index.d.ts | 9 - build/client/index.js | 10 - build/client/index.js.map | 1 - build/compiler/app-core/app-data.d.ts | 21 - build/compiler/app-core/app-data.js | 172 -- build/compiler/app-core/app-data.js.map | 1 - build/compiler/app-core/app-es5-disabled.d.ts | 2 - build/compiler/app-core/app-es5-disabled.js | 139 - .../compiler/app-core/app-es5-disabled.js.map | 1 - build/compiler/app-core/app-polyfills.d.ts | 3 - build/compiler/app-core/app-polyfills.js | 16 - build/compiler/app-core/app-polyfills.js.map | 1 - build/compiler/app-core/bundle-app-core.d.ts | 13 - build/compiler/app-core/bundle-app-core.js | 44 - .../compiler/app-core/bundle-app-core.js.map | 1 - build/compiler/build/build-ctx.d.ts | 89 - build/compiler/build/build-ctx.js | 198 -- build/compiler/build/build-ctx.js.map | 1 - build/compiler/build/build-finish.d.ts | 14 - build/compiler/build/build-finish.js | 160 -- build/compiler/build/build-finish.js.map | 1 - build/compiler/build/build-hmr.d.ts | 2 - build/compiler/build/build-hmr.js | 196 -- build/compiler/build/build-hmr.js.map | 1 - build/compiler/build/build-results.d.ts | 2 - build/compiler/build/build-results.js | 36 - build/compiler/build/build-results.js.map | 1 - build/compiler/build/build-stats.d.ts | 20 - build/compiler/build/build-stats.js | 169 -- build/compiler/build/build-stats.js.map | 1 - build/compiler/build/build.d.ts | 3 - build/compiler/build/build.js | 58 - build/compiler/build/build.js.map | 1 - build/compiler/build/compiler-ctx.d.ts | 43 - build/compiler/build/compiler-ctx.js | 132 - build/compiler/build/compiler-ctx.js.map | 1 - build/compiler/build/full-build.d.ts | 8 - build/compiler/build/full-build.js | 40 - build/compiler/build/full-build.js.map | 1 - .../compiler/build/test/build-stats.spec.d.ts | 1 - build/compiler/build/test/build-stats.spec.js | 60 - .../build/test/build-stats.spec.js.map | 1 - build/compiler/build/validate-files.d.ts | 10 - build/compiler/build/validate-files.js | 20 - build/compiler/build/validate-files.js.map | 1 - build/compiler/build/watch-build.d.ts | 13 - build/compiler/build/watch-build.js | 290 -- build/compiler/build/watch-build.js.map | 1 - build/compiler/build/write-build.d.ts | 8 - build/compiler/build/write-build.js | 35 - build/compiler/build/write-build.js.map | 1 - build/compiler/bundle/app-data-plugin.d.ts | 19 - build/compiler/bundle/app-data-plugin.js | 191 -- build/compiler/bundle/app-data-plugin.js.map | 1 - build/compiler/bundle/bundle-interface.d.ts | 63 - build/compiler/bundle/bundle-interface.js | 2 - build/compiler/bundle/bundle-interface.js.map | 1 - build/compiler/bundle/bundle-output.d.ts | 13 - build/compiler/bundle/bundle-output.js | 142 - build/compiler/bundle/bundle-output.js.map | 1 - build/compiler/bundle/constants.d.ts | 2 - build/compiler/bundle/constants.js | 3 - build/compiler/bundle/constants.js.map | 1 - .../compiler/bundle/core-resolve-plugin.d.ts | 5 - build/compiler/bundle/core-resolve-plugin.js | 132 - .../bundle/core-resolve-plugin.js.map | 1 - build/compiler/bundle/dev-module.d.ts | 2 - build/compiler/bundle/dev-module.js | 157 - build/compiler/bundle/dev-module.js.map | 1 - .../bundle/dev-node-module-resolve.d.ts | 4 - .../bundle/dev-node-module-resolve.js | 62 - .../bundle/dev-node-module-resolve.js.map | 1 - build/compiler/bundle/entry-alias-ids.d.ts | 13 - build/compiler/bundle/entry-alias-ids.js | 14 - build/compiler/bundle/entry-alias-ids.js.map | 1 - build/compiler/bundle/ext-format-plugin.d.ts | 3 - build/compiler/bundle/ext-format-plugin.js | 52 - .../compiler/bundle/ext-format-plugin.js.map | 1 - .../bundle/ext-transforms-plugin.d.ts | 14 - .../compiler/bundle/ext-transforms-plugin.js | 124 - .../bundle/ext-transforms-plugin.js.map | 1 - build/compiler/bundle/file-load-plugin.d.ts | 3 - build/compiler/bundle/file-load-plugin.js | 14 - build/compiler/bundle/file-load-plugin.js.map | 1 - build/compiler/bundle/loader-plugin.d.ts | 14 - build/compiler/bundle/loader-plugin.js | 42 - build/compiler/bundle/loader-plugin.js.map | 1 - build/compiler/bundle/plugin-helper.d.ts | 5 - build/compiler/bundle/plugin-helper.js | 69 - build/compiler/bundle/plugin-helper.js.map | 1 - build/compiler/bundle/server-plugin.d.ts | 3 - build/compiler/bundle/server-plugin.js | 59 - build/compiler/bundle/server-plugin.js.map | 1 - .../bundle/test/core-resolve-plugin.spec.d.ts | 1 - .../bundle/test/core-resolve-plugin.spec.js | 62 - .../test/core-resolve-plugin.spec.js.map | 1 - .../test/ext-transforms-plugin.spec.d.ts | 1 - .../bundle/test/ext-transforms-plugin.spec.js | 113 - .../test/ext-transforms-plugin.spec.js.map | 1 - build/compiler/bundle/typescript-plugin.d.ts | 12 - build/compiler/bundle/typescript-plugin.js | 85 - .../compiler/bundle/typescript-plugin.js.map | 1 - build/compiler/bundle/user-index-plugin.d.ts | 3 - build/compiler/bundle/user-index-plugin.js | 25 - .../compiler/bundle/user-index-plugin.js.map | 1 - build/compiler/bundle/worker-plugin.d.ts | 4 - build/compiler/bundle/worker-plugin.js | 393 --- build/compiler/bundle/worker-plugin.js.map | 1 - build/compiler/cache.d.ts | 23 - build/compiler/cache.js | 152 - build/compiler/cache.js.map | 1 - build/compiler/compiler.d.ts | 8 - build/compiler/compiler.js | 53 - build/compiler/compiler.js.map | 1 - build/compiler/config/config-utils.d.ts | 18 - build/compiler/config/config-utils.js | 65 - build/compiler/config/config-utils.js.map | 1 - build/compiler/config/constants.d.ts | 5 - build/compiler/config/constants.js | 6 - build/compiler/config/constants.js.map | 1 - build/compiler/config/load-config.d.ts | 17 - build/compiler/config/load-config.js | 139 - build/compiler/config/load-config.js.map | 1 - build/compiler/config/outputs/index.d.ts | 2 - build/compiler/config/outputs/index.js | 35 - build/compiler/config/outputs/index.js.map | 1 - .../config/outputs/validate-collection.d.ts | 10 - .../config/outputs/validate-collection.js | 23 - .../config/outputs/validate-collection.js.map | 1 - .../outputs/validate-custom-element.d.ts | 10 - .../config/outputs/validate-custom-element.js | 56 - .../outputs/validate-custom-element.js.map | 1 - .../outputs/validate-custom-output.d.ts | 2 - .../config/outputs/validate-custom-output.js | 24 - .../outputs/validate-custom-output.js.map | 1 - .../config/outputs/validate-dist.d.ts | 11 - .../compiler/config/outputs/validate-dist.js | 142 - .../config/outputs/validate-dist.js.map | 1 - .../config/outputs/validate-docs.d.ts | 2 - .../compiler/config/outputs/validate-docs.js | 85 - .../config/outputs/validate-docs.js.map | 1 - .../outputs/validate-hydrate-script.d.ts | 2 - .../config/outputs/validate-hydrate-script.js | 48 - .../outputs/validate-hydrate-script.js.map | 1 - .../config/outputs/validate-lazy.d.ts | 2 - .../compiler/config/outputs/validate-lazy.js | 18 - .../config/outputs/validate-lazy.js.map | 1 - .../config/outputs/validate-stats.d.ts | 2 - .../compiler/config/outputs/validate-stats.js | 24 - .../config/outputs/validate-stats.js.map | 1 - .../compiler/config/outputs/validate-www.d.ts | 2 - build/compiler/config/outputs/validate-www.js | 94 - .../config/outputs/validate-www.js.map | 1 - .../config/test/load-config.spec.d.ts | 1 - .../compiler/config/test/load-config.spec.js | 105 - .../config/test/load-config.spec.js.map | 1 - .../test/validate-config-sourcemap.spec.d.ts | 1 - .../test/validate-config-sourcemap.spec.js | 72 - .../validate-config-sourcemap.spec.js.map | 1 - .../config/test/validate-config.spec.d.ts | 1 - .../config/test/validate-config.spec.js | 439 --- .../config/test/validate-config.spec.js.map | 1 - .../config/test/validate-copy.spec.d.ts | 1 - .../config/test/validate-copy.spec.js | 43 - .../config/test/validate-copy.spec.js.map | 1 - .../config/test/validate-custom.spec.d.ts | 1 - .../config/test/validate-custom.spec.js | 27 - .../config/test/validate-custom.spec.js.map | 1 - .../config/test/validate-dev-server.spec.d.ts | 1 - .../config/test/validate-dev-server.spec.js | 218 -- .../test/validate-dev-server.spec.js.map | 1 - .../config/test/validate-docs.spec.d.ts | 1 - .../config/test/validate-docs.spec.js | 32 - .../config/test/validate-docs.spec.js.map | 1 - .../config/test/validate-hydrated.spec.d.ts | 1 - .../config/test/validate-hydrated.spec.js | 32 - .../config/test/validate-hydrated.spec.js.map | 1 - .../config/test/validate-namespace.spec.d.ts | 1 - .../config/test/validate-namespace.spec.js | 64 - .../test/validate-namespace.spec.js.map | 1 - .../validate-output-dist-collection.spec.d.ts | 1 - .../validate-output-dist-collection.spec.js | 72 - ...alidate-output-dist-collection.spec.js.map | 1 - ...idate-output-dist-custom-element.spec.d.ts | 1 - ...alidate-output-dist-custom-element.spec.js | 358 --- ...ate-output-dist-custom-element.spec.js.map | 1 - .../test/validate-output-dist.spec.d.ts | 1 - .../config/test/validate-output-dist.spec.js | 279 -- .../test/validate-output-dist.spec.js.map | 1 - .../config/test/validate-output-www.spec.d.ts | 1 - .../config/test/validate-output-www.spec.js | 346 --- .../test/validate-output-www.spec.js.map | 1 - .../config/test/validate-paths.spec.d.ts | 1 - .../config/test/validate-paths.spec.js | 155 - .../config/test/validate-paths.spec.js.map | 1 - .../test/validate-rollup-config.spec.d.ts | 1 - .../test/validate-rollup-config.spec.js | 71 - .../test/validate-rollup-config.spec.js.map | 1 - .../test/validate-service-worker.spec.d.ts | 1 - .../test/validate-service-worker.spec.js | 174 -- .../test/validate-service-worker.spec.js.map | 1 - .../config/test/validate-stats.spec.d.ts | 1 - .../config/test/validate-stats.spec.js | 45 - .../config/test/validate-stats.spec.js.map | 1 - .../config/test/validate-testing.spec.d.ts | 1 - .../config/test/validate-testing.spec.js | 636 ----- .../config/test/validate-testing.spec.js.map | 1 - .../config/test/validate-workers.spec.d.ts | 1 - .../config/test/validate-workers.spec.js | 45 - .../config/test/validate-workers.spec.js.map | 1 - build/compiler/config/transpile-options.d.ts | 23 - build/compiler/config/transpile-options.js | 149 - .../compiler/config/transpile-options.js.map | 1 - build/compiler/config/validate-config.d.ts | 29 - build/compiler/config/validate-config.js | 210 -- build/compiler/config/validate-config.js.map | 1 - build/compiler/config/validate-copy.d.ts | 8 - build/compiler/config/validate-copy.js | 23 - build/compiler/config/validate-copy.js.map | 1 - .../compiler/config/validate-dev-server.d.ts | 2 - build/compiler/config/validate-dev-server.js | 155 - .../config/validate-dev-server.js.map | 1 - build/compiler/config/validate-hydrated.d.ts | 9 - build/compiler/config/validate-hydrated.js | 45 - .../compiler/config/validate-hydrated.js.map | 1 - build/compiler/config/validate-namespace.d.ts | 23 - build/compiler/config/validate-namespace.js | 65 - .../compiler/config/validate-namespace.js.map | 1 - build/compiler/config/validate-paths.d.ts | 25 - build/compiler/config/validate-paths.js | 55 - build/compiler/config/validate-paths.js.map | 1 - build/compiler/config/validate-plugins.d.ts | 2 - build/compiler/config/validate-plugins.js | 34 - build/compiler/config/validate-plugins.js.map | 1 - build/compiler/config/validate-prerender.d.ts | 2 - build/compiler/config/validate-prerender.js | 28 - .../compiler/config/validate-prerender.js.map | 1 - .../config/validate-rollup-config.d.ts | 14 - .../compiler/config/validate-rollup-config.js | 38 - .../config/validate-rollup-config.js.map | 1 - .../config/validate-service-worker.d.ts | 22 - .../config/validate-service-worker.js | 84 - .../config/validate-service-worker.js.map | 1 - build/compiler/config/validate-testing.d.ts | 2 - build/compiler/config/validate-testing.js | 169 -- build/compiler/config/validate-testing.js.map | 1 - build/compiler/config/validate-workers.d.ts | 2 - build/compiler/config/validate-workers.js | 16 - build/compiler/config/validate-workers.js.map | 1 - build/compiler/docs/constants.d.ts | 2 - build/compiler/docs/constants.js | 3 - build/compiler/docs/constants.js.map | 1 - build/compiler/docs/custom/index.d.ts | 2 - build/compiler/docs/custom/index.js | 16 - build/compiler/docs/custom/index.js.map | 1 - build/compiler/docs/generate-doc-data.d.ts | 12 - build/compiler/docs/generate-doc-data.js | 420 --- build/compiler/docs/generate-doc-data.js.map | 1 - build/compiler/docs/json/index.d.ts | 3 - build/compiler/docs/json/index.js | 58 - build/compiler/docs/json/index.js.map | 1 - build/compiler/docs/readme/docs-util.d.ts | 6 - build/compiler/docs/readme/docs-util.js | 110 - build/compiler/docs/readme/docs-util.js.map | 1 - build/compiler/docs/readme/index.d.ts | 3 - build/compiler/docs/readme/index.js | 40 - build/compiler/docs/readme/index.js.map | 1 - .../docs/readme/markdown-css-props.d.ts | 2 - .../docs/readme/markdown-css-props.js | 19 - .../docs/readme/markdown-css-props.js.map | 1 - .../docs/readme/markdown-dependencies.d.ts | 2 - .../docs/readme/markdown-dependencies.js | 45 - .../docs/readme/markdown-dependencies.js.map | 1 - .../compiler/docs/readme/markdown-events.d.ts | 2 - build/compiler/docs/readme/markdown-events.js | 24 - .../docs/readme/markdown-events.js.map | 1 - .../docs/readme/markdown-methods.d.ts | 2 - .../compiler/docs/readme/markdown-methods.js | 42 - .../docs/readme/markdown-methods.js.map | 1 - .../docs/readme/markdown-overview.d.ts | 6 - .../compiler/docs/readme/markdown-overview.js | 17 - .../docs/readme/markdown-overview.js.map | 1 - .../compiler/docs/readme/markdown-parts.d.ts | 7 - build/compiler/docs/readme/markdown-parts.js | 24 - .../docs/readme/markdown-parts.js.map | 1 - .../compiler/docs/readme/markdown-props.d.ts | 2 - build/compiler/docs/readme/markdown-props.js | 36 - .../docs/readme/markdown-props.js.map | 1 - .../compiler/docs/readme/markdown-slots.d.ts | 7 - build/compiler/docs/readme/markdown-slots.js | 24 - .../docs/readme/markdown-slots.js.map | 1 - .../compiler/docs/readme/markdown-usage.d.ts | 6 - build/compiler/docs/readme/markdown-usage.js | 38 - .../docs/readme/markdown-usage.js.map | 1 - build/compiler/docs/readme/output-docs.d.ts | 3 - build/compiler/docs/readme/output-docs.js | 65 - build/compiler/docs/readme/output-docs.js.map | 1 - build/compiler/docs/style-docs.d.ts | 12 - build/compiler/docs/style-docs.js | 79 - build/compiler/docs/style-docs.js.map | 1 - build/compiler/docs/test/docs-util.spec.d.ts | 1 - build/compiler/docs/test/docs-util.spec.js | 44 - .../compiler/docs/test/docs-util.spec.js.map | 1 - .../docs/test/generate-doc-data.spec.d.ts | 1 - .../docs/test/generate-doc-data.spec.js | 160 -- .../docs/test/generate-doc-data.spec.js.map | 1 - .../docs/test/markdown-overview.spec.d.ts | 1 - .../docs/test/markdown-overview.spec.js | 43 - .../docs/test/markdown-overview.spec.js.map | 1 - .../docs/test/markdown-props.spec.d.ts | 1 - .../compiler/docs/test/markdown-props.spec.js | 42 - .../docs/test/markdown-props.spec.js.map | 1 - build/compiler/docs/test/style-docs.spec.d.ts | 1 - build/compiler/docs/test/style-docs.spec.js | 126 - .../compiler/docs/test/style-docs.spec.js.map | 1 - build/compiler/docs/vscode/index.d.ts | 16 - build/compiler/docs/vscode/index.js | 88 - build/compiler/docs/vscode/index.js.map | 1 - build/compiler/entries/component-bundles.d.ts | 13 - build/compiler/entries/component-bundles.js | 177 -- .../compiler/entries/component-bundles.js.map | 1 - build/compiler/entries/component-graph.d.ts | 2 - build/compiler/entries/component-graph.js | 13 - build/compiler/entries/component-graph.js.map | 1 - build/compiler/entries/default-bundles.d.ts | 17 - build/compiler/entries/default-bundles.js | 70 - build/compiler/entries/default-bundles.js.map | 1 - .../resolve-component-dependencies.d.ts | 13 - .../entries/resolve-component-dependencies.js | 110 - .../resolve-component-dependencies.js.map | 1 - build/compiler/events.d.ts | 2 - build/compiler/events.js | 63 - build/compiler/events.js.map | 1 - build/compiler/fs-watch/fs-watch-rebuild.d.ts | 54 - build/compiler/fs-watch/fs-watch-rebuild.js | 130 - .../compiler/fs-watch/fs-watch-rebuild.js.map | 1 - build/compiler/html/add-script-attr.d.ts | 2 - build/compiler/html/add-script-attr.js | 19 - build/compiler/html/add-script-attr.js.map | 1 - build/compiler/html/canonical-link.d.ts | 1 - build/compiler/html/canonical-link.js | 27 - build/compiler/html/canonical-link.js.map | 1 - build/compiler/html/html-utils.d.ts | 9 - build/compiler/html/html-utils.js | 13 - build/compiler/html/html-utils.js.map | 1 - .../compiler/html/inject-module-preloads.d.ts | 3 - build/compiler/html/inject-module-preloads.js | 30 - .../html/inject-module-preloads.js.map | 1 - build/compiler/html/inject-sw-script.d.ts | 2 - build/compiler/html/inject-sw-script.js | 30 - build/compiler/html/inject-sw-script.js.map | 1 - build/compiler/html/inline-esm-import.d.ts | 35 - build/compiler/html/inline-esm-import.js | 137 - build/compiler/html/inline-esm-import.js.map | 1 - build/compiler/html/inline-style-sheets.d.ts | 2 - build/compiler/html/inline-style-sheets.js | 24 - .../compiler/html/inline-style-sheets.js.map | 1 - .../compiler/html/relocate-meta-charset.d.ts | 1 - build/compiler/html/relocate-meta-charset.js | 16 - .../html/relocate-meta-charset.js.map | 1 - build/compiler/html/remove-unused-styles.d.ts | 2 - build/compiler/html/remove-unused-styles.js | 57 - .../compiler/html/remove-unused-styles.js.map | 1 - .../html/test/remove-unused-styles.spec.d.ts | 1 - .../html/test/remove-unused-styles.spec.js | 242 -- .../test/remove-unused-styles.spec.js.map | 1 - .../test/update-esm-import-paths.spec.d.ts | 1 - .../html/test/update-esm-import-paths.spec.js | 55 - .../test/update-esm-import-paths.spec.js.map | 1 - .../html/update-global-styles-link.d.ts | 2 - .../html/update-global-styles-link.js | 25 - .../html/update-global-styles-link.js.map | 1 - build/compiler/html/used-components.d.ts | 8 - build/compiler/html/used-components.js | 21 - build/compiler/html/used-components.js.map | 1 - .../compiler/html/validate-manifest-json.d.ts | 2 - build/compiler/html/validate-manifest-json.js | 52 - .../html/validate-manifest-json.js.map | 1 - build/compiler/index.d.ts | 15 - build/compiler/index.js | 15 - build/compiler/index.js.map | 1 - build/compiler/optimize/autoprefixer.d.ts | 13 - build/compiler/optimize/autoprefixer.js | 108 - build/compiler/optimize/autoprefixer.js.map | 1 - build/compiler/optimize/minify-css.d.ts | 4 - build/compiler/optimize/minify-css.js | 42 - build/compiler/optimize/minify-css.js.map | 1 - build/compiler/optimize/minify-js.d.ts | 9 - build/compiler/optimize/minify-js.js | 129 - build/compiler/optimize/minify-js.js.map | 1 - build/compiler/optimize/optimize-css.d.ts | 9 - build/compiler/optimize/optimize-css.js | 31 - build/compiler/optimize/optimize-css.js.map | 1 - build/compiler/optimize/optimize-js.d.ts | 2 - build/compiler/optimize/optimize-js.js | 29 - build/compiler/optimize/optimize-js.js.map | 1 - build/compiler/optimize/optimize-module.d.ts | 38 - build/compiler/optimize/optimize-module.js | 210 -- .../compiler/optimize/optimize-module.js.map | 1 - .../copy/assets-copy-tasks.d.ts | 3 - .../output-targets/copy/assets-copy-tasks.js | 72 - .../copy/assets-copy-tasks.js.map | 1 - .../output-targets/copy/hashed-copy.d.ts | 33 - .../output-targets/copy/hashed-copy.js | 45 - .../output-targets/copy/hashed-copy.js.map | 1 - .../output-targets/copy/local-copy-tasks.d.ts | 3 - .../output-targets/copy/local-copy-tasks.js | 23 - .../copy/local-copy-tasks.js.map | 1 - .../output-targets/copy/output-copy.d.ts | 2 - .../output-targets/copy/output-copy.js | 77 - .../output-targets/copy/output-copy.js.map | 1 - .../output-targets/dist-collection/index.d.ts | 13 - .../output-targets/dist-collection/index.js | 112 - .../dist-collection/index.js.map | 1 - .../custom-elements-build-conditionals.d.ts | 10 - .../custom-elements-build-conditionals.js | 24 - .../custom-elements-build-conditionals.js.map | 1 - .../custom-elements-types.d.ts | 10 - .../custom-elements-types.js | 183 -- .../custom-elements-types.js.map | 1 - .../dist-custom-elements/index.d.ts | 52 - .../dist-custom-elements/index.js | 255 -- .../dist-custom-elements/index.js.map | 1 - .../bundle-hydrate-factory.d.ts | 2 - .../bundle-hydrate-factory.js | 62 - .../bundle-hydrate-factory.js.map | 1 - .../generate-hydrate-app.d.ts | 2 - .../generate-hydrate-app.js | 97 - .../generate-hydrate-app.js.map | 1 - .../hydrate-build-conditionals.d.ts | 2 - .../hydrate-build-conditionals.js | 36 - .../hydrate-build-conditionals.js.map | 1 - .../hydrate-factory-closure.d.ts | 3 - .../hydrate-factory-closure.js | 129 - .../hydrate-factory-closure.js.map | 1 - .../dist-hydrate-script/index.d.ts | 2 - .../dist-hydrate-script/index.js | 11 - .../dist-hydrate-script/index.js.map | 1 - .../relocate-hydrate-context.d.ts | 2 - .../relocate-hydrate-context.js | 16 - .../relocate-hydrate-context.js.map | 1 - .../update-to-hydrate-components.d.ts | 2 - .../update-to-hydrate-components.js | 25 - .../update-to-hydrate-components.js.map | 1 - .../write-hydrate-outputs.d.ts | 3 - .../write-hydrate-outputs.js | 55 - .../write-hydrate-outputs.js.map | 1 - .../dist-lazy/generate-cjs.d.ts | 3 - .../output-targets/dist-lazy/generate-cjs.js | 38 - .../dist-lazy/generate-cjs.js.map | 1 - .../dist-lazy/generate-esm-browser.d.ts | 3 - .../dist-lazy/generate-esm-browser.js | 27 - .../dist-lazy/generate-esm-browser.js.map | 1 - .../dist-lazy/generate-esm.d.ts | 3 - .../output-targets/dist-lazy/generate-esm.js | 60 - .../dist-lazy/generate-esm.js.map | 1 - .../dist-lazy/generate-lazy-module.d.ts | 17 - .../dist-lazy/generate-lazy-module.js | 285 -- .../dist-lazy/generate-lazy-module.js.map | 1 - .../dist-lazy/generate-system.d.ts | 3 - .../dist-lazy/generate-system.js | 77 - .../dist-lazy/generate-system.js.map | 1 - .../dist-lazy/lazy-build-conditionals.d.ts | 2 - .../dist-lazy/lazy-build-conditionals.js | 16 - .../dist-lazy/lazy-build-conditionals.js.map | 1 - .../dist-lazy/lazy-component-plugin.d.ts | 3 - .../dist-lazy/lazy-component-plugin.js | 30 - .../dist-lazy/lazy-component-plugin.js.map | 1 - .../output-targets/dist-lazy/lazy-output.d.ts | 2 - .../output-targets/dist-lazy/lazy-output.js | 165 -- .../dist-lazy/lazy-output.js.map | 1 - .../dist-lazy/write-lazy-entry-module.d.ts | 2 - .../dist-lazy/write-lazy-entry-module.js | 33 - .../dist-lazy/write-lazy-entry-module.js.map | 1 - build/compiler/output-targets/empty-dir.d.ts | 2 - build/compiler/output-targets/empty-dir.js | 24 - .../compiler/output-targets/empty-dir.js.map | 1 - build/compiler/output-targets/index.d.ts | 2 - build/compiler/output-targets/index.js | 46 - build/compiler/output-targets/index.js.map | 1 - .../output-targets/output-custom.d.ts | 2 - .../compiler/output-targets/output-custom.js | 18 - .../output-targets/output-custom.js.map | 1 - .../compiler/output-targets/output-docs.d.ts | 8 - build/compiler/output-targets/output-docs.js | 37 - .../output-targets/output-docs.js.map | 1 - .../output-targets/output-lazy-loader.d.ts | 2 - .../output-targets/output-lazy-loader.js | 82 - .../output-targets/output-lazy-loader.js.map | 1 - .../output-service-workers.d.ts | 7 - .../output-targets/output-service-workers.js | 26 - .../output-service-workers.js.map | 1 - .../compiler/output-targets/output-types.d.ts | 8 - build/compiler/output-targets/output-types.js | 18 - .../output-targets/output-types.js.map | 1 - build/compiler/output-targets/output-www.d.ts | 11 - build/compiler/output-targets/output-www.js | 144 - .../compiler/output-targets/output-www.js.map | 1 - .../test/build-conditionals.spec.d.ts | 1 - .../test/build-conditionals.spec.js | 90 - .../test/build-conditionals.spec.js.map | 1 - .../test/custom-elements-types.spec.d.ts | 1 - .../test/custom-elements-types.spec.js | 284 -- .../test/custom-elements-types.spec.js.map | 1 - .../test/output-targets-collection.spec.d.ts | 1 - .../test/output-targets-collection.spec.js | 59 - .../output-targets-collection.spec.js.map | 1 - ...put-targets-dist-custom-elements.spec.d.ts | 1 - ...utput-targets-dist-custom-elements.spec.js | 209 -- ...t-targets-dist-custom-elements.spec.js.map | 1 - .../test/output-targets-dist.spec.d.ts | 1 - .../test/output-targets-dist.spec.js | 77 - .../test/output-targets-dist.spec.js.map | 1 - .../test/output-targets-www-dist.spec.d.ts | 1 - .../test/output-targets-www-dist.spec.js | 64 - .../test/output-targets-www-dist.spec.js.map | 1 - .../test/output-targets-www.spec.d.ts | 1 - .../test/output-targets-www.spec.js | 56 - .../test/output-targets-www.spec.js.map | 1 - build/compiler/plugin/plugin.d.ts | 12 - build/compiler/plugin/plugin.js | 228 -- build/compiler/plugin/plugin.js.map | 1 - build/compiler/plugin/test/plugin.spec.d.ts | 1 - build/compiler/plugin/test/plugin.spec.js | 148 - build/compiler/plugin/test/plugin.spec.js.map | 1 - build/compiler/prerender/crawl-urls.d.ts | 3 - build/compiler/prerender/crawl-urls.js | 203 -- build/compiler/prerender/crawl-urls.js.map | 1 - .../compiler/prerender/prerender-config.d.ts | 2 - build/compiler/prerender/prerender-config.js | 19 - .../prerender/prerender-config.js.map | 1 - .../prerender/prerender-hydrate-options.d.ts | 2 - .../prerender/prerender-hydrate-options.js | 47 - .../prerender-hydrate-options.js.map | 1 - build/compiler/prerender/prerender-main.d.ts | 4 - build/compiler/prerender/prerender-main.js | 219 -- .../compiler/prerender/prerender-main.js.map | 1 - .../prerender/prerender-optimize.d.ts | 16 - .../compiler/prerender/prerender-optimize.js | 317 --- .../prerender/prerender-optimize.js.map | 1 - build/compiler/prerender/prerender-queue.d.ts | 3 - build/compiler/prerender/prerender-queue.js | 148 - .../compiler/prerender/prerender-queue.js.map | 1 - .../prerender/prerender-template-html.d.ts | 5 - .../prerender/prerender-template-html.js | 92 - .../prerender/prerender-template-html.js.map | 1 - .../prerender/prerender-worker-ctx.d.ts | 10 - .../prerender/prerender-worker-ctx.js | 20 - .../prerender/prerender-worker-ctx.js.map | 1 - .../compiler/prerender/prerender-worker.d.ts | 2 - build/compiler/prerender/prerender-worker.js | 196 -- .../prerender/prerender-worker.js.map | 1 - .../prerender/prerendered-write-path.d.ts | 2 - .../prerender/prerendered-write-path.js | 38 - .../prerender/prerendered-write-path.js.map | 1 - build/compiler/prerender/robots-txt.d.ts | 2 - build/compiler/prerender/robots-txt.js | 61 - build/compiler/prerender/robots-txt.js.map | 1 - build/compiler/prerender/sitemap-xml.d.ts | 3 - build/compiler/prerender/sitemap-xml.js | 95 - build/compiler/prerender/sitemap-xml.js.map | 1 - .../prerender/test/crawl-urls.spec.d.ts | 1 - .../prerender/test/crawl-urls.spec.js | 240 -- .../prerender/test/crawl-urls.spec.js.map | 1 - .../test/prerender-optimize.spec.d.ts | 1 - .../prerender/test/prerender-optimize.spec.js | 46 - .../test/prerender-optimize.spec.js.map | 1 - .../test/prerendered-write-path.spec.d.ts | 1 - .../test/prerendered-write-path.spec.js | 99 - .../test/prerendered-write-path.spec.js.map | 1 - build/compiler/public.d.ts | 73 - build/compiler/public.js | 2 - build/compiler/public.js.map | 1 - .../compiler/service-worker/generate-sw.d.ts | 7 - build/compiler/service-worker/generate-sw.js | 119 - .../service-worker/generate-sw.js.map | 1 - .../service-worker/service-worker-util.d.ts | 2 - .../service-worker/service-worker-util.js | 15 - .../service-worker/service-worker-util.js.map | 1 - .../test/service-worker-util.spec.d.ts | 1 - .../test/service-worker-util.spec.js | 30 - .../test/service-worker-util.spec.js.map | 1 - .../test/service-worker.spec.d.ts | 1 - .../test/service-worker.spec.js | 38 - .../test/service-worker.spec.js.map | 1 - build/compiler/style/css-imports.d.ts | 54 - build/compiler/style/css-imports.js | 225 -- build/compiler/style/css-imports.js.map | 1 - .../css-parser/css-parse-declarations.d.ts | 63 - .../css-parser/css-parse-declarations.js | 2 - .../css-parser/css-parse-declarations.js.map | 1 - .../style/css-parser/get-css-selectors.d.ts | 7 - .../style/css-parser/get-css-selectors.js | 53 - .../style/css-parser/get-css-selectors.js.map | 1 - .../compiler/style/css-parser/parse-css.d.ts | 2 - build/compiler/style/css-parser/parse-css.js | 428 --- .../style/css-parser/parse-css.js.map | 1 - .../style/css-parser/serialize-css.d.ts | 2 - .../style/css-parser/serialize-css.js | 271 -- .../style/css-parser/serialize-css.js.map | 1 - .../css-parser/test/get-selectors.spec.d.ts | 1 - .../css-parser/test/get-selectors.spec.js | 51 - .../css-parser/test/get-selectors.spec.js.map | 1 - .../css-parser/test/minify-css.spec.d.ts | 1 - .../style/css-parser/test/minify-css.spec.js | 32 - .../css-parser/test/minify-css.spec.js.map | 1 - .../css-parser/test/parse-serialize.spec.d.ts | 1 - .../css-parser/test/parse-serialize.spec.js | 300 -- .../test/parse-serialize.spec.js.map | 1 - .../style/css-parser/used-selectors.d.ts | 7 - .../style/css-parser/used-selectors.js | 43 - .../style/css-parser/used-selectors.js.map | 1 - build/compiler/style/css-to-esm.d.ts | 16 - build/compiler/style/css-to-esm.js | 262 -- build/compiler/style/css-to-esm.js.map | 1 - build/compiler/style/global-styles.d.ts | 2 - build/compiler/style/global-styles.js | 108 - build/compiler/style/global-styles.js.map | 1 - build/compiler/style/normalize-styles.d.ts | 2 - build/compiler/style/normalize-styles.js | 40 - build/compiler/style/normalize-styles.js.map | 1 - build/compiler/style/optimize-css.d.ts | 2 - build/compiler/style/optimize-css.js | 40 - build/compiler/style/optimize-css.js.map | 1 - build/compiler/style/scope-css.d.ts | 1 - build/compiler/style/scope-css.js | 5 - build/compiler/style/scope-css.js.map | 1 - build/compiler/style/style-utils.d.ts | 7 - build/compiler/style/style-utils.js | 42 - build/compiler/style/style-utils.js.map | 1 - .../style/test/build-conditionals.spec.d.ts | 1 - .../style/test/build-conditionals.spec.js | 159 -- .../style/test/build-conditionals.spec.js.map | 1 - .../compiler/style/test/css-imports.spec.d.ts | 1 - build/compiler/style/test/css-imports.spec.js | 432 --- .../style/test/css-imports.spec.js.map | 1 - .../style/test/optimize-css.spec.d.ts | 1 - .../compiler/style/test/optimize-css.spec.js | 233 -- .../style/test/optimize-css.spec.js.map | 1 - .../style/test/style-rebuild.spec.d.ts | 1 - .../compiler/style/test/style-rebuild.spec.js | 277 -- .../style/test/style-rebuild.spec.js.map | 1 - build/compiler/style/test/style.spec.d.ts | 1 - build/compiler/style/test/style.spec.js | 69 - build/compiler/style/test/style.spec.js.map | 1 - build/compiler/sys/config.d.ts | 9 - build/compiler/sys/config.js | 19 - build/compiler/sys/config.js.map | 1 - build/compiler/sys/environment.d.ts | 2 - build/compiler/sys/environment.js | 3 - build/compiler/sys/environment.js.map | 1 - .../sys/fetch/fetch-module-async.d.ts | 3 - .../compiler/sys/fetch/fetch-module-async.js | 26 - .../sys/fetch/fetch-module-async.js.map | 1 - build/compiler/sys/fetch/fetch-utils.d.ts | 23 - build/compiler/sys/fetch/fetch-utils.js | 81 - build/compiler/sys/fetch/fetch-utils.js.map | 1 - .../sys/fetch/tests/fetch-module.spec.d.ts | 1 - .../sys/fetch/tests/fetch-module.spec.js | 52 - .../sys/fetch/tests/fetch-module.spec.js.map | 1 - .../sys/fetch/write-fetch-success.d.ts | 4 - .../compiler/sys/fetch/write-fetch-success.js | 49 - .../sys/fetch/write-fetch-success.js.map | 1 - build/compiler/sys/in-memory-fs.d.ts | 227 -- build/compiler/sys/in-memory-fs.js | 1078 ------- build/compiler/sys/in-memory-fs.js.map | 1 - build/compiler/sys/node-require.d.ts | 6 - build/compiler/sys/node-require.js | 60 - build/compiler/sys/node-require.js.map | 1 - .../sys/resolve/resolve-module-async.d.ts | 4 - .../sys/resolve/resolve-module-async.js | 78 - .../sys/resolve/resolve-module-async.js.map | 1 - build/compiler/sys/resolve/resolve-utils.d.ts | 44 - build/compiler/sys/resolve/resolve-utils.js | 90 - .../compiler/sys/resolve/resolve-utils.js.map | 1 - .../resolve/tests/resolve-module.spec.d.ts | 1 - .../sys/resolve/tests/resolve-module.spec.js | 101 - .../resolve/tests/resolve-module.spec.js.map | 1 - .../sys/resolve/tests/resolve-utils.spec.d.ts | 1 - .../sys/resolve/tests/resolve-utils.spec.js | 42 - .../resolve/tests/resolve-utils.spec.js.map | 1 - build/compiler/sys/stencil-sys.d.ts | 16 - build/compiler/sys/stencil-sys.js | 555 ---- build/compiler/sys/stencil-sys.js.map | 1 - .../compiler/sys/tests/in-memory-fs.spec.d.ts | 1 - build/compiler/sys/tests/in-memory-fs.spec.js | 604 ---- .../sys/tests/in-memory-fs.spec.js.map | 1 - .../compiler/sys/tests/stencil-sys.spec.d.ts | 1 - build/compiler/sys/tests/stencil-sys.spec.js | 251 -- .../sys/tests/stencil-sys.spec.js.map | 1 - .../tests/typescript-config.spec.d.ts | 1 - .../tests/typescript-config.spec.js | 30 - .../tests/typescript-config.spec.js.map | 1 - .../tests/typescript-resolve-module.spec.d.ts | 1 - .../tests/typescript-resolve-module.spec.js | 30 - .../typescript-resolve-module.spec.js.map | 1 - .../typescript/tests/typescript-sys.spec.d.ts | 1 - .../typescript/tests/typescript-sys.spec.js | 28 - .../tests/typescript-sys.spec.js.map | 1 - .../sys/typescript/typescript-config.d.ts | 24 - .../sys/typescript/typescript-config.js | 161 -- .../sys/typescript/typescript-config.js.map | 1 - .../typescript/typescript-resolve-module.d.ts | 5 - .../typescript/typescript-resolve-module.js | 61 - .../typescript-resolve-module.js.map | 1 - .../sys/typescript/typescript-sys.d.ts | 6 - .../compiler/sys/typescript/typescript-sys.js | 179 -- .../sys/typescript/typescript-sys.js.map | 1 - build/compiler/sys/worker/sys-worker.d.ts | 11 - build/compiler/sys/worker/sys-worker.js | 25 - build/compiler/sys/worker/sys-worker.js.map | 1 - .../add-component-meta-proxy.d.ts | 23 - .../transformers/add-component-meta-proxy.js | 55 - .../add-component-meta-proxy.js.map | 1 - .../add-component-meta-static.d.ts | 14 - .../transformers/add-component-meta-static.js | 33 - .../add-component-meta-static.js.map | 1 - build/compiler/transformers/add-imports.d.ts | 19 - build/compiler/transformers/add-imports.js | 36 - .../compiler/transformers/add-imports.js.map | 1 - .../transformers/add-static-style.d.ts | 27 - .../compiler/transformers/add-static-style.js | 122 - .../transformers/add-static-style.js.map | 1 - .../collections/add-external-import.d.ts | 2 - .../collections/add-external-import.js | 73 - .../collections/add-external-import.js.map | 1 - .../parse-collection-components.d.ts | 3 - .../parse-collection-components.js | 17 - .../parse-collection-components.js.map | 1 - .../parse-collection-manifest.d.ts | 7 - .../collections/parse-collection-manifest.js | 47 - .../parse-collection-manifest.js.map | 1 - .../collections/parse-collection-module.d.ts | 2 - .../collections/parse-collection-module.js | 39 - .../parse-collection-module.js.map | 1 - .../component-build-conditionals.d.ts | 2 - .../component-build-conditionals.js | 50 - .../component-build-conditionals.js.map | 1 - .../component-hydrate/hydrate-component.d.ts | 3 - .../component-hydrate/hydrate-component.js | 21 - .../hydrate-component.js.map | 1 - .../hydrate-runtime-cmp-meta.d.ts | 3 - .../hydrate-runtime-cmp-meta.js | 35 - .../hydrate-runtime-cmp-meta.js.map | 1 - .../tranform-to-hydrate-component.d.ts | 3 - .../tranform-to-hydrate-component.js | 32 - .../tranform-to-hydrate-component.js.map | 1 - .../component-lazy/attach-internals.d.ts | 41 - .../component-lazy/attach-internals.js | 100 - .../component-lazy/attach-internals.js.map | 1 - .../component-lazy/constants.d.ts | 5 - .../transformers/component-lazy/constants.js | 6 - .../component-lazy/constants.js.map | 1 - .../component-lazy/lazy-component.d.ts | 16 - .../component-lazy/lazy-component.js | 46 - .../component-lazy/lazy-component.js.map | 1 - .../component-lazy/lazy-constructor.d.ts | 12 - .../component-lazy/lazy-constructor.js | 45 - .../component-lazy/lazy-constructor.js.map | 1 - .../component-lazy/lazy-element-getter.d.ts | 11 - .../component-lazy/lazy-element-getter.js | 37 - .../component-lazy/lazy-element-getter.js.map | 1 - .../transform-lazy-component.d.ts | 16 - .../transform-lazy-component.js | 49 - .../transform-lazy-component.js.map | 1 - .../add-define-custom-element-function.d.ts | 11 - .../add-define-custom-element-function.js | 138 - .../add-define-custom-element-function.js.map | 1 - .../component-native/attach-internals.d.ts | 31 - .../component-native/attach-internals.js | 42 - .../component-native/attach-internals.js.map | 1 - .../component-native/native-component.d.ts | 19 - .../component-native/native-component.js | 86 - .../component-native/native-component.js.map | 1 - .../native-connected-callback.d.ts | 12 - .../native-connected-callback.js | 33 - .../native-connected-callback.js.map | 1 - .../component-native/native-constructor.d.ts | 17 - .../component-native/native-constructor.js | 59 - .../native-constructor.js.map | 1 - .../native-element-getter.d.ts | 12 - .../component-native/native-element-getter.js | 33 - .../native-element-getter.js.map | 1 - .../component-native/native-meta.d.ts | 3 - .../component-native/native-meta.js | 5 - .../component-native/native-meta.js.map | 1 - .../component-native/native-static-style.d.ts | 3 - .../component-native/native-static-style.js | 88 - .../native-static-style.js.map | 1 - .../proxy-custom-element-function.d.ts | 24 - .../proxy-custom-element-function.js | 75 - .../proxy-custom-element-function.js.map | 1 - .../tranform-to-native-component.d.ts | 20 - .../tranform-to-native-component.js | 71 - .../tranform-to-native-component.js.map | 1 - .../transformers/core-runtime-apis.d.ts | 41 - .../transformers/core-runtime-apis.js | 56 - .../transformers/core-runtime-apis.js.map | 1 - build/compiler/transformers/create-event.d.ts | 9 - build/compiler/transformers/create-event.js | 43 - .../compiler/transformers/create-event.js.map | 1 - .../attach-internals.d.ts | 23 - .../decorators-to-static/attach-internals.js | 44 - .../attach-internals.js.map | 1 - .../component-decorator.d.ts | 24 - .../component-decorator.js | 162 -- .../component-decorator.js.map | 1 - .../convert-decorators.d.ts | 30 - .../convert-decorators.js | 334 --- .../convert-decorators.js.map | 1 - .../decorators-to-static/decorator-utils.d.ts | 18 - .../decorators-to-static/decorator-utils.js | 44 - .../decorator-utils.js.map | 1 - .../decorators-constants.d.ts | 26 - .../decorators-constants.js | 66 - .../decorators-constants.js.map | 1 - .../element-decorator.d.ts | 3 - .../decorators-to-static/element-decorator.js | 26 - .../element-decorator.js.map | 1 - .../decorators-to-static/event-decorator.d.ts | 4 - .../decorators-to-static/event-decorator.js | 387 --- .../event-decorator.js.map | 1 - .../listen-decorator.d.ts | 4 - .../decorators-to-static/listen-decorator.js | 87 - .../listen-decorator.js.map | 1 - .../method-decorator.d.ts | 4 - .../decorators-to-static/method-decorator.js | 85 - .../method-decorator.js.map | 1 - .../decorators-to-static/prop-decorator.d.ts | 23 - .../decorators-to-static/prop-decorator.js | 232 -- .../prop-decorator.js.map | 1 - .../decorators-to-static/state-decorator.d.ts | 13 - .../decorators-to-static/state-decorator.js | 46 - .../state-decorator.js.map | 1 - .../decorators-to-static/style-to-static.d.ts | 3 - .../decorators-to-static/style-to-static.js | 95 - .../style-to-static.js.map | 1 - .../decorators-to-static/watch-decorator.d.ts | 2 - .../decorators-to-static/watch-decorator.js | 26 - .../watch-decorator.js.map | 1 - .../transformers/define-custom-element.d.ts | 3 - .../transformers/define-custom-element.js | 53 - .../transformers/define-custom-element.js.map | 1 - .../transformers/host-data-transform.d.ts | 3 - .../transformers/host-data-transform.js | 39 - .../transformers/host-data-transform.js.map | 1 - .../map-imports-to-path-aliases.d.ts | 16 - .../map-imports-to-path-aliases.js | 98 - .../map-imports-to-path-aliases.js.map | 1 - .../remove-collection-imports.d.ts | 3 - .../transformers/remove-collection-imports.js | 44 - .../remove-collection-imports.js.map | 1 - .../remove-static-meta-properties.d.ts | 9 - .../remove-static-meta-properties.js | 52 - .../remove-static-meta-properties.js.map | 1 - .../transformers/reserved-public-members.d.ts | 13 - .../transformers/reserved-public-members.js | 273 -- .../reserved-public-members.js.map | 1 - .../transformers/rewrite-aliased-paths.d.ts | 17 - .../transformers/rewrite-aliased-paths.js | 181 -- .../transformers/rewrite-aliased-paths.js.map | 1 - .../static-to-meta/attach-internals.d.ts | 9 - .../static-to-meta/attach-internals.js | 18 - .../static-to-meta/attach-internals.js.map | 1 - .../static-to-meta/call-expression.d.ts | 3 - .../static-to-meta/call-expression.js | 51 - .../static-to-meta/call-expression.js.map | 1 - .../static-to-meta/class-methods.d.ts | 3 - .../static-to-meta/class-methods.js | 32 - .../static-to-meta/class-methods.js.map | 1 - .../static-to-meta/component.d.ts | 18 - .../transformers/static-to-meta/component.js | 191 -- .../static-to-meta/component.js.map | 1 - .../static-to-meta/element-ref.d.ts | 2 - .../static-to-meta/element-ref.js | 9 - .../static-to-meta/element-ref.js.map | 1 - .../static-to-meta/encapsulation.d.ts | 24 - .../static-to-meta/encapsulation.js | 39 - .../static-to-meta/encapsulation.js.map | 1 - .../transformers/static-to-meta/events.d.ts | 3 - .../transformers/static-to-meta/events.js | 20 - .../transformers/static-to-meta/events.js.map | 1 - .../static-to-meta/form-associated.d.ts | 8 - .../static-to-meta/form-associated.js | 12 - .../static-to-meta/form-associated.js.map | 1 - .../transformers/static-to-meta/import.d.ts | 3 - .../transformers/static-to-meta/import.js | 27 - .../transformers/static-to-meta/import.js.map | 1 - .../static-to-meta/listeners.d.ts | 3 - .../transformers/static-to-meta/listeners.js | 17 - .../static-to-meta/listeners.js.map | 1 - .../transformers/static-to-meta/methods.d.ts | 3 - .../transformers/static-to-meta/methods.js | 20 - .../static-to-meta/methods.js.map | 1 - .../static-to-meta/parse-static.d.ts | 3 - .../static-to-meta/parse-static.js | 60 - .../static-to-meta/parse-static.js.map | 1 - .../transformers/static-to-meta/props.d.ts | 11 - .../transformers/static-to-meta/props.js | 36 - .../transformers/static-to-meta/props.js.map | 1 - .../transformers/static-to-meta/states.d.ts | 3 - .../transformers/static-to-meta/states.js | 17 - .../transformers/static-to-meta/states.js.map | 1 - .../static-to-meta/string-literal.d.ts | 3 - .../static-to-meta/string-literal.js | 11 - .../static-to-meta/string-literal.js.map | 1 - .../transformers/static-to-meta/styles.d.ts | 3 - .../transformers/static-to-meta/styles.js | 86 - .../transformers/static-to-meta/styles.js.map | 1 - .../transformers/static-to-meta/vdom.d.ts | 3 - .../transformers/static-to-meta/vdom.js | 81 - .../transformers/static-to-meta/vdom.js.map | 1 - .../transformers/static-to-meta/visitor.d.ts | 3 - .../transformers/static-to-meta/visitor.js | 44 - .../static-to-meta/visitor.js.map | 1 - .../transformers/static-to-meta/watchers.d.ts | 3 - .../transformers/static-to-meta/watchers.js | 14 - .../static-to-meta/watchers.js.map | 1 - .../transformers/stencil-import-path.d.ts | 24 - .../transformers/stencil-import-path.js | 90 - .../transformers/stencil-import-path.js.map | 1 - .../compiler/transformers/style-imports.d.ts | 3 - build/compiler/transformers/style-imports.js | 93 - .../transformers/style-imports.js.map | 1 - .../test/add-component-meta-proxy.spec.d.ts | 1 - .../test/add-component-meta-proxy.spec.js | 57 - .../test/add-component-meta-proxy.spec.js.map | 1 - .../test/convert-decorators.spec.d.ts | 1 - .../test/convert-decorators.spec.js | 407 --- .../test/convert-decorators.spec.js.map | 1 - .../test/core-runtime-apis.spec.d.ts | 1 - .../test/core-runtime-apis.spec.js | 77 - .../test/core-runtime-apis.spec.js.map | 1 - .../test/decorator-utils.spec.d.ts | 1 - .../transformers/test/decorator-utils.spec.js | 41 - .../test/decorator-utils.spec.js.map | 1 - .../test/lazy-component.spec.d.ts | 1 - .../transformers/test/lazy-component.spec.js | 93 - .../test/lazy-component.spec.js.map | 1 - .../map-imports-to-path-aliases.spec.d.ts | 1 - .../test/map-imports-to-path-aliases.spec.js | 138 - .../map-imports-to-path-aliases.spec.js.map | 1 - .../test/native-component.spec.d.ts | 1 - .../test/native-component.spec.js | 134 - .../test/native-component.spec.js.map | 1 - .../test/parse-attach-internals.spec.d.ts | 1 - .../test/parse-attach-internals.spec.js | 28 - .../test/parse-attach-internals.spec.js.map | 1 - .../test/parse-comments.spec.d.ts | 1 - .../transformers/test/parse-comments.spec.js | 105 - .../test/parse-comments.spec.js.map | 1 - .../test/parse-component-tags.spec.d.ts | 1 - .../test/parse-component-tags.spec.js | 46 - .../test/parse-component-tags.spec.js.map | 1 - .../test/parse-component.spec.d.ts | 1 - .../transformers/test/parse-component.spec.js | 23 - .../test/parse-component.spec.js.map | 1 - .../transformers/test/parse-element.spec.d.ts | 1 - .../transformers/test/parse-element.spec.js | 14 - .../test/parse-element.spec.js.map | 1 - .../test/parse-encapsulation.spec.d.ts | 1 - .../test/parse-encapsulation.spec.js | 73 - .../test/parse-encapsulation.spec.js.map | 1 - .../transformers/test/parse-events.spec.d.ts | 1 - .../transformers/test/parse-events.spec.js | 110 - .../test/parse-events.spec.js.map | 1 - .../test/parse-form-associated.spec.d.ts | 1 - .../test/parse-form-associated.spec.js | 25 - .../test/parse-form-associated.spec.js.map | 1 - .../test/parse-import-path.spec.d.ts | 1 - .../test/parse-import-path.spec.js | 85 - .../test/parse-import-path.spec.js.map | 1 - .../test/parse-listeners.spec.d.ts | 1 - .../transformers/test/parse-listeners.spec.js | 134 - .../test/parse-listeners.spec.js.map | 1 - .../transformers/test/parse-methods.spec.d.ts | 1 - .../transformers/test/parse-methods.spec.js | 43 - .../test/parse-methods.spec.js.map | 1 - .../transformers/test/parse-props.spec.d.ts | 1 - .../transformers/test/parse-props.spec.js | 530 ---- .../transformers/test/parse-props.spec.js.map | 1 - .../transformers/test/parse-states.spec.d.ts | 1 - .../transformers/test/parse-states.spec.js | 16 - .../test/parse-states.spec.js.map | 1 - .../transformers/test/parse-styles.spec.d.ts | 1 - .../transformers/test/parse-styles.spec.js | 77 - .../test/parse-styles.spec.js.map | 1 - .../transformers/test/parse-vdom.spec.d.ts | 1 - .../transformers/test/parse-vdom.spec.js | 137 - .../transformers/test/parse-vdom.spec.js.map | 1 - .../test/parse-virtual-props.spec.d.ts | 1 - .../test/parse-virtual-props.spec.js | 18 - .../test/parse-virtual-props.spec.js.map | 1 - .../transformers/test/parse-watch.spec.d.ts | 1 - .../transformers/test/parse-watch.spec.js | 32 - .../transformers/test/parse-watch.spec.js.map | 1 - .../proxy-custom-element-function.spec.d.ts | 1 - .../proxy-custom-element-function.spec.js | 131 - .../proxy-custom-element-function.spec.js.map | 1 - .../test/rewrite-aliased-paths.spec.d.ts | 1 - .../test/rewrite-aliased-paths.spec.js | 172 -- .../test/rewrite-aliased-paths.spec.js.map | 1 - .../test/transform-utils.spec.d.ts | 1 - .../transformers/test/transform-utils.spec.js | 146 - .../test/transform-utils.spec.js.map | 1 - .../compiler/transformers/test/transpile.d.ts | 49 - build/compiler/transformers/test/transpile.js | 168 -- .../transformers/test/transpile.js.map | 1 - .../transformers/test/type-library.spec.d.ts | 1 - .../transformers/test/type-library.spec.js | 128 - .../test/type-library.spec.js.map | 1 - build/compiler/transformers/test/utils.d.ts | 19 - build/compiler/transformers/test/utils.js | 24 - build/compiler/transformers/test/utils.js.map | 1 - .../transformers/transform-utils.d.ts | 244 -- .../compiler/transformers/transform-utils.js | 893 ------ .../transformers/transform-utils.js.map | 1 - build/compiler/transformers/type-library.d.ts | 72 - build/compiler/transformers/type-library.js | 311 -- .../compiler/transformers/type-library.js.map | 1 - .../transformers/update-component-class.d.ts | 16 - .../transformers/update-component-class.js | 79 - .../update-component-class.js.map | 1 - .../update-stencil-core-import.d.ts | 2 - .../update-stencil-core-import.js | 60 - .../update-stencil-core-import.js.map | 1 - .../transformers/watcher-meta-transform.d.ts | 13 - .../transformers/watcher-meta-transform.js | 22 - .../watcher-meta-transform.js.map | 1 - build/compiler/transpile.d.ts | 32 - build/compiler/transpile.js | 150 - build/compiler/transpile.js.map | 1 - .../transpile/create-build-program.d.ts | 10 - .../transpile/create-build-program.js | 104 - .../transpile/create-build-program.js.map | 1 - .../transpile/create-watch-program.d.ts | 20 - .../transpile/create-watch-program.js | 94 - .../transpile/create-watch-program.js.map | 1 - build/compiler/transpile/run-program.d.ts | 27 - build/compiler/transpile/run-program.js | 155 - build/compiler/transpile/run-program.js.map | 1 - .../transpile/test/run-program.spec.d.ts | 1 - .../transpile/test/run-program.spec.js | 27 - .../transpile/test/run-program.spec.js.map | 1 - .../compiler/transpile/transpile-module.d.ts | 10 - build/compiler/transpile/transpile-module.js | 142 - .../transpile/transpile-module.js.map | 1 - .../compiler/transpile/transpiled-module.d.ts | 19 - build/compiler/transpile/transpiled-module.js | 54 - .../transpile/transpiled-module.js.map | 1 - build/compiler/transpile/ts-config.d.ts | 20 - build/compiler/transpile/ts-config.js | 35 - build/compiler/transpile/ts-config.js.map | 1 - .../transpile/validate-components.d.ts | 2 - .../compiler/transpile/validate-components.js | 18 - .../transpile/validate-components.js.map | 1 - build/compiler/types/generate-app-types.d.ts | 11 - build/compiler/types/generate-app-types.js | 126 - .../compiler/types/generate-app-types.js.map | 1 - .../types/generate-component-types.d.ts | 9 - .../types/generate-component-types.js | 65 - .../types/generate-component-types.js.map | 1 - .../types/generate-event-detail-types.d.ts | 12 - .../types/generate-event-detail-types.js | 34 - .../types/generate-event-detail-types.js.map | 1 - .../types/generate-event-listener-types.d.ts | 13 - .../types/generate-event-listener-types.js | 63 - .../generate-event-listener-types.js.map | 1 - .../compiler/types/generate-event-types.d.ts | 9 - build/compiler/types/generate-event-types.js | 41 - .../types/generate-event-types.js.map | 1 - .../compiler/types/generate-method-types.d.ts | 8 - build/compiler/types/generate-method-types.js | 29 - .../types/generate-method-types.js.map | 1 - build/compiler/types/generate-prop-types.d.ts | 8 - build/compiler/types/generate-prop-types.js | 39 - .../compiler/types/generate-prop-types.js.map | 1 - build/compiler/types/generate-types.d.ts | 9 - build/compiler/types/generate-types.js | 47 - build/compiler/types/generate-types.js.map | 1 - .../types/package-json-log-utils.d.ts | 27 - .../compiler/types/package-json-log-utils.js | 37 - .../types/package-json-log-utils.js.map | 1 - build/compiler/types/stencil-types.d.ts | 29 - build/compiler/types/stencil-types.js | 109 - build/compiler/types/stencil-types.js.map | 1 - .../tests/ComponentCompilerEvent.stub.d.ts | 9 - .../tests/ComponentCompilerEvent.stub.js | 31 - .../tests/ComponentCompilerEvent.stub.js.map | 1 - .../tests/ComponentCompilerMeta.stub.d.ts | 9 - .../types/tests/ComponentCompilerMeta.stub.js | 90 - .../tests/ComponentCompilerMeta.stub.js.map | 1 - .../tests/ComponentCompilerMethod.stub.d.ts | 9 - .../tests/ComponentCompilerMethod.stub.js | 22 - .../tests/ComponentCompilerMethod.stub.js.map | 1 - .../tests/ComponentCompilerProperty.stub.d.ts | 9 - .../tests/ComponentCompilerProperty.stub.js | 33 - .../ComponentCompilerProperty.stub.js.map | 1 - .../ComponentCompilerTypeReference.stub.d.ts | 9 - .../ComponentCompilerTypeReference.stub.js | 15 - ...ComponentCompilerTypeReference.stub.js.map | 1 - ...ComponentCompilerVirtualProperty.stub.d.ts | 9 - .../ComponentCompilerVirtualProperty.stub.js | 16 - ...mponentCompilerVirtualProperty.stub.js.map | 1 - .../types/tests/TypesImportData.stub.d.ts | 8 - .../types/tests/TypesImportData.stub.js | 16 - .../types/tests/TypesImportData.stub.js.map | 1 - .../types/tests/generate-app-types.spec.d.ts | 1 - .../types/tests/generate-app-types.spec.js | 1623 ----------- .../tests/generate-app-types.spec.js.map | 1 - .../generate-event-detail-types.spec.d.ts | 1 - .../tests/generate-event-detail-types.spec.js | 28 - .../generate-event-detail-types.spec.js.map | 1 - .../generate-event-listener-types.spec.d.ts | 1 - .../generate-event-listener-types.spec.js | 217 -- .../generate-event-listener-types.spec.js.map | 1 - .../tests/generate-event-types.spec.d.ts | 1 - .../types/tests/generate-event-types.spec.js | 142 - .../tests/generate-event-types.spec.js.map | 1 - .../tests/generate-method-types.spec.d.ts | 1 - .../types/tests/generate-method-types.spec.js | 106 - .../tests/generate-method-types.spec.js.map | 1 - .../types/tests/generate-prop-types.spec.d.ts | 1 - .../types/tests/generate-prop-types.spec.js | 112 - .../tests/generate-prop-types.spec.js.map | 1 - .../types/tests/stencil-types.spec.d.ts | 1 - .../types/tests/stencil-types.spec.js | 236 -- .../types/tests/stencil-types.spec.js.map | 1 - .../tests/validate-package-json.spec.d.ts | 1 - .../types/tests/validate-package-json.spec.js | 107 - .../tests/validate-package-json.spec.js.map | 1 - ...te-primary-package-output-target.spec.d.ts | 1 - ...date-primary-package-output-target.spec.js | 200 -- ...-primary-package-output-target.spec.js.map | 1 - build/compiler/types/types-utils.d.ts | 3 - build/compiler/types/types-utils.js | 20 - build/compiler/types/types-utils.js.map | 1 - build/compiler/types/update-import-refs.d.ts | 11 - build/compiler/types/update-import-refs.js | 90 - .../compiler/types/update-import-refs.js.map | 1 - .../types/validate-build-package-json.d.ts | 50 - .../types/validate-build-package-json.js | 127 - .../types/validate-build-package-json.js.map | 1 - ...alidate-primary-package-output-target.d.ts | 91 - .../validate-primary-package-output-target.js | 180 -- ...idate-primary-package-output-target.js.map | 1 - build/compiler/worker/main-thread.d.ts | 11 - build/compiler/worker/main-thread.js | 16 - build/compiler/worker/main-thread.js.map | 1 - build/compiler/worker/worker-thread.d.ts | 26 - build/compiler/worker/worker-thread.js | 59 - build/compiler/worker/worker-thread.js.map | 1 - build/declarations/index.d.ts | 3 - build/declarations/index.js | 4 - build/declarations/index.js.map | 1 - build/declarations/stencil-private.d.ts | 2220 --------------- build/declarations/stencil-private.js | 2 - build/declarations/stencil-private.js.map | 1 - .../declarations/stencil-public-compiler.d.ts | 2515 ----------------- build/declarations/stencil-public-compiler.js | 46 - .../stencil-public-compiler.js.map | 1 - build/declarations/stencil-public-docs.d.ts | 331 --- .../stencil-public-docs.d.ts-bundled.d.ts | 413 --- build/declarations/stencil-public-docs.js | 2 - build/declarations/stencil-public-docs.js.map | 1 - .../declarations/stencil-public-runtime.d.ts | 1681 ----------- build/declarations/stencil-public-runtime.js | 2 - .../stencil-public-runtime.js.map | 1 - build/dev-server/client/app-error.d.ts | 20 - build/dev-server/client/app-error.js | 231 -- build/dev-server/client/app-error.js.map | 1 - build/dev-server/client/events.d.ts | 6 - build/dev-server/client/events.js | 28 - build/dev-server/client/events.js.map | 1 - build/dev-server/client/hmr-components.d.ts | 12 - build/dev-server/client/hmr-components.js | 57 - build/dev-server/client/hmr-components.js.map | 1 - .../client/hmr-external-styles.d.ts | 1 - .../dev-server/client/hmr-external-styles.js | 29 - .../client/hmr-external-styles.js.map | 1 - build/dev-server/client/hmr-images.d.ts | 1 - build/dev-server/client/hmr-images.js | 114 - build/dev-server/client/hmr-images.js.map | 1 - .../dev-server/client/hmr-inline-styles.d.ts | 1 - build/dev-server/client/hmr-inline-styles.js | 40 - .../client/hmr-inline-styles.js.map | 1 - build/dev-server/client/hmr-util.d.ts | 39 - build/dev-server/client/hmr-util.js | 90 - build/dev-server/client/hmr-util.js.map | 1 - build/dev-server/client/hmr-window.d.ts | 10 - build/dev-server/client/hmr-window.js | 47 - build/dev-server/client/hmr-window.js.map | 1 - build/dev-server/client/index.d.ts | 6 - build/dev-server/client/index.js | 7 - build/dev-server/client/index.js.map | 1 - build/dev-server/client/logger.d.ts | 6 - build/dev-server/client/logger.js | 46 - build/dev-server/client/logger.js.map | 1 - build/dev-server/client/progress.d.ts | 3 - build/dev-server/client/progress.js | 123 - build/dev-server/client/progress.js.map | 1 - build/dev-server/client/status.d.ts | 4 - build/dev-server/client/status.js | 73 - build/dev-server/client/status.js.map | 1 - .../dev-server/client/test/hmr-util.spec.d.ts | 1 - build/dev-server/client/test/hmr-util.spec.js | 74 - .../client/test/hmr-util.spec.js.map | 1 - build/dev-server/client/test/status.spec.d.ts | 1 - build/dev-server/client/test/status.spec.js | 18 - .../dev-server/client/test/status.spec.js.map | 1 - build/dev-server/content-types-db.json | 4 - .../dev-server-client/app-update.d.ts | 3 - .../dev-server-client/app-update.js | 138 - .../dev-server-client/app-update.js.map | 1 - .../dev-server-client/client-web-socket.d.ts | 2 - .../dev-server-client/client-web-socket.js | 139 - .../client-web-socket.js.map | 1 - build/dev-server/dev-server-client/index.d.ts | 1 - build/dev-server/dev-server-client/index.js | 13 - .../dev-server/dev-server-client/index.js.map | 1 - .../dev-server-client/init-dev-client.d.ts | 2 - .../dev-server-client/init-dev-client.js | 42 - .../dev-server-client/init-dev-client.js.map | 1 - .../dev-server-client/polyfills.d.ts | 1 - .../dev-server/dev-server-client/polyfills.js | 41 - .../dev-server-client/polyfills.js.map | 1 - build/dev-server/dev-server-constants.d.ts | 4 - build/dev-server/dev-server-constants.js | 5 - build/dev-server/dev-server-constants.js.map | 1 - build/dev-server/dev-server-utils.d.ts | 21 - build/dev-server/dev-server-utils.js | 120 - build/dev-server/dev-server-utils.js.map | 1 - build/dev-server/index.d.ts | 3 - build/dev-server/index.js | 193 -- build/dev-server/index.js.map | 1 - build/dev-server/open-in-browser.d.ts | 3 - build/dev-server/open-in-browser.js | 5 - build/dev-server/open-in-browser.js.map | 1 - build/dev-server/open-in-editor-api.d.ts | 16 - build/dev-server/open-in-editor-api.js | 9 - build/dev-server/open-in-editor-api.js.map | 1 - build/dev-server/open-in-editor.d.ts | 5 - build/dev-server/open-in-editor.js | 148 - build/dev-server/open-in-editor.js.map | 1 - build/dev-server/request-handler.d.ts | 5 - build/dev-server/request-handler.js | 131 - build/dev-server/request-handler.js.map | 1 - build/dev-server/serve-dev-client.d.ts | 4 - build/dev-server/serve-dev-client.js | 61 - build/dev-server/serve-dev-client.js.map | 1 - build/dev-server/serve-dev-node-module.d.ts | 4 - build/dev-server/serve-dev-node-module.js | 22 - build/dev-server/serve-dev-node-module.js.map | 1 - build/dev-server/serve-directory-index.d.ts | 4 - build/dev-server/serve-directory-index.js | 92 - build/dev-server/serve-directory-index.js.map | 1 - build/dev-server/serve-file.d.ts | 6 - build/dev-server/serve-file.js | 95 - build/dev-server/serve-file.js.map | 1 - build/dev-server/server-context.d.ts | 11 - build/dev-server/server-context.js | 108 - build/dev-server/server-context.js.map | 1 - build/dev-server/server-http.d.ts | 7 - build/dev-server/server-http.js | 41 - build/dev-server/server-http.js.map | 1 - build/dev-server/server-process.d.ts | 2 - build/dev-server/server-process.js | 105 - build/dev-server/server-process.js.map | 1 - build/dev-server/server-web-socket.d.ts | 8 - build/dev-server/server-web-socket.js | 68 - build/dev-server/server-web-socket.js.map | 1 - build/dev-server/server-worker-main.d.ts | 2 - build/dev-server/server-worker-main.js | 42 - build/dev-server/server-worker-main.js.map | 1 - build/dev-server/ssr-request.d.ts | 5 - build/dev-server/ssr-request.js | 191 -- build/dev-server/ssr-request.js.map | 1 - build/dev-server/test/Diagnostic.stub.d.ts | 9 - build/dev-server/test/Diagnostic.stub.js | 20 - build/dev-server/test/Diagnostic.stub.js.map | 1 - .../test/dev-server-utils.spec.d.ts | 1 - .../dev-server/test/dev-server-utils.spec.js | 29 - .../test/dev-server-utils.spec.js.map | 1 - build/dev-server/test/req-handler.spec.d.ts | 1 - build/dev-server/test/req-handler.spec.js | 354 --- build/dev-server/test/req-handler.spec.js.map | 1 - build/dev-server/test/util.spec.d.ts | 1 - build/dev-server/test/util.spec.js | 188 -- build/dev-server/test/util.spec.js.map | 1 - build/hydrate/platform/h-async.d.ts | 2 - build/hydrate/platform/h-async.js | 26 - build/hydrate/platform/h-async.js.map | 1 - build/hydrate/platform/hydrate-app.d.ts | 2 - build/hydrate/platform/hydrate-app.js | 265 -- build/hydrate/platform/hydrate-app.js.map | 1 - build/hydrate/platform/index.d.ts | 38 - build/hydrate/platform/index.js | 126 - build/hydrate/platform/index.js.map | 1 - .../hydrate/platform/proxy-host-element.d.ts | 2 - build/hydrate/platform/proxy-host-element.js | 64 - .../platform/proxy-host-element.js.map | 1 - build/hydrate/runner/create-window.d.ts | 1 - build/hydrate/runner/create-window.js | 12 - build/hydrate/runner/create-window.js.map | 1 - build/hydrate/runner/hydrate-factory.d.ts | 2 - build/hydrate/runner/hydrate-factory.js | 8 - build/hydrate/runner/hydrate-factory.js.map | 1 - build/hydrate/runner/index.d.ts | 2 - build/hydrate/runner/index.d.ts-bundled.d.ts | 218 -- build/hydrate/runner/index.js | 3 - build/hydrate/runner/index.js.map | 1 - build/hydrate/runner/inspect-element.d.ts | 2 - build/hydrate/runner/inspect-element.js | 97 - build/hydrate/runner/inspect-element.js.map | 1 - .../runner/patch-dom-implementation.d.ts | 2 - .../runner/patch-dom-implementation.js | 60 - .../runner/patch-dom-implementation.js.map | 1 - build/hydrate/runner/render-utils.d.ts | 7 - build/hydrate/runner/render-utils.js | 142 - build/hydrate/runner/render-utils.js.map | 1 - build/hydrate/runner/render.d.ts | 4 - build/hydrate/runner/render.js | 256 -- build/hydrate/runner/render.js.map | 1 - build/hydrate/runner/runtime-log.d.ts | 2 - build/hydrate/runner/runtime-log.js | 49 - build/hydrate/runner/runtime-log.js.map | 1 - build/hydrate/runner/window-initialize.d.ts | 2 - build/hydrate/runner/window-initialize.js | 59 - build/hydrate/runner/window-initialize.js.map | 1 - build/internal/default.d.ts | 1 - build/internal/default.js | 2 - build/internal/default.js.map | 1 - build/internal/index.d.ts | 1 - build/internal/index.js | 2 - build/internal/index.js.map | 1 - build/mock-doc/attribute.d.ts | 38 - build/mock-doc/attribute.js | 147 - build/mock-doc/attribute.js.map | 1 - build/mock-doc/class-list.d.ts | 11 - build/mock-doc/class-list.js | 77 - build/mock-doc/class-list.js.map | 1 - build/mock-doc/comment-node.d.ts | 7 - build/mock-doc/comment-node.js | 16 - build/mock-doc/comment-node.js.map | 1 - build/mock-doc/console.d.ts | 1 - build/mock-doc/console.js | 32 - build/mock-doc/console.js.map | 1 - build/mock-doc/constants.d.ts | 20 - build/mock-doc/constants.js | 2 - build/mock-doc/constants.js.map | 1 - build/mock-doc/css-style-declaration.d.ts | 10 - build/mock-doc/css-style-declaration.js | 96 - build/mock-doc/css-style-declaration.js.map | 1 - build/mock-doc/css-style-sheet.d.ts | 21 - build/mock-doc/css-style-sheet.js | 74 - build/mock-doc/css-style-sheet.js.map | 1 - build/mock-doc/custom-element-registry.d.ts | 17 - build/mock-doc/custom-element-registry.js | 195 -- build/mock-doc/custom-element-registry.js.map | 1 - build/mock-doc/dataset.d.ts | 2 - build/mock-doc/dataset.js | 43 - build/mock-doc/dataset.js.map | 1 - build/mock-doc/document-fragment.d.ts | 6 - build/mock-doc/document-fragment.js | 28 - build/mock-doc/document-fragment.js.map | 1 - build/mock-doc/document-type-node.d.ts | 4 - build/mock-doc/document-type-node.js | 9 - build/mock-doc/document-type-node.js.map | 1 - build/mock-doc/document.d.ts | 46 - build/mock-doc/document.js | 287 -- build/mock-doc/document.js.map | 1 - build/mock-doc/element.d.ts | 184 -- build/mock-doc/element.js | 556 ---- build/mock-doc/element.js.map | 1 - build/mock-doc/event.d.ts | 69 - build/mock-doc/event.js | 168 -- build/mock-doc/event.js.map | 1 - build/mock-doc/global.d.ts | 4 - build/mock-doc/global.js | 153 - build/mock-doc/global.js.map | 1 - build/mock-doc/headers.d.ts | 20 - build/mock-doc/headers.js | 129 - build/mock-doc/headers.js.map | 1 - build/mock-doc/history.d.ts | 9 - build/mock-doc/history.js | 24 - build/mock-doc/history.js.map | 1 - build/mock-doc/index.d.ts | 12 - build/mock-doc/index.js | 12 - build/mock-doc/index.js.map | 1 - build/mock-doc/intersection-observer.d.ts | 7 - build/mock-doc/intersection-observer.js | 18 - build/mock-doc/intersection-observer.js.map | 1 - build/mock-doc/location.d.ts | 20 - build/mock-doc/location.js | 46 - build/mock-doc/location.js.map | 1 - build/mock-doc/navigator.d.ts | 7 - build/mock-doc/navigator.js | 10 - build/mock-doc/navigator.js.map | 1 - build/mock-doc/node.d.ts | 254 -- build/mock-doc/node.js | 1045 ------- build/mock-doc/node.js.map | 1 - build/mock-doc/parse-html.d.ts | 3 - build/mock-doc/parse-html.js | 22 - build/mock-doc/parse-html.js.map | 1 - build/mock-doc/parse-util.d.ts | 2 - build/mock-doc/parse-util.js | 189 -- build/mock-doc/parse-util.js.map | 1 - build/mock-doc/parser.d.ts | 5 - build/mock-doc/parser.js | 10 - build/mock-doc/parser.js.map | 1 - build/mock-doc/performance.d.ts | 26 - build/mock-doc/performance.js | 79 - build/mock-doc/performance.js.map | 1 - build/mock-doc/request-response.d.ts | 56 - build/mock-doc/request-response.js | 79 - build/mock-doc/request-response.js.map | 1 - build/mock-doc/selector.d.ts | 4 - build/mock-doc/selector.js | 13 - build/mock-doc/selector.js.map | 1 - build/mock-doc/serialize-node.d.ts | 18 - build/mock-doc/serialize-node.js | 495 ---- build/mock-doc/serialize-node.js.map | 1 - build/mock-doc/storage.d.ts | 8 - build/mock-doc/storage.js | 28 - build/mock-doc/storage.js.map | 1 - build/mock-doc/test/attribute.spec.d.ts | 1 - build/mock-doc/test/attribute.spec.js | 163 -- build/mock-doc/test/attribute.spec.js.map | 1 - build/mock-doc/test/class-list.spec.d.ts | 1 - build/mock-doc/test/class-list.spec.js | 50 - build/mock-doc/test/class-list.spec.js.map | 1 - build/mock-doc/test/clone.spec.d.ts | 1 - build/mock-doc/test/clone.spec.js | 42 - build/mock-doc/test/clone.spec.js.map | 1 - .../test/css-style-declaration.spec.d.ts | 1 - .../test/css-style-declaration.spec.js | 26 - .../test/css-style-declaration.spec.js.map | 1 - build/mock-doc/test/css-style-sheet.spec.d.ts | 1 - build/mock-doc/test/css-style-sheet.spec.js | 67 - .../mock-doc/test/css-style-sheet.spec.js.map | 1 - build/mock-doc/test/custom-elements.spec.d.ts | 1 - build/mock-doc/test/custom-elements.spec.js | 182 -- .../mock-doc/test/custom-elements.spec.js.map | 1 - build/mock-doc/test/dataset.spec.d.ts | 1 - build/mock-doc/test/dataset.spec.js | 42 - build/mock-doc/test/dataset.spec.js.map | 1 - build/mock-doc/test/doc-style.spec.d.ts | 1 - build/mock-doc/test/doc-style.spec.js | 62 - build/mock-doc/test/doc-style.spec.js.map | 1 - .../mock-doc/test/document-fragment.spec.d.ts | 1 - build/mock-doc/test/document-fragment.spec.js | 40 - .../test/document-fragment.spec.js.map | 1 - build/mock-doc/test/element.spec.d.ts | 1 - build/mock-doc/test/element.spec.js | 411 --- build/mock-doc/test/element.spec.js.map | 1 - build/mock-doc/test/event.spec.d.ts | 1 - build/mock-doc/test/event.spec.js | 295 -- build/mock-doc/test/event.spec.js.map | 1 - build/mock-doc/test/global.spec.d.ts | 0 build/mock-doc/test/global.spec.js | 33 - build/mock-doc/test/global.spec.js.map | 1 - build/mock-doc/test/headers.spec.d.ts | 1 - build/mock-doc/test/headers.spec.js | 126 - build/mock-doc/test/headers.spec.js.map | 1 - build/mock-doc/test/html-parse.spec.d.ts | 1 - build/mock-doc/test/html-parse.spec.js | 272 -- build/mock-doc/test/html-parse.spec.js.map | 1 - build/mock-doc/test/location.spec.d.ts | 1 - build/mock-doc/test/location.spec.js | 92 - build/mock-doc/test/location.spec.js.map | 1 - build/mock-doc/test/match-media.spec.d.ts | 1 - build/mock-doc/test/match-media.spec.js | 39 - build/mock-doc/test/match-media.spec.js.map | 1 - .../mock-doc/test/request-response.spec.d.ts | 1 - build/mock-doc/test/request-response.spec.js | 127 - .../test/request-response.spec.js.map | 1 - build/mock-doc/test/selector.spec.d.ts | 1 - build/mock-doc/test/selector.spec.js | 189 -- build/mock-doc/test/selector.spec.js.map | 1 - build/mock-doc/test/serialize-node.spec.d.ts | 1 - build/mock-doc/test/serialize-node.spec.js | 225 -- .../mock-doc/test/serialize-node.spec.js.map | 1 - build/mock-doc/test/storage.spec.d.ts | 1 - build/mock-doc/test/storage.spec.js | 47 - build/mock-doc/test/storage.spec.js.map | 1 - build/mock-doc/window.d.ts | 230 -- build/mock-doc/window.js | 809 ------ build/mock-doc/window.js.map | 1 - build/runtime/asset-path.d.ts | 2 - build/runtime/asset-path.js | 7 - build/runtime/asset-path.js.map | 1 - build/runtime/bootstrap-custom-element.d.ts | 4 - build/runtime/bootstrap-custom-element.js | 112 - build/runtime/bootstrap-custom-element.js.map | 1 - build/runtime/bootstrap-lazy.d.ts | 3 - build/runtime/bootstrap-lazy.js | 207 -- build/runtime/bootstrap-lazy.js.map | 1 - build/runtime/client-hydrate.d.ts | 21 - build/runtime/client-hydrate.js | 247 -- build/runtime/client-hydrate.js.map | 1 - build/runtime/connected-callback.d.ts | 2 - build/runtime/connected-callback.js | 114 - build/runtime/connected-callback.js.map | 1 - build/runtime/disconnected-callback.d.ts | 2 - build/runtime/disconnected-callback.js | 32 - build/runtime/disconnected-callback.js.map | 1 - build/runtime/dom-extras.d.ts | 48 - build/runtime/dom-extras.js | 303 -- build/runtime/dom-extras.js.map | 1 - build/runtime/element.d.ts | 2 - build/runtime/element.js | 4 - build/runtime/element.js.map | 1 - build/runtime/event-emitter.d.ts | 12 - build/runtime/event-emitter.js | 32 - build/runtime/event-emitter.js.map | 1 - build/runtime/fragment.d.ts | 2 - build/runtime/fragment.js | 2 - build/runtime/fragment.js.map | 1 - build/runtime/hmr-component.d.ts | 16 - build/runtime/hmr-component.js | 29 - build/runtime/hmr-component.js.map | 1 - build/runtime/host-listener.d.ts | 2 - build/runtime/host-listener.js | 70 - build/runtime/host-listener.js.map | 1 - build/runtime/index.d.ts | 19 - build/runtime/index.js | 20 - build/runtime/index.js.map | 1 - build/runtime/initialize-component.d.ts | 13 - build/runtime/initialize-component.js | 127 - build/runtime/initialize-component.js.map | 1 - build/runtime/mode.d.ts | 4 - build/runtime/mode.js | 7 - build/runtime/mode.js.map | 1 - build/runtime/nonce.d.ts | 7 - build/runtime/nonce.js | 9 - build/runtime/nonce.js.map | 1 - build/runtime/parse-property-value.d.ts | 24 - build/runtime/parse-property-value.js | 50 - build/runtime/parse-property-value.js.map | 1 - build/runtime/platform-options.d.ts | 8 - build/runtime/platform-options.js | 3 - build/runtime/platform-options.js.map | 1 - build/runtime/profile.d.ts | 3 - build/runtime/profile.js | 90 - build/runtime/profile.js.map | 1 - build/runtime/proxy-component.d.ts | 12 - build/runtime/proxy-component.js | 195 -- build/runtime/proxy-component.js.map | 1 - build/runtime/runtime-constants.d.ts | 62 - build/runtime/runtime-constants.js | 23 - build/runtime/runtime-constants.js.map | 1 - build/runtime/set-value.d.ts | 3 - build/runtime/set-value.js | 62 - build/runtime/set-value.js.map | 1 - build/runtime/styles.d.ts | 12 - build/runtime/styles.js | 100 - build/runtime/styles.js.map | 1 - .../test/parse-property-value.spec.d.ts | 1 - .../runtime/test/parse-property-value.spec.js | 202 -- .../test/parse-property-value.spec.js.map | 1 - build/runtime/update-component.d.ts | 18 - build/runtime/update-component.js | 417 --- build/runtime/update-component.js.map | 1 - build/runtime/vdom/h.d.ts | 27 - build/runtime/vdom/h.js | 201 -- build/runtime/vdom/h.js.map | 1 - build/runtime/vdom/set-accessor.d.ts | 24 - build/runtime/vdom/set-accessor.js | 191 -- build/runtime/vdom/set-accessor.js.map | 1 - build/runtime/vdom/test/attributes.spec.d.ts | 1 - build/runtime/vdom/test/attributes.spec.js | 82 - .../runtime/vdom/test/attributes.spec.js.map | 1 - .../vdom/test/event-listeners.spec.d.ts | 1 - .../runtime/vdom/test/event-listeners.spec.js | 69 - .../vdom/test/event-listeners.spec.js.map | 1 - build/runtime/vdom/test/h.spec.d.ts | 1 - build/runtime/vdom/test/h.spec.js | 449 --- build/runtime/vdom/test/h.spec.js.map | 1 - .../runtime/vdom/test/is-same-vnode.spec.d.ts | 1 - build/runtime/vdom/test/is-same-vnode.spec.js | 61 - .../vdom/test/is-same-vnode.spec.js.map | 1 - build/runtime/vdom/test/patch-svg.spec.d.ts | 1 - build/runtime/vdom/test/patch-svg.spec.js | 59 - build/runtime/vdom/test/patch-svg.spec.js.map | 1 - build/runtime/vdom/test/patch.spec.d.ts | 1 - build/runtime/vdom/test/patch.spec.js | 669 ----- build/runtime/vdom/test/patch.spec.js.map | 1 - .../runtime/vdom/test/set-accessor.spec.d.ts | 1 - build/runtime/vdom/test/set-accessor.spec.js | 682 ----- .../vdom/test/set-accessor.spec.js.map | 1 - build/runtime/vdom/test/to-vnode.d.ts | 2 - build/runtime/vdom/test/to-vnode.js | 23 - build/runtime/vdom/test/to-vnode.js.map | 1 - build/runtime/vdom/test/to-vnode.spec.d.ts | 1 - build/runtime/vdom/test/to-vnode.spec.js | 37 - build/runtime/vdom/test/to-vnode.spec.js.map | 1 - .../vdom/test/update-element.spec.d.ts | 1 - .../runtime/vdom/test/update-element.spec.js | 187 -- .../vdom/test/update-element.spec.js.map | 1 - build/runtime/vdom/update-element.d.ts | 2 - build/runtime/vdom/update-element.js | 26 - build/runtime/vdom/update-element.js.map | 1 - build/runtime/vdom/vdom-annotations.d.ts | 10 - build/runtime/vdom/vdom-annotations.js | 188 -- build/runtime/vdom/vdom-annotations.js.map | 1 - build/runtime/vdom/vdom-render.d.ts | 51 - build/runtime/vdom/vdom-render.js | 970 ------- build/runtime/vdom/vdom-render.js.map | 1 - build/screenshot/connector-base.d.ts | 42 - build/screenshot/connector-base.js | 328 --- build/screenshot/connector-base.js.map | 1 - build/screenshot/connector-local.d.ts | 7 - build/screenshot/connector-local.js | 87 - build/screenshot/connector-local.js.map | 1 - build/screenshot/index.d.ts | 3 - build/screenshot/index.js | 3 - build/screenshot/index.js.map | 1 - build/screenshot/pixel-match.d.ts | 1 - build/screenshot/pixel-match.js | 19 - build/screenshot/pixel-match.js.map | 1 - build/screenshot/screenshot-compare.d.ts | 21 - build/screenshot/screenshot-compare.js | 164 -- build/screenshot/screenshot-compare.js.map | 1 - build/screenshot/screenshot-fs.d.ts | 15 - build/screenshot/screenshot-fs.js | 125 - build/screenshot/screenshot-fs.js.map | 1 - build/sys/node/index.d.ts | 3 - build/sys/node/index.js | 4 - build/sys/node/index.js.map | 1 - build/sys/node/logger/index.d.ts | 18 - build/sys/node/logger/index.js | 89 - build/sys/node/logger/index.js.map | 1 - build/sys/node/logger/terminal-logger.d.ts | 32 - build/sys/node/logger/terminal-logger.js | 665 ----- build/sys/node/logger/terminal-logger.js.map | 1 - .../logger/test/terminal-logger.spec.d.ts | 1 - .../node/logger/test/terminal-logger.spec.js | 195 -- .../logger/test/terminal-logger.spec.js.map | 1 - build/sys/node/node-copy-tasks.d.ts | 3 - build/sys/node/node-copy-tasks.js | 164 -- build/sys/node/node-copy-tasks.js.map | 1 - build/sys/node/node-fs-promisify.d.ts | 7 - build/sys/node/node-fs-promisify.js | 8 - build/sys/node/node-fs-promisify.js.map | 1 - build/sys/node/node-lazy-require.d.ts | 56 - build/sys/node/node-lazy-require.js | 77 - build/sys/node/node-lazy-require.js.map | 1 - build/sys/node/node-resolve-module.d.ts | 7 - build/sys/node/node-resolve-module.js | 73 - build/sys/node/node-resolve-module.js.map | 1 - build/sys/node/node-setup-process.d.ts | 5 - build/sys/node/node-setup-process.js | 21 - build/sys/node/node-setup-process.js.map | 1 - .../node/node-stencil-version-checker.d.ts | 2 - .../sys/node/node-stencil-version-checker.js | 152 - .../node/node-stencil-version-checker.js.map | 1 - build/sys/node/node-sys.d.ts | 14 - build/sys/node/node-sys.js | 656 ----- build/sys/node/node-sys.js.map | 1 - build/sys/node/node-worker-controller.d.ts | 45 - build/sys/node/node-worker-controller.js | 186 -- build/sys/node/node-worker-controller.js.map | 1 - build/sys/node/node-worker-main.d.ts | 37 - build/sys/node/node-worker-main.js | 131 - build/sys/node/node-worker-main.js.map | 1 - build/sys/node/node-worker-thread.d.ts | 15 - build/sys/node/node-worker-thread.js | 57 - build/sys/node/node-worker-thread.js.map | 1 - build/sys/node/public.d.ts | 22 - build/sys/node/public.js | 2 - build/sys/node/public.js.map | 1 - .../sys/node/test/node-lazy-require.spec.d.ts | 1 - build/sys/node/test/node-lazy-require.spec.js | 67 - .../node/test/node-lazy-require.spec.js.map | 1 - build/sys/node/test/test-worker-main.d.ts | 5 - build/sys/node/test/test-worker-main.js | 11 - build/sys/node/test/test-worker-main.js.map | 1 - build/sys/node/test/worker-manager.spec.d.ts | 1 - build/sys/node/test/worker-manager.spec.js | 66 - .../sys/node/test/worker-manager.spec.js.map | 1 - build/sys/node/worker.d.ts | 1 - build/sys/node/worker.js | 12 - build/sys/node/worker.js.map | 1 - build/testing/index.d.ts | 9 - build/testing/index.js | 9 - build/testing/index.js.map | 1 - .../jest/jest-27-and-under/jest-config.d.ts | 16 - .../jest/jest-27-and-under/jest-config.js | 138 - .../jest/jest-27-and-under/jest-config.js.map | 1 - .../jest-27-and-under/jest-environment.d.ts | 2 - .../jest-27-and-under/jest-environment.js | 46 - .../jest-27-and-under/jest-environment.js.map | 1 - .../jest/jest-27-and-under/jest-facade.d.ts | 155 - .../jest/jest-27-and-under/jest-facade.js | 37 - .../jest/jest-27-and-under/jest-facade.js.map | 1 - .../jest-27-and-under/jest-preprocessor.d.ts | 59 - .../jest-27-and-under/jest-preprocessor.js | 213 -- .../jest-preprocessor.js.map | 1 - .../jest/jest-27-and-under/jest-preset.d.ts | 3 - .../jest/jest-27-and-under/jest-preset.js | 37 - .../jest/jest-27-and-under/jest-preset.js.map | 1 - .../jest/jest-27-and-under/jest-runner.d.ts | 11 - .../jest/jest-27-and-under/jest-runner.js | 101 - .../jest/jest-27-and-under/jest-runner.js.map | 1 - .../jest-27-and-under/jest-screenshot.d.ts | 2 - .../jest/jest-27-and-under/jest-screenshot.js | 99 - .../jest-27-and-under/jest-screenshot.js.map | 1 - .../jest-27-and-under/jest-serializer.d.ts | 4 - .../jest/jest-27-and-under/jest-serializer.js | 17 - .../jest-27-and-under/jest-serializer.js.map | 1 - .../jest-setup-test-framework.d.ts | 9 - .../jest-setup-test-framework.js | 83 - .../jest-setup-test-framework.js.map | 1 - .../matchers/attributes.d.ts | 14 - .../jest-27-and-under/matchers/attributes.js | 65 - .../matchers/attributes.js.map | 1 - .../matchers/class-list.d.ts | 12 - .../jest-27-and-under/matchers/class-list.js | 45 - .../matchers/class-list.js.map | 1 - .../jest-27-and-under/matchers/events.d.ts | 21 - .../jest/jest-27-and-under/matchers/events.js | 142 - .../jest-27-and-under/matchers/events.js.map | 1 - .../jest/jest-27-and-under/matchers/html.d.ts | 12 - .../jest/jest-27-and-under/matchers/html.js | 67 - .../jest-27-and-under/matchers/html.js.map | 1 - .../jest-27-and-under/matchers/index.d.ts | 23 - .../jest/jest-27-and-under/matchers/index.js | 24 - .../jest-27-and-under/matchers/index.js.map | 1 - .../matchers/screenshot.d.ts | 5 - .../jest-27-and-under/matchers/screenshot.js | 51 - .../matchers/screenshot.js.map | 1 - .../jest/jest-27-and-under/matchers/text.d.ts | 4 - .../jest/jest-27-and-under/matchers/text.js | 25 - .../jest-27-and-under/matchers/text.js.map | 1 - .../test/jest-config.spec.d.ts | 1 - .../test/jest-config.spec.js | 233 -- .../test/jest-config.spec.js.map | 1 - .../test/jest-preprocessor.spec.d.ts | 1 - .../test/jest-preprocessor.spec.js | 20 - .../test/jest-preprocessor.spec.js.map | 1 - .../test/jest-runner.spec.d.ts | 1 - .../test/jest-runner.spec.js | 87 - .../test/jest-runner.spec.js.map | 1 - .../test/jest-serializer.spec.d.ts | 1 - .../test/jest-serializer.spec.js | 24 - .../test/jest-serializer.spec.js.map | 1 - .../test/jest-setup-test-framework.spec.d.ts | 1 - .../test/jest-setup-test-framework.spec.js | 32 - .../jest-setup-test-framework.spec.js.map | 1 - build/testing/jest/jest-28/jest-config.d.ts | 16 - build/testing/jest/jest-28/jest-config.js | 103 - build/testing/jest/jest-28/jest-config.js.map | 1 - .../jest/jest-28/jest-environment.d.ts | 2 - .../testing/jest/jest-28/jest-environment.js | 85 - .../jest/jest-28/jest-environment.js.map | 1 - build/testing/jest/jest-28/jest-facade.d.ts | 152 - build/testing/jest/jest-28/jest-facade.js | 37 - build/testing/jest/jest-28/jest-facade.js.map | 1 - .../jest/jest-28/jest-preprocessor.d.ts | 35 - .../testing/jest/jest-28/jest-preprocessor.js | 158 -- .../jest/jest-28/jest-preprocessor.js.map | 1 - build/testing/jest/jest-28/jest-preset.d.ts | 3 - build/testing/jest/jest-28/jest-preset.js | 37 - build/testing/jest/jest-28/jest-preset.js.map | 1 - build/testing/jest/jest-28/jest-runner.d.ts | 11 - build/testing/jest/jest-28/jest-runner.js | 101 - build/testing/jest/jest-28/jest-runner.js.map | 1 - .../testing/jest/jest-28/jest-screenshot.d.ts | 2 - build/testing/jest/jest-28/jest-screenshot.js | 99 - .../jest/jest-28/jest-screenshot.js.map | 1 - .../testing/jest/jest-28/jest-serializer.d.ts | 4 - build/testing/jest/jest-28/jest-serializer.js | 17 - .../jest/jest-28/jest-serializer.js.map | 1 - .../jest-28/jest-setup-test-framework.d.ts | 9 - .../jest/jest-28/jest-setup-test-framework.js | 73 - .../jest-28/jest-setup-test-framework.js.map | 1 - .../jest/jest-28/matchers/attributes.d.ts | 14 - .../jest/jest-28/matchers/attributes.js | 65 - .../jest/jest-28/matchers/attributes.js.map | 1 - .../jest/jest-28/matchers/class-list.d.ts | 12 - .../jest/jest-28/matchers/class-list.js | 45 - .../jest/jest-28/matchers/class-list.js.map | 1 - .../testing/jest/jest-28/matchers/events.d.ts | 21 - build/testing/jest/jest-28/matchers/events.js | 142 - .../jest/jest-28/matchers/events.js.map | 1 - build/testing/jest/jest-28/matchers/html.d.ts | 12 - build/testing/jest/jest-28/matchers/html.js | 67 - .../testing/jest/jest-28/matchers/html.js.map | 1 - .../testing/jest/jest-28/matchers/index.d.ts | 23 - build/testing/jest/jest-28/matchers/index.js | 24 - .../jest/jest-28/matchers/index.js.map | 1 - .../jest/jest-28/matchers/screenshot.d.ts | 5 - .../jest/jest-28/matchers/screenshot.js | 51 - .../jest/jest-28/matchers/screenshot.js.map | 1 - build/testing/jest/jest-28/matchers/text.d.ts | 4 - build/testing/jest/jest-28/matchers/text.js | 25 - .../testing/jest/jest-28/matchers/text.js.map | 1 - .../jest/jest-28/test/jest-config.spec.d.ts | 1 - .../jest/jest-28/test/jest-config.spec.js | 207 -- .../jest/jest-28/test/jest-config.spec.js.map | 1 - .../jest-28/test/jest-preprocessor.spec.d.ts | 1 - .../jest-28/test/jest-preprocessor.spec.js | 20 - .../test/jest-preprocessor.spec.js.map | 1 - .../jest/jest-28/test/jest-runner.spec.d.ts | 1 - .../jest/jest-28/test/jest-runner.spec.js | 87 - .../jest/jest-28/test/jest-runner.spec.js.map | 1 - .../jest-28/test/jest-serializer.spec.d.ts | 1 - .../jest/jest-28/test/jest-serializer.spec.js | 24 - .../jest-28/test/jest-serializer.spec.js.map | 1 - .../test/jest-setup-test-framework.spec.d.ts | 1 - .../test/jest-setup-test-framework.spec.js | 32 - .../jest-setup-test-framework.spec.js.map | 1 - build/testing/jest/jest-29/jest-config.d.ts | 16 - build/testing/jest/jest-29/jest-config.js | 103 - build/testing/jest/jest-29/jest-config.js.map | 1 - .../jest/jest-29/jest-environment.d.ts | 2 - .../testing/jest/jest-29/jest-environment.js | 85 - .../jest/jest-29/jest-environment.js.map | 1 - build/testing/jest/jest-29/jest-facade.d.ts | 155 - build/testing/jest/jest-29/jest-facade.js | 37 - build/testing/jest/jest-29/jest-facade.js.map | 1 - .../jest/jest-29/jest-preprocessor.d.ts | 35 - .../testing/jest/jest-29/jest-preprocessor.js | 158 -- .../jest/jest-29/jest-preprocessor.js.map | 1 - build/testing/jest/jest-29/jest-preset.d.ts | 3 - build/testing/jest/jest-29/jest-preset.js | 37 - build/testing/jest/jest-29/jest-preset.js.map | 1 - build/testing/jest/jest-29/jest-runner.d.ts | 11 - build/testing/jest/jest-29/jest-runner.js | 101 - build/testing/jest/jest-29/jest-runner.js.map | 1 - .../testing/jest/jest-29/jest-screenshot.d.ts | 2 - build/testing/jest/jest-29/jest-screenshot.js | 99 - .../jest/jest-29/jest-screenshot.js.map | 1 - .../testing/jest/jest-29/jest-serializer.d.ts | 4 - build/testing/jest/jest-29/jest-serializer.js | 17 - .../jest/jest-29/jest-serializer.js.map | 1 - .../jest-29/jest-setup-test-framework.d.ts | 9 - .../jest/jest-29/jest-setup-test-framework.js | 73 - .../jest-29/jest-setup-test-framework.js.map | 1 - .../jest/jest-29/matchers/attributes.d.ts | 14 - .../jest/jest-29/matchers/attributes.js | 65 - .../jest/jest-29/matchers/attributes.js.map | 1 - .../jest/jest-29/matchers/class-list.d.ts | 12 - .../jest/jest-29/matchers/class-list.js | 45 - .../jest/jest-29/matchers/class-list.js.map | 1 - .../testing/jest/jest-29/matchers/events.d.ts | 21 - build/testing/jest/jest-29/matchers/events.js | 142 - .../jest/jest-29/matchers/events.js.map | 1 - build/testing/jest/jest-29/matchers/html.d.ts | 12 - build/testing/jest/jest-29/matchers/html.js | 67 - .../testing/jest/jest-29/matchers/html.js.map | 1 - .../testing/jest/jest-29/matchers/index.d.ts | 23 - build/testing/jest/jest-29/matchers/index.js | 24 - .../jest/jest-29/matchers/index.js.map | 1 - .../jest/jest-29/matchers/screenshot.d.ts | 5 - .../jest/jest-29/matchers/screenshot.js | 51 - .../jest/jest-29/matchers/screenshot.js.map | 1 - build/testing/jest/jest-29/matchers/text.d.ts | 4 - build/testing/jest/jest-29/matchers/text.js | 25 - .../testing/jest/jest-29/matchers/text.js.map | 1 - .../jest/jest-29/test/jest-config.spec.d.ts | 1 - .../jest/jest-29/test/jest-config.spec.js | 207 -- .../jest/jest-29/test/jest-config.spec.js.map | 1 - .../jest-29/test/jest-preprocessor.spec.d.ts | 1 - .../jest-29/test/jest-preprocessor.spec.js | 20 - .../test/jest-preprocessor.spec.js.map | 1 - .../jest/jest-29/test/jest-runner.spec.d.ts | 1 - .../jest/jest-29/test/jest-runner.spec.js | 87 - .../jest/jest-29/test/jest-runner.spec.js.map | 1 - .../jest-29/test/jest-serializer.spec.d.ts | 1 - .../jest/jest-29/test/jest-serializer.spec.js | 24 - .../jest-29/test/jest-serializer.spec.js.map | 1 - .../test/jest-setup-test-framework.spec.d.ts | 1 - .../test/jest-setup-test-framework.spec.js | 32 - .../jest-setup-test-framework.spec.js.map | 1 - build/testing/jest/jest-apis.d.ts | 86 - build/testing/jest/jest-apis.js | 23 - build/testing/jest/jest-apis.js.map | 1 - build/testing/jest/jest-facade.d.ts | 74 - build/testing/jest/jest-facade.js | 2 - build/testing/jest/jest-facade.js.map | 1 - .../testing/jest/jest-stencil-connector.d.ts | 65 - build/testing/jest/jest-stencil-connector.js | 117 - .../jest/jest-stencil-connector.js.map | 1 - .../test/jest-stencil-connector.spec.d.ts | 1 - .../jest/test/jest-stencil-connector.spec.js | 40 - .../test/jest-stencil-connector.spec.js.map | 1 - build/testing/mock-fetch.d.ts | 11 - build/testing/mock-fetch.js | 143 - build/testing/mock-fetch.js.map | 1 - build/testing/mocks.d.ts | 55 - build/testing/mocks.js | 257 -- build/testing/mocks.js.map | 1 - build/testing/platform/index.d.ts | 9 - build/testing/platform/index.js | 10 - build/testing/platform/index.js.map | 1 - build/testing/platform/load-module.d.ts | 4 - build/testing/platform/load-module.js | 2 - build/testing/platform/load-module.js.map | 1 - build/testing/platform/testing-build.d.ts | 2 - build/testing/platform/testing-build.js | 7 - build/testing/platform/testing-build.js.map | 1 - build/testing/platform/testing-constants.d.ts | 25 - build/testing/platform/testing-constants.js | 24 - .../testing/platform/testing-constants.js.map | 1 - build/testing/platform/testing-host-ref.d.ts | 22 - build/testing/platform/testing-host-ref.js | 53 - .../testing/platform/testing-host-ref.js.map | 1 - build/testing/platform/testing-log.d.ts | 6 - build/testing/platform/testing-log.js | 19 - build/testing/platform/testing-log.js.map | 1 - build/testing/platform/testing-platform.d.ts | 51 - build/testing/platform/testing-platform.js | 113 - .../testing/platform/testing-platform.js.map | 1 - .../testing/platform/testing-task-queue.d.ts | 52 - build/testing/platform/testing-task-queue.js | 180 -- .../platform/testing-task-queue.js.map | 1 - build/testing/platform/testing-window.d.ts | 2 - build/testing/platform/testing-window.js | 4 - build/testing/platform/testing-window.js.map | 1 - build/testing/puppeteer/index.d.ts | 2 - build/testing/puppeteer/index.js | 2 - build/testing/puppeteer/index.js.map | 1 - .../testing/puppeteer/puppeteer-browser.d.ts | 6 - build/testing/puppeteer/puppeteer-browser.js | 96 - .../puppeteer/puppeteer-browser.js.map | 1 - .../puppeteer/puppeteer-declarations.d.ts | 403 --- .../puppeteer/puppeteer-declarations.js | 2 - .../puppeteer/puppeteer-declarations.js.map | 1 - .../testing/puppeteer/puppeteer-element.d.ts | 67 - build/testing/puppeteer/puppeteer-element.js | 616 ---- .../puppeteer/puppeteer-element.js.map | 1 - .../testing/puppeteer/puppeteer-emulate.d.ts | 2 - build/testing/puppeteer/puppeteer-emulate.js | 55 - .../puppeteer/puppeteer-emulate.js.map | 1 - build/testing/puppeteer/puppeteer-events.d.ts | 21 - build/testing/puppeteer/puppeteer-events.js | 196 -- .../testing/puppeteer/puppeteer-events.js.map | 1 - build/testing/puppeteer/puppeteer-page.d.ts | 2 - build/testing/puppeteer/puppeteer-page.js | 317 --- build/testing/puppeteer/puppeteer-page.js.map | 1 - .../puppeteer/puppeteer-screenshot.d.ts | 22 - .../testing/puppeteer/puppeteer-screenshot.js | 114 - .../puppeteer/puppeteer-screenshot.js.map | 1 - build/testing/reset-build-conditionals.d.ts | 12 - build/testing/reset-build-conditionals.js | 58 - build/testing/reset-build-conditionals.js.map | 1 - build/testing/spec-page.d.ts | 7 - build/testing/spec-page.js | 285 -- build/testing/spec-page.js.map | 1 - build/testing/test-transpile.d.ts | 2 - build/testing/test-transpile.js | 37 - build/testing/test-transpile.js.map | 1 - build/testing/test/testing-utils.spec.d.ts | 1 - build/testing/test/testing-utils.spec.js | 83 - build/testing/test/testing-utils.spec.js.map | 1 - build/testing/testing-logger.d.ts | 26 - build/testing/testing-logger.js | 79 - build/testing/testing-logger.js.map | 1 - build/testing/testing-sys.d.ts | 6 - build/testing/testing-sys.js | 73 - build/testing/testing-sys.js.map | 1 - build/testing/testing-utils.d.ts | 81 - build/testing/testing-utils.js | 163 -- build/testing/testing-utils.js.map | 1 - build/testing/testing.d.ts | 2 - build/testing/testing.js | 194 -- build/testing/testing.js.map | 1 - build/utils/byte-size.d.ts | 7 - build/utils/byte-size.js | 8 - build/utils/byte-size.js.map | 1 - build/utils/constants.d.ts | 189 -- build/utils/constants.js | 111 - build/utils/constants.js.map | 1 - .../utils/format-component-runtime-meta.d.ts | 12 - build/utils/format-component-runtime-meta.js | 193 -- .../format-component-runtime-meta.js.map | 1 - build/utils/helpers.d.ts | 103 - build/utils/helpers.js | 163 -- build/utils/helpers.js.map | 1 - build/utils/index.d.ts | 19 - build/utils/index.js | 20 - build/utils/index.js.map | 1 - build/utils/is-glob.d.ts | 7 - build/utils/is-glob.js | 33 - build/utils/is-glob.js.map | 1 - build/utils/is-root-path.d.ts | 7 - build/utils/is-root-path.js | 10 - build/utils/is-root-path.js.map | 1 - build/utils/logger/logger-rollup.d.ts | 8 - build/utils/logger/logger-rollup.js | 141 - build/utils/logger/logger-rollup.js.map | 1 - build/utils/logger/logger-typescript.d.ts | 22 - build/utils/logger/logger-typescript.js | 182 -- build/utils/logger/logger-typescript.js.map | 1 - build/utils/logger/logger-utils.d.ts | 15 - build/utils/logger/logger-utils.js | 127 - build/utils/logger/logger-utils.js.map | 1 - build/utils/message-utils.d.ts | 60 - build/utils/message-utils.js | 174 -- build/utils/message-utils.js.map | 1 - build/utils/output-target.d.ts | 52 - build/utils/output-target.js | 74 - build/utils/output-target.js.map | 1 - build/utils/path.d.ts | 72 - build/utils/path.js | 244 -- build/utils/path.js.map | 1 - build/utils/query-nonce-meta-tag-content.d.ts | 9 - build/utils/query-nonce-meta-tag-content.js | 13 - .../utils/query-nonce-meta-tag-content.js.map | 1 - build/utils/regular-expression.d.ts | 7 - build/utils/regular-expression.js | 10 - build/utils/regular-expression.js.map | 1 - build/utils/result.d.ts | 112 - build/utils/result.js | 76 - build/utils/result.js.map | 1 - build/utils/shadow-css.d.ts | 12 - build/utils/shadow-css.js | 463 --- build/utils/shadow-css.js.map | 1 - build/utils/sourcemaps.d.ts | 31 - build/utils/sourcemaps.js | 65 - build/utils/sourcemaps.js.map | 1 - build/utils/test/helpers.spec.d.ts | 1 - build/utils/test/helpers.spec.js | 95 - build/utils/test/helpers.spec.js.map | 1 - build/utils/test/is-root-path.spec.d.ts | 1 - build/utils/test/is-root-path.spec.js | 29 - build/utils/test/is-root-path.spec.js.map | 1 - build/utils/test/message-utils.spec.d.ts | 1 - build/utils/test/message-utils.spec.js | 220 -- build/utils/test/message-utils.spec.js.map | 1 - build/utils/test/output-target.spec.d.ts | 1 - build/utils/test/output-target.spec.js | 39 - build/utils/test/output-target.spec.js.map | 1 - build/utils/test/path.spec.d.ts | 1 - build/utils/test/path.spec.js | 154 - build/utils/test/path.spec.js.map | 1 - .../query-nonce-meta-tag-content.spec.d.ts | 1 - .../test/query-nonce-meta-tag-content.spec.js | 29 - .../query-nonce-meta-tag-content.spec.js.map | 1 - build/utils/test/regular-expression.spec.d.ts | 1 - build/utils/test/regular-expression.spec.js | 24 - .../utils/test/regular-expression.spec.js.map | 1 - build/utils/test/result.spec.d.ts | 1 - build/utils/test/result.spec.js | 32 - build/utils/test/result.spec.js.map | 1 - build/utils/test/scope-css.spec.d.ts | 5 - build/utils/test/scope-css.spec.js | 330 --- build/utils/test/scope-css.spec.js.map | 1 - build/utils/test/sourcemaps.spec.d.ts | 1 - build/utils/test/sourcemaps.spec.js | 148 - build/utils/test/sourcemaps.spec.js.map | 1 - build/utils/test/url-paths.spec.d.ts | 1 - build/utils/test/url-paths.spec.js | 23 - build/utils/test/url-paths.spec.js.map | 1 - build/utils/test/util.spec.d.ts | 1 - build/utils/test/util.spec.js | 185 -- build/utils/test/util.spec.js.map | 1 - build/utils/test/validation.spec.d.ts | 1 - build/utils/test/validation.spec.js | 43 - build/utils/test/validation.spec.js.map | 1 - build/utils/url-paths.d.ts | 10 - build/utils/url-paths.js | 18 - build/utils/url-paths.js.map | 1 - build/utils/util.d.ts | 72 - build/utils/util.js | 199 -- build/utils/util.js.map | 1 - build/utils/validation.d.ts | 6 - build/utils/validation.js | 44 - build/utils/validation.js.map | 1 - build/version.d.ts | 18 - build/version.js | 19 - build/version.js.map | 1 - 2191 files changed, 1 insertion(+), 93774 deletions(-) delete mode 100644 build/app-data/index.d.ts delete mode 100644 build/app-data/index.js delete mode 100644 build/app-data/index.js.map delete mode 100644 build/app-globals/index.d.ts delete mode 100644 build/app-globals/index.js delete mode 100644 build/app-globals/index.js.map delete mode 100644 build/cli/check-version.d.ts delete mode 100644 build/cli/check-version.js delete mode 100644 build/cli/check-version.js.map delete mode 100644 build/cli/config-flags.d.ts delete mode 100644 build/cli/config-flags.js delete mode 100644 build/cli/config-flags.js.map delete mode 100644 build/cli/find-config.d.ts delete mode 100644 build/cli/find-config.js delete mode 100644 build/cli/find-config.js.map delete mode 100644 build/cli/index.d.ts delete mode 100644 build/cli/index.js delete mode 100644 build/cli/index.js.map delete mode 100644 build/cli/ionic-config.d.ts delete mode 100644 build/cli/ionic-config.js delete mode 100644 build/cli/ionic-config.js.map delete mode 100644 build/cli/load-compiler.d.ts delete mode 100644 build/cli/load-compiler.js delete mode 100644 build/cli/load-compiler.js.map delete mode 100644 build/cli/logs.d.ts delete mode 100644 build/cli/logs.js delete mode 100644 build/cli/logs.js.map delete mode 100644 build/cli/parse-flags.d.ts delete mode 100644 build/cli/parse-flags.js delete mode 100644 build/cli/parse-flags.js.map delete mode 100644 build/cli/public.d.ts delete mode 100644 build/cli/public.js delete mode 100644 build/cli/public.js.map delete mode 100644 build/cli/run.d.ts delete mode 100644 build/cli/run.js delete mode 100644 build/cli/run.js.map delete mode 100644 build/cli/task-build.d.ts delete mode 100644 build/cli/task-build.js delete mode 100644 build/cli/task-build.js.map delete mode 100644 build/cli/task-docs.d.ts delete mode 100644 build/cli/task-docs.js delete mode 100644 build/cli/task-docs.js.map delete mode 100644 build/cli/task-generate.d.ts delete mode 100644 build/cli/task-generate.js delete mode 100644 build/cli/task-generate.js.map delete mode 100644 build/cli/task-help.d.ts delete mode 100644 build/cli/task-help.js delete mode 100644 build/cli/task-help.js.map delete mode 100644 build/cli/task-info.d.ts delete mode 100644 build/cli/task-info.js delete mode 100644 build/cli/task-info.js.map delete mode 100644 build/cli/task-prerender.d.ts delete mode 100644 build/cli/task-prerender.js delete mode 100644 build/cli/task-prerender.js.map delete mode 100644 build/cli/task-serve.d.ts delete mode 100644 build/cli/task-serve.js delete mode 100644 build/cli/task-serve.js.map delete mode 100644 build/cli/task-telemetry.d.ts delete mode 100644 build/cli/task-telemetry.js delete mode 100644 build/cli/task-telemetry.js.map delete mode 100644 build/cli/task-test.d.ts delete mode 100644 build/cli/task-test.js delete mode 100644 build/cli/task-test.js.map delete mode 100644 build/cli/task-watch.d.ts delete mode 100644 build/cli/task-watch.js delete mode 100644 build/cli/task-watch.js.map delete mode 100644 build/cli/telemetry/helpers.d.ts delete mode 100644 build/cli/telemetry/helpers.js delete mode 100644 build/cli/telemetry/helpers.js.map delete mode 100644 build/cli/telemetry/shouldTrack.d.ts delete mode 100644 build/cli/telemetry/shouldTrack.js delete mode 100644 build/cli/telemetry/shouldTrack.js.map delete mode 100644 build/cli/telemetry/telemetry.d.ts delete mode 100644 build/cli/telemetry/telemetry.js delete mode 100644 build/cli/telemetry/telemetry.js.map delete mode 100644 build/cli/telemetry/test/helpers.spec.d.ts delete mode 100644 build/cli/telemetry/test/helpers.spec.js delete mode 100644 build/cli/telemetry/test/helpers.spec.js.map delete mode 100644 build/cli/telemetry/test/telemetry.spec.d.ts delete mode 100644 build/cli/telemetry/test/telemetry.spec.js delete mode 100644 build/cli/telemetry/test/telemetry.spec.js.map delete mode 100644 build/cli/test/ionic-config.spec.d.ts delete mode 100644 build/cli/test/ionic-config.spec.js delete mode 100644 build/cli/test/ionic-config.spec.js.map delete mode 100644 build/cli/test/parse-flags.spec.d.ts delete mode 100644 build/cli/test/parse-flags.spec.js delete mode 100644 build/cli/test/parse-flags.spec.js.map delete mode 100644 build/cli/test/run.spec.d.ts delete mode 100644 build/cli/test/run.spec.js delete mode 100644 build/cli/test/run.spec.js.map delete mode 100644 build/cli/test/task-generate.spec.d.ts delete mode 100644 build/cli/test/task-generate.spec.js delete mode 100644 build/cli/test/task-generate.spec.js.map delete mode 100644 build/client/client-build.d.ts delete mode 100644 build/client/client-build.js delete mode 100644 build/client/client-build.js.map delete mode 100644 build/client/client-host-ref.d.ts delete mode 100644 build/client/client-host-ref.js delete mode 100644 build/client/client-host-ref.js.map delete mode 100644 build/client/client-load-module.d.ts delete mode 100644 build/client/client-load-module.js delete mode 100644 build/client/client-load-module.js.map delete mode 100644 build/client/client-log.d.ts delete mode 100644 build/client/client-log.js delete mode 100644 build/client/client-log.js.map delete mode 100644 build/client/client-patch-browser.d.ts delete mode 100644 build/client/client-patch-browser.js delete mode 100644 build/client/client-patch-browser.js.map delete mode 100644 build/client/client-style.d.ts delete mode 100644 build/client/client-style.js delete mode 100644 build/client/client-style.js.map delete mode 100644 build/client/client-task-queue.d.ts delete mode 100644 build/client/client-task-queue.js delete mode 100644 build/client/client-task-queue.js.map delete mode 100644 build/client/client-window.d.ts delete mode 100644 build/client/client-window.js delete mode 100644 build/client/client-window.js.map delete mode 100644 build/client/index.d.ts delete mode 100644 build/client/index.js delete mode 100644 build/client/index.js.map delete mode 100644 build/compiler/app-core/app-data.d.ts delete mode 100644 build/compiler/app-core/app-data.js delete mode 100644 build/compiler/app-core/app-data.js.map delete mode 100644 build/compiler/app-core/app-es5-disabled.d.ts delete mode 100644 build/compiler/app-core/app-es5-disabled.js delete mode 100644 build/compiler/app-core/app-es5-disabled.js.map delete mode 100644 build/compiler/app-core/app-polyfills.d.ts delete mode 100644 build/compiler/app-core/app-polyfills.js delete mode 100644 build/compiler/app-core/app-polyfills.js.map delete mode 100644 build/compiler/app-core/bundle-app-core.d.ts delete mode 100644 build/compiler/app-core/bundle-app-core.js delete mode 100644 build/compiler/app-core/bundle-app-core.js.map delete mode 100644 build/compiler/build/build-ctx.d.ts delete mode 100644 build/compiler/build/build-ctx.js delete mode 100644 build/compiler/build/build-ctx.js.map delete mode 100644 build/compiler/build/build-finish.d.ts delete mode 100644 build/compiler/build/build-finish.js delete mode 100644 build/compiler/build/build-finish.js.map delete mode 100644 build/compiler/build/build-hmr.d.ts delete mode 100644 build/compiler/build/build-hmr.js delete mode 100644 build/compiler/build/build-hmr.js.map delete mode 100644 build/compiler/build/build-results.d.ts delete mode 100644 build/compiler/build/build-results.js delete mode 100644 build/compiler/build/build-results.js.map delete mode 100644 build/compiler/build/build-stats.d.ts delete mode 100644 build/compiler/build/build-stats.js delete mode 100644 build/compiler/build/build-stats.js.map delete mode 100644 build/compiler/build/build.d.ts delete mode 100644 build/compiler/build/build.js delete mode 100644 build/compiler/build/build.js.map delete mode 100644 build/compiler/build/compiler-ctx.d.ts delete mode 100644 build/compiler/build/compiler-ctx.js delete mode 100644 build/compiler/build/compiler-ctx.js.map delete mode 100644 build/compiler/build/full-build.d.ts delete mode 100644 build/compiler/build/full-build.js delete mode 100644 build/compiler/build/full-build.js.map delete mode 100644 build/compiler/build/test/build-stats.spec.d.ts delete mode 100644 build/compiler/build/test/build-stats.spec.js delete mode 100644 build/compiler/build/test/build-stats.spec.js.map delete mode 100644 build/compiler/build/validate-files.d.ts delete mode 100644 build/compiler/build/validate-files.js delete mode 100644 build/compiler/build/validate-files.js.map delete mode 100644 build/compiler/build/watch-build.d.ts delete mode 100644 build/compiler/build/watch-build.js delete mode 100644 build/compiler/build/watch-build.js.map delete mode 100644 build/compiler/build/write-build.d.ts delete mode 100644 build/compiler/build/write-build.js delete mode 100644 build/compiler/build/write-build.js.map delete mode 100644 build/compiler/bundle/app-data-plugin.d.ts delete mode 100644 build/compiler/bundle/app-data-plugin.js delete mode 100644 build/compiler/bundle/app-data-plugin.js.map delete mode 100644 build/compiler/bundle/bundle-interface.d.ts delete mode 100644 build/compiler/bundle/bundle-interface.js delete mode 100644 build/compiler/bundle/bundle-interface.js.map delete mode 100644 build/compiler/bundle/bundle-output.d.ts delete mode 100644 build/compiler/bundle/bundle-output.js delete mode 100644 build/compiler/bundle/bundle-output.js.map delete mode 100644 build/compiler/bundle/constants.d.ts delete mode 100644 build/compiler/bundle/constants.js delete mode 100644 build/compiler/bundle/constants.js.map delete mode 100644 build/compiler/bundle/core-resolve-plugin.d.ts delete mode 100644 build/compiler/bundle/core-resolve-plugin.js delete mode 100644 build/compiler/bundle/core-resolve-plugin.js.map delete mode 100644 build/compiler/bundle/dev-module.d.ts delete mode 100644 build/compiler/bundle/dev-module.js delete mode 100644 build/compiler/bundle/dev-module.js.map delete mode 100644 build/compiler/bundle/dev-node-module-resolve.d.ts delete mode 100644 build/compiler/bundle/dev-node-module-resolve.js delete mode 100644 build/compiler/bundle/dev-node-module-resolve.js.map delete mode 100644 build/compiler/bundle/entry-alias-ids.d.ts delete mode 100644 build/compiler/bundle/entry-alias-ids.js delete mode 100644 build/compiler/bundle/entry-alias-ids.js.map delete mode 100644 build/compiler/bundle/ext-format-plugin.d.ts delete mode 100644 build/compiler/bundle/ext-format-plugin.js delete mode 100644 build/compiler/bundle/ext-format-plugin.js.map delete mode 100644 build/compiler/bundle/ext-transforms-plugin.d.ts delete mode 100644 build/compiler/bundle/ext-transforms-plugin.js delete mode 100644 build/compiler/bundle/ext-transforms-plugin.js.map delete mode 100644 build/compiler/bundle/file-load-plugin.d.ts delete mode 100644 build/compiler/bundle/file-load-plugin.js delete mode 100644 build/compiler/bundle/file-load-plugin.js.map delete mode 100644 build/compiler/bundle/loader-plugin.d.ts delete mode 100644 build/compiler/bundle/loader-plugin.js delete mode 100644 build/compiler/bundle/loader-plugin.js.map delete mode 100644 build/compiler/bundle/plugin-helper.d.ts delete mode 100644 build/compiler/bundle/plugin-helper.js delete mode 100644 build/compiler/bundle/plugin-helper.js.map delete mode 100644 build/compiler/bundle/server-plugin.d.ts delete mode 100644 build/compiler/bundle/server-plugin.js delete mode 100644 build/compiler/bundle/server-plugin.js.map delete mode 100644 build/compiler/bundle/test/core-resolve-plugin.spec.d.ts delete mode 100644 build/compiler/bundle/test/core-resolve-plugin.spec.js delete mode 100644 build/compiler/bundle/test/core-resolve-plugin.spec.js.map delete mode 100644 build/compiler/bundle/test/ext-transforms-plugin.spec.d.ts delete mode 100644 build/compiler/bundle/test/ext-transforms-plugin.spec.js delete mode 100644 build/compiler/bundle/test/ext-transforms-plugin.spec.js.map delete mode 100644 build/compiler/bundle/typescript-plugin.d.ts delete mode 100644 build/compiler/bundle/typescript-plugin.js delete mode 100644 build/compiler/bundle/typescript-plugin.js.map delete mode 100644 build/compiler/bundle/user-index-plugin.d.ts delete mode 100644 build/compiler/bundle/user-index-plugin.js delete mode 100644 build/compiler/bundle/user-index-plugin.js.map delete mode 100644 build/compiler/bundle/worker-plugin.d.ts delete mode 100644 build/compiler/bundle/worker-plugin.js delete mode 100644 build/compiler/bundle/worker-plugin.js.map delete mode 100644 build/compiler/cache.d.ts delete mode 100644 build/compiler/cache.js delete mode 100644 build/compiler/cache.js.map delete mode 100644 build/compiler/compiler.d.ts delete mode 100644 build/compiler/compiler.js delete mode 100644 build/compiler/compiler.js.map delete mode 100644 build/compiler/config/config-utils.d.ts delete mode 100644 build/compiler/config/config-utils.js delete mode 100644 build/compiler/config/config-utils.js.map delete mode 100644 build/compiler/config/constants.d.ts delete mode 100644 build/compiler/config/constants.js delete mode 100644 build/compiler/config/constants.js.map delete mode 100644 build/compiler/config/load-config.d.ts delete mode 100644 build/compiler/config/load-config.js delete mode 100644 build/compiler/config/load-config.js.map delete mode 100644 build/compiler/config/outputs/index.d.ts delete mode 100644 build/compiler/config/outputs/index.js delete mode 100644 build/compiler/config/outputs/index.js.map delete mode 100644 build/compiler/config/outputs/validate-collection.d.ts delete mode 100644 build/compiler/config/outputs/validate-collection.js delete mode 100644 build/compiler/config/outputs/validate-collection.js.map delete mode 100644 build/compiler/config/outputs/validate-custom-element.d.ts delete mode 100644 build/compiler/config/outputs/validate-custom-element.js delete mode 100644 build/compiler/config/outputs/validate-custom-element.js.map delete mode 100644 build/compiler/config/outputs/validate-custom-output.d.ts delete mode 100644 build/compiler/config/outputs/validate-custom-output.js delete mode 100644 build/compiler/config/outputs/validate-custom-output.js.map delete mode 100644 build/compiler/config/outputs/validate-dist.d.ts delete mode 100644 build/compiler/config/outputs/validate-dist.js delete mode 100644 build/compiler/config/outputs/validate-dist.js.map delete mode 100644 build/compiler/config/outputs/validate-docs.d.ts delete mode 100644 build/compiler/config/outputs/validate-docs.js delete mode 100644 build/compiler/config/outputs/validate-docs.js.map delete mode 100644 build/compiler/config/outputs/validate-hydrate-script.d.ts delete mode 100644 build/compiler/config/outputs/validate-hydrate-script.js delete mode 100644 build/compiler/config/outputs/validate-hydrate-script.js.map delete mode 100644 build/compiler/config/outputs/validate-lazy.d.ts delete mode 100644 build/compiler/config/outputs/validate-lazy.js delete mode 100644 build/compiler/config/outputs/validate-lazy.js.map delete mode 100644 build/compiler/config/outputs/validate-stats.d.ts delete mode 100644 build/compiler/config/outputs/validate-stats.js delete mode 100644 build/compiler/config/outputs/validate-stats.js.map delete mode 100644 build/compiler/config/outputs/validate-www.d.ts delete mode 100644 build/compiler/config/outputs/validate-www.js delete mode 100644 build/compiler/config/outputs/validate-www.js.map delete mode 100644 build/compiler/config/test/load-config.spec.d.ts delete mode 100644 build/compiler/config/test/load-config.spec.js delete mode 100644 build/compiler/config/test/load-config.spec.js.map delete mode 100644 build/compiler/config/test/validate-config-sourcemap.spec.d.ts delete mode 100644 build/compiler/config/test/validate-config-sourcemap.spec.js delete mode 100644 build/compiler/config/test/validate-config-sourcemap.spec.js.map delete mode 100644 build/compiler/config/test/validate-config.spec.d.ts delete mode 100644 build/compiler/config/test/validate-config.spec.js delete mode 100644 build/compiler/config/test/validate-config.spec.js.map delete mode 100644 build/compiler/config/test/validate-copy.spec.d.ts delete mode 100644 build/compiler/config/test/validate-copy.spec.js delete mode 100644 build/compiler/config/test/validate-copy.spec.js.map delete mode 100644 build/compiler/config/test/validate-custom.spec.d.ts delete mode 100644 build/compiler/config/test/validate-custom.spec.js delete mode 100644 build/compiler/config/test/validate-custom.spec.js.map delete mode 100644 build/compiler/config/test/validate-dev-server.spec.d.ts delete mode 100644 build/compiler/config/test/validate-dev-server.spec.js delete mode 100644 build/compiler/config/test/validate-dev-server.spec.js.map delete mode 100644 build/compiler/config/test/validate-docs.spec.d.ts delete mode 100644 build/compiler/config/test/validate-docs.spec.js delete mode 100644 build/compiler/config/test/validate-docs.spec.js.map delete mode 100644 build/compiler/config/test/validate-hydrated.spec.d.ts delete mode 100644 build/compiler/config/test/validate-hydrated.spec.js delete mode 100644 build/compiler/config/test/validate-hydrated.spec.js.map delete mode 100644 build/compiler/config/test/validate-namespace.spec.d.ts delete mode 100644 build/compiler/config/test/validate-namespace.spec.js delete mode 100644 build/compiler/config/test/validate-namespace.spec.js.map delete mode 100644 build/compiler/config/test/validate-output-dist-collection.spec.d.ts delete mode 100644 build/compiler/config/test/validate-output-dist-collection.spec.js delete mode 100644 build/compiler/config/test/validate-output-dist-collection.spec.js.map delete mode 100644 build/compiler/config/test/validate-output-dist-custom-element.spec.d.ts delete mode 100644 build/compiler/config/test/validate-output-dist-custom-element.spec.js delete mode 100644 build/compiler/config/test/validate-output-dist-custom-element.spec.js.map delete mode 100644 build/compiler/config/test/validate-output-dist.spec.d.ts delete mode 100644 build/compiler/config/test/validate-output-dist.spec.js delete mode 100644 build/compiler/config/test/validate-output-dist.spec.js.map delete mode 100644 build/compiler/config/test/validate-output-www.spec.d.ts delete mode 100644 build/compiler/config/test/validate-output-www.spec.js delete mode 100644 build/compiler/config/test/validate-output-www.spec.js.map delete mode 100644 build/compiler/config/test/validate-paths.spec.d.ts delete mode 100644 build/compiler/config/test/validate-paths.spec.js delete mode 100644 build/compiler/config/test/validate-paths.spec.js.map delete mode 100644 build/compiler/config/test/validate-rollup-config.spec.d.ts delete mode 100644 build/compiler/config/test/validate-rollup-config.spec.js delete mode 100644 build/compiler/config/test/validate-rollup-config.spec.js.map delete mode 100644 build/compiler/config/test/validate-service-worker.spec.d.ts delete mode 100644 build/compiler/config/test/validate-service-worker.spec.js delete mode 100644 build/compiler/config/test/validate-service-worker.spec.js.map delete mode 100644 build/compiler/config/test/validate-stats.spec.d.ts delete mode 100644 build/compiler/config/test/validate-stats.spec.js delete mode 100644 build/compiler/config/test/validate-stats.spec.js.map delete mode 100644 build/compiler/config/test/validate-testing.spec.d.ts delete mode 100644 build/compiler/config/test/validate-testing.spec.js delete mode 100644 build/compiler/config/test/validate-testing.spec.js.map delete mode 100644 build/compiler/config/test/validate-workers.spec.d.ts delete mode 100644 build/compiler/config/test/validate-workers.spec.js delete mode 100644 build/compiler/config/test/validate-workers.spec.js.map delete mode 100644 build/compiler/config/transpile-options.d.ts delete mode 100644 build/compiler/config/transpile-options.js delete mode 100644 build/compiler/config/transpile-options.js.map delete mode 100644 build/compiler/config/validate-config.d.ts delete mode 100644 build/compiler/config/validate-config.js delete mode 100644 build/compiler/config/validate-config.js.map delete mode 100644 build/compiler/config/validate-copy.d.ts delete mode 100644 build/compiler/config/validate-copy.js delete mode 100644 build/compiler/config/validate-copy.js.map delete mode 100644 build/compiler/config/validate-dev-server.d.ts delete mode 100644 build/compiler/config/validate-dev-server.js delete mode 100644 build/compiler/config/validate-dev-server.js.map delete mode 100644 build/compiler/config/validate-hydrated.d.ts delete mode 100644 build/compiler/config/validate-hydrated.js delete mode 100644 build/compiler/config/validate-hydrated.js.map delete mode 100644 build/compiler/config/validate-namespace.d.ts delete mode 100644 build/compiler/config/validate-namespace.js delete mode 100644 build/compiler/config/validate-namespace.js.map delete mode 100644 build/compiler/config/validate-paths.d.ts delete mode 100644 build/compiler/config/validate-paths.js delete mode 100644 build/compiler/config/validate-paths.js.map delete mode 100644 build/compiler/config/validate-plugins.d.ts delete mode 100644 build/compiler/config/validate-plugins.js delete mode 100644 build/compiler/config/validate-plugins.js.map delete mode 100644 build/compiler/config/validate-prerender.d.ts delete mode 100644 build/compiler/config/validate-prerender.js delete mode 100644 build/compiler/config/validate-prerender.js.map delete mode 100644 build/compiler/config/validate-rollup-config.d.ts delete mode 100644 build/compiler/config/validate-rollup-config.js delete mode 100644 build/compiler/config/validate-rollup-config.js.map delete mode 100644 build/compiler/config/validate-service-worker.d.ts delete mode 100644 build/compiler/config/validate-service-worker.js delete mode 100644 build/compiler/config/validate-service-worker.js.map delete mode 100644 build/compiler/config/validate-testing.d.ts delete mode 100644 build/compiler/config/validate-testing.js delete mode 100644 build/compiler/config/validate-testing.js.map delete mode 100644 build/compiler/config/validate-workers.d.ts delete mode 100644 build/compiler/config/validate-workers.js delete mode 100644 build/compiler/config/validate-workers.js.map delete mode 100644 build/compiler/docs/constants.d.ts delete mode 100644 build/compiler/docs/constants.js delete mode 100644 build/compiler/docs/constants.js.map delete mode 100644 build/compiler/docs/custom/index.d.ts delete mode 100644 build/compiler/docs/custom/index.js delete mode 100644 build/compiler/docs/custom/index.js.map delete mode 100644 build/compiler/docs/generate-doc-data.d.ts delete mode 100644 build/compiler/docs/generate-doc-data.js delete mode 100644 build/compiler/docs/generate-doc-data.js.map delete mode 100644 build/compiler/docs/json/index.d.ts delete mode 100644 build/compiler/docs/json/index.js delete mode 100644 build/compiler/docs/json/index.js.map delete mode 100644 build/compiler/docs/readme/docs-util.d.ts delete mode 100644 build/compiler/docs/readme/docs-util.js delete mode 100644 build/compiler/docs/readme/docs-util.js.map delete mode 100644 build/compiler/docs/readme/index.d.ts delete mode 100644 build/compiler/docs/readme/index.js delete mode 100644 build/compiler/docs/readme/index.js.map delete mode 100644 build/compiler/docs/readme/markdown-css-props.d.ts delete mode 100644 build/compiler/docs/readme/markdown-css-props.js delete mode 100644 build/compiler/docs/readme/markdown-css-props.js.map delete mode 100644 build/compiler/docs/readme/markdown-dependencies.d.ts delete mode 100644 build/compiler/docs/readme/markdown-dependencies.js delete mode 100644 build/compiler/docs/readme/markdown-dependencies.js.map delete mode 100644 build/compiler/docs/readme/markdown-events.d.ts delete mode 100644 build/compiler/docs/readme/markdown-events.js delete mode 100644 build/compiler/docs/readme/markdown-events.js.map delete mode 100644 build/compiler/docs/readme/markdown-methods.d.ts delete mode 100644 build/compiler/docs/readme/markdown-methods.js delete mode 100644 build/compiler/docs/readme/markdown-methods.js.map delete mode 100644 build/compiler/docs/readme/markdown-overview.d.ts delete mode 100644 build/compiler/docs/readme/markdown-overview.js delete mode 100644 build/compiler/docs/readme/markdown-overview.js.map delete mode 100644 build/compiler/docs/readme/markdown-parts.d.ts delete mode 100644 build/compiler/docs/readme/markdown-parts.js delete mode 100644 build/compiler/docs/readme/markdown-parts.js.map delete mode 100644 build/compiler/docs/readme/markdown-props.d.ts delete mode 100644 build/compiler/docs/readme/markdown-props.js delete mode 100644 build/compiler/docs/readme/markdown-props.js.map delete mode 100644 build/compiler/docs/readme/markdown-slots.d.ts delete mode 100644 build/compiler/docs/readme/markdown-slots.js delete mode 100644 build/compiler/docs/readme/markdown-slots.js.map delete mode 100644 build/compiler/docs/readme/markdown-usage.d.ts delete mode 100644 build/compiler/docs/readme/markdown-usage.js delete mode 100644 build/compiler/docs/readme/markdown-usage.js.map delete mode 100644 build/compiler/docs/readme/output-docs.d.ts delete mode 100644 build/compiler/docs/readme/output-docs.js delete mode 100644 build/compiler/docs/readme/output-docs.js.map delete mode 100644 build/compiler/docs/style-docs.d.ts delete mode 100644 build/compiler/docs/style-docs.js delete mode 100644 build/compiler/docs/style-docs.js.map delete mode 100644 build/compiler/docs/test/docs-util.spec.d.ts delete mode 100644 build/compiler/docs/test/docs-util.spec.js delete mode 100644 build/compiler/docs/test/docs-util.spec.js.map delete mode 100644 build/compiler/docs/test/generate-doc-data.spec.d.ts delete mode 100644 build/compiler/docs/test/generate-doc-data.spec.js delete mode 100644 build/compiler/docs/test/generate-doc-data.spec.js.map delete mode 100644 build/compiler/docs/test/markdown-overview.spec.d.ts delete mode 100644 build/compiler/docs/test/markdown-overview.spec.js delete mode 100644 build/compiler/docs/test/markdown-overview.spec.js.map delete mode 100644 build/compiler/docs/test/markdown-props.spec.d.ts delete mode 100644 build/compiler/docs/test/markdown-props.spec.js delete mode 100644 build/compiler/docs/test/markdown-props.spec.js.map delete mode 100644 build/compiler/docs/test/style-docs.spec.d.ts delete mode 100644 build/compiler/docs/test/style-docs.spec.js delete mode 100644 build/compiler/docs/test/style-docs.spec.js.map delete mode 100644 build/compiler/docs/vscode/index.d.ts delete mode 100644 build/compiler/docs/vscode/index.js delete mode 100644 build/compiler/docs/vscode/index.js.map delete mode 100644 build/compiler/entries/component-bundles.d.ts delete mode 100644 build/compiler/entries/component-bundles.js delete mode 100644 build/compiler/entries/component-bundles.js.map delete mode 100644 build/compiler/entries/component-graph.d.ts delete mode 100644 build/compiler/entries/component-graph.js delete mode 100644 build/compiler/entries/component-graph.js.map delete mode 100644 build/compiler/entries/default-bundles.d.ts delete mode 100644 build/compiler/entries/default-bundles.js delete mode 100644 build/compiler/entries/default-bundles.js.map delete mode 100644 build/compiler/entries/resolve-component-dependencies.d.ts delete mode 100644 build/compiler/entries/resolve-component-dependencies.js delete mode 100644 build/compiler/entries/resolve-component-dependencies.js.map delete mode 100644 build/compiler/events.d.ts delete mode 100644 build/compiler/events.js delete mode 100644 build/compiler/events.js.map delete mode 100644 build/compiler/fs-watch/fs-watch-rebuild.d.ts delete mode 100644 build/compiler/fs-watch/fs-watch-rebuild.js delete mode 100644 build/compiler/fs-watch/fs-watch-rebuild.js.map delete mode 100644 build/compiler/html/add-script-attr.d.ts delete mode 100644 build/compiler/html/add-script-attr.js delete mode 100644 build/compiler/html/add-script-attr.js.map delete mode 100644 build/compiler/html/canonical-link.d.ts delete mode 100644 build/compiler/html/canonical-link.js delete mode 100644 build/compiler/html/canonical-link.js.map delete mode 100644 build/compiler/html/html-utils.d.ts delete mode 100644 build/compiler/html/html-utils.js delete mode 100644 build/compiler/html/html-utils.js.map delete mode 100644 build/compiler/html/inject-module-preloads.d.ts delete mode 100644 build/compiler/html/inject-module-preloads.js delete mode 100644 build/compiler/html/inject-module-preloads.js.map delete mode 100644 build/compiler/html/inject-sw-script.d.ts delete mode 100644 build/compiler/html/inject-sw-script.js delete mode 100644 build/compiler/html/inject-sw-script.js.map delete mode 100644 build/compiler/html/inline-esm-import.d.ts delete mode 100644 build/compiler/html/inline-esm-import.js delete mode 100644 build/compiler/html/inline-esm-import.js.map delete mode 100644 build/compiler/html/inline-style-sheets.d.ts delete mode 100644 build/compiler/html/inline-style-sheets.js delete mode 100644 build/compiler/html/inline-style-sheets.js.map delete mode 100644 build/compiler/html/relocate-meta-charset.d.ts delete mode 100644 build/compiler/html/relocate-meta-charset.js delete mode 100644 build/compiler/html/relocate-meta-charset.js.map delete mode 100644 build/compiler/html/remove-unused-styles.d.ts delete mode 100644 build/compiler/html/remove-unused-styles.js delete mode 100644 build/compiler/html/remove-unused-styles.js.map delete mode 100644 build/compiler/html/test/remove-unused-styles.spec.d.ts delete mode 100644 build/compiler/html/test/remove-unused-styles.spec.js delete mode 100644 build/compiler/html/test/remove-unused-styles.spec.js.map delete mode 100644 build/compiler/html/test/update-esm-import-paths.spec.d.ts delete mode 100644 build/compiler/html/test/update-esm-import-paths.spec.js delete mode 100644 build/compiler/html/test/update-esm-import-paths.spec.js.map delete mode 100644 build/compiler/html/update-global-styles-link.d.ts delete mode 100644 build/compiler/html/update-global-styles-link.js delete mode 100644 build/compiler/html/update-global-styles-link.js.map delete mode 100644 build/compiler/html/used-components.d.ts delete mode 100644 build/compiler/html/used-components.js delete mode 100644 build/compiler/html/used-components.js.map delete mode 100644 build/compiler/html/validate-manifest-json.d.ts delete mode 100644 build/compiler/html/validate-manifest-json.js delete mode 100644 build/compiler/html/validate-manifest-json.js.map delete mode 100644 build/compiler/index.d.ts delete mode 100644 build/compiler/index.js delete mode 100644 build/compiler/index.js.map delete mode 100644 build/compiler/optimize/autoprefixer.d.ts delete mode 100644 build/compiler/optimize/autoprefixer.js delete mode 100644 build/compiler/optimize/autoprefixer.js.map delete mode 100644 build/compiler/optimize/minify-css.d.ts delete mode 100644 build/compiler/optimize/minify-css.js delete mode 100644 build/compiler/optimize/minify-css.js.map delete mode 100644 build/compiler/optimize/minify-js.d.ts delete mode 100644 build/compiler/optimize/minify-js.js delete mode 100644 build/compiler/optimize/minify-js.js.map delete mode 100644 build/compiler/optimize/optimize-css.d.ts delete mode 100644 build/compiler/optimize/optimize-css.js delete mode 100644 build/compiler/optimize/optimize-css.js.map delete mode 100644 build/compiler/optimize/optimize-js.d.ts delete mode 100644 build/compiler/optimize/optimize-js.js delete mode 100644 build/compiler/optimize/optimize-js.js.map delete mode 100644 build/compiler/optimize/optimize-module.d.ts delete mode 100644 build/compiler/optimize/optimize-module.js delete mode 100644 build/compiler/optimize/optimize-module.js.map delete mode 100644 build/compiler/output-targets/copy/assets-copy-tasks.d.ts delete mode 100644 build/compiler/output-targets/copy/assets-copy-tasks.js delete mode 100644 build/compiler/output-targets/copy/assets-copy-tasks.js.map delete mode 100644 build/compiler/output-targets/copy/hashed-copy.d.ts delete mode 100644 build/compiler/output-targets/copy/hashed-copy.js delete mode 100644 build/compiler/output-targets/copy/hashed-copy.js.map delete mode 100644 build/compiler/output-targets/copy/local-copy-tasks.d.ts delete mode 100644 build/compiler/output-targets/copy/local-copy-tasks.js delete mode 100644 build/compiler/output-targets/copy/local-copy-tasks.js.map delete mode 100644 build/compiler/output-targets/copy/output-copy.d.ts delete mode 100644 build/compiler/output-targets/copy/output-copy.js delete mode 100644 build/compiler/output-targets/copy/output-copy.js.map delete mode 100644 build/compiler/output-targets/dist-collection/index.d.ts delete mode 100644 build/compiler/output-targets/dist-collection/index.js delete mode 100644 build/compiler/output-targets/dist-collection/index.js.map delete mode 100644 build/compiler/output-targets/dist-custom-elements/custom-elements-build-conditionals.d.ts delete mode 100644 build/compiler/output-targets/dist-custom-elements/custom-elements-build-conditionals.js delete mode 100644 build/compiler/output-targets/dist-custom-elements/custom-elements-build-conditionals.js.map delete mode 100644 build/compiler/output-targets/dist-custom-elements/custom-elements-types.d.ts delete mode 100644 build/compiler/output-targets/dist-custom-elements/custom-elements-types.js delete mode 100644 build/compiler/output-targets/dist-custom-elements/custom-elements-types.js.map delete mode 100644 build/compiler/output-targets/dist-custom-elements/index.d.ts delete mode 100644 build/compiler/output-targets/dist-custom-elements/index.js delete mode 100644 build/compiler/output-targets/dist-custom-elements/index.js.map delete mode 100644 build/compiler/output-targets/dist-hydrate-script/bundle-hydrate-factory.d.ts delete mode 100644 build/compiler/output-targets/dist-hydrate-script/bundle-hydrate-factory.js delete mode 100644 build/compiler/output-targets/dist-hydrate-script/bundle-hydrate-factory.js.map delete mode 100644 build/compiler/output-targets/dist-hydrate-script/generate-hydrate-app.d.ts delete mode 100644 build/compiler/output-targets/dist-hydrate-script/generate-hydrate-app.js delete mode 100644 build/compiler/output-targets/dist-hydrate-script/generate-hydrate-app.js.map delete mode 100644 build/compiler/output-targets/dist-hydrate-script/hydrate-build-conditionals.d.ts delete mode 100644 build/compiler/output-targets/dist-hydrate-script/hydrate-build-conditionals.js delete mode 100644 build/compiler/output-targets/dist-hydrate-script/hydrate-build-conditionals.js.map delete mode 100644 build/compiler/output-targets/dist-hydrate-script/hydrate-factory-closure.d.ts delete mode 100644 build/compiler/output-targets/dist-hydrate-script/hydrate-factory-closure.js delete mode 100644 build/compiler/output-targets/dist-hydrate-script/hydrate-factory-closure.js.map delete mode 100644 build/compiler/output-targets/dist-hydrate-script/index.d.ts delete mode 100644 build/compiler/output-targets/dist-hydrate-script/index.js delete mode 100644 build/compiler/output-targets/dist-hydrate-script/index.js.map delete mode 100644 build/compiler/output-targets/dist-hydrate-script/relocate-hydrate-context.d.ts delete mode 100644 build/compiler/output-targets/dist-hydrate-script/relocate-hydrate-context.js delete mode 100644 build/compiler/output-targets/dist-hydrate-script/relocate-hydrate-context.js.map delete mode 100644 build/compiler/output-targets/dist-hydrate-script/update-to-hydrate-components.d.ts delete mode 100644 build/compiler/output-targets/dist-hydrate-script/update-to-hydrate-components.js delete mode 100644 build/compiler/output-targets/dist-hydrate-script/update-to-hydrate-components.js.map delete mode 100644 build/compiler/output-targets/dist-hydrate-script/write-hydrate-outputs.d.ts delete mode 100644 build/compiler/output-targets/dist-hydrate-script/write-hydrate-outputs.js delete mode 100644 build/compiler/output-targets/dist-hydrate-script/write-hydrate-outputs.js.map delete mode 100644 build/compiler/output-targets/dist-lazy/generate-cjs.d.ts delete mode 100644 build/compiler/output-targets/dist-lazy/generate-cjs.js delete mode 100644 build/compiler/output-targets/dist-lazy/generate-cjs.js.map delete mode 100644 build/compiler/output-targets/dist-lazy/generate-esm-browser.d.ts delete mode 100644 build/compiler/output-targets/dist-lazy/generate-esm-browser.js delete mode 100644 build/compiler/output-targets/dist-lazy/generate-esm-browser.js.map delete mode 100644 build/compiler/output-targets/dist-lazy/generate-esm.d.ts delete mode 100644 build/compiler/output-targets/dist-lazy/generate-esm.js delete mode 100644 build/compiler/output-targets/dist-lazy/generate-esm.js.map delete mode 100644 build/compiler/output-targets/dist-lazy/generate-lazy-module.d.ts delete mode 100644 build/compiler/output-targets/dist-lazy/generate-lazy-module.js delete mode 100644 build/compiler/output-targets/dist-lazy/generate-lazy-module.js.map delete mode 100644 build/compiler/output-targets/dist-lazy/generate-system.d.ts delete mode 100644 build/compiler/output-targets/dist-lazy/generate-system.js delete mode 100644 build/compiler/output-targets/dist-lazy/generate-system.js.map delete mode 100644 build/compiler/output-targets/dist-lazy/lazy-build-conditionals.d.ts delete mode 100644 build/compiler/output-targets/dist-lazy/lazy-build-conditionals.js delete mode 100644 build/compiler/output-targets/dist-lazy/lazy-build-conditionals.js.map delete mode 100644 build/compiler/output-targets/dist-lazy/lazy-component-plugin.d.ts delete mode 100644 build/compiler/output-targets/dist-lazy/lazy-component-plugin.js delete mode 100644 build/compiler/output-targets/dist-lazy/lazy-component-plugin.js.map delete mode 100644 build/compiler/output-targets/dist-lazy/lazy-output.d.ts delete mode 100644 build/compiler/output-targets/dist-lazy/lazy-output.js delete mode 100644 build/compiler/output-targets/dist-lazy/lazy-output.js.map delete mode 100644 build/compiler/output-targets/dist-lazy/write-lazy-entry-module.d.ts delete mode 100644 build/compiler/output-targets/dist-lazy/write-lazy-entry-module.js delete mode 100644 build/compiler/output-targets/dist-lazy/write-lazy-entry-module.js.map delete mode 100644 build/compiler/output-targets/empty-dir.d.ts delete mode 100644 build/compiler/output-targets/empty-dir.js delete mode 100644 build/compiler/output-targets/empty-dir.js.map delete mode 100644 build/compiler/output-targets/index.d.ts delete mode 100644 build/compiler/output-targets/index.js delete mode 100644 build/compiler/output-targets/index.js.map delete mode 100644 build/compiler/output-targets/output-custom.d.ts delete mode 100644 build/compiler/output-targets/output-custom.js delete mode 100644 build/compiler/output-targets/output-custom.js.map delete mode 100644 build/compiler/output-targets/output-docs.d.ts delete mode 100644 build/compiler/output-targets/output-docs.js delete mode 100644 build/compiler/output-targets/output-docs.js.map delete mode 100644 build/compiler/output-targets/output-lazy-loader.d.ts delete mode 100644 build/compiler/output-targets/output-lazy-loader.js delete mode 100644 build/compiler/output-targets/output-lazy-loader.js.map delete mode 100644 build/compiler/output-targets/output-service-workers.d.ts delete mode 100644 build/compiler/output-targets/output-service-workers.js delete mode 100644 build/compiler/output-targets/output-service-workers.js.map delete mode 100644 build/compiler/output-targets/output-types.d.ts delete mode 100644 build/compiler/output-targets/output-types.js delete mode 100644 build/compiler/output-targets/output-types.js.map delete mode 100644 build/compiler/output-targets/output-www.d.ts delete mode 100644 build/compiler/output-targets/output-www.js delete mode 100644 build/compiler/output-targets/output-www.js.map delete mode 100644 build/compiler/output-targets/test/build-conditionals.spec.d.ts delete mode 100644 build/compiler/output-targets/test/build-conditionals.spec.js delete mode 100644 build/compiler/output-targets/test/build-conditionals.spec.js.map delete mode 100644 build/compiler/output-targets/test/custom-elements-types.spec.d.ts delete mode 100644 build/compiler/output-targets/test/custom-elements-types.spec.js delete mode 100644 build/compiler/output-targets/test/custom-elements-types.spec.js.map delete mode 100644 build/compiler/output-targets/test/output-targets-collection.spec.d.ts delete mode 100644 build/compiler/output-targets/test/output-targets-collection.spec.js delete mode 100644 build/compiler/output-targets/test/output-targets-collection.spec.js.map delete mode 100644 build/compiler/output-targets/test/output-targets-dist-custom-elements.spec.d.ts delete mode 100644 build/compiler/output-targets/test/output-targets-dist-custom-elements.spec.js delete mode 100644 build/compiler/output-targets/test/output-targets-dist-custom-elements.spec.js.map delete mode 100644 build/compiler/output-targets/test/output-targets-dist.spec.d.ts delete mode 100644 build/compiler/output-targets/test/output-targets-dist.spec.js delete mode 100644 build/compiler/output-targets/test/output-targets-dist.spec.js.map delete mode 100644 build/compiler/output-targets/test/output-targets-www-dist.spec.d.ts delete mode 100644 build/compiler/output-targets/test/output-targets-www-dist.spec.js delete mode 100644 build/compiler/output-targets/test/output-targets-www-dist.spec.js.map delete mode 100644 build/compiler/output-targets/test/output-targets-www.spec.d.ts delete mode 100644 build/compiler/output-targets/test/output-targets-www.spec.js delete mode 100644 build/compiler/output-targets/test/output-targets-www.spec.js.map delete mode 100644 build/compiler/plugin/plugin.d.ts delete mode 100644 build/compiler/plugin/plugin.js delete mode 100644 build/compiler/plugin/plugin.js.map delete mode 100644 build/compiler/plugin/test/plugin.spec.d.ts delete mode 100644 build/compiler/plugin/test/plugin.spec.js delete mode 100644 build/compiler/plugin/test/plugin.spec.js.map delete mode 100644 build/compiler/prerender/crawl-urls.d.ts delete mode 100644 build/compiler/prerender/crawl-urls.js delete mode 100644 build/compiler/prerender/crawl-urls.js.map delete mode 100644 build/compiler/prerender/prerender-config.d.ts delete mode 100644 build/compiler/prerender/prerender-config.js delete mode 100644 build/compiler/prerender/prerender-config.js.map delete mode 100644 build/compiler/prerender/prerender-hydrate-options.d.ts delete mode 100644 build/compiler/prerender/prerender-hydrate-options.js delete mode 100644 build/compiler/prerender/prerender-hydrate-options.js.map delete mode 100644 build/compiler/prerender/prerender-main.d.ts delete mode 100644 build/compiler/prerender/prerender-main.js delete mode 100644 build/compiler/prerender/prerender-main.js.map delete mode 100644 build/compiler/prerender/prerender-optimize.d.ts delete mode 100644 build/compiler/prerender/prerender-optimize.js delete mode 100644 build/compiler/prerender/prerender-optimize.js.map delete mode 100644 build/compiler/prerender/prerender-queue.d.ts delete mode 100644 build/compiler/prerender/prerender-queue.js delete mode 100644 build/compiler/prerender/prerender-queue.js.map delete mode 100644 build/compiler/prerender/prerender-template-html.d.ts delete mode 100644 build/compiler/prerender/prerender-template-html.js delete mode 100644 build/compiler/prerender/prerender-template-html.js.map delete mode 100644 build/compiler/prerender/prerender-worker-ctx.d.ts delete mode 100644 build/compiler/prerender/prerender-worker-ctx.js delete mode 100644 build/compiler/prerender/prerender-worker-ctx.js.map delete mode 100644 build/compiler/prerender/prerender-worker.d.ts delete mode 100644 build/compiler/prerender/prerender-worker.js delete mode 100644 build/compiler/prerender/prerender-worker.js.map delete mode 100644 build/compiler/prerender/prerendered-write-path.d.ts delete mode 100644 build/compiler/prerender/prerendered-write-path.js delete mode 100644 build/compiler/prerender/prerendered-write-path.js.map delete mode 100644 build/compiler/prerender/robots-txt.d.ts delete mode 100644 build/compiler/prerender/robots-txt.js delete mode 100644 build/compiler/prerender/robots-txt.js.map delete mode 100644 build/compiler/prerender/sitemap-xml.d.ts delete mode 100644 build/compiler/prerender/sitemap-xml.js delete mode 100644 build/compiler/prerender/sitemap-xml.js.map delete mode 100644 build/compiler/prerender/test/crawl-urls.spec.d.ts delete mode 100644 build/compiler/prerender/test/crawl-urls.spec.js delete mode 100644 build/compiler/prerender/test/crawl-urls.spec.js.map delete mode 100644 build/compiler/prerender/test/prerender-optimize.spec.d.ts delete mode 100644 build/compiler/prerender/test/prerender-optimize.spec.js delete mode 100644 build/compiler/prerender/test/prerender-optimize.spec.js.map delete mode 100644 build/compiler/prerender/test/prerendered-write-path.spec.d.ts delete mode 100644 build/compiler/prerender/test/prerendered-write-path.spec.js delete mode 100644 build/compiler/prerender/test/prerendered-write-path.spec.js.map delete mode 100644 build/compiler/public.d.ts delete mode 100644 build/compiler/public.js delete mode 100644 build/compiler/public.js.map delete mode 100644 build/compiler/service-worker/generate-sw.d.ts delete mode 100644 build/compiler/service-worker/generate-sw.js delete mode 100644 build/compiler/service-worker/generate-sw.js.map delete mode 100644 build/compiler/service-worker/service-worker-util.d.ts delete mode 100644 build/compiler/service-worker/service-worker-util.js delete mode 100644 build/compiler/service-worker/service-worker-util.js.map delete mode 100644 build/compiler/service-worker/test/service-worker-util.spec.d.ts delete mode 100644 build/compiler/service-worker/test/service-worker-util.spec.js delete mode 100644 build/compiler/service-worker/test/service-worker-util.spec.js.map delete mode 100644 build/compiler/service-worker/test/service-worker.spec.d.ts delete mode 100644 build/compiler/service-worker/test/service-worker.spec.js delete mode 100644 build/compiler/service-worker/test/service-worker.spec.js.map delete mode 100644 build/compiler/style/css-imports.d.ts delete mode 100644 build/compiler/style/css-imports.js delete mode 100644 build/compiler/style/css-imports.js.map delete mode 100644 build/compiler/style/css-parser/css-parse-declarations.d.ts delete mode 100644 build/compiler/style/css-parser/css-parse-declarations.js delete mode 100644 build/compiler/style/css-parser/css-parse-declarations.js.map delete mode 100644 build/compiler/style/css-parser/get-css-selectors.d.ts delete mode 100644 build/compiler/style/css-parser/get-css-selectors.js delete mode 100644 build/compiler/style/css-parser/get-css-selectors.js.map delete mode 100644 build/compiler/style/css-parser/parse-css.d.ts delete mode 100644 build/compiler/style/css-parser/parse-css.js delete mode 100644 build/compiler/style/css-parser/parse-css.js.map delete mode 100644 build/compiler/style/css-parser/serialize-css.d.ts delete mode 100644 build/compiler/style/css-parser/serialize-css.js delete mode 100644 build/compiler/style/css-parser/serialize-css.js.map delete mode 100644 build/compiler/style/css-parser/test/get-selectors.spec.d.ts delete mode 100644 build/compiler/style/css-parser/test/get-selectors.spec.js delete mode 100644 build/compiler/style/css-parser/test/get-selectors.spec.js.map delete mode 100644 build/compiler/style/css-parser/test/minify-css.spec.d.ts delete mode 100644 build/compiler/style/css-parser/test/minify-css.spec.js delete mode 100644 build/compiler/style/css-parser/test/minify-css.spec.js.map delete mode 100644 build/compiler/style/css-parser/test/parse-serialize.spec.d.ts delete mode 100644 build/compiler/style/css-parser/test/parse-serialize.spec.js delete mode 100644 build/compiler/style/css-parser/test/parse-serialize.spec.js.map delete mode 100644 build/compiler/style/css-parser/used-selectors.d.ts delete mode 100644 build/compiler/style/css-parser/used-selectors.js delete mode 100644 build/compiler/style/css-parser/used-selectors.js.map delete mode 100644 build/compiler/style/css-to-esm.d.ts delete mode 100644 build/compiler/style/css-to-esm.js delete mode 100644 build/compiler/style/css-to-esm.js.map delete mode 100644 build/compiler/style/global-styles.d.ts delete mode 100644 build/compiler/style/global-styles.js delete mode 100644 build/compiler/style/global-styles.js.map delete mode 100644 build/compiler/style/normalize-styles.d.ts delete mode 100644 build/compiler/style/normalize-styles.js delete mode 100644 build/compiler/style/normalize-styles.js.map delete mode 100644 build/compiler/style/optimize-css.d.ts delete mode 100644 build/compiler/style/optimize-css.js delete mode 100644 build/compiler/style/optimize-css.js.map delete mode 100644 build/compiler/style/scope-css.d.ts delete mode 100644 build/compiler/style/scope-css.js delete mode 100644 build/compiler/style/scope-css.js.map delete mode 100644 build/compiler/style/style-utils.d.ts delete mode 100644 build/compiler/style/style-utils.js delete mode 100644 build/compiler/style/style-utils.js.map delete mode 100644 build/compiler/style/test/build-conditionals.spec.d.ts delete mode 100644 build/compiler/style/test/build-conditionals.spec.js delete mode 100644 build/compiler/style/test/build-conditionals.spec.js.map delete mode 100644 build/compiler/style/test/css-imports.spec.d.ts delete mode 100644 build/compiler/style/test/css-imports.spec.js delete mode 100644 build/compiler/style/test/css-imports.spec.js.map delete mode 100644 build/compiler/style/test/optimize-css.spec.d.ts delete mode 100644 build/compiler/style/test/optimize-css.spec.js delete mode 100644 build/compiler/style/test/optimize-css.spec.js.map delete mode 100644 build/compiler/style/test/style-rebuild.spec.d.ts delete mode 100644 build/compiler/style/test/style-rebuild.spec.js delete mode 100644 build/compiler/style/test/style-rebuild.spec.js.map delete mode 100644 build/compiler/style/test/style.spec.d.ts delete mode 100644 build/compiler/style/test/style.spec.js delete mode 100644 build/compiler/style/test/style.spec.js.map delete mode 100644 build/compiler/sys/config.d.ts delete mode 100644 build/compiler/sys/config.js delete mode 100644 build/compiler/sys/config.js.map delete mode 100644 build/compiler/sys/environment.d.ts delete mode 100644 build/compiler/sys/environment.js delete mode 100644 build/compiler/sys/environment.js.map delete mode 100644 build/compiler/sys/fetch/fetch-module-async.d.ts delete mode 100644 build/compiler/sys/fetch/fetch-module-async.js delete mode 100644 build/compiler/sys/fetch/fetch-module-async.js.map delete mode 100644 build/compiler/sys/fetch/fetch-utils.d.ts delete mode 100644 build/compiler/sys/fetch/fetch-utils.js delete mode 100644 build/compiler/sys/fetch/fetch-utils.js.map delete mode 100644 build/compiler/sys/fetch/tests/fetch-module.spec.d.ts delete mode 100644 build/compiler/sys/fetch/tests/fetch-module.spec.js delete mode 100644 build/compiler/sys/fetch/tests/fetch-module.spec.js.map delete mode 100644 build/compiler/sys/fetch/write-fetch-success.d.ts delete mode 100644 build/compiler/sys/fetch/write-fetch-success.js delete mode 100644 build/compiler/sys/fetch/write-fetch-success.js.map delete mode 100644 build/compiler/sys/in-memory-fs.d.ts delete mode 100644 build/compiler/sys/in-memory-fs.js delete mode 100644 build/compiler/sys/in-memory-fs.js.map delete mode 100644 build/compiler/sys/node-require.d.ts delete mode 100644 build/compiler/sys/node-require.js delete mode 100644 build/compiler/sys/node-require.js.map delete mode 100644 build/compiler/sys/resolve/resolve-module-async.d.ts delete mode 100644 build/compiler/sys/resolve/resolve-module-async.js delete mode 100644 build/compiler/sys/resolve/resolve-module-async.js.map delete mode 100644 build/compiler/sys/resolve/resolve-utils.d.ts delete mode 100644 build/compiler/sys/resolve/resolve-utils.js delete mode 100644 build/compiler/sys/resolve/resolve-utils.js.map delete mode 100644 build/compiler/sys/resolve/tests/resolve-module.spec.d.ts delete mode 100644 build/compiler/sys/resolve/tests/resolve-module.spec.js delete mode 100644 build/compiler/sys/resolve/tests/resolve-module.spec.js.map delete mode 100644 build/compiler/sys/resolve/tests/resolve-utils.spec.d.ts delete mode 100644 build/compiler/sys/resolve/tests/resolve-utils.spec.js delete mode 100644 build/compiler/sys/resolve/tests/resolve-utils.spec.js.map delete mode 100644 build/compiler/sys/stencil-sys.d.ts delete mode 100644 build/compiler/sys/stencil-sys.js delete mode 100644 build/compiler/sys/stencil-sys.js.map delete mode 100644 build/compiler/sys/tests/in-memory-fs.spec.d.ts delete mode 100644 build/compiler/sys/tests/in-memory-fs.spec.js delete mode 100644 build/compiler/sys/tests/in-memory-fs.spec.js.map delete mode 100644 build/compiler/sys/tests/stencil-sys.spec.d.ts delete mode 100644 build/compiler/sys/tests/stencil-sys.spec.js delete mode 100644 build/compiler/sys/tests/stencil-sys.spec.js.map delete mode 100644 build/compiler/sys/typescript/tests/typescript-config.spec.d.ts delete mode 100644 build/compiler/sys/typescript/tests/typescript-config.spec.js delete mode 100644 build/compiler/sys/typescript/tests/typescript-config.spec.js.map delete mode 100644 build/compiler/sys/typescript/tests/typescript-resolve-module.spec.d.ts delete mode 100644 build/compiler/sys/typescript/tests/typescript-resolve-module.spec.js delete mode 100644 build/compiler/sys/typescript/tests/typescript-resolve-module.spec.js.map delete mode 100644 build/compiler/sys/typescript/tests/typescript-sys.spec.d.ts delete mode 100644 build/compiler/sys/typescript/tests/typescript-sys.spec.js delete mode 100644 build/compiler/sys/typescript/tests/typescript-sys.spec.js.map delete mode 100644 build/compiler/sys/typescript/typescript-config.d.ts delete mode 100644 build/compiler/sys/typescript/typescript-config.js delete mode 100644 build/compiler/sys/typescript/typescript-config.js.map delete mode 100644 build/compiler/sys/typescript/typescript-resolve-module.d.ts delete mode 100644 build/compiler/sys/typescript/typescript-resolve-module.js delete mode 100644 build/compiler/sys/typescript/typescript-resolve-module.js.map delete mode 100644 build/compiler/sys/typescript/typescript-sys.d.ts delete mode 100644 build/compiler/sys/typescript/typescript-sys.js delete mode 100644 build/compiler/sys/typescript/typescript-sys.js.map delete mode 100644 build/compiler/sys/worker/sys-worker.d.ts delete mode 100644 build/compiler/sys/worker/sys-worker.js delete mode 100644 build/compiler/sys/worker/sys-worker.js.map delete mode 100644 build/compiler/transformers/add-component-meta-proxy.d.ts delete mode 100644 build/compiler/transformers/add-component-meta-proxy.js delete mode 100644 build/compiler/transformers/add-component-meta-proxy.js.map delete mode 100644 build/compiler/transformers/add-component-meta-static.d.ts delete mode 100644 build/compiler/transformers/add-component-meta-static.js delete mode 100644 build/compiler/transformers/add-component-meta-static.js.map delete mode 100644 build/compiler/transformers/add-imports.d.ts delete mode 100644 build/compiler/transformers/add-imports.js delete mode 100644 build/compiler/transformers/add-imports.js.map delete mode 100644 build/compiler/transformers/add-static-style.d.ts delete mode 100644 build/compiler/transformers/add-static-style.js delete mode 100644 build/compiler/transformers/add-static-style.js.map delete mode 100644 build/compiler/transformers/collections/add-external-import.d.ts delete mode 100644 build/compiler/transformers/collections/add-external-import.js delete mode 100644 build/compiler/transformers/collections/add-external-import.js.map delete mode 100644 build/compiler/transformers/collections/parse-collection-components.d.ts delete mode 100644 build/compiler/transformers/collections/parse-collection-components.js delete mode 100644 build/compiler/transformers/collections/parse-collection-components.js.map delete mode 100644 build/compiler/transformers/collections/parse-collection-manifest.d.ts delete mode 100644 build/compiler/transformers/collections/parse-collection-manifest.js delete mode 100644 build/compiler/transformers/collections/parse-collection-manifest.js.map delete mode 100644 build/compiler/transformers/collections/parse-collection-module.d.ts delete mode 100644 build/compiler/transformers/collections/parse-collection-module.js delete mode 100644 build/compiler/transformers/collections/parse-collection-module.js.map delete mode 100644 build/compiler/transformers/component-build-conditionals.d.ts delete mode 100644 build/compiler/transformers/component-build-conditionals.js delete mode 100644 build/compiler/transformers/component-build-conditionals.js.map delete mode 100644 build/compiler/transformers/component-hydrate/hydrate-component.d.ts delete mode 100644 build/compiler/transformers/component-hydrate/hydrate-component.js delete mode 100644 build/compiler/transformers/component-hydrate/hydrate-component.js.map delete mode 100644 build/compiler/transformers/component-hydrate/hydrate-runtime-cmp-meta.d.ts delete mode 100644 build/compiler/transformers/component-hydrate/hydrate-runtime-cmp-meta.js delete mode 100644 build/compiler/transformers/component-hydrate/hydrate-runtime-cmp-meta.js.map delete mode 100644 build/compiler/transformers/component-hydrate/tranform-to-hydrate-component.d.ts delete mode 100644 build/compiler/transformers/component-hydrate/tranform-to-hydrate-component.js delete mode 100644 build/compiler/transformers/component-hydrate/tranform-to-hydrate-component.js.map delete mode 100644 build/compiler/transformers/component-lazy/attach-internals.d.ts delete mode 100644 build/compiler/transformers/component-lazy/attach-internals.js delete mode 100644 build/compiler/transformers/component-lazy/attach-internals.js.map delete mode 100644 build/compiler/transformers/component-lazy/constants.d.ts delete mode 100644 build/compiler/transformers/component-lazy/constants.js delete mode 100644 build/compiler/transformers/component-lazy/constants.js.map delete mode 100644 build/compiler/transformers/component-lazy/lazy-component.d.ts delete mode 100644 build/compiler/transformers/component-lazy/lazy-component.js delete mode 100644 build/compiler/transformers/component-lazy/lazy-component.js.map delete mode 100644 build/compiler/transformers/component-lazy/lazy-constructor.d.ts delete mode 100644 build/compiler/transformers/component-lazy/lazy-constructor.js delete mode 100644 build/compiler/transformers/component-lazy/lazy-constructor.js.map delete mode 100644 build/compiler/transformers/component-lazy/lazy-element-getter.d.ts delete mode 100644 build/compiler/transformers/component-lazy/lazy-element-getter.js delete mode 100644 build/compiler/transformers/component-lazy/lazy-element-getter.js.map delete mode 100644 build/compiler/transformers/component-lazy/transform-lazy-component.d.ts delete mode 100644 build/compiler/transformers/component-lazy/transform-lazy-component.js delete mode 100644 build/compiler/transformers/component-lazy/transform-lazy-component.js.map delete mode 100644 build/compiler/transformers/component-native/add-define-custom-element-function.d.ts delete mode 100644 build/compiler/transformers/component-native/add-define-custom-element-function.js delete mode 100644 build/compiler/transformers/component-native/add-define-custom-element-function.js.map delete mode 100644 build/compiler/transformers/component-native/attach-internals.d.ts delete mode 100644 build/compiler/transformers/component-native/attach-internals.js delete mode 100644 build/compiler/transformers/component-native/attach-internals.js.map delete mode 100644 build/compiler/transformers/component-native/native-component.d.ts delete mode 100644 build/compiler/transformers/component-native/native-component.js delete mode 100644 build/compiler/transformers/component-native/native-component.js.map delete mode 100644 build/compiler/transformers/component-native/native-connected-callback.d.ts delete mode 100644 build/compiler/transformers/component-native/native-connected-callback.js delete mode 100644 build/compiler/transformers/component-native/native-connected-callback.js.map delete mode 100644 build/compiler/transformers/component-native/native-constructor.d.ts delete mode 100644 build/compiler/transformers/component-native/native-constructor.js delete mode 100644 build/compiler/transformers/component-native/native-constructor.js.map delete mode 100644 build/compiler/transformers/component-native/native-element-getter.d.ts delete mode 100644 build/compiler/transformers/component-native/native-element-getter.js delete mode 100644 build/compiler/transformers/component-native/native-element-getter.js.map delete mode 100644 build/compiler/transformers/component-native/native-meta.d.ts delete mode 100644 build/compiler/transformers/component-native/native-meta.js delete mode 100644 build/compiler/transformers/component-native/native-meta.js.map delete mode 100644 build/compiler/transformers/component-native/native-static-style.d.ts delete mode 100644 build/compiler/transformers/component-native/native-static-style.js delete mode 100644 build/compiler/transformers/component-native/native-static-style.js.map delete mode 100644 build/compiler/transformers/component-native/proxy-custom-element-function.d.ts delete mode 100644 build/compiler/transformers/component-native/proxy-custom-element-function.js delete mode 100644 build/compiler/transformers/component-native/proxy-custom-element-function.js.map delete mode 100644 build/compiler/transformers/component-native/tranform-to-native-component.d.ts delete mode 100644 build/compiler/transformers/component-native/tranform-to-native-component.js delete mode 100644 build/compiler/transformers/component-native/tranform-to-native-component.js.map delete mode 100644 build/compiler/transformers/core-runtime-apis.d.ts delete mode 100644 build/compiler/transformers/core-runtime-apis.js delete mode 100644 build/compiler/transformers/core-runtime-apis.js.map delete mode 100644 build/compiler/transformers/create-event.d.ts delete mode 100644 build/compiler/transformers/create-event.js delete mode 100644 build/compiler/transformers/create-event.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/attach-internals.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/attach-internals.js delete mode 100644 build/compiler/transformers/decorators-to-static/attach-internals.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/component-decorator.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/component-decorator.js delete mode 100644 build/compiler/transformers/decorators-to-static/component-decorator.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/convert-decorators.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/convert-decorators.js delete mode 100644 build/compiler/transformers/decorators-to-static/convert-decorators.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/decorator-utils.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/decorator-utils.js delete mode 100644 build/compiler/transformers/decorators-to-static/decorator-utils.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/decorators-constants.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/decorators-constants.js delete mode 100644 build/compiler/transformers/decorators-to-static/decorators-constants.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/element-decorator.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/element-decorator.js delete mode 100644 build/compiler/transformers/decorators-to-static/element-decorator.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/event-decorator.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/event-decorator.js delete mode 100644 build/compiler/transformers/decorators-to-static/event-decorator.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/listen-decorator.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/listen-decorator.js delete mode 100644 build/compiler/transformers/decorators-to-static/listen-decorator.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/method-decorator.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/method-decorator.js delete mode 100644 build/compiler/transformers/decorators-to-static/method-decorator.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/prop-decorator.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/prop-decorator.js delete mode 100644 build/compiler/transformers/decorators-to-static/prop-decorator.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/state-decorator.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/state-decorator.js delete mode 100644 build/compiler/transformers/decorators-to-static/state-decorator.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/style-to-static.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/style-to-static.js delete mode 100644 build/compiler/transformers/decorators-to-static/style-to-static.js.map delete mode 100644 build/compiler/transformers/decorators-to-static/watch-decorator.d.ts delete mode 100644 build/compiler/transformers/decorators-to-static/watch-decorator.js delete mode 100644 build/compiler/transformers/decorators-to-static/watch-decorator.js.map delete mode 100644 build/compiler/transformers/define-custom-element.d.ts delete mode 100644 build/compiler/transformers/define-custom-element.js delete mode 100644 build/compiler/transformers/define-custom-element.js.map delete mode 100644 build/compiler/transformers/host-data-transform.d.ts delete mode 100644 build/compiler/transformers/host-data-transform.js delete mode 100644 build/compiler/transformers/host-data-transform.js.map delete mode 100644 build/compiler/transformers/map-imports-to-path-aliases.d.ts delete mode 100644 build/compiler/transformers/map-imports-to-path-aliases.js delete mode 100644 build/compiler/transformers/map-imports-to-path-aliases.js.map delete mode 100644 build/compiler/transformers/remove-collection-imports.d.ts delete mode 100644 build/compiler/transformers/remove-collection-imports.js delete mode 100644 build/compiler/transformers/remove-collection-imports.js.map delete mode 100644 build/compiler/transformers/remove-static-meta-properties.d.ts delete mode 100644 build/compiler/transformers/remove-static-meta-properties.js delete mode 100644 build/compiler/transformers/remove-static-meta-properties.js.map delete mode 100644 build/compiler/transformers/reserved-public-members.d.ts delete mode 100644 build/compiler/transformers/reserved-public-members.js delete mode 100644 build/compiler/transformers/reserved-public-members.js.map delete mode 100644 build/compiler/transformers/rewrite-aliased-paths.d.ts delete mode 100644 build/compiler/transformers/rewrite-aliased-paths.js delete mode 100644 build/compiler/transformers/rewrite-aliased-paths.js.map delete mode 100644 build/compiler/transformers/static-to-meta/attach-internals.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/attach-internals.js delete mode 100644 build/compiler/transformers/static-to-meta/attach-internals.js.map delete mode 100644 build/compiler/transformers/static-to-meta/call-expression.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/call-expression.js delete mode 100644 build/compiler/transformers/static-to-meta/call-expression.js.map delete mode 100644 build/compiler/transformers/static-to-meta/class-methods.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/class-methods.js delete mode 100644 build/compiler/transformers/static-to-meta/class-methods.js.map delete mode 100644 build/compiler/transformers/static-to-meta/component.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/component.js delete mode 100644 build/compiler/transformers/static-to-meta/component.js.map delete mode 100644 build/compiler/transformers/static-to-meta/element-ref.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/element-ref.js delete mode 100644 build/compiler/transformers/static-to-meta/element-ref.js.map delete mode 100644 build/compiler/transformers/static-to-meta/encapsulation.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/encapsulation.js delete mode 100644 build/compiler/transformers/static-to-meta/encapsulation.js.map delete mode 100644 build/compiler/transformers/static-to-meta/events.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/events.js delete mode 100644 build/compiler/transformers/static-to-meta/events.js.map delete mode 100644 build/compiler/transformers/static-to-meta/form-associated.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/form-associated.js delete mode 100644 build/compiler/transformers/static-to-meta/form-associated.js.map delete mode 100644 build/compiler/transformers/static-to-meta/import.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/import.js delete mode 100644 build/compiler/transformers/static-to-meta/import.js.map delete mode 100644 build/compiler/transformers/static-to-meta/listeners.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/listeners.js delete mode 100644 build/compiler/transformers/static-to-meta/listeners.js.map delete mode 100644 build/compiler/transformers/static-to-meta/methods.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/methods.js delete mode 100644 build/compiler/transformers/static-to-meta/methods.js.map delete mode 100644 build/compiler/transformers/static-to-meta/parse-static.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/parse-static.js delete mode 100644 build/compiler/transformers/static-to-meta/parse-static.js.map delete mode 100644 build/compiler/transformers/static-to-meta/props.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/props.js delete mode 100644 build/compiler/transformers/static-to-meta/props.js.map delete mode 100644 build/compiler/transformers/static-to-meta/states.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/states.js delete mode 100644 build/compiler/transformers/static-to-meta/states.js.map delete mode 100644 build/compiler/transformers/static-to-meta/string-literal.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/string-literal.js delete mode 100644 build/compiler/transformers/static-to-meta/string-literal.js.map delete mode 100644 build/compiler/transformers/static-to-meta/styles.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/styles.js delete mode 100644 build/compiler/transformers/static-to-meta/styles.js.map delete mode 100644 build/compiler/transformers/static-to-meta/vdom.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/vdom.js delete mode 100644 build/compiler/transformers/static-to-meta/vdom.js.map delete mode 100644 build/compiler/transformers/static-to-meta/visitor.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/visitor.js delete mode 100644 build/compiler/transformers/static-to-meta/visitor.js.map delete mode 100644 build/compiler/transformers/static-to-meta/watchers.d.ts delete mode 100644 build/compiler/transformers/static-to-meta/watchers.js delete mode 100644 build/compiler/transformers/static-to-meta/watchers.js.map delete mode 100644 build/compiler/transformers/stencil-import-path.d.ts delete mode 100644 build/compiler/transformers/stencil-import-path.js delete mode 100644 build/compiler/transformers/stencil-import-path.js.map delete mode 100644 build/compiler/transformers/style-imports.d.ts delete mode 100644 build/compiler/transformers/style-imports.js delete mode 100644 build/compiler/transformers/style-imports.js.map delete mode 100644 build/compiler/transformers/test/add-component-meta-proxy.spec.d.ts delete mode 100644 build/compiler/transformers/test/add-component-meta-proxy.spec.js delete mode 100644 build/compiler/transformers/test/add-component-meta-proxy.spec.js.map delete mode 100644 build/compiler/transformers/test/convert-decorators.spec.d.ts delete mode 100644 build/compiler/transformers/test/convert-decorators.spec.js delete mode 100644 build/compiler/transformers/test/convert-decorators.spec.js.map delete mode 100644 build/compiler/transformers/test/core-runtime-apis.spec.d.ts delete mode 100644 build/compiler/transformers/test/core-runtime-apis.spec.js delete mode 100644 build/compiler/transformers/test/core-runtime-apis.spec.js.map delete mode 100644 build/compiler/transformers/test/decorator-utils.spec.d.ts delete mode 100644 build/compiler/transformers/test/decorator-utils.spec.js delete mode 100644 build/compiler/transformers/test/decorator-utils.spec.js.map delete mode 100644 build/compiler/transformers/test/lazy-component.spec.d.ts delete mode 100644 build/compiler/transformers/test/lazy-component.spec.js delete mode 100644 build/compiler/transformers/test/lazy-component.spec.js.map delete mode 100644 build/compiler/transformers/test/map-imports-to-path-aliases.spec.d.ts delete mode 100644 build/compiler/transformers/test/map-imports-to-path-aliases.spec.js delete mode 100644 build/compiler/transformers/test/map-imports-to-path-aliases.spec.js.map delete mode 100644 build/compiler/transformers/test/native-component.spec.d.ts delete mode 100644 build/compiler/transformers/test/native-component.spec.js delete mode 100644 build/compiler/transformers/test/native-component.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-attach-internals.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-attach-internals.spec.js delete mode 100644 build/compiler/transformers/test/parse-attach-internals.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-comments.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-comments.spec.js delete mode 100644 build/compiler/transformers/test/parse-comments.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-component-tags.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-component-tags.spec.js delete mode 100644 build/compiler/transformers/test/parse-component-tags.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-component.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-component.spec.js delete mode 100644 build/compiler/transformers/test/parse-component.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-element.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-element.spec.js delete mode 100644 build/compiler/transformers/test/parse-element.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-encapsulation.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-encapsulation.spec.js delete mode 100644 build/compiler/transformers/test/parse-encapsulation.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-events.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-events.spec.js delete mode 100644 build/compiler/transformers/test/parse-events.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-form-associated.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-form-associated.spec.js delete mode 100644 build/compiler/transformers/test/parse-form-associated.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-import-path.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-import-path.spec.js delete mode 100644 build/compiler/transformers/test/parse-import-path.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-listeners.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-listeners.spec.js delete mode 100644 build/compiler/transformers/test/parse-listeners.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-methods.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-methods.spec.js delete mode 100644 build/compiler/transformers/test/parse-methods.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-props.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-props.spec.js delete mode 100644 build/compiler/transformers/test/parse-props.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-states.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-states.spec.js delete mode 100644 build/compiler/transformers/test/parse-states.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-styles.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-styles.spec.js delete mode 100644 build/compiler/transformers/test/parse-styles.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-vdom.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-vdom.spec.js delete mode 100644 build/compiler/transformers/test/parse-vdom.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-virtual-props.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-virtual-props.spec.js delete mode 100644 build/compiler/transformers/test/parse-virtual-props.spec.js.map delete mode 100644 build/compiler/transformers/test/parse-watch.spec.d.ts delete mode 100644 build/compiler/transformers/test/parse-watch.spec.js delete mode 100644 build/compiler/transformers/test/parse-watch.spec.js.map delete mode 100644 build/compiler/transformers/test/proxy-custom-element-function.spec.d.ts delete mode 100644 build/compiler/transformers/test/proxy-custom-element-function.spec.js delete mode 100644 build/compiler/transformers/test/proxy-custom-element-function.spec.js.map delete mode 100644 build/compiler/transformers/test/rewrite-aliased-paths.spec.d.ts delete mode 100644 build/compiler/transformers/test/rewrite-aliased-paths.spec.js delete mode 100644 build/compiler/transformers/test/rewrite-aliased-paths.spec.js.map delete mode 100644 build/compiler/transformers/test/transform-utils.spec.d.ts delete mode 100644 build/compiler/transformers/test/transform-utils.spec.js delete mode 100644 build/compiler/transformers/test/transform-utils.spec.js.map delete mode 100644 build/compiler/transformers/test/transpile.d.ts delete mode 100644 build/compiler/transformers/test/transpile.js delete mode 100644 build/compiler/transformers/test/transpile.js.map delete mode 100644 build/compiler/transformers/test/type-library.spec.d.ts delete mode 100644 build/compiler/transformers/test/type-library.spec.js delete mode 100644 build/compiler/transformers/test/type-library.spec.js.map delete mode 100644 build/compiler/transformers/test/utils.d.ts delete mode 100644 build/compiler/transformers/test/utils.js delete mode 100644 build/compiler/transformers/test/utils.js.map delete mode 100644 build/compiler/transformers/transform-utils.d.ts delete mode 100644 build/compiler/transformers/transform-utils.js delete mode 100644 build/compiler/transformers/transform-utils.js.map delete mode 100644 build/compiler/transformers/type-library.d.ts delete mode 100644 build/compiler/transformers/type-library.js delete mode 100644 build/compiler/transformers/type-library.js.map delete mode 100644 build/compiler/transformers/update-component-class.d.ts delete mode 100644 build/compiler/transformers/update-component-class.js delete mode 100644 build/compiler/transformers/update-component-class.js.map delete mode 100644 build/compiler/transformers/update-stencil-core-import.d.ts delete mode 100644 build/compiler/transformers/update-stencil-core-import.js delete mode 100644 build/compiler/transformers/update-stencil-core-import.js.map delete mode 100644 build/compiler/transformers/watcher-meta-transform.d.ts delete mode 100644 build/compiler/transformers/watcher-meta-transform.js delete mode 100644 build/compiler/transformers/watcher-meta-transform.js.map delete mode 100644 build/compiler/transpile.d.ts delete mode 100644 build/compiler/transpile.js delete mode 100644 build/compiler/transpile.js.map delete mode 100644 build/compiler/transpile/create-build-program.d.ts delete mode 100644 build/compiler/transpile/create-build-program.js delete mode 100644 build/compiler/transpile/create-build-program.js.map delete mode 100644 build/compiler/transpile/create-watch-program.d.ts delete mode 100644 build/compiler/transpile/create-watch-program.js delete mode 100644 build/compiler/transpile/create-watch-program.js.map delete mode 100644 build/compiler/transpile/run-program.d.ts delete mode 100644 build/compiler/transpile/run-program.js delete mode 100644 build/compiler/transpile/run-program.js.map delete mode 100644 build/compiler/transpile/test/run-program.spec.d.ts delete mode 100644 build/compiler/transpile/test/run-program.spec.js delete mode 100644 build/compiler/transpile/test/run-program.spec.js.map delete mode 100644 build/compiler/transpile/transpile-module.d.ts delete mode 100644 build/compiler/transpile/transpile-module.js delete mode 100644 build/compiler/transpile/transpile-module.js.map delete mode 100644 build/compiler/transpile/transpiled-module.d.ts delete mode 100644 build/compiler/transpile/transpiled-module.js delete mode 100644 build/compiler/transpile/transpiled-module.js.map delete mode 100644 build/compiler/transpile/ts-config.d.ts delete mode 100644 build/compiler/transpile/ts-config.js delete mode 100644 build/compiler/transpile/ts-config.js.map delete mode 100644 build/compiler/transpile/validate-components.d.ts delete mode 100644 build/compiler/transpile/validate-components.js delete mode 100644 build/compiler/transpile/validate-components.js.map delete mode 100644 build/compiler/types/generate-app-types.d.ts delete mode 100644 build/compiler/types/generate-app-types.js delete mode 100644 build/compiler/types/generate-app-types.js.map delete mode 100644 build/compiler/types/generate-component-types.d.ts delete mode 100644 build/compiler/types/generate-component-types.js delete mode 100644 build/compiler/types/generate-component-types.js.map delete mode 100644 build/compiler/types/generate-event-detail-types.d.ts delete mode 100644 build/compiler/types/generate-event-detail-types.js delete mode 100644 build/compiler/types/generate-event-detail-types.js.map delete mode 100644 build/compiler/types/generate-event-listener-types.d.ts delete mode 100644 build/compiler/types/generate-event-listener-types.js delete mode 100644 build/compiler/types/generate-event-listener-types.js.map delete mode 100644 build/compiler/types/generate-event-types.d.ts delete mode 100644 build/compiler/types/generate-event-types.js delete mode 100644 build/compiler/types/generate-event-types.js.map delete mode 100644 build/compiler/types/generate-method-types.d.ts delete mode 100644 build/compiler/types/generate-method-types.js delete mode 100644 build/compiler/types/generate-method-types.js.map delete mode 100644 build/compiler/types/generate-prop-types.d.ts delete mode 100644 build/compiler/types/generate-prop-types.js delete mode 100644 build/compiler/types/generate-prop-types.js.map delete mode 100644 build/compiler/types/generate-types.d.ts delete mode 100644 build/compiler/types/generate-types.js delete mode 100644 build/compiler/types/generate-types.js.map delete mode 100644 build/compiler/types/package-json-log-utils.d.ts delete mode 100644 build/compiler/types/package-json-log-utils.js delete mode 100644 build/compiler/types/package-json-log-utils.js.map delete mode 100644 build/compiler/types/stencil-types.d.ts delete mode 100644 build/compiler/types/stencil-types.js delete mode 100644 build/compiler/types/stencil-types.js.map delete mode 100644 build/compiler/types/tests/ComponentCompilerEvent.stub.d.ts delete mode 100644 build/compiler/types/tests/ComponentCompilerEvent.stub.js delete mode 100644 build/compiler/types/tests/ComponentCompilerEvent.stub.js.map delete mode 100644 build/compiler/types/tests/ComponentCompilerMeta.stub.d.ts delete mode 100644 build/compiler/types/tests/ComponentCompilerMeta.stub.js delete mode 100644 build/compiler/types/tests/ComponentCompilerMeta.stub.js.map delete mode 100644 build/compiler/types/tests/ComponentCompilerMethod.stub.d.ts delete mode 100644 build/compiler/types/tests/ComponentCompilerMethod.stub.js delete mode 100644 build/compiler/types/tests/ComponentCompilerMethod.stub.js.map delete mode 100644 build/compiler/types/tests/ComponentCompilerProperty.stub.d.ts delete mode 100644 build/compiler/types/tests/ComponentCompilerProperty.stub.js delete mode 100644 build/compiler/types/tests/ComponentCompilerProperty.stub.js.map delete mode 100644 build/compiler/types/tests/ComponentCompilerTypeReference.stub.d.ts delete mode 100644 build/compiler/types/tests/ComponentCompilerTypeReference.stub.js delete mode 100644 build/compiler/types/tests/ComponentCompilerTypeReference.stub.js.map delete mode 100644 build/compiler/types/tests/ComponentCompilerVirtualProperty.stub.d.ts delete mode 100644 build/compiler/types/tests/ComponentCompilerVirtualProperty.stub.js delete mode 100644 build/compiler/types/tests/ComponentCompilerVirtualProperty.stub.js.map delete mode 100644 build/compiler/types/tests/TypesImportData.stub.d.ts delete mode 100644 build/compiler/types/tests/TypesImportData.stub.js delete mode 100644 build/compiler/types/tests/TypesImportData.stub.js.map delete mode 100644 build/compiler/types/tests/generate-app-types.spec.d.ts delete mode 100644 build/compiler/types/tests/generate-app-types.spec.js delete mode 100644 build/compiler/types/tests/generate-app-types.spec.js.map delete mode 100644 build/compiler/types/tests/generate-event-detail-types.spec.d.ts delete mode 100644 build/compiler/types/tests/generate-event-detail-types.spec.js delete mode 100644 build/compiler/types/tests/generate-event-detail-types.spec.js.map delete mode 100644 build/compiler/types/tests/generate-event-listener-types.spec.d.ts delete mode 100644 build/compiler/types/tests/generate-event-listener-types.spec.js delete mode 100644 build/compiler/types/tests/generate-event-listener-types.spec.js.map delete mode 100644 build/compiler/types/tests/generate-event-types.spec.d.ts delete mode 100644 build/compiler/types/tests/generate-event-types.spec.js delete mode 100644 build/compiler/types/tests/generate-event-types.spec.js.map delete mode 100644 build/compiler/types/tests/generate-method-types.spec.d.ts delete mode 100644 build/compiler/types/tests/generate-method-types.spec.js delete mode 100644 build/compiler/types/tests/generate-method-types.spec.js.map delete mode 100644 build/compiler/types/tests/generate-prop-types.spec.d.ts delete mode 100644 build/compiler/types/tests/generate-prop-types.spec.js delete mode 100644 build/compiler/types/tests/generate-prop-types.spec.js.map delete mode 100644 build/compiler/types/tests/stencil-types.spec.d.ts delete mode 100644 build/compiler/types/tests/stencil-types.spec.js delete mode 100644 build/compiler/types/tests/stencil-types.spec.js.map delete mode 100644 build/compiler/types/tests/validate-package-json.spec.d.ts delete mode 100644 build/compiler/types/tests/validate-package-json.spec.js delete mode 100644 build/compiler/types/tests/validate-package-json.spec.js.map delete mode 100644 build/compiler/types/tests/validate-primary-package-output-target.spec.d.ts delete mode 100644 build/compiler/types/tests/validate-primary-package-output-target.spec.js delete mode 100644 build/compiler/types/tests/validate-primary-package-output-target.spec.js.map delete mode 100644 build/compiler/types/types-utils.d.ts delete mode 100644 build/compiler/types/types-utils.js delete mode 100644 build/compiler/types/types-utils.js.map delete mode 100644 build/compiler/types/update-import-refs.d.ts delete mode 100644 build/compiler/types/update-import-refs.js delete mode 100644 build/compiler/types/update-import-refs.js.map delete mode 100644 build/compiler/types/validate-build-package-json.d.ts delete mode 100644 build/compiler/types/validate-build-package-json.js delete mode 100644 build/compiler/types/validate-build-package-json.js.map delete mode 100644 build/compiler/types/validate-primary-package-output-target.d.ts delete mode 100644 build/compiler/types/validate-primary-package-output-target.js delete mode 100644 build/compiler/types/validate-primary-package-output-target.js.map delete mode 100644 build/compiler/worker/main-thread.d.ts delete mode 100644 build/compiler/worker/main-thread.js delete mode 100644 build/compiler/worker/main-thread.js.map delete mode 100644 build/compiler/worker/worker-thread.d.ts delete mode 100644 build/compiler/worker/worker-thread.js delete mode 100644 build/compiler/worker/worker-thread.js.map delete mode 100644 build/declarations/index.d.ts delete mode 100644 build/declarations/index.js delete mode 100644 build/declarations/index.js.map delete mode 100644 build/declarations/stencil-private.d.ts delete mode 100644 build/declarations/stencil-private.js delete mode 100644 build/declarations/stencil-private.js.map delete mode 100644 build/declarations/stencil-public-compiler.d.ts delete mode 100644 build/declarations/stencil-public-compiler.js delete mode 100644 build/declarations/stencil-public-compiler.js.map delete mode 100644 build/declarations/stencil-public-docs.d.ts delete mode 100644 build/declarations/stencil-public-docs.d.ts-bundled.d.ts delete mode 100644 build/declarations/stencil-public-docs.js delete mode 100644 build/declarations/stencil-public-docs.js.map delete mode 100644 build/declarations/stencil-public-runtime.d.ts delete mode 100644 build/declarations/stencil-public-runtime.js delete mode 100644 build/declarations/stencil-public-runtime.js.map delete mode 100644 build/dev-server/client/app-error.d.ts delete mode 100644 build/dev-server/client/app-error.js delete mode 100644 build/dev-server/client/app-error.js.map delete mode 100644 build/dev-server/client/events.d.ts delete mode 100644 build/dev-server/client/events.js delete mode 100644 build/dev-server/client/events.js.map delete mode 100644 build/dev-server/client/hmr-components.d.ts delete mode 100644 build/dev-server/client/hmr-components.js delete mode 100644 build/dev-server/client/hmr-components.js.map delete mode 100644 build/dev-server/client/hmr-external-styles.d.ts delete mode 100644 build/dev-server/client/hmr-external-styles.js delete mode 100644 build/dev-server/client/hmr-external-styles.js.map delete mode 100644 build/dev-server/client/hmr-images.d.ts delete mode 100644 build/dev-server/client/hmr-images.js delete mode 100644 build/dev-server/client/hmr-images.js.map delete mode 100644 build/dev-server/client/hmr-inline-styles.d.ts delete mode 100644 build/dev-server/client/hmr-inline-styles.js delete mode 100644 build/dev-server/client/hmr-inline-styles.js.map delete mode 100644 build/dev-server/client/hmr-util.d.ts delete mode 100644 build/dev-server/client/hmr-util.js delete mode 100644 build/dev-server/client/hmr-util.js.map delete mode 100644 build/dev-server/client/hmr-window.d.ts delete mode 100644 build/dev-server/client/hmr-window.js delete mode 100644 build/dev-server/client/hmr-window.js.map delete mode 100644 build/dev-server/client/index.d.ts delete mode 100644 build/dev-server/client/index.js delete mode 100644 build/dev-server/client/index.js.map delete mode 100644 build/dev-server/client/logger.d.ts delete mode 100644 build/dev-server/client/logger.js delete mode 100644 build/dev-server/client/logger.js.map delete mode 100644 build/dev-server/client/progress.d.ts delete mode 100644 build/dev-server/client/progress.js delete mode 100644 build/dev-server/client/progress.js.map delete mode 100644 build/dev-server/client/status.d.ts delete mode 100644 build/dev-server/client/status.js delete mode 100644 build/dev-server/client/status.js.map delete mode 100644 build/dev-server/client/test/hmr-util.spec.d.ts delete mode 100644 build/dev-server/client/test/hmr-util.spec.js delete mode 100644 build/dev-server/client/test/hmr-util.spec.js.map delete mode 100644 build/dev-server/client/test/status.spec.d.ts delete mode 100644 build/dev-server/client/test/status.spec.js delete mode 100644 build/dev-server/client/test/status.spec.js.map delete mode 100644 build/dev-server/content-types-db.json delete mode 100644 build/dev-server/dev-server-client/app-update.d.ts delete mode 100644 build/dev-server/dev-server-client/app-update.js delete mode 100644 build/dev-server/dev-server-client/app-update.js.map delete mode 100644 build/dev-server/dev-server-client/client-web-socket.d.ts delete mode 100644 build/dev-server/dev-server-client/client-web-socket.js delete mode 100644 build/dev-server/dev-server-client/client-web-socket.js.map delete mode 100644 build/dev-server/dev-server-client/index.d.ts delete mode 100644 build/dev-server/dev-server-client/index.js delete mode 100644 build/dev-server/dev-server-client/index.js.map delete mode 100644 build/dev-server/dev-server-client/init-dev-client.d.ts delete mode 100644 build/dev-server/dev-server-client/init-dev-client.js delete mode 100644 build/dev-server/dev-server-client/init-dev-client.js.map delete mode 100644 build/dev-server/dev-server-client/polyfills.d.ts delete mode 100644 build/dev-server/dev-server-client/polyfills.js delete mode 100644 build/dev-server/dev-server-client/polyfills.js.map delete mode 100644 build/dev-server/dev-server-constants.d.ts delete mode 100644 build/dev-server/dev-server-constants.js delete mode 100644 build/dev-server/dev-server-constants.js.map delete mode 100644 build/dev-server/dev-server-utils.d.ts delete mode 100644 build/dev-server/dev-server-utils.js delete mode 100644 build/dev-server/dev-server-utils.js.map delete mode 100644 build/dev-server/index.d.ts delete mode 100644 build/dev-server/index.js delete mode 100644 build/dev-server/index.js.map delete mode 100644 build/dev-server/open-in-browser.d.ts delete mode 100644 build/dev-server/open-in-browser.js delete mode 100644 build/dev-server/open-in-browser.js.map delete mode 100644 build/dev-server/open-in-editor-api.d.ts delete mode 100644 build/dev-server/open-in-editor-api.js delete mode 100644 build/dev-server/open-in-editor-api.js.map delete mode 100644 build/dev-server/open-in-editor.d.ts delete mode 100644 build/dev-server/open-in-editor.js delete mode 100644 build/dev-server/open-in-editor.js.map delete mode 100644 build/dev-server/request-handler.d.ts delete mode 100644 build/dev-server/request-handler.js delete mode 100644 build/dev-server/request-handler.js.map delete mode 100644 build/dev-server/serve-dev-client.d.ts delete mode 100644 build/dev-server/serve-dev-client.js delete mode 100644 build/dev-server/serve-dev-client.js.map delete mode 100644 build/dev-server/serve-dev-node-module.d.ts delete mode 100644 build/dev-server/serve-dev-node-module.js delete mode 100644 build/dev-server/serve-dev-node-module.js.map delete mode 100644 build/dev-server/serve-directory-index.d.ts delete mode 100644 build/dev-server/serve-directory-index.js delete mode 100644 build/dev-server/serve-directory-index.js.map delete mode 100644 build/dev-server/serve-file.d.ts delete mode 100644 build/dev-server/serve-file.js delete mode 100644 build/dev-server/serve-file.js.map delete mode 100644 build/dev-server/server-context.d.ts delete mode 100644 build/dev-server/server-context.js delete mode 100644 build/dev-server/server-context.js.map delete mode 100644 build/dev-server/server-http.d.ts delete mode 100644 build/dev-server/server-http.js delete mode 100644 build/dev-server/server-http.js.map delete mode 100644 build/dev-server/server-process.d.ts delete mode 100644 build/dev-server/server-process.js delete mode 100644 build/dev-server/server-process.js.map delete mode 100644 build/dev-server/server-web-socket.d.ts delete mode 100644 build/dev-server/server-web-socket.js delete mode 100644 build/dev-server/server-web-socket.js.map delete mode 100644 build/dev-server/server-worker-main.d.ts delete mode 100644 build/dev-server/server-worker-main.js delete mode 100644 build/dev-server/server-worker-main.js.map delete mode 100644 build/dev-server/ssr-request.d.ts delete mode 100644 build/dev-server/ssr-request.js delete mode 100644 build/dev-server/ssr-request.js.map delete mode 100644 build/dev-server/test/Diagnostic.stub.d.ts delete mode 100644 build/dev-server/test/Diagnostic.stub.js delete mode 100644 build/dev-server/test/Diagnostic.stub.js.map delete mode 100644 build/dev-server/test/dev-server-utils.spec.d.ts delete mode 100644 build/dev-server/test/dev-server-utils.spec.js delete mode 100644 build/dev-server/test/dev-server-utils.spec.js.map delete mode 100644 build/dev-server/test/req-handler.spec.d.ts delete mode 100644 build/dev-server/test/req-handler.spec.js delete mode 100644 build/dev-server/test/req-handler.spec.js.map delete mode 100644 build/dev-server/test/util.spec.d.ts delete mode 100644 build/dev-server/test/util.spec.js delete mode 100644 build/dev-server/test/util.spec.js.map delete mode 100644 build/hydrate/platform/h-async.d.ts delete mode 100644 build/hydrate/platform/h-async.js delete mode 100644 build/hydrate/platform/h-async.js.map delete mode 100644 build/hydrate/platform/hydrate-app.d.ts delete mode 100644 build/hydrate/platform/hydrate-app.js delete mode 100644 build/hydrate/platform/hydrate-app.js.map delete mode 100644 build/hydrate/platform/index.d.ts delete mode 100644 build/hydrate/platform/index.js delete mode 100644 build/hydrate/platform/index.js.map delete mode 100644 build/hydrate/platform/proxy-host-element.d.ts delete mode 100644 build/hydrate/platform/proxy-host-element.js delete mode 100644 build/hydrate/platform/proxy-host-element.js.map delete mode 100644 build/hydrate/runner/create-window.d.ts delete mode 100644 build/hydrate/runner/create-window.js delete mode 100644 build/hydrate/runner/create-window.js.map delete mode 100644 build/hydrate/runner/hydrate-factory.d.ts delete mode 100644 build/hydrate/runner/hydrate-factory.js delete mode 100644 build/hydrate/runner/hydrate-factory.js.map delete mode 100644 build/hydrate/runner/index.d.ts delete mode 100644 build/hydrate/runner/index.d.ts-bundled.d.ts delete mode 100644 build/hydrate/runner/index.js delete mode 100644 build/hydrate/runner/index.js.map delete mode 100644 build/hydrate/runner/inspect-element.d.ts delete mode 100644 build/hydrate/runner/inspect-element.js delete mode 100644 build/hydrate/runner/inspect-element.js.map delete mode 100644 build/hydrate/runner/patch-dom-implementation.d.ts delete mode 100644 build/hydrate/runner/patch-dom-implementation.js delete mode 100644 build/hydrate/runner/patch-dom-implementation.js.map delete mode 100644 build/hydrate/runner/render-utils.d.ts delete mode 100644 build/hydrate/runner/render-utils.js delete mode 100644 build/hydrate/runner/render-utils.js.map delete mode 100644 build/hydrate/runner/render.d.ts delete mode 100644 build/hydrate/runner/render.js delete mode 100644 build/hydrate/runner/render.js.map delete mode 100644 build/hydrate/runner/runtime-log.d.ts delete mode 100644 build/hydrate/runner/runtime-log.js delete mode 100644 build/hydrate/runner/runtime-log.js.map delete mode 100644 build/hydrate/runner/window-initialize.d.ts delete mode 100644 build/hydrate/runner/window-initialize.js delete mode 100644 build/hydrate/runner/window-initialize.js.map delete mode 100644 build/internal/default.d.ts delete mode 100644 build/internal/default.js delete mode 100644 build/internal/default.js.map delete mode 100644 build/internal/index.d.ts delete mode 100644 build/internal/index.js delete mode 100644 build/internal/index.js.map delete mode 100644 build/mock-doc/attribute.d.ts delete mode 100644 build/mock-doc/attribute.js delete mode 100644 build/mock-doc/attribute.js.map delete mode 100644 build/mock-doc/class-list.d.ts delete mode 100644 build/mock-doc/class-list.js delete mode 100644 build/mock-doc/class-list.js.map delete mode 100644 build/mock-doc/comment-node.d.ts delete mode 100644 build/mock-doc/comment-node.js delete mode 100644 build/mock-doc/comment-node.js.map delete mode 100644 build/mock-doc/console.d.ts delete mode 100644 build/mock-doc/console.js delete mode 100644 build/mock-doc/console.js.map delete mode 100644 build/mock-doc/constants.d.ts delete mode 100644 build/mock-doc/constants.js delete mode 100644 build/mock-doc/constants.js.map delete mode 100644 build/mock-doc/css-style-declaration.d.ts delete mode 100644 build/mock-doc/css-style-declaration.js delete mode 100644 build/mock-doc/css-style-declaration.js.map delete mode 100644 build/mock-doc/css-style-sheet.d.ts delete mode 100644 build/mock-doc/css-style-sheet.js delete mode 100644 build/mock-doc/css-style-sheet.js.map delete mode 100644 build/mock-doc/custom-element-registry.d.ts delete mode 100644 build/mock-doc/custom-element-registry.js delete mode 100644 build/mock-doc/custom-element-registry.js.map delete mode 100644 build/mock-doc/dataset.d.ts delete mode 100644 build/mock-doc/dataset.js delete mode 100644 build/mock-doc/dataset.js.map delete mode 100644 build/mock-doc/document-fragment.d.ts delete mode 100644 build/mock-doc/document-fragment.js delete mode 100644 build/mock-doc/document-fragment.js.map delete mode 100644 build/mock-doc/document-type-node.d.ts delete mode 100644 build/mock-doc/document-type-node.js delete mode 100644 build/mock-doc/document-type-node.js.map delete mode 100644 build/mock-doc/document.d.ts delete mode 100644 build/mock-doc/document.js delete mode 100644 build/mock-doc/document.js.map delete mode 100644 build/mock-doc/element.d.ts delete mode 100644 build/mock-doc/element.js delete mode 100644 build/mock-doc/element.js.map delete mode 100644 build/mock-doc/event.d.ts delete mode 100644 build/mock-doc/event.js delete mode 100644 build/mock-doc/event.js.map delete mode 100644 build/mock-doc/global.d.ts delete mode 100644 build/mock-doc/global.js delete mode 100644 build/mock-doc/global.js.map delete mode 100644 build/mock-doc/headers.d.ts delete mode 100644 build/mock-doc/headers.js delete mode 100644 build/mock-doc/headers.js.map delete mode 100644 build/mock-doc/history.d.ts delete mode 100644 build/mock-doc/history.js delete mode 100644 build/mock-doc/history.js.map delete mode 100644 build/mock-doc/index.d.ts delete mode 100644 build/mock-doc/index.js delete mode 100644 build/mock-doc/index.js.map delete mode 100644 build/mock-doc/intersection-observer.d.ts delete mode 100644 build/mock-doc/intersection-observer.js delete mode 100644 build/mock-doc/intersection-observer.js.map delete mode 100644 build/mock-doc/location.d.ts delete mode 100644 build/mock-doc/location.js delete mode 100644 build/mock-doc/location.js.map delete mode 100644 build/mock-doc/navigator.d.ts delete mode 100644 build/mock-doc/navigator.js delete mode 100644 build/mock-doc/navigator.js.map delete mode 100644 build/mock-doc/node.d.ts delete mode 100644 build/mock-doc/node.js delete mode 100644 build/mock-doc/node.js.map delete mode 100644 build/mock-doc/parse-html.d.ts delete mode 100644 build/mock-doc/parse-html.js delete mode 100644 build/mock-doc/parse-html.js.map delete mode 100644 build/mock-doc/parse-util.d.ts delete mode 100644 build/mock-doc/parse-util.js delete mode 100644 build/mock-doc/parse-util.js.map delete mode 100644 build/mock-doc/parser.d.ts delete mode 100644 build/mock-doc/parser.js delete mode 100644 build/mock-doc/parser.js.map delete mode 100644 build/mock-doc/performance.d.ts delete mode 100644 build/mock-doc/performance.js delete mode 100644 build/mock-doc/performance.js.map delete mode 100644 build/mock-doc/request-response.d.ts delete mode 100644 build/mock-doc/request-response.js delete mode 100644 build/mock-doc/request-response.js.map delete mode 100644 build/mock-doc/selector.d.ts delete mode 100644 build/mock-doc/selector.js delete mode 100644 build/mock-doc/selector.js.map delete mode 100644 build/mock-doc/serialize-node.d.ts delete mode 100644 build/mock-doc/serialize-node.js delete mode 100644 build/mock-doc/serialize-node.js.map delete mode 100644 build/mock-doc/storage.d.ts delete mode 100644 build/mock-doc/storage.js delete mode 100644 build/mock-doc/storage.js.map delete mode 100644 build/mock-doc/test/attribute.spec.d.ts delete mode 100644 build/mock-doc/test/attribute.spec.js delete mode 100644 build/mock-doc/test/attribute.spec.js.map delete mode 100644 build/mock-doc/test/class-list.spec.d.ts delete mode 100644 build/mock-doc/test/class-list.spec.js delete mode 100644 build/mock-doc/test/class-list.spec.js.map delete mode 100644 build/mock-doc/test/clone.spec.d.ts delete mode 100644 build/mock-doc/test/clone.spec.js delete mode 100644 build/mock-doc/test/clone.spec.js.map delete mode 100644 build/mock-doc/test/css-style-declaration.spec.d.ts delete mode 100644 build/mock-doc/test/css-style-declaration.spec.js delete mode 100644 build/mock-doc/test/css-style-declaration.spec.js.map delete mode 100644 build/mock-doc/test/css-style-sheet.spec.d.ts delete mode 100644 build/mock-doc/test/css-style-sheet.spec.js delete mode 100644 build/mock-doc/test/css-style-sheet.spec.js.map delete mode 100644 build/mock-doc/test/custom-elements.spec.d.ts delete mode 100644 build/mock-doc/test/custom-elements.spec.js delete mode 100644 build/mock-doc/test/custom-elements.spec.js.map delete mode 100644 build/mock-doc/test/dataset.spec.d.ts delete mode 100644 build/mock-doc/test/dataset.spec.js delete mode 100644 build/mock-doc/test/dataset.spec.js.map delete mode 100644 build/mock-doc/test/doc-style.spec.d.ts delete mode 100644 build/mock-doc/test/doc-style.spec.js delete mode 100644 build/mock-doc/test/doc-style.spec.js.map delete mode 100644 build/mock-doc/test/document-fragment.spec.d.ts delete mode 100644 build/mock-doc/test/document-fragment.spec.js delete mode 100644 build/mock-doc/test/document-fragment.spec.js.map delete mode 100644 build/mock-doc/test/element.spec.d.ts delete mode 100644 build/mock-doc/test/element.spec.js delete mode 100644 build/mock-doc/test/element.spec.js.map delete mode 100644 build/mock-doc/test/event.spec.d.ts delete mode 100644 build/mock-doc/test/event.spec.js delete mode 100644 build/mock-doc/test/event.spec.js.map delete mode 100644 build/mock-doc/test/global.spec.d.ts delete mode 100644 build/mock-doc/test/global.spec.js delete mode 100644 build/mock-doc/test/global.spec.js.map delete mode 100644 build/mock-doc/test/headers.spec.d.ts delete mode 100644 build/mock-doc/test/headers.spec.js delete mode 100644 build/mock-doc/test/headers.spec.js.map delete mode 100644 build/mock-doc/test/html-parse.spec.d.ts delete mode 100644 build/mock-doc/test/html-parse.spec.js delete mode 100644 build/mock-doc/test/html-parse.spec.js.map delete mode 100644 build/mock-doc/test/location.spec.d.ts delete mode 100644 build/mock-doc/test/location.spec.js delete mode 100644 build/mock-doc/test/location.spec.js.map delete mode 100644 build/mock-doc/test/match-media.spec.d.ts delete mode 100644 build/mock-doc/test/match-media.spec.js delete mode 100644 build/mock-doc/test/match-media.spec.js.map delete mode 100644 build/mock-doc/test/request-response.spec.d.ts delete mode 100644 build/mock-doc/test/request-response.spec.js delete mode 100644 build/mock-doc/test/request-response.spec.js.map delete mode 100644 build/mock-doc/test/selector.spec.d.ts delete mode 100644 build/mock-doc/test/selector.spec.js delete mode 100644 build/mock-doc/test/selector.spec.js.map delete mode 100644 build/mock-doc/test/serialize-node.spec.d.ts delete mode 100644 build/mock-doc/test/serialize-node.spec.js delete mode 100644 build/mock-doc/test/serialize-node.spec.js.map delete mode 100644 build/mock-doc/test/storage.spec.d.ts delete mode 100644 build/mock-doc/test/storage.spec.js delete mode 100644 build/mock-doc/test/storage.spec.js.map delete mode 100644 build/mock-doc/window.d.ts delete mode 100644 build/mock-doc/window.js delete mode 100644 build/mock-doc/window.js.map delete mode 100644 build/runtime/asset-path.d.ts delete mode 100644 build/runtime/asset-path.js delete mode 100644 build/runtime/asset-path.js.map delete mode 100644 build/runtime/bootstrap-custom-element.d.ts delete mode 100644 build/runtime/bootstrap-custom-element.js delete mode 100644 build/runtime/bootstrap-custom-element.js.map delete mode 100644 build/runtime/bootstrap-lazy.d.ts delete mode 100644 build/runtime/bootstrap-lazy.js delete mode 100644 build/runtime/bootstrap-lazy.js.map delete mode 100644 build/runtime/client-hydrate.d.ts delete mode 100644 build/runtime/client-hydrate.js delete mode 100644 build/runtime/client-hydrate.js.map delete mode 100644 build/runtime/connected-callback.d.ts delete mode 100644 build/runtime/connected-callback.js delete mode 100644 build/runtime/connected-callback.js.map delete mode 100644 build/runtime/disconnected-callback.d.ts delete mode 100644 build/runtime/disconnected-callback.js delete mode 100644 build/runtime/disconnected-callback.js.map delete mode 100644 build/runtime/dom-extras.d.ts delete mode 100644 build/runtime/dom-extras.js delete mode 100644 build/runtime/dom-extras.js.map delete mode 100644 build/runtime/element.d.ts delete mode 100644 build/runtime/element.js delete mode 100644 build/runtime/element.js.map delete mode 100644 build/runtime/event-emitter.d.ts delete mode 100644 build/runtime/event-emitter.js delete mode 100644 build/runtime/event-emitter.js.map delete mode 100644 build/runtime/fragment.d.ts delete mode 100644 build/runtime/fragment.js delete mode 100644 build/runtime/fragment.js.map delete mode 100644 build/runtime/hmr-component.d.ts delete mode 100644 build/runtime/hmr-component.js delete mode 100644 build/runtime/hmr-component.js.map delete mode 100644 build/runtime/host-listener.d.ts delete mode 100644 build/runtime/host-listener.js delete mode 100644 build/runtime/host-listener.js.map delete mode 100644 build/runtime/index.d.ts delete mode 100644 build/runtime/index.js delete mode 100644 build/runtime/index.js.map delete mode 100644 build/runtime/initialize-component.d.ts delete mode 100644 build/runtime/initialize-component.js delete mode 100644 build/runtime/initialize-component.js.map delete mode 100644 build/runtime/mode.d.ts delete mode 100644 build/runtime/mode.js delete mode 100644 build/runtime/mode.js.map delete mode 100644 build/runtime/nonce.d.ts delete mode 100644 build/runtime/nonce.js delete mode 100644 build/runtime/nonce.js.map delete mode 100644 build/runtime/parse-property-value.d.ts delete mode 100644 build/runtime/parse-property-value.js delete mode 100644 build/runtime/parse-property-value.js.map delete mode 100644 build/runtime/platform-options.d.ts delete mode 100644 build/runtime/platform-options.js delete mode 100644 build/runtime/platform-options.js.map delete mode 100644 build/runtime/profile.d.ts delete mode 100644 build/runtime/profile.js delete mode 100644 build/runtime/profile.js.map delete mode 100644 build/runtime/proxy-component.d.ts delete mode 100644 build/runtime/proxy-component.js delete mode 100644 build/runtime/proxy-component.js.map delete mode 100644 build/runtime/runtime-constants.d.ts delete mode 100644 build/runtime/runtime-constants.js delete mode 100644 build/runtime/runtime-constants.js.map delete mode 100644 build/runtime/set-value.d.ts delete mode 100644 build/runtime/set-value.js delete mode 100644 build/runtime/set-value.js.map delete mode 100644 build/runtime/styles.d.ts delete mode 100644 build/runtime/styles.js delete mode 100644 build/runtime/styles.js.map delete mode 100644 build/runtime/test/parse-property-value.spec.d.ts delete mode 100644 build/runtime/test/parse-property-value.spec.js delete mode 100644 build/runtime/test/parse-property-value.spec.js.map delete mode 100644 build/runtime/update-component.d.ts delete mode 100644 build/runtime/update-component.js delete mode 100644 build/runtime/update-component.js.map delete mode 100644 build/runtime/vdom/h.d.ts delete mode 100644 build/runtime/vdom/h.js delete mode 100644 build/runtime/vdom/h.js.map delete mode 100644 build/runtime/vdom/set-accessor.d.ts delete mode 100644 build/runtime/vdom/set-accessor.js delete mode 100644 build/runtime/vdom/set-accessor.js.map delete mode 100644 build/runtime/vdom/test/attributes.spec.d.ts delete mode 100644 build/runtime/vdom/test/attributes.spec.js delete mode 100644 build/runtime/vdom/test/attributes.spec.js.map delete mode 100644 build/runtime/vdom/test/event-listeners.spec.d.ts delete mode 100644 build/runtime/vdom/test/event-listeners.spec.js delete mode 100644 build/runtime/vdom/test/event-listeners.spec.js.map delete mode 100644 build/runtime/vdom/test/h.spec.d.ts delete mode 100644 build/runtime/vdom/test/h.spec.js delete mode 100644 build/runtime/vdom/test/h.spec.js.map delete mode 100644 build/runtime/vdom/test/is-same-vnode.spec.d.ts delete mode 100644 build/runtime/vdom/test/is-same-vnode.spec.js delete mode 100644 build/runtime/vdom/test/is-same-vnode.spec.js.map delete mode 100644 build/runtime/vdom/test/patch-svg.spec.d.ts delete mode 100644 build/runtime/vdom/test/patch-svg.spec.js delete mode 100644 build/runtime/vdom/test/patch-svg.spec.js.map delete mode 100644 build/runtime/vdom/test/patch.spec.d.ts delete mode 100644 build/runtime/vdom/test/patch.spec.js delete mode 100644 build/runtime/vdom/test/patch.spec.js.map delete mode 100644 build/runtime/vdom/test/set-accessor.spec.d.ts delete mode 100644 build/runtime/vdom/test/set-accessor.spec.js delete mode 100644 build/runtime/vdom/test/set-accessor.spec.js.map delete mode 100644 build/runtime/vdom/test/to-vnode.d.ts delete mode 100644 build/runtime/vdom/test/to-vnode.js delete mode 100644 build/runtime/vdom/test/to-vnode.js.map delete mode 100644 build/runtime/vdom/test/to-vnode.spec.d.ts delete mode 100644 build/runtime/vdom/test/to-vnode.spec.js delete mode 100644 build/runtime/vdom/test/to-vnode.spec.js.map delete mode 100644 build/runtime/vdom/test/update-element.spec.d.ts delete mode 100644 build/runtime/vdom/test/update-element.spec.js delete mode 100644 build/runtime/vdom/test/update-element.spec.js.map delete mode 100644 build/runtime/vdom/update-element.d.ts delete mode 100644 build/runtime/vdom/update-element.js delete mode 100644 build/runtime/vdom/update-element.js.map delete mode 100644 build/runtime/vdom/vdom-annotations.d.ts delete mode 100644 build/runtime/vdom/vdom-annotations.js delete mode 100644 build/runtime/vdom/vdom-annotations.js.map delete mode 100644 build/runtime/vdom/vdom-render.d.ts delete mode 100644 build/runtime/vdom/vdom-render.js delete mode 100644 build/runtime/vdom/vdom-render.js.map delete mode 100644 build/screenshot/connector-base.d.ts delete mode 100644 build/screenshot/connector-base.js delete mode 100644 build/screenshot/connector-base.js.map delete mode 100644 build/screenshot/connector-local.d.ts delete mode 100644 build/screenshot/connector-local.js delete mode 100644 build/screenshot/connector-local.js.map delete mode 100644 build/screenshot/index.d.ts delete mode 100644 build/screenshot/index.js delete mode 100644 build/screenshot/index.js.map delete mode 100644 build/screenshot/pixel-match.d.ts delete mode 100644 build/screenshot/pixel-match.js delete mode 100644 build/screenshot/pixel-match.js.map delete mode 100644 build/screenshot/screenshot-compare.d.ts delete mode 100644 build/screenshot/screenshot-compare.js delete mode 100644 build/screenshot/screenshot-compare.js.map delete mode 100644 build/screenshot/screenshot-fs.d.ts delete mode 100644 build/screenshot/screenshot-fs.js delete mode 100644 build/screenshot/screenshot-fs.js.map delete mode 100644 build/sys/node/index.d.ts delete mode 100644 build/sys/node/index.js delete mode 100644 build/sys/node/index.js.map delete mode 100644 build/sys/node/logger/index.d.ts delete mode 100644 build/sys/node/logger/index.js delete mode 100644 build/sys/node/logger/index.js.map delete mode 100644 build/sys/node/logger/terminal-logger.d.ts delete mode 100644 build/sys/node/logger/terminal-logger.js delete mode 100644 build/sys/node/logger/terminal-logger.js.map delete mode 100644 build/sys/node/logger/test/terminal-logger.spec.d.ts delete mode 100644 build/sys/node/logger/test/terminal-logger.spec.js delete mode 100644 build/sys/node/logger/test/terminal-logger.spec.js.map delete mode 100644 build/sys/node/node-copy-tasks.d.ts delete mode 100644 build/sys/node/node-copy-tasks.js delete mode 100644 build/sys/node/node-copy-tasks.js.map delete mode 100644 build/sys/node/node-fs-promisify.d.ts delete mode 100644 build/sys/node/node-fs-promisify.js delete mode 100644 build/sys/node/node-fs-promisify.js.map delete mode 100644 build/sys/node/node-lazy-require.d.ts delete mode 100644 build/sys/node/node-lazy-require.js delete mode 100644 build/sys/node/node-lazy-require.js.map delete mode 100644 build/sys/node/node-resolve-module.d.ts delete mode 100644 build/sys/node/node-resolve-module.js delete mode 100644 build/sys/node/node-resolve-module.js.map delete mode 100644 build/sys/node/node-setup-process.d.ts delete mode 100644 build/sys/node/node-setup-process.js delete mode 100644 build/sys/node/node-setup-process.js.map delete mode 100644 build/sys/node/node-stencil-version-checker.d.ts delete mode 100644 build/sys/node/node-stencil-version-checker.js delete mode 100644 build/sys/node/node-stencil-version-checker.js.map delete mode 100644 build/sys/node/node-sys.d.ts delete mode 100644 build/sys/node/node-sys.js delete mode 100644 build/sys/node/node-sys.js.map delete mode 100644 build/sys/node/node-worker-controller.d.ts delete mode 100644 build/sys/node/node-worker-controller.js delete mode 100644 build/sys/node/node-worker-controller.js.map delete mode 100644 build/sys/node/node-worker-main.d.ts delete mode 100644 build/sys/node/node-worker-main.js delete mode 100644 build/sys/node/node-worker-main.js.map delete mode 100644 build/sys/node/node-worker-thread.d.ts delete mode 100644 build/sys/node/node-worker-thread.js delete mode 100644 build/sys/node/node-worker-thread.js.map delete mode 100644 build/sys/node/public.d.ts delete mode 100644 build/sys/node/public.js delete mode 100644 build/sys/node/public.js.map delete mode 100644 build/sys/node/test/node-lazy-require.spec.d.ts delete mode 100644 build/sys/node/test/node-lazy-require.spec.js delete mode 100644 build/sys/node/test/node-lazy-require.spec.js.map delete mode 100644 build/sys/node/test/test-worker-main.d.ts delete mode 100644 build/sys/node/test/test-worker-main.js delete mode 100644 build/sys/node/test/test-worker-main.js.map delete mode 100644 build/sys/node/test/worker-manager.spec.d.ts delete mode 100644 build/sys/node/test/worker-manager.spec.js delete mode 100644 build/sys/node/test/worker-manager.spec.js.map delete mode 100644 build/sys/node/worker.d.ts delete mode 100644 build/sys/node/worker.js delete mode 100644 build/sys/node/worker.js.map delete mode 100644 build/testing/index.d.ts delete mode 100644 build/testing/index.js delete mode 100644 build/testing/index.js.map delete mode 100644 build/testing/jest/jest-27-and-under/jest-config.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/jest-config.js delete mode 100644 build/testing/jest/jest-27-and-under/jest-config.js.map delete mode 100644 build/testing/jest/jest-27-and-under/jest-environment.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/jest-environment.js delete mode 100644 build/testing/jest/jest-27-and-under/jest-environment.js.map delete mode 100644 build/testing/jest/jest-27-and-under/jest-facade.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/jest-facade.js delete mode 100644 build/testing/jest/jest-27-and-under/jest-facade.js.map delete mode 100644 build/testing/jest/jest-27-and-under/jest-preprocessor.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/jest-preprocessor.js delete mode 100644 build/testing/jest/jest-27-and-under/jest-preprocessor.js.map delete mode 100644 build/testing/jest/jest-27-and-under/jest-preset.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/jest-preset.js delete mode 100644 build/testing/jest/jest-27-and-under/jest-preset.js.map delete mode 100644 build/testing/jest/jest-27-and-under/jest-runner.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/jest-runner.js delete mode 100644 build/testing/jest/jest-27-and-under/jest-runner.js.map delete mode 100644 build/testing/jest/jest-27-and-under/jest-screenshot.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/jest-screenshot.js delete mode 100644 build/testing/jest/jest-27-and-under/jest-screenshot.js.map delete mode 100644 build/testing/jest/jest-27-and-under/jest-serializer.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/jest-serializer.js delete mode 100644 build/testing/jest/jest-27-and-under/jest-serializer.js.map delete mode 100644 build/testing/jest/jest-27-and-under/jest-setup-test-framework.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/jest-setup-test-framework.js delete mode 100644 build/testing/jest/jest-27-and-under/jest-setup-test-framework.js.map delete mode 100644 build/testing/jest/jest-27-and-under/matchers/attributes.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/matchers/attributes.js delete mode 100644 build/testing/jest/jest-27-and-under/matchers/attributes.js.map delete mode 100644 build/testing/jest/jest-27-and-under/matchers/class-list.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/matchers/class-list.js delete mode 100644 build/testing/jest/jest-27-and-under/matchers/class-list.js.map delete mode 100644 build/testing/jest/jest-27-and-under/matchers/events.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/matchers/events.js delete mode 100644 build/testing/jest/jest-27-and-under/matchers/events.js.map delete mode 100644 build/testing/jest/jest-27-and-under/matchers/html.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/matchers/html.js delete mode 100644 build/testing/jest/jest-27-and-under/matchers/html.js.map delete mode 100644 build/testing/jest/jest-27-and-under/matchers/index.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/matchers/index.js delete mode 100644 build/testing/jest/jest-27-and-under/matchers/index.js.map delete mode 100644 build/testing/jest/jest-27-and-under/matchers/screenshot.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/matchers/screenshot.js delete mode 100644 build/testing/jest/jest-27-and-under/matchers/screenshot.js.map delete mode 100644 build/testing/jest/jest-27-and-under/matchers/text.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/matchers/text.js delete mode 100644 build/testing/jest/jest-27-and-under/matchers/text.js.map delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-config.spec.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-config.spec.js delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-config.spec.js.map delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-preprocessor.spec.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-preprocessor.spec.js delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-preprocessor.spec.js.map delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-runner.spec.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-runner.spec.js delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-runner.spec.js.map delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-serializer.spec.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-serializer.spec.js delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-serializer.spec.js.map delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-setup-test-framework.spec.d.ts delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-setup-test-framework.spec.js delete mode 100644 build/testing/jest/jest-27-and-under/test/jest-setup-test-framework.spec.js.map delete mode 100644 build/testing/jest/jest-28/jest-config.d.ts delete mode 100644 build/testing/jest/jest-28/jest-config.js delete mode 100644 build/testing/jest/jest-28/jest-config.js.map delete mode 100644 build/testing/jest/jest-28/jest-environment.d.ts delete mode 100644 build/testing/jest/jest-28/jest-environment.js delete mode 100644 build/testing/jest/jest-28/jest-environment.js.map delete mode 100644 build/testing/jest/jest-28/jest-facade.d.ts delete mode 100644 build/testing/jest/jest-28/jest-facade.js delete mode 100644 build/testing/jest/jest-28/jest-facade.js.map delete mode 100644 build/testing/jest/jest-28/jest-preprocessor.d.ts delete mode 100644 build/testing/jest/jest-28/jest-preprocessor.js delete mode 100644 build/testing/jest/jest-28/jest-preprocessor.js.map delete mode 100644 build/testing/jest/jest-28/jest-preset.d.ts delete mode 100644 build/testing/jest/jest-28/jest-preset.js delete mode 100644 build/testing/jest/jest-28/jest-preset.js.map delete mode 100644 build/testing/jest/jest-28/jest-runner.d.ts delete mode 100644 build/testing/jest/jest-28/jest-runner.js delete mode 100644 build/testing/jest/jest-28/jest-runner.js.map delete mode 100644 build/testing/jest/jest-28/jest-screenshot.d.ts delete mode 100644 build/testing/jest/jest-28/jest-screenshot.js delete mode 100644 build/testing/jest/jest-28/jest-screenshot.js.map delete mode 100644 build/testing/jest/jest-28/jest-serializer.d.ts delete mode 100644 build/testing/jest/jest-28/jest-serializer.js delete mode 100644 build/testing/jest/jest-28/jest-serializer.js.map delete mode 100644 build/testing/jest/jest-28/jest-setup-test-framework.d.ts delete mode 100644 build/testing/jest/jest-28/jest-setup-test-framework.js delete mode 100644 build/testing/jest/jest-28/jest-setup-test-framework.js.map delete mode 100644 build/testing/jest/jest-28/matchers/attributes.d.ts delete mode 100644 build/testing/jest/jest-28/matchers/attributes.js delete mode 100644 build/testing/jest/jest-28/matchers/attributes.js.map delete mode 100644 build/testing/jest/jest-28/matchers/class-list.d.ts delete mode 100644 build/testing/jest/jest-28/matchers/class-list.js delete mode 100644 build/testing/jest/jest-28/matchers/class-list.js.map delete mode 100644 build/testing/jest/jest-28/matchers/events.d.ts delete mode 100644 build/testing/jest/jest-28/matchers/events.js delete mode 100644 build/testing/jest/jest-28/matchers/events.js.map delete mode 100644 build/testing/jest/jest-28/matchers/html.d.ts delete mode 100644 build/testing/jest/jest-28/matchers/html.js delete mode 100644 build/testing/jest/jest-28/matchers/html.js.map delete mode 100644 build/testing/jest/jest-28/matchers/index.d.ts delete mode 100644 build/testing/jest/jest-28/matchers/index.js delete mode 100644 build/testing/jest/jest-28/matchers/index.js.map delete mode 100644 build/testing/jest/jest-28/matchers/screenshot.d.ts delete mode 100644 build/testing/jest/jest-28/matchers/screenshot.js delete mode 100644 build/testing/jest/jest-28/matchers/screenshot.js.map delete mode 100644 build/testing/jest/jest-28/matchers/text.d.ts delete mode 100644 build/testing/jest/jest-28/matchers/text.js delete mode 100644 build/testing/jest/jest-28/matchers/text.js.map delete mode 100644 build/testing/jest/jest-28/test/jest-config.spec.d.ts delete mode 100644 build/testing/jest/jest-28/test/jest-config.spec.js delete mode 100644 build/testing/jest/jest-28/test/jest-config.spec.js.map delete mode 100644 build/testing/jest/jest-28/test/jest-preprocessor.spec.d.ts delete mode 100644 build/testing/jest/jest-28/test/jest-preprocessor.spec.js delete mode 100644 build/testing/jest/jest-28/test/jest-preprocessor.spec.js.map delete mode 100644 build/testing/jest/jest-28/test/jest-runner.spec.d.ts delete mode 100644 build/testing/jest/jest-28/test/jest-runner.spec.js delete mode 100644 build/testing/jest/jest-28/test/jest-runner.spec.js.map delete mode 100644 build/testing/jest/jest-28/test/jest-serializer.spec.d.ts delete mode 100644 build/testing/jest/jest-28/test/jest-serializer.spec.js delete mode 100644 build/testing/jest/jest-28/test/jest-serializer.spec.js.map delete mode 100644 build/testing/jest/jest-28/test/jest-setup-test-framework.spec.d.ts delete mode 100644 build/testing/jest/jest-28/test/jest-setup-test-framework.spec.js delete mode 100644 build/testing/jest/jest-28/test/jest-setup-test-framework.spec.js.map delete mode 100644 build/testing/jest/jest-29/jest-config.d.ts delete mode 100644 build/testing/jest/jest-29/jest-config.js delete mode 100644 build/testing/jest/jest-29/jest-config.js.map delete mode 100644 build/testing/jest/jest-29/jest-environment.d.ts delete mode 100644 build/testing/jest/jest-29/jest-environment.js delete mode 100644 build/testing/jest/jest-29/jest-environment.js.map delete mode 100644 build/testing/jest/jest-29/jest-facade.d.ts delete mode 100644 build/testing/jest/jest-29/jest-facade.js delete mode 100644 build/testing/jest/jest-29/jest-facade.js.map delete mode 100644 build/testing/jest/jest-29/jest-preprocessor.d.ts delete mode 100644 build/testing/jest/jest-29/jest-preprocessor.js delete mode 100644 build/testing/jest/jest-29/jest-preprocessor.js.map delete mode 100644 build/testing/jest/jest-29/jest-preset.d.ts delete mode 100644 build/testing/jest/jest-29/jest-preset.js delete mode 100644 build/testing/jest/jest-29/jest-preset.js.map delete mode 100644 build/testing/jest/jest-29/jest-runner.d.ts delete mode 100644 build/testing/jest/jest-29/jest-runner.js delete mode 100644 build/testing/jest/jest-29/jest-runner.js.map delete mode 100644 build/testing/jest/jest-29/jest-screenshot.d.ts delete mode 100644 build/testing/jest/jest-29/jest-screenshot.js delete mode 100644 build/testing/jest/jest-29/jest-screenshot.js.map delete mode 100644 build/testing/jest/jest-29/jest-serializer.d.ts delete mode 100644 build/testing/jest/jest-29/jest-serializer.js delete mode 100644 build/testing/jest/jest-29/jest-serializer.js.map delete mode 100644 build/testing/jest/jest-29/jest-setup-test-framework.d.ts delete mode 100644 build/testing/jest/jest-29/jest-setup-test-framework.js delete mode 100644 build/testing/jest/jest-29/jest-setup-test-framework.js.map delete mode 100644 build/testing/jest/jest-29/matchers/attributes.d.ts delete mode 100644 build/testing/jest/jest-29/matchers/attributes.js delete mode 100644 build/testing/jest/jest-29/matchers/attributes.js.map delete mode 100644 build/testing/jest/jest-29/matchers/class-list.d.ts delete mode 100644 build/testing/jest/jest-29/matchers/class-list.js delete mode 100644 build/testing/jest/jest-29/matchers/class-list.js.map delete mode 100644 build/testing/jest/jest-29/matchers/events.d.ts delete mode 100644 build/testing/jest/jest-29/matchers/events.js delete mode 100644 build/testing/jest/jest-29/matchers/events.js.map delete mode 100644 build/testing/jest/jest-29/matchers/html.d.ts delete mode 100644 build/testing/jest/jest-29/matchers/html.js delete mode 100644 build/testing/jest/jest-29/matchers/html.js.map delete mode 100644 build/testing/jest/jest-29/matchers/index.d.ts delete mode 100644 build/testing/jest/jest-29/matchers/index.js delete mode 100644 build/testing/jest/jest-29/matchers/index.js.map delete mode 100644 build/testing/jest/jest-29/matchers/screenshot.d.ts delete mode 100644 build/testing/jest/jest-29/matchers/screenshot.js delete mode 100644 build/testing/jest/jest-29/matchers/screenshot.js.map delete mode 100644 build/testing/jest/jest-29/matchers/text.d.ts delete mode 100644 build/testing/jest/jest-29/matchers/text.js delete mode 100644 build/testing/jest/jest-29/matchers/text.js.map delete mode 100644 build/testing/jest/jest-29/test/jest-config.spec.d.ts delete mode 100644 build/testing/jest/jest-29/test/jest-config.spec.js delete mode 100644 build/testing/jest/jest-29/test/jest-config.spec.js.map delete mode 100644 build/testing/jest/jest-29/test/jest-preprocessor.spec.d.ts delete mode 100644 build/testing/jest/jest-29/test/jest-preprocessor.spec.js delete mode 100644 build/testing/jest/jest-29/test/jest-preprocessor.spec.js.map delete mode 100644 build/testing/jest/jest-29/test/jest-runner.spec.d.ts delete mode 100644 build/testing/jest/jest-29/test/jest-runner.spec.js delete mode 100644 build/testing/jest/jest-29/test/jest-runner.spec.js.map delete mode 100644 build/testing/jest/jest-29/test/jest-serializer.spec.d.ts delete mode 100644 build/testing/jest/jest-29/test/jest-serializer.spec.js delete mode 100644 build/testing/jest/jest-29/test/jest-serializer.spec.js.map delete mode 100644 build/testing/jest/jest-29/test/jest-setup-test-framework.spec.d.ts delete mode 100644 build/testing/jest/jest-29/test/jest-setup-test-framework.spec.js delete mode 100644 build/testing/jest/jest-29/test/jest-setup-test-framework.spec.js.map delete mode 100644 build/testing/jest/jest-apis.d.ts delete mode 100644 build/testing/jest/jest-apis.js delete mode 100644 build/testing/jest/jest-apis.js.map delete mode 100644 build/testing/jest/jest-facade.d.ts delete mode 100644 build/testing/jest/jest-facade.js delete mode 100644 build/testing/jest/jest-facade.js.map delete mode 100644 build/testing/jest/jest-stencil-connector.d.ts delete mode 100644 build/testing/jest/jest-stencil-connector.js delete mode 100644 build/testing/jest/jest-stencil-connector.js.map delete mode 100644 build/testing/jest/test/jest-stencil-connector.spec.d.ts delete mode 100644 build/testing/jest/test/jest-stencil-connector.spec.js delete mode 100644 build/testing/jest/test/jest-stencil-connector.spec.js.map delete mode 100644 build/testing/mock-fetch.d.ts delete mode 100644 build/testing/mock-fetch.js delete mode 100644 build/testing/mock-fetch.js.map delete mode 100644 build/testing/mocks.d.ts delete mode 100644 build/testing/mocks.js delete mode 100644 build/testing/mocks.js.map delete mode 100644 build/testing/platform/index.d.ts delete mode 100644 build/testing/platform/index.js delete mode 100644 build/testing/platform/index.js.map delete mode 100644 build/testing/platform/load-module.d.ts delete mode 100644 build/testing/platform/load-module.js delete mode 100644 build/testing/platform/load-module.js.map delete mode 100644 build/testing/platform/testing-build.d.ts delete mode 100644 build/testing/platform/testing-build.js delete mode 100644 build/testing/platform/testing-build.js.map delete mode 100644 build/testing/platform/testing-constants.d.ts delete mode 100644 build/testing/platform/testing-constants.js delete mode 100644 build/testing/platform/testing-constants.js.map delete mode 100644 build/testing/platform/testing-host-ref.d.ts delete mode 100644 build/testing/platform/testing-host-ref.js delete mode 100644 build/testing/platform/testing-host-ref.js.map delete mode 100644 build/testing/platform/testing-log.d.ts delete mode 100644 build/testing/platform/testing-log.js delete mode 100644 build/testing/platform/testing-log.js.map delete mode 100644 build/testing/platform/testing-platform.d.ts delete mode 100644 build/testing/platform/testing-platform.js delete mode 100644 build/testing/platform/testing-platform.js.map delete mode 100644 build/testing/platform/testing-task-queue.d.ts delete mode 100644 build/testing/platform/testing-task-queue.js delete mode 100644 build/testing/platform/testing-task-queue.js.map delete mode 100644 build/testing/platform/testing-window.d.ts delete mode 100644 build/testing/platform/testing-window.js delete mode 100644 build/testing/platform/testing-window.js.map delete mode 100644 build/testing/puppeteer/index.d.ts delete mode 100644 build/testing/puppeteer/index.js delete mode 100644 build/testing/puppeteer/index.js.map delete mode 100644 build/testing/puppeteer/puppeteer-browser.d.ts delete mode 100644 build/testing/puppeteer/puppeteer-browser.js delete mode 100644 build/testing/puppeteer/puppeteer-browser.js.map delete mode 100644 build/testing/puppeteer/puppeteer-declarations.d.ts delete mode 100644 build/testing/puppeteer/puppeteer-declarations.js delete mode 100644 build/testing/puppeteer/puppeteer-declarations.js.map delete mode 100644 build/testing/puppeteer/puppeteer-element.d.ts delete mode 100644 build/testing/puppeteer/puppeteer-element.js delete mode 100644 build/testing/puppeteer/puppeteer-element.js.map delete mode 100644 build/testing/puppeteer/puppeteer-emulate.d.ts delete mode 100644 build/testing/puppeteer/puppeteer-emulate.js delete mode 100644 build/testing/puppeteer/puppeteer-emulate.js.map delete mode 100644 build/testing/puppeteer/puppeteer-events.d.ts delete mode 100644 build/testing/puppeteer/puppeteer-events.js delete mode 100644 build/testing/puppeteer/puppeteer-events.js.map delete mode 100644 build/testing/puppeteer/puppeteer-page.d.ts delete mode 100644 build/testing/puppeteer/puppeteer-page.js delete mode 100644 build/testing/puppeteer/puppeteer-page.js.map delete mode 100644 build/testing/puppeteer/puppeteer-screenshot.d.ts delete mode 100644 build/testing/puppeteer/puppeteer-screenshot.js delete mode 100644 build/testing/puppeteer/puppeteer-screenshot.js.map delete mode 100644 build/testing/reset-build-conditionals.d.ts delete mode 100644 build/testing/reset-build-conditionals.js delete mode 100644 build/testing/reset-build-conditionals.js.map delete mode 100644 build/testing/spec-page.d.ts delete mode 100644 build/testing/spec-page.js delete mode 100644 build/testing/spec-page.js.map delete mode 100644 build/testing/test-transpile.d.ts delete mode 100644 build/testing/test-transpile.js delete mode 100644 build/testing/test-transpile.js.map delete mode 100644 build/testing/test/testing-utils.spec.d.ts delete mode 100644 build/testing/test/testing-utils.spec.js delete mode 100644 build/testing/test/testing-utils.spec.js.map delete mode 100644 build/testing/testing-logger.d.ts delete mode 100644 build/testing/testing-logger.js delete mode 100644 build/testing/testing-logger.js.map delete mode 100644 build/testing/testing-sys.d.ts delete mode 100644 build/testing/testing-sys.js delete mode 100644 build/testing/testing-sys.js.map delete mode 100644 build/testing/testing-utils.d.ts delete mode 100644 build/testing/testing-utils.js delete mode 100644 build/testing/testing-utils.js.map delete mode 100644 build/testing/testing.d.ts delete mode 100644 build/testing/testing.js delete mode 100644 build/testing/testing.js.map delete mode 100644 build/utils/byte-size.d.ts delete mode 100644 build/utils/byte-size.js delete mode 100644 build/utils/byte-size.js.map delete mode 100644 build/utils/constants.d.ts delete mode 100644 build/utils/constants.js delete mode 100644 build/utils/constants.js.map delete mode 100644 build/utils/format-component-runtime-meta.d.ts delete mode 100644 build/utils/format-component-runtime-meta.js delete mode 100644 build/utils/format-component-runtime-meta.js.map delete mode 100644 build/utils/helpers.d.ts delete mode 100644 build/utils/helpers.js delete mode 100644 build/utils/helpers.js.map delete mode 100644 build/utils/index.d.ts delete mode 100644 build/utils/index.js delete mode 100644 build/utils/index.js.map delete mode 100644 build/utils/is-glob.d.ts delete mode 100644 build/utils/is-glob.js delete mode 100644 build/utils/is-glob.js.map delete mode 100644 build/utils/is-root-path.d.ts delete mode 100644 build/utils/is-root-path.js delete mode 100644 build/utils/is-root-path.js.map delete mode 100644 build/utils/logger/logger-rollup.d.ts delete mode 100644 build/utils/logger/logger-rollup.js delete mode 100644 build/utils/logger/logger-rollup.js.map delete mode 100644 build/utils/logger/logger-typescript.d.ts delete mode 100644 build/utils/logger/logger-typescript.js delete mode 100644 build/utils/logger/logger-typescript.js.map delete mode 100644 build/utils/logger/logger-utils.d.ts delete mode 100644 build/utils/logger/logger-utils.js delete mode 100644 build/utils/logger/logger-utils.js.map delete mode 100644 build/utils/message-utils.d.ts delete mode 100644 build/utils/message-utils.js delete mode 100644 build/utils/message-utils.js.map delete mode 100644 build/utils/output-target.d.ts delete mode 100644 build/utils/output-target.js delete mode 100644 build/utils/output-target.js.map delete mode 100644 build/utils/path.d.ts delete mode 100644 build/utils/path.js delete mode 100644 build/utils/path.js.map delete mode 100644 build/utils/query-nonce-meta-tag-content.d.ts delete mode 100644 build/utils/query-nonce-meta-tag-content.js delete mode 100644 build/utils/query-nonce-meta-tag-content.js.map delete mode 100644 build/utils/regular-expression.d.ts delete mode 100644 build/utils/regular-expression.js delete mode 100644 build/utils/regular-expression.js.map delete mode 100644 build/utils/result.d.ts delete mode 100644 build/utils/result.js delete mode 100644 build/utils/result.js.map delete mode 100644 build/utils/shadow-css.d.ts delete mode 100644 build/utils/shadow-css.js delete mode 100644 build/utils/shadow-css.js.map delete mode 100644 build/utils/sourcemaps.d.ts delete mode 100644 build/utils/sourcemaps.js delete mode 100644 build/utils/sourcemaps.js.map delete mode 100644 build/utils/test/helpers.spec.d.ts delete mode 100644 build/utils/test/helpers.spec.js delete mode 100644 build/utils/test/helpers.spec.js.map delete mode 100644 build/utils/test/is-root-path.spec.d.ts delete mode 100644 build/utils/test/is-root-path.spec.js delete mode 100644 build/utils/test/is-root-path.spec.js.map delete mode 100644 build/utils/test/message-utils.spec.d.ts delete mode 100644 build/utils/test/message-utils.spec.js delete mode 100644 build/utils/test/message-utils.spec.js.map delete mode 100644 build/utils/test/output-target.spec.d.ts delete mode 100644 build/utils/test/output-target.spec.js delete mode 100644 build/utils/test/output-target.spec.js.map delete mode 100644 build/utils/test/path.spec.d.ts delete mode 100644 build/utils/test/path.spec.js delete mode 100644 build/utils/test/path.spec.js.map delete mode 100644 build/utils/test/query-nonce-meta-tag-content.spec.d.ts delete mode 100644 build/utils/test/query-nonce-meta-tag-content.spec.js delete mode 100644 build/utils/test/query-nonce-meta-tag-content.spec.js.map delete mode 100644 build/utils/test/regular-expression.spec.d.ts delete mode 100644 build/utils/test/regular-expression.spec.js delete mode 100644 build/utils/test/regular-expression.spec.js.map delete mode 100644 build/utils/test/result.spec.d.ts delete mode 100644 build/utils/test/result.spec.js delete mode 100644 build/utils/test/result.spec.js.map delete mode 100644 build/utils/test/scope-css.spec.d.ts delete mode 100644 build/utils/test/scope-css.spec.js delete mode 100644 build/utils/test/scope-css.spec.js.map delete mode 100644 build/utils/test/sourcemaps.spec.d.ts delete mode 100644 build/utils/test/sourcemaps.spec.js delete mode 100644 build/utils/test/sourcemaps.spec.js.map delete mode 100644 build/utils/test/url-paths.spec.d.ts delete mode 100644 build/utils/test/url-paths.spec.js delete mode 100644 build/utils/test/url-paths.spec.js.map delete mode 100644 build/utils/test/util.spec.d.ts delete mode 100644 build/utils/test/util.spec.js delete mode 100644 build/utils/test/util.spec.js.map delete mode 100644 build/utils/test/validation.spec.d.ts delete mode 100644 build/utils/test/validation.spec.js delete mode 100644 build/utils/test/validation.spec.js.map delete mode 100644 build/utils/url-paths.d.ts delete mode 100644 build/utils/url-paths.js delete mode 100644 build/utils/url-paths.js.map delete mode 100644 build/utils/util.d.ts delete mode 100644 build/utils/util.js delete mode 100644 build/utils/util.js.map delete mode 100644 build/utils/validation.d.ts delete mode 100644 build/utils/validation.js delete mode 100644 build/utils/validation.js.map delete mode 100644 build/version.d.ts delete mode 100644 build/version.js delete mode 100644 build/version.js.map diff --git a/.gitignore b/.gitignore index 14b22c1902b..e902c6af139 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,7 @@ log.txt node_modules/ coverage/ -# /build/ +/build/ /scripts/build/ dist/ diff --git a/build/app-data/index.d.ts b/build/app-data/index.d.ts deleted file mode 100644 index 0f4b0ce80a3..00000000000 --- a/build/app-data/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { BuildConditionals } from '@stencil/core/internal'; -/** - * A collection of default build flags for a Stencil project. - * - * This collection can be found throughout the Stencil codebase, often imported from the `@app-data` module like so: - * ```ts - * import { BUILD } from '@app-data'; - * ``` - * and is used to determine if a portion of the output of a Stencil _project_'s compilation step can be eliminated. - * - * e.g. When `BUILD.allRenderFn` evaluates to `false`, the compiler will eliminate conditional statements like: - * ```ts - * if (BUILD.allRenderFn) { - * // some code that will be eliminated if BUILD.allRenderFn is false - * } - * ``` - * - * `@app-data`, the module that `BUILD` is imported from, is an alias for the `@stencil/core/internal/app-data`, and is - * partially referenced by {@link STENCIL_APP_DATA_ID}. The `src/compiler/bundle/app-data-plugin.ts` references - * `STENCIL_APP_DATA_ID` uses it to replace these defaults with {@link BuildConditionals} that are derived from a - * Stencil project's contents (i.e. metadata from the components). This replacement happens at a Stencil project's - * compile time. Such code can be found at `src/compiler/app-core/app-data.ts`. - */ -export declare const BUILD: BuildConditionals; -export declare const Env: {}; -export declare const NAMESPACE: string; diff --git a/build/app-data/index.js b/build/app-data/index.js deleted file mode 100644 index 396a40e7a18..00000000000 --- a/build/app-data/index.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * A collection of default build flags for a Stencil project. - * - * This collection can be found throughout the Stencil codebase, often imported from the `@app-data` module like so: - * ```ts - * import { BUILD } from '@app-data'; - * ``` - * and is used to determine if a portion of the output of a Stencil _project_'s compilation step can be eliminated. - * - * e.g. When `BUILD.allRenderFn` evaluates to `false`, the compiler will eliminate conditional statements like: - * ```ts - * if (BUILD.allRenderFn) { - * // some code that will be eliminated if BUILD.allRenderFn is false - * } - * ``` - * - * `@app-data`, the module that `BUILD` is imported from, is an alias for the `@stencil/core/internal/app-data`, and is - * partially referenced by {@link STENCIL_APP_DATA_ID}. The `src/compiler/bundle/app-data-plugin.ts` references - * `STENCIL_APP_DATA_ID` uses it to replace these defaults with {@link BuildConditionals} that are derived from a - * Stencil project's contents (i.e. metadata from the components). This replacement happens at a Stencil project's - * compile time. Such code can be found at `src/compiler/app-core/app-data.ts`. - */ -export const BUILD = { - allRenderFn: false, - cmpDidLoad: true, - cmpDidUnload: false, - cmpDidUpdate: true, - cmpDidRender: true, - cmpWillLoad: true, - cmpWillUpdate: true, - cmpWillRender: true, - connectedCallback: true, - disconnectedCallback: true, - element: true, - event: true, - hasRenderFn: true, - lifecycle: true, - hostListener: true, - hostListenerTargetWindow: true, - hostListenerTargetDocument: true, - hostListenerTargetBody: true, - hostListenerTargetParent: false, - hostListenerTarget: true, - member: true, - method: true, - mode: true, - observeAttribute: true, - prop: true, - propMutable: true, - reflect: true, - scoped: true, - shadowDom: true, - slot: true, - cssAnnotations: true, - state: true, - style: true, - formAssociated: false, - svg: true, - updatable: true, - vdomAttribute: true, - vdomXlink: true, - vdomClass: true, - vdomFunctional: true, - vdomKey: true, - vdomListener: true, - vdomRef: true, - vdomPropOrAttr: true, - vdomRender: true, - vdomStyle: true, - vdomText: true, - watchCallback: true, - taskQueue: true, - hotModuleReplacement: false, - isDebug: false, - isDev: false, - isTesting: false, - hydrateServerSide: false, - hydrateClientSide: false, - lifecycleDOMEvents: false, - lazyLoad: false, - profile: false, - slotRelocation: true, - // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior - appendChildSlotFix: false, - // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior - cloneNodeFix: false, - hydratedAttribute: false, - hydratedClass: true, - scriptDataOpts: false, - // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior - scopedSlotTextContentFix: false, - // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field - shadowDomShim: false, - // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior - slotChildNodesFix: false, - invisiblePrehydration: true, - propBoolean: true, - propNumber: true, - propString: true, - constructableCSS: true, - cmpShouldUpdate: true, - devTools: false, - shadowDelegatesFocus: true, - initializeNextTick: false, - asyncLoading: false, - asyncQueue: false, - transformTagName: false, - attachStyles: true, - // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior - experimentalSlotFixes: false, -}; -export const Env = {}; -export const NAMESPACE = /* default */ 'app'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/app-data/index.js.map b/build/app-data/index.js.map deleted file mode 100644 index c07d36d8570..00000000000 --- a/build/app-data/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app-data/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,KAAK,GAAsB;IACtC,WAAW,EAAE,KAAK;IAClB,UAAU,EAAE,IAAI;IAChB,YAAY,EAAE,KAAK;IACnB,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;IAClB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,IAAI;IACnB,iBAAiB,EAAE,IAAI;IACvB,oBAAoB,EAAE,IAAI;IAC1B,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,IAAI;IACf,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,0BAA0B,EAAE,IAAI;IACh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Aa,EAAE,KAAK;IACpB,6FAA6F;IAC7F,iBAAiB,EAAE,KAAK;IACxB,qBAAqB,EAAE,IAAI;IAC3B,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,gBAAgB,EAAE,IAAI;IACtB,eAAe,EAAE,IAAI;IACrB,QAAQ,EAAE,KAAK;IACf,oBAAoB,EAAE,IAAI;IAC1B,kBAAkB,EAAE,KAAK;IACzB,YAAY,EAAE,KAAK;IACnB,UAAU,EAAE,KAAK;IACjB,gBAAgB,EAAE,KAAK;IACvB,YAAY,EAAE,IAAI;IAClB,6FAA6F;IAC7F,qBAAqB,EAAE,KAAK;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;AAEtB,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,KAAe,CAAC"} \ No newline at end of file diff --git a/build/app-globals/index.d.ts b/build/app-globals/index.d.ts deleted file mode 100644 index 02616c1eb9b..00000000000 --- a/build/app-globals/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const globalScripts: () => void; diff --git a/build/app-globals/index.js b/build/app-globals/index.js deleted file mode 100644 index 902ff3e11f2..00000000000 --- a/build/app-globals/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export const globalScripts = /* default */ () => { - /**/ -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/app-globals/index.js.map b/build/app-globals/index.js.map deleted file mode 100644 index 5cd9ebf9c88..00000000000 --- a/build/app-globals/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app-globals/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,GAAG,EAAE;IAC9C,IAAI;AACN,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/check-version.d.ts b/build/cli/check-version.d.ts deleted file mode 100644 index 30867520210..00000000000 --- a/build/cli/check-version.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { ValidatedConfig } from '../declarations'; -/** - * Retrieve a reference to the active `CompilerSystem`'s `checkVersion` function - * @param config the Stencil configuration associated with the currently compiled project - * @param currentVersion the Stencil compiler's version string - * @returns a reference to `checkVersion`, or `null` if one does not exist on the current `CompilerSystem` - */ -export declare const startCheckVersion: (config: ValidatedConfig, currentVersion: string) => Promise<(() => void) | null>; -/** - * Print the results of running the provided `versionChecker`. - * - * Does not print if no `versionChecker` is provided. - * - * @param versionChecker the function to invoke. - */ -export declare const printCheckVersionResults: (versionChecker: Promise<(() => void) | null>) => Promise; diff --git a/build/cli/check-version.js b/build/cli/check-version.js deleted file mode 100644 index 1fdbb80749f..00000000000 --- a/build/cli/check-version.js +++ /dev/null @@ -1,29 +0,0 @@ -import { isFunction } from '@utils'; -/** - * Retrieve a reference to the active `CompilerSystem`'s `checkVersion` function - * @param config the Stencil configuration associated with the currently compiled project - * @param currentVersion the Stencil compiler's version string - * @returns a reference to `checkVersion`, or `null` if one does not exist on the current `CompilerSystem` - */ -export const startCheckVersion = async (config, currentVersion) => { - if (config.devMode && !config.flags.ci && !currentVersion.includes('-dev.') && isFunction(config.sys.checkVersion)) { - return config.sys.checkVersion(config.logger, currentVersion); - } - return null; -}; -/** - * Print the results of running the provided `versionChecker`. - * - * Does not print if no `versionChecker` is provided. - * - * @param versionChecker the function to invoke. - */ -export const printCheckVersionResults = async (versionChecker) => { - if (versionChecker) { - const checkVersionResults = await versionChecker; - if (isFunction(checkVersionResults)) { - checkVersionResults(); - } - } -}; -//# sourceMappingURL=check-version.js.map \ No newline at end of file diff --git a/build/cli/check-version.js.map b/build/cli/check-version.js.map deleted file mode 100644 index c1cf8e26791..00000000000 --- a/build/cli/check-version.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"check-version.js","sourceRoot":"","sources":["../../src/cli/check-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAIpC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EACpC,MAAuB,EACvB,cAAsB,EACQ,EAAE;IAChC,IAAI,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;QAClH,OAAO,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;KAC/D;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,EAAE,cAA4C,EAAiB,EAAE;IAC5G,IAAI,cAAc,EAAE;QAClB,MAAM,mBAAmB,GAAG,MAAM,cAAc,CAAC;QACjD,IAAI,UAAU,CAAC,mBAAmB,CAAC,EAAE;YACnC,mBAAmB,EAAE,CAAC;SACvB;KACF;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/config-flags.d.ts b/build/cli/config-flags.d.ts deleted file mode 100644 index 141761c6b2c..00000000000 --- a/build/cli/config-flags.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -import type { LogLevel, TaskCommand } from '@stencil/core/declarations'; -/** - * All the Boolean options supported by the Stencil CLI - */ -export declare const BOOLEAN_CLI_FLAGS: readonly ["build", "cache", "checkVersion", "ci", "compare", "debug", "dev", "devtools", "docs", "e2e", "es5", "esm", "help", "log", "open", "prerender", "prerenderExternal", "prod", "profile", "serviceWorker", "screenshot", "serve", "skipNodeCheck", "spec", "ssr", "stats", "updateScreenshot", "verbose", "version", "watch", "all", "automock", "bail", "changedFilesWithAncestor", "clearCache", "clearMocks", "collectCoverage", "color", "colors", "coverage", "detectLeaks", "detectOpenHandles", "errorOnDeprecated", "expand", "findRelatedTests", "forceExit", "init", "injectGlobals", "json", "lastCommit", "listTests", "logHeapUsage", "noStackTrace", "notify", "onlyChanged", "onlyFailures", "passWithNoTests", "resetMocks", "resetModules", "restoreMocks", "runInBand", "runTestsByPath", "showConfig", "silent", "skipFilter", "testLocationInResults", "updateSnapshot", "useStderr", "watchAll", "watchman"]; -/** - * All the Number options supported by the Stencil CLI - */ -export declare const NUMBER_CLI_FLAGS: readonly ["port", "maxConcurrency", "testTimeout"]; -/** - * All the String options supported by the Stencil CLI - */ -export declare const STRING_CLI_FLAGS: readonly ["address", "config", "docsApi", "docsJson", "emulate", "root", "screenshotConnector", "cacheDirectory", "changedSince", "collectCoverageFrom", "coverageDirectory", "coverageThreshold", "env", "filter", "globalSetup", "globalTeardown", "globals", "haste", "moduleNameMapper", "notifyMode", "outputFile", "preset", "prettierPath", "resolver", "rootDir", "runner", "testEnvironment", "testEnvironmentOptions", "testFailureExitCode", "testNamePattern", "testResultsProcessor", "testRunner", "testSequencer", "testURL", "timers", "transform"]; -export declare const STRING_ARRAY_CLI_FLAGS: readonly ["collectCoverageOnlyFrom", "coveragePathIgnorePatterns", "coverageReporters", "moduleDirectories", "moduleFileExtensions", "modulePathIgnorePatterns", "modulePaths", "projects", "reporters", "roots", "selectProjects", "setupFiles", "setupFilesAfterEnv", "snapshotSerializers", "testMatch", "testPathIgnorePatterns", "testPathPattern", "testRegex", "transformIgnorePatterns", "unmockedModulePathPatterns", "watchPathIgnorePatterns"]; -/** - * All the CLI arguments which may have string or number values - * - * `maxWorkers` is an argument which is used both by Stencil _and_ by Jest, - * which means that we need to support parsing both string and number values. - */ -export declare const STRING_NUMBER_CLI_FLAGS: readonly ["maxWorkers"]; -/** - * All the CLI arguments which may have boolean or string values. - */ -export declare const BOOLEAN_STRING_CLI_FLAGS: readonly ["headless"]; -/** - * All the LogLevel-type options supported by the Stencil CLI - * - * This is a bit silly since there's only one such argument atm, - * but this approach lets us make sure that we're handling all - * our arguments in a type-safe way. - */ -export declare const LOG_LEVEL_CLI_FLAGS: readonly ["logLevel"]; -/** - * A type which gives the members of a `ReadonlyArray` as - * an enum-like type which can be used for e.g. keys in a `Record` - * (as in the `AliasMap` type below) - */ -type ArrayValuesAsUnion> = T[number]; -export type BooleanCLIFlag = ArrayValuesAsUnion; -export type StringCLIFlag = ArrayValuesAsUnion; -export type StringArrayCLIFlag = ArrayValuesAsUnion; -export type NumberCLIFlag = ArrayValuesAsUnion; -export type StringNumberCLIFlag = ArrayValuesAsUnion; -export type BooleanStringCLIFlag = ArrayValuesAsUnion; -export type LogCLIFlag = ArrayValuesAsUnion; -export type KnownCLIFlag = BooleanCLIFlag | StringCLIFlag | StringArrayCLIFlag | NumberCLIFlag | StringNumberCLIFlag | BooleanStringCLIFlag | LogCLIFlag; -type AliasMap = Partial>; -/** - * For a small subset of CLI options we support a short alias e.g. `'h'` for `'help'` - */ -export declare const CLI_FLAG_ALIASES: AliasMap; -/** - * A regular expression which can be used to match a CLI flag for one of our - * short aliases. - */ -export declare const CLI_FLAG_REGEX: RegExp; -/** - * Given two types `K` and `T` where `K` extends `ReadonlyArray`, - * construct a type which maps the strings in `K` as keys to values of type `T`. - * - * Because we use types derived this way to construct an interface (`ConfigFlags`) - * for which we want optional keys, we make all the properties optional (w/ `'?'`) - * and possibly null. - */ -type ObjectFromKeys, T> = { - [key in K[number]]?: T | null; -}; -/** - * Type containing the possible Boolean configuration flags, to be included - * in ConfigFlags, below - */ -type BooleanConfigFlags = ObjectFromKeys; -/** - * Type containing the possible String configuration flags, to be included - * in ConfigFlags, below - */ -type StringConfigFlags = ObjectFromKeys; -/** - * Type containing the possible String Array configuration flags. This is - * one of the 'constituent types' for `ConfigFlags`. - */ -type StringArrayConfigFlags = ObjectFromKeys; -/** - * Type containing the possible numeric configuration flags, to be included - * in ConfigFlags, below - */ -type NumberConfigFlags = ObjectFromKeys; -/** - * Type containing the configuration flags which may be set to either string - * or number values. - */ -type StringNumberConfigFlags = ObjectFromKeys; -/** - * Type containing the configuration flags which may be set to either string - * or boolean values. - */ -type BooleanStringConfigFlags = ObjectFromKeys; -/** - * Type containing the possible LogLevel configuration flags, to be included - * in ConfigFlags, below - */ -type LogLevelFlags = ObjectFromKeys; -/** - * The configuration flags which can be set by the user on the command line. - * This interface captures both known arguments (which are enumerated and then - * parsed according to their types) and unknown arguments which the user may - * pass at the CLI. - * - * Note that this interface is constructed by extending `BooleanConfigFlags`, - * `StringConfigFlags`, etc. These types are in turn constructed from types - * extending `ReadonlyArray` which we declare in another module. This - * allows us to record our known CLI arguments in one place, using a - * `ReadonlyArray` to get both a type-level representation of what CLI - * options we support and a runtime list of strings which can be used to match - * on actual flags passed by the user. - */ -export interface ConfigFlags extends BooleanConfigFlags, StringConfigFlags, StringArrayConfigFlags, NumberConfigFlags, StringNumberConfigFlags, BooleanStringConfigFlags, LogLevelFlags { - task: TaskCommand | null; - args: string[]; - knownArgs: string[]; - unknownArgs: string[]; -} -/** - * Helper function for initializing a `ConfigFlags` object. Provide any overrides - * for default values and off you go! - * - * @param init an object with any overrides for default values - * @returns a complete CLI flag object - */ -export declare const createConfigFlags: (init?: Partial) => ConfigFlags; -export {}; diff --git a/build/cli/config-flags.js b/build/cli/config-flags.js deleted file mode 100644 index 9365a05b49e..00000000000 --- a/build/cli/config-flags.js +++ /dev/null @@ -1,229 +0,0 @@ -/** - * All the Boolean options supported by the Stencil CLI - */ -export const BOOLEAN_CLI_FLAGS = [ - 'build', - 'cache', - 'checkVersion', - 'ci', - 'compare', - 'debug', - 'dev', - 'devtools', - 'docs', - 'e2e', - 'es5', - 'esm', - 'help', - 'log', - 'open', - 'prerender', - 'prerenderExternal', - 'prod', - 'profile', - 'serviceWorker', - 'screenshot', - 'serve', - 'skipNodeCheck', - 'spec', - 'ssr', - 'stats', - 'updateScreenshot', - 'verbose', - 'version', - 'watch', - // JEST CLI OPTIONS - 'all', - 'automock', - 'bail', - // 'cache', Stencil already supports this argument - 'changedFilesWithAncestor', - // 'ci', Stencil already supports this argument - 'clearCache', - 'clearMocks', - 'collectCoverage', - 'color', - 'colors', - 'coverage', - // 'debug', Stencil already supports this argument - 'detectLeaks', - 'detectOpenHandles', - 'errorOnDeprecated', - 'expand', - 'findRelatedTests', - 'forceExit', - 'init', - 'injectGlobals', - 'json', - 'lastCommit', - 'listTests', - 'logHeapUsage', - 'noStackTrace', - 'notify', - 'onlyChanged', - 'onlyFailures', - 'passWithNoTests', - 'resetMocks', - 'resetModules', - 'restoreMocks', - 'runInBand', - 'runTestsByPath', - 'showConfig', - 'silent', - 'skipFilter', - 'testLocationInResults', - 'updateSnapshot', - 'useStderr', - // 'verbose', Stencil already supports this argument - // 'version', Stencil already supports this argument - // 'watch', Stencil already supports this argument - 'watchAll', - 'watchman', -]; -/** - * All the Number options supported by the Stencil CLI - */ -export const NUMBER_CLI_FLAGS = [ - 'port', - // JEST CLI ARGS - 'maxConcurrency', - 'testTimeout', -]; -/** - * All the String options supported by the Stencil CLI - */ -export const STRING_CLI_FLAGS = [ - 'address', - 'config', - 'docsApi', - 'docsJson', - 'emulate', - 'root', - 'screenshotConnector', - // JEST CLI ARGS - 'cacheDirectory', - 'changedSince', - 'collectCoverageFrom', - // 'config', Stencil already supports this argument - 'coverageDirectory', - 'coverageThreshold', - 'env', - 'filter', - 'globalSetup', - 'globalTeardown', - 'globals', - 'haste', - 'moduleNameMapper', - 'notifyMode', - 'outputFile', - 'preset', - 'prettierPath', - 'resolver', - 'rootDir', - 'runner', - 'testEnvironment', - 'testEnvironmentOptions', - 'testFailureExitCode', - 'testNamePattern', - 'testResultsProcessor', - 'testRunner', - 'testSequencer', - 'testURL', - 'timers', - 'transform', -]; -export const STRING_ARRAY_CLI_FLAGS = [ - 'collectCoverageOnlyFrom', - 'coveragePathIgnorePatterns', - 'coverageReporters', - 'moduleDirectories', - 'moduleFileExtensions', - 'modulePathIgnorePatterns', - 'modulePaths', - 'projects', - 'reporters', - 'roots', - 'selectProjects', - 'setupFiles', - 'setupFilesAfterEnv', - 'snapshotSerializers', - 'testMatch', - 'testPathIgnorePatterns', - 'testPathPattern', - 'testRegex', - 'transformIgnorePatterns', - 'unmockedModulePathPatterns', - 'watchPathIgnorePatterns', -]; -/** - * All the CLI arguments which may have string or number values - * - * `maxWorkers` is an argument which is used both by Stencil _and_ by Jest, - * which means that we need to support parsing both string and number values. - */ -export const STRING_NUMBER_CLI_FLAGS = ['maxWorkers']; -/** - * All the CLI arguments which may have boolean or string values. - */ -export const BOOLEAN_STRING_CLI_FLAGS = [ - /** - * `headless` is an argument passed through to Puppeteer (which is passed to Chrome) for end-to-end testing. - * Prior to Chrome v112, `headless` was treated like a boolean flag. Starting with Chrome v112, 'new' is an accepted - * option to support Chrome's new headless mode. In order to support this option in Stencil, both the boolean and - * string versions of the flag must be accepted. - * - * {@see https://developer.chrome.com/articles/new-headless/} - */ - 'headless', -]; -/** - * All the LogLevel-type options supported by the Stencil CLI - * - * This is a bit silly since there's only one such argument atm, - * but this approach lets us make sure that we're handling all - * our arguments in a type-safe way. - */ -export const LOG_LEVEL_CLI_FLAGS = ['logLevel']; -/** - * For a small subset of CLI options we support a short alias e.g. `'h'` for `'help'` - */ -export const CLI_FLAG_ALIASES = { - c: 'config', - h: 'help', - p: 'port', - v: 'version', - // JEST SPECIFIC CLI FLAGS - // these are defined in - // https://github.com/facebook/jest/blob/4156f86/packages/jest-cli/src/args.ts - b: 'bail', - e: 'expand', - f: 'onlyFailures', - i: 'runInBand', - o: 'onlyChanged', - t: 'testNamePattern', - u: 'updateSnapshot', - w: 'maxWorkers', -}; -/** - * A regular expression which can be used to match a CLI flag for one of our - * short aliases. - */ -export const CLI_FLAG_REGEX = new RegExp(`^-[chpvbewofitu]{1}$`); -/** - * Helper function for initializing a `ConfigFlags` object. Provide any overrides - * for default values and off you go! - * - * @param init an object with any overrides for default values - * @returns a complete CLI flag object - */ -export const createConfigFlags = (init = {}) => { - const flags = { - task: null, - args: [], - knownArgs: [], - unknownArgs: [], - ...init, - }; - return flags; -}; -//# sourceMappingURL=config-flags.js.map \ No newline at end of file diff --git a/build/cli/config-flags.js.map b/build/cli/config-flags.js.map deleted file mode 100644 index 3c9b3739e6d..00000000000 --- a/build/cli/config-flags.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config-flags.js","sourceRoot":"","sources":["../../src/cli/config-flags.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO;IACP,OAAO;IACP,cAAc;IACd,IAAI;IACJ,SAAS;IACT,OAAO;IACP,KAAK;IACL,UAAU;IACV,MAAM;IACN,KAAK;IACL,KAAK;IACL,KAAK;IACL,MAAM;IACN,KAAK;IACL,MAAM;IACN,WAAW;IACX,mBAAmB;IACnB,MAAM;IACN,SAAS;IACT,eAAe;IACf,YAAY;IACZ,OAAO;IACP,eAAe;IACf,MAAM;IACN,KAAK;IACL,OAAO;IACP,kBAAkB;IAClB,SAAS;IACT,SAAS;IACT,OAAO;IAEP,mBAAmB;IACnB,KAAK;IACL,UAAU;IACV,MAAM;IACN,kDAAkD;IAClD,0BAA0B;IAC1B,+CAA+C;IAC/C,YAAY;IACZ,YAAY;IACZ,iBAAiB;IACjB,OAAO;IACP,QAAQ;IACR,UAAU;IACV,kDAAkD;IAClD,aAAa;IACb,mBAAmB;IACnB,mBAAmB;IACnB,QAAQ;IACR,kBAAkB;IAClB,WAAW;IACX,MAAM;IACN,eAAe;IACf,MAAM;IACN,YAAY;IACZ,WAAW;IACX,cAAc;IACd,cAAc;IACd,QAAQ;IACR,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,YAAY;IACZ,cAAc;IACd,cAAc;IACd,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,uBAAuB;IACvB,gBAAgB;IAChB,WAAW;IACX,oDAAoD;IACpD,oDAAoD;IACpD,kDAAkD;IAClD,UAAU;IACV,UAAU;CACF,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM;IACN,gBAAgB;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;IACX,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,SAAS;IAEZ,0BAA0B;IAC1B,uBAAuB;IACvB,8EAA8E;IAC9E,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,cAAc;IACjB,CAAC,EAAE,WAAW;IACd,CAAC,EAAE,aAAa;IAChB,CAAC,EAAE,iBAAiB;IACpB,CAAC,EAAE,gBAAgB;IACnB,CAAC,EAAE,YAAY;CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAoFjE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAA6B,EAAE,EAAe,EAAE;IAChF,MAAM,KAAK,GAAgB;QACzB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,EAAE;QACR,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,EAAE;QACf,GAAG,IAAI;KACR,CAAC;IAEF,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/find-config.d.ts b/build/cli/find-config.d.ts deleted file mode 100644 index a9ee4957889..00000000000 --- a/build/cli/find-config.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { result } from '@utils'; -import type { CompilerSystem, Diagnostic } from '../declarations'; -/** - * An object containing the {@link CompilerSystem} used to find the configuration file, as well as the location on disk - * to search for a Stencil configuration - */ -export type FindConfigOptions = { - sys: CompilerSystem; - configPath: string; -}; -/** - * The results of attempting to find a Stencil configuration file on disk - */ -export type FindConfigResults = { - configPath: string; - rootDir: string; -}; -/** - * Attempt to find a Stencil configuration file on the file system - * @param opts the options needed to find the configuration file - * @returns the results of attempting to find a configuration file on disk - */ -export declare const findConfig: (opts: FindConfigOptions) => Promise>; diff --git a/build/cli/find-config.js b/build/cli/find-config.js deleted file mode 100644 index 2f76b43aa4e..00000000000 --- a/build/cli/find-config.js +++ /dev/null @@ -1,58 +0,0 @@ -import { buildError, isString, normalizePath, result } from '@utils'; -/** - * Attempt to find a Stencil configuration file on the file system - * @param opts the options needed to find the configuration file - * @returns the results of attempting to find a configuration file on disk - */ -export const findConfig = async (opts) => { - const sys = opts.sys; - const cwd = sys.getCurrentDirectory(); - const rootDir = normalizePath(cwd); - let configPath = opts.configPath; - if (isString(configPath)) { - if (!sys.platformPath.isAbsolute(configPath)) { - // passed in a custom stencil config location, - // but it's relative, so prefix the cwd - configPath = normalizePath(sys.platformPath.join(cwd, configPath)); - } - else { - // config path already an absolute path, we're good here - configPath = normalizePath(opts.configPath); - } - } - else { - // nothing was passed in, use the current working directory - configPath = rootDir; - } - const results = { - configPath, - rootDir: normalizePath(cwd), - }; - const stat = await sys.stat(configPath); - if (stat.error) { - const diagnostics = []; - const diagnostic = buildError(diagnostics); - diagnostic.absFilePath = configPath; - diagnostic.header = `Invalid config path`; - diagnostic.messageText = `Config path "${configPath}" not found`; - return result.err(diagnostics); - } - if (stat.isFile) { - results.configPath = configPath; - results.rootDir = sys.platformPath.dirname(configPath); - } - else if (stat.isDirectory) { - // this is only a directory, so let's make some assumptions - for (const configName of ['stencil.config.ts', 'stencil.config.js']) { - const testConfigFilePath = sys.platformPath.join(configPath, configName); - const stat = await sys.stat(testConfigFilePath); - if (stat.isFile) { - results.configPath = testConfigFilePath; - results.rootDir = sys.platformPath.dirname(testConfigFilePath); - break; - } - } - } - return result.ok(results); -}; -//# sourceMappingURL=find-config.js.map \ No newline at end of file diff --git a/build/cli/find-config.js.map b/build/cli/find-config.js.map deleted file mode 100644 index 3eaa33d1b6d..00000000000 --- a/build/cli/find-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"find-config.js","sourceRoot":"","sources":["../../src/cli/find-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAqBrE;;;;G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AAU,GAAG,UAAU,CAAC;QAChC,OAAO,CAAC,OAAO,GAAG,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;KACxD;SAAM,IAAI,IAAI,CAAC,WAAW,EAAE;QAC3B,2DAA2D;QAC3D,KAAK,MAAM,UAAU,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,EAAE;YACnE,MAAM,kBAAkB,GAAG,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;YACzE,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAChD,IAAI,IAAI,CAAC,MAAM,EAAE;gBACf,OAAO,CAAC,UAAU,GAAG,kBAAkB,CAAC;gBACxC,OAAO,CAAC,OAAO,GAAG,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;gBAC/D,MAAM;aACP;SACF;KACF;IAED,OAAO,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;AAC5B,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/index.d.ts b/build/cli/index.d.ts deleted file mode 100644 index 5404fd15d55..00000000000 --- a/build/cli/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { ConfigFlags } from './config-flags'; -export { parseFlags } from './parse-flags'; -export { run, runTask } from './run'; diff --git a/build/cli/index.js b/build/cli/index.js deleted file mode 100644 index d9425e9a6ad..00000000000 --- a/build/cli/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export { parseFlags } from './parse-flags'; -export { run, runTask } from './run'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/cli/index.js.map b/build/cli/index.js.map deleted file mode 100644 index eb60d1b218c..00000000000 --- a/build/cli/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC"} \ No newline at end of file diff --git a/build/cli/ionic-config.d.ts b/build/cli/ionic-config.d.ts deleted file mode 100644 index 8ed80084ee6..00000000000 --- a/build/cli/ionic-config.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type * as d from '../declarations'; -export declare const isTest: () => boolean; -export declare const defaultConfig: (sys: d.CompilerSystem) => string; -export declare const defaultConfigDirectory: (sys: d.CompilerSystem) => string; -/** - * Reads an Ionic configuration file from disk, parses it, and performs any necessary corrections to it if certain - * values are deemed to be malformed - * @param sys The system where the command is invoked - * @returns the config read from disk that has been potentially been updated - */ -export declare function readConfig(sys: d.CompilerSystem): Promise; -/** - * Writes an Ionic configuration file to disk. - * @param sys The system where the command is invoked - * @param config The config passed into the Stencil command - * @returns boolean If the command was successful - */ -export declare function writeConfig(sys: d.CompilerSystem, config: d.TelemetryConfig): Promise; -/** - * Update a subset of the Ionic config. - * @param sys The system where the command is invoked - * @param newOptions The new options to save - * @returns boolean If the command was successful - */ -export declare function updateConfig(sys: d.CompilerSystem, newOptions: d.TelemetryConfig): Promise; diff --git a/build/cli/ionic-config.js b/build/cli/ionic-config.js deleted file mode 100644 index 607f575bc15..00000000000 --- a/build/cli/ionic-config.js +++ /dev/null @@ -1,55 +0,0 @@ -import { readJson, UUID_REGEX, uuidv4 } from './telemetry/helpers'; -export const isTest = () => process.env.JEST_WORKER_ID !== undefined; -export const defaultConfig = (sys) => sys.resolvePath(`${sys.homeDir()}/.ionic/${isTest() ? 'tmp-config.json' : 'config.json'}`); -export const defaultConfigDirectory = (sys) => sys.resolvePath(`${sys.homeDir()}/.ionic`); -/** - * Reads an Ionic configuration file from disk, parses it, and performs any necessary corrections to it if certain - * values are deemed to be malformed - * @param sys The system where the command is invoked - * @returns the config read from disk that has been potentially been updated - */ -export async function readConfig(sys) { - let config = await readJson(sys, defaultConfig(sys)); - if (!config) { - config = { - 'tokens.telemetry': uuidv4(), - 'telemetry.stencil': true, - }; - await writeConfig(sys, config); - } - else if (!config['tokens.telemetry'] || !UUID_REGEX.test(config['tokens.telemetry'])) { - const newUuid = uuidv4(); - await writeConfig(sys, { ...config, 'tokens.telemetry': newUuid }); - config['tokens.telemetry'] = newUuid; - } - return config; -} -/** - * Writes an Ionic configuration file to disk. - * @param sys The system where the command is invoked - * @param config The config passed into the Stencil command - * @returns boolean If the command was successful - */ -export async function writeConfig(sys, config) { - let result = false; - try { - await sys.createDir(defaultConfigDirectory(sys), { recursive: true }); - await sys.writeFile(defaultConfig(sys), JSON.stringify(config, null, 2)); - result = true; - } - catch (error) { - console.error(`Stencil Telemetry: couldn't write configuration file to ${defaultConfig(sys)} - ${error}.`); - } - return result; -} -/** - * Update a subset of the Ionic config. - * @param sys The system where the command is invoked - * @param newOptions The new options to save - * @returns boolean If the command was successful - */ -export async function updateConfig(sys, newOptions) { - const config = await readConfig(sys); - return await writeConfig(sys, Object.assign(config, newOptions)); -} -//# sourceMappingURL=ionic-config.js.map \ No newline at end of file diff --git a/build/cli/ionic-config.js.map b/build/cli/ionic-config.js.map deleted file mode 100644 index 64c9630cf6a..00000000000 --- a/build/cli/ionic-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ionic-config.js","sourceRoot":"","sources":["../../src/cli/ionic-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAqB,EAAE,EAAE,CACrD,GAAG,CAAC,WAAW,CAAC,GAAG,GAAG,CAAC,OAAO,EAAE,WAAW,MAAM,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,EAAE,CAA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IAAI,CAAC;KACf;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,2DAA2D,aAAa,CAAC,GAAG,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC;KAC5G;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,GAAqB,EAAE,UAA6B;IACrF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,GAAG,CAAC,CAAC;IACrC,OAAO,MAAM,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AACnE,CAAC"} \ No newline at end of file diff --git a/build/cli/load-compiler.d.ts b/build/cli/load-compiler.d.ts deleted file mode 100644 index 29ef866843f..00000000000 --- a/build/cli/load-compiler.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { CompilerSystem } from '../declarations'; -export declare const loadCoreCompiler: (sys: CompilerSystem) => Promise; -export type CoreCompiler = typeof import('@stencil/core/compiler'); diff --git a/build/cli/load-compiler.js b/build/cli/load-compiler.js deleted file mode 100644 index 7f9ae5f0c96..00000000000 --- a/build/cli/load-compiler.js +++ /dev/null @@ -1,12 +0,0 @@ -export const loadCoreCompiler = async (sys) => { - const compilerMod = await sys.dynamicImport(sys.getCompilerExecutingPath()); - // TODO(STENCIL-1018): Remove Rollup Infrastructure - if (globalThis.stencil) { - return globalThis.stencil; - } - else { - globalThis.stencil = compilerMod; - return compilerMod; - } -}; -//# sourceMappingURL=load-compiler.js.map \ No newline at end of file diff --git a/build/cli/load-compiler.js.map b/build/cli/load-compiler.js.map deleted file mode 100644 index 325fbfe64b5..00000000000 --- a/build/cli/load-compiler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"load-compiler.js","sourceRoot":"","sources":["../../src/cli/load-compiler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EAAE,GAAmB,EAAyB,EAAE;IACnF,MAAM,WAAW,GAAG,MAAM,GAAG,CAAC,aAAc,CAAC,GAAG,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAE7E,mDAAmD;IACnD,IAAK,UAAkB,CAAC,OAAO,EAAE;QAC/B,OAAQ,UAAkB,CAAC,OAAO,CAAC;KACpC;SAAM;QACJ,UAAkB,CAAC,OAAO,GAAG,WAAW,CAAC;QAC1C,OAAO,WAAW,CAAC;KACpB;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/logs.d.ts b/build/cli/logs.d.ts deleted file mode 100644 index 735d2132591..00000000000 --- a/build/cli/logs.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import type { CompilerSystem, Logger, TaskCommand, ValidatedConfig } from '../declarations'; -import type { ConfigFlags } from './config-flags'; -import type { CoreCompiler } from './load-compiler'; -/** - * Log the name of this package (`@stencil/core`) to an output stream - * - * The output stream is determined by the {@link Logger} instance that is provided as an argument to this function - * - * The name of the package may not be logged, by design, for certain `task` types and logging levels - * - * @param logger the logging entity to use to output the name of the package - * @param task the current task - */ -export declare const startupLog: (logger: Logger, task: TaskCommand) => void; -/** - * Log this package's version to an output stream - * - * The output stream is determined by the {@link Logger} instance that is provided as an argument to this function - * - * The package version may not be logged, by design, for certain `task` types and logging levels - * - * @param logger the logging entity to use for output - * @param task the current task - * @param coreCompiler the compiler instance to derive version information from - */ -export declare const startupLogVersion: (logger: Logger, task: TaskCommand, coreCompiler: CoreCompiler) => void; -/** - * Log details from a {@link CompilerSystem} used by Stencil to an output stream - * - * The output stream is determined by the {@link Logger} instance that is provided as an argument to this function - * - * @param sys the `CompilerSystem` to report details on - * @param logger the logging entity to use for output - * @param flags user set flags for the current invocation of Stencil - * @param coreCompiler the compiler instance being used for this invocation of Stencil - */ -export declare const loadedCompilerLog: (sys: CompilerSystem, logger: Logger, flags: ConfigFlags, coreCompiler: CoreCompiler) => void; -/** - * Log various warnings to an output stream - * - * The output stream is determined by the {@link Logger} instance attached to the `config` argument to this function - * - * @param coreCompiler the compiler instance being used for this invocation of Stencil - * @param config a validated configuration object to be used for this run of Stencil - */ -export declare const startupCompilerLog: (coreCompiler: CoreCompiler, config: ValidatedConfig) => void; diff --git a/build/cli/logs.js b/build/cli/logs.js deleted file mode 100644 index 38a7fe34639..00000000000 --- a/build/cli/logs.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Log the name of this package (`@stencil/core`) to an output stream - * - * The output stream is determined by the {@link Logger} instance that is provided as an argument to this function - * - * The name of the package may not be logged, by design, for certain `task` types and logging levels - * - * @param logger the logging entity to use to output the name of the package - * @param task the current task - */ -export const startupLog = (logger, task) => { - if (task === 'info' || task === 'serve' || task === 'version') { - return; - } - logger.info(logger.cyan(`@stencil/core`)); -}; -/** - * Log this package's version to an output stream - * - * The output stream is determined by the {@link Logger} instance that is provided as an argument to this function - * - * The package version may not be logged, by design, for certain `task` types and logging levels - * - * @param logger the logging entity to use for output - * @param task the current task - * @param coreCompiler the compiler instance to derive version information from - */ -export const startupLogVersion = (logger, task, coreCompiler) => { - if (task === 'info' || task === 'serve' || task === 'version') { - return; - } - const isDevBuild = coreCompiler.version.includes('-dev.'); - let startupMsg; - if (isDevBuild) { - startupMsg = logger.yellow(`[LOCAL DEV] v${coreCompiler.version}`); - } - else { - startupMsg = logger.cyan(`v${coreCompiler.version}`); - } - startupMsg += logger.emoji(' ' + coreCompiler.vermoji); - logger.info(startupMsg); -}; -/** - * Log details from a {@link CompilerSystem} used by Stencil to an output stream - * - * The output stream is determined by the {@link Logger} instance that is provided as an argument to this function - * - * @param sys the `CompilerSystem` to report details on - * @param logger the logging entity to use for output - * @param flags user set flags for the current invocation of Stencil - * @param coreCompiler the compiler instance being used for this invocation of Stencil - */ -export const loadedCompilerLog = (sys, logger, flags, coreCompiler) => { - const sysDetails = sys.details; - const runtimeInfo = `${sys.name} ${sys.version}`; - const platformInfo = sysDetails - ? `${sysDetails.platform}, ${sysDetails.cpuModel}` - : `Unknown Platform, Unknown CPU Model`; - const statsInfo = sysDetails - ? `cpus: ${sys.hardwareConcurrency}, freemem: ${Math.round(sysDetails.freemem() / 1000000)}MB, totalmem: ${Math.round(sysDetails.totalmem / 1000000)}MB` - : 'Unknown CPU Core Count, Unknown Memory'; - if (logger.getLevel() === 'debug') { - logger.debug(runtimeInfo); - logger.debug(platformInfo); - logger.debug(statsInfo); - logger.debug(`compiler: ${sys.getCompilerExecutingPath()}`); - logger.debug(`build: ${coreCompiler.buildId}`); - } - else if (flags.ci) { - logger.info(runtimeInfo); - logger.info(platformInfo); - logger.info(statsInfo); - } -}; -/** - * Log various warnings to an output stream - * - * The output stream is determined by the {@link Logger} instance attached to the `config` argument to this function - * - * @param coreCompiler the compiler instance being used for this invocation of Stencil - * @param config a validated configuration object to be used for this run of Stencil - */ -export const startupCompilerLog = (coreCompiler, config) => { - if (config.suppressLogs === true) { - return; - } - const { logger } = config; - const isDebug = logger.getLevel() === 'debug'; - const isPrerelease = coreCompiler.version.includes('-'); - const isDevBuild = coreCompiler.version.includes('-dev.'); - if (isPrerelease && !isDevBuild) { - logger.warn(logger.yellow(`This is a prerelease build, undocumented changes might happen at any time. Technical support is not available for prereleases, but any assistance testing is appreciated.`)); - } - if (config.devMode && !isDebug) { - if (config.buildEs5) { - logger.warn(`Generating ES5 during development is a very task expensive, initial and incremental builds will be much slower. Drop the '--es5' flag and use a modern browser for development.`); - } - if (!config.enableCache) { - logger.warn(`Disabling cache during development will slow down incremental builds.`); - } - } -}; -//# sourceMappingURL=logs.js.map \ No newline at end of file diff --git a/build/cli/logs.js.map b/build/cli/logs.js.map deleted file mode 100644 index 1f34efd23fe..00000000000 --- a/build/cli/logs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/cli/logs.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,IAAiB,EAAQ,EAAE;IACpE,IA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U,GAAG,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAE1D,IAAI,YAAY,IAAI,CAAC,UAAU,EAAE;QAC/B,MAAM,CAAC,IAAI,CACT,MAAM,CAAC,MAAM,CACX,2KAA2K,CAC5K,CACF,CAAC;KACH;IAED,IAAI,MAAM,CAAC,OAAO,IAAI,CAAC,OAAO,EAAE;QAC9B,IAAI,MAAM,CAAC,QAAQ,EAAE;YACnB,MAAM,CAAC,IAAI,CACT,iLAAiL,CAClL,CAAC;SACH;QAED,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;YACvB,MAAM,CAAC,IAAI,CAAC,uEAAuE,CAAC,CAAC;SACtF;KACF;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/parse-flags.d.ts b/build/cli/parse-flags.d.ts deleted file mode 100644 index f524ace7dee..00000000000 --- a/build/cli/parse-flags.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { ConfigFlags } from './config-flags'; -/** - * Parse command line arguments into a structured `ConfigFlags` object - * - * @param args an array of CLI flags - * @returns a structured ConfigFlags object - */ -export declare const parseFlags: (args: string[]) => ConfigFlags; -export declare const Empty: unique symbol; -/** - * The result of trying to parse a CLI arg. This will be a `string` if a - * well-formed value is present, or `Empty` to indicate that nothing was matched - * or that the input was malformed. - */ -type CLIValueResult = string | typeof Empty; -/** - * Parse an 'equals' argument, which is a CLI argument-value pair in the - * format `--foobar=12` (as opposed to a space-separated format like - * `--foobar 12`). - * - * To parse this we split on the `=`, returning the first part as the argument - * name and the second part as the value. We join the value on `"="` in case - * there is another `"="` in the argument. - * - * This function is safe to call with any arg, and can therefore be used as - * an argument 'normalizer'. If CLI argument is not an 'equals' argument then - * the return value will be a tuple of the original argument and an empty - * string `""` for the value. - * - * In code terms, if you do: - * - * ```ts - * const [arg, value] = parseEqualsArg("--myArgument") - * ``` - * - * Then `arg` will be `"--myArgument"` and `value` will be `""`, whereas if - * you do: - * - * - * ```ts - * const [arg, value] = parseEqualsArg("--myArgument=myValue") - * ``` - * - * Then `arg` will be `"--myArgument"` and `value` will be `"myValue"`. - * - * @param arg the arg in question - * @returns a tuple containing the arg name and the value (if present) - */ -export declare const parseEqualsArg: (arg: string) => [string, CLIValueResult]; -export {}; diff --git a/build/cli/parse-flags.js b/build/cli/parse-flags.js deleted file mode 100644 index 983c01a55d5..00000000000 --- a/build/cli/parse-flags.js +++ /dev/null @@ -1,460 +0,0 @@ -import { readOnlyArrayHasStringMember, toCamelCase } from '@utils'; -import { LOG_LEVELS } from '../declarations'; -import { BOOLEAN_CLI_FLAGS, BOOLEAN_STRING_CLI_FLAGS, CLI_FLAG_ALIASES, CLI_FLAG_REGEX, createConfigFlags, LOG_LEVEL_CLI_FLAGS, NUMBER_CLI_FLAGS, STRING_ARRAY_CLI_FLAGS, STRING_CLI_FLAGS, STRING_NUMBER_CLI_FLAGS, } from './config-flags'; -/** - * Parse command line arguments into a structured `ConfigFlags` object - * - * @param args an array of CLI flags - * @returns a structured ConfigFlags object - */ -export const parseFlags = (args) => { - const flags = createConfigFlags(); - // cmd line has more priority over npm scripts cmd - flags.args = Array.isArray(args) ? args.slice() : []; - if (flags.args.length > 0 && flags.args[0] && !flags.args[0].startsWith('-')) { - flags.task = flags.args[0]; - // if the first argument was a "task" (like `build`, `test`, etc) then - // we go on to parse the _rest_ of the CLI args - parseArgs(flags, args.slice(1)); - } - else { - // we didn't find a leading flag, so we should just parse them all - parseArgs(flags, flags.args); - } - if (flags.task != null) { - const i = flags.args.indexOf(flags.task); - if (i > -1) { - flags.args.splice(i, 1); - } - } - return flags; -}; -/** - * Parse the supported command line flags which are enumerated in the - * `config-flags` module. Handles leading dashes on arguments, aliases that are - * defined for a small number of arguments, and parsing values for non-boolean - * arguments (e.g. port number for the dev server). - * - * This parses the following grammar: - * - * CLIArguments → "" - * | CLITerm ( " " CLITerm )* ; - * CLITerm → EqualsArg - * | AliasEqualsArg - * | AliasArg - * | NegativeDashArg - * | NegativeArg - * | SimpleArg ; - * EqualsArg → "--" ArgName "=" CLIValue ; - * AliasEqualsArg → "-" AliasName "=" CLIValue ; - * AliasArg → "-" AliasName ( " " CLIValue )? ; - * NegativeDashArg → "--no-" ArgName ; - * NegativeArg → "--no" ArgName ; - * SimpleArg → "--" ArgName ( " " CLIValue )? ; - * ArgName → /^[a-zA-Z-]+$/ ; - * AliasName → /^[a-z]{1}$/ ; - * CLIValue → '"' /^[a-zA-Z0-9]+$/ '"' - * | /^[a-zA-Z0-9]+$/ ; - * - * There are additional constraints (not shown in the grammar for brevity's sake) - * on the type of `CLIValue` which will be associated with a particular argument. - * We enforce this by declaring lists of boolean, string, etc arguments and - * checking the types of values before setting them. - * - * We don't need to turn the list of CLI arg tokens into any kind of - * intermediate representation since we aren't concerned with doing anything - * other than setting the correct values on our ConfigFlags object. So we just - * parse the array of string arguments using a recursive-descent approach - * (which is not very deep since our grammar is pretty simple) and make the - * modifications we need to make to the {@link ConfigFlags} object as we go. - * - * @param flags a ConfigFlags object to which parsed arguments will be added - * @param args an array of command-line arguments to parse - */ -const parseArgs = (flags, args) => { - const argsCopy = args.concat(); - while (argsCopy.length > 0) { - // there are still unprocessed args to deal with - parseCLITerm(flags, argsCopy); - } -}; -/** - * Given an array of CLI arguments, parse it and perform a series of side - * effects (setting values on the provided `ConfigFlags` object). - * - * @param flags a {@link ConfigFlags} object which is updated as we parse the CLI - * arguments - * @param args a list of args to work through. This function (and some functions - * it calls) calls `Array.prototype.shift` to get the next argument to look at, - * so this parameter will be modified. - */ -const parseCLITerm = (flags, args) => { - // pull off the first arg from the argument array - const arg = args.shift(); - // array is empty, we're done! - if (arg === undefined) - return; - // capture whether this is a special case of a negated boolean or boolean-string before we start to test each case - const isNegatedBoolean = !readOnlyArrayHasStringMember(BOOLEAN_CLI_FLAGS, normalizeFlagName(arg)) && - readOnlyArrayHasStringMember(BOOLEAN_CLI_FLAGS, normalizeNegativeFlagName(arg)); - const isNegatedBooleanOrString = !readOnlyArrayHasStringMember(BOOLEAN_STRING_CLI_FLAGS, normalizeFlagName(arg)) && - readOnlyArrayHasStringMember(BOOLEAN_STRING_CLI_FLAGS, normalizeNegativeFlagName(arg)); - // EqualsArg → "--" ArgName "=" CLIValue ; - if (arg.startsWith('--') && arg.includes('=')) { - // we're dealing with an EqualsArg, we have a special helper for that - const [originalArg, value] = parseEqualsArg(arg); - setCLIArg(flags, arg.split('=')[0], normalizeFlagName(originalArg), value); - } - // AliasEqualsArg → "-" AliasName "=" CLIValue ; - else if (arg.startsWith('-') && arg.includes('=')) { - // we're dealing with an AliasEqualsArg, we have a special helper for that - const [originalArg, value] = parseEqualsArg(arg); - setCLIArg(flags, desugarRawAlias(originalArg), normalizeFlagName(originalArg), value); - } - // AliasArg → "-" AliasName ( " " CLIValue )? ; - else if (CLI_FLAG_REGEX.test(arg)) { - // this is a short alias, like `-c` for Config - setCLIArg(flags, desugarRawAlias(arg), normalizeFlagName(arg), parseCLIValue(args)); - } - // NegativeDashArg → "--no-" ArgName ; - else if (arg.startsWith('--no-') && arg.length > '--no-'.length) { - // this is a `NegativeDashArg` term, so we need to normalize the negative - // flag name and then set an appropriate value - const normalized = normalizeNegativeFlagName(arg); - setCLIArg(flags, arg, normalized, ''); - } - // NegativeArg → "--no" ArgName ; - else if (arg.startsWith('--no') && (isNegatedBoolean || isNegatedBooleanOrString)) { - // possibly dealing with a `NegativeArg` here. There is a little ambiguity - // here because we have arguments that already begin with `no` like - // `notify`, so we need to test if a normalized form of the raw argument is - // a valid and supported boolean flag. - setCLIArg(flags, arg, normalizeNegativeFlagName(arg), ''); - } - // SimpleArg → "--" ArgName ( " " CLIValue )? ; - else if (arg.startsWith('--') && arg.length > '--'.length) { - setCLIArg(flags, arg, normalizeFlagName(arg), parseCLIValue(args)); - } - else { - // if we get here then `arg` is not an argument in our list of supported - // arguments. This doesn't necessarily mean we want to report an error or - // anything though! Instead, with unknown / unrecognized arguments we want - // to stick them into the `unknownArgs` array, which is used when we pass - // CLI args to Jest, for instance. - flags.unknownArgs.push(arg); - } -}; -/** - * Normalize a 'negative' flag name, just to do a little pre-processing before - * we pass it to `setCLIArg`. - * - * @param flagName the flag name to normalize - * @returns a normalized flag name - */ -const normalizeNegativeFlagName = (flagName) => { - const trimmed = flagName.replace(/^--no[-]?/, ''); - return normalizeFlagName(trimmed.charAt(0).toLowerCase() + trimmed.slice(1)); -}; -/** - * Normalize a flag name by: - * - * - replacing any leading dashes (`--foo` -> `foo`) - * - converting `dash-case` to camelCase (if necessary) - * - * Normalizing in this context basically means converting the various - * supported flag spelling variants to the variant defined in our lists of - * supported arguments (e.g. BOOLEAN_CLI_FLAGS, etc). So, for instance, - * `--log-level` should be converted to `logLevel`. - * - * @param flagName the flag name to normalize - * @returns a normalized flag name - * - */ -const normalizeFlagName = (flagName) => { - const trimmed = flagName.replace(/^-+/, ''); - return trimmed.includes('-') ? toCamelCase(trimmed) : trimmed; -}; -/** - * Set a value on a provided {@link ConfigFlags} object, given an argument - * name and a raw string value. This function dispatches to other functions - * which make sure that the string value can be properly parsed into a JS - * runtime value of the right type (e.g. number, string, etc). - * - * @throws if a value cannot be parsed to the right type for a given flag - * @param flags a {@link ConfigFlags} object - * @param rawArg the raw argument name matched by the parser - * @param normalizedArg an argument with leading control characters (`--`, - * `--no-`, etc) removed - * @param value the raw value to be set onto the config flags object - */ -const setCLIArg = (flags, rawArg, normalizedArg, value) => { - normalizedArg = desugarAlias(normalizedArg); - // We're setting a boolean! - if (readOnlyArrayHasStringMember(BOOLEAN_CLI_FLAGS, normalizedArg)) { - flags[normalizedArg] = - typeof value === 'string' - ? Boolean(value) - : // no value was supplied, default to true - true; - flags.knownArgs.push(rawArg); - } - // We're setting a string! - else if (readOnlyArrayHasStringMember(STRING_CLI_FLAGS, normalizedArg)) { - if (typeof value === 'string') { - flags[normalizedArg] = value; - flags.knownArgs.push(rawArg); - flags.knownArgs.push(value); - } - else { - throwCLIParsingError(rawArg, 'expected a string argument but received nothing'); - } - } - // We're setting a string, but it's one where the user can pass multiple values, - // like `--reporters="default" --reporters="jest-junit"` - else if (readOnlyArrayHasStringMember(STRING_ARRAY_CLI_FLAGS, normalizedArg)) { - if (typeof value === 'string') { - if (!Array.isArray(flags[normalizedArg])) { - flags[normalizedArg] = []; - } - const targetArray = flags[normalizedArg]; - // this is irritating, but TS doesn't know that the `!Array.isArray` - // check above guarantees we have an array to work with here, and it - // doesn't want to narrow the type of `flags[normalizedArg]`, so we need - // to grab a reference to that array and then `Array.isArray` that. Bah! - if (Array.isArray(targetArray)) { - targetArray.push(value); - flags.knownArgs.push(rawArg); - flags.knownArgs.push(value); - } - } - else { - throwCLIParsingError(rawArg, 'expected a string argument but received nothing'); - } - } - // We're setting a number! - else if (readOnlyArrayHasStringMember(NUMBER_CLI_FLAGS, normalizedArg)) { - if (typeof value === 'string') { - const parsed = parseInt(value, 10); - if (isNaN(parsed)) { - throwNumberParsingError(rawArg, value); - } - else { - flags[normalizedArg] = parsed; - flags.knownArgs.push(rawArg); - flags.knownArgs.push(value); - } - } - else { - throwCLIParsingError(rawArg, 'expected a number argument but received nothing'); - } - } - // We're setting a value which could be either a string _or_ a number - else if (readOnlyArrayHasStringMember(STRING_NUMBER_CLI_FLAGS, normalizedArg)) { - if (typeof value === 'string') { - if (CLI_ARG_STRING_REGEX.test(value)) { - // if it matches the regex we treat it like a string - flags[normalizedArg] = value; - } - else { - const parsed = Number(value); - if (isNaN(parsed)) { - // parsing didn't go so well, we gotta get out of here - // this is unlikely given our regex guard above - // but hey, this is ultimately JS so let's be safe - throwNumberParsingError(rawArg, value); - } - else { - flags[normalizedArg] = parsed; - } - } - flags.knownArgs.push(rawArg); - flags.knownArgs.push(value); - } - else { - throwCLIParsingError(rawArg, 'expected a string or a number but received nothing'); - } - } - // We're setting a value which could be either a boolean _or_ a string - else if (readOnlyArrayHasStringMember(BOOLEAN_STRING_CLI_FLAGS, normalizedArg)) { - const derivedValue = typeof value === 'string' - ? value - ? value // use the supplied value if it's a non-empty string - : false // otherwise, default to false for the empty string - : true; // no value was supplied, default to true - flags[normalizedArg] = derivedValue; - flags.knownArgs.push(rawArg); - if (typeof derivedValue === 'string' && derivedValue) { - flags.knownArgs.push(derivedValue); - } - } - // We're setting the log level, which can only be a set of specific string values - else if (readOnlyArrayHasStringMember(LOG_LEVEL_CLI_FLAGS, normalizedArg)) { - if (typeof value === 'string') { - if (isLogLevel(value)) { - flags[normalizedArg] = value; - flags.knownArgs.push(rawArg); - flags.knownArgs.push(value); - } - else { - throwCLIParsingError(rawArg, `expected to receive a valid log level but received "${String(value)}"`); - } - } - else { - throwCLIParsingError(rawArg, 'expected to receive a valid log level but received nothing'); - } - } - else { - // we haven't found this flag in any of our lists of arguments, so we - // should put it in our list of unknown arguments - flags.unknownArgs.push(rawArg); - if (typeof value === 'string') { - flags.unknownArgs.push(value); - } - } -}; -/** - * We use this regular expression to detect CLI parameters which - * should be parsed as string values (as opposed to numbers) for - * the argument types for which we support both a string and a - * number value. - * - * The regex tests for the presence of at least one character which is - * _not_ a digit (`\d`), a period (`\.`), or one of the characters `"e"`, - * `"E"`, `"+"`, or `"-"` (the latter four characters are necessary to - * support the admittedly unlikely use of scientific notation, like `"4e+0"` - * for `4`). - * - * Thus we'll match a string like `"50%"`, but not a string like `"50"` or - * `"5.0"`. If it matches a given string we conclude that the string should - * be parsed as a string literal, rather than using `Number` to convert it - * to a number. - */ -const CLI_ARG_STRING_REGEX = /[^\d\.Ee\+\-]+/g; -export const Empty = Symbol('Empty'); -/** - * A little helper which tries to parse a CLI value (as opposed to a flag) off - * of the argument array. - * - * We support a variety of different argument formats for flags (as opposed to - * values), but all of them start with `-`, so we can check the first character - * to test whether the next token in our array of CLI arguments is a flag name - * or a value. - * - * @param args an array of CLI args - * @returns either a string result or an Empty sentinel - */ -const parseCLIValue = (args) => { - // it's possible the arguments array is empty, if so, return empty - if (args[0] === undefined) { - return Empty; - } - // all we're concerned with here is that it does not start with `"-"`, - // which would indicate it should be parsed as a CLI flag and not a value. - if (!args[0].startsWith('-')) { - // It's not a flag, so we return the value and defer any specific parsing - // until later on. - const value = args.shift(); - if (typeof value === 'string') { - return value; - } - } - return Empty; -}; -/** - * Parse an 'equals' argument, which is a CLI argument-value pair in the - * format `--foobar=12` (as opposed to a space-separated format like - * `--foobar 12`). - * - * To parse this we split on the `=`, returning the first part as the argument - * name and the second part as the value. We join the value on `"="` in case - * there is another `"="` in the argument. - * - * This function is safe to call with any arg, and can therefore be used as - * an argument 'normalizer'. If CLI argument is not an 'equals' argument then - * the return value will be a tuple of the original argument and an empty - * string `""` for the value. - * - * In code terms, if you do: - * - * ```ts - * const [arg, value] = parseEqualsArg("--myArgument") - * ``` - * - * Then `arg` will be `"--myArgument"` and `value` will be `""`, whereas if - * you do: - * - * - * ```ts - * const [arg, value] = parseEqualsArg("--myArgument=myValue") - * ``` - * - * Then `arg` will be `"--myArgument"` and `value` will be `"myValue"`. - * - * @param arg the arg in question - * @returns a tuple containing the arg name and the value (if present) - */ -export const parseEqualsArg = (arg) => { - const [originalArg, ...splitSections] = arg.split('='); - const value = splitSections.join('='); - return [originalArg, value === '' ? Empty : value]; -}; -/** - * Small helper for getting type-system-level assurance that a `string` can be - * narrowed to a `LogLevel` - * - * @param maybeLogLevel the string to check - * @returns whether this is a `LogLevel` - */ -const isLogLevel = (maybeLogLevel) => readOnlyArrayHasStringMember(LOG_LEVELS, maybeLogLevel); -/** - * A little helper for constructing and throwing an error message with info - * about what went wrong - * - * @param flag the flag which encountered the error - * @param message a message specific to the error which was encountered - */ -const throwCLIParsingError = (flag, message) => { - throw new Error(`when parsing CLI flag "${flag}": ${message}`); -}; -/** - * Throw a specific error for the situation where we ran into an issue parsing - * a number. - * - * @param flag the flag for which we encountered the issue - * @param value what we were trying to parse - */ -const throwNumberParsingError = (flag, value) => { - throwCLIParsingError(flag, `expected a number but received "${value}"`); -}; -/** - * A little helper to 'desugar' a flag alias, meaning expand it to its full - * name. For instance, the alias `"c"` will desugar to `"config"`. - * - * If no expansion is found for the possible alias we just return the passed - * string unmodified. - * - * @param maybeAlias a string which _could_ be an alias to a full flag name - * @returns the full aliased flag name, if found, or the passed string if not - */ -const desugarAlias = (maybeAlias) => { - const possiblyDesugared = CLI_FLAG_ALIASES[maybeAlias]; - if (typeof possiblyDesugared === 'string') { - return possiblyDesugared; - } - return maybeAlias; -}; -/** - * Desugar a 'raw' alias (with a leading dash) and return an equivalent, - * desugared argument. - * - * For instance, passing `"-c` will return `"--config"`. - * - * The reason we'd like to do this is not so much for our own code, but so that - * we can transform an alias like `"-u"` to `"--updateSnapshot"` in order to - * pass it along to Jest. - * - * @param rawAlias a CLI flag alias as found on the command line (like `"-c"`) - * @returns an equivalent full command (like `"--config"`) - */ -const desugarRawAlias = (rawAlias) => '--' + desugarAlias(normalizeFlagName(rawAlias)); -//# sourceMappingURL=parse-flags.js.map \ No newline at end of file diff --git a/build/cli/parse-flags.js.map b/build/cli/parse-flags.js.map deleted file mode 100644 index 3c5806f5d0c..00000000000 --- a/build/cli/parse-flags.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-flags.js","sourceRoot":"","sources":["../../src/cli/parse-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAyB,MAAM,iBAAiB,CAAC;AACpE,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EAChB,cAAc,EAEd,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AAExB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAc,EAAe,EAAE;IACxD,MAAM,KAAK,GAAgB,iBAAiB,EAAE,CAAC;IAE/C,kDAAkD;IAClD,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KA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B,CAAC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,eAAe,GAAG,CAAC,QAAgB,EAAU,EAAE,CAAC,IAAI,GAAG,YAAY,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/public.d.ts b/build/cli/public.d.ts deleted file mode 100644 index 9b2e59b7a14..00000000000 --- a/build/cli/public.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { CliInitOptions, Config, Logger, TaskCommand } from '@stencil/core/internal'; -import type { ConfigFlags } from './config-flags'; -/** - * Runs the CLI with the given options. This is used by Stencil's default `bin/stencil` file, - * but can be used externally too. - * @param init a set of initialization options needed to run Stencil from its CLI - * @returns an empty promise - */ -export declare function run(init: CliInitOptions): Promise; -/** - * Run individual CLI tasks. - * @param coreCompiler The core Stencil compiler to be used. The `run()` method handles loading the core compiler, however, `runTask()` must be passed it. - * @param config Assumes the config has already been validated and has the "sys" and "logger" properties. - * @param task The task command to run, such as `build`. - * @returns an empty promise - */ -export declare function runTask(coreCompiler: any, config: Config, task: TaskCommand): Promise; -export declare function parseFlags(args: string[]): ConfigFlags; -export { Config, ConfigFlags, Logger, TaskCommand }; diff --git a/build/cli/public.js b/build/cli/public.js deleted file mode 100644 index 1d2b1e5d614..00000000000 --- a/build/cli/public.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=public.js.map \ No newline at end of file diff --git a/build/cli/public.js.map b/build/cli/public.js.map deleted file mode 100644 index 5d7307b1970..00000000000 --- a/build/cli/public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"public.js","sourceRoot":"","sources":["../../src/cli/public.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/build/cli/run.d.ts b/build/cli/run.d.ts deleted file mode 100644 index 691143d9934..00000000000 --- a/build/cli/run.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type * as d from '../declarations'; -import { CoreCompiler } from './load-compiler'; -export declare const run: (init: d.CliInitOptions) => Promise; -/** - * Run a specified task - * - * @param coreCompiler an instance of a minimal, bootstrap compiler for running the specified task - * @param config a configuration for the Stencil project to apply to the task run - * @param task the task to run - * @param sys the {@link CompilerSystem} for interacting with the operating system - * @public - * @returns a void promise - */ -export declare const runTask: (coreCompiler: CoreCompiler, config: d.Config, task: d.TaskCommand, sys: d.CompilerSystem) => Promise; diff --git a/build/cli/run.js b/build/cli/run.js deleted file mode 100644 index a7fedc89824..00000000000 --- a/build/cli/run.js +++ /dev/null @@ -1,135 +0,0 @@ -import { hasError, isFunction, result, shouldIgnoreError } from '@utils'; -import { createConfigFlags } from './config-flags'; -import { findConfig } from './find-config'; -import { loadCoreCompiler } from './load-compiler'; -import { loadedCompilerLog, startupLog, startupLogVersion } from './logs'; -import { parseFlags } from './parse-flags'; -import { taskBuild } from './task-build'; -import { taskDocs } from './task-docs'; -import { taskGenerate } from './task-generate'; -import { taskHelp } from './task-help'; -import { taskInfo } from './task-info'; -import { taskPrerender } from './task-prerender'; -import { taskServe } from './task-serve'; -import { taskTelemetry } from './task-telemetry'; -import { taskTest } from './task-test'; -import { telemetryAction } from './telemetry/telemetry'; -export const run = async (init) => { - const { args, logger, sys } = init; - try { - const flags = parseFlags(args); - const task = flags.task; - if (flags.debug || flags.verbose) { - logger.setLevel('debug'); - } - if (flags.ci) { - logger.enableColors(false); - } - if (isFunction(sys.applyGlobalPatch)) { - sys.applyGlobalPatch(sys.getCurrentDirectory()); - } - if (!task || task === 'help' || flags.help) { - await taskHelp(createConfigFlags({ task: 'help', args }), logger, sys); - return; - } - startupLog(logger, task); - const findConfigResults = await findConfig({ sys, configPath: flags.config }); - if (findConfigResults.isErr) { - logger.printDiagnostics(findConfigResults.value); - return sys.exit(1); - } - const coreCompiler = await loadCoreCompiler(sys); - if (task === 'version' || flags.version) { - console.log(coreCompiler.version); - return; - } - startupLogVersion(logger, task, coreCompiler); - loadedCompilerLog(sys, logger, flags, coreCompiler); - if (task === 'info') { - taskInfo(coreCompiler, sys, logger); - return; - } - const foundConfig = result.unwrap(findConfigResults); - const validated = await coreCompiler.loadConfig({ - config: { - flags, - }, - configPath: foundConfig.configPath, - logger, - sys, - }); - if (validated.diagnostics.length > 0) { - logger.printDiagnostics(validated.diagnostics); - if (hasError(validated.diagnostics)) { - return sys.exit(1); - } - } - if (isFunction(sys.applyGlobalPatch)) { - sys.applyGlobalPatch(validated.config.rootDir); - } - await telemetryAction(sys, validated.config, coreCompiler, async () => { - await runTask(coreCompiler, validated.config, task, sys); - }); - } - catch (e) { - if (!shouldIgnoreError(e)) { - const details = `${logger.getLevel() === 'debug' && e instanceof Error ? e.stack : ''}`; - logger.error(`uncaught cli error: ${e}${details}`); - return sys.exit(1); - } - } -}; -/** - * Run a specified task - * - * @param coreCompiler an instance of a minimal, bootstrap compiler for running the specified task - * @param config a configuration for the Stencil project to apply to the task run - * @param task the task to run - * @param sys the {@link CompilerSystem} for interacting with the operating system - * @public - * @returns a void promise - */ -export const runTask = async (coreCompiler, config, task, sys) => { - var _a; - const flags = createConfigFlags((_a = config.flags) !== null && _a !== void 0 ? _a : { task }); - config.flags = flags; - if (!config.sys) { - config.sys = sys; - } - const strictConfig = coreCompiler.validateConfig(config, {}).config; - switch (task) { - case 'build': - await taskBuild(coreCompiler, strictConfig); - break; - case 'docs': - await taskDocs(coreCompiler, strictConfig); - break; - case 'generate': - case 'g': - await taskGenerate(strictConfig); - break; - case 'help': - await taskHelp(strictConfig.flags, strictConfig.logger, sys); - break; - case 'prerender': - await taskPrerender(coreCompiler, strictConfig); - break; - case 'serve': - await taskServe(strictConfig); - break; - case 'telemetry': - await taskTelemetry(strictConfig.flags, sys, strictConfig.logger); - break; - case 'test': - await taskTest(strictConfig); - break; - case 'version': - console.log(coreCompiler.version); - break; - default: - strictConfig.logger.error(`${strictConfig.logger.emoji('❌ ')}Invalid stencil command, please see the options below:`); - await taskHelp(strictConfig.flags, strictConfig.logger, sys); - return config.sys.exit(1); - } -}; -//# sourceMappingURL=run.js.map \ No newline at end of file diff --git a/build/cli/run.js.map b/build/cli/run.js.map deleted file mode 100644 index 6f2de0a9d13..00000000000 --- a/build/cli/run.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAIzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAgB,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,CAAC,MAAM,GAAG,GAAG,KAAK,EAAE,IAAsB,EAAE,EAAE;IAClD,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAEnC,IAAI;QACF,MAAM,KAAK,GAAG,UA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KAAK,EAAE,GAAG,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;YAClE,MAAM;QAER,KAAK,MAAM;YACT,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC;YAC7B,MAAM;QAER,KAAK,SAAS;YACZ,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YAClC,MAAM;QAER;YACE,YAAY,CAAC,MAAM,CAAC,KAAK,CACvB,GAAG,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,wDAAwD,CAC3F,CAAC;YACF,MAAM,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC7D,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAC7B;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/task-build.d.ts b/build/cli/task-build.d.ts deleted file mode 100644 index e6487638c46..00000000000 --- a/build/cli/task-build.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as d from '../declarations'; -import type { CoreCompiler } from './load-compiler'; -export declare const taskBuild: (coreCompiler: CoreCompiler, config: d.ValidatedConfig) => Promise; diff --git a/build/cli/task-build.js b/build/cli/task-build.js deleted file mode 100644 index 72b39e93165..00000000000 --- a/build/cli/task-build.js +++ /dev/null @@ -1,41 +0,0 @@ -import { printCheckVersionResults, startCheckVersion } from './check-version'; -import { startupCompilerLog } from './logs'; -import { runPrerenderTask } from './task-prerender'; -import { taskWatch } from './task-watch'; -import { telemetryBuildFinishedAction } from './telemetry/telemetry'; -export const taskBuild = async (coreCompiler, config) => { - if (config.flags.watch) { - // watch build - await taskWatch(coreCompiler, config); - return; - } - // one-time build - let exitCode = 0; - try { - startupCompilerLog(coreCompiler, config); - const versionChecker = startCheckVersion(config, coreCompiler.version); - const compiler = await coreCompiler.createCompiler(config); - const results = await compiler.build(); - await telemetryBuildFinishedAction(config.sys, config, coreCompiler, results); - await compiler.destroy(); - if (results.hasError) { - exitCode = 1; - } - else if (config.flags.prerender) { - const prerenderDiagnostics = await runPrerenderTask(coreCompiler, config, results.hydrateAppFilePath, results.componentGraph, null); - config.logger.printDiagnostics(prerenderDiagnostics); - if (prerenderDiagnostics.some((d) => d.level === 'error')) { - exitCode = 1; - } - } - await printCheckVersionResults(versionChecker); - } - catch (e) { - exitCode = 1; - config.logger.error(e); - } - if (exitCode > 0) { - return config.sys.exit(exitCode); - } -}; -//# sourceMappingURL=task-build.js.map \ No newline at end of file diff --git a/build/cli/task-build.js.map b/build/cli/task-build.js.map deleted file mode 100644 index 452648bfd42..00000000000 --- a/build/cli/task-build.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-build.js","sourceRoot":"","sources":["../../src/cli/task-build.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAErE,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAE,YAA0B,EAAE,MAAyB,EAAE,EAAE;IACvF,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE;QACtB,cAAc;QACd,MAAM,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QACtC,OAAO;KACR;IAED,iBAAiB;IACjB,IAAI,QAAQ,GAAG,CAAC,CAAC;IAEjB,IAAI;QACF,kBAAkB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QAEzC,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;QAEvE,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAC3D,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;QAEvC,MAAM,4BAA4B,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAE9E,MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC;QAEzB,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpB,QAAQ,GAAG,CAAC,CAAC;SACd;aAAM,IAAI,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE;YACjC,MAAM,oBAAoB,GAAG,MAAM,gBAAgB,CACjD,YAAY,EACZ,MAAM,EACN,OAAO,CAAC,kBAAkB,EAC1B,OAAO,CAAC,cAAc,EACtB,IAAI,CACL,CAAC;YACF,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;YAErD,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,OAAO,CAAC,EAAE;gBACzD,QAAQ,GAAG,CAAC,CAAC;aACd;SACF;QAED,MAAM,wBAAwB,CAAC,cAAc,CAAC,CAAC;KAChD;IAAC,OAAO,CAAC,EAAE;QACV,QAAQ,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACxB;IAED,IAAI,QAAQ,GAAG,CAAC,EAAE;QAChB,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAClC;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/task-docs.d.ts b/build/cli/task-docs.d.ts deleted file mode 100644 index 6e70ebb5fde..00000000000 --- a/build/cli/task-docs.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ValidatedConfig } from '../declarations'; -import type { CoreCompiler } from './load-compiler'; -export declare const taskDocs: (coreCompiler: CoreCompiler, config: ValidatedConfig) => Promise; diff --git a/build/cli/task-docs.js b/build/cli/task-docs.js deleted file mode 100644 index a0f6e85b22b..00000000000 --- a/build/cli/task-docs.js +++ /dev/null @@ -1,12 +0,0 @@ -import { isOutputTargetDocs } from '@utils'; -import { startupCompilerLog } from './logs'; -export const taskDocs = async (coreCompiler, config) => { - config.devServer = {}; - config.outputTargets = config.outputTargets.filter(isOutputTargetDocs); - config.devMode = true; - startupCompilerLog(coreCompiler, config); - const compiler = await coreCompiler.createCompiler(config); - await compiler.build(); - await compiler.destroy(); -}; -//# sourceMappingURL=task-docs.js.map \ No newline at end of file diff --git a/build/cli/task-docs.js.map b/build/cli/task-docs.js.map deleted file mode 100644 index e7301d07512..00000000000 --- a/build/cli/task-docs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-docs.js","sourceRoot":"","sources":["../../src/cli/task-docs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAI5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAAE,YAA0B,EAAE,MAAuB,EAAE,EAAE;IACpF,MAAM,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,MAAM,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACvE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IAEtB,kBAAkB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAEzC,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC3D,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAEvB,MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC;AAC3B,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/task-generate.d.ts b/build/cli/task-generate.d.ts deleted file mode 100644 index b07e56d7374..00000000000 --- a/build/cli/task-generate.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { ValidatedConfig } from '../declarations'; -/** - * Task to generate component boilerplate and write it to disk. This task can - * cause the program to exit with an error under various circumstances, such as - * being called in an inappropriate place, being asked to overwrite files that - * already exist, etc. - * - * @param config the user-supplied config, which we need here to access `.sys`. - * @returns a void promise - */ -export declare const taskGenerate: (config: ValidatedConfig) => Promise; -/** - * Get the boilerplate for a file by its extension. - * - * @param tagName the name of the component we're generating - * @param extension the file extension we want boilerplate for (.css, tsx, etc) - * @param withCss a boolean indicating whether we're generating a CSS file - * @returns a string container the file boilerplate for the supplied extension - */ -export declare const getBoilerplateByExtension: (tagName: string, extension: GenerableExtension, withCss: boolean) => string; -/** - * Extensions available to generate. - */ -export type GenerableExtension = 'tsx' | 'css' | 'spec.tsx' | 'e2e.ts'; -/** - * A little interface to wrap up the info we need to pass around for generating - * and writing boilerplate. - */ -export interface BoilerplateFile { - extension: GenerableExtension; - /** - * The full path to the file we want to generate. - */ - path: string; -} diff --git a/build/cli/task-generate.js b/build/cli/task-generate.js deleted file mode 100644 index 81f643f2273..00000000000 --- a/build/cli/task-generate.js +++ /dev/null @@ -1,255 +0,0 @@ -import { normalizePath, validateComponentTag } from '@utils'; -import { join, parse, relative } from 'path'; -/** - * Task to generate component boilerplate and write it to disk. This task can - * cause the program to exit with an error under various circumstances, such as - * being called in an inappropriate place, being asked to overwrite files that - * already exist, etc. - * - * @param config the user-supplied config, which we need here to access `.sys`. - * @returns a void promise - */ -export const taskGenerate = async (config) => { - if (!config.configPath) { - config.logger.error('Please run this command in your root directory (i. e. the one containing stencil.config.ts).'); - return config.sys.exit(1); - } - const absoluteSrcDir = config.srcDir; - if (!absoluteSrcDir) { - config.logger.error(`Stencil's srcDir was not specified.`); - return config.sys.exit(1); - } - const { prompt } = await import('prompts'); - const input = config.flags.unknownArgs.find((arg) => !arg.startsWith('-')) || - (await prompt({ name: 'tagName', type: 'text', message: 'Component tag name (dash-case):' })).tagName; - if (undefined === input) { - // in some shells (e.g. Windows PowerShell), hitting Ctrl+C results in a TypeError printed to the console. - // explicitly return here to avoid printing the error message. - return; - } - const { dir, base: componentName } = parse(input); - const tagError = validateComponentTag(componentName); - if (tagError) { - config.logger.error(tagError); - return config.sys.exit(1); - } - const filesToGenerateExt = await chooseFilesToGenerate(); - if (undefined === filesToGenerateExt) { - // in some shells (e.g. Windows PowerShell), hitting Ctrl+C results in a TypeError printed to the console. - // explicitly return here to avoid printing the error message. - return; - } - const extensionsToGenerate = ['tsx', ...filesToGenerateExt]; - const testFolder = extensionsToGenerate.some(isTest) ? 'test' : ''; - const outDir = join(absoluteSrcDir, 'components', dir, componentName); - await config.sys.createDir(normalizePath(join(outDir, testFolder)), { recursive: true }); - const filesToGenerate = extensionsToGenerate.map((extension) => ({ - extension, - path: getFilepathForFile(outDir, componentName, extension), - })); - await checkForOverwrite(filesToGenerate, config); - const writtenFiles = await Promise.all(filesToGenerate.map((file) => getBoilerplateAndWriteFile(config, componentName, extensionsToGenerate.includes('css'), file))).catch((error) => config.logger.error(error)); - if (!writtenFiles) { - return config.sys.exit(1); - } - // We use `console.log` here rather than our `config.logger` because we don't want - // our TUI messages to be prefixed with timestamps and so on. - // - // See STENCIL-424 for details. - console.log(); - console.log(`${config.logger.gray('$')} stencil generate ${input}`); - console.log(); - console.log(config.logger.bold('The following files have been generated:')); - const absoluteRootDir = config.rootDir; - writtenFiles.map((file) => console.log(` - ${relative(absoluteRootDir, file)}`)); -}; -/** - * Show a checkbox prompt to select the files to be generated. - * - * @returns a read-only array of `GenerableExtension`, the extensions that the user has decided - * to generate - */ -const chooseFilesToGenerate = async () => { - const { prompt } = await import('prompts'); - return (await prompt({ - name: 'filesToGenerate', - type: 'multiselect', - message: 'Which additional files do you want to generate?', - choices: [ - { value: 'css', title: 'Stylesheet (.css)', selected: true }, - { value: 'spec.tsx', title: 'Spec Test (.spec.tsx)', selected: true }, - { value: 'e2e.ts', title: 'E2E Test (.e2e.ts)', selected: true }, - ], - })).filesToGenerate; -}; -/** - * Get a filepath for a file we want to generate! - * - * The filepath for a given file depends on the path, the user-supplied - * component name, the extension, and whether we're inside of a test directory. - * - * @param filePath path to where we're going to generate the component - * @param componentName the user-supplied name for the generated component - * @param extension the file extension - * @returns the full filepath to the component (with a possible `test` directory - * added) - */ -const getFilepathForFile = (filePath, componentName, extension) => isTest(extension) - ? normalizePath(join(filePath, 'test', `${componentName}.${extension}`)) - : normalizePath(join(filePath, `${componentName}.${extension}`)); -/** - * Get the boilerplate for a file and write it to disk - * - * @param config the current config, needed for file operations - * @param componentName the component name (user-supplied) - * @param withCss are we generating CSS? - * @param file the file we want to write - * @returns a `Promise` which holds the full filepath we've written to, - * used to print out a little summary of our activity to the user. - */ -const getBoilerplateAndWriteFile = async (config, componentName, withCss, file) => { - const boilerplate = getBoilerplateByExtension(componentName, file.extension, withCss); - await config.sys.writeFile(normalizePath(file.path), boilerplate); - return file.path; -}; -/** - * Check to see if any of the files we plan to write already exist and would - * therefore be overwritten if we proceed, because we'd like to not overwrite - * people's code! - * - * This function will check all the filepaths and if it finds any files log an - * error and exit with an error code. If it doesn't find anything it will just - * peacefully return `Promise`. - * - * @param files the files we want to check - * @param config the Config object, used here to get access to `sys.readFile` - */ -const checkForOverwrite = async (files, config) => { - const alreadyPresent = []; - await Promise.all(files.map(async ({ path }) => { - if ((await config.sys.readFile(path)) !== undefined) { - alreadyPresent.push(path); - } - })); - if (alreadyPresent.length > 0) { - config.logger.error('Generating code would overwrite the following files:', ...alreadyPresent.map((path) => '\t' + normalizePath(path))); - await config.sys.exit(1); - } -}; -/** - * Check if an extension is for a test - * - * @param extension the extension we want to check - * @returns a boolean indicating whether or not its a test - */ -const isTest = (extension) => { - return extension === 'e2e.ts' || extension === 'spec.tsx'; -}; -/** - * Get the boilerplate for a file by its extension. - * - * @param tagName the name of the component we're generating - * @param extension the file extension we want boilerplate for (.css, tsx, etc) - * @param withCss a boolean indicating whether we're generating a CSS file - * @returns a string container the file boilerplate for the supplied extension - */ -export const getBoilerplateByExtension = (tagName, extension, withCss) => { - switch (extension) { - case 'tsx': - return getComponentBoilerplate(tagName, withCss); - case 'css': - return getStyleUrlBoilerplate(); - case 'spec.tsx': - return getSpecTestBoilerplate(tagName); - case 'e2e.ts': - return getE2eTestBoilerplate(tagName); - default: - throw new Error(`Unkown extension "${extension}".`); - } -}; -/** - * Get the boilerplate for a file containing the definition of a component - * @param tagName the name of the tag to give the component - * @param hasStyle designates if the component has an external stylesheet or not - * @returns the contents of a file that defines a component - */ -const getComponentBoilerplate = (tagName, hasStyle) => { - const decorator = [`{`]; - decorator.push(` tag: '${tagName}',`); - if (hasStyle) { - decorator.push(` styleUrl: '${tagName}.css',`); - } - decorator.push(` shadow: true,`); - decorator.push(`}`); - return `import { Component, Host, h } from '@stencil/core'; - -@Component(${decorator.join('\n')}) -export class ${toPascalCase(tagName)} { - - render() { - return ( - - - - ); - } - -} -`; -}; -/** - * Get the boilerplate for style for a generated component - * @returns a boilerplate CSS block - */ -const getStyleUrlBoilerplate = () => `:host { - display: block; -} -`; -/** - * Get the boilerplate for a file containing a spec (unit) test for a component - * @param tagName the name of the tag associated with the component under test - * @returns the contents of a file that unit tests a component - */ -const getSpecTestBoilerplate = (tagName) => `import { newSpecPage } from '@stencil/core/testing'; -import { ${toPascalCase(tagName)} } from '../${tagName}'; - -describe('${tagName}', () => { - it('renders', async () => { - const page = await newSpecPage({ - components: [${toPascalCase(tagName)}], - html: \`<${tagName}>\`, - }); - expect(page.root).toEqualHtml(\` - <${tagName}> - - - - - \`); - }); -}); -`; -/** - * Get the boilerplate for a file containing an end-to-end (E2E) test for a component - * @param tagName the name of the tag associated with the component under test - * @returns the contents of a file that E2E tests a component - */ -const getE2eTestBoilerplate = (tagName) => `import { newE2EPage } from '@stencil/core/testing'; - -describe('${tagName}', () => { - it('renders', async () => { - const page = await newE2EPage(); - await page.setContent('<${tagName}>'); - - const element = await page.find('${tagName}'); - expect(element).toHaveClass('hydrated'); - }); -}); -`; -/** - * Convert a dash case string to pascal case. - * @param str the string to convert - * @returns the converted input as pascal case - */ -const toPascalCase = (str) => str.split('-').reduce((res, part) => res + part[0].toUpperCase() + part.slice(1), ''); -//# sourceMappingURL=task-generate.js.map \ No newline at end of file diff --git a/build/cli/task-generate.js.map b/build/cli/task-generate.js.map deleted file mode 100644 index 4825f6b05ac..00000000000 --- a/build/cli/task-generate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-generate.js","sourceRoot":"","sources":["../../src/cli/task-generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAI7C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,MAAuB,EAAiB,EAAE;IAC3E,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;QACtB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,8FAA8F,CAAC,CAAC;QACpH,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAC3B;IAED,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAErC,IAAI,CAAC,cAAc,EAAE;QACnB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;QAC3D,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAC3B;IAED,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,CAAC;IAE3C,MAAM,KAAK,GACT,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC3D,CAAC,MAAM,MAAM,CAAC,EAAE,I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CAAC,CAAC,EAAE,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/task-help.d.ts b/build/cli/task-help.d.ts deleted file mode 100644 index aeefa3fa183..00000000000 --- a/build/cli/task-help.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type * as d from '../declarations'; -import { ConfigFlags } from './config-flags'; -/** - * Entrypoint for the Help task, providing Stencil usage context to the user - * @param flags configuration flags provided to Stencil when a task was call (either this task or a task that invokes - * telemetry) - * @param logger a logging implementation to log the results out to the user - * @param sys the abstraction for interfacing with the operating system - */ -export declare const taskHelp: (flags: ConfigFlags, logger: d.Logger, sys: d.CompilerSystem) => Promise; diff --git a/build/cli/task-help.js b/build/cli/task-help.js deleted file mode 100644 index 5a89d499528..00000000000 --- a/build/cli/task-help.js +++ /dev/null @@ -1,52 +0,0 @@ -import { taskTelemetry } from './task-telemetry'; -/** - * Entrypoint for the Help task, providing Stencil usage context to the user - * @param flags configuration flags provided to Stencil when a task was call (either this task or a task that invokes - * telemetry) - * @param logger a logging implementation to log the results out to the user - * @param sys the abstraction for interfacing with the operating system - */ -export const taskHelp = async (flags, logger, sys) => { - const prompt = logger.dim(sys.details.platform === 'windows' ? '>' : '$'); - console.log(` - ${logger.bold('Build:')} ${logger.dim('Build components for development or production.')} - - ${prompt} ${logger.green('stencil build [--dev] [--watch] [--prerender] [--debug]')} - - ${logger.cyan('--dev')} ${logger.dim('.............')} Development build - ${logger.cyan('--watch')} ${logger.dim('...........')} Rebuild when files update - ${logger.cyan('--serve')} ${logger.dim('...........')} Start the dev-server - ${logger.cyan('--prerender')} ${logger.dim('.......')} Prerender the application - ${logger.cyan('--docs')} ${logger.dim('............')} Generate component readme.md docs - ${logger.cyan('--config')} ${logger.dim('..........')} Set stencil config file - ${logger.cyan('--stats')} ${logger.dim('...........')} Write stencil-stats.json file - ${logger.cyan('--log')} ${logger.dim('.............')} Write stencil-build.log file - ${logger.cyan('--debug')} ${logger.dim('...........')} Set the log level to debug - - - ${logger.bold('Test:')} ${logger.dim('Run unit and end-to-end tests.')} - - ${prompt} ${logger.green('stencil test [--spec] [--e2e]')} - - ${logger.cyan('--spec')} ${logger.dim('............')} Run unit tests with Jest - ${logger.cyan('--e2e')} ${logger.dim('.............')} Run e2e tests with Puppeteer - - - ${logger.bold('Generate:')} ${logger.dim('Bootstrap components.')} - - ${prompt} ${logger.green('stencil generate')} or ${logger.green('stencil g')} - -`); - await taskTelemetry(flags, sys, logger); - console.log(` - ${logger.bold('Examples:')} - - ${prompt} ${logger.green('stencil build --dev --watch --serve')} - ${prompt} ${logger.green('stencil build --prerender')} - ${prompt} ${logger.green('stencil test --spec --e2e')} - ${prompt} ${logger.green('stencil telemetry on')} - ${prompt} ${logger.green('stencil generate')} - ${prompt} ${logger.green('stencil g my-component')} -`); -}; -//# sourceMappingURL=task-help.js.map \ No newline at end of file diff --git a/build/cli/task-help.js.map b/build/cli/task-help.js.map deleted file mode 100644 index d3f6104cccf..00000000000 --- a/build/cli/task-help.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-help.js","sourceRoot":"","sources":["../../src/cli/task-help.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAAE,KAAkB,EAAE,MAAgB,EAAE,GAAqB,EAAiB,EAAE;IAC3G,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAE1E,OAAO,CAAC,GAAG,CAAC;IACV,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,iDAAiD,CAAC;;MAEpF,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,yDAAyD,CAAC;;QAE/E,MAAM,CAAC,IAAI,CAAC,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,CAAC;;CAE/E,CAAC,CAAC;IAED,MAAM,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;IAExC,OAAO,CAAC,GAAG,CAAC;IACV,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;;IAExB,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,qCAAqC,CAAC;IAC7D,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,2BAA2B,CAAC;IACnD,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,2BAA2B,CAAC;IACnD,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC;IAC9C,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC;IAC1C,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC;CACnD,CAAC,CAAC;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/task-info.d.ts b/build/cli/task-info.d.ts deleted file mode 100644 index d863af20e52..00000000000 --- a/build/cli/task-info.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { CompilerSystem, Logger } from '../declarations'; -import type { CoreCompiler } from './load-compiler'; -/** - * Generate the output for Stencils 'info' task, and log that output - `npx stencil info` - * @param coreCompiler the compiler instance to derive certain version information from - * @param sys the compiler system instance that provides details about the system Stencil is running on - * @param logger the logger instance to use to log information out to - */ -export declare const taskInfo: (coreCompiler: CoreCompiler, sys: CompilerSystem, logger: Logger) => void; diff --git a/build/cli/task-info.js b/build/cli/task-info.js deleted file mode 100644 index cd0bcddf576..00000000000 --- a/build/cli/task-info.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Generate the output for Stencils 'info' task, and log that output - `npx stencil info` - * @param coreCompiler the compiler instance to derive certain version information from - * @param sys the compiler system instance that provides details about the system Stencil is running on - * @param logger the logger instance to use to log information out to - */ -export const taskInfo = (coreCompiler, sys, logger) => { - const details = sys.details; - const versions = coreCompiler.versions; - console.log(``); - console.log(`${logger.cyan(' System:')} ${sys.name} ${sys.version}`); - console.log(`${logger.cyan(' Platform:')} ${details.platform} (${details.release})`); - console.log(`${logger.cyan(' CPU Model:')} ${details.cpuModel} (${sys.hardwareConcurrency} cpu${sys.hardwareConcurrency !== 1 ? 's' : ''})`); - console.log(`${logger.cyan(' Compiler:')} ${sys.getCompilerExecutingPath()}`); - console.log(`${logger.cyan(' Build:')} ${coreCompiler.buildId}`); - console.log(`${logger.cyan(' Stencil:')} ${coreCompiler.version}${logger.emoji(' ' + coreCompiler.vermoji)}`); - console.log(`${logger.cyan(' TypeScript:')} ${versions.typescript}`); - console.log(`${logger.cyan(' Rollup:')} ${versions.rollup}`); - console.log(`${logger.cyan(' Parse5:')} ${versions.parse5}`); - console.log(`${logger.cyan(' Sizzle:')} ${versions.sizzle}`); - console.log(`${logger.cyan(' Terser:')} ${versions.terser}`); - console.log(``); -}; -//# sourceMappingURL=task-info.js.map \ No newline at end of file diff --git a/build/cli/task-info.js.map b/build/cli/task-info.js.map deleted file mode 100644 index 7050a0abab4..00000000000 --- a/build/cli/task-info.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-info.js","sourceRoot":"","sources":["../../src/cli/task-info.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,YAA0B,EAAE,GAAmB,EAAE,MAAc,EAAQ,EAAE;IAChG,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;IAC5B,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC;IAEvC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IAC1E,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,OA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CAAC,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAClE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/task-prerender.d.ts b/build/cli/task-prerender.d.ts deleted file mode 100644 index 11da6294401..00000000000 --- a/build/cli/task-prerender.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { BuildResultsComponentGraph, Diagnostic, ValidatedConfig } from '../declarations'; -import type { CoreCompiler } from './load-compiler'; -export declare const taskPrerender: (coreCompiler: CoreCompiler, config: ValidatedConfig) => Promise; -export declare const runPrerenderTask: (coreCompiler: CoreCompiler, config: ValidatedConfig, hydrateAppFilePath: string, componentGraph: BuildResultsComponentGraph, srcIndexHtmlPath: string) => Promise; diff --git a/build/cli/task-prerender.js b/build/cli/task-prerender.js deleted file mode 100644 index 55a751da30d..00000000000 --- a/build/cli/task-prerender.js +++ /dev/null @@ -1,33 +0,0 @@ -import { catchError } from '@utils'; -import { startupCompilerLog } from './logs'; -export const taskPrerender = async (coreCompiler, config) => { - startupCompilerLog(coreCompiler, config); - const hydrateAppFilePath = config.flags.unknownArgs[0]; - if (typeof hydrateAppFilePath !== 'string') { - config.logger.error(`Missing hydrate app script path`); - return config.sys.exit(1); - } - const srcIndexHtmlPath = config.srcIndexHtml; - const diagnostics = await runPrerenderTask(coreCompiler, config, hydrateAppFilePath, null, srcIndexHtmlPath); - config.logger.printDiagnostics(diagnostics); - if (diagnostics.some((d) => d.level === 'error')) { - return config.sys.exit(1); - } -}; -export const runPrerenderTask = async (coreCompiler, config, hydrateAppFilePath, componentGraph, srcIndexHtmlPath) => { - const diagnostics = []; - try { - const prerenderer = await coreCompiler.createPrerenderer(config); - const results = await prerenderer.start({ - hydrateAppFilePath, - componentGraph, - srcIndexHtmlPath, - }); - diagnostics.push(...results.diagnostics); - } - catch (e) { - catchError(diagnostics, e); - } - return diagnostics; -}; -//# sourceMappingURL=task-prerender.js.map \ No newline at end of file diff --git a/build/cli/task-prerender.js.map b/build/cli/task-prerender.js.map deleted file mode 100644 index 17111abfb43..00000000000 --- a/build/cli/task-prerender.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-prerender.js","sourceRoot":"","sources":["../../src/cli/task-prerender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAIpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,YAA0B,EAAE,MAAuB,EAAE,EAAE;IACzF,kBAAkB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAEzC,MAAM,kBAAkB,GAAG,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAEvD,IAAI,OAAO,kBAAkB,KAAK,QAAQ,EAAE;QAC1C,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACvD,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAC3B;IAED,MAAM,gBAAgB,GAAG,MAAM,CAAC,YAAY,CAAC;IAE7C,MAAM,WAAW,GAAG,MAAM,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,IAAI,EAAE,gBAAgB,CAAC,CAAC;IAC7G,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAE5C,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,OAAO,CAAC,EAAE;QAChD,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAC3B;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EACnC,YAA0B,EAC1B,MAAuB,EACvB,kBAA0B,EAC1B,cAA0C,EAC1C,gBAAwB,EACxB,EAAE;IACF,MAAM,WAAW,GAAiB,EAAE,CAAC;IAErC,IAAI;QACF,MAAM,WAAW,GAAG,MAAM,YAAY,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACjE,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,KAAK,CAAC;YACtC,kBAAkB;YAClB,cAAc;YACd,gBAAgB;SACjB,CAAC,CAAC;QAEH,WAAW,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;KAC1C;IAAC,OAAO,CAAM,EAAE;QACf,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;KAC5B;IAED,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/task-serve.d.ts b/build/cli/task-serve.d.ts deleted file mode 100644 index 1221d7655e3..00000000000 --- a/build/cli/task-serve.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { ValidatedConfig } from '../declarations'; -export declare const taskServe: (config: ValidatedConfig) => Promise; diff --git a/build/cli/task-serve.js b/build/cli/task-serve.js deleted file mode 100644 index 444174ae2e4..00000000000 --- a/build/cli/task-serve.js +++ /dev/null @@ -1,26 +0,0 @@ -import { isString } from '@utils'; -export const taskServe = async (config) => { - config.suppressLogs = true; - config.flags.serve = true; - config.devServer.openBrowser = !!config.flags.open; - config.devServer.reloadStrategy = null; - config.devServer.initialLoadUrl = '/'; - config.devServer.websocket = false; - config.maxConcurrentWorkers = 1; - config.devServer.root = isString(config.flags.root) ? config.flags.root : config.sys.getCurrentDirectory(); - const devServerPath = config.sys.getDevServerExecutingPath(); - const { start } = await config.sys.dynamicImport(devServerPath); - const devServer = await start(config.devServer, config.logger); - console.log(`${config.logger.cyan(' Root:')} ${devServer.root}`); - console.log(`${config.logger.cyan(' Address:')} ${devServer.address}`); - console.log(`${config.logger.cyan(' Port:')} ${devServer.port}`); - console.log(`${config.logger.cyan(' Server:')} ${devServer.browserUrl}`); - console.log(``); - config.sys.onProcessInterrupt(() => { - if (devServer) { - config.logger.debug(`dev server close: ${devServer.browserUrl}`); - devServer.close(); - } - }); -}; -//# sourceMappingURL=task-serve.js.map \ No newline at end of file diff --git a/build/cli/task-serve.js.map b/build/cli/task-serve.js.map deleted file mode 100644 index 9f3bfd204e3..00000000000 --- a/build/cli/task-serve.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-serve.js","sourceRoot":"","sources":["../../src/cli/task-serve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIlC,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAE,MAAuB,EAAE,EAAE;IACzD,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC;IAE3B,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,SAAS,CAAC,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;IACnD,MAAM,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC;IACvC,MAAM,CAAC,SAAS,CAAC,cAAc,GAAG,GAAG,CAAC;IACtC,MAAM,CAAC,SAAS,CAAC,SAAS,GAAG,KAAK,CAAC;IACnC,MAAM,CAAC,oBAAoB,GAAG,CAAC,CAAC;IAChC,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC;IAE3G,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,yBAAyB,EAAE,CAAC;IAC7D,MAAM,EAAE,KAAK,EAAE,GAA8C,MAAM,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3G,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAE/D,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;IACrE,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;IACrE,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3E,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEhB,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,EAAE;QACjC,IAAI,SAAS,EAAE;YACb,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,qBAAqB,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;YACjE,SAAS,CAAC,KAAK,EAAE,CAAC;SACnB;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/task-telemetry.d.ts b/build/cli/task-telemetry.d.ts deleted file mode 100644 index 77e3e63698c..00000000000 --- a/build/cli/task-telemetry.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type * as d from '../declarations'; -import { ConfigFlags } from './config-flags'; -/** - * Entrypoint for the Telemetry task - * @param flags configuration flags provided to Stencil when a task was called (either this task or a task that invokes - * telemetry) - * @param sys the abstraction for interfacing with the operating system - * @param logger a logging implementation to log the results out to the user - */ -export declare const taskTelemetry: (flags: ConfigFlags, sys: d.CompilerSystem, logger: d.Logger) => Promise; diff --git a/build/cli/task-telemetry.js b/build/cli/task-telemetry.js deleted file mode 100644 index bb5349625fb..00000000000 --- a/build/cli/task-telemetry.js +++ /dev/null @@ -1,40 +0,0 @@ -import { checkTelemetry, disableTelemetry, enableTelemetry } from './telemetry/telemetry'; -/** - * Entrypoint for the Telemetry task - * @param flags configuration flags provided to Stencil when a task was called (either this task or a task that invokes - * telemetry) - * @param sys the abstraction for interfacing with the operating system - * @param logger a logging implementation to log the results out to the user - */ -export const taskTelemetry = async (flags, sys, logger) => { - const prompt = logger.dim(sys.details.platform === 'windows' ? '>' : '$'); - const isEnabling = flags.args.includes('on'); - const isDisabling = flags.args.includes('off'); - const INFORMATION = `Opt in or out of telemetry. Information about the data we collect is available on our website: ${logger.bold('https://stenciljs.com/telemetry')}`; - const THANK_YOU = `Thank you for helping to make Stencil better! 💖`; - const ENABLED_MESSAGE = `${logger.green('Enabled')}. ${THANK_YOU}\n\n`; - const DISABLED_MESSAGE = `${logger.red('Disabled')}\n\n`; - const hasTelemetry = await checkTelemetry(sys); - if (isEnabling) { - const result = await enableTelemetry(sys); - result - ? console.log(`\n ${logger.bold('Telemetry is now ') + ENABLED_MESSAGE}`) - : console.log(`Something went wrong when enabling Telemetry.`); - return; - } - if (isDisabling) { - const result = await disableTelemetry(sys); - result - ? console.log(`\n ${logger.bold('Telemetry is now ') + DISABLED_MESSAGE}`) - : console.log(`Something went wrong when disabling Telemetry.`); - return; - } - console.log(` ${logger.bold('Telemetry:')} ${logger.dim(INFORMATION)}`); - console.log(`\n ${logger.bold('Status')}: ${hasTelemetry ? ENABLED_MESSAGE : DISABLED_MESSAGE}`); - console.log(` ${prompt} ${logger.green('stencil telemetry [off|on]')} - - ${logger.cyan('off')} ${logger.dim('.............')} Disable sharing anonymous usage data - ${logger.cyan('on')} ${logger.dim('..............')} Enable sharing anonymous usage data - `); -}; -//# sourceMappingURL=task-telemetry.js.map \ No newline at end of file diff --git a/build/cli/task-telemetry.js.map b/build/cli/task-telemetry.js.map deleted file mode 100644 index 5804b6b29e5..00000000000 --- a/build/cli/task-telemetry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-telemetry.js","sourceRoot":"","sources":["../../src/cli/task-telemetry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE1F;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,KAAkB,EAAE,GAAqB,EAAE,MAAgB,EAAiB,EAAE;IAChH,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC1E,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/C,MAAM,WAAW,GAAG,kGAAkG,MAAM,CAAC,IAAI,CAC/H,iCAAiC,CAClC,EAAE,CAAC;IACJ,MAAM,SAAS,GAAG,kDAAkD,CAAC;IACrE,MAAM,eAAe,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS,MAAM,CAAC;IACvE,MAAM,gBAAgB,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC;IACzD,MAAM,YAAY,GAAG,MAAM,cAAc,CAAC,GAAG,CAAC,CAAC;IAE/C,IAAI,UAAU,EAAE;QACd,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,GAAG,CAAC,CAAC;QAC1C,MAAM;YACJ,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAAG,eAAe,EAAE,CAAC;YAC1E,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAC;QACjE,OAAO;KACR;IAED,IAAI,WAAW,EAAE;QACf,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAC3C,MAAM;YACJ,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAAG,gBAAgB,EAAE,CAAC;YAC3E,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,gDAAgD,CAAC,CAAC;QAClE,OAAO;KACR;IAED,OAAO,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAEzE,OAAO,CAAC,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAElG,OAAO,CAAC,GAAG,CAAC,OAAO,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAAC;;UAE/D,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC;UACjD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;GACxD,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/task-test.d.ts b/build/cli/task-test.d.ts deleted file mode 100644 index 3cb8edba78e..00000000000 --- a/build/cli/task-test.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ValidatedConfig } from '../declarations'; -/** - * Entrypoint for any Stencil tests - * @param config a validated Stencil configuration entity - * @returns a void promise - */ -export declare const taskTest: (config: ValidatedConfig) => Promise; diff --git a/build/cli/task-test.js b/build/cli/task-test.js deleted file mode 100644 index 9f621ecaa03..00000000000 --- a/build/cli/task-test.js +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Entrypoint for any Stencil tests - * @param config a validated Stencil configuration entity - * @returns a void promise - */ -export const taskTest = async (config) => { - config.buildDocs = false; - const testingRunOpts = { - e2e: !!config.flags.e2e, - screenshot: !!config.flags.screenshot, - spec: !!config.flags.spec, - updateScreenshot: !!config.flags.updateScreenshot, - }; - // always ensure we have jest modules installed - const ensureModuleIds = ['@types/jest', 'jest', 'jest-cli']; - if (testingRunOpts.e2e) { - // if it's an e2e test, also make sure we're got - // puppeteer modules installed and if browserExecutablePath is provided don't download Chromium use only puppeteer-core instead - const puppeteer = config.testing.browserExecutablePath ? 'puppeteer-core' : 'puppeteer'; - ensureModuleIds.push(puppeteer); - if (testingRunOpts.screenshot) { - // ensure we've got pixelmatch for screenshots - config.logger.warn(config.logger.yellow(`EXPERIMENTAL: screenshot visual diff testing is currently under heavy development and has not reached a stable status. However, any assistance testing would be appreciated.`)); - } - } - // ensure we've got the required modules installed - const diagnostics = await config.sys.lazyRequire.ensure(config.rootDir, ensureModuleIds); - if (diagnostics.length > 0) { - config.logger.printDiagnostics(diagnostics); - return config.sys.exit(1); - } - try { - /** - * We dynamically import the testing submodule here in order for Stencil's lazy module checking to work properly. - * - * Prior to this call, we create a collection of string-based node module names and ensure that they're installed & - * on disk. The testing submodule includes `jest` (amongst other) testing libraries in its dependency chain. We need - * to run the lazy module check _before_ we include `jest` et al. in our dependency chain otherwise, the lazy module - * checking would fail to run properly (because we'd import `jest`, which wouldn't exist, before we even checked if - * it was installed). - */ - const { createTesting } = await import('@stencil/core/testing'); - const testing = await createTesting(config); - const passed = await testing.run(testingRunOpts); - await testing.destroy(); - if (!passed) { - return config.sys.exit(1); - } - } - catch (e) { - config.logger.error(e); - return config.sys.exit(1); - } -}; -//# sourceMappingURL=task-test.js.map \ No newline at end of file diff --git a/build/cli/task-test.js.map b/build/cli/task-test.js.map deleted file mode 100644 index ebff967e595..00000000000 --- a/build/cli/task-test.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-test.js","sourceRoot":"","sources":["../../src/cli/task-test.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAAE,MAAuB,EAAiB,EAAE;IACvE,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC;IACzB,MAAM,cAAc,GAAsB;QACxC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG;QACvB,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU;QACrC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI;QACzB,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB;KAClD,CAAC;IAEF,+CAA+C;IAC/C,MAAM,eAAe,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;IAE5D,IAAI,cAAc,CAAC,GAAG,EAAE;QACtB,gDAAgD;QAChD,+HAA+H;QAC/H,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,CAAC;QAExF,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEhC,IAAI,cAAc,CAAC,UAAU,EAAE;YAC7B,8CAA8C;YAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,CAChB,MAAM,CAAC,MAAM,CAAC,MAAM,CAClB,8KAA8K,CAC/K,CACF,CAAC;SACH;KACF;IAED,kDAAkD;IAClD,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IACzF,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QAC1B,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC5C,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAC3B;IAED,IAAI;QACF;;;;;;;;WAQG;QACH,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;QAChE,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC,CAAC;QAC5C,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACjD,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;QAExB,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SAC3B;KACF;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAC3B;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/task-watch.d.ts b/build/cli/task-watch.d.ts deleted file mode 100644 index c2c942aa5f4..00000000000 --- a/build/cli/task-watch.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ValidatedConfig } from '../declarations'; -import type { CoreCompiler } from './load-compiler'; -export declare const taskWatch: (coreCompiler: CoreCompiler, config: ValidatedConfig) => Promise; diff --git a/build/cli/task-watch.js b/build/cli/task-watch.js deleted file mode 100644 index 4bb5cc11b1a..00000000000 --- a/build/cli/task-watch.js +++ /dev/null @@ -1,50 +0,0 @@ -import { printCheckVersionResults, startCheckVersion } from './check-version'; -import { startupCompilerLog } from './logs'; -export const taskWatch = async (coreCompiler, config) => { - let devServer = null; - let exitCode = 0; - try { - startupCompilerLog(coreCompiler, config); - const versionChecker = startCheckVersion(config, coreCompiler.version); - const compiler = await coreCompiler.createCompiler(config); - const watcher = await compiler.createWatcher(); - if (config.flags.serve) { - const devServerPath = config.sys.getDevServerExecutingPath(); - const { start } = await config.sys.dynamicImport(devServerPath); - devServer = await start(config.devServer, config.logger, watcher); - } - config.sys.onProcessInterrupt(() => { - config.logger.debug(`close watch`); - compiler && compiler.destroy(); - }); - const rmVersionCheckerLog = watcher.on('buildFinish', async () => { - // log the version check one time - rmVersionCheckerLog(); - printCheckVersionResults(versionChecker); - }); - if (devServer) { - const rmDevServerLog = watcher.on('buildFinish', () => { - var _a; - // log the dev server url one time - rmDevServerLog(); - const url = (_a = devServer === null || devServer === void 0 ? void 0 : devServer.browserUrl) !== null && _a !== void 0 ? _a : 'UNKNOWN URL'; - config.logger.info(`${config.logger.cyan(url)}\n`); - }); - } - const closeResults = await watcher.start(); - if (closeResults.exitCode > 0) { - exitCode = closeResults.exitCode; - } - } - catch (e) { - exitCode = 1; - config.logger.error(e); - } - if (devServer) { - await devServer.close(); - } - if (exitCode > 0) { - return config.sys.exit(exitCode); - } -}; -//# sourceMappingURL=task-watch.js.map \ No newline at end of file diff --git a/build/cli/task-watch.js.map b/build/cli/task-watch.js.map deleted file mode 100644 index 6e14bb2fd22..00000000000 --- a/build/cli/task-watch.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-watch.js","sourceRoot":"","sources":["../../src/cli/task-watch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAE,YAA0B,EAAE,MAAuB,EAAE,EAAE;IACrF,IAAI,SAAS,GAAqB,IAAI,CAAC;IACvC,IAAI,QAAQ,GAAG,CAAC,CAAC;IAEjB,IAAI;QACF,kBAAkB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QAEzC,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,CAA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AM,YAAY,GAAG,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;QAC3C,IAAI,YAAY,CAAC,QAAQ,GAAG,CAAC,EAAE;YAC7B,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC;SAClC;KACF;IAAC,OAAO,CAAC,EAAE;QACV,QAAQ,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACxB;IAED,IAAI,SAAS,EAAE;QACb,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;KACzB;IAED,IAAI,QAAQ,GAAG,CAAC,EAAE;QAChB,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAClC;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/telemetry/helpers.d.ts b/build/cli/telemetry/helpers.d.ts deleted file mode 100644 index d17b1f40157..00000000000 --- a/build/cli/telemetry/helpers.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type * as d from '../../declarations'; -import { ConfigFlags } from '../config-flags'; -export declare const tryFn: Promise, R>(fn: T, ...args: any[]) => Promise; -export declare const isInteractive: (sys: d.CompilerSystem, flags: ConfigFlags, object?: d.TerminalInfo) => boolean; -export declare const UUID_REGEX: RegExp; -export declare function uuidv4(): string; -/** - * Reads and parses a JSON file from the given `path` - * @param sys The system where the command is invoked - * @param path the path on the file system to read and parse - * @returns the parsed JSON - */ -export declare function readJson(sys: d.CompilerSystem, path: string): Promise; -/** - * Does the command have the debug flag? - * @param flags The configuration flags passed into the Stencil command - * @returns true if --debug has been passed, otherwise false - */ -export declare function hasDebug(flags: ConfigFlags): boolean; -/** - * Does the command have the verbose and debug flags? - * @param flags The configuration flags passed into the Stencil command - * @returns true if both --debug and --verbose have been passed, otherwise false - */ -export declare function hasVerbose(flags: ConfigFlags): boolean; diff --git a/build/cli/telemetry/helpers.js b/build/cli/telemetry/helpers.js deleted file mode 100644 index a517d6266cd..00000000000 --- a/build/cli/telemetry/helpers.js +++ /dev/null @@ -1,53 +0,0 @@ -export const tryFn = async (fn, ...args) => { - try { - return await fn(...args); - } - catch (_a) { - // ignore - } - return null; -}; -export const isInteractive = (sys, flags, object) => { - const terminalInfo = object || - Object.freeze({ - tty: sys.isTTY() ? true : false, - ci: ['CI', 'BUILD_ID', 'BUILD_NUMBER', 'BITBUCKET_COMMIT', 'CODEBUILD_BUILD_ARN'].filter((v) => { var _a; return !!((_a = sys.getEnvironmentVar) === null || _a === void 0 ? void 0 : _a.call(sys, v)); }).length > 0 || !!flags.ci, - }); - return terminalInfo.tty && !terminalInfo.ci; -}; -export const UUID_REGEX = new RegExp(/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i); -// Plucked from https://github.com/ionic-team/capacitor/blob/b893a57aaaf3a16e13db9c33037a12f1a5ac92e0/cli/src/util/uuid.ts -export function uuidv4() { - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { - const r = (Math.random() * 16) | 0; - const v = c == 'x' ? r : (r & 0x3) | 0x8; - return v.toString(16); - }); -} -/** - * Reads and parses a JSON file from the given `path` - * @param sys The system where the command is invoked - * @param path the path on the file system to read and parse - * @returns the parsed JSON - */ -export async function readJson(sys, path) { - const file = await sys.readFile(path); - return !!file && JSON.parse(file); -} -/** - * Does the command have the debug flag? - * @param flags The configuration flags passed into the Stencil command - * @returns true if --debug has been passed, otherwise false - */ -export function hasDebug(flags) { - return !!flags.debug; -} -/** - * Does the command have the verbose and debug flags? - * @param flags The configuration flags passed into the Stencil command - * @returns true if both --debug and --verbose have been passed, otherwise false - */ -export function hasVerbose(flags) { - return !!flags.verbose && hasDebug(flags); -} -//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/build/cli/telemetry/helpers.js.map b/build/cli/telemetry/helpers.js.map deleted file mode 100644 index c064bf7fc04..00000000000 --- a/build/cli/telemetry/helpers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G,CAAC,CAAC;QACnC,MAAM,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;QAEzC,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,GAAqB,EAAE,IAAY;IAChE,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtC,OAAO,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAkB;IACzC,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;AACvB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,KAAkB;IAC3C,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC"} \ No newline at end of file diff --git a/build/cli/telemetry/shouldTrack.d.ts b/build/cli/telemetry/shouldTrack.d.ts deleted file mode 100644 index 49686aa2118..00000000000 --- a/build/cli/telemetry/shouldTrack.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import * as d from '../../declarations'; -/** - * Used to determine if tracking should occur. - * @param config The config passed into the Stencil command - * @param sys The system where the command is invoked - * @param ci whether or not the process is running in a Continuous Integration (CI) environment - * @returns true if telemetry should be sent, false otherwise - */ -export declare function shouldTrack(config: d.ValidatedConfig, sys: d.CompilerSystem, ci?: boolean): Promise; diff --git a/build/cli/telemetry/shouldTrack.js b/build/cli/telemetry/shouldTrack.js deleted file mode 100644 index 3fb95aa9251..00000000000 --- a/build/cli/telemetry/shouldTrack.js +++ /dev/null @@ -1,13 +0,0 @@ -import { isInteractive } from './helpers'; -import { checkTelemetry } from './telemetry'; -/** - * Used to determine if tracking should occur. - * @param config The config passed into the Stencil command - * @param sys The system where the command is invoked - * @param ci whether or not the process is running in a Continuous Integration (CI) environment - * @returns true if telemetry should be sent, false otherwise - */ -export async function shouldTrack(config, sys, ci) { - return !ci && isInteractive(sys, config.flags) && (await checkTelemetry(sys)); -} -//# sourceMappingURL=shouldTrack.js.map \ No newline at end of file diff --git a/build/cli/telemetry/shouldTrack.js.map b/build/cli/telemetry/shouldTrack.js.map deleted file mode 100644 index 34fc9129234..00000000000 --- a/build/cli/telemetry/shouldTrack.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shouldTrack.js","sourceRoot":"","sources":["../../../src/cli/telemetry/shouldTrack.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAAyB,EAAE,GAAqB,EAAE,EAAY;IAC9F,OAAO,CAAC,EAAE,IAAI,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AAChF,CAAC"} \ No newline at end of file diff --git a/build/cli/telemetry/telemetry.d.ts b/build/cli/telemetry/telemetry.d.ts deleted file mode 100644 index 2e0c35e3a6c..00000000000 --- a/build/cli/telemetry/telemetry.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import type * as d from '../../declarations'; -import { CoreCompiler } from '../load-compiler'; -/** - * Used to within taskBuild to provide the component_count property. - * - * @param sys The system where the command is invoked - * @param config The config passed into the Stencil command - * @param coreCompiler The compiler used to do builds - * @param result The results of a compiler build. - */ -export declare function telemetryBuildFinishedAction(sys: d.CompilerSystem, config: d.ValidatedConfig, coreCompiler: CoreCompiler, result: d.CompilerBuildResults): Promise; -/** - * A function to wrap a compiler task function around. Will send telemetry if, and only if, the machine allows. - * - * @param sys The system where the command is invoked - * @param config The config passed into the Stencil command - * @param coreCompiler The compiler used to do builds - * @param action A Promise-based function to call in order to get the duration of any given command. - * @returns void - */ -export declare function telemetryAction(sys: d.CompilerSystem, config: d.ValidatedConfig, coreCompiler: CoreCompiler, action?: d.TelemetryCallback): Promise; -/** - * Helper function to determine if a Stencil configuration builds an application. - * - * This function is a rough approximation whether an application is generated as a part of a Stencil build, based on - * contents of the project's `stencil.config.ts` file. - * - * @param config the configuration used by the Stencil project - * @returns true if we believe the project generates an application, false otherwise - */ -export declare function hasAppTarget(config: d.ValidatedConfig): boolean; -export declare function isUsingYarn(sys: d.CompilerSystem): boolean; -/** - * Build a list of the different types of output targets used in a Stencil configuration. - * - * Duplicate entries will not be returned from the list - * - * @param config the configuration used by the Stencil project - * @returns a unique list of output target types found in the Stencil configuration - */ -export declare function getActiveTargets(config: d.ValidatedConfig): string[]; -/** - * Prepare data for telemetry - * - * @param coreCompiler the core compiler - * @param config the current Stencil config - * @param sys the compiler system instance in use - * @param duration_ms the duration of the action being tracked - * @param component_count the number of components being built (optional) - * @returns a Promise wrapping data for the telemetry endpoint - */ -export declare const prepareData: (coreCompiler: CoreCompiler, config: d.ValidatedConfig, sys: d.CompilerSystem, duration_ms: number | undefined, component_count?: number | undefined) => Promise; -/** - * Anonymize the config for telemetry, replacing potentially revealing config props - * with a placeholder string if they are present (this lets us still track how frequently - * these config options are being used) - * - * @param config the config to anonymize - * @returns an anonymized copy of the same config - */ -export declare const anonymizeConfigForTelemetry: (config: d.ValidatedConfig) => d.Config; -/** - * If telemetry is enabled, send a metric to an external data store - * - * @param sys the system instance where telemetry is invoked - * @param config the Stencil configuration associated with the current task that triggered telemetry - * @param name the name of a trackable metric. Note this name is not necessarily a scalar value to track, like - * "Stencil Version". For example, "stencil_cli_command" is a name that is used to track all CLI command information. - * @param value the data to send to the external data store under the provided name argument - */ -export declare function sendMetric(sys: d.CompilerSystem, config: d.ValidatedConfig, name: string, value: d.TrackableData): Promise; -/** - * Checks if telemetry is enabled on this machine - * @param sys The system where the command is invoked - * @returns true if telemetry is enabled, false otherwise - */ -export declare function checkTelemetry(sys: d.CompilerSystem): Promise; -/** - * Writes to the config file, enabling telemetry for this machine. - * @param sys The system where the command is invoked - * @returns true if writing the file was successful, false otherwise - */ -export declare function enableTelemetry(sys: d.CompilerSystem): Promise; -/** - * Writes to the config file, disabling telemetry for this machine. - * @param sys The system where the command is invoked - * @returns true if writing the file was successful, false otherwise - */ -export declare function disableTelemetry(sys: d.CompilerSystem): Promise; diff --git a/build/cli/telemetry/telemetry.js b/build/cli/telemetry/telemetry.js deleted file mode 100644 index 78e481c64c6..00000000000 --- a/build/cli/telemetry/telemetry.js +++ /dev/null @@ -1,398 +0,0 @@ -import { isOutputTargetHydrate, WWW } from '@utils'; -import { readConfig, updateConfig, writeConfig } from '../ionic-config'; -import { hasDebug, hasVerbose, readJson, tryFn, uuidv4 } from './helpers'; -import { shouldTrack } from './shouldTrack'; -/** - * Used to within taskBuild to provide the component_count property. - * - * @param sys The system where the command is invoked - * @param config The config passed into the Stencil command - * @param coreCompiler The compiler used to do builds - * @param result The results of a compiler build. - */ -export async function telemetryBuildFinishedAction(sys, config, coreCompiler, result) { - const tracking = await shouldTrack(config, sys, !!config.flags.ci); - if (!tracking) { - return; - } - const component_count = result.componentGraph ? Object.keys(result.componentGraph).length : undefined; - const data = await prepareData(coreCompiler, config, sys, result.duration, component_count); - await sendMetric(sys, config, 'stencil_cli_command', data); - config.logger.debug(`${config.logger.blue('Telemetry')}: ${config.logger.gray(JSON.stringify(data))}`); -} -/** - * A function to wrap a compiler task function around. Will send telemetry if, and only if, the machine allows. - * - * @param sys The system where the command is invoked - * @param config The config passed into the Stencil command - * @param coreCompiler The compiler used to do builds - * @param action A Promise-based function to call in order to get the duration of any given command. - * @returns void - */ -export async function telemetryAction(sys, config, coreCompiler, action) { - const tracking = await shouldTrack(config, sys, !!config.flags.ci); - let duration = undefined; - let error; - if (action) { - const start = new Date(); - try { - await action(); - } - catch (e) { - error = e; - } - const end = new Date(); - duration = end.getTime() - start.getTime(); - } - // We'll get componentCount details inside the taskBuild, so let's not send two messages. - if (!tracking || (config.flags.task == 'build' && !config.flags.args.includes('--watch'))) { - return; - } - const data = await prepareData(coreCompiler, config, sys, duration); - await sendMetric(sys, config, 'stencil_cli_command', data); - config.logger.debug(`${config.logger.blue('Telemetry')}: ${config.logger.gray(JSON.stringify(data))}`); - if (error) { - throw error; - } -} -/** - * Helper function to determine if a Stencil configuration builds an application. - * - * This function is a rough approximation whether an application is generated as a part of a Stencil build, based on - * contents of the project's `stencil.config.ts` file. - * - * @param config the configuration used by the Stencil project - * @returns true if we believe the project generates an application, false otherwise - */ -export function hasAppTarget(config) { - return config.outputTargets.some((target) => target.type === WWW && (!!target.serviceWorker || (!!target.baseUrl && target.baseUrl !== '/'))); -} -export function isUsingYarn(sys) { - var _a; - return ((_a = sys.getEnvironmentVar('npm_execpath')) === null || _a === void 0 ? void 0 : _a.includes('yarn')) || false; -} -/** - * Build a list of the different types of output targets used in a Stencil configuration. - * - * Duplicate entries will not be returned from the list - * - * @param config the configuration used by the Stencil project - * @returns a unique list of output target types found in the Stencil configuration - */ -export function getActiveTargets(config) { - const result = config.outputTargets.map((t) => t.type); - return Array.from(new Set(result)); -} -/** - * Prepare data for telemetry - * - * @param coreCompiler the core compiler - * @param config the current Stencil config - * @param sys the compiler system instance in use - * @param duration_ms the duration of the action being tracked - * @param component_count the number of components being built (optional) - * @returns a Promise wrapping data for the telemetry endpoint - */ -export const prepareData = async (coreCompiler, config, sys, duration_ms, component_count = undefined) => { - var _a, _b, _c; - const { typescript, rollup } = coreCompiler.versions || { typescript: 'unknown', rollup: 'unknown' }; - const { packages, packagesNoVersions } = await getInstalledPackages(sys, config); - const targets = getActiveTargets(config); - const yarn = isUsingYarn(sys); - const stencil = coreCompiler.version || 'unknown'; - const system = `${sys.name} ${sys.version}`; - const os_name = (_a = sys.details) === null || _a === void 0 ? void 0 : _a.platform; - const os_version = (_b = sys.details) === null || _b === void 0 ? void 0 : _b.release; - const cpu_model = (_c = sys.details) === null || _c === void 0 ? void 0 : _c.cpuModel; - const build = coreCompiler.buildId || 'unknown'; - const has_app_pwa_config = hasAppTarget(config); - const anonymizedConfig = anonymizeConfigForTelemetry(config); - return { - arguments: config.flags.args, - build, - component_count, - config: anonymizedConfig, - cpu_model, - duration_ms, - has_app_pwa_config, - os_name, - os_version, - packages, - packages_no_versions: packagesNoVersions, - rollup, - stencil, - system, - system_major: getMajorVersion(system), - targets, - task: config.flags.task, - typescript, - yarn, - }; -}; -// props in output targets for which we retain their original values when -// preparing a config for telemetry -// -// we omit the values of all other fields on output targets. -const OUTPUT_TARGET_KEYS_TO_KEEP = ['type']; -// top-level config props that we anonymize for telemetry -const CONFIG_PROPS_TO_ANONYMIZE = [ - 'rootDir', - 'fsNamespace', - 'packageJsonFilePath', - 'namespace', - 'srcDir', - 'srcIndexHtml', - 'buildLogFilePath', - 'cacheDir', - 'configPath', - 'tsconfig', -]; -// Props we delete entirely from the config for telemetry -// -// TODO(STENCIL-469): Investigate improving anonymization for tsCompilerOptions and devServer -const CONFIG_PROPS_TO_DELETE = [ - 'commonjs', - 'devServer', - 'env', - 'logger', - 'rollupConfig', - 'sys', - 'testing', - 'tsCompilerOptions', -]; -/** - * Anonymize the config for telemetry, replacing potentially revealing config props - * with a placeholder string if they are present (this lets us still track how frequently - * these config options are being used) - * - * @param config the config to anonymize - * @returns an anonymized copy of the same config - */ -export const anonymizeConfigForTelemetry = (config) => { - const anonymizedConfig = { ...config }; - for (const prop of CONFIG_PROPS_TO_ANONYMIZE) { - if (anonymizedConfig[prop] !== undefined) { - anonymizedConfig[prop] = 'omitted'; - } - } - anonymizedConfig.outputTargets = config.outputTargets.map((target) => { - // Anonymize the outputTargets on our configuration, taking advantage of the - // optional 2nd argument to `JSON.stringify`. If anything is not a string - // we retain it so that any nested properties are handled, else we check - // whether it's in our 'keep' list to decide whether to keep it or replace it - // with `"omitted"`. - const anonymizedOT = JSON.parse(JSON.stringify(target, (key, value) => { - if (!(typeof value === 'string')) { - return value; - } - if (OUTPUT_TARGET_KEYS_TO_KEEP.includes(key)) { - return value; - } - return 'omitted'; - })); - // this prop has to be handled separately because it is an array - // so the replace function above will be called with all of its - // members, giving us `["omitted", "omitted", ...]`. - // - // Instead, we check for its presence and manually copy over. - if (isOutputTargetHydrate(target) && target.external) { - anonymizedOT['external'] = target.external.concat(); - } - return anonymizedOT; - }); - // TODO(STENCIL-469): Investigate improving anonymization for tsCompilerOptions and devServer - for (const prop of CONFIG_PROPS_TO_DELETE) { - delete anonymizedConfig[prop]; - } - return anonymizedConfig; -}; -/** - * Reads package-lock.json, yarn.lock, and package.json files in order to cross-reference - * the dependencies and devDependencies properties. Pulls up the current installed version - * of each package under the @stencil, @ionic, and @capacitor scopes. - * - * @param sys the system instance where telemetry is invoked - * @param config the Stencil configuration associated with the current task that triggered telemetry - * @returns an object listing all dev and production dependencies under the aforementioned scopes - */ -async function getInstalledPackages(sys, config) { - let packages = []; - let packagesNoVersions = []; - const yarn = isUsingYarn(sys); - try { - // Read package.json and package-lock.json - const appRootDir = sys.getCurrentDirectory(); - const packageJson = await tryFn(readJson, sys, sys.resolvePath(appRootDir + '/package.json')); - // They don't have a package.json for some reason? Eject button. - if (!packageJson) { - return { packages, packagesNoVersions }; - } - const rawPackages = Object.entries({ - ...packageJson.devDependencies, - ...packageJson.dependencies, - }); - // Collect packages only in the stencil, ionic, or capacitor org's: - // https://www.npmjs.com/org/stencil - const ionicPackages = rawPackages.filter(([k]) => k.startsWith('@stencil/') || k.startsWith('@ionic/') || k.startsWith('@capacitor/')); - try { - packages = yarn ? await yarnPackages(sys, ionicPackages) : await npmPackages(sys, ionicPackages); - } - catch (e) { - packages = ionicPackages.map(([k, v]) => `${k}@${v.replace('^', '')}`); - } - packagesNoVersions = ionicPackages.map(([k]) => `${k}`); - return { packages, packagesNoVersions }; - } - catch (err) { - hasDebug(config.flags) && console.error(err); - return { packages, packagesNoVersions }; - } -} -/** - * Visits the npm lock file to find the exact versions that are installed - * @param sys The system where the command is invoked - * @param ionicPackages a list of the found packages matching `@stencil`, `@capacitor`, or `@ionic` from the package.json file. - * @returns an array of strings of all the packages and their versions. - */ -async function npmPackages(sys, ionicPackages) { - const appRootDir = sys.getCurrentDirectory(); - const packageLockJson = await tryFn(readJson, sys, sys.resolvePath(appRootDir + '/package-lock.json')); - return ionicPackages.map(([k, v]) => { - var _a, _b, _c, _d; - let version = (_d = (_b = (_a = packageLockJson === null || packageLockJson === void 0 ? void 0 : packageLockJson.dependencies[k]) === null || _a === void 0 ? void 0 : _a.version) !== null && _b !== void 0 ? _b : (_c = packageLockJson === null || packageLockJson === void 0 ? void 0 : packageLockJson.devDependencies[k]) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : v; - version = version.includes('file:') ? sanitizeDeclaredVersion(v) : version; - return `${k}@${version}`; - }); -} -/** - * Visits the yarn lock file to find the exact versions that are installed - * @param sys The system where the command is invoked - * @param ionicPackages a list of the found packages matching `@stencil`, `@capacitor`, or `@ionic` from the package.json file. - * @returns an array of strings of all the packages and their versions. - */ -async function yarnPackages(sys, ionicPackages) { - const appRootDir = sys.getCurrentDirectory(); - const yarnLock = sys.readFileSync(sys.resolvePath(appRootDir + '/yarn.lock')); - const yarnLockYml = sys.parseYarnLockFile(yarnLock); - return ionicPackages.map(([k, v]) => { - var _a; - const identifiedVersion = `${k}@${v}`; - let version = (_a = yarnLockYml.object[identifiedVersion]) === null || _a === void 0 ? void 0 : _a.version; - version = version.includes('undefined') ? sanitizeDeclaredVersion(identifiedVersion) : version; - return `${k}@${version}`; - }); -} -/** - * This function is used for fallback purposes, where an npm or yarn lock file doesn't exist in the consumers directory. - * This will strip away '*', '^' and '~' from the declared package versions in a package.json. - * @param version the raw semver pattern identifier version string - * @returns a cleaned up representation without any qualifiers - */ -function sanitizeDeclaredVersion(version) { - return version.replace(/[*^~]/g, ''); -} -/** - * If telemetry is enabled, send a metric to an external data store - * - * @param sys the system instance where telemetry is invoked - * @param config the Stencil configuration associated with the current task that triggered telemetry - * @param name the name of a trackable metric. Note this name is not necessarily a scalar value to track, like - * "Stencil Version". For example, "stencil_cli_command" is a name that is used to track all CLI command information. - * @param value the data to send to the external data store under the provided name argument - */ -export async function sendMetric(sys, config, name, value) { - const session_id = await getTelemetryToken(sys); - const message = { - name, - timestamp: new Date().toISOString(), - source: 'stencil_cli', - value, - session_id, - }; - await sendTelemetry(sys, config, message); -} -/** - * Used to read the config file's tokens.telemetry property. - * - * @param sys The system where the command is invoked - * @returns string - */ -async function getTelemetryToken(sys) { - const config = await readConfig(sys); - if (config['tokens.telemetry'] === undefined) { - config['tokens.telemetry'] = uuidv4(); - await writeConfig(sys, config); - } - return config['tokens.telemetry']; -} -/** - * Issues a request to the telemetry server. - * @param sys The system where the command is invoked - * @param config The config passed into the Stencil command - * @param data Data to be tracked - */ -async function sendTelemetry(sys, config, data) { - try { - const now = new Date().toISOString(); - const body = { - metrics: [data], - sent_at: now, - }; - // This request is only made if telemetry is on. - const response = await sys.fetch('https://api.ionicjs.com/events/metrics', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify(body), - }); - hasVerbose(config.flags) && - console.debug('\nSent %O metric to events service (status: %O)', data.name, response.status, '\n'); - if (response.status !== 204) { - hasVerbose(config.flags) && - console.debug('\nBad response from events service. Request body: %O', response.body.toString(), '\n'); - } - } - catch (e) { - hasVerbose(config.flags) && console.debug('Telemetry request failed:', e); - } -} -/** - * Checks if telemetry is enabled on this machine - * @param sys The system where the command is invoked - * @returns true if telemetry is enabled, false otherwise - */ -export async function checkTelemetry(sys) { - const config = await readConfig(sys); - if (config['telemetry.stencil'] === undefined) { - config['telemetry.stencil'] = true; - await writeConfig(sys, config); - } - return config['telemetry.stencil']; -} -/** - * Writes to the config file, enabling telemetry for this machine. - * @param sys The system where the command is invoked - * @returns true if writing the file was successful, false otherwise - */ -export async function enableTelemetry(sys) { - return await updateConfig(sys, { 'telemetry.stencil': true }); -} -/** - * Writes to the config file, disabling telemetry for this machine. - * @param sys The system where the command is invoked - * @returns true if writing the file was successful, false otherwise - */ -export async function disableTelemetry(sys) { - return await updateConfig(sys, { 'telemetry.stencil': false }); -} -/** - * Takes in a semver string in order to return the major version. - * @param version The fully qualified semver version - * @returns a string of the major version - */ -function getMajorVersion(version) { - const parts = version.split('.'); - return parts[0]; -} -//# sourceMappingURL=telemetry.js.map \ No newline at end of file diff --git a/build/cli/telemetry/telemetry.js.map b/build/cli/telemetry/telemetry.js.map deleted file mode 100644 index 5bd942e8b9f..00000000000 --- a/build/cli/telemetry/telemetry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../src/cli/telemetry/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAGpD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAExE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,GAAqB,EACrB,MAAyB,EACzB,YAA0B,EAC1B,MAA8B;IAE9B,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEnE,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO;KACR;IAED,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC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AAI,EAAE,CAAC,CAAC;AAChE,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,GAAqB;IAC1D,OAAO,MAAM,YAAY,CAAC,GAAG,EAAE,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC,CAAC;AACjE,CAAC;AAED;;;;GAIG;AACH,SAAS,eAAe,CAAC,OAAe;IACtC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/build/cli/telemetry/test/helpers.spec.d.ts b/build/cli/telemetry/test/helpers.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/cli/telemetry/test/helpers.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/cli/telemetry/test/helpers.spec.js b/build/cli/telemetry/test/helpers.spec.js deleted file mode 100644 index ef149d28d86..00000000000 --- a/build/cli/telemetry/test/helpers.spec.js +++ /dev/null @@ -1,85 +0,0 @@ -import { createSystem } from '../../../compiler/sys/stencil-sys'; -import { createConfigFlags } from '../../config-flags'; -import { hasDebug, hasVerbose, isInteractive, tryFn, uuidv4 } from '../helpers'; -describe('hasDebug', () => { - it('returns true when the "debug" flag is true', () => { - const flags = createConfigFlags({ - debug: true, - }); - expect(hasDebug(flags)).toBe(true); - }); - it('returns false when the "debug" flag is false', () => { - const flags = createConfigFlags({ - debug: false, - }); - expect(hasDebug(flags)).toBe(false); - }); - it('returns false when a flag is not passed', () => { - const flags = createConfigFlags({}); - expect(hasDebug(flags)).toBe(false); - }); -}); -describe('hasVerbose', () => { - it.each([ - { debug: true, verbose: false }, - { debug: false, verbose: true }, - { debug: false, verbose: false }, - ])('returns false when debug=$debug and verbose=$verbose', (flagOverrides) => { - const flags = createConfigFlags(flagOverrides); - expect(hasVerbose(flags)).toBe(false); - }); - it('returns true when debug=true and verbose=true', () => { - const flags = createConfigFlags({ - debug: true, - verbose: true, - }); - expect(hasVerbose(flags)).toBe(true); - }); -}); -describe('uuidv4', () => { - it('outputs a UUID', () => { - const pattern = new RegExp(/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i); - const uuid = uuidv4(); - expect(!!uuid.match(pattern)).toBe(true); - }); -}); -describe('isInteractive', () => { - const sys = createSystem(); - it('returns false by default', () => { - const result = isInteractive(sys, createConfigFlags({ ci: false }), { ci: false, tty: false }); - expect(result).toBe(false); - }); - it('returns false when tty is false', () => { - const result = isInteractive(sys, createConfigFlags({ ci: true }), { ci: true, tty: false }); - expect(result).toBe(false); - }); - it('returns false when ci is true', () => { - const result = isInteractive(sys, createConfigFlags({ ci: true }), { ci: true, tty: true }); - expect(result).toBe(false); - }); - it('returns true when tty is true and ci is false', () => { - const result = isInteractive(sys, createConfigFlags({ ci: false }), { ci: false, tty: true }); - expect(result).toBe(true); - }); -}); -describe('tryFn', () => { - it('handles failures correctly', async () => { - const result = await tryFn(async () => { - throw new Error('Uh oh!'); - }); - expect(result).toBe(null); - }); - it('handles success correctly', async () => { - const result = await tryFn(async () => { - return true; - }); - expect(result).toBe(true); - }); - it('handles returning false correctly', async () => { - const result = await tryFn(async () => { - return false; - }); - expect(result).toBe(false); - }); -}); -//# sourceMappingURL=helpers.spec.js.map \ No newline at end of file diff --git a/build/cli/telemetry/test/helpers.spec.js.map b/build/cli/telemetry/test/helpers.spec.js.map deleted file mode 100644 index 71581464ac9..00000000000 --- a/build/cli/telemetry/test/helpers.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helpers.spec.js","sourceRoot":"","sources":["../../../../src/cli/telemetry/test/helpers.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAe,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,QA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KAAK,IAAI,EAAE;YACpC,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;QACjD,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,KAAK,IAAI,EAAE;YACpC,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/telemetry/test/telemetry.spec.d.ts b/build/cli/telemetry/test/telemetry.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/cli/telemetry/test/telemetry.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/cli/telemetry/test/telemetry.spec.js b/build/cli/telemetry/test/telemetry.spec.js deleted file mode 100644 index b02ccc4cda2..00000000000 --- a/build/cli/telemetry/test/telemetry.spec.js +++ /dev/null @@ -1,234 +0,0 @@ -import * as coreCompiler from '@stencil/core/compiler'; -import { mockValidatedConfig } from '@stencil/core/testing'; -import { DIST, DIST_CUSTOM_ELEMENTS, DIST_HYDRATE_SCRIPT, WWW } from '@utils'; -import { createConfigFlags } from '../../../cli/config-flags'; -import { createSystem } from '../../../compiler/sys/stencil-sys'; -import * as shouldTrack from '../shouldTrack'; -import * as telemetry from '../telemetry'; -import { anonymizeConfigForTelemetry } from '../telemetry'; -describe('telemetryBuildFinishedAction', () => { - let config; - let sys; - beforeEach(() => { - sys = createSystem(); - config = mockValidatedConfig({ - flags: createConfigFlags({ task: 'build' }), - outputTargets: [], - sys, - }); - }); - it('issues a network request when complete', async () => { - const spyShouldTrack = jest.spyOn(shouldTrack, 'shouldTrack'); - spyShouldTrack.mockReturnValue(new Promise((resolve) => { - resolve(true); - })); - const results = { - componentGraph: {}, - duration: 100, - }; - await telemetry.telemetryBuildFinishedAction(sys, config, coreCompiler, results); - expect(spyShouldTrack).toHaveBeenCalled(); - spyShouldTrack.mockRestore(); - }); -}); -describe('telemetryAction', () => { - let config; - let sys; - beforeEach(() => { - sys = createSystem(); - config = mockValidatedConfig({ - flags: createConfigFlags({ task: 'build' }), - outputTargets: [], - sys, - }); - }); - it('issues a network request when no async function is passed', async () => { - const spyShouldTrack = jest.spyOn(shouldTrack, 'shouldTrack'); - spyShouldTrack.mockReturnValue(new Promise((resolve) => { - resolve(true); - })); - await telemetry.telemetryAction(sys, config, coreCompiler, () => { }); - expect(spyShouldTrack).toHaveBeenCalled(); - spyShouldTrack.mockRestore(); - }); - it('issues a network request when passed async function is complete', async () => { - const spyShouldTrack = jest.spyOn(shouldTrack, 'shouldTrack'); - spyShouldTrack.mockReturnValue(new Promise((resolve) => { - resolve(true); - })); - await telemetry.telemetryAction(sys, config, coreCompiler, async () => { - new Promise((resolve) => { - setTimeout(() => { - resolve(true); - }, 1000); - }); - }); - expect(spyShouldTrack).toHaveBeenCalled(); - spyShouldTrack.mockRestore(); - }); -}); -describe('checkTelemetry', () => { - const sys = createSystem(); - it('will read and write from a file, returning the correct status', async () => { - await telemetry.enableTelemetry(sys); - expect(await telemetry.checkTelemetry(sys)).toBe(true); - await telemetry.disableTelemetry(sys); - expect(await telemetry.checkTelemetry(sys)).toBe(false); - await telemetry.enableTelemetry(sys); - expect(await telemetry.checkTelemetry(sys)).toBe(true); - }); -}); -describe('hasAppTarget()', () => { - let config; - let sys; - beforeEach(() => { - sys = createSystem(); - config = mockValidatedConfig({ sys }); - }); - it("returns 'false' when `outputTargets` is empty", () => { - config.outputTargets = []; - expect(telemetry.hasAppTarget(config)).toBe(false); - }); - it("returns 'false' when `outputTargets` contains `www` with no `baseUrl` and no service worker", () => { - config.outputTargets = [{ type: WWW }]; - expect(telemetry.hasAppTarget(config)).toBe(false); - }); - it("returns 'false' when `outputTargets` contains `www` with '/' baseUrl value", () => { - config.outputTargets = [{ type: WWW, baseUrl: '/' }]; - expect(telemetry.hasAppTarget(config)).toBe(false); - }); - it("returns 'true' when `outputTargets` contains `www` with a service worker", () => { - config.outputTargets = [{ type: WWW, serviceWorker: { swDest: './tmp' } }]; - expect(telemetry.hasAppTarget(config)).toBe(true); - }); - it("returns 'true' when `outputTargets` contains `www` with baseUrl", () => { - config.outputTargets = [{ type: WWW, baseUrl: 'https://example.com' }]; - expect(telemetry.hasAppTarget(config)).toBe(true); - }); - it("returns 'true' when `outputTargets` contains `www` with serviceWorker and baseUrl", () => { - config.outputTargets = [{ type: WWW, baseUrl: 'https://example.com', serviceWorker: { swDest: './tmp' } }]; - expect(telemetry.hasAppTarget(config)).toBe(true); - }); -}); -describe('prepareData', () => { - let config; - let sys; - beforeEach(() => { - config = mockValidatedConfig(); - sys = config.sys; - // set static name + versions, otherwise tests will pull in the dev build's data (which changes per build) - sys.name = 'in-memory'; - sys.version = '__VERSION:STENCIL__'; - }); - it('prepares an object to send to ionic', async () => { - const data = await telemetry.prepareData(coreCompiler, config, sys, 1000); - expect(data).toEqual({ - arguments: [], - build: coreCompiler.buildId, - component_count: undefined, - // the configuration generation is tested elsewhere, just verify we're sending something under this flag - config: expect.any(Object), - cpu_model: '', - duration_ms: 1000, - has_app_pwa_config: false, - os_name: '', - os_version: '', - packages: [], - packages_no_versions: [], - rollup: coreCompiler.versions.rollup, - stencil: coreCompiler.versions.stencil, - system: 'in-memory __VERSION:STENCIL__', - system_major: 'in-memory __VERSION:STENCIL__', - targets: [], - task: null, - typescript: coreCompiler.versions.typescript, - yarn: false, - }); - }); - describe('has_app_pwa_config property', () => { - it('sets `has_app_pwa_config` to true when there is a service worker', async () => { - const config = mockValidatedConfig({ - outputTargets: [{ type: 'www', baseUrl: 'https://example.com' }], - }); - const data = await telemetry.prepareData(coreCompiler, config, sys, 1000); - expect(data.has_app_pwa_config).toBe(true); - }); - it("sets `has_app_pwa_config` to true for a non '/' baseUrl", async () => { - const config = mockValidatedConfig({ - outputTargets: [{ type: 'www', serviceWorker: { swDest: './tmp' } }], - }); - const data = await telemetry.prepareData(coreCompiler, config, sys, 1000); - expect(data.has_app_pwa_config).toBe(true); - }); - }); - it('sends a component count when one is provided', async () => { - const COMPONENT_COUNT = 12; - const config = mockValidatedConfig({ - outputTargets: [{ type: 'www' }], - }); - const data = await telemetry.prepareData(coreCompiler, config, sys, 1000, COMPONENT_COUNT); - expect(data.component_count).toEqual(COMPONENT_COUNT); - }); -}); -describe('anonymizeConfigForTelemetry', () => { - let config; - let sys; - beforeEach(() => { - sys = createSystem(); - config = mockValidatedConfig({ sys }); - }); - it.each([ - 'rootDir', - 'fsNamespace', - 'packageJsonFilePath', - 'namespace', - 'srcDir', - 'srcIndexHtml', - 'buildLogFilePath', - 'cacheDir', - 'configPath', - 'tsconfig', - ])("should anonymize top-level string prop '%s'", (prop) => { - const anonymizedConfig = anonymizeConfigForTelemetry({ - ...config, - [prop]: "shouldn't see this!", - outputTargets: [], - }); - expect(anonymizedConfig[prop]).toBe('omitted'); - expect(anonymizedConfig.outputTargets).toEqual([]); - }); - it.each([ - 'commonjs', - 'devServer', - 'env', - 'logger', - 'rollupConfig', - 'sys', - 'testing', - 'tsCompilerOptions', - ])("should remove objects under prop '%s'", (prop) => { - const anonymizedConfig = anonymizeConfigForTelemetry({ ...config, [prop]: {}, outputTargets: [] }); - expect(anonymizedConfig.hasOwnProperty(prop)).toBe(false); - expect(anonymizedConfig.outputTargets).toEqual([]); - }); - it('should retain outputTarget props on the keep list', () => { - const anonymizedConfig = anonymizeConfigForTelemetry({ - ...config, - outputTargets: [ - { type: WWW, baseUrl: 'https://example.com' }, - { type: DIST_HYDRATE_SCRIPT, external: ['beep', 'boop'], dir: 'shoud/go/away' }, - { type: DIST_CUSTOM_ELEMENTS }, - { type: DIST_CUSTOM_ELEMENTS, generateTypeDeclarations: true }, - { type: DIST, typesDir: 'my-types' }, - ], - }); - expect(anonymizedConfig.outputTargets).toEqual([ - { type: WWW, baseUrl: 'omitted' }, - { type: DIST_HYDRATE_SCRIPT, external: ['beep', 'boop'], dir: 'omitted' }, - { type: DIST_CUSTOM_ELEMENTS }, - { type: DIST_CUSTOM_ELEMENTS, generateTypeDeclarations: true }, - { type: DIST, typesDir: 'omitted' }, - ]); - }); -}); -//# sourceMappingURL=telemetry.spec.js.map \ No newline at end of file diff --git a/build/cli/telemetry/test/telemetry.spec.js.map b/build/cli/telemetry/test/telemetry.spec.js.map deleted file mode 100644 index a40c49cda97..00000000000 --- a/build/cli/telemetry/test/telemetry.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"telemetry.spec.js","sourceRoot":"","sources":["../../../../src/cli/telemetry/test/telemetry.spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAE3D,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,IAAI,MAAyB,CAAC;IAC9B,IAAI,GAAqB,CAAC;IAE1B,UAAU,CAAC,GAAG,EAAE;QACd,GAAG,GAAG,YAAY,EAAE,CAAC;QACrB,MAAM,GAAG,mBAAmB,CAAC;YAC3B,KAAK,EAAE,iBAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;YAC3C,aAAa,EAAE,EAAE;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AC3D,MAAM,gBAAgB,GAAG,2BAA2B,CAAC;YACnD,GAAG,MAAM;YACT,aAAa,EAAE;gBACb,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,qBAAqB,EAAE;gBAC7C,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,eAAe,EAAE;gBAC/E,EAAE,IAAI,EAAE,oBAAoB,EAAE;gBAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,IAAI,EAAE;gBAC9D,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE;aACrC;SACF,CAAC,CAAC;QAEH,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC;YAC7C,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE;YACjC,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE;YACzE,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,IAAI,EAAE;YAC9D,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE;SACpC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/test/ionic-config.spec.d.ts b/build/cli/test/ionic-config.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/cli/test/ionic-config.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/cli/test/ionic-config.spec.js b/build/cli/test/ionic-config.spec.js deleted file mode 100644 index 017bf4f2ea0..00000000000 --- a/build/cli/test/ionic-config.spec.js +++ /dev/null @@ -1,75 +0,0 @@ -import { mockCompilerSystem } from '@stencil/core/testing'; -import { createSystem } from '../../compiler/sys/stencil-sys'; -import { defaultConfig, readConfig, updateConfig, writeConfig } from '../ionic-config'; -import { UUID_REGEX } from '../telemetry/helpers'; -const UUID1 = '5588e0f0-02b5-4afa-8194-5d8f78683b36'; -const UUID2 = 'e5609819-5c24-4fa2-8817-e05ca10b8cae'; -describe('readConfig', () => { - const sys = mockCompilerSystem(); - beforeEach(async () => { - await sys.removeFile(defaultConfig(sys)); - }); - it('should create a file if it does not exist', async () => { - const result = await sys.stat(defaultConfig(sys)); - // expect the file to have been deleted by the test setup - expect(result.isFile).toBe(false); - const config = await readConfig(sys); - expect(Object.keys(config).join()).toBe('tokens.telemetry,telemetry.stencil'); - }); - it("should fix the telemetry token if it's a string, but an invalid UUID", async () => { - await writeConfig(sys, { 'telemetry.stencil': true, 'tokens.telemetry': 'aaaa' }); - const result = await sys.stat(defaultConfig(sys)); - expect(result.isFile).toBe(true); - const config = await readConfig(sys); - expect(Object.keys(config).join()).toBe('telemetry.stencil,tokens.telemetry'); - expect(config['telemetry.stencil']).toBe(true); - expect(config['tokens.telemetry']).toMatch(UUID_REGEX); - }); - it('handles a non-string telemetry token', async () => { - // our typings state that `tokens.telemetry` is of type `string | undefined`, but technically this value could be - // anything. use `undefined` to make the typings happy (this should cover all non-string telemetry tokens). the - // important thing here is that the value is _not_ a string for this test! - await writeConfig(sys, { 'telemetry.stencil': true, 'tokens.telemetry': undefined }); - const config = await readConfig(sys); - expect(Object.keys(config).join()).toBe('telemetry.stencil,tokens.telemetry'); - expect(config['telemetry.stencil']).toBe(true); - expect(config['tokens.telemetry']).toMatch(UUID_REGEX); - }); - it('handles a non-existent telemetry token', async () => { - await writeConfig(sys, { 'telemetry.stencil': true }); - const config = await readConfig(sys); - expect(Object.keys(config).join()).toBe('telemetry.stencil,tokens.telemetry'); - expect(config['telemetry.stencil']).toBe(true); - expect(config['tokens.telemetry']).toMatch(UUID_REGEX); - }); - it('should read a file if it exists', async () => { - await writeConfig(sys, { 'telemetry.stencil': true, 'tokens.telemetry': UUID1 }); - const result = await sys.stat(defaultConfig(sys)); - expect(result.isFile).toBe(true); - const config = await readConfig(sys); - expect(Object.keys(config).join()).toBe('telemetry.stencil,tokens.telemetry'); - expect(config['telemetry.stencil']).toBe(true); - expect(config['tokens.telemetry']).toBe(UUID1); - }); -}); -describe('updateConfig', () => { - const sys = createSystem(); - it('should edit a file', async () => { - await writeConfig(sys, { 'telemetry.stencil': true, 'tokens.telemetry': UUID1 }); - const result = await sys.stat(defaultConfig(sys)); - expect(result.isFile).toBe(true); - const configPre = await readConfig(sys); - expect(typeof configPre).toBe('object'); - expect(Object.keys(configPre).join()).toBe('telemetry.stencil,tokens.telemetry'); - expect(configPre['telemetry.stencil']).toBe(true); - expect(configPre['tokens.telemetry']).toBe(UUID1); - await updateConfig(sys, { 'telemetry.stencil': false, 'tokens.telemetry': UUID2 }); - const configPost = await readConfig(sys); - expect(typeof configPost).toBe('object'); - // Should keep the previous order - expect(Object.keys(configPost).join()).toBe('telemetry.stencil,tokens.telemetry'); - expect(configPost['telemetry.stencil']).toBe(false); - expect(configPost['tokens.telemetry']).toBe(UUID2); - }); -}); -//# sourceMappingURL=ionic-config.spec.js.map \ No newline at end of file diff --git a/build/cli/test/ionic-config.spec.js.map b/build/cli/test/ionic-config.spec.js.map deleted file mode 100644 index 1423a7059cd..00000000000 --- a/build/cli/test/ionic-config.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ionic-config.spec.js","sourceRoot":"","sources":["../../../src/cli/test/ionic-config.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,M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UAAU,CAAC,GAAG,CAAC,CAAC;QAExC,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;QACjF,MAAM,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAElD,MAAM,YAAY,CAAC,GAAG,EAAE,EAAE,mBAAmB,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC,CAAC;QAEnF,MAAM,UAAU,GAAG,MAAM,UAAU,CAAC,GAAG,CAAC,CAAC;QAEzC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,iCAAiC;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;QAClF,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpD,MAAM,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/test/parse-flags.spec.d.ts b/build/cli/test/parse-flags.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/cli/test/parse-flags.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/cli/test/parse-flags.spec.js b/build/cli/test/parse-flags.spec.js deleted file mode 100644 index 010e15aeefb..00000000000 --- a/build/cli/test/parse-flags.spec.js +++ /dev/null @@ -1,393 +0,0 @@ -import { toDashCase } from '@utils'; -import { BOOLEAN_CLI_FLAGS, BOOLEAN_STRING_CLI_FLAGS, NUMBER_CLI_FLAGS, STRING_ARRAY_CLI_FLAGS, STRING_CLI_FLAGS, } from '../config-flags'; -import { Empty, parseEqualsArg, parseFlags } from '../parse-flags'; -describe('parseFlags', () => { - it('should get known and unknown args', () => { - const args = ['serve', '--address', '127.0.0.1', '--potatoArgument', '--flimflammery', 'test.spec.ts']; - const flags = parseFlags(args); - expect(flags.task).toBe('serve'); - expect(flags.args[0]).toBe('--address'); - expect(flags.args[1]).toBe('127.0.0.1'); - expect(flags.args[2]).toBe('--potatoArgument'); - expect(flags.args[3]).toBe('--flimflammery'); - expect(flags.args[4]).toBe('test.spec.ts'); - expect(flags.knownArgs).toEqual(['--address', '127.0.0.1']); - expect(flags.unknownArgs[0]).toBe('--potatoArgument'); - expect(flags.unknownArgs[1]).toBe('--flimflammery'); - expect(flags.unknownArgs[2]).toBe('test.spec.ts'); - }); - it('should parse cli for dev server', () => { - // user command line args - // $ npm run serve --port 4444 - // args.slice(2) - // [ 'serve', '--address', '127.0.0.1', '--port', '4444' ] - const args = ['serve', '--address', '127.0.0.1', '--port', '4444']; - const flags = parseFlags(args); - expect(flags.task).toBe('serve'); - expect(flags.address).toBe('127.0.0.1'); - expect(flags.port).toBe(4444); - expect(flags.knownArgs).toEqual(['--address', '127.0.0.1', '--port', '4444']); - }); - it('should parse task', () => { - const flags = parseFlags(['build']); - expect(flags.task).toBe('build'); - }); - it('should parse no task', () => { - const flags = parseFlags(['--flag']); - expect(flags.task).toBe(null); - }); - /** - * these comprehensive tests of all the supported boolean args serve as - * regression tests against duplicating any of the arguments in the arrays. - * Because of the way that the arg parsing algorithm works having a dupe - * will result in a value like `[true, true]` being set on ConfigFlags, which - * will cause these tests to start failing. - */ - describe.each(BOOLEAN_CLI_FLAGS)('should parse boolean flag %s', (cliArg) => { - it('should parse arg', () => { - const flags = parseFlags([`--${cliArg}`]); - expect(flags.knownArgs).toEqual([`--${cliArg}`]); - expect(flags[cliArg]).toBe(true); - }); - it(`should parse --no${cliArg}`, () => { - const negativeFlag = '--no' + cliArg.charAt(0).toUpperCase() + cliArg.slice(1); - const flags = parseFlags([negativeFlag]); - expect(flags.knownArgs).toEqual([negativeFlag]); - expect(flags[cliArg]).toBe(false); - }); - it(`should override --${cliArg} with --no${cliArg}`, () => { - const negativeFlag = '--no' + cliArg.charAt(0).toUpperCase() + cliArg.slice(1); - const flags = parseFlags([`--${cliArg}`, negativeFlag]); - expect(flags.knownArgs).toEqual([`--${cliArg}`, negativeFlag]); - expect(flags[cliArg]).toBe(false); - }); - it('should not set value if not present', () => { - const flags = parseFlags([]); - expect(flags.knownArgs).toEqual([]); - expect(flags[cliArg]).toBe(undefined); - }); - }); - describe.each(STRING_CLI_FLAGS)('should parse string flag %s', (cliArg) => { - it(`should parse "--${cliArg} value"`, () => { - const flags = parseFlags([`--${cliArg}`, 'test-value']); - expect(flags.knownArgs).toEqual([`--${cliArg}`, 'test-value']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toBe('test-value'); - }); - it(`should parse "--${cliArg}=value"`, () => { - const flags = parseFlags([`--${cliArg}=path/to/file.js`]); - expect(flags.knownArgs).toEqual([`--${cliArg}`, 'path/to/file.js']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toBe('path/to/file.js'); - }); - it(`should parse "--${toDashCase(cliArg)} value"`, () => { - const flags = parseFlags([`--${toDashCase(cliArg)}`, 'path/to/file.js']); - expect(flags.knownArgs).toEqual([`--${toDashCase(cliArg)}`, 'path/to/file.js']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toBe('path/to/file.js'); - }); - it(`should parse "--${toDashCase(cliArg)}=value"`, () => { - const flags = parseFlags([`--${toDashCase(cliArg)}=path/to/file.js`]); - expect(flags.knownArgs).toEqual([`--${toDashCase(cliArg)}`, 'path/to/file.js']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toBe('path/to/file.js'); - }); - }); - it.each(NUMBER_CLI_FLAGS)('should parse number flag %s', (cliArg) => { - const flags = parseFlags([`--${cliArg}`, '42']); - expect(flags.knownArgs).toEqual([`--${cliArg}`, '42']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toBe(42); - }); - it('should override --config with second --config', () => { - const args = ['--config', '/config-1.js', '--config', '/config-2.js']; - const flags = parseFlags(args); - expect(flags.config).toBe('/config-2.js'); - }); - describe.each(BOOLEAN_STRING_CLI_FLAGS)('boolean-string flag - %s', (cliArg) => { - it('parses a boolean-string flag as a boolean with no arg', () => { - const args = [`--${cliArg}`]; - const flags = parseFlags(args); - expect(flags.headless).toBe(true); - expect(flags.knownArgs).toEqual([`--${cliArg}`]); - }); - it(`parses a boolean-string flag as a falsy boolean with "no" arg - --no-${cliArg}`, () => { - const args = [`--no-${cliArg}`]; - const flags = parseFlags(args); - expect(flags.headless).toBe(false); - expect(flags.knownArgs).toEqual([`--no-${cliArg}`]); - }); - it(`parses a boolean-string flag as a falsy boolean with "no" arg - --no${cliArg.charAt(0).toUpperCase() + cliArg.slice(1)}`, () => { - const negativeFlag = '--no' + cliArg.charAt(0).toUpperCase() + cliArg.slice(1); - const flags = parseFlags([negativeFlag]); - expect(flags.headless).toBe(false); - expect(flags.knownArgs).toEqual([negativeFlag]); - }); - it('parses a boolean-string flag as a string with a string arg', () => { - const args = [`--${cliArg}`, 'new']; - const flags = parseFlags(args); - expect(flags.headless).toBe('new'); - expect(flags.knownArgs).toEqual(['--headless', 'new']); - }); - it('parses a boolean-string flag as a string with a string arg using equality', () => { - const args = [`--${cliArg}=new`]; - const flags = parseFlags(args); - expect(flags.headless).toBe('new'); - expect(flags.knownArgs).toEqual([`--${cliArg}`, 'new']); - }); - }); - describe.each(['info', 'warn', 'error', 'debug'])('logLevel %s', (level) => { - it("should parse '--logLevel %s'", () => { - const args = ['--logLevel', level]; - const flags = parseFlags(args); - expect(flags.logLevel).toBe(level); - }); - it('should parse --logLevel=%s', () => { - const args = [`--logLevel=${level}`]; - const flags = parseFlags(args); - expect(flags.logLevel).toBe(level); - }); - it("should parse '--log-level %s'", () => { - const flags = parseFlags(['--log-level', level]); - expect(flags.logLevel).toBe(level); - }); - it('should parse --log-level=%s', () => { - const flags = parseFlags([`--log-level=${level}`]); - expect(flags.logLevel).toBe(level); - }); - }); - /** - * maxWorkers is (as of this writing) our only StringNumberCLIArg, meaning it - * may be a string (like "50%") or a number (like 4). For this reason we have - * some tests just for it. - */ - describe('maxWorkers', () => { - it.each([ - ['--maxWorkers', '4'], - ['--maxWorkers=4'], - ['--max-workers', '4'], - ['--maxWorkers', '4e+0'], - ['--maxWorkers', '40e-1'], - ])('should parse %p, %p', (...args) => { - const flags = parseFlags(args); - expect(flags.maxWorkers).toBe(4); - }); - it('should parse --maxWorkers 4', () => { - const flags = parseFlags(['--maxWorkers', '4']); - expect(flags.maxWorkers).toBe(4); - }); - it('should parse --maxWorkers=4', () => { - const flags = parseFlags(['--maxWorkers=4']); - expect(flags.maxWorkers).toBe(4); - }); - it('should parse --max-workers 4', () => { - const flags = parseFlags(['--max-workers', '4']); - expect(flags.maxWorkers).toBe(4); - }); - it('should parse --maxWorkers=50%', function () { - // see https://jestjs.io/docs/27.x/cli#--maxworkersnumstring - const flags = parseFlags(['--maxWorkers=50%']); - expect(flags.maxWorkers).toBe('50%'); - }); - it('should parse --max-workers=1', () => { - const flags = parseFlags(['--max-workers=1']); - expect(flags.maxWorkers).toBe(1); - }); - it('should not parse --max-workers', () => { - const flags = parseFlags([]); - expect(flags.maxWorkers).toBe(undefined); - }); - }); - describe('aliases', () => { - describe('-p (alias for port)', () => { - it('should parse -p=4444', () => { - const flags = parseFlags(['-p=4444']); - expect(flags.port).toBe(4444); - }); - it('should parse -p 4444', () => { - const flags = parseFlags(['-p', '4444']); - expect(flags.port).toBe(4444); - }); - }); - it('should parse -h (alias for help)', () => { - const flags = parseFlags(['-h']); - expect(flags.help).toBe(true); - }); - it('should parse -v (alias for version)', () => { - const flags = parseFlags(['-v']); - expect(flags.version).toBe(true); - }); - describe('-c alias for config', () => { - it('should parse -c /my-config.js', () => { - const flags = parseFlags(['-c', '/my-config.js']); - expect(flags.config).toBe('/my-config.js'); - expect(flags.knownArgs).toEqual(['--config', '/my-config.js']); - }); - it('should parse -c=/my-config.js', () => { - const flags = parseFlags(['-c=/my-config.js']); - expect(flags.config).toBe('/my-config.js'); - expect(flags.knownArgs).toEqual(['--config', '/my-config.js']); - }); - }); - describe('Jest aliases', () => { - it.each([ - ['w', 'maxWorkers', '4'], - ['t', 'testNamePattern', 'testname'], - ])('should support the string Jest alias %p for %p', (alias, fullArgument, value) => { - const flags = parseFlags([`-${alias}`, value]); - expect(flags.knownArgs).toEqual([`--${fullArgument}`, value]); - expect(flags.unknownArgs).toHaveLength(0); - }); - it.each([ - ['w', 'maxWorkers', '4'], - ['t', 'testNamePattern', 'testname'], - ])('should support the string Jest alias %p for %p in an AliasEqualsArg', (alias, fullArgument, value) => { - const flags = parseFlags([`-${alias}=${value}`]); - expect(flags.knownArgs).toEqual([`--${fullArgument}`, value]); - expect(flags.unknownArgs).toHaveLength(0); - }); - it.each([ - ['b', 'bail'], - ['e', 'expand'], - ['o', 'onlyChanged'], - ['f', 'onlyFailures'], - ['i', 'runInBand'], - ['u', 'updateSnapshot'], - ])('should support the boolean Jest alias %p for %p', (alias, fullArgument) => { - const flags = parseFlags([`-${alias}`]); - expect(flags.knownArgs).toEqual([`--${fullArgument}`]); - expect(flags[fullArgument]).toBe(true); - expect(flags.unknownArgs).toHaveLength(0); - }); - }); - }); - it('should parse many', () => { - const args = ['-v', '--help', '-c=./myconfig.json']; - const flags = parseFlags(args); - expect(flags.version).toBe(true); - expect(flags.help).toBe(true); - expect(flags.config).toBe('./myconfig.json'); - }); - describe('parseEqualsArg', () => { - it.each([ - ['--fooBar=baz', '--fooBar', 'baz'], - ['--foo-bar=4', '--foo-bar', '4'], - ['--fooBar=twenty=3*4', '--fooBar', 'twenty=3*4'], - ['--fooBar', '--fooBar', Empty], - ['--foo-bar', '--foo-bar', Empty], - ['--foo-bar=""', '--foo-bar', '""'], - ])('should parse %s correctly', (testArg, expectedArg, expectedValue) => { - const [arg, value] = parseEqualsArg(testArg); - expect(arg).toBe(expectedArg); - expect(value).toEqual(expectedValue); - }); - }); - describe.each(STRING_ARRAY_CLI_FLAGS)('should parse string flag %s', (cliArg) => { - it(`should parse single value: "--${cliArg} test-value"`, () => { - const flags = parseFlags([`--${cliArg}`, 'test-value']); - expect(flags.knownArgs).toEqual([`--${cliArg}`, 'test-value']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toEqual(['test-value']); - }); - it(`should parse multiple values: "--${cliArg} test-value"`, () => { - const flags = parseFlags([`--${cliArg}`, 'test-value', `--${cliArg}`, 'second-test-value']); - expect(flags.knownArgs).toEqual([`--${cliArg}`, 'test-value', `--${cliArg}`, 'second-test-value']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toEqual(['test-value', 'second-test-value']); - }); - it(`should parse "--${cliArg}=value"`, () => { - const flags = parseFlags([`--${cliArg}=path/to/file.js`]); - expect(flags.knownArgs).toEqual([`--${cliArg}`, 'path/to/file.js']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toEqual(['path/to/file.js']); - }); - it(`should parse multiple values: "--${cliArg}=test-value"`, () => { - const flags = parseFlags([`--${cliArg}=test-value`, `--${cliArg}=second-test-value`]); - expect(flags.knownArgs).toEqual([`--${cliArg}`, 'test-value', `--${cliArg}`, 'second-test-value']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toEqual(['test-value', 'second-test-value']); - }); - it(`should parse "--${toDashCase(cliArg)} value"`, () => { - const flags = parseFlags([`--${toDashCase(cliArg)}`, 'path/to/file.js']); - expect(flags.knownArgs).toEqual([`--${toDashCase(cliArg)}`, 'path/to/file.js']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toEqual(['path/to/file.js']); - }); - it(`should parse multiple values: "--${toDashCase(cliArg)} test-value"`, () => { - const flags = parseFlags([ - `--${toDashCase(cliArg)}`, - 'test-value', - `--${toDashCase(cliArg)}`, - 'second-test-value', - ]); - expect(flags.knownArgs).toEqual([ - `--${toDashCase(cliArg)}`, - 'test-value', - `--${toDashCase(cliArg)}`, - 'second-test-value', - ]); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toEqual(['test-value', 'second-test-value']); - }); - it(`should parse "--${toDashCase(cliArg)}=value"`, () => { - const flags = parseFlags([`--${toDashCase(cliArg)}=path/to/file.js`]); - expect(flags.knownArgs).toEqual([`--${toDashCase(cliArg)}`, 'path/to/file.js']); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toEqual(['path/to/file.js']); - }); - it(`should parse multiple values: "--${toDashCase(cliArg)}=test-value"`, () => { - const flags = parseFlags([`--${toDashCase(cliArg)}=test-value`, `--${toDashCase(cliArg)}=second-test-value`]); - expect(flags.knownArgs).toEqual([ - `--${toDashCase(cliArg)}`, - 'test-value', - `--${toDashCase(cliArg)}`, - 'second-test-value', - ]); - expect(flags.unknownArgs).toEqual([]); - expect(flags[cliArg]).toEqual(['test-value', 'second-test-value']); - }); - }); - describe('error reporting', () => { - it('should throw if you pass no argument to a string flag', () => { - expect(() => { - parseFlags(['--cacheDirectory', '--someOtherFlag']); - }).toThrow('when parsing CLI flag "--cacheDirectory": expected a string argument but received nothing'); - }); - it('should throw if you pass no argument to a string array flag', () => { - expect(() => { - parseFlags(['--reporters', '--someOtherFlag']); - }).toThrow('when parsing CLI flag "--reporters": expected a string argument but received nothing'); - }); - it('should throw if you pass no argument to a number flag', () => { - expect(() => { - parseFlags(['--port', '--someOtherFlag']); - }).toThrow('when parsing CLI flag "--port": expected a number argument but received nothing'); - }); - it('should throw if you pass a non-number argument to a number flag', () => { - expect(() => { - parseFlags(['--port', 'stringy']); - }).toThrow('when parsing CLI flag "--port": expected a number but received "stringy"'); - }); - it('should throw if you pass a bad number argument to a number flag', () => { - expect(() => { - parseFlags(['--port=NaN']); - }).toThrow('when parsing CLI flag "--port": expected a number but received "NaN"'); - }); - it('should throw if you pass no argument to a string/number flag', () => { - expect(() => { - parseFlags(['--maxWorkers']); - }).toThrow('when parsing CLI flag "--maxWorkers": expected a string or a number but received nothing'); - }); - it('should throw if you pass an invalid log level for --logLevel', () => { - expect(() => { - parseFlags(['--logLevel', 'potato']); - }).toThrow('when parsing CLI flag "--logLevel": expected to receive a valid log level but received "potato"'); - }); - it('should throw if you pass no argument to --logLevel', () => { - expect(() => { - parseFlags(['--logLevel']); - }).toThrow('when parsing CLI flag "--logLevel": expected to receive a valid log level but received nothing'); - }); - }); -}); -//# sourceMappingURL=parse-flags.spec.js.map \ No newline at end of file diff --git a/build/cli/test/parse-flags.spec.js.map b/build/cli/test/parse-flags.spec.js.map deleted file mode 100644 index 05385cfac2d..00000000000 --- a/build/cli/test/parse-flags.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-flags.spec.js","sourceRoot":"","sources":["../../../src/cli/test/parse-flags.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGpC,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EAGxB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEnE,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;QAEvG,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;QAC/B,MAA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tE,MAAM,CAAC,GAAG,EAAE;gBACV,UAAU,CAAC,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;YACvC,CAAC,CAAC,CAAC,OAAO,CAAC,iGAAiG,CAAC,CAAC;QAChH,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;YAC5D,MAAM,CAAC,GAAG,EAAE;gBACV,UAAU,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;YAC7B,CAAC,CAAC,CAAC,OAAO,CAAC,gGAAgG,CAAC,CAAC;QAC/G,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/test/run.spec.d.ts b/build/cli/test/run.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/cli/test/run.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/cli/test/run.spec.js b/build/cli/test/run.spec.js deleted file mode 100644 index 3cfe6887634..00000000000 --- a/build/cli/test/run.spec.js +++ /dev/null @@ -1,218 +0,0 @@ -import * as coreCompiler from '@stencil/core/compiler'; -import { mockCompilerSystem, mockConfig, mockLogger as createMockLogger } from '@stencil/core/testing'; -import { createTestingSystem } from '../../testing/testing-sys'; -import { createConfigFlags } from '../config-flags'; -import * as ParseFlags from '../parse-flags'; -import { run, runTask } from '../run'; -import * as BuildTask from '../task-build'; -import * as DocsTask from '../task-docs'; -import * as GenerateTask from '../task-generate'; -import * as HelpTask from '../task-help'; -import * as PrerenderTask from '../task-prerender'; -import * as ServeTask from '../task-serve'; -import * as TelemetryTask from '../task-telemetry'; -import * as TestTask from '../task-test'; -describe('run', () => { - describe('run()', () => { - let cliInitOptions; - let mockLogger; - let mockSystem; - let parseFlagsSpy; - beforeEach(() => { - mockLogger = createMockLogger(); - mockSystem = createTestingSystem(); - cliInitOptions = { - args: [], - logger: mockLogger, - sys: mockSystem, - }; - parseFlagsSpy = jest.spyOn(ParseFlags, 'parseFlags'); - parseFlagsSpy.mockReturnValue(createConfigFlags({ - // use the 'help' task as a reasonable default for all calls to this function. - // code paths that require a different task can always override this value as needed. - task: 'help', - })); - }); - afterEach(() => { - parseFlagsSpy.mockRestore(); - }); - describe('help task', () => { - let taskHelpSpy; - beforeEach(() => { - taskHelpSpy = jest.spyOn(HelpTask, 'taskHelp'); - taskHelpSpy.mockReturnValue(Promise.resolve()); - }); - afterEach(() => { - taskHelpSpy.mockRestore(); - }); - it("calls the help task when the 'task' field is set to 'help'", async () => { - await run(cliInitOptions); - expect(taskHelpSpy).toHaveBeenCalledTimes(1); - expect(taskHelpSpy).toHaveBeenCalledWith({ - task: 'help', - args: [], - knownArgs: [], - unknownArgs: [], - }, mockLogger, mockSystem); - taskHelpSpy.mockRestore(); - }); - it("calls the help task when the 'task' field is set to null", async () => { - parseFlagsSpy.mockReturnValue(createConfigFlags({ - task: null, - })); - await run(cliInitOptions); - expect(taskHelpSpy).toHaveBeenCalledTimes(1); - expect(taskHelpSpy).toHaveBeenCalledWith({ - task: 'help', - args: [], - knownArgs: [], - unknownArgs: [], - }, mockLogger, mockSystem); - taskHelpSpy.mockRestore(); - }); - it("calls the help task when the 'help' field is set on flags", async () => { - parseFlagsSpy.mockReturnValue(createConfigFlags({ - help: true, - })); - await run(cliInitOptions); - expect(taskHelpSpy).toHaveBeenCalledTimes(1); - expect(taskHelpSpy).toHaveBeenCalledWith({ - task: 'help', - args: [], - unknownArgs: [], - knownArgs: [], - }, mockLogger, mockSystem); - taskHelpSpy.mockRestore(); - }); - }); - }); - describe('runTask()', () => { - let sys; - let unvalidatedConfig; - let taskBuildSpy; - let taskDocsSpy; - let taskGenerateSpy; - let taskHelpSpy; - let taskPrerenderSpy; - let taskServeSpy; - let taskTelemetrySpy; - let taskTestSpy; - beforeEach(() => { - sys = mockCompilerSystem(); - sys.exit = jest.fn(); - unvalidatedConfig = mockConfig({ outputTargets: [], sys, fsNamespace: 'testing' }); - taskBuildSpy = jest.spyOn(BuildTask, 'taskBuild'); - taskBuildSpy.mockResolvedValue(); - taskDocsSpy = jest.spyOn(DocsTask, 'taskDocs'); - taskDocsSpy.mockResolvedValue(); - taskGenerateSpy = jest.spyOn(GenerateTask, 'taskGenerate'); - taskGenerateSpy.mockResolvedValue(); - taskHelpSpy = jest.spyOn(HelpTask, 'taskHelp'); - taskHelpSpy.mockResolvedValue(); - taskPrerenderSpy = jest.spyOn(PrerenderTask, 'taskPrerender'); - taskPrerenderSpy.mockResolvedValue(); - taskServeSpy = jest.spyOn(ServeTask, 'taskServe'); - taskServeSpy.mockResolvedValue(); - taskTelemetrySpy = jest.spyOn(TelemetryTask, 'taskTelemetry'); - taskTelemetrySpy.mockResolvedValue(); - taskTestSpy = jest.spyOn(TestTask, 'taskTest'); - taskTestSpy.mockResolvedValue(); - }); - afterEach(() => { - taskBuildSpy.mockRestore(); - taskDocsSpy.mockRestore(); - taskGenerateSpy.mockRestore(); - taskHelpSpy.mockRestore(); - taskPrerenderSpy.mockRestore(); - taskServeSpy.mockRestore(); - taskTelemetrySpy.mockRestore(); - taskTestSpy.mockRestore(); - }); - describe('default configuration', () => { - describe('sys property', () => { - it('uses the sys argument if one is provided', async () => { - // remove the `CompilerSystem` on the config, just to be sure we don't accidentally use it - unvalidatedConfig.sys = undefined; - await runTask(coreCompiler, unvalidatedConfig, 'build', sys); - const validated = coreCompiler.validateConfig(unvalidatedConfig, { sys }); - // first validate there was one call, and that call had two arguments - expect(taskBuildSpy).toHaveBeenCalledTimes(1); - expect(taskBuildSpy).toHaveBeenCalledWith(coreCompiler, validated.config); - const compilerSystemUsed = taskBuildSpy.mock.calls[0][1].sys; - expect(compilerSystemUsed).toBe(sys); - }); - }); - }); - it('calls the build task', async () => { - await runTask(coreCompiler, unvalidatedConfig, 'build', sys); - const validated = coreCompiler.validateConfig(unvalidatedConfig, {}); - expect(taskBuildSpy).toHaveBeenCalledTimes(1); - expect(taskBuildSpy).toHaveBeenCalledWith(coreCompiler, validated.config); - }); - it('calls the docs task', async () => { - await runTask(coreCompiler, unvalidatedConfig, 'docs', sys); - const validated = coreCompiler.validateConfig(unvalidatedConfig, {}); - expect(taskDocsSpy).toHaveBeenCalledTimes(1); - expect(taskDocsSpy).toHaveBeenCalledWith(coreCompiler, validated.config); - }); - describe('generate task', () => { - it("calls the generate task for the argument 'generate'", async () => { - await runTask(coreCompiler, unvalidatedConfig, 'generate', sys); - const validated = coreCompiler.validateConfig(unvalidatedConfig, {}); - expect(taskGenerateSpy).toHaveBeenCalledTimes(1); - expect(taskGenerateSpy).toHaveBeenCalledWith(validated.config); - }); - it("calls the generate task for the argument 'g'", async () => { - await runTask(coreCompiler, unvalidatedConfig, 'g', sys); - const validated = coreCompiler.validateConfig(unvalidatedConfig, {}); - expect(taskGenerateSpy).toHaveBeenCalledTimes(1); - expect(taskGenerateSpy).toHaveBeenCalledWith(validated.config); - }); - }); - it('calls the help task', async () => { - await runTask(coreCompiler, unvalidatedConfig, 'help', sys); - const validated = coreCompiler.validateConfig(unvalidatedConfig, {}); - expect(taskHelpSpy).toHaveBeenCalledTimes(1); - expect(taskHelpSpy).toHaveBeenCalledWith(validated.config.flags, validated.config.logger, sys); - }); - it('calls the prerender task', async () => { - await runTask(coreCompiler, unvalidatedConfig, 'prerender', sys); - const validated = coreCompiler.validateConfig(unvalidatedConfig, {}); - expect(taskPrerenderSpy).toHaveBeenCalledTimes(1); - expect(taskPrerenderSpy).toHaveBeenCalledWith(coreCompiler, validated.config); - }); - it('calls the serve task', async () => { - await runTask(coreCompiler, unvalidatedConfig, 'serve', sys); - expect(taskServeSpy).toHaveBeenCalledTimes(1); - expect(taskServeSpy).toHaveBeenCalledWith(coreCompiler.validateConfig(unvalidatedConfig, {}).config); - }); - describe('telemetry task', () => { - it('calls the telemetry task when a compiler system is present', async () => { - await runTask(coreCompiler, unvalidatedConfig, 'telemetry', sys); - const validated = coreCompiler.validateConfig(unvalidatedConfig, {}); - expect(taskTelemetrySpy).toHaveBeenCalledTimes(1); - expect(taskTelemetrySpy).toHaveBeenCalledWith(validated.config.flags, sys, validated.config.logger); - }); - }); - it('calls the test task', async () => { - await runTask(coreCompiler, unvalidatedConfig, 'test', sys); - expect(taskTestSpy).toHaveBeenCalledTimes(1); - expect(taskTestSpy).toHaveBeenCalledWith(coreCompiler.validateConfig(unvalidatedConfig, {}).config); - }); - it('defaults to the help task for an unaccounted for task name', async () => { - // info is a valid task name, but isn't used in the `switch` statement of `runTask` - await runTask(coreCompiler, unvalidatedConfig, 'info', sys); - const validated = coreCompiler.validateConfig(unvalidatedConfig, {}); - expect(taskHelpSpy).toHaveBeenCalledTimes(1); - expect(taskHelpSpy).toHaveBeenCalledWith(validated.config.flags, validated.config.logger, sys); - }); - it('defaults to the provided task if no flags exist on the provided config', async () => { - unvalidatedConfig = mockConfig({ flags: undefined, sys }); - await runTask(coreCompiler, unvalidatedConfig, 'help', sys); - const validated = coreCompiler.validateConfig(unvalidatedConfig, {}); - expect(taskHelpSpy).toHaveBeenCalledTimes(1); - expect(taskHelpSpy).toHaveBeenCalledWith(createConfigFlags({ task: 'help' }), validated.config.logger, sys); - }); - }); -}); -//# sourceMappingURL=run.spec.js.map \ No newline at end of file diff --git a/build/cli/test/run.spec.js.map b/build/cli/test/run.spec.js.map deleted file mode 100644 index 230d47ce371..00000000000 --- a/build/cli/test/run.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"run.spec.js","sourceRoot":"","sources":["../../../src/cli/test/run.spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGvG,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,OA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,iBAAiB,GAAG,UAAU,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;YAE1D,MAAM,OAAO,CAAC,YAAY,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;YAC5D,MAAM,SAAS,GAAG,YAAY,CAAC,cAAc,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;YAErE,MAAM,CAAC,WAAW,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAC7C,MAAM,CAAC,WAAW,CAAC,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC9G,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/cli/test/task-generate.spec.d.ts b/build/cli/test/task-generate.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/cli/test/task-generate.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/cli/test/task-generate.spec.js b/build/cli/test/task-generate.spec.js deleted file mode 100644 index 9b936d898f9..00000000000 --- a/build/cli/test/task-generate.spec.js +++ /dev/null @@ -1,106 +0,0 @@ -import { mockCompilerSystem, mockValidatedConfig } from '@stencil/core/testing'; -import * as utils from '../../utils/validation'; -import { createConfigFlags } from '../config-flags'; -import { getBoilerplateByExtension, taskGenerate } from '../task-generate'; -const promptMock = jest.fn().mockResolvedValue('my-component'); -jest.mock('prompts', () => ({ - prompt: promptMock, -})); -const setup = async () => { - const sys = mockCompilerSystem(); - const config = mockValidatedConfig({ - configPath: '/testing-path', - flags: createConfigFlags({ task: 'generate' }), - srcDir: '/src', - sys, - }); - // set up some mocks / spies - config.sys.exit = jest.fn(); - const errorSpy = jest.spyOn(config.logger, 'error'); - const validateTagSpy = jest.spyOn(utils, 'validateComponentTag').mockReturnValue(undefined); - // mock prompt usage: tagName and filesToGenerate are the keys used for - // different calls, so we can cheat here and just do a single - // mockResolvedValue - promptMock.mockResolvedValue({ - tagName: 'my-component', - filesToGenerate: ['css', 'spec.tsx', 'e2e.ts'], - }); - return { config, errorSpy, validateTagSpy }; -}; -/** - * Little test helper function which just temporarily silences - * console.log calls, so we can avoid spewing a bunch of stuff. - * @param config the user-supplied config to forward to `taskGenerate` - */ -async function silentGenerate(config) { - const tmp = console.log; - console.log = jest.fn(); - await taskGenerate(config); - console.log = tmp; -} -describe('generate task', () => { - afterEach(() => { - jest.restoreAllMocks(); - jest.clearAllMocks(); - jest.resetModules(); - }); - afterAll(() => { - jest.resetAllMocks(); - }); - it('should exit with an error if no `configPath` is supplied', async () => { - const { config, errorSpy } = await setup(); - config.configPath = undefined; - await taskGenerate(config); - expect(config.sys.exit).toHaveBeenCalledWith(1); - expect(errorSpy).toHaveBeenCalledWith('Please run this command in your root directory (i. e. the one containing stencil.config.ts).'); - }); - it('should exit with an error if no `srcDir` is supplied', async () => { - const { config, errorSpy } = await setup(); - config.srcDir = undefined; - await taskGenerate(config); - expect(config.sys.exit).toHaveBeenCalledWith(1); - expect(errorSpy).toHaveBeenCalledWith("Stencil's srcDir was not specified."); - }); - it('should exit with an error if the component name does not validate', async () => { - const { config, errorSpy, validateTagSpy } = await setup(); - validateTagSpy.mockReturnValue('error error error'); - await taskGenerate(config); - expect(config.sys.exit).toHaveBeenCalledWith(1); - expect(errorSpy).toHaveBeenCalledWith('error error error'); - }); - it.each([true, false])('should create a directory for the generated components', async (includeTests) => { - const { config } = await setup(); - if (!includeTests) { - promptMock.mockResolvedValue({ - tagName: 'my-component', - // simulate the user picking only the css option - filesToGenerate: ['css'], - }); - } - const createDirSpy = jest.spyOn(config.sys, 'createDir'); - await silentGenerate(config); - expect(createDirSpy).toHaveBeenCalledWith(includeTests ? `${config.srcDir}/components/my-component/test` : `${config.srcDir}/components/my-component`, { recursive: true }); - }); - it('should generate the files the user picked', async () => { - const { config } = await setup(); - const writeFileSpy = jest.spyOn(config.sys, 'writeFile'); - await silentGenerate(config); - const userChoices = [ - { extension: 'tsx', path: '/src/components/my-component/my-component.tsx' }, - { extension: 'css', path: '/src/components/my-component/my-component.css' }, - { extension: 'spec.tsx', path: '/src/components/my-component/test/my-component.spec.tsx' }, - { extension: 'e2e.ts', path: '/src/components/my-component/test/my-component.e2e.ts' }, - ]; - userChoices.forEach((file) => { - expect(writeFileSpy).toHaveBeenCalledWith(file.path, getBoilerplateByExtension('my-component', file.extension, true)); - }); - }); - it('should error without writing anything if a to-be-generated file is already present', async () => { - const { config, errorSpy } = await setup(); - jest.spyOn(config.sys, 'readFile').mockResolvedValue('some file contents'); - await silentGenerate(config); - expect(errorSpy).toHaveBeenCalledWith('Generating code would overwrite the following files:', '\t/src/components/my-component/my-component.tsx', '\t/src/components/my-component/my-component.css', '\t/src/components/my-component/test/my-component.spec.tsx', '\t/src/components/my-component/test/my-component.e2e.ts'); - expect(config.sys.exit).toHaveBeenCalledWith(1); - }); -}); -//# sourceMappingURL=task-generate.spec.js.map \ No newline at end of file diff --git a/build/cli/test/task-generate.spec.js.map b/build/cli/test/task-generate.spec.js.map deleted file mode 100644 index 4b5bee9f98d..00000000000 --- a/build/cli/test/task-generate.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"task-generate.spec.js","sourceRoot":"","sources":["../../../src/cli/test/task-generate.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGhF,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAmB,yBAAyB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE5F,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC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GAAmC;YAClD,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,+CAA+C,EAAE;YAC3E,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,+CAA+C,EAAE;YAC3E,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,yDAAyD,EAAE;YAC1F,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,uDAAuD,EAAE;SACvF,CAAC;QAEF,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC3B,MAAM,CAAC,YAAY,CAAC,CAAC,oBAAoB,CACvC,IAAI,CAAC,IAAI,EACT,yBAAyB,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAChE,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oFAAoF,EAAE,KAAK,IAAI,EAAE;QAClG,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,KAAK,EAAE,CAAC;QAC3C,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;QAC3E,MAAM,cAAc,CAAC,MAAM,CAAC,CAAC;QAC7B,MAAM,CAAC,QAAQ,CAAC,CAAC,oBAAoB,CACnC,sDAAsD,EACtD,iDAAiD,EACjD,iDAAiD,EACjD,2DAA2D,EAC3D,yDAAyD,CAC1D,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/client/client-build.d.ts b/build/client/client-build.d.ts deleted file mode 100644 index 55f1bb2ea60..00000000000 --- a/build/client/client-build.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../declarations'; -export declare const Build: d.UserBuildConditionals; diff --git a/build/client/client-build.js b/build/client/client-build.js deleted file mode 100644 index 69d363d75ba..00000000000 --- a/build/client/client-build.js +++ /dev/null @@ -1,8 +0,0 @@ -import { BUILD } from '@app-data'; -export const Build = { - isDev: BUILD.isDev ? true : false, - isBrowser: true, - isServer: false, - isTesting: BUILD.isTesting ? true : false, -}; -//# sourceMappingURL=client-build.js.map \ No newline at end of file diff --git a/build/client/client-build.js.map b/build/client/client-build.js.map deleted file mode 100644 index fbb19d17da5..00000000000 --- a/build/client/client-build.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client-build.js","sourceRoot":"","sources":["../../src/client/client-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIlC,MAAM,CAAC,MAAM,KAAK,GAA4B;IAC5C,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;IACjC,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;CAC1C,CAAC"} \ No newline at end of file diff --git a/build/client/client-host-ref.d.ts b/build/client/client-host-ref.d.ts deleted file mode 100644 index 4aedb9574ac..00000000000 --- a/build/client/client-host-ref.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type * as d from '../declarations'; -/** - * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef} - * - * @param ref the runtime ref of interest - * @returns the Host reference (if found) or undefined - */ -export declare const getHostRef: (ref: d.RuntimeRef) => d.HostRef | undefined; -/** - * Register a lazy instance with the {@link hostRefs} object so it's - * corresponding {@link d.HostRef} can be retrieved later. - * - * @param lazyInstance the lazy instance of interest - * @param hostRef that instances `HostRef` object - * @returns a reference to the host ref WeakMap - */ -export declare const registerInstance: (lazyInstance: any, hostRef: d.HostRef) => WeakMap; -/** - * Register a host element for a Stencil component, setting up various metadata - * and callbacks based on {@link BUILD} flags as well as the component's runtime - * metadata. - * - * @param hostElement the host element to register - * @param cmpMeta runtime metadata for that component - * @returns a reference to the host ref WeakMap - */ -export declare const registerHost: (hostElement: d.HostElement, cmpMeta: d.ComponentRuntimeMeta) => WeakMap; -export declare const isMemberInElement: (elm: any, memberName: string) => boolean; diff --git a/build/client/client-host-ref.js b/build/client/client-host-ref.js deleted file mode 100644 index 40f608e5cf1..00000000000 --- a/build/client/client-host-ref.js +++ /dev/null @@ -1,55 +0,0 @@ -import { BUILD } from '@app-data'; -import { addHostEventListeners } from '@runtime'; -/** - * A WeakMap mapping runtime component references to their corresponding host reference - * instances. - */ -const hostRefs = /*@__PURE__*/ new WeakMap(); -/** - * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef} - * - * @param ref the runtime ref of interest - * @returns the Host reference (if found) or undefined - */ -export const getHostRef = (ref) => hostRefs.get(ref); -/** - * Register a lazy instance with the {@link hostRefs} object so it's - * corresponding {@link d.HostRef} can be retrieved later. - * - * @param lazyInstance the lazy instance of interest - * @param hostRef that instances `HostRef` object - * @returns a reference to the host ref WeakMap - */ -export const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef); -/** - * Register a host element for a Stencil component, setting up various metadata - * and callbacks based on {@link BUILD} flags as well as the component's runtime - * metadata. - * - * @param hostElement the host element to register - * @param cmpMeta runtime metadata for that component - * @returns a reference to the host ref WeakMap - */ -export const registerHost = (hostElement, cmpMeta) => { - const hostRef = { - $flags$: 0, - $hostElement$: hostElement, - $cmpMeta$: cmpMeta, - $instanceValues$: new Map(), - }; - if (BUILD.isDev) { - hostRef.$renderCount$ = 0; - } - if (BUILD.method && BUILD.lazyLoad) { - hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r)); - } - if (BUILD.asyncLoading) { - hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r)); - hostElement['s-p'] = []; - hostElement['s-rc'] = []; - } - addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$, false); - return hostRefs.set(hostElement, hostRef); -}; -export const isMemberInElement = (elm, memberName) => memberName in elm; -//# sourceMappingURL=client-host-ref.js.map \ No newline at end of file diff --git a/build/client/client-host-ref.js.map b/build/client/client-host-ref.js.map deleted file mode 100644 index e12c028212b..00000000000 --- a/build/client/client-host-ref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client-host-ref.js","sourceRoot":"","sources":["../../src/client/client-host-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAIjD;;;GAGG;AACH,MAAM,QAAQ,GAAqC,aAAa,CAAC,IAAI,OAAO,EAAE,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAiB,EAAyB,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1F;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,YAAiB,EAAE,OAAkB,EAAE,EAAE,CACxE,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,cAAc,GAAG,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAEjE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,WAA0B,EAAE,OAA+B,EAAE,EAAE;IAC1F,MAAM,OAAO,GAAc;QACzB,OAAO,EAAE,CAAC;QACV,aAAa,EAAE,WAAW;QAC1B,SAAS,EAAE,OAAO;QAClB,gBAAgB,EAAE,IAAI,GAAG,EAAE;KAC5B,CAAC;IACF,IAAI,KAAK,CAAC,KAAK,EAAE;QACf,OAAO,CAAC,aAAa,GAAG,CAAC,CAAC;KAC3B;IACD,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,QAAQ,EAAE;QAClC,OAAO,CAAC,mBAAmB,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,GAAG,CAAC,CAAC,CAAC,CAAC;KACrF;IACD,IAAI,KAAK,CAAC,YAAY,EAAE;QACtB,OAAO,CAAC,gBAAgB,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9E,WAAW,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACxB,WAAW,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;KAC1B;IACD,qBAAqB,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IACxE,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAQ,EAAE,UAAkB,EAAE,EAAE,CAAC,UAAU,IAAI,GAAG,CAAC"} \ No newline at end of file diff --git a/build/client/client-load-module.d.ts b/build/client/client-load-module.d.ts deleted file mode 100644 index 19d330e2608..00000000000 --- a/build/client/client-load-module.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type * as d from '../declarations'; -export declare const cmpModules: Map; -export declare const loadModule: (cmpMeta: d.ComponentRuntimeMeta, hostRef: d.HostRef, hmrVersionId?: string) => Promise | d.ComponentConstructor; diff --git a/build/client/client-load-module.js b/build/client/client-load-module.js deleted file mode 100644 index 7e4c2f49931..00000000000 --- a/build/client/client-load-module.js +++ /dev/null @@ -1,29 +0,0 @@ -import { BUILD } from '@app-data'; -import { consoleDevError, consoleError } from './client-log'; -export const cmpModules = /*@__PURE__*/ new Map(); -export const loadModule = (cmpMeta, hostRef, hmrVersionId) => { - // loadModuleImport - const exportName = cmpMeta.$tagName$.replace(/-/g, '_'); - const bundleId = cmpMeta.$lazyBundleId$; - if (BUILD.isDev && typeof bundleId !== 'string') { - consoleDevError(`Trying to lazily load component <${cmpMeta.$tagName$}> with style mode "${hostRef.$modeName$}", but it does not exist.`); - return undefined; - } - const module = !BUILD.hotModuleReplacement ? cmpModules.get(bundleId) : false; - if (module) { - return module[exportName]; - } - /*!__STENCIL_STATIC_IMPORT_SWITCH__*/ - return import( - /* @vite-ignore */ - /* webpackInclude: /\.entry\.js$/ */ - /* webpackExclude: /\.system\.entry\.js$/ */ - /* webpackMode: "lazy" */ - `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? '?s-hmr=' + hmrVersionId : ''}`).then((importedModule) => { - if (!BUILD.hotModuleReplacement) { - cmpModules.set(bundleId, importedModule); - } - return importedModule[exportName]; - }, consoleError); -}; -//# sourceMappingURL=client-load-module.js.map \ No newline at end of file diff --git a/build/client/client-load-module.js.map b/build/client/client-load-module.js.map deleted file mode 100644 index da903eb66dd..00000000000 --- a/build/client/client-load-module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client-load-module.js","sourceRoot":"","sources":["../../src/client/client-load-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE7D,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,GAAG,EAA4D,CAAC;AAE5G,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,OAA+B,EAC/B,OAAkB,EAClB,YAAqB,EACqC,EAAE;IAC5D,mBAAmB;IACnB,MAAM,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;IACxC,IAAI,KAAK,CAAC,KAAK,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAC/C,eAAe,CACb,oCAAoC,OAAO,CAAC,SAAS,sBAAsB,OAAO,CAAC,UAAU,2BAA2B,CACzH,CAAC;QACF,OAAO,SAAS,CAAC;KAClB;IACD,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9E,IAAI,MAAM,EAAE;QACV,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC;KAC3B;IACD,qCAAqC;IACrC,OAAO,MAAM;IACX,kBAAkB;IAClB,oCAAoC;IACpC,4CAA4C;IAC5C,yBAAyB;IACzB,KAAK,QAAQ,YAAY,KAAK,CAAC,oBAAoB,IAAI,YAAY,CAAC,CAAC,CAAC,SAAS,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CACtG,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE;QACxB,IAAI,CAAC,KAAK,CAAC,oBAAoB,EAAE;YAC/B,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;SAC1C;QACD,OAAO,cAAc,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC,EAAE,YAAY,CAAC,CAAC;AACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/client/client-log.d.ts b/build/client/client-log.d.ts deleted file mode 100644 index 244dbe4cdef..00000000000 --- a/build/client/client-log.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type * as d from '../declarations'; -export declare const consoleError: d.ErrorHandler; -export declare const STENCIL_DEV_MODE: string[]; -export declare const consoleDevError: (...m: any[]) => void; -export declare const consoleDevWarn: (...m: any[]) => void; -export declare const consoleDevInfo: (...m: any[]) => void; -export declare const setErrorHandler: (handler: d.ErrorHandler) => d.ErrorHandler; diff --git a/build/client/client-log.js b/build/client/client-log.js deleted file mode 100644 index e2290a0cec0..00000000000 --- a/build/client/client-log.js +++ /dev/null @@ -1,14 +0,0 @@ -import { BUILD } from '@app-data'; -let customError; -export const consoleError = (e, el) => (customError || console.error)(e, el); -export const STENCIL_DEV_MODE = BUILD.isTesting - ? ['STENCIL:'] // E2E testing - : [ - '%cstencil', - 'color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px', - ]; -export const consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m); -export const consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m); -export const consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m); -export const setErrorHandler = (handler) => (customError = handler); -//# sourceMappingURL=client-log.js.map \ No newline at end of file diff --git a/build/client/client-log.js.map b/build/client/client-log.js.map deleted file mode 100644 index f6c1ea0260c..00000000000 --- a/build/client/client-log.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client-log.js","sourceRoot":"","sources":["../../src/client/client-log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIlC,IAAI,WAA2B,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,GAAmB,CAAC,CAAM,EAAE,EAAQ,EAAE,EAAE,CAAC,CAAC,WAAW,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAExG,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,SAAS;IAC7C,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,cAAc;IAC7B,CAAC,CAAC;QACE,WAAW;QACX,wGAAwG;KACzG,CAAC;AAEN,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAG,CAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAC;AAEzF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAG,CAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAC;AAEvF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAG,CAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAC;AAEvF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAuB,EAAE,EAAE,CAAC,CAAC,WAAW,GAAG,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/build/client/client-patch-browser.d.ts b/build/client/client-patch-browser.d.ts deleted file mode 100644 index 88bee54ba40..00000000000 --- a/build/client/client-patch-browser.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../declarations'; -export declare const patchBrowser: () => Promise; diff --git a/build/client/client-patch-browser.js b/build/client/client-patch-browser.js deleted file mode 100644 index c0bfede2eb8..00000000000 --- a/build/client/client-patch-browser.js +++ /dev/null @@ -1,42 +0,0 @@ -import { BUILD, NAMESPACE } from '@app-data'; -import { consoleDevInfo, doc, H, promiseResolve } from '@platform'; -export const patchBrowser = () => { - // NOTE!! This fn cannot use async/await! - if (BUILD.isDev && !BUILD.isTesting) { - consoleDevInfo('Running in development mode.'); - } - if (BUILD.cloneNodeFix) { - // opted-in to polyfill cloneNode() for slot polyfilled components - patchCloneNodeFix(H.prototype); - } - const scriptElm = BUILD.scriptDataOpts - ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || - s.getAttribute('data-stencil-namespace') === NAMESPACE) - : null; - const importMeta = import.meta.url; - const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {}; - if (importMeta !== '') { - opts.resourcesUrl = new URL('.', importMeta).href; - } - return promiseResolve(opts); -}; -const patchCloneNodeFix = (HTMLElementPrototype) => { - const nativeCloneNodeFn = HTMLElementPrototype.cloneNode; - HTMLElementPrototype.cloneNode = function (deep) { - if (this.nodeName === 'TEMPLATE') { - return nativeCloneNodeFn.call(this, deep); - } - const clonedNode = nativeCloneNodeFn.call(this, false); - const srcChildNodes = this.childNodes; - if (deep) { - for (let i = 0; i < srcChildNodes.length; i++) { - // Node.ATTRIBUTE_NODE === 2, and checking because IE11 - if (srcChildNodes[i].nodeType !== 2) { - clonedNode.appendChild(srcChildNodes[i].cloneNode(true)); - } - } - } - return clonedNode; - }; -}; -//# sourceMappingURL=client-patch-browser.js.map \ No newline at end of file diff --git a/build/client/client-patch-browser.js.map b/build/client/client-patch-browser.js.map deleted file mode 100644 index 9e45a4ce933..00000000000 --- a/build/client/client-patch-browser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client-patch-browser.js","sourceRoot":"","sources":["../../src/client/client-patch-browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAInE,MAAM,CAAC,MAAM,YAAY,GAAG,GAA2C,EAAE;IACvE,yCAAyC;IACzC,IAAI,KAAK,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;QACnC,cAAc,CAAC,8BAA8B,CAAC,CAAC;KAChD;IAED,IAAI,KAAK,CAAC,YAAY,EAAE;QACtB,kEAAkE;QAClE,iBAAiB,CAAE,CAAS,CAAC,SAAS,CAAC,CAAC;KACzC;IAED,MAAM,SAAS,GAAG,KAAK,CAAC,cAAc;QACpC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAC7C,CAAC,CAAC,EAAE,EAAE,CACJ,IAAI,MAAM,CAAC,KAAK,SAAS,yBAAyB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;YAC/D,CAAC,CAAC,YAAY,CAAC,wBAAwB,CAAC,KAAK,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 No newline at end of file diff --git a/build/client/client-style.d.ts b/build/client/client-style.d.ts deleted file mode 100644 index 1025d123b46..00000000000 --- a/build/client/client-style.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as d from '../declarations'; -export declare const styles: d.StyleMap; -export declare const modeResolutionChain: d.ResolutionHandler[]; diff --git a/build/client/client-style.js b/build/client/client-style.js deleted file mode 100644 index 779ab3b117d..00000000000 --- a/build/client/client-style.js +++ /dev/null @@ -1,3 +0,0 @@ -export const styles = /*@__PURE__*/ new Map(); -export const modeResolutionChain = []; -//# sourceMappingURL=client-style.js.map \ No newline at end of file diff --git a/build/client/client-style.js.map b/build/client/client-style.js.map deleted file mode 100644 index c9dd759306c..00000000000 --- a/build/client/client-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client-style.js","sourceRoot":"","sources":["../../src/client/client-style.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAe,aAAa,CAAC,IAAI,GAAG,EAAE,CAAC;AAC1D,MAAM,CAAC,MAAM,mBAAmB,GAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/build/client/client-task-queue.d.ts b/build/client/client-task-queue.d.ts deleted file mode 100644 index 33865967fb0..00000000000 --- a/build/client/client-task-queue.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type * as d from '../declarations'; -export declare const nextTick: (cb: () => void) => Promise; -export declare const readTask: (cb: d.RafCallback) => void; -export declare const writeTask: (cb: d.RafCallback) => void; diff --git a/build/client/client-task-queue.js b/build/client/client-task-queue.js deleted file mode 100644 index 65a8fd949e7..00000000000 --- a/build/client/client-task-queue.js +++ /dev/null @@ -1,90 +0,0 @@ -import { BUILD } from '@app-data'; -import { consoleError } from './client-log'; -import { plt, promiseResolve } from './client-window'; -let queueCongestion = 0; -let queuePending = false; -const queueDomReads = []; -const queueDomWrites = []; -const queueDomWritesLow = []; -const queueTask = (queue, write) => (cb) => { - queue.push(cb); - if (!queuePending) { - queuePending = true; - if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) { - nextTick(flush); - } - else { - plt.raf(flush); - } - } -}; -const consume = (queue) => { - for (let i = 0; i < queue.length; i++) { - try { - queue[i](performance.now()); - } - catch (e) { - consoleError(e); - } - } - queue.length = 0; -}; -const consumeTimeout = (queue, timeout) => { - let i = 0; - let ts = 0; - while (i < queue.length && (ts = performance.now()) < timeout) { - try { - queue[i++](ts); - } - catch (e) { - consoleError(e); - } - } - if (i === queue.length) { - queue.length = 0; - } - else if (i !== 0) { - queue.splice(0, i); - } -}; -const flush = () => { - if (BUILD.asyncQueue) { - queueCongestion++; - } - // always force a bunch of medium callbacks to run, but still have - // a throttle on how many can run in a certain time - // DOM READS!!! - consume(queueDomReads); - // DOM WRITES!!! - if (BUILD.asyncQueue) { - const timeout = (plt.$flags$ & 6 /* PLATFORM_FLAGS.queueMask */) === 2 /* PLATFORM_FLAGS.appLoaded */ - ? performance.now() + 14 * Math.ceil(queueCongestion * (1.0 / 10.0)) - : Infinity; - consumeTimeout(queueDomWrites, timeout); - consumeTimeout(queueDomWritesLow, timeout); - if (queueDomWrites.length > 0) { - queueDomWritesLow.push(...queueDomWrites); - queueDomWrites.length = 0; - } - if ((queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0)) { - // still more to do yet, but we've run out of time - // let's let this thing cool off and try again in the next tick - plt.raf(flush); - } - else { - queueCongestion = 0; - } - } - else { - consume(queueDomWrites); - if ((queuePending = queueDomReads.length > 0)) { - // still more to do yet, but we've run out of time - // let's let this thing cool off and try again in the next tick - plt.raf(flush); - } - } -}; -export const nextTick = (cb) => promiseResolve().then(cb); -export const readTask = /*@__PURE__*/ queueTask(queueDomReads, false); -export const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true); -//# sourceMappingURL=client-task-queue.js.map \ No newline at end of file diff --git a/build/client/client-task-queue.js.map b/build/client/client-task-queue.js.map deleted file mode 100644 index 15cebc3d849..00000000000 --- a/build/client/client-task-queue.js.map +++ /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,CAAC;YAC1C,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC;SAC3B;QAED,IAAI,CAAC,YAAY,GAAG,aAAa,CAAC,MAAM,GAAG,cAAc,CAAC,MAAM,GAAG,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE;YAChG,kDAAkD;YAClD,+DAA+D;YAC/D,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SAChB;aAAM;YACL,eAAe,GAAG,CAAC,CAAC;SACrB;KACF;SAAM;QACL,OAAO,CAAC,cAAc,CAAC,CAAC;QACxB,IAAI,CAAC,YAAY,GAAG,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE;YAC7C,kDAAkD;YAClD,+DAA+D;YAC/D,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SAChB;KACF;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAc,EAAE,EAAE,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/build/client/client-window.d.ts b/build/client/client-window.d.ts deleted file mode 100644 index e82f01ee316..00000000000 --- a/build/client/client-window.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type * as d from '../declarations'; -export declare const win: Window; -export declare const doc: Document; -export declare const H: HTMLElement; -export declare const plt: d.PlatformRuntime; -export declare const setPlatformHelpers: (helpers: { - jmp?: (c: any) => any; - raf?: (c: any) => number; - ael?: (el: any, eventName: string, listener: any, options: any) => void; - rel?: (el: any, eventName: string, listener: any, options: any) => void; - ce?: (eventName: string, opts?: any) => any; -}) => void; -export declare const supportsShadow: boolean; -export declare const supportsListenerOptions: boolean; -export declare const promiseResolve: (v?: any) => Promise; -export declare const supportsConstructableStylesheets: boolean; -export { H as HTMLElement }; diff --git a/build/client/client-window.js b/build/client/client-window.js deleted file mode 100644 index 9604c62b65c..00000000000 --- a/build/client/client-window.js +++ /dev/null @@ -1,47 +0,0 @@ -import { BUILD } from '@app-data'; -export const win = typeof window !== 'undefined' ? window : (globalThis || {}); -export const doc = win.document || { head: {} }; -export const H = (win.HTMLElement || class { -}); -export const plt = { - $flags$: 0, - $resourcesUrl$: '', - jmp: (h) => h(), - raf: (h) => requestAnimationFrame(h), - ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts), - rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts), - ce: (eventName, opts) => new CustomEvent(eventName, opts), -}; -export const setPlatformHelpers = (helpers) => { - Object.assign(plt, helpers); -}; -export const supportsShadow = -// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field -BUILD.shadowDomShim && BUILD.shadowDom - ? /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)() - : true; -export const supportsListenerOptions = /*@__PURE__*/ (() => { - let supportsListenerOptions = false; - try { - doc.addEventListener('e', null, Object.defineProperty({}, 'passive', { - get() { - supportsListenerOptions = true; - }, - })); - } - catch (e) { } - return supportsListenerOptions; -})(); -export const promiseResolve = (v) => Promise.resolve(v); -export const supportsConstructableStylesheets = BUILD.constructableCSS - ? /*@__PURE__*/ (() => { - try { - new CSSStyleSheet(); - return typeof new CSSStyleSheet().replaceSync === 'function'; - } - catch (e) { } - return false; - })() - : false; -export { H as HTMLElement }; -//# sourceMappingURL=client-window.js.map \ No newline at end of file diff --git a/build/client/client-window.js.map b/build/client/client-window.js.map deleted file mode 100644 index dd0d071c66b..00000000000 --- a/build/client/client-window.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client-window.js","sourceRoot":"","sources":["../../src/client/client-window.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM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AAC,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;IAC9E,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,CAAC,GAAG,EAAE;IACzD,IAAI,uBAAuB,GAAG,KAAK,CAAC;IACpC,IAAI;QACF,GAAG,CAAC,gBAAgB,CAClB,GAAG,EACH,IAAI,EACJ,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE;YACnC,GAAG;gBACD,uBAAuB,GAAG,IAAI,CAAC;YACjC,CAAC;SACF,CAAC,CACH,CAAC;KACH;IAAC,OAAO,CAAC,EAAE,GAAE;IACd,OAAO,uBAAuB,CAAC;AACjC,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAO,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAE9D,MAAM,CAAC,MAAM,gCAAgC,GAAG,KAAK,CAAC,gBAAgB;IACpE,CAAC,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE;QAClB,IAAI;YACF,IAAI,aAAa,EAAE,CAAC;YACpB,OAAO,OAAO,IAAI,aAAa,EAAE,CAAC,WAAW,KAAK,UAAU,CAAC;SAC9D;QAAC,OAAO,CAAC,EAAE,GAAE;QACd,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,EAAE;IACN,CAAC,CAAC,KAAK,CAAC;AAEV,OAAO,EAAE,CAAC,IAAI,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/build/client/index.d.ts b/build/client/index.d.ts deleted file mode 100644 index 372348bde66..00000000000 --- a/build/client/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export * from './client-build'; -export * from './client-host-ref'; -export * from './client-load-module'; -export * from './client-log'; -export * from './client-style'; -export * from './client-task-queue'; -export * from './client-window'; -export { BUILD, Env, NAMESPACE } from '@app-data'; -export * from '@runtime'; diff --git a/build/client/index.js b/build/client/index.js deleted file mode 100644 index 8af4cc2f701..00000000000 --- a/build/client/index.js +++ /dev/null @@ -1,10 +0,0 @@ -export * from './client-build'; -export * from './client-host-ref'; -export * from './client-load-module'; -export * from './client-log'; -export * from './client-style'; -export * from './client-task-queue'; -export * from './client-window'; -export { BUILD, Env, NAMESPACE } from '@app-data'; -export * from '@runtime'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/client/index.js.map b/build/client/index.js.map deleted file mode 100644 index f235146faaf..00000000000 --- a/build/client/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAClD,cAAc,UAAU,CAAC"} \ No newline at end of file diff --git a/build/compiler/app-core/app-data.d.ts b/build/compiler/app-core/app-data.d.ts deleted file mode 100644 index daff0c97dc2..00000000000 --- a/build/compiler/app-core/app-data.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { BuildConditionals, BuildFeatures, ComponentCompilerMeta, ModuleMap, ValidatedConfig } from '@stencil/core/internal'; -/** - * Re-export {@link BUILD} defaults - */ -export * from '../../app-data'; -/** - * Generate a {@link BuildFeatures} entity, based on the provided component metadata - * @param cmps a collection of component compiler metadata, used to set values on the generated build features object - * @returns the generated build features entity - */ -export declare const getBuildFeatures: (cmps: ComponentCompilerMeta[]) => BuildFeatures; -export declare const updateComponentBuildConditionals: (moduleMap: ModuleMap, cmps: ComponentCompilerMeta[]) => void; -/** - * Update the provided build conditionals object in-line with a provided Stencil project configuration - * - * **This function mutates the build conditionals argument** - * - * @param config the Stencil configuration to use to update the provided build conditionals - * @param b the build conditionals to update - */ -export declare const updateBuildConditionals: (config: ValidatedConfig, b: BuildConditionals) => void; diff --git a/build/compiler/app-core/app-data.js b/build/compiler/app-core/app-data.js deleted file mode 100644 index c109c44ab45..00000000000 --- a/build/compiler/app-core/app-data.js +++ /dev/null @@ -1,172 +0,0 @@ -import { unique } from '@utils'; -/** - * Re-export {@link BUILD} defaults - */ -export * from '../../app-data'; -/** - * Generate a {@link BuildFeatures} entity, based on the provided component metadata - * @param cmps a collection of component compiler metadata, used to set values on the generated build features object - * @returns the generated build features entity - */ -export const getBuildFeatures = (cmps) => { - const slot = cmps.some((c) => c.htmlTagNames.includes('slot')); - const shadowDom = cmps.some((c) => c.encapsulation === 'shadow'); - const slotRelocation = cmps.some((c) => c.encapsulation !== 'shadow' && c.htmlTagNames.includes('slot')); - const f = { - allRenderFn: cmps.every((c) => c.hasRenderFn), - cmpDidLoad: cmps.some((c) => c.hasComponentDidLoadFn), - cmpShouldUpdate: cmps.some((c) => c.hasComponentShouldUpdateFn), - cmpDidUnload: cmps.some((c) => c.hasComponentDidUnloadFn), - cmpDidUpdate: cmps.some((c) => c.hasComponentDidUpdateFn), - cmpDidRender: cmps.some((c) => c.hasComponentDidRenderFn), - cmpWillLoad: cmps.some((c) => c.hasComponentWillLoadFn), - cmpWillUpdate: cmps.some((c) => c.hasComponentWillUpdateFn), - cmpWillRender: cmps.some((c) => c.hasComponentWillRenderFn), - formAssociated: cmps.some((c) => c.formAssociated), - connectedCallback: cmps.some((c) => c.hasConnectedCallbackFn), - disconnectedCallback: cmps.some((c) => c.hasDisconnectedCallbackFn), - element: cmps.some((c) => c.hasElement), - event: cmps.some((c) => c.hasEvent), - hasRenderFn: cmps.some((c) => c.hasRenderFn), - lifecycle: cmps.some((c) => c.hasLifecycle), - asyncLoading: false, - hostListener: cmps.some((c) => c.hasListener), - hostListenerTargetWindow: cmps.some((c) => c.hasListenerTargetWindow), - hostListenerTargetDocument: cmps.some((c) => c.hasListenerTargetDocument), - hostListenerTargetBody: cmps.some((c) => c.hasListenerTargetBody), - hostListenerTargetParent: cmps.some((c) => c.hasListenerTargetParent), - hostListenerTarget: cmps.some((c) => c.hasListenerTarget), - member: cmps.some((c) => c.hasMember), - method: cmps.some((c) => c.hasMethod), - mode: cmps.some((c) => c.hasMode), - observeAttribute: cmps.some((c) => c.hasAttribute), - prop: cmps.some((c) => c.hasProp), - propBoolean: cmps.some((c) => c.hasPropBoolean), - propNumber: cmps.some((c) => c.hasPropNumber), - propString: cmps.some((c) => c.hasPropString), - propMutable: cmps.some((c) => c.hasPropMutable), - reflect: cmps.some((c) => c.hasReflect), - scoped: cmps.some((c) => c.encapsulation === 'scoped'), - shadowDom, - shadowDelegatesFocus: shadowDom && cmps.some((c) => c.shadowDelegatesFocus), - slot, - slotRelocation, - state: cmps.some((c) => c.hasState), - style: cmps.some((c) => c.hasStyle), - svg: cmps.some((c) => c.htmlTagNames.includes('svg')), - updatable: cmps.some((c) => c.isUpdateable), - vdomAttribute: cmps.some((c) => c.hasVdomAttribute), - vdomXlink: cmps.some((c) => c.hasVdomXlink), - vdomClass: cmps.some((c) => c.hasVdomClass), - vdomFunctional: cmps.some((c) => c.hasVdomFunctional), - vdomKey: cmps.some((c) => c.hasVdomKey), - vdomListener: cmps.some((c) => c.hasVdomListener), - vdomPropOrAttr: cmps.some((c) => c.hasVdomPropOrAttr), - vdomRef: cmps.some((c) => c.hasVdomRef), - vdomRender: cmps.some((c) => c.hasVdomRender), - vdomStyle: cmps.some((c) => c.hasVdomStyle), - vdomText: cmps.some((c) => c.hasVdomText), - watchCallback: cmps.some((c) => c.hasWatchCallback), - taskQueue: true, - }; - f.asyncLoading = f.cmpWillUpdate || f.cmpWillLoad || f.cmpWillRender; - f.vdomAttribute = f.vdomAttribute || f.reflect; - f.vdomPropOrAttr = f.vdomPropOrAttr || f.reflect; - return f; -}; -export const updateComponentBuildConditionals = (moduleMap, cmps) => { - cmps.forEach((cmp) => { - const importedModules = getModuleImports(moduleMap, cmp.sourceFilePath, []); - importedModules.forEach((importedModule) => { - // if the component already has a boolean true value it'll keep it - // otherwise we get the boolean value from the imported module - cmp.hasVdomAttribute = cmp.hasVdomAttribute || importedModule.hasVdomAttribute; - cmp.hasVdomPropOrAttr = cmp.hasVdomPropOrAttr || importedModule.hasVdomPropOrAttr; - cmp.hasVdomXlink = cmp.hasVdomXlink || importedModule.hasVdomXlink; - cmp.hasVdomClass = cmp.hasVdomClass || importedModule.hasVdomClass; - cmp.hasVdomFunctional = cmp.hasVdomFunctional || importedModule.hasVdomFunctional; - cmp.hasVdomKey = cmp.hasVdomKey || importedModule.hasVdomKey; - cmp.hasVdomListener = cmp.hasVdomListener || importedModule.hasVdomListener; - cmp.hasVdomRef = cmp.hasVdomRef || importedModule.hasVdomRef; - cmp.hasVdomRender = cmp.hasVdomRender || importedModule.hasVdomRender; - cmp.hasVdomStyle = cmp.hasVdomStyle || importedModule.hasVdomStyle; - cmp.hasVdomText = cmp.hasVdomText || importedModule.hasVdomText; - cmp.htmlAttrNames.push(...importedModule.htmlAttrNames); - cmp.htmlTagNames.push(...importedModule.htmlTagNames); - cmp.potentialCmpRefs.push(...importedModule.potentialCmpRefs); - }); - cmp.htmlAttrNames = unique(cmp.htmlAttrNames); - cmp.htmlTagNames = unique(cmp.htmlTagNames); - cmp.potentialCmpRefs = unique(cmp.potentialCmpRefs); - }); -}; -const getModuleImports = (moduleMap, filePath, importedModules) => { - let moduleFile = moduleMap.get(filePath); - if (moduleFile == null) { - moduleFile = moduleMap.get(filePath + '.tsx'); - if (moduleFile == null) { - moduleFile = moduleMap.get(filePath + '.ts'); - if (moduleFile == null) { - moduleFile = moduleMap.get(filePath + '.js'); - } - } - } - if (moduleFile != null && !importedModules.some((m) => m.sourceFilePath === moduleFile.sourceFilePath)) { - importedModules.push(moduleFile); - moduleFile.localImports.forEach((localImport) => { - getModuleImports(moduleMap, localImport, importedModules); - }); - } - return importedModules; -}; -/** - * Update the provided build conditionals object in-line with a provided Stencil project configuration - * - * **This function mutates the build conditionals argument** - * - * @param config the Stencil configuration to use to update the provided build conditionals - * @param b the build conditionals to update - */ -export const updateBuildConditionals = (config, b) => { - b.isDebug = config.logLevel === 'debug'; - b.isDev = !!config.devMode; - b.isTesting = !!config._isTesting; - b.devTools = b.isDev && !config._isTesting; - b.profile = !!config.profile; - b.hotModuleReplacement = !!(config.devMode && - config.devServer && - config.devServer.reloadStrategy === 'hmr' && - !config._isTesting); - b.updatable = b.updatable || b.hydrateClientSide || b.hotModuleReplacement; - b.member = b.member || b.updatable || b.mode || b.lifecycle; - b.constructableCSS = !b.hotModuleReplacement || !!config._isTesting; - b.asyncLoading = !!(b.asyncLoading || b.lazyLoad || b.taskQueue || b.initializeNextTick); - b.cssAnnotations = true; - // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior - b.appendChildSlotFix = config.extras.appendChildSlotFix; - // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior - b.slotChildNodesFix = config.extras.slotChildNodesFix; - // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior - b.experimentalSlotFixes = config.extras.experimentalSlotFixes; - // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior - b.cloneNodeFix = config.extras.cloneNodeFix; - b.lifecycleDOMEvents = !!(b.isDebug || config._isTesting || config.extras.lifecycleDOMEvents); - // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior - b.scopedSlotTextContentFix = !!config.extras.scopedSlotTextContentFix; - b.scriptDataOpts = config.extras.scriptDataOpts; - b.attachStyles = true; - b.invisiblePrehydration = typeof config.invisiblePrehydration === 'undefined' ? true : config.invisiblePrehydration; - // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field - if (b.shadowDomShim) { - b.slotRelocation = b.slot; - } - if (config.hydratedFlag) { - b.hydratedAttribute = config.hydratedFlag.selector === 'attribute'; - b.hydratedClass = config.hydratedFlag.selector === 'class'; - } - else { - b.hydratedAttribute = false; - b.hydratedClass = false; - } -}; -//# sourceMappingURL=app-data.js.map \ No newline at end of file diff --git a/build/compiler/app-core/app-data.js.map b/build/compiler/app-core/app-data.js.map deleted file mode 100644 index fc880c7bbf5..00000000000 --- a/build/compiler/app-core/app-data.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"app-data.js","sourceRoot":"","sources":["../../../src/compiler/app-core/app-data.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC;;GAEG;AACH,cAAc,gBAAgB,CAAC;AAE/B;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAA6B,EAAiB,EAAE;IAC/E,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,QAAQ,CAAC,CAAC;IACjE,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,QAAQ,IAAI,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IACzG,MAAM,CAAC,GAAkB;QACvB,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC;QAC7C,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,qBAAqB,CAAC;QACrD,eAAe,EAAE,IAAI,CAAC,IAAI,CA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3B;IACD,IAAI,MAAM,CAAC,YAAY,EAAE;QACvB,CAAC,CAAC,iBAAiB,GAAG,MAAM,CAAC,YAAY,CAAC,QAAQ,KAAK,WAAW,CAAC;QACnE,CAAC,CAAC,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,QAAQ,KAAK,OAAO,CAAC;KAC5D;SAAM;QACL,CAAC,CAAC,iBAAiB,GAAG,KAAK,CAAC;QAC5B,CAAC,CAAC,aAAa,GAAG,KAAK,CAAC;KACzB;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/app-core/app-es5-disabled.d.ts b/build/compiler/app-core/app-es5-disabled.d.ts deleted file mode 100644 index 766effdc637..00000000000 --- a/build/compiler/app-core/app-es5-disabled.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const generateEs5DisabledMessage: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, outputTarget: d.OutputTargetWww) => Promise; diff --git a/build/compiler/app-core/app-es5-disabled.js b/build/compiler/app-core/app-es5-disabled.js deleted file mode 100644 index c383adbf5bf..00000000000 --- a/build/compiler/app-core/app-es5-disabled.js +++ /dev/null @@ -1,139 +0,0 @@ -import { escapeHtml, generatePreamble, join } from '@utils'; -export const generateEs5DisabledMessage = async (config, compilerCtx, outputTarget) => { - // not doing an es5 right now - // but it's possible during development the user - // tests on a browser that doesn't support es2017 - const fileName = `${config.fsNamespace}.js`; - const filePath = join(outputTarget.buildDir, fileName); - await compilerCtx.fs.writeFile(filePath, getDisabledMessageScript(config)); - return fileName; -}; -const getDisabledMessageScript = (config) => { - const style = ` - -`; - const htmlLegacy = ` - ${style} - -

This Stencil app is disabled for this browser.

- -

Developers:

-
    -
  • ES5 builds are disabled during development to take advantage of 2x faster build times.
  • -
  • Please see the example below or our config docs if you would like to develop on a browser that does not fully support ES2017 and custom elements.
  • -
  • Note that as of Stencil v2, ES5 builds and polyfills are disabled during production builds. You can enable these in your stencil.config.ts file.
  • -
  • When testing browsers it is recommended to always test in production mode, and ES5 builds should always be enabled during production builds.
  • -
  • This is only an experiment and if it slows down app development then we will revert this and enable ES5 builds during dev.
  • -
- - -

Enabling ES5 builds during development:

-
-    npm run dev --es5
-  
-

For stencil-component-starter, use:

-
-    npm start --es5
-  
- - -

Enabling full production builds during development:

-
-    npm run dev --prod
-  
-

For stencil-component-starter, use:

-
-    npm start --prod
-  
- -

Current Browser's Support:

- - -

Current Browser:

-
-    
-  
- `; - const htmlUpdate = ` - ${style} - -

Update src/index.html

- -

Stencil recently changed how scripts are loaded in order to improve performance.

- -

BEFORE:

-

Previously, a single script was included that handled loading the correct JavaScript based on browser support.

-
-    ${escapeHtml(`
-`)}
-  
- -

AFTER:

-

The index.html should now include two scripts using the modern ES Module script pattern. - Note that only one file will actually be requested and loaded based on the browser's native support for ES Modules. - For more info, please see Using JavaScript modules on the web. -

-
-  ${escapeHtml(`type="module" src="/build/${config.fsNamespace}.esm.js"${escapeHtml(`>`)}
-  ${escapeHtml(`nomodule ${escapeHtml(`src="/build/${config.fsNamespace}.js">`)}
-    
- `; - return `${generatePreamble(config)} -(function() { - function checkSupport() { - if (!document.body) { - setTimeout(checkSupport); - return; - } - function supportsDynamicImports() { - try { - new Function('import("")'); - return true; - } catch (e) {} - return false; - } - var supportsEsModules = !!('noModule' in document.createElement('script')); - - if (!supportsEsModules) { - document.body.innerHTML = '${inlineHTML(htmlLegacy)}'; - - document.getElementById('current-browser-output').textContent = window.navigator.userAgent; - document.getElementById('es-modules-test').textContent = supportsEsModules; - document.getElementById('es-dynamic-modules-test').textContent = supportsDynamicImports(); - document.getElementById('shadow-dom-test').textContent = !!(document.head.attachShadow); - document.getElementById('custom-elements-test').textContent = !!(window.customElements); - document.getElementById('css-variables-test').textContent = !!(window.CSS && window.CSS.supports && window.CSS.supports('color', 'var(--c)')); - document.getElementById('fetch-test').textContent = !!(window.fetch); - } else { - document.body.innerHTML = '${inlineHTML(htmlUpdate)}'; - } - } - - setTimeout(checkSupport); -})();`; -}; -const inlineHTML = (html) => { - return html.replace(/\n/g, '\\n').replace(/\'/g, `\\'`).trim(); -}; -//# sourceMappingURL=app-es5-disabled.js.map \ No newline at end of file diff --git a/build/compiler/app-core/app-es5-disabled.js.map b/build/compiler/app-core/app-es5-disabled.js.map deleted file mode 100644 index a1f59058ac2..00000000000 --- a/build/compiler/app-core/app-es5-disabled.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"app-es5-disabled.js","sourceRoot":"","sources":["../../../src/compiler/app-core/app-es5-disabled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI5D,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC7C,MAAyB,EACzB,WAA0B,EAC1B,YAA+B,EAC/B,EAAE;IACF,6BAA6B;IAC7B,gDAAgD;IAChD,iDAAiD;IACjD,MAAM,QAAQ,GAAG,GAAG,MAAM,CAAC,WAAW,KAAK,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACvD,MAAM,WAAW,CAAC,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,wBAAwB,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3E,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,wBAAwB,GAAG,CAAC,MAAyB,EAAE,EAAE;IAC7D,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;CAgBf,CAAC;IAEA,MAAM,UAAU,GAAG;IACjB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CN,CAAC;IACF,MAAM,UAAU,GAAG;IACjB,KAAK;;;;;;;;;YASG,UAAU,CAAC,uBAAuB,MAAM,CAAC,WAAW;CAC/D,CAAC;;;;;;;;;UASQ,UAAU,CAAC,SAAS,CAAC,qEAC3B,MAAM,CAAC,WACT,kDAAkD,UAAU,CAAC,YAAY,CAAC;IACxE,UAAU,CAAC,SAAS,CAAC,oDAAoD,UAAU,CACnF,eAAe,MAAM,CAAC,WAAW,gBAAgB,CAClD;;GAEA,CAAC;IACF,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;mCAiBD,UAAU,CAAC,UAAU,CAAC;;;;;;;;;;mCAUtB,UAAU,CAAC,UAAU,CAAC;;;;;MAKnD,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,EAAE;IAClC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;AACjE,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/app-core/app-polyfills.d.ts b/build/compiler/app-core/app-polyfills.d.ts deleted file mode 100644 index 5dbd34d65cb..00000000000 --- a/build/compiler/app-core/app-polyfills.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as d from '../../declarations'; -export declare const getClientPolyfill: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, polyfillFile: string) => Promise; -export declare const getAppBrowserCorePolyfills: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx) => Promise; diff --git a/build/compiler/app-core/app-polyfills.js b/build/compiler/app-core/app-polyfills.js deleted file mode 100644 index a8c9c51328d..00000000000 --- a/build/compiler/app-core/app-polyfills.js +++ /dev/null @@ -1,16 +0,0 @@ -import { join } from '@utils'; -export const getClientPolyfill = async (config, compilerCtx, polyfillFile) => { - const polyfillFilePath = join(config.sys.getCompilerExecutingPath(), '..', '..', 'internal', 'client', 'polyfills', polyfillFile); - return compilerCtx.fs.readFile(polyfillFilePath); -}; -export const getAppBrowserCorePolyfills = async (config, compilerCtx) => { - // read all the polyfill content, in this particular order - const polyfills = INLINE_POLYFILLS.slice(); - const results = await Promise.all(polyfills.map((polyfillFile) => getClientPolyfill(config, compilerCtx, polyfillFile))); - // concat the polyfills - return results.join('\n').trim(); -}; -// order of the polyfills matters!! test test test -// actual source of the polyfills are found in /src/client/polyfills/ -const INLINE_POLYFILLS = ['core-js.js', 'dom.js', 'es5-html-element.js', 'system.js']; -//# sourceMappingURL=app-polyfills.js.map \ No newline at end of file diff --git a/build/compiler/app-core/app-polyfills.js.map b/build/compiler/app-core/app-polyfills.js.map deleted file mode 100644 index 7bbbce132ae..00000000000 --- a/build/compiler/app-core/app-polyfills.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"app-polyfills.js","sourceRoot":"","sources":["../../../src/compiler/app-core/app-polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI9B,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EACpC,MAAyB,EACzB,WAA0B,EAC1B,YAAoB,EACpB,EAAE;IACF,MAAM,gBAAgB,GAAG,IAAI,CAC3B,MAAM,CAAC,GAAG,CAAC,wBAAwB,EAAE,EACrC,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,WAAW,EACX,YAAY,CACb,CAAC;IACF,OAAO,WAAW,CAAC,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAAE,MAAyB,EAAE,WAA0B,EAAE,EAAE;IACxG,0DAA0D;IAC1D,MAAM,SAAS,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC;IAE3C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,SAAS,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC,CACtF,CAAC;IAEF,uBAAuB;IACvB,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;AACnC,CAAC,CAAC;AAEF,kDAAkD;AAClD,qEAAqE;AACrE,MAAM,gBAAgB,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,qBAAqB,EAAE,WAAW,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/app-core/bundle-app-core.d.ts b/build/compiler/app-core/bundle-app-core.d.ts deleted file mode 100644 index be1940d05a0..00000000000 --- a/build/compiler/app-core/bundle-app-core.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { OutputOptions, RollupBuild } from 'rollup'; -import type * as d from '../../declarations'; -/** - * Generate rollup output based on a rollup build and a series of options. - * - * @param build a rollup build - * @param options output options for rollup - * @param config a user-supplied configuration object - * @param entryModules a list of entry modules, for checking which chunks - * contain components - * @returns a Promise wrapping either build results or `null` - */ -export declare const generateRollupOutput: (build: RollupBuild, options: OutputOptions, config: d.ValidatedConfig, entryModules: d.EntryModule[]) => Promise; diff --git a/build/compiler/app-core/bundle-app-core.js b/build/compiler/app-core/bundle-app-core.js deleted file mode 100644 index 0b09bb1e964..00000000000 --- a/build/compiler/app-core/bundle-app-core.js +++ /dev/null @@ -1,44 +0,0 @@ -import { STENCIL_CORE_ID } from '../bundle/entry-alias-ids'; -/** - * Generate rollup output based on a rollup build and a series of options. - * - * @param build a rollup build - * @param options output options for rollup - * @param config a user-supplied configuration object - * @param entryModules a list of entry modules, for checking which chunks - * contain components - * @returns a Promise wrapping either build results or `null` - */ -export const generateRollupOutput = async (build, options, config, entryModules) => { - if (build == null) { - return null; - } - const { output } = await build.generate(options); - return output.map((chunk) => { - if (chunk.type === 'chunk') { - const isCore = Object.keys(chunk.modules).some((m) => m.includes(STENCIL_CORE_ID)); - return { - type: 'chunk', - fileName: chunk.fileName, - map: chunk.map, - code: chunk.code, - moduleFormat: options.format, - entryKey: chunk.name, - imports: chunk.imports, - isEntry: !!chunk.isEntry, - isComponent: !!chunk.isEntry && entryModules.some((m) => m.entryKey === chunk.name), - isBrowserLoader: chunk.isEntry && chunk.name === config.fsNamespace, - isIndex: chunk.isEntry && chunk.name === 'index', - isCore, - }; - } - else { - return { - type: 'asset', - fileName: chunk.fileName, - content: chunk.source, - }; - } - }); -}; -//# sourceMappingURL=bundle-app-core.js.map \ No newline at end of file diff --git a/build/compiler/app-core/bundle-app-core.js.map b/build/compiler/app-core/bundle-app-core.js.map deleted file mode 100644 index ac78dd7c3bd..00000000000 --- a/build/compiler/app-core/bundle-app-core.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle-app-core.js","sourceRoot":"","sources":["../../../src/compiler/app-core/bundle-app-core.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,KAAkB,EAClB,OAAsB,EACtB,MAAyB,EACzB,YAA6B,EACK,EAAE;IACpC,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,MAAM,EAAE,GAAgE,MAAM,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC9G,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAgC,EAAE,EAAE;QACrD,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE;YAC1B,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC;YACnF,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,GAAG,EAAE,KAAK,CAAC,GAAG;gBACd,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,YAAY,EAAE,OAAO,CAAC,MAAM;gBAC5B,QAAQ,EAAE,KAAK,CAAC,IAAI;gBACpB,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO;gBACxB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,KAAK,CAAC,IAAI,CAAC;gBACnF,eAAe,EAAE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,WAAW;gBACnE,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO;gBAChD,MAAM;aACP,CAAC;SACH;aAAM;YACL,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,OAAO,EAAE,KAAK,CAAC,MAAa;aAC7B,CAAC;SACH;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/build/build-ctx.d.ts b/build/compiler/build/build-ctx.d.ts deleted file mode 100644 index b0304082e12..00000000000 --- a/build/compiler/build/build-ctx.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { result } from '@utils'; -import type * as d from '../../declarations'; -/** - * A new BuildCtx object is created for every build - * and rebuild. - */ -export declare class BuildContext implements d.BuildCtx { - buildId: number; - buildMessages: string[]; - buildResults: d.CompilerBuildResults; - bundleBuildCount: number; - collections: d.CollectionCompilerMeta[]; - completedTasks: d.BuildTask[]; - compilerCtx: d.CompilerCtx; - components: d.ComponentCompilerMeta[]; - componentGraph: Map; - config: d.ValidatedConfig; - data: any; - buildStats?: result.Result; - esmBrowserComponentBundle: d.BundleModule[]; - esmComponentBundle: d.BundleModule[]; - es5ComponentBundle: d.BundleModule[]; - systemComponentBundle: d.BundleModule[]; - commonJsComponentBundle: d.BundleModule[]; - diagnostics: d.Diagnostic[]; - dirsAdded: string[]; - dirsDeleted: string[]; - entryModules: d.EntryModule[]; - filesAdded: string[]; - filesChanged: string[]; - filesDeleted: string[]; - filesUpdated: string[]; - filesWritten: string[]; - globalStyle: string; - hasConfigChanges: boolean; - hasFinished: boolean; - hasHtmlChanges: boolean; - hasPrintedResults: boolean; - hasServiceWorkerChanges: boolean; - hasScriptChanges: boolean; - hasStyleChanges: boolean; - hydrateAppFilePath: string; - indexBuildCount: number; - indexDoc: Document; - isRebuild: boolean; - moduleFiles: d.Module[]; - outputs: d.BuildOutput[]; - packageJson: d.PackageJsonData; - packageJsonFilePath: string; - pendingCopyTasks: Promise[]; - requiresFullBuild: boolean; - scriptsAdded: string[]; - scriptsDeleted: string[]; - startTime: number; - styleBuildCount: number; - stylesPromise: Promise; - stylesUpdated: d.BuildStyleUpdate[]; - timeSpan: d.LoggerTimeSpan; - timestamp: string; - transpileBuildCount: number; - validateTypesPromise: Promise; - constructor(config: d.Config, compilerCtx: d.CompilerCtx); - start(): void; - createTimeSpan(msg: string, debug?: boolean): { - duration: () => number; - finish: (finishedMsg: string, color?: string, bold?: boolean, newLineSuffix?: boolean) => number; - }; - debug(msg: string): void; - get hasError(): boolean; - get hasWarning(): boolean; - progress(t: d.BuildTask): void; - validateTypesBuild(): Promise; -} -/** - * Generate a timestamp of the format `YYYY-MM-DDThh:mm:ss`, using the number of seconds that have elapsed since - * January 01, 1970, and the time this function was called - * @returns the generated timestamp - */ -export declare const getBuildTimestamp: () => string; -export declare const ProgressTask: { - emptyOutputTargets: {}; - transpileApp: {}; - generateStyles: {}; - generateOutputTargets: {}; - validateTypesBuild: {}; - writeBuildFiles: {}; -}; diff --git a/build/compiler/build/build-ctx.js b/build/compiler/build/build-ctx.js deleted file mode 100644 index daca9b3d65d..00000000000 --- a/build/compiler/build/build-ctx.js +++ /dev/null @@ -1,198 +0,0 @@ -import { hasError, hasWarning } from '@utils'; -import { validateConfig } from '../config/validate-config'; -/** - * A new BuildCtx object is created for every build - * and rebuild. - */ -export class BuildContext { - constructor(config, compilerCtx) { - this.buildId = -1; - this.buildMessages = []; - this.buildResults = null; - this.bundleBuildCount = 0; - this.collections = []; - this.completedTasks = []; - this.components = []; - this.componentGraph = new Map(); - this.data = {}; - this.buildStats = undefined; - this.diagnostics = []; - this.dirsAdded = []; - this.dirsDeleted = []; - this.entryModules = []; - this.filesAdded = []; - this.filesChanged = []; - this.filesDeleted = []; - this.filesUpdated = []; - this.filesWritten = []; - this.globalStyle = undefined; - this.hasConfigChanges = false; - this.hasFinished = false; - this.hasHtmlChanges = false; - this.hasPrintedResults = false; - this.hasServiceWorkerChanges = false; - this.hasScriptChanges = true; - this.hasStyleChanges = true; - this.hydrateAppFilePath = null; - this.indexBuildCount = 0; - this.indexDoc = undefined; - this.isRebuild = false; - this.moduleFiles = []; - this.outputs = []; - this.packageJson = {}; - this.packageJsonFilePath = null; - this.pendingCopyTasks = []; - this.requiresFullBuild = true; - this.scriptsAdded = []; - this.scriptsDeleted = []; - this.startTime = Date.now(); - this.styleBuildCount = 0; - this.stylesPromise = null; - this.stylesUpdated = []; - this.timeSpan = null; - this.transpileBuildCount = 0; - this.config = validateConfig(config, {}).config; - this.compilerCtx = compilerCtx; - this.buildId = ++this.compilerCtx.activeBuildId; - this.debug = config.logger.debug.bind(config.logger); - } - start() { - // get the build id from the incremented activeBuildId - // print out a good message - const msg = `${this.isRebuild ? 'rebuild' : 'build'}, ${this.config.fsNamespace}, ${this.config.devMode ? 'dev' : 'prod'} mode, started`; - const buildLog = { - buildId: this.buildId, - messages: [], - progress: 0, - }; - this.compilerCtx.events.emit('buildLog', buildLog); - // create a timespan for this build - this.timeSpan = this.createTimeSpan(msg); - // create a build timestamp for this build - this.timestamp = getBuildTimestamp(); - // debug log our new build - this.debug(`start build, ${this.timestamp}`); - const buildStart = { - buildId: this.buildId, - timestamp: this.timestamp, - }; - this.compilerCtx.events.emit('buildStart', buildStart); - } - createTimeSpan(msg, debug) { - if (!this.hasFinished || debug) { - if (debug) { - if (this.config.watch) { - msg = `${this.config.logger.cyan('[' + this.buildId + ']')} ${msg}`; - } - } - const timeSpan = this.config.logger.createTimeSpan(msg, debug, this.buildMessages); - if (!debug && this.compilerCtx.events) { - const buildLog = { - buildId: this.buildId, - messages: this.buildMessages, - progress: getProgress(this.completedTasks), - }; - this.compilerCtx.events.emit('buildLog', buildLog); - } - return { - duration: () => { - return timeSpan.duration(); - }, - finish: (finishedMsg, color, bold, newLineSuffix) => { - if (!this.hasFinished || debug) { - if (debug) { - if (this.config.watch) { - finishedMsg = `${this.config.logger.cyan('[' + this.buildId + ']')} ${finishedMsg}`; - } - } - timeSpan.finish(finishedMsg, color, bold, newLineSuffix); - if (!debug) { - const buildLog = { - buildId: this.buildId, - messages: this.buildMessages.slice(), - progress: getProgress(this.completedTasks), - }; - this.compilerCtx.events.emit('buildLog', buildLog); - } - } - return timeSpan.duration(); - }, - }; - } - return { - duration() { - return 0; - }, - finish() { - return 0; - }, - }; - } - debug(msg) { - this.config.logger.debug(msg); - } - get hasError() { - return hasError(this.diagnostics); - } - get hasWarning() { - return hasWarning(this.diagnostics); - } - progress(t) { - this.completedTasks.push(t); - } - async validateTypesBuild() { - if (this.hasError) { - // no need to wait on this one since - // we already aborted this build - return; - } - if (!this.validateTypesPromise) { - // there is no pending validate types promise - // so it probably already finished - // so no need to wait on anything - return; - } - if (!this.config.watch) { - // this is not a watch build, so we need to make - // sure that the type validation has finished - this.debug(`build, non-watch, waiting on validateTypes`); - await this.validateTypesPromise; - this.debug(`build, non-watch, finished waiting on validateTypes`); - } - } -} -/** - * Generate a timestamp of the format `YYYY-MM-DDThh:mm:ss`, using the number of seconds that have elapsed since - * January 01, 1970, and the time this function was called - * @returns the generated timestamp - */ -export const getBuildTimestamp = () => { - const d = new Date(); - // YYYY-MM-DDThh:mm:ss - let timestamp = d.getUTCFullYear() + '-'; - timestamp += ('0' + (d.getUTCMonth() + 1)).slice(-2) + '-'; - timestamp += ('0' + d.getUTCDate()).slice(-2) + 'T'; - timestamp += ('0' + d.getUTCHours()).slice(-2) + ':'; - timestamp += ('0' + d.getUTCMinutes()).slice(-2) + ':'; - timestamp += ('0' + d.getUTCSeconds()).slice(-2); - return timestamp; -}; -const getProgress = (completedTasks) => { - let progressIndex = 0; - const taskKeys = Object.keys(ProgressTask); - taskKeys.forEach((taskKey, index) => { - if (completedTasks.includes(ProgressTask[taskKey])) { - progressIndex = index; - } - }); - return (progressIndex + 1) / taskKeys.length; -}; -export const ProgressTask = { - emptyOutputTargets: {}, - transpileApp: {}, - generateStyles: {}, - generateOutputTargets: {}, - validateTypesBuild: {}, - writeBuildFiles: {}, -}; -//# sourceMappingURL=build-ctx.js.map \ No newline at end of file diff --git a/build/compiler/build/build-ctx.js.map b/build/compiler/build/build-ctx.js.map deleted file mode 100644 index c31e815d67d..00000000000 --- a/build/compiler/build/build-ctx.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"build-ctx.js","sourceRoot":"","sources":["../../../src/compiler/build/build-ctx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAU,MAAM,QAAQ,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D;;;GAGG;AACH,MAAM,OAAO,YAAY;IAwDvB,YAAY,MAAgB,EAAE,WAA0B;QAvDxD,YAAO,GAAG,CAAC,CAAC,CAAC;QACb,kBAAa,GAAa,EAAE,CAAC;QAC7B,iBAAY,GAA2B,IAAI,CAAC;QAC5C,qBAAgB,GAAG,CAAC,CAAC;QACrB,gBAAW,GAA+B,EAAE,CAAC;QAC7C,mBAAc,GAAkB,EAAE,CAAC;QAEnC,eAAU,GAA8B,EAAE,CAAC;QAC3C,mBAAc,GAAG,IAAI,GAAG,EAAoB,CAAC;QAE7C,SAAI,GAAQ,EAAE,CAAC;QACf,eAAU,GAA0E,SAAS,CAAC;QAM9F,gBAAW,GAAmB,EAAE,CAAC;QACjC,cAAS,GAAa,EAAE,CAAC;QACzB,gBAAW,GAAa,EAAE,CAAC;QAC3B,iBAAY,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ACvB;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,aAAa,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC;AAC/C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,kBAAkB,EAAE,EAAE;IACtB,YAAY,EAAE,EAAE;IAChB,cAAc,EAAE,EAAE;IAClB,qBAAqB,EAAE,EAAE;IACzB,kBAAkB,EAAE,EAAE;IACtB,eAAe,EAAE,EAAE;CACpB,CAAC"} \ No newline at end of file diff --git a/build/compiler/build/build-finish.d.ts b/build/compiler/build/build-finish.d.ts deleted file mode 100644 index deabcb7c4a4..00000000000 --- a/build/compiler/build/build-finish.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Finish a build as having completed successfully - * @param buildCtx the build context for the build being aborted - * @returns the build results - */ -export declare const buildFinish: (buildCtx: d.BuildCtx) => Promise; -/** - * Finish a build early due to failure. During the build process, a fatal error has occurred where the compiler cannot - * continue further - * @param buildCtx the build context for the build being aborted - * @returns the build results - */ -export declare const buildAbort: (buildCtx: d.BuildCtx) => Promise; diff --git a/build/compiler/build/build-finish.js b/build/compiler/build/build-finish.js deleted file mode 100644 index 2b1dfde6740..00000000000 --- a/build/compiler/build/build-finish.js +++ /dev/null @@ -1,160 +0,0 @@ -import { isFunction, isRemoteUrl, relative } from '@utils'; -import { generateBuildResults } from './build-results'; -import { generateBuildStats, writeBuildStats } from './build-stats'; -/** - * Finish a build as having completed successfully - * @param buildCtx the build context for the build being aborted - * @returns the build results - */ -export const buildFinish = async (buildCtx) => { - const results = await buildDone(buildCtx.config, buildCtx.compilerCtx, buildCtx, false); - const buildLog = { - buildId: buildCtx.buildId, - messages: buildCtx.buildMessages.slice(), - progress: 1, - }; - buildCtx.compilerCtx.events.emit('buildLog', buildLog); - return results; -}; -/** - * Finish a build early due to failure. During the build process, a fatal error has occurred where the compiler cannot - * continue further - * @param buildCtx the build context for the build being aborted - * @returns the build results - */ -export const buildAbort = (buildCtx) => { - return buildDone(buildCtx.config, buildCtx.compilerCtx, buildCtx, true); -}; -/** - * Mark a build as done - * @param config the Stencil configuration used for the build - * @param compilerCtx the compiler context associated with the build - * @param buildCtx the build context associated with the build to mark as done - * @param aborted true if the build ended early due to failure, false otherwise - * @returns the build results - */ -const buildDone = async (config, compilerCtx, buildCtx, aborted) => { - if (buildCtx.hasFinished && buildCtx.buildResults) { - // we've already marked this build as finished and - // already created the build results, just return these - return buildCtx.buildResults; - } - // create the build results data - buildCtx.buildResults = generateBuildResults(config, compilerCtx, buildCtx); - // After the build results are available on the buildCtx, call the stats and set it. - // We will use this later to write the files. - buildCtx.buildStats = generateBuildStats(config, buildCtx); - await writeBuildStats(config, buildCtx.buildStats); - buildCtx.debug(`${aborted ? 'aborted' : 'finished'} build, ${buildCtx.buildResults.duration}ms`); - // log any errors/warnings - if (!buildCtx.hasFinished) { - // haven't set this build as finished yet - if (!buildCtx.hasPrintedResults) { - cleanDiagnosticsRelativePath(config, buildCtx.buildResults.diagnostics); - config.logger.printDiagnostics(buildCtx.buildResults.diagnostics); - } - const hasChanges = buildCtx.hasScriptChanges || buildCtx.hasStyleChanges; - if (buildCtx.isRebuild && hasChanges && buildCtx.buildResults.hmr && !aborted) { - // this is a rebuild, and we've got hmr data - // and this build hasn't been aborted - logHmr(config.logger, buildCtx); - } - // create a nice pretty message stating what happened - const buildText = buildCtx.isRebuild ? 'rebuild' : 'build'; - const watchText = config.watch ? ', watching for changes...' : ''; - let buildStatus = 'finished'; - let statusColor = 'green'; - if (buildCtx.hasError) { - // gosh darn, build had errors - // ಥ_ಥ - buildStatus = 'failed'; - statusColor = 'red'; - } - else { - // successful build! - // ┏(°.°)┛ ┗(°.°)┓ ┗(°.°)┛ ┏(°.°)┓ - compilerCtx.changedFiles.clear(); - compilerCtx.hasSuccessfulBuild = true; - buildCtx.buildResults.hasSuccessfulBuild = true; - } - // print out the time it took to build - // and add the duration to the build results - if (!buildCtx.hasPrintedResults) { - buildCtx.timeSpan.finish(`${buildText} ${buildStatus}${watchText}`, statusColor, true, true); - buildCtx.hasPrintedResults = true; - } - // emit a buildFinish event for anyone who cares - compilerCtx.events.emit('buildFinish', buildCtx.buildResults); - // write all of our logs to disk if config'd to do so - // do this even if there are errors or not the active build - if (isFunction(config.logger.writeLogs)) { - config.logger.writeLogs(buildCtx.isRebuild); - } - } - // it's official, this build has finished - buildCtx.hasFinished = true; - if (!config.watch) { - compilerCtx.reset(); - if (global.gc) { - buildCtx.debug(`triggering forced gc`); - global.gc(); - buildCtx.debug(`forced gc finished`); - } - } - return buildCtx.buildResults; -}; -const logHmr = (logger, buildCtx) => { - // this is a rebuild, and we've got hmr data - // and this build hasn't been aborted - const hmr = buildCtx.buildResults.hmr; - if (hmr.componentsUpdated) { - cleanupUpdateMsg(logger, `updated component`, hmr.componentsUpdated); - } - if (hmr.inlineStylesUpdated) { - const inlineStyles = hmr.inlineStylesUpdated - .map((s) => s.styleTag) - .reduce((arr, v) => { - if (!arr.includes(v)) { - arr.push(v); - } - return arr; - }, []); - cleanupUpdateMsg(logger, `updated style`, inlineStyles); - } - if (hmr.externalStylesUpdated) { - cleanupUpdateMsg(logger, `updated stylesheet`, hmr.externalStylesUpdated); - } - if (hmr.imagesUpdated) { - cleanupUpdateMsg(logger, `updated image`, hmr.imagesUpdated); - } -}; -const cleanupUpdateMsg = (logger, msg, fileNames) => { - if (fileNames.length > 0) { - let fileMsg = ''; - if (fileNames.length > 7) { - const remaining = fileNames.length - 6; - fileNames = fileNames.slice(0, 6); - fileMsg = fileNames.join(', ') + `, +${remaining} others`; - } - else { - fileMsg = fileNames.join(', '); - } - if (fileNames.length > 1) { - msg += 's'; - } - logger.info(`${msg}: ${logger.cyan(fileMsg)}`); - } -}; -/** - * Update the relative file path for diagnostics. The updates are done in place. - * @param config the Stencil configuration associated with the current build - * @param diagnostics the diagnostics to update - */ -const cleanDiagnosticsRelativePath = (config, diagnostics) => { - diagnostics.forEach((diagnostic) => { - if (!diagnostic.relFilePath && !isRemoteUrl(diagnostic.absFilePath) && diagnostic.absFilePath && config.rootDir) { - diagnostic.relFilePath = relative(config.rootDir, diagnostic.absFilePath); - } - }); -}; -//# sourceMappingURL=build-finish.js.map \ No newline at end of file diff --git a/build/compiler/build/build-finish.js.map b/build/compiler/build/build-finish.js.map deleted file mode 100644 index 8ea4647e837..00000000000 --- a/build/compiler/build/build-finish.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"build-finish.js","sourceRoot":"","sources":["../../../src/compiler/build/build-finish.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAG3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEpE;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,QAAoB,EAAmC,EAAE;IACzF,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,WAAW,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAExF,MAAM,QAAQ,GAAe;QAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,EAAE;QACxC,QAAQ,EAAE,CAAC;KACZ,CAAC;IAEF,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAEvD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAoB,EAAmC,EAAE;IAClF,OAAO,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,CA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line at end of file diff --git a/build/compiler/build/build-hmr.d.ts b/build/compiler/build/build-hmr.d.ts deleted file mode 100644 index d5da401da80..00000000000 --- a/build/compiler/build/build-hmr.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const generateHmr: (config: d.Config, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx) => d.HotModuleReplacement; diff --git a/build/compiler/build/build-hmr.js b/build/compiler/build/build-hmr.js deleted file mode 100644 index 6b9a1848679..00000000000 --- a/build/compiler/build/build-hmr.js +++ /dev/null @@ -1,196 +0,0 @@ -import { isGlob, isOutputTargetWww, normalizePath, sortBy } from '@utils'; -import minimatch from 'minimatch'; -import { basename } from 'path'; -import { getScopeId } from '../style/scope-css'; -export const generateHmr = (config, compilerCtx, buildCtx) => { - var _a; - if (((_a = config.devServer) === null || _a === void 0 ? void 0 : _a.reloadStrategy) == null) { - return null; - } - const hmr = { - reloadStrategy: config.devServer.reloadStrategy, - versionId: Date.now().toString().substring(6) + '' + Math.round(Math.random() * 89999 + 10000), - }; - if (buildCtx.scriptsAdded.length > 0) { - hmr.scriptsAdded = buildCtx.scriptsAdded.slice(); - } - if (buildCtx.scriptsDeleted.length > 0) { - hmr.scriptsDeleted = buildCtx.scriptsDeleted.slice(); - } - const excludeHmr = excludeHmrFiles(config, config.devServer.excludeHmr, buildCtx.filesChanged); - if (excludeHmr.length > 0) { - hmr.excludeHmr = excludeHmr.slice(); - } - if (buildCtx.hasHtmlChanges) { - hmr.indexHtmlUpdated = true; - } - if (buildCtx.hasServiceWorkerChanges) { - hmr.serviceWorkerUpdated = true; - } - const outputTargetsWww = config.outputTargets.filter(isOutputTargetWww); - const componentsUpdated = getComponentsUpdated(compilerCtx, buildCtx); - if (componentsUpdated) { - hmr.componentsUpdated = componentsUpdated; - } - if (Object.keys(buildCtx.stylesUpdated).length > 0) { - hmr.inlineStylesUpdated = sortBy(buildCtx.stylesUpdated.map((s) => { - return { - styleId: getScopeId(s.styleTag, s.styleMode), - styleTag: s.styleTag, - styleText: s.styleText, - }; - }), (s) => s.styleId); - } - const externalStylesUpdated = getExternalStylesUpdated(buildCtx, outputTargetsWww); - if (externalStylesUpdated) { - hmr.externalStylesUpdated = externalStylesUpdated; - } - const externalImagesUpdated = getImagesUpdated(buildCtx, outputTargetsWww); - if (externalImagesUpdated) { - hmr.imagesUpdated = externalImagesUpdated; - } - return hmr; -}; -const getComponentsUpdated = (compilerCtx, buildCtx) => { - // find all of the components that would be affected from the file changes - if (!buildCtx.filesChanged) { - return null; - } - const filesToLookForImporters = buildCtx.filesChanged.filter((f) => { - return f.endsWith('.ts') || f.endsWith('.tsx') || f.endsWith('.js') || f.endsWith('.jsx'); - }); - if (filesToLookForImporters.length === 0) { - return null; - } - const changedScriptFiles = []; - const checkedFiles = new Set(); - const allModuleFiles = buildCtx.moduleFiles.filter((m) => m.localImports && m.localImports.length > 0); - while (filesToLookForImporters.length > 0) { - const scriptFile = filesToLookForImporters.shift(); - addTsFileImporters(allModuleFiles, filesToLookForImporters, checkedFiles, changedScriptFiles, scriptFile); - } - const tags = changedScriptFiles.reduce((tags, changedTsFile) => { - const moduleFile = compilerCtx.moduleMap.get(changedTsFile); - if (moduleFile != null) { - moduleFile.cmps.forEach((cmp) => { - if (typeof cmp.tagName === 'string') { - if (!tags.includes(cmp.tagName)) { - tags.push(cmp.tagName); - } - } - }); - } - return tags; - }, []); - if (tags.length === 0) { - return null; - } - return tags.sort(); -}; -const addTsFileImporters = (allModuleFiles, filesToLookForImporters, checkedFiles, changedScriptFiles, scriptFile) => { - if (!changedScriptFiles.includes(scriptFile)) { - // add it to our list of files to transpile - changedScriptFiles.push(scriptFile); - } - if (checkedFiles.has(scriptFile)) { - // already checked this file - return; - } - checkedFiles.add(scriptFile); - // get all the ts files that import this ts file - const tsFilesThatImportsThisTsFile = allModuleFiles.reduce((arr, moduleFile) => { - moduleFile.localImports.forEach((localImport) => { - let checkFile = localImport; - if (checkFile === scriptFile) { - arr.push(moduleFile.sourceFilePath); - return; - } - checkFile = localImport + '.tsx'; - if (checkFile === scriptFile) { - arr.push(moduleFile.sourceFilePath); - return; - } - checkFile = localImport + '.ts'; - if (checkFile === scriptFile) { - arr.push(moduleFile.sourceFilePath); - return; - } - checkFile = localImport + '.js'; - if (checkFile === scriptFile) { - arr.push(moduleFile.sourceFilePath); - return; - } - }); - return arr; - }, []); - // add all the files that import this ts file to the list of ts files we need to look through - tsFilesThatImportsThisTsFile.forEach((tsFileThatImportsThisTsFile) => { - // if we add to this array, then the while look will keep working until it's empty - filesToLookForImporters.push(tsFileThatImportsThisTsFile); - }); -}; -const getExternalStylesUpdated = (buildCtx, outputTargetsWww) => { - if (!buildCtx.isRebuild || outputTargetsWww.length === 0) { - return null; - } - const cssFiles = buildCtx.filesWritten.filter((f) => f.endsWith('.css')); - if (cssFiles.length === 0) { - return null; - } - return cssFiles.map((cssFile) => basename(cssFile)).sort(); -}; -const getImagesUpdated = (buildCtx, outputTargetsWww) => { - if (outputTargetsWww.length === 0) { - return null; - } - const imageFiles = buildCtx.filesChanged.reduce((arr, filePath) => { - if (IMAGE_EXT.some((ext) => filePath.toLowerCase().endsWith(ext))) { - const fileName = basename(filePath); - if (!arr.includes(fileName)) { - arr.push(fileName); - } - } - return arr; - }, []); - if (imageFiles.length === 0) { - return null; - } - return imageFiles.sort(); -}; -/** - * Determine a list of files (if any) which should be excluded from HMR updates. - * - * @param config a user-supplied config - * @param excludeHmr a list of glob patterns that should be used to determine - * whether to exclude a file or not (a file will be excluded if it matches one - * @param filesChanged an array of files which are changed in the HMR update - * currently under consideration - * @returns a sorted list of files to exclude - */ -const excludeHmrFiles = (config, excludeHmr, filesChanged) => { - const excludeFiles = []; - if (!excludeHmr || excludeHmr.length === 0) { - return excludeFiles; - } - excludeHmr.forEach((excludeHmr) => { - return filesChanged - .map((fileChanged) => { - let shouldExclude = false; - if (isGlob(excludeHmr)) { - shouldExclude = minimatch(fileChanged, excludeHmr); - } - else { - shouldExclude = normalizePath(excludeHmr) === normalizePath(fileChanged); - } - if (shouldExclude) { - config.logger.debug(`excludeHmr: ${fileChanged}`); - excludeFiles.push(basename(fileChanged)); - } - return shouldExclude; - }) - .some((r) => r); - }); - return excludeFiles.sort(); -}; -const IMAGE_EXT = ['.png', '.jpg', '.jpeg', '.gif', '.webp', '.ico', '.svg']; -//# sourceMappingURL=build-hmr.js.map \ No newline at end of file diff --git a/build/compiler/build/build-hmr.js.map b/build/compiler/build/build-hmr.js.map deleted file mode 100644 index 367f7b9655c..00000000000 --- a/build/compiler/build/build-hmr.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"build-hmr.js","sourceRoot":"","sources":["../../../src/compiler/build/build-hmr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1E,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGhC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAgB,EAAE,WAA0B,EAAE,QAAoB,EAAE,EAAE;;IAChG,IAAI,CAAA,MAAA,MAAM,CAAC,SAAS,0CAAE,cAAc,KAAI,IAAI,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,GAAG,GAA2B;QAClC,cAAc,EAAE,MAAM,CAAC,SAAS,CAAC,cAAc;QAC/C,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,KAAK,CAAC;KAC/F,CAAC;IAEF,IAAI,QAAQ,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;QACpC,GAAG,CAAC,YAAY,GAA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AY,EAAE;IACnG,MAAM,YAAY,GAAa,EAAE,CAAC;IAElC,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1C,OAAO,YAAY,CAAC;KACrB;IAED,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;QAChC,OAAO,YAAY;aAChB,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE;YACnB,IAAI,aAAa,GAAG,KAAK,CAAC;YAE1B,IAAI,MAAM,CAAC,UAAU,CAAC,EAAE;gBACtB,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;aACpD;iBAAM;gBACL,aAAa,GAAG,aAAa,CAAC,UAAU,CAAC,KAAK,aAAa,CAAC,WAAW,CAAC,CAAC;aAC1E;YAED,IAAI,aAAa,EAAE;gBACjB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,WAAW,EAAE,CAAC,CAAC;gBAClD,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;aAC1C;YAED,OAAO,aAAa,CAAC;QACvB,CAAC,CAAC;aACD,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,OAAO,YAAY,CAAC,IAAI,EAAE,CAAC;AAC7B,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/build/build-results.d.ts b/build/compiler/build/build-results.d.ts deleted file mode 100644 index 225839be979..00000000000 --- a/build/compiler/build/build-results.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const generateBuildResults: (config: d.Config, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx) => d.CompilerBuildResults; diff --git a/build/compiler/build/build-results.js b/build/compiler/build/build-results.js deleted file mode 100644 index 5e2040ea7cc..00000000000 --- a/build/compiler/build/build-results.js +++ /dev/null @@ -1,36 +0,0 @@ -import { fromEntries, hasError, isString, normalizeDiagnostics } from '@utils'; -import { getBuildTimestamp } from './build-ctx'; -import { generateHmr } from './build-hmr'; -export const generateBuildResults = (config, compilerCtx, buildCtx) => { - const componentGraph = buildCtx.componentGraph ? fromEntries(buildCtx.componentGraph.entries()) : undefined; - const buildResults = { - buildId: buildCtx.buildId, - diagnostics: normalizeDiagnostics(compilerCtx, buildCtx.diagnostics), - dirsAdded: buildCtx.dirsAdded.slice().sort(), - dirsDeleted: buildCtx.dirsDeleted.slice().sort(), - duration: Date.now() - buildCtx.startTime, - filesAdded: buildCtx.filesAdded.slice().sort(), - filesChanged: buildCtx.filesChanged.slice().sort(), - filesDeleted: buildCtx.filesDeleted.slice().sort(), - filesUpdated: buildCtx.filesUpdated.slice().sort(), - hasError: hasError(buildCtx.diagnostics), - hasSuccessfulBuild: compilerCtx.hasSuccessfulBuild, - isRebuild: buildCtx.isRebuild, - namespace: config.namespace, - outputs: compilerCtx.fs.getBuildOutputs(), - rootDir: config.rootDir, - srcDir: config.srcDir, - timestamp: getBuildTimestamp(), - componentGraph, - }; - const hmr = generateHmr(config, compilerCtx, buildCtx); - if (hmr != null) { - buildResults.hmr = hmr; - } - if (isString(buildCtx.hydrateAppFilePath)) { - buildResults.hydrateAppFilePath = buildCtx.hydrateAppFilePath; - } - compilerCtx.lastBuildResults = Object.assign({}, buildResults); - return buildResults; -}; -//# sourceMappingURL=build-results.js.map \ No newline at end of file diff --git a/build/compiler/build/build-results.js.map b/build/compiler/build/build-results.js.map deleted file mode 100644 index 5ae84da0923..00000000000 --- a/build/compiler/build/build-results.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"build-results.js","sourceRoot":"","sources":["../../../src/compiler/build/build-results.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,E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W,CAAC,EAAE,CAAC,eAAe,EAAE;QACzC,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,SAAS,EAAE,iBAAiB,EAAE;QAC9B,cAAc;KACf,CAAC;IAEF,MAAM,GAAG,GAAG,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACvD,IAAI,GAAG,IAAI,IAAI,EAAE;QACf,YAAY,CAAC,GAAG,GAAG,GAAG,CAAC;KACxB;IAED,IAAI,QAAQ,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE;QACzC,YAAY,CAAC,kBAAkB,GAAG,QAAQ,CAAC,kBAAkB,CAAC;KAC/D;IAED,WAAW,CAAC,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,YAAmB,CAAC,CAAC;IAEtE,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/build/build-stats.d.ts b/build/compiler/build/build-stats.d.ts deleted file mode 100644 index fe682379b54..00000000000 --- a/build/compiler/build/build-stats.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { result } from '@utils'; -import type * as d from '../../declarations'; -/** - * Generates the Build Stats from the buildCtx. Writes any files to the file system. - * @param config the project build configuration - * @param buildCtx An instance of the build which holds the details about the build - * @returns CompilerBuildStats or an Object including diagnostics. - */ -export declare function generateBuildStats(config: d.ValidatedConfig, buildCtx: d.BuildCtx): result.Result; -/** - * Writes the files from the stats config to the file system - * @param config the project build configuration - * @param data the information to write out to disk (as specified by each stats output target specified in the provided - * config) - */ -export declare function writeBuildStats(config: d.ValidatedConfig, data: result.Result): Promise; diff --git a/build/compiler/build/build-stats.js b/build/compiler/build/build-stats.js deleted file mode 100644 index e204658b086..00000000000 --- a/build/compiler/build/build-stats.js +++ /dev/null @@ -1,169 +0,0 @@ -import { byteSize, isOutputTargetStats, result, sortBy } from '@utils'; -/** - * Generates the Build Stats from the buildCtx. Writes any files to the file system. - * @param config the project build configuration - * @param buildCtx An instance of the build which holds the details about the build - * @returns CompilerBuildStats or an Object including diagnostics. - */ -export function generateBuildStats(config, buildCtx) { - var _a, _b, _c, _d; - // TODO(STENCIL-461): Investigate making this return only a single type - const buildResults = buildCtx.buildResults; - try { - if (buildResults.hasError) { - return result.err({ - diagnostics: buildResults.diagnostics, - }); - } - else { - const stats = { - timestamp: buildResults.timestamp, - compiler: { - name: config.sys.name, - version: config.sys.version, - }, - app: { - namespace: config.namespace, - fsNamespace: config.fsNamespace, - components: Object.keys((_a = buildResults.componentGraph) !== null && _a !== void 0 ? _a : {}).length, - entries: Object.keys((_b = buildResults.componentGraph) !== null && _b !== void 0 ? _b : {}).length, - bundles: buildResults.outputs.reduce((total, en) => total + en.files.length, 0), - outputs: getAppOutputs(config, buildResults), - }, - options: { - minifyJs: !!config.minifyJs, - minifyCss: !!config.minifyCss, - hashFileNames: !!config.hashFileNames, - hashedFileNameLength: config.hashedFileNameLength, - buildEs5: !!config.buildEs5, - }, - formats: { - esmBrowser: sanitizeBundlesForStats(buildCtx.esmBrowserComponentBundle), - esm: sanitizeBundlesForStats(buildCtx.esmComponentBundle), - es5: sanitizeBundlesForStats(buildCtx.es5ComponentBundle), - system: sanitizeBundlesForStats(buildCtx.systemComponentBundle), - commonjs: sanitizeBundlesForStats(buildCtx.commonJsComponentBundle), - }, - components: getComponentsFileMap(config, buildCtx), - entries: buildCtx.entryModules, - componentGraph: (_c = buildResults.componentGraph) !== null && _c !== void 0 ? _c : {}, - sourceGraph: getSourceGraph(config, buildCtx), - rollupResults: (_d = buildCtx.rollupResults) !== null && _d !== void 0 ? _d : { modules: [] }, - collections: getCollections(config, buildCtx), - }; - return result.ok(stats); - } - } - catch (e) { - const diagnostic = { - level: `error`, - lines: [], - messageText: `Generate Build Stats Error: ` + e, - type: `build`, - }; - return result.err({ - diagnostics: [diagnostic], - }); - } -} -/** - * Writes the files from the stats config to the file system - * @param config the project build configuration - * @param data the information to write out to disk (as specified by each stats output target specified in the provided - * config) - */ -export async function writeBuildStats(config, data) { - const statsTargets = config.outputTargets.filter(isOutputTargetStats); - await result.map(data, async (compilerBuildStats) => { - await Promise.all(statsTargets.map(async (outputTarget) => { - if (outputTarget.file) { - const result = await config.sys.writeFile(outputTarget.file, JSON.stringify(compilerBuildStats, null, 2)); - if (result.error) { - config.logger.warn([`Stats failed to write file to ${outputTarget.file}`]); - } - } - })); - }); -} -function sanitizeBundlesForStats(bundleArray) { - if (!bundleArray) { - return []; - } - return bundleArray.map((bundle) => { - return { - key: bundle.entryKey, - components: bundle.cmps.map((c) => c.tagName), - bundleId: bundle.output.bundleId, - fileName: bundle.output.fileName, - imports: bundle.rollupResult.imports, - // code: bundle.rollupResult.code, // (use this to debug) - // Currently, this number is inaccurate vs what seems to be on disk. - originalByteSize: byteSize(bundle.rollupResult.code), - }; - }); -} -function getSourceGraph(config, buildCtx) { - const sourceGraph = {}; - sortBy(buildCtx.moduleFiles, (m) => m.sourceFilePath).forEach((moduleFile) => { - const key = relativePath(config, moduleFile.sourceFilePath); - sourceGraph[key] = moduleFile.localImports.map((localImport) => relativePath(config, localImport)).sort(); - }); - return sourceGraph; -} -function getAppOutputs(config, buildResults) { - return buildResults.outputs.map((output) => { - return { - name: output.type, - files: output.files.length, - generatedFiles: output.files.map((file) => relativePath(config, file)), - }; - }); -} -function getComponentsFileMap(config, buildCtx) { - return buildCtx.components.map((component) => { - return { - tag: component.tagName, - path: relativePath(config, component.jsFilePath), - source: relativePath(config, component.sourceFilePath), - elementRef: component.elementRef, - componentClassName: component.componentClassName, - assetsDirs: component.assetsDirs, - dependencies: component.dependencies, - dependents: component.dependents, - directDependencies: component.directDependencies, - directDependents: component.directDependents, - docs: component.docs, - encapsulation: component.encapsulation, - excludeFromCollection: component.excludeFromCollection, - events: component.events, - internal: component.internal, - listeners: component.listeners, - methods: component.methods, - potentialCmpRefs: component.potentialCmpRefs, - properties: component.properties, - shadowDelegatesFocus: component.shadowDelegatesFocus, - states: component.states, - }; - }); -} -function getCollections(config, buildCtx) { - return buildCtx.collections - .map((c) => { - return { - name: c.collectionName, - source: relativePath(config, c.moduleDir), - tags: c.moduleFiles.map((m) => m.cmps.map((cmp) => cmp.tagName)).sort(), - }; - }) - .sort((a, b) => { - if (a.name < b.name) - return -1; - if (a.name > b.name) - return 1; - return 0; - }); -} -function relativePath(config, file) { - return config.sys.normalizePath(config.sys.platformPath.relative(config.rootDir, file)); -} -//# sourceMappingURL=build-stats.js.map \ No newline at end of file diff --git a/build/compiler/build/build-stats.js.map b/build/compiler/build/build-stats.js.map deleted file mode 100644 index 381bd299763..00000000000 --- a/build/compiler/build/build-stats.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"build-stats.js","sourceRoot":"","sources":["../../../src/compiler/build/build-stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIvE;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAAyB,EACzB,QAAoB;;IAEpB,uEAAuE;IACvE,MAAM,YAAY,GAAG,QAAQ,CAAC,YAAY,CAAC;IAE3C,IAAI;QACF,IAAI,YAAY,CAAC,QAAQ,EAAE;YACzB,OAAO,MAAM,CAAC,GAAG,CAAC;gBAChB,WAAW,EAAE,YAAY,CAAC,WAAW;aACtC,CAAC,CAAC;SACJ;aAAM;YACL,MAAM,KAAK,GAAyB;gBAClC,SAAS,EAAE,YAAY,CAAC,SAAS;gBACjC,QAAQ,EAAE;oBACR,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI;oBACrB,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,OAAO;iBAC5B;gBACD,GAAG,EAAE;oBACH,SAAS,EAAE,MAAM,CAAC,SAAS;oBAC3B,WAAW,EAAE,MAAM,CAAC,WAAW;oBAC/B,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,MAAA,YAAY,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;SACzB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,cAAc,CAAC,MAAyB,EAAE,QAAoB;IACrE,OAAO,QAAQ,CAAC,WAAW;SACxB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACT,OAAO;YACL,IAAI,EAAE,CAAC,CAAC,cAAc;YACtB,MAAM,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC;YACzC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAA4B,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE;SACjG,CAAC;IACJ,CAAC,CAAC;SACD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACb,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI;YAAE,OAAO,CAAC,CAAC,CAAC;QAC/B,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI;YAAE,OAAO,CAAC,CAAC;QAC9B,OAAO,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,YAAY,CAAC,MAAyB,EAAE,IAAY;IAC3D,OAAO,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAC1F,CAAC"} \ No newline at end of file diff --git a/build/compiler/build/build.d.ts b/build/compiler/build/build.d.ts deleted file mode 100644 index b21751542be..00000000000 --- a/build/compiler/build/build.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import ts from 'typescript'; -import type * as d from '../../declarations'; -export declare const build: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx, tsBuilder: ts.BuilderProgram) => Promise; diff --git a/build/compiler/build/build.js b/build/compiler/build/build.js deleted file mode 100644 index d18aa229e5c..00000000000 --- a/build/compiler/build/build.js +++ /dev/null @@ -1,58 +0,0 @@ -import { createDocument } from '@stencil/core/mock-doc'; -import { catchError, isString, readPackageJson } from '@utils'; -import { generateOutputTargets } from '../output-targets'; -import { emptyOutputTargets } from '../output-targets/empty-dir'; -import { generateGlobalStyles } from '../style/global-styles'; -import { runTsProgram } from '../transpile/run-program'; -import { buildAbort, buildFinish } from './build-finish'; -import { writeBuild } from './write-build'; -export const build = async (config, compilerCtx, buildCtx, tsBuilder) => { - try { - // reset process.cwd() for 3rd-party plugins - process.chdir(config.rootDir); - // empty the directories on the first build - await emptyOutputTargets(config, compilerCtx, buildCtx); - if (buildCtx.hasError) - return buildAbort(buildCtx); - if (config.srcIndexHtml) { - const indexSrcHtml = await compilerCtx.fs.readFile(config.srcIndexHtml); - if (isString(indexSrcHtml)) { - buildCtx.indexDoc = createDocument(indexSrcHtml); - } - } - await readPackageJson(config, compilerCtx, buildCtx); - if (buildCtx.hasError) - return buildAbort(buildCtx); - // run typescript program - const tsTimeSpan = buildCtx.createTimeSpan('transpile started'); - const componentDtsChanged = await runTsProgram(config, compilerCtx, buildCtx, tsBuilder); - tsTimeSpan.finish('transpile finished'); - if (buildCtx.hasError) - return buildAbort(buildCtx); - if (config.watch && componentDtsChanged) { - // silent abort for watch mode only - return null; - } - // preprocess and generate styles before any outputTarget starts - buildCtx.stylesPromise = generateGlobalStyles(config, compilerCtx, buildCtx); - if (buildCtx.hasError) - return buildAbort(buildCtx); - // create outputs - await generateOutputTargets(config, compilerCtx, buildCtx); - if (buildCtx.hasError) - return buildAbort(buildCtx); - // write outputs - await buildCtx.stylesPromise; - await writeBuild(config, compilerCtx, buildCtx); - } - catch (e) { - // ¯\_(ツ)_/¯ - catchError(buildCtx.diagnostics, e); - } - // TODO - // clear changed files - compilerCtx.changedFiles.clear(); - // return what we've learned today - return buildFinish(buildCtx); -}; -//# sourceMappingURL=build.js.map \ No newline at end of file diff --git a/build/compiler/build/build.js.map b/build/compiler/build/build.js.map deleted file mode 100644 index 4133bdebd67..00000000000 --- a/build/compiler/build/build.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/compiler/build/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAI/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,EACxB,MAAyB,EACzB,WAA0B,EAC1B,QAAoB,EACpB,SAA4B,EAC5B,EAAE;IACF,IAAI;QACF,4CAA4C;QAC5C,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAE9B,2CAA2C;QAC3C,MAAM,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;QACxD,IAAI,QAAQ,CAAC,QAAQ;YAAE,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC;QAEnD,IAAI,MAAM,CAAC,YAAY,EAAE;YACvB,MAAM,YAAY,GAAG,MAAM,WAAW,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YACxE,IAAI,QAAQ,CAAC,YAAY,CAAC,EAAE;gBAC1B,QAAQ,CAAC,QAAQ,GAAG,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;IAEjC,kCAAkC;IAClC,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC;AAC/B,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/build/compiler-ctx.d.ts b/build/compiler/build/compiler-ctx.d.ts deleted file mode 100644 index 900fab7c00c..00000000000 --- a/build/compiler/build/compiler-ctx.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type * as d from '../../declarations'; -import { InMemoryFileSystem } from '../sys/in-memory-fs'; -/** - * The CompilerCtx is a persistent object that's reused throughout - * all builds and rebuilds. The data within this object is used - * for in-memory caching, and can be reset, but the object itself - * is always the same. - */ -export declare class CompilerContext implements d.CompilerCtx { - version: number; - activeBuildId: number; - activeFilesAdded: string[]; - activeFilesDeleted: string[]; - activeFilesUpdated: string[]; - activeDirsAdded: string[]; - activeDirsDeleted: string[]; - addWatchDir: (path: string) => void; - addWatchFile: (path: string) => void; - cache: d.Cache; - cssModuleImports: Map; - changedFiles: Set; - changedModules: Set; - collections: d.CollectionCompilerMeta[]; - compilerOptions: any; - events: d.BuildEvents; - fs: InMemoryFileSystem; - hasSuccessfulBuild: boolean; - isActivelyBuilding: boolean; - lastBuildResults: d.CompilerBuildResults; - moduleMap: d.ModuleMap; - nodeMap: WeakMap; - resolvedCollections: Set; - rollupCache: Map; - rollupCacheHydrate: any; - rollupCacheLazy: any; - rollupCacheNative: any; - cachedGlobalStyle: string; - styleModeNames: Set; - worker: d.CompilerWorkerContext; - reset(): void; -} -export declare const getModuleLegacy: (compilerCtx: d.CompilerCtx, sourceFilePath: string) => d.Module; -export declare const resetModuleLegacy: (moduleFile: d.Module) => void; diff --git a/build/compiler/build/compiler-ctx.js b/build/compiler/build/compiler-ctx.js deleted file mode 100644 index 110d2fe9907..00000000000 --- a/build/compiler/build/compiler-ctx.js +++ /dev/null @@ -1,132 +0,0 @@ -import { join, noop, normalizePath } from '@utils'; -import { basename, dirname, extname } from 'path'; -import { buildEvents } from '../events'; -/** - * The CompilerCtx is a persistent object that's reused throughout - * all builds and rebuilds. The data within this object is used - * for in-memory caching, and can be reset, but the object itself - * is always the same. - */ -export class CompilerContext { - constructor() { - this.version = 2; - this.activeBuildId = -1; - this.activeFilesAdded = []; - this.activeFilesDeleted = []; - this.activeFilesUpdated = []; - this.activeDirsAdded = []; - this.activeDirsDeleted = []; - this.addWatchDir = noop; - this.addWatchFile = noop; - this.cssModuleImports = new Map(); - this.changedFiles = new Set(); - this.changedModules = new Set(); - this.collections = []; - this.compilerOptions = null; - this.events = buildEvents(); - this.hasSuccessfulBuild = false; - this.isActivelyBuilding = false; - this.lastBuildResults = null; - this.moduleMap = new Map(); - this.nodeMap = new WeakMap(); - this.resolvedCollections = new Set(); - this.rollupCache = new Map(); - this.rollupCacheHydrate = null; - this.rollupCacheLazy = null; - this.rollupCacheNative = null; - this.styleModeNames = new Set(); - this.worker = null; - } - reset() { - this.cache.clear(); - this.cssModuleImports.clear(); - this.cachedGlobalStyle = null; - this.collections.length = 0; - this.compilerOptions = null; - this.hasSuccessfulBuild = false; - this.rollupCacheHydrate = null; - this.rollupCacheLazy = null; - this.rollupCacheNative = null; - this.moduleMap.clear(); - this.resolvedCollections.clear(); - if (this.fs != null) { - this.fs.clearCache(); - } - } -} -export const getModuleLegacy = (compilerCtx, sourceFilePath) => { - sourceFilePath = normalizePath(sourceFilePath); - const moduleFile = compilerCtx.moduleMap.get(sourceFilePath); - if (moduleFile != null) { - return moduleFile; - } - else { - const sourceFileDir = dirname(sourceFilePath); - const sourceFileExt = extname(sourceFilePath); - const sourceFileName = basename(sourceFilePath, sourceFileExt); - const jsFilePath = join(sourceFileDir, sourceFileName + '.js'); - const moduleFile = { - sourceFilePath: sourceFilePath, - jsFilePath: jsFilePath, - cmps: [], - coreRuntimeApis: [], - outputTargetCoreRuntimeApis: {}, - collectionName: null, - dtsFilePath: null, - excludeFromCollection: false, - externalImports: [], - hasVdomAttribute: false, - hasVdomXlink: false, - hasVdomClass: false, - hasVdomFunctional: false, - hasVdomKey: false, - hasVdomListener: false, - hasVdomPropOrAttr: false, - hasVdomRef: false, - hasVdomRender: false, - hasVdomStyle: false, - hasVdomText: false, - htmlAttrNames: [], - htmlTagNames: [], - htmlParts: [], - isCollectionDependency: false, - isLegacy: false, - localImports: [], - originalCollectionComponentPath: null, - originalImports: [], - potentialCmpRefs: [], - staticSourceFile: null, - staticSourceFileText: '', - sourceMapPath: null, - sourceMapFileText: null, - }; - compilerCtx.moduleMap.set(sourceFilePath, moduleFile); - return moduleFile; - } -}; -export const resetModuleLegacy = (moduleFile) => { - moduleFile.cmps.length = 0; - moduleFile.coreRuntimeApis.length = 0; - moduleFile.collectionName = null; - moduleFile.dtsFilePath = null; - moduleFile.excludeFromCollection = false; - moduleFile.externalImports.length = 0; - moduleFile.isCollectionDependency = false; - moduleFile.localImports.length = 0; - moduleFile.originalCollectionComponentPath = null; - moduleFile.originalImports.length = 0; - moduleFile.hasVdomXlink = false; - moduleFile.hasVdomAttribute = false; - moduleFile.hasVdomClass = false; - moduleFile.hasVdomFunctional = false; - moduleFile.hasVdomKey = false; - moduleFile.hasVdomListener = false; - moduleFile.hasVdomRef = false; - moduleFile.hasVdomRender = false; - moduleFile.hasVdomStyle = false; - moduleFile.hasVdomText = false; - moduleFile.htmlAttrNames.length = 0; - moduleFile.htmlTagNames.length = 0; - moduleFile.potentialCmpRefs.length = 0; -}; -//# sourceMappingURL=compiler-ctx.js.map \ No newline at end of file diff --git a/build/compiler/build/compiler-ctx.js.map b/build/compiler/build/compiler-ctx.js.map deleted file mode 100644 index 491f6d88571..00000000000 --- a/build/compiler/build/compiler-ctx.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"compiler-ctx.js","sourceRoot":"","sources":["../../../src/compiler/build/compiler-ctx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAA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,MAAM,GAAG,CAAC,CAAC;IACnC,UAAU,CAAC,+BAA+B,GAAG,IAAI,CAAC;IAClD,UAAU,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC;IAEtC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC;IAChC,UAAU,CAAC,gBAAgB,GAAG,KAAK,CAAC;IACpC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC;IAChC,UAAU,CAAC,iBAAiB,GAAG,KAAK,CAAC;IACrC,UAAU,CAAC,UAAU,GAAG,KAAK,CAAC;IAC9B,UAAU,CAAC,eAAe,GAAG,KAAK,CAAC;IACnC,UAAU,CAAC,UAAU,GAAG,KAAK,CAAC;IAC9B,UAAU,CAAC,aAAa,GAAG,KAAK,CAAC;IACjC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC;IAChC,UAAU,CAAC,WAAW,GAAG,KAAK,CAAC;IAC/B,UAAU,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IACpC,UAAU,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;IACnC,UAAU,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC;AACzC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/build/full-build.d.ts b/build/compiler/build/full-build.d.ts deleted file mode 100644 index 359b7b44bbd..00000000000 --- a/build/compiler/build/full-build.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Build a callable function to perform a full build of a Stencil project - * @param config a Stencil configuration to apply to a full build of a Stencil project - * @param compilerCtx the current Stencil compiler context - * @returns the results of a full build of Stencil - */ -export declare const createFullBuild: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx) => Promise; diff --git a/build/compiler/build/full-build.js b/build/compiler/build/full-build.js deleted file mode 100644 index 37d64255f39..00000000000 --- a/build/compiler/build/full-build.js +++ /dev/null @@ -1,40 +0,0 @@ -import { createTsBuildProgram } from '../transpile/create-build-program'; -import { build } from './build'; -import { BuildContext } from './build-ctx'; -/** - * Build a callable function to perform a full build of a Stencil project - * @param config a Stencil configuration to apply to a full build of a Stencil project - * @param compilerCtx the current Stencil compiler context - * @returns the results of a full build of Stencil - */ -export const createFullBuild = async (config, compilerCtx) => { - return new Promise((resolve) => { - let tsWatchProgram = null; - compilerCtx.events.on('fileUpdate', (p) => { - config.logger.debug(`fileUpdate: ${p}`); - compilerCtx.fs.clearFileCache(p); - }); - /** - * A function that kicks off the transpilation process for both the TypeScript and Stencil compilers - * @param tsBuilder the manager of the {@link ts.Program} state - */ - const onBuild = async (tsBuilder) => { - const buildCtx = new BuildContext(config, compilerCtx); - buildCtx.isRebuild = false; - buildCtx.requiresFullBuild = true; - buildCtx.start(); - const result = await build(config, compilerCtx, buildCtx, tsBuilder); - if (result !== null) { - if (tsWatchProgram) { - tsWatchProgram.close(); - tsWatchProgram = null; - } - resolve(result); - } - }; - createTsBuildProgram(config, onBuild).then((program) => { - tsWatchProgram = program; - }); - }); -}; -//# sourceMappingURL=full-build.js.map \ No newline at end of file diff --git a/build/compiler/build/full-build.js.map b/build/compiler/build/full-build.js.map deleted file mode 100644 index 3b5fc19cd84..00000000000 --- a/build/compiler/build/full-build.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"full-build.js","sourceRoot":"","sources":["../../../src/compiler/build/full-build.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,MAAyB,EACzB,WAA0B,EACO,EAAE;IACnC,OAAO,IAAI,OAAO,CAAyB,CAAC,OAAO,EAAE,EAAE;QACrD,IAAI,cAAc,GAA4C,IAAI,CAAC;QAEnE,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE;YACxC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;YACxC,WAAW,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;QAEH;;;WAGG;QACH,MAAM,OAAO,GAAG,KAAK,EAAE,SAA4B,EAAiB,EAAE;YACpE,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;YACvD,QAAQ,CAAC,SAAS,GAAG,KAAK,CAAC;YAC3B,QAAQ,CAAC,iBAAiB,GAAG,IAAI,CAAC;YAClC,QAAQ,CAAC,KAAK,EAAE,CAAC;YAEjB,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;YACrE,IAAI,MAAM,KAAK,IAAI,EAAE;gBACnB,IAAI,cAAc,EAAE;oBAClB,cAAc,CAAC,KAAK,EAAE,CAAC;oBACvB,cAAc,GAAG,IAAI,CAAC;iBACvB;gBACD,OAAO,CAAC,MAAM,CAAC,CAAC;aACjB;QACH,CAAC,CAAC;QAEF,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;YACrD,cAAc,GAAG,OAAO,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/build/test/build-stats.spec.d.ts b/build/compiler/build/test/build-stats.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/build/test/build-stats.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/build/test/build-stats.spec.js b/build/compiler/build/test/build-stats.spec.js deleted file mode 100644 index bc86eafc896..00000000000 --- a/build/compiler/build/test/build-stats.spec.js +++ /dev/null @@ -1,60 +0,0 @@ -import { mockBuildCtx, mockCompilerCtx, mockValidatedConfig } from '@stencil/core/testing'; -import { result } from '@utils'; -import { generateBuildResults } from '../build-results'; -import { generateBuildStats } from '../build-stats'; -describe('generateBuildStats', () => { - let config; - let compilerCtx; - let buildCtx; - beforeEach(() => { - config = mockValidatedConfig(); - compilerCtx = mockCompilerCtx(config); - buildCtx = mockBuildCtx(config, compilerCtx); - }); - it('should return a structured json object', async () => { - buildCtx.buildResults = generateBuildResults(config, compilerCtx, buildCtx); - const compilerBuildStats = result.unwrap(generateBuildStats(config, buildCtx)); - if (compilerBuildStats.hasOwnProperty('timestamp')) { - delete compilerBuildStats.timestamp; - } - if (compilerBuildStats.hasOwnProperty('compiler') && compilerBuildStats.compiler.hasOwnProperty('version')) { - delete compilerBuildStats.compiler.version; - } - expect(compilerBuildStats).toStrictEqual({ - app: { bundles: 0, components: 0, entries: 0, fsNamespace: 'testing', namespace: 'Testing', outputs: [] }, - collections: [], - compiler: { name: 'in-memory' }, - componentGraph: {}, - components: [], - entries: [], - formats: { commonjs: [], es5: [], esm: [], esmBrowser: [], system: [] }, - options: { - buildEs5: false, - hashFileNames: false, - hashedFileNameLength: 8, - minifyCss: false, - minifyJs: false, - }, - rollupResults: { - modules: [], - }, - sourceGraph: {}, - }); - }); - it('should return diagnostics if an error is hit', async () => { - buildCtx.buildResults = generateBuildResults(config, compilerCtx, buildCtx); - buildCtx.buildResults.hasError = true; - const diagnostic = { - level: 'error', - type: 'horrible', - messageText: 'the worst error _possible_ has just occurred', - lines: [], - }; - buildCtx.buildResults.diagnostics = [diagnostic]; - const diagnostics = result.unwrapErr(generateBuildStats(config, buildCtx)); - expect(diagnostics).toStrictEqual({ - diagnostics: [diagnostic], - }); - }); -}); -//# sourceMappingURL=build-stats.spec.js.map \ No newline at end of file diff --git a/build/compiler/build/test/build-stats.spec.js.map b/build/compiler/build/test/build-stats.spec.js.map deleted file mode 100644 index 7c28f95ac4a..00000000000 --- a/build/compiler/build/test/build-stats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C,CAAC;QAE3E,MAAM,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC;YAChC,WAAW,EAAE,CAAC,UAAU,CAAC;SAC1B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/build/validate-files.d.ts b/build/compiler/build/validate-files.d.ts deleted file mode 100644 index 9e26c3ad032..00000000000 --- a/build/compiler/build/validate-files.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Validate the existence and contents of certain files that were generated after writing the results of the build to - * disk - * @param config the Stencil configuration used for the build - * @param compilerCtx the compiler context associated with the build - * @param buildCtx the build context associated with the current build - * @returns an array containing empty-Promise results - */ -export declare const validateBuildFiles: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx) => Promise<(void | void[])[]>; diff --git a/build/compiler/build/validate-files.js b/build/compiler/build/validate-files.js deleted file mode 100644 index b5dbb3119aa..00000000000 --- a/build/compiler/build/validate-files.js +++ /dev/null @@ -1,20 +0,0 @@ -import { validateManifestJson } from '../html/validate-manifest-json'; -import { validateBuildPackageJson } from '../types/validate-build-package-json'; -/** - * Validate the existence and contents of certain files that were generated after writing the results of the build to - * disk - * @param config the Stencil configuration used for the build - * @param compilerCtx the compiler context associated with the build - * @param buildCtx the build context associated with the current build - * @returns an array containing empty-Promise results - */ -export const validateBuildFiles = (config, compilerCtx, buildCtx) => { - if (buildCtx.hasError) { - return null; - } - return Promise.all([ - validateBuildPackageJson(config, compilerCtx, buildCtx), - validateManifestJson(config, compilerCtx, buildCtx), - ]); -}; -//# sourceMappingURL=validate-files.js.map \ No newline at end of file diff --git a/build/compiler/build/validate-files.js.map b/build/compiler/build/validate-files.js.map deleted file mode 100644 index 0dc2cd2d2b0..00000000000 --- a/build/compiler/build/validate-files.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-files.js","sourceRoot":"","sources":["../../../src/compiler/build/validate-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,MAAyB,EACzB,WAA0B,EAC1B,QAAoB,EACQ,EAAE;IAC9B,IAAI,QAAQ,CAAC,QAAQ,EAAE;QACrB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,OAAO,CAAC,GAAG,CAAC;QACjB,wBAAwB,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC;QACvD,oBAAoB,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC;KACpD,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/build/watch-build.d.ts b/build/compiler/build/watch-build.d.ts deleted file mode 100644 index 0a8c2d9eaf3..00000000000 --- a/build/compiler/build/watch-build.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type * as d from '../../declarations'; -/** - * This method contains context and functionality for a TS watch build. This is called via - * the compiler when running a build in watch mode (i.e. `stencil build --watch`). - * - * In essence, this method tracks all files that change while the program is running to trigger - * a rebuild of a Stencil project using a {@link ts.EmitAndSemanticDiagnosticsBuilderProgram}. - * - * @param config The validated config for the Stencil project - * @param compilerCtx The compiler context for the project - * @returns An object containing helper methods for the dev-server's watch program - */ -export declare const createWatchBuild: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx) => Promise; diff --git a/build/compiler/build/watch-build.js b/build/compiler/build/watch-build.js deleted file mode 100644 index 14716cd743e..00000000000 --- a/build/compiler/build/watch-build.js +++ /dev/null @@ -1,290 +0,0 @@ -import { isString, resolve } from '@utils'; -import { dirname } from 'path'; -import { compilerRequest } from '../bundle/dev-module'; -import { filesChanged, hasHtmlChanges, hasScriptChanges, hasStyleChanges, isWatchIgnorePath, scriptsAdded, scriptsDeleted, } from '../fs-watch/fs-watch-rebuild'; -import { hasServiceWorkerChanges } from '../service-worker/generate-sw'; -import { createTsWatchProgram } from '../transpile/create-watch-program'; -import { build } from './build'; -import { BuildContext } from './build-ctx'; -/** - * This method contains context and functionality for a TS watch build. This is called via - * the compiler when running a build in watch mode (i.e. `stencil build --watch`). - * - * In essence, this method tracks all files that change while the program is running to trigger - * a rebuild of a Stencil project using a {@link ts.EmitAndSemanticDiagnosticsBuilderProgram}. - * - * @param config The validated config for the Stencil project - * @param compilerCtx The compiler context for the project - * @returns An object containing helper methods for the dev-server's watch program - */ -export const createWatchBuild = async (config, compilerCtx) => { - let isRebuild = false; - let tsWatchProgram; - let closeResolver; - const watchWaiter = new Promise((resolve) => (closeResolver = resolve)); - const dirsAdded = new Set(); - const dirsDeleted = new Set(); - const filesAdded = new Set(); - const filesUpdated = new Set(); - const filesDeleted = new Set(); - /** - * A callback function that is invoked to trigger a rebuild of a Stencil project. This will - * update the build context with the associated file changes (these are used downstream to trigger - * HMR) and then calls the `build()` function to execute the Stencil build. - * - * @param tsBuilder A {@link ts.BuilderProgram} to be passed to the `build()` function. - */ - const onBuild = async (tsBuilder) => { - const buildCtx = new BuildContext(config, compilerCtx); - buildCtx.isRebuild = isRebuild; - buildCtx.requiresFullBuild = !isRebuild; - buildCtx.dirsAdded = Array.from(dirsAdded.keys()).sort(); - buildCtx.dirsDeleted = Array.from(dirsDeleted.keys()).sort(); - buildCtx.filesAdded = Array.from(filesAdded.keys()).sort(); - buildCtx.filesUpdated = Array.from(filesUpdated.keys()).sort(); - buildCtx.filesDeleted = Array.from(filesDeleted.keys()).sort(); - buildCtx.filesChanged = filesChanged(buildCtx); - buildCtx.scriptsAdded = scriptsAdded(buildCtx); - buildCtx.scriptsDeleted = scriptsDeleted(buildCtx); - buildCtx.hasScriptChanges = hasScriptChanges(buildCtx); - buildCtx.hasStyleChanges = hasStyleChanges(buildCtx); - buildCtx.hasHtmlChanges = hasHtmlChanges(config, buildCtx); - buildCtx.hasServiceWorkerChanges = hasServiceWorkerChanges(config, buildCtx); - if (config.flags.debug) { - config.logger.debug(`WATCH_BUILD::watchBuild::onBuild filesAdded: ${formatFilesForDebug(buildCtx.filesAdded)}`); - config.logger.debug(`WATCH_BUILD::watchBuild::onBuild filesDeleted: ${formatFilesForDebug(buildCtx.filesDeleted)}`); - config.logger.debug(`WATCH_BUILD::watchBuild::onBuild filesUpdated: ${formatFilesForDebug(buildCtx.filesUpdated)}`); - config.logger.debug(`WATCH_BUILD::watchBuild::onBuild filesWritten: ${formatFilesForDebug(buildCtx.filesWritten)}`); - } - dirsAdded.clear(); - dirsDeleted.clear(); - filesAdded.clear(); - filesUpdated.clear(); - filesDeleted.clear(); - emitFsChange(compilerCtx, buildCtx); - buildCtx.start(); - // Rebuild the project - const result = await build(config, compilerCtx, buildCtx, tsBuilder); - if (result && !result.hasError) { - isRebuild = true; - } - }; - /** - * Utility method for formatting a debug message that must either list a number of files, or the word 'none' if the - * provided list is empty - * - * @param files a list of files, the list may be empty - * @returns the provided list if it is not empty. otherwise, return the word 'none' - */ - const formatFilesForDebug = (files) => { - /** - * In the created message, it's important that there's no whitespace prior to the file name. - * Stencil's logger will split messages by whitespace according to the width of the terminal window. - * Since file names can be fully qualified paths (and therefore quite long), putting whitespace between a '-' and - * the path can lead to formatted messages where the '-' is on its own line - */ - return files.length > 0 ? files.map((filename) => `-${filename}`).join('\n') : 'none'; - }; - /** - * Utility method to start/construct the watch program. This will mark - * all relevant files to be watched and then call a method to build the TS - * program responsible for building the project. - * - * @returns A promise of the result of creating the watch program. - */ - const start = async () => { - const srcRead = watchSrcDirectory(config, compilerCtx); - const otherRead = watchRootFiles(config, compilerCtx); - await srcRead; - await otherRead; - tsWatchProgram = await createTsWatchProgram(config, onBuild); - return watchWaiter; - }; - /** - * A map of absolute directory paths and their associated {@link d.CompilerFileWatcher} (which contains - * the ability to teardown the watcher for the specific directory) - */ - const watchingDirs = new Map(); - /** - * A map of absolute file paths and their associated {@link d.CompilerFileWatcher} (which contains - * the ability to teardown the watcher for the specific file) - */ - const watchingFiles = new Map(); - /** - * Callback method that will execute whenever TS alerts us that a file change - * has occurred. This will update the appropriate set with the file path based on the - * type of change, and then will kick off a rebuild of the project. - * - * @param filePath The absolute path to the file in the Stencil project - * @param eventKind The type of file change that occurred (update, add, delete) - */ - const onFsChange = (filePath, eventKind) => { - if (tsWatchProgram && !isWatchIgnorePath(config, filePath)) { - updateCompilerCtxCache(config, compilerCtx, filePath, eventKind); - switch (eventKind) { - case 'dirAdd': - dirsAdded.add(filePath); - break; - case 'dirDelete': - dirsDeleted.add(filePath); - break; - case 'fileAdd': - filesAdded.add(filePath); - break; - case 'fileUpdate': - filesUpdated.add(filePath); - break; - case 'fileDelete': - filesDeleted.add(filePath); - break; - } - config.logger.debug(`WATCH_BUILD::fs_event_change - type=${eventKind}, path=${filePath}, time=${new Date().getTime()}`); - // Trigger a rebuild of the project - tsWatchProgram.rebuild(); - } - }; - /** - * Callback method that will execute when TS alerts us that a directory modification has occurred. - * This will just call the `onFsChange()` callback method with the same arguments. - * - * @param filePath The absolute path to the file in the Stencil project - * @param eventKind The type of file change that occurred (update, add, delete) - */ - const onDirChange = (filePath, eventKind) => { - if (eventKind != null) { - onFsChange(filePath, eventKind); - } - }; - /** - * Utility method to teardown the TS watch program and close/clear all watched files. - * - * @returns An object with the `exitCode` status of the teardown. - */ - const close = async () => { - watchingDirs.forEach((w) => w.close()); - watchingFiles.forEach((w) => w.close()); - watchingDirs.clear(); - watchingFiles.clear(); - if (tsWatchProgram) { - tsWatchProgram.program.close(); - tsWatchProgram = null; - } - const watcherCloseResults = { - exitCode: 0, - }; - closeResolver(watcherCloseResults); - return watcherCloseResults; - }; - const request = async (data) => compilerRequest(config, compilerCtx, data); - // Add a definition to the `compilerCtx` for `addWatchFile` - // This method will add the specified file path to the watched files collection and instruct - // the `CompilerSystem` what to do when a file change occurs (the `onFsChange()` callback) - compilerCtx.addWatchFile = (filePath) => { - if (isString(filePath) && !watchingFiles.has(filePath) && !isWatchIgnorePath(config, filePath)) { - watchingFiles.set(filePath, config.sys.watchFile(filePath, onFsChange)); - } - }; - // Add a definition to the `compilerCtx` for `addWatchDir` - // This method will add the specified file path to the watched directories collection and instruct - // the `CompilerSystem` what to do when a directory change occurs (the `onDirChange()` callback) - compilerCtx.addWatchDir = (dirPath, recursive) => { - if (isString(dirPath) && !watchingDirs.has(dirPath) && !isWatchIgnorePath(config, dirPath)) { - watchingDirs.set(dirPath, config.sys.watchDirectory(dirPath, onDirChange, recursive)); - } - }; - // When the compiler system destroys, we need to also destroy this watch program - config.sys.addDestroy(close); - return { - start, - close, - on: compilerCtx.events.on, - request, - }; -}; -/** - * Recursively marks all files under a Stencil project's `src` directory to be watched for changes. Whenever - * one of these files is determined as changed (according to TS), a rebuild of the project will execute. - * - * @param config The Stencil project's config - * @param compilerCtx The compiler context for the Stencil project - */ -const watchSrcDirectory = async (config, compilerCtx) => { - const srcFiles = await compilerCtx.fs.readdir(config.srcDir, { - recursive: true, - excludeDirNames: ['.cache', '.git', '.github', '.stencil', '.vscode', 'node_modules'], - excludeExtensions: [ - '.md', - '.markdown', - '.txt', - '.spec.ts', - '.spec.tsx', - '.e2e.ts', - '.e2e.tsx', - '.gitignore', - '.editorconfig', - ], - }); - // Iterate over each file in the collection (filter out directories) and add - // a watcher for each - srcFiles.filter(({ isFile }) => isFile).forEach(({ absPath }) => compilerCtx.addWatchFile(absPath)); - compilerCtx.addWatchDir(config.srcDir, true); -}; -/** - * Marks all root files of a Stencil project to be watched for changes. Whenever - * one of these files is determined as changed (according to TS), a rebuild of the project will execute. - * - * @param config The Stencil project's config - * @param compilerCtx The compiler context for the Stencil project - */ -const watchRootFiles = async (config, compilerCtx) => { - // non-src files that cause a rebuild - // mainly for root level config files, and getting an event when they change - const rootFiles = await compilerCtx.fs.readdir(config.rootDir, { - recursive: false, - excludeDirNames: ['.cache', '.git', '.github', '.stencil', '.vscode', 'node_modules'], - }); - // Iterate over each file in the collection (filter out directories) and add - // a watcher for each - rootFiles.filter(({ isFile }) => isFile).forEach(({ absPath }) => compilerCtx.addWatchFile(absPath)); -}; -const emitFsChange = (compilerCtx, buildCtx) => { - if (buildCtx.dirsAdded.length > 0 || - buildCtx.dirsDeleted.length > 0 || - buildCtx.filesUpdated.length > 0 || - buildCtx.filesAdded.length > 0 || - buildCtx.filesDeleted.length > 0) { - compilerCtx.events.emit('fsChange', { - dirsAdded: buildCtx.dirsAdded.slice(), - dirsDeleted: buildCtx.dirsDeleted.slice(), - filesUpdated: buildCtx.filesUpdated.slice(), - filesAdded: buildCtx.filesAdded.slice(), - filesDeleted: buildCtx.filesDeleted.slice(), - }); - } -}; -const updateCompilerCtxCache = (config, compilerCtx, path, kind) => { - compilerCtx.fs.clearFileCache(path); - compilerCtx.changedFiles.add(path); - if (kind === 'fileDelete') { - compilerCtx.moduleMap.delete(path); - } - else if (kind === 'dirDelete') { - const fsRootDir = resolve('/'); - compilerCtx.moduleMap.forEach((_, moduleFilePath) => { - let moduleAncestorDir = dirname(moduleFilePath); - for (let i = 0; i < 50; i++) { - if (moduleAncestorDir === config.rootDir || moduleAncestorDir === fsRootDir) { - break; - } - if (moduleAncestorDir === path) { - compilerCtx.fs.clearFileCache(moduleFilePath); - compilerCtx.moduleMap.delete(moduleFilePath); - compilerCtx.changedFiles.add(moduleFilePath); - break; - } - moduleAncestorDir = dirname(moduleAncestorDir); - } - }); - } -}; -//# sourceMappingURL=watch-build.js.map \ No newline at end of file diff --git a/build/compiler/build/watch-build.js.map b/build/compiler/build/watch-build.js.map deleted file mode 100644 index 269c829186f..00000000000 --- a/build/compiler/build/watch-build.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"watch-build.js","sourceRoot":"","sources":["../../../src/compiler/build/watch-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAI/B,OAAO,EAAE,eAAe,EAAE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build.d.ts deleted file mode 100644 index c60e0e4c5c6..00000000000 --- a/build/compiler/build/write-build.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Writes files to disk as a result of compilation - * @param config the Stencil configuration used for the build - * @param compilerCtx the compiler context associated with the build - * @param buildCtx the build context associated with the current build - */ -export declare const writeBuild: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx) => Promise; diff --git a/build/compiler/build/write-build.js b/build/compiler/build/write-build.js deleted file mode 100644 index 6961f2511c2..00000000000 --- a/build/compiler/build/write-build.js +++ /dev/null @@ -1,35 +0,0 @@ -import { catchError } from '@utils'; -import { outputServiceWorkers } from '../output-targets/output-service-workers'; -import { validateBuildFiles } from './validate-files'; -/** - * Writes files to disk as a result of compilation - * @param config the Stencil configuration used for the build - * @param compilerCtx the compiler context associated with the build - * @param buildCtx the build context associated with the current build - */ -export const writeBuild = async (config, compilerCtx, buildCtx) => { - const timeSpan = buildCtx.createTimeSpan(`writeBuildFiles started`, true); - let totalFilesWrote = 0; - try { - // commit all the `writeFile`, `mkdir`, `rmdir` and `unlink` operations to disk - const commitResults = await compilerCtx.fs.commit(); - // get the results from the write to disk commit - buildCtx.filesWritten = commitResults.filesWritten; - buildCtx.filesDeleted = commitResults.filesDeleted; - buildCtx.dirsDeleted = commitResults.dirsDeleted; - buildCtx.dirsAdded = commitResults.dirsAdded; - totalFilesWrote = commitResults.filesWritten.length; - // successful write - // kick off writing the cached file stuff - await compilerCtx.cache.commit(); - buildCtx.debug(`in-memory-fs: ${compilerCtx.fs.getMemoryStats()}`); - buildCtx.debug(`cache: ${compilerCtx.cache.getMemoryStats()}`); - await outputServiceWorkers(config, buildCtx); - await validateBuildFiles(config, compilerCtx, buildCtx); - } - catch (e) { - catchError(buildCtx.diagnostics, e); - } - timeSpan.finish(`writeBuildFiles finished, files wrote: ${totalFilesWrote}`); -}; -//# sourceMappingURL=write-build.js.map \ No newline at end of file diff --git a/build/compiler/build/write-build.js.map b/build/compiler/build/write-build.js.map deleted file mode 100644 index 657e95f5d4b..00000000000 --- a/build/compiler/build/write-build.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"write-build.js","sourceRoot":"","sources":["../../../src/compiler/build/write-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAC7B,MAAyB,EACzB,WAA0B,EAC1B,QAAoB,EACL,EAAE;IACjB,MAAM,QAAQ,GAAG,QAAQ,CAAC,cAAc,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC;IAE1E,IAAI,eAAe,GAAG,CAAC,CAAC;IAExB,IAAI;QACF,+EAA+E;QAC/E,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;QAEpD,gDAAgD;QAChD,QAAQ,CAAC,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC;QACnD,QAAQ,CAAC,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC;QACnD,QAAQ,CAAC,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;QACjD,QAAQ,CAAC,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC;QAC7C,eAAe,GAAG,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC;QAEpD,mBAAmB;QACnB,yCAAyC;QACzC,MAAM,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QACjC,QAAQ,CAAC,KAAK,CAAC,iBAAiB,WAAW,CAAC,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;QACnE,QAAQ,CAAC,KAAK,CAAC,UAAU,WAAW,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;QAE/D,MAAM,oBAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC7C,MAAM,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;KACzD;IAAC,OAAO,CAAM,EAAE;QACf,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;KACrC;IAED,QAAQ,CAAC,MAAM,CAAC,0CAA0C,eAAe,EAAE,CAAC,CAAC;AAC/E,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/app-data-plugin.d.ts b/build/compiler/bundle/app-data-plugin.d.ts deleted file mode 100644 index 58156bfb8cc..00000000000 --- a/build/compiler/bundle/app-data-plugin.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { Plugin } from 'rollup'; -import type * as d from '../../declarations'; -/** - * A Rollup plugin which bundles application data. - * - * @param config the Stencil configuration for a particular project - * @param compilerCtx the current compiler context - * @param buildCtx the current build context - * @param build the set build conditionals for the build - * @param platform the platform that is being built - * @returns a Rollup plugin which carries out the necessary work - */ -export declare const appDataPlugin: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx, build: d.BuildConditionals, platform: 'client' | 'hydrate' | 'worker') => Plugin; -export declare const getGlobalScriptData: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx) => GlobalScript[]; -interface GlobalScript { - defaultName: string; - path: string; -} -export {}; diff --git a/build/compiler/bundle/app-data-plugin.js b/build/compiler/bundle/app-data-plugin.js deleted file mode 100644 index 2c6a8c9ac9c..00000000000 --- a/build/compiler/bundle/app-data-plugin.js +++ /dev/null @@ -1,191 +0,0 @@ -import { createJsVarName, isString, loadTypeScriptDiagnostics, normalizePath } from '@utils'; -import MagicString from 'magic-string'; -import { basename } from 'path'; -import ts from 'typescript'; -import { removeCollectionImports } from '../transformers/remove-collection-imports'; -import { APP_DATA_CONDITIONAL, STENCIL_APP_DATA_ID, STENCIL_APP_GLOBALS_ID } from './entry-alias-ids'; -/** - * A Rollup plugin which bundles application data. - * - * @param config the Stencil configuration for a particular project - * @param compilerCtx the current compiler context - * @param buildCtx the current build context - * @param build the set build conditionals for the build - * @param platform the platform that is being built - * @returns a Rollup plugin which carries out the necessary work - */ -export const appDataPlugin = (config, compilerCtx, buildCtx, build, platform) => { - if (!platform) { - return { - name: 'appDataPlugin', - }; - } - const globalScripts = getGlobalScriptData(config, compilerCtx); - return { - name: 'appDataPlugin', - resolveId(id, importer) { - if (id === STENCIL_APP_DATA_ID || id === STENCIL_APP_GLOBALS_ID) { - if (platform === 'worker') { - this.error('@stencil/core packages cannot be imported from a worker.'); - } - if (platform === 'hydrate' || STENCIL_APP_GLOBALS_ID) { - // hydrate will always bundle app-data and runtime - // and the load() fn will build a custom globals import - return id; - } - else if (platform === 'client' && importer && importer.endsWith(APP_DATA_CONDITIONAL)) { - // since the importer ends with ?app-data=conditional we know that - // we need to build custom app-data based off of component metadata - // return the same "id" so that the "load()" method knows to - // build custom app-data - return id; - } - // for a client build that does not have ?app-data=conditional at the end then we - // do not want to create custom app-data, but should use the default - } - return null; - }, - load(id) { - if (id === STENCIL_APP_GLOBALS_ID) { - const s = new MagicString(``); - appendGlobalScripts(globalScripts, s); - return s.toString(); - } - if (id === STENCIL_APP_DATA_ID) { - // build custom app-data based off of component metadata - const s = new MagicString(``); - appendNamespace(config, s); - appendBuildConditionals(config, build, s); - appendEnv(config, s); - return s.toString(); - } - if (id !== config.globalScript) { - return null; - } - const module = compilerCtx.moduleMap.get(config.globalScript); - if (!module) { - return null; - } - else if (!module.sourceMapFileText) { - return { - code: module.staticSourceFileText, - map: null, - }; - } - const sourceMap = JSON.parse(module.sourceMapFileText); - sourceMap.sources = sourceMap.sources.map((src) => basename(src)); - return { code: module.staticSourceFileText, map: sourceMap }; - }, - transform(code, id) { - id = normalizePath(id); - if (globalScripts.some((s) => s.path === id)) { - const program = this.parse(code, {}); - const needsDefault = !program.body.some((s) => s.type === 'ExportDefaultDeclaration'); - const defaultExport = needsDefault ? '\nexport const globalFn = () => {};\nexport default globalFn;' : ''; - code = code + defaultExport; - const compilerOptions = { ...config.tsCompilerOptions }; - compilerOptions.module = ts.ModuleKind.ESNext; - const results = ts.transpileModule(code, { - compilerOptions, - fileName: id, - transformers: { - after: [removeCollectionImports(compilerCtx)], - }, - }); - buildCtx.diagnostics.push(...loadTypeScriptDiagnostics(results.diagnostics)); - if (config.sourceMap) { - // generate the sourcemap for global script - const codeMs = new MagicString(code); - const codeMap = codeMs.generateMap({ - source: id, - // this is the name of the sourcemap, not to be confused with the `file` field in a generated sourcemap - file: id + '.map', - includeContent: true, - hires: true, - }); - return { - code: results.outputText, - map: { - ...codeMap, - // MagicString changed their types in this PR: https://github.com/Rich-Harris/magic-string/pull/235 - // so that their `sourcesContent` is of type `(string | null)[]`. But, it will only return `[null]` if - // `includeContent` is set to `false`. Since we explicitly set `includeContent: true`, we can override - // the type to satisfy Rollup's type expectation - sourcesContent: codeMap.sourcesContent, - }, - }; - } - return { code: results.outputText }; - } - return null; - }, - }; -}; -export const getGlobalScriptData = (config, compilerCtx) => { - const globalScripts = []; - if (isString(config.globalScript)) { - const mod = compilerCtx.moduleMap.get(config.globalScript); - const globalScript = compilerCtx.version === 2 ? config.globalScript : mod && mod.jsFilePath; - if (globalScript) { - globalScripts.push({ - defaultName: createJsVarName(config.namespace + 'GlobalScript'), - path: normalizePath(globalScript), - }); - } - } - compilerCtx.collections.forEach((collection) => { - if (collection.global != null && isString(collection.global.sourceFilePath)) { - let defaultName = createJsVarName(collection.collectionName + 'GlobalScript'); - if (globalScripts.some((s) => s.defaultName === defaultName)) { - defaultName += globalScripts.length; - } - globalScripts.push({ - defaultName, - path: normalizePath(collection.global.sourceFilePath), - }); - } - }); - return globalScripts; -}; -const appendGlobalScripts = (globalScripts, s) => { - if (globalScripts.length === 1) { - s.prepend(`import appGlobalScript from '${globalScripts[0].path}';\n`); - s.append(`export const globalScripts = appGlobalScript;\n`); - } - else if (globalScripts.length > 1) { - globalScripts.forEach((globalScript) => { - s.prepend(`import ${globalScript.defaultName} from '${globalScript.path}';\n`); - }); - s.append(`export const globalScripts = () => {\n`); - globalScripts.forEach((globalScript) => { - s.append(` ${globalScript.defaultName}();\n`); - }); - s.append(`};\n`); - } - else { - s.append(`export const globalScripts = () => {};\n`); - } -}; -/** - * Generates the `BUILD` constant that is used at compile-time in a Stencil project - * - * **This function mutates the provided {@link MagicString} argument** - * - * @param config the configuration associated with the Stencil project - * @param build the build conditionals to serialize into a JS object - * @param s a `MagicString` to append the generated constant onto - */ -const appendBuildConditionals = (config, build, s) => { - const buildData = Object.keys(build) - .sort() - .map((key) => key + ': ' + (build[key] ? 'true' : 'false')) - .join(', '); - s.append(`export const BUILD = /* ${config.fsNamespace} */ { ${buildData} };\n`); -}; -const appendEnv = (config, s) => { - s.append(`export const Env = /* ${config.fsNamespace} */ ${JSON.stringify(config.env)};\n`); -}; -const appendNamespace = (config, s) => { - s.append(`export const NAMESPACE = '${config.fsNamespace}';\n`); -}; -//# sourceMappingURL=app-data-plugin.js.map \ No newline at end of file diff --git a/build/compiler/bundle/app-data-plugin.js.map b/build/compiler/bundle/app-data-plugin.js.map deleted file mode 100644 index 4377fba0468..00000000000 --- a/build/compiler/bundle/app-data-plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"app-data-plugin.js","sourceRoot":"","sources":["../../../src/compiler/bundle/app-data-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC7F,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB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;SACnE,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,CAAC,CAAC,MAAM,CAAC,2BAA2B,MAAM,CAAC,WAAW,SAAS,SAAS,OAAO,CAAC,CAAC;AACnF,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,MAAyB,EAAE,CAAc,EAAE,EAAE;IAC9D,CAAC,CAAC,MAAM,CAAC,yBAAyB,MAAM,CAAC,WAAW,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9F,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,MAAyB,EAAE,CAAc,EAAE,EAAE;IACpE,CAAC,CAAC,MAAM,CAAC,6BAA6B,MAAM,CAAC,WAAW,MAAM,CAAC,CAAC;AAClE,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/bundle-interface.d.ts b/build/compiler/bundle/bundle-interface.d.ts deleted file mode 100644 index 17298119e60..00000000000 --- a/build/compiler/bundle/bundle-interface.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import type { PreserveEntrySignaturesOption } from 'rollup'; -import type { SourceFile, TransformerFactory } from 'typescript'; -import type { BuildConditionals } from '../../declarations'; -/** - * Options for bundled output passed on Rollup - * - * This covers the ID for the bundle, the platform it runs on, input modules, - * and more - */ -export interface BundleOptions { - id: string; - conditionals?: BuildConditionals; - /** - * When `true`, all `@stencil/core/*` packages will be treated as external - * and omitted from the generated bundle. - */ - externalRuntime?: boolean; - platform: 'client' | 'hydrate' | 'worker'; - /** - * A collection of TypeScript transformation factories to apply during the "before" stage of the TypeScript - * compilation pipeline (before built-in .js transformations) - */ - customBeforeTransformers?: TransformerFactory[]; - /** - * This is equivalent to the Rollup `input` configuration option. It's - * an object mapping names to entry points which tells Rollup to bundle - * each thing up as a separate output chunk. - * - * @see {@link https://rollupjs.org/guide/en/#input} - */ - inputs: { - [entryKey: string]: string; - }; - /** - * A map of strings which are passed to the Stencil-specific loader plugin - * which we use to resolve the imports of Stencil project files when building - * with Rollup. - * - * @see {@link loader-plugin:loaderPlugin} - */ - loader?: { - [id: string]: string; - }; - /** - * Duplicate of Rollup's `inlineDynamicImports` output option. - * - * Creates dynamic imports (i.e. `import()` calls) as a part of the same - * chunk being bundled. Rather than being created as separate chunks. - * - * @see {@link https://rollupjs.org/guide/en/#outputinlinedynamicimports} - */ - inlineDynamicImports?: boolean; - inlineWorkers?: boolean; - /** - * Duplicate of Rollup's `preserveEntrySignatures` option. - * - * "Controls if Rollup tries to ensure that entry chunks have the same - * exports as the underlying entry module." - * - * @see {@link https://rollupjs.org/guide/en/#preserveentrysignatures} - */ - preserveEntrySignatures?: PreserveEntrySignaturesOption; -} diff --git a/build/compiler/bundle/bundle-interface.js b/build/compiler/bundle/bundle-interface.js deleted file mode 100644 index 850eefe7d29..00000000000 --- a/build/compiler/bundle/bundle-interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=bundle-interface.js.map \ No newline at end of file diff --git a/build/compiler/bundle/bundle-interface.js.map b/build/compiler/bundle/bundle-interface.js.map deleted file mode 100644 index 6e9c799bc31..00000000000 --- a/build/compiler/bundle/bundle-interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle-interface.js","sourceRoot":"","sources":["../../../src/compiler/bundle/bundle-interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/build/compiler/bundle/bundle-output.d.ts b/build/compiler/bundle/bundle-output.d.ts deleted file mode 100644 index f2b79084640..00000000000 --- a/build/compiler/bundle/bundle-output.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { RollupOptions } from 'rollup'; -import type * as d from '../../declarations'; -import type { BundleOptions } from './bundle-interface'; -export declare const bundleOutput: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx, bundleOpts: BundleOptions) => Promise; -/** - * Build the rollup options that will be used to transpile, minify, and otherwise transform a Stencil project - * @param config the Stencil configuration for the project - * @param compilerCtx the current compiler context - * @param buildCtx a context object containing information about the current build - * @param bundleOpts Rollup bundling options to apply to the base configuration setup by this function - * @returns the rollup options to be used - */ -export declare const getRollupOptions: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx, bundleOpts: BundleOptions) => RollupOptions; diff --git a/build/compiler/bundle/bundle-output.js b/build/compiler/bundle/bundle-output.js deleted file mode 100644 index 50c2154a7c7..00000000000 --- a/build/compiler/bundle/bundle-output.js +++ /dev/null @@ -1,142 +0,0 @@ -import rollupCommonjsPlugin from '@rollup/plugin-commonjs'; -import rollupJsonPlugin from '@rollup/plugin-json'; -import rollupNodeResolvePlugin from '@rollup/plugin-node-resolve'; -import rollupReplacePlugin from '@rollup/plugin-replace'; -import { createOnWarnFn, isString, loadRollupDiagnostics } from '@utils'; -import { rollup } from 'rollup'; -import { lazyComponentPlugin } from '../output-targets/dist-lazy/lazy-component-plugin'; -import { createCustomResolverAsync } from '../sys/resolve/resolve-module-async'; -import { appDataPlugin } from './app-data-plugin'; -import { coreResolvePlugin } from './core-resolve-plugin'; -import { devNodeModuleResolveId } from './dev-node-module-resolve'; -import { extFormatPlugin } from './ext-format-plugin'; -import { extTransformsPlugin } from './ext-transforms-plugin'; -import { fileLoadPlugin } from './file-load-plugin'; -import { loaderPlugin } from './loader-plugin'; -import { pluginHelper } from './plugin-helper'; -import { serverPlugin } from './server-plugin'; -import { resolveIdWithTypeScript, typescriptPlugin } from './typescript-plugin'; -import { userIndexPlugin } from './user-index-plugin'; -import { workerPlugin } from './worker-plugin'; -export const bundleOutput = async (config, compilerCtx, buildCtx, bundleOpts) => { - try { - const rollupOptions = getRollupOptions(config, compilerCtx, buildCtx, bundleOpts); - const rollupBuild = await rollup(rollupOptions); - compilerCtx.rollupCache.set(bundleOpts.id, rollupBuild.cache); - return rollupBuild; - } - catch (e) { - if (!buildCtx.hasError) { - // TODO(STENCIL-353): Implement a type guard that balances using our own copy of Rollup types (which are - // breakable) and type safety (so that the error variable may be something other than `any`) - loadRollupDiagnostics(config, compilerCtx, buildCtx, e); - } - } - return undefined; -}; -/** - * Build the rollup options that will be used to transpile, minify, and otherwise transform a Stencil project - * @param config the Stencil configuration for the project - * @param compilerCtx the current compiler context - * @param buildCtx a context object containing information about the current build - * @param bundleOpts Rollup bundling options to apply to the base configuration setup by this function - * @returns the rollup options to be used - */ -export const getRollupOptions = (config, compilerCtx, buildCtx, bundleOpts) => { - var _a, _b, _c; - const customResolveOptions = createCustomResolverAsync(config.sys, compilerCtx.fs, [ - '.tsx', - '.ts', - '.js', - '.mjs', - '.json', - '.d.ts', - ]); - const nodeResolvePlugin = rollupNodeResolvePlugin({ - mainFields: ['collection:main', 'jsnext:main', 'es2017', 'es2015', 'module', 'main'], - customResolveOptions, - browser: true, - rootDir: config.rootDir, - ...config.nodeResolve, - }); - const orgNodeResolveId = nodeResolvePlugin.resolveId; - const orgNodeResolveId2 = (nodeResolvePlugin.resolveId = async function (importee, importer) { - const [realImportee, query] = importee.split('?'); - const resolved = await orgNodeResolveId.call(nodeResolvePlugin, realImportee, importer, {}); - if (resolved) { - if (isString(resolved)) { - return query ? resolved + '?' + query : resolved; - } - return { - ...resolved, - id: query ? resolved.id + '?' + query : resolved.id, - }; - } - return resolved; - }); - if ((_a = config.devServer) === null || _a === void 0 ? void 0 : _a.experimentalDevModules) { - nodeResolvePlugin.resolveId = async function (importee, importer) { - const resolvedId = await orgNodeResolveId2.call(nodeResolvePlugin, importee, importer); - return devNodeModuleResolveId(config, compilerCtx.fs, resolvedId, importee); - }; - } - const beforePlugins = config.rollupPlugins.before || []; - const afterPlugins = config.rollupPlugins.after || []; - const rollupOptions = { - input: bundleOpts.inputs, - output: { - inlineDynamicImports: (_b = bundleOpts.inlineDynamicImports) !== null && _b !== void 0 ? _b : false, - }, - plugins: [ - coreResolvePlugin(config, compilerCtx, bundleOpts.platform, !!bundleOpts.externalRuntime), - appDataPlugin(config, compilerCtx, buildCtx, bundleOpts.conditionals, bundleOpts.platform), - lazyComponentPlugin(buildCtx), - loaderPlugin(bundleOpts.loader), - userIndexPlugin(config, compilerCtx), - typescriptPlugin(compilerCtx, bundleOpts, config), - extFormatPlugin(config), - extTransformsPlugin(config, compilerCtx, buildCtx, bundleOpts), - workerPlugin(config, compilerCtx, buildCtx, bundleOpts.platform, !!bundleOpts.inlineWorkers), - serverPlugin(config, bundleOpts.platform), - ...beforePlugins, - nodeResolvePlugin, - resolveIdWithTypeScript(config, compilerCtx), - rollupCommonjsPlugin({ - include: /node_modules/, - sourceMap: config.sourceMap, - transformMixedEsModules: false, - ...config.commonjs, - }), - ...afterPlugins, - pluginHelper(config, buildCtx, bundleOpts.platform), - rollupJsonPlugin({ - preferConst: true, - }), - rollupReplacePlugin({ - 'process.env.NODE_ENV': config.devMode ? '"development"' : '"production"', - }), - fileLoadPlugin(compilerCtx.fs), - ], - treeshake: getTreeshakeOption(config, bundleOpts), - preserveEntrySignatures: (_c = bundleOpts.preserveEntrySignatures) !== null && _c !== void 0 ? _c : 'strict', - onwarn: createOnWarnFn(buildCtx.diagnostics), - cache: compilerCtx.rollupCache.get(bundleOpts.id), - }; - return rollupOptions; -}; -const getTreeshakeOption = (config, bundleOpts) => { - if (bundleOpts.platform === 'hydrate') { - return { - propertyReadSideEffects: false, - tryCatchDeoptimization: false, - }; - } - const treeshake = !config.devMode && config.rollupConfig.inputOptions.treeshake !== false - ? { - propertyReadSideEffects: false, - tryCatchDeoptimization: false, - } - : false; - return treeshake; -}; -//# sourceMappingURL=bundle-output.js.map \ No newline at end of file diff --git a/build/compiler/bundle/bundle-output.js.map b/build/compiler/bundle/bundle-output.js.map deleted file mode 100644 index d017df2297b..00000000000 --- a/build/compiler/bundle/bundle-output.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle-output.js","sourceRoot":"","sources":["../../../src/compiler/bundle/bundle-output.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,gBAAgB,MAAM,qBAA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AE5C,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;KAClD,CAAC;IAEF,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,MAAyB,EAAE,UAAyB,EAAgC,EAAE;IAChH,IAAI,UAAU,CAAC,QAAQ,KAAK,SAAS,EAAE;QACrC,OAAO;YACL,uBAAuB,EAAE,KAAK;YAC9B,sBAAsB,EAAE,KAAK;SAC9B,CAAC;KACH;IAED,MAAM,SAAS,GACb,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,YAAY,CAAC,YAAY,CAAC,SAAS,KAAK,KAAK;QACrE,CAAC,CAAC;YACE,uBAAuB,EAAE,KAAK;YAC9B,sBAAsB,EAAE,KAAK;SAC9B;QACH,CAAC,CAAC,KAAK,CAAC;IACZ,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/constants.d.ts b/build/compiler/bundle/constants.d.ts deleted file mode 100644 index 4cc27ba903d..00000000000 --- a/build/compiler/bundle/constants.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const DEV_MODULE_CACHE_BUSTER = 0; -export declare const DEV_MODULE_DIR = "~dev-module"; diff --git a/build/compiler/bundle/constants.js b/build/compiler/bundle/constants.js deleted file mode 100644 index b4f53272b29..00000000000 --- a/build/compiler/bundle/constants.js +++ /dev/null @@ -1,3 +0,0 @@ -export const DEV_MODULE_CACHE_BUSTER = 0; -export const DEV_MODULE_DIR = `~dev-module`; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/build/compiler/bundle/constants.js.map b/build/compiler/bundle/constants.js.map deleted file mode 100644 index d8c6dfafa6e..00000000000 --- a/build/compiler/bundle/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/compiler/bundle/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/core-resolve-plugin.d.ts b/build/compiler/bundle/core-resolve-plugin.d.ts deleted file mode 100644 index 7fb71b3527b..00000000000 --- a/build/compiler/bundle/core-resolve-plugin.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { Plugin } from 'rollup'; -import type * as d from '../../declarations'; -export declare const coreResolvePlugin: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, platform: 'client' | 'hydrate' | 'worker', externalRuntime: boolean) => Plugin; -export declare const getStencilInternalModule: (config: d.ValidatedConfig, compilerExe: string, internalModule: string) => string; -export declare const getHydratedFlagHead: (h: d.HydratedFlag) => string; diff --git a/build/compiler/bundle/core-resolve-plugin.js b/build/compiler/bundle/core-resolve-plugin.js deleted file mode 100644 index 5e242cb8924..00000000000 --- a/build/compiler/bundle/core-resolve-plugin.js +++ /dev/null @@ -1,132 +0,0 @@ -import { isRemoteUrl, join, normalizeFsPath, normalizePath } from '@utils'; -import { dirname } from 'path'; -import { HYDRATED_CSS } from '../../runtime/runtime-constants'; -import { fetchModuleAsync } from '../sys/fetch/fetch-module-async'; -import { getStencilModuleUrl, packageVersions } from '../sys/fetch/fetch-utils'; -import { APP_DATA_CONDITIONAL, STENCIL_CORE_ID, STENCIL_INTERNAL_CLIENT_ID, STENCIL_INTERNAL_CLIENT_PATCH_BROWSER_ID, STENCIL_INTERNAL_HYDRATE_ID, STENCIL_INTERNAL_ID, } from './entry-alias-ids'; -export const coreResolvePlugin = (config, compilerCtx, platform, externalRuntime) => { - const compilerExe = config.sys.getCompilerExecutingPath(); - const internalClient = getStencilInternalModule(config, compilerExe, 'client/index.js'); - const internalClientPatchBrowser = getStencilInternalModule(config, compilerExe, 'client/patch-browser.js'); - const internalHydrate = getStencilInternalModule(config, compilerExe, 'hydrate/index.js'); - return { - name: 'coreResolvePlugin', - resolveId(id) { - if (id === STENCIL_CORE_ID || id === STENCIL_INTERNAL_ID) { - if (platform === 'client') { - if (externalRuntime) { - return { - id: STENCIL_INTERNAL_CLIENT_ID, - external: true, - }; - } - // adding ?app-data=conditional as an identifier to ensure we don't - // use the default app-data, but build a custom one based on component meta - return internalClient + APP_DATA_CONDITIONAL; - } - if (platform === 'hydrate') { - return internalHydrate; - } - } - if (id === STENCIL_INTERNAL_CLIENT_ID) { - if (externalRuntime) { - // not bundling the client runtime and the user's component together this - // must be the custom elements build, where @stencil/core/internal/client - // is an import, rather than bundling - return { - id: STENCIL_INTERNAL_CLIENT_ID, - external: true, - }; - } - // importing @stencil/core/internal/client directly, so it shouldn't get - // the custom app-data conditionals - return internalClient; - } - if (id === STENCIL_INTERNAL_CLIENT_PATCH_BROWSER_ID) { - if (externalRuntime) { - return { - id: STENCIL_INTERNAL_CLIENT_PATCH_BROWSER_ID, - external: true, - }; - } - return internalClientPatchBrowser; - } - if (id === STENCIL_INTERNAL_HYDRATE_ID) { - return internalHydrate; - } - return null; - }, - async load(filePath) { - if (filePath && !filePath.startsWith('\0')) { - filePath = normalizeFsPath(filePath); - if (filePath === internalClient || filePath === internalHydrate) { - if (platform === 'worker') { - return ` -export const Build = { - isDev: ${config.devMode}, - isBrowser: true, - isServer: false, - isTesting: false, -};`; - } - let code = await compilerCtx.fs.readFile(filePath); - if (typeof code !== 'string' && isRemoteUrl(compilerExe)) { - const url = getStencilModuleUrl(compilerExe, filePath); - code = await fetchModuleAsync(config.sys, compilerCtx.fs, packageVersions, url, filePath); - } - if (typeof code === 'string') { - const hydratedFlag = config.hydratedFlag; - if (hydratedFlag) { - const hydratedFlagHead = getHydratedFlagHead(hydratedFlag); - if (HYDRATED_CSS !== hydratedFlagHead) { - code = code.replace(HYDRATED_CSS, hydratedFlagHead); - if (hydratedFlag.name !== 'hydrated') { - code = code.replace(`.classList.add("hydrated")`, `.classList.add("${hydratedFlag.name}")`); - code = code.replace(`.classList.add('hydrated')`, `.classList.add('${hydratedFlag.name}')`); - code = code.replace(`.setAttribute("hydrated",`, `.setAttribute("${hydratedFlag.name}",`); - code = code.replace(`.setAttribute('hydrated',`, `.setAttribute('${hydratedFlag.name}',`); - } - } - } - else { - code = code.replace(HYDRATED_CSS, '{}'); - } - } - return code; - } - } - return null; - }, - }; -}; -export const getStencilInternalModule = (config, compilerExe, internalModule) => { - if (isRemoteUrl(compilerExe)) { - return normalizePath(config.sys.getLocalModulePath({ - rootDir: config.rootDir, - moduleId: '@stencil/core', - path: 'internal/' + internalModule, - })); - } - const compilerExeDir = dirname(compilerExe); - return normalizePath(join(compilerExeDir, '..', 'internal', internalModule)); -}; -export const getHydratedFlagHead = (h) => { - // {visibility:hidden}.hydrated{visibility:inherit} - let initial; - let hydrated; - if (!String(h.initialValue) || h.initialValue === '' || h.initialValue == null) { - initial = ''; - } - else { - initial = `{${h.property}:${h.initialValue}}`; - } - const selector = h.selector === 'attribute' ? `[${h.name}]` : `.${h.name}`; - if (!String(h.hydratedValue) || h.hydratedValue === '' || h.hydratedValue == null) { - hydrated = ''; - } - else { - hydrated = `${selector}{${h.property}:${h.hydratedValue}}`; - } - return initial + hydrated; -}; -//# sourceMappingURL=core-resolve-plugin.js.map \ No newline at end of file diff --git a/build/compiler/bundle/core-resolve-plugin.js.map b/build/compiler/bundle/core-resolve-plugin.js.map deleted file mode 100644 index 6416a3c23d1..00000000000 --- a/build/compiler/bundle/core-resolve-plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"core-resolve-plugin.js","sourceRoot":"","sources":["../../../src/compiler/bundle/core-resolve-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAI/B,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM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AAI,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAiB,EAAE,EAAE;IACvD,mDAAmD;IAEnD,IAAI,OAAe,CAAC;IACpB,IAAI,QAAgB,CAAC;IAErB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,YAAY,KAAK,EAAE,IAAI,CAAC,CAAC,YAAY,IAAI,IAAI,EAAE;QAC9E,OAAO,GAAG,EAAE,CAAC;KACd;SAAM;QACL,OAAO,GAAG,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,YAAY,GAAG,CAAC;KAC/C;IAED,MAAM,QAAQ,GAAG,CAAC,CAAC,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;IAE3E,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,aAAa,KAAK,EAAE,IAAI,CAAC,CAAC,aAAa,IAAI,IAAI,EAAE;QACjF,QAAQ,GAAG,EAAE,CAAC;KACf;SAAM;QACL,QAAQ,GAAG,GAAG,QAAQ,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,aAAa,GAAG,CAAC;KAC5D;IAED,OAAO,OAAO,GAAG,QAAQ,CAAC;AAC5B,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/dev-module.d.ts b/build/compiler/bundle/dev-module.d.ts deleted file mode 100644 index ff44d80cd2e..00000000000 --- a/build/compiler/bundle/dev-module.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const compilerRequest: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, data: d.CompilerRequest) => Promise; diff --git a/build/compiler/bundle/dev-module.js b/build/compiler/bundle/dev-module.js deleted file mode 100644 index 281981201d2..00000000000 --- a/build/compiler/bundle/dev-module.js +++ /dev/null @@ -1,157 +0,0 @@ -import { generatePreamble, join, relative } from '@utils'; -import { basename, dirname } from 'path'; -import { rollup } from 'rollup'; -import { BuildContext } from '../build/build-ctx'; -import { getRollupOptions } from './bundle-output'; -import { DEV_MODULE_CACHE_BUSTER, DEV_MODULE_DIR } from './constants'; -export const compilerRequest = async (config, compilerCtx, data) => { - const results = { - path: data.path, - nodeModuleId: null, - nodeModuleVersion: null, - nodeResolvedPath: null, - cachePath: null, - cacheHit: false, - content: '', - status: 404, - }; - try { - const parsedUrl = parseDevModuleUrl(config, data.path); - Object.assign(results, parsedUrl); - if (parsedUrl.nodeModuleId) { - if (!parsedUrl.nodeModuleVersion) { - results.content = `/* invalid module version */`; - results.status = 400; - return results; - } - if (!parsedUrl.nodeResolvedPath) { - results.content = `/* invalid resolved path */`; - results.status = 400; - return results; - } - const useCache = await useDevModuleCache(config, parsedUrl.nodeResolvedPath); - let cachePath = null; - if (useCache) { - cachePath = getDevModuleCachePath(config, parsedUrl); - const cachedContent = await config.sys.readFile(cachePath); - if (typeof cachedContent === 'string') { - results.content = cachedContent; - results.cachePath = cachePath; - results.cacheHit = true; - results.status = 200; - return results; - } - } - await bundleDevModule(config, compilerCtx, parsedUrl, results); - if (results.status === 200 && useCache) { - results.cachePath = cachePath; - writeCachedFile(config, results); - } - } - else { - results.content = `/* invalid dev module */`; - results.status = 400; - return results; - } - } - catch (e) { - if (e) { - if (e instanceof Error && e.stack) { - results.content = `/*\n${e.stack}\n*/`; - } - else { - results.content = `/*\n${e}\n*/`; - } - } - results.status = 500; - } - return results; -}; -const bundleDevModule = async (config, compilerCtx, parsedUrl, results) => { - const buildCtx = new BuildContext(config, compilerCtx); - try { - const inputOpts = getRollupOptions(config, compilerCtx, buildCtx, { - id: parsedUrl.nodeModuleId, - platform: 'client', - inputs: { - index: parsedUrl.nodeResolvedPath, - }, - }); - const rollupBuild = await rollup(inputOpts); - const outputOpts = { - banner: generatePreamble(config), - format: 'es', - }; - if (parsedUrl.nodeModuleId) { - const commentPath = relative(config.rootDir, parsedUrl.nodeResolvedPath); - outputOpts.intro = `/**\n * Dev Node Module: ${parsedUrl.nodeModuleId}, v${parsedUrl.nodeModuleVersion}\n * Entry: ${commentPath}\n * DEVELOPMENT PURPOSES ONLY!!\n */`; - inputOpts.input = parsedUrl.nodeResolvedPath; - } - const r = await rollupBuild.generate(outputOpts); - if (buildCtx.hasError) { - results.status = 500; - results.content = `console.error(${JSON.stringify(buildCtx.diagnostics)})`; - } - else if (r && r.output && r.output.length > 0) { - results.content = r.output[0].code; - results.status = 200; - } - } - catch (e) { - results.status = 500; - const errorMsg = e instanceof Error ? e.stack : e + ''; - results.content = `console.error(${JSON.stringify(errorMsg)})`; - } -}; -const useDevModuleCache = async (config, p) => { - if (config.enableCache) { - for (let i = 0; i < 10; i++) { - const n = basename(p); - if (n === 'node_modules') { - return true; - } - const isSymbolicLink = await config.sys.isSymbolicLink(p); - if (isSymbolicLink) { - return false; - } - p = dirname(p); - } - } - return false; -}; -const writeCachedFile = async (config, results) => { - try { - await config.sys.createDir(config.cacheDir); - config.sys.writeFile(results.cachePath, results.content); - } - catch (e) { - console.error(e); - } -}; -const parseDevModuleUrl = (config, u) => { - const parsedUrl = { - nodeModuleId: null, - nodeModuleVersion: null, - nodeResolvedPath: null, - }; - if (u && u.includes(DEV_MODULE_DIR) && u.endsWith('.js')) { - const url = new URL(u, 'https://stenciljs.com'); - let reqPath = basename(url.pathname); - reqPath = reqPath.substring(0, reqPath.length - 3); - const splt = reqPath.split('@'); - if (splt.length === 2) { - parsedUrl.nodeModuleId = decodeURIComponent(splt[0]); - parsedUrl.nodeModuleVersion = decodeURIComponent(splt[1]); - parsedUrl.nodeResolvedPath = url.searchParams.get('p'); - if (parsedUrl.nodeResolvedPath) { - parsedUrl.nodeResolvedPath = decodeURIComponent(parsedUrl.nodeResolvedPath); - parsedUrl.nodeResolvedPath = join(config.rootDir, parsedUrl.nodeResolvedPath); - } - } - } - return parsedUrl; -}; -const getDevModuleCachePath = (config, parsedUrl) => { - return join(config.cacheDir, `dev_module_${parsedUrl.nodeModuleId}_${parsedUrl.nodeModuleVersion}_${DEV_MODULE_CACHE_BUSTER}.log`); -}; -//# sourceMappingURL=dev-module.js.map \ No newline at end of file diff --git a/build/compiler/bundle/dev-module.js.map b/build/compiler/bundle/dev-module.js.map deleted file mode 100644 index 9d37798df16..00000000000 --- a/build/compiler/bundle/dev-module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dev-module.js","sourceRoot":"","sources":["../../../src/compiler/bundle/dev-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAiB,MAAM,EAAE,MAAM,QAAQ,CAAC;AAG/C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEtE,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,MAAyB,EACzB,WAA0B,EAC1B,IAAuB,EACvB,EAAE;IACF,MAAM,OAAO,GAA8B;QACzC,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,IAAI;QACtB,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,EAAE;QACX,MAAM,EAAE,GAAG;KACZ,CAAC;IAEF,IAAI;QACF,MAAM,SAAS,GAAG,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,CAAC,MAA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AkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,SAAS,CAAC,iBAAiB,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAE1D,SAAS,CAAC,gBAAgB,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACvD,IAAI,SAAS,CAAC,gBAAgB,EAAE;gBAC9B,SAAS,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;gBAC5E,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;aAC/E;SACF;KACF;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,MAAyB,EAAE,SAA6B,EAAE,EAAE;IACzF,OAAO,IAAI,CACT,MAAM,CAAC,QAAQ,EACf,cAAc,SAAS,CAAC,YAAY,IAAI,SAAS,CAAC,iBAAiB,IAAI,uBAAuB,MAAM,CACrG,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/dev-node-module-resolve.d.ts b/build/compiler/bundle/dev-node-module-resolve.d.ts deleted file mode 100644 index 3a0e604255e..00000000000 --- a/build/compiler/bundle/dev-node-module-resolve.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { ResolveIdResult } from 'rollup'; -import type * as d from '../../declarations'; -import { InMemoryFileSystem } from '../sys/in-memory-fs'; -export declare const devNodeModuleResolveId: (config: d.ValidatedConfig, inMemoryFs: InMemoryFileSystem, resolvedId: ResolveIdResult, importee: string) => Promise; diff --git a/build/compiler/bundle/dev-node-module-resolve.js b/build/compiler/bundle/dev-node-module-resolve.js deleted file mode 100644 index 8514e55d18a..00000000000 --- a/build/compiler/bundle/dev-node-module-resolve.js +++ /dev/null @@ -1,62 +0,0 @@ -import { join, relative } from '@utils'; -import { basename, dirname } from 'path'; -import { DEV_MODULE_DIR } from './constants'; -export const devNodeModuleResolveId = async (config, inMemoryFs, resolvedId, importee) => { - if (!shouldCheckDevModule(resolvedId, importee)) { - return resolvedId; - } - if (typeof resolvedId === 'string' || !resolvedId) { - return resolvedId; - } - const resolvedPath = resolvedId.id; - const pkgPath = getPackageJsonPath(resolvedPath, importee); - if (!pkgPath) { - return resolvedId; - } - const pkgJsonStr = await inMemoryFs.readFile(pkgPath); - if (!pkgJsonStr) { - return resolvedId; - } - let pkgJsonData; - try { - pkgJsonData = JSON.parse(pkgJsonStr); - } - catch (e) { } - if (!pkgJsonData || !pkgJsonData.version) { - return resolvedId; - } - resolvedId.id = serializeDevNodeModuleUrl(config, pkgJsonData.name, pkgJsonData.version, resolvedPath); - resolvedId.external = true; - return resolvedId; -}; -const shouldCheckDevModule = (resolvedId, importee) => resolvedId && - importee && - typeof resolvedId !== 'string' && - resolvedId.id && - resolvedId.id.includes('node_modules') && - (resolvedId.id.endsWith('.js') || resolvedId.id.endsWith('.mjs')) && - !resolvedId.external && - !importee.startsWith('.') && - !importee.startsWith('/'); -const getPackageJsonPath = (resolvedPath, importee) => { - let currentPath = resolvedPath; - for (let i = 0; i < 10; i++) { - currentPath = dirname(currentPath); - const aBasename = basename(currentPath); - const upDir = dirname(currentPath); - const bBasename = basename(upDir); - if (aBasename === importee && bBasename === 'node_modules') { - return join(currentPath, 'package.json'); - } - } - return null; -}; -const serializeDevNodeModuleUrl = (config, moduleId, moduleVersion, resolvedPath) => { - resolvedPath = relative(config.rootDir, resolvedPath); - let id = `/${DEV_MODULE_DIR}/`; - id += encodeURIComponent(moduleId) + '@'; - id += encodeURIComponent(moduleVersion) + '.js'; - id += '?p=' + encodeURIComponent(resolvedPath); - return id; -}; -//# sourceMappingURL=dev-node-module-resolve.js.map \ No newline at end of file diff --git a/build/compiler/bundle/dev-node-module-resolve.js.map b/build/compiler/bundle/dev-node-module-resolve.js.map deleted file mode 100644 index a559e6e852b..00000000000 --- a/build/compiler/bundle/dev-node-module-resolve.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dev-node-module-resolve.js","sourceRoot":"","sources":["../../../src/compiler/bundle/dev-node-module-resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAyB,EACzB,UAA8B,EAC9B,UAA2B,EAC3B,QAAgB,EAChB,EAAE;IACF,IAAI,CAAC,oBAAoB,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE;QAC/C,OAAO,UAAU,CAAC;KACnB;IAED,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,CAAC,UAAU,EAAE;QACjD,OAAO,UAAU,CAAC;KACnB;IAED,MAAM,YAAY,GAAG,UAAU,CAAC,EAAE,CAAC;IAEnC,MAAM,OAAO,GAAG,kBAAkB,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IAC3D,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,UAAU,CAAC;KACnB;IAED,MAAM,UAAU,GAAG,MAAM,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACtD,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,UAAU,CAAC;KACnB;IAED,IAAI,WAA8B,CAAC;IACnC,IAAI;QACF,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KACtC;IAAC,OAAO,CAAC,EAAE,GAAE;IAEd,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE;QACxC,OAAO,UAAU,CAAC;KACnB;IAED,UAAU,CAAC,EAAE,GAAG,yBAAyB,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,EAAE,WA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oB,EACpB,EAAE;IACF,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAEtD,IAAI,EAAE,GAAG,IAAI,cAAc,GAAG,CAAC;IAC/B,EAAE,IAAI,kBAAkB,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;IACzC,EAAE,IAAI,kBAAkB,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;IAChD,EAAE,IAAI,KAAK,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC/C,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/entry-alias-ids.d.ts b/build/compiler/bundle/entry-alias-ids.d.ts deleted file mode 100644 index 249154b74eb..00000000000 --- a/build/compiler/bundle/entry-alias-ids.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export declare const STENCIL_CORE_ID = "@stencil/core"; -export declare const STENCIL_INTERNAL_ID = "@stencil/core/internal"; -export declare const STENCIL_APP_DATA_ID = "@stencil/core/internal/app-data"; -export declare const STENCIL_APP_GLOBALS_ID = "@stencil/core/internal/app-globals"; -export declare const STENCIL_HYDRATE_FACTORY_ID = "@stencil/core/hydrate-factory"; -export declare const STENCIL_INTERNAL_CLIENT_ID = "@stencil/core/internal/client"; -export declare const STENCIL_INTERNAL_CLIENT_PATCH_BROWSER_ID = "@stencil/core/internal/client/patch-browser"; -export declare const STENCIL_INTERNAL_HYDRATE_ID = "@stencil/core/internal/hydrate"; -export declare const STENCIL_MOCK_DOC_ID = "@stencil/core/mock-doc"; -export declare const APP_DATA_CONDITIONAL = "?app-data=conditional"; -export declare const LAZY_BROWSER_ENTRY_ID: string; -export declare const LAZY_EXTERNAL_ENTRY_ID: string; -export declare const USER_INDEX_ENTRY_ID = "@user-index-entrypoint"; diff --git a/build/compiler/bundle/entry-alias-ids.js b/build/compiler/bundle/entry-alias-ids.js deleted file mode 100644 index 15fedf81a7f..00000000000 --- a/build/compiler/bundle/entry-alias-ids.js +++ /dev/null @@ -1,14 +0,0 @@ -export const STENCIL_CORE_ID = '@stencil/core'; -export const STENCIL_INTERNAL_ID = '@stencil/core/internal'; -export const STENCIL_APP_DATA_ID = '@stencil/core/internal/app-data'; -export const STENCIL_APP_GLOBALS_ID = '@stencil/core/internal/app-globals'; -export const STENCIL_HYDRATE_FACTORY_ID = '@stencil/core/hydrate-factory'; -export const STENCIL_INTERNAL_CLIENT_ID = '@stencil/core/internal/client'; -export const STENCIL_INTERNAL_CLIENT_PATCH_BROWSER_ID = '@stencil/core/internal/client/patch-browser'; -export const STENCIL_INTERNAL_HYDRATE_ID = '@stencil/core/internal/hydrate'; -export const STENCIL_MOCK_DOC_ID = '@stencil/core/mock-doc'; -export const APP_DATA_CONDITIONAL = '?app-data=conditional'; -export const LAZY_BROWSER_ENTRY_ID = '@lazy-browser-entrypoint' + APP_DATA_CONDITIONAL; -export const LAZY_EXTERNAL_ENTRY_ID = '@lazy-external-entrypoint' + APP_DATA_CONDITIONAL; -export const USER_INDEX_ENTRY_ID = '@user-index-entrypoint'; -//# sourceMappingURL=entry-alias-ids.js.map \ No newline at end of file diff --git a/build/compiler/bundle/entry-alias-ids.js.map b/build/compiler/bundle/entry-alias-ids.js.map deleted file mode 100644 index 9afa54b3053..00000000000 --- a/build/compiler/bundle/entry-alias-ids.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"entry-alias-ids.js","sourceRoot":"","sources":["../../../src/compiler/bundle/entry-alias-ids.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAC/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAC5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,iCAAiC,CAAC;AACrE,MAAM,CAAC,MAAM,sBAAsB,GAAG,oCAAoC,CAAC;AAC3E,MAAM,CAAC,MAAM,0BAA0B,GAAG,+BAA+B,CAAC;AAC1E,MAAM,CAAC,MAAM,0BAA0B,GAAG,+BAA+B,CAAC;AAC1E,MAAM,CAAC,MAAM,wCAAwC,GAAG,6CAA6C,CAAC;AACtG,MAAM,CAAC,MAAM,2BAA2B,GAAG,gCAAgC,CAAC;AAC5E,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAC5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,uBAAuB,CAAC;AAC5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,0BAA0B,GAAG,oBAAoB,CAAC;AACvF,MAAM,CAAC,MAAM,sBAAsB,GAAG,2BAA2B,GAAG,oBAAoB,CAAC;AACzF,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/ext-format-plugin.d.ts b/build/compiler/bundle/ext-format-plugin.d.ts deleted file mode 100644 index 9f81387d58a..00000000000 --- a/build/compiler/bundle/ext-format-plugin.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from 'rollup'; -import type * as d from '../../declarations'; -export declare const extFormatPlugin: (config: d.ValidatedConfig) => Plugin; diff --git a/build/compiler/bundle/ext-format-plugin.js b/build/compiler/bundle/ext-format-plugin.js deleted file mode 100644 index 5702f3fa7ee..00000000000 --- a/build/compiler/bundle/ext-format-plugin.js +++ /dev/null @@ -1,52 +0,0 @@ -import { createJsVarName, normalizeFsPathQuery } from '@utils'; -import { basename } from 'path'; -export const extFormatPlugin = (config) => { - return { - name: 'extFormatPlugin', - transform(code, importPath) { - if (/\0/.test(importPath)) { - return null; - } - const { ext, filePath, format } = normalizeFsPathQuery(importPath); - // ?format= param takes precedence before file extension - switch (format) { - case 'url': - return { code: formatUrl(config, this, code, filePath, ext), map: null }; - case 'text': - return { code: formatText(code, filePath), map: null }; - } - // didn't provide a ?format= param - // check if it's a known extension we should format - if (ext != null && FORMAT_TEXT_EXTS.includes(ext)) { - return { code: formatText(code, filePath), map: null }; - } - if (ext != null && FORMAT_URL_MIME[ext]) { - return { code: formatUrl(config, this, code, filePath, ext), map: null }; - } - return null; - }, - }; -}; -const FORMAT_TEXT_EXTS = ['txt', 'frag', 'vert']; -const FORMAT_URL_MIME = { - svg: 'image/svg+xml', -}; -const DATAURL_MAX_IMAGE_SIZE = 4 * 1024; // 4KiB -const formatText = (code, filePath) => { - const varName = createJsVarName(basename(filePath)); - return `const ${varName} = ${JSON.stringify(code)};export default ${varName};`; -}; -const formatUrl = (config, pluginCtx, code, filePath, ext) => { - const mime = ext != null ? FORMAT_URL_MIME[ext] : null; - if (!mime) { - pluginCtx.warn(`Unsupported url format for "${ext}" extension.`); - return formatText('', filePath); - } - const varName = createJsVarName(basename(filePath)); - const base64 = config.sys.encodeToBase64(code); - if (config.devMode && base64.length > DATAURL_MAX_IMAGE_SIZE) { - pluginCtx.warn(`Importing large files will bloat your bundle size, please use external assets instead.`); - } - return `const ${varName} = 'data:${mime};base64,${base64}';export default ${varName};`; -}; -//# sourceMappingURL=ext-format-plugin.js.map \ No newline at end of file diff --git a/build/compiler/bundle/ext-format-plugin.js.map b/build/compiler/bundle/ext-format-plugin.js.map deleted file mode 100644 index 9c11bf7b10b..00000000000 --- a/build/compiler/bundle/ext-format-plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ext-format-plugin.js","sourceRoot":"","sources":["../../../src/compiler/bundle/ext-format-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAKhC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAyB,EAAU,EAAE;IACnE,OAAO;QACL,IAAI,EAAE,iBAAiB;QAEvB,SAAS,CAAC,IAAY,EAAE,UAAkB;YACxC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;gBACzB,OAAO,IAAI,CAAC;aACb;YAED,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,MA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AO,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,OAAO,GAAG,CAAC;AACjF,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAChB,MAAyB,EACzB,SAAiC,EACjC,IAAY,EACZ,QAAgB,EAChB,GAAkB,EAClB,EAAE;IACF,MAAM,IAAI,GAAG,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACvD,IAAI,CAAC,IAAI,EAAE;QACT,SAAS,CAAC,IAAI,CAAC,+BAA+B,GAAG,cAAc,CAAC,CAAC;QACjE,OAAO,UAAU,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;KACjC;IAED,MAAM,OAAO,GAAG,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAC/C,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,GAAG,sBAAsB,EAAE;QAC5D,SAAS,CAAC,IAAI,CAAC,wFAAwF,CAAC,CAAC;KAC1G;IAED,OAAO,SAAS,OAAO,YAAY,IAAI,WAAW,MAAM,oBAAoB,OAAO,GAAG,CAAC;AACzF,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/ext-transforms-plugin.d.ts b/build/compiler/bundle/ext-transforms-plugin.d.ts deleted file mode 100644 index 1a29cda0775..00000000000 --- a/build/compiler/bundle/ext-transforms-plugin.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { Plugin } from 'rollup'; -import type * as d from '../../declarations'; -import type { BundleOptions } from './bundle-interface'; -/** - * A Rollup plugin which bundles up some transformation of CSS imports as well - * as writing some files to disk for the `DIST_COLLECTION` output target. - * - * @param config a user-supplied configuration - * @param compilerCtx the current compiler context - * @param buildCtx the current build context - * @param bundleOpts bundle options for Rollup - * @returns a Rollup plugin which carries out the necessary work - */ -export declare const extTransformsPlugin: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx, bundleOpts: BundleOptions) => Plugin; diff --git a/build/compiler/bundle/ext-transforms-plugin.js b/build/compiler/bundle/ext-transforms-plugin.js deleted file mode 100644 index 27c30922b98..00000000000 --- a/build/compiler/bundle/ext-transforms-plugin.js +++ /dev/null @@ -1,124 +0,0 @@ -import { hasError, isOutputTargetDistCollection, join, normalizeFsPath, relative } from '@utils'; -import { runPluginTransformsEsmImports } from '../plugin/plugin'; -import { parseImportPath } from '../transformers/stencil-import-path'; -/** - * A Rollup plugin which bundles up some transformation of CSS imports as well - * as writing some files to disk for the `DIST_COLLECTION` output target. - * - * @param config a user-supplied configuration - * @param compilerCtx the current compiler context - * @param buildCtx the current build context - * @param bundleOpts bundle options for Rollup - * @returns a Rollup plugin which carries out the necessary work - */ -export const extTransformsPlugin = (config, compilerCtx, buildCtx, bundleOpts) => { - return { - name: 'extTransformsPlugin', - /** - * A custom function targeting the `transform` build hook in Rollup. See here for details: - * https://rollupjs.org/guide/en/#transform - * - * Here we are ignoring the first argument (which contains the module's source code) and - * only looking at the `id` argument. We use that `id` to get information about the module - * in question from disk ourselves so that we can then do some transformations on it. - * - * @param _ an unused parameter (normally the code for a given module) - * @param id the id of a module - * @returns metadata for Rollup or null if no transformation should be done - */ - async transform(_, id) { - var _a, _b; - if (/\0/.test(id)) { - return null; - } - // The `id` here was possibly previously updated using - // `serializeImportPath` to annotate the filepath with various metadata - // serialized to query-params. If that was done for this particular `id` - // then the `data` prop will not be null. - const { data } = parseImportPath(id); - if (data != null) { - let cmp = undefined; - const filePath = normalizeFsPath(id); - const code = await compilerCtx.fs.readFile(filePath); - if (typeof code !== 'string') { - return null; - } - const pluginTransforms = await runPluginTransformsEsmImports(config, compilerCtx, buildCtx, code, filePath); - // We need to check whether the current build is a dev-mode watch build w/ HMR enabled in - // order to know how we'll want to set `commentOriginalSelector` (below). If we are doing - // a hydrate build we need to set this to `true` because commenting-out selectors is what - // gives us support for scoped CSS w/ hydrated components (we don't support shadow DOM and - // styling via that route for them). However, we don't want to comment selectors in dev - // mode when using HMR in the browser, since there we _do_ support putting stylesheets into - // the shadow DOM and commenting out e.g. the `:host` selector in those stylesheets will - // break components' CSS when an HMR update is sent to the browser. - // - // See https://github.com/ionic-team/stencil/issues/3461 for details - const isDevWatchHMRBuild = config.flags.watch && - config.flags.dev && - config.flags.serve && - ((_b = (_a = config.devServer) === null || _a === void 0 ? void 0 : _a.reloadStrategy) !== null && _b !== void 0 ? _b : null) === 'hmr'; - const commentOriginalSelector = bundleOpts.platform === 'hydrate' && data.encapsulation === 'shadow' && !isDevWatchHMRBuild; - if (data.tag) { - cmp = buildCtx.components.find((c) => c.tagName === data.tag); - const moduleFile = cmp && compilerCtx.moduleMap.get(cmp.sourceFilePath); - if (moduleFile) { - const collectionDirs = config.outputTargets.filter(isOutputTargetDistCollection); - const relPath = relative(config.srcDir, pluginTransforms.id); - // If we found a `moduleFile` in the module map above then we - // should write the transformed CSS file (found in the return value - // of `runPluginTransformsEsmImports`, above) to disk. - await Promise.all(collectionDirs.map(async (outputTarget) => { - const collectionPath = join(outputTarget.collectionDir, relPath); - await compilerCtx.fs.writeFile(collectionPath, pluginTransforms.code); - })); - } - } - const cssTransformResults = await compilerCtx.worker.transformCssToEsm({ - file: pluginTransforms.id, - input: pluginTransforms.code, - tag: data.tag, - encapsulation: data.encapsulation, - mode: data.mode, - commentOriginalSelector, - sourceMap: config.sourceMap, - minify: config.minifyCss, - autoprefixer: config.autoprefixCss, - docs: config.buildDocs, - }); - // Set style docs - if (cmp) { - cmp.styleDocs = cssTransformResults.styleDocs; - } - // Track dependencies - for (const dep of pluginTransforms.dependencies) { - this.addWatchFile(dep); - compilerCtx.addWatchFile(dep); - } - buildCtx.diagnostics.push(...pluginTransforms.diagnostics); - buildCtx.diagnostics.push(...cssTransformResults.diagnostics); - const didError = hasError(cssTransformResults.diagnostics) || hasError(pluginTransforms.diagnostics); - if (didError) { - this.error('Plugin CSS transform error'); - } - const hasUpdatedStyle = buildCtx.stylesUpdated.some((s) => { - return s.styleTag === data.tag && s.styleMode === data.mode && s.styleText === cssTransformResults.styleText; - }); - if (!hasUpdatedStyle) { - buildCtx.stylesUpdated.push({ - styleTag: data.tag, - styleMode: data.mode, - styleText: cssTransformResults.styleText, - }); - } - return { - code: cssTransformResults.output, - map: cssTransformResults.map, - moduleSideEffects: false, - }; - } - return null; - }, - }; -}; -//# sourceMappingURL=ext-transforms-plugin.js.map \ No newline at end of file diff --git a/build/compiler/bundle/ext-transforms-plugin.js.map b/build/compiler/bundle/ext-transforms-plugin.js.map deleted file mode 100644 index 2466b3aad5b..00000000000 --- a/build/compiler/bundle/ext-transforms-plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ext-transforms-plugin.js","sourceRoot":"","sources":["../../../src/compiler/bundle/ext-transforms-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,4BAA4B,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIjG,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAGtE;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,MAAyB,EACzB,WAA0B,EAC1B,QAAoB,EACpB,UAAyB,EACjB,EAAE;IACV,OAAO;QACL,IAAI,EAAE,qBAAqB;QAE3B;;;;;;;;;;;WAWG;QACH,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE;;YACnB,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;gBACjB,OAAO,IAAI,CAAC;aACb;YAED,sDAAsD;YACtD,uEAAuE;YACvE,wEAAwE;YACxE,yCAAyC;YACzC,MAAM,EAAE,IAAI,EAAE,GAAG,eAAe,CAAC,E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AAC,YAAY,CAAC,GAAG,CAAC,CAAC;iBAC/B;gBAED,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;gBAC3D,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;gBAC9D,MAAM,QAAQ,GAAG,QAAQ,CAAC,mBAAmB,CAAC,WAAW,CAAC,IAAI,QAAQ,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;gBACrG,IAAI,QAAQ,EAAE;oBACZ,IAAI,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;iBAC1C;gBAED,MAAM,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;oBACxD,OAAO,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,KAAK,mBAAmB,CAAC,SAAS,CAAC;gBAC/G,CAAC,CAAC,CAAC;gBAEH,IAAI,CAAC,eAAe,EAAE;oBACpB,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC;wBAC1B,QAAQ,EAAE,IAAI,CAAC,GAAG;wBAClB,SAAS,EAAE,IAAI,CAAC,IAAI;wBACpB,SAAS,EAAE,mBAAmB,CAAC,SAAS;qBACzC,CAAC,CAAC;iBACJ;gBAED,OAAO;oBACL,IAAI,EAAE,mBAAmB,CAAC,MAAM;oBAChC,GAAG,EAAE,mBAAmB,CAAC,GAAG;oBAC5B,iBAAiB,EAAE,KAAK;iBACzB,CAAC;aACH;YAED,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/file-load-plugin.d.ts b/build/compiler/bundle/file-load-plugin.d.ts deleted file mode 100644 index b24420413ee..00000000000 --- a/build/compiler/bundle/file-load-plugin.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from 'rollup'; -import { InMemoryFileSystem } from '../sys/in-memory-fs'; -export declare const fileLoadPlugin: (fs: InMemoryFileSystem) => Plugin; diff --git a/build/compiler/bundle/file-load-plugin.js b/build/compiler/bundle/file-load-plugin.js deleted file mode 100644 index bde3e59ea33..00000000000 --- a/build/compiler/bundle/file-load-plugin.js +++ /dev/null @@ -1,14 +0,0 @@ -import { normalizeFsPath } from '@utils'; -export const fileLoadPlugin = (fs) => { - return { - name: 'fileLoadPlugin', - load(id) { - const fsFilePath = normalizeFsPath(id); - if (id.endsWith('.d.ts')) { - return ''; - } - return fs.readFile(fsFilePath); - }, - }; -}; -//# sourceMappingURL=file-load-plugin.js.map \ No newline at end of file diff --git a/build/compiler/bundle/file-load-plugin.js.map b/build/compiler/bundle/file-load-plugin.js.map deleted file mode 100644 index fc952e0f73b..00000000000 --- a/build/compiler/bundle/file-load-plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-load-plugin.js","sourceRoot":"","sources":["../../../src/compiler/bundle/file-load-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAKzC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAsB,EAAU,EAAE;IAC/D,OAAO;QACL,IAAI,EAAE,gBAAgB;QAEtB,IAAI,CAAC,EAAE;YACL,MAAM,UAAU,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC;YACvC,IAAI,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBACxB,OAAO,EAAE,CAAC;aACX;YACD,OAAO,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QACjC,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/loader-plugin.d.ts b/build/compiler/bundle/loader-plugin.d.ts deleted file mode 100644 index 1c8ab8d9aa8..00000000000 --- a/build/compiler/bundle/loader-plugin.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { Plugin } from 'rollup'; -/** - * Rollup plugin that aids in resolving the entry points (1 or more files) for a Stencil project. For example, a project - * using the `dist-custom-elements` output target may have a single 'entry point' for each file containing a component. - * Each of those files will be independently resolved and loaded by this plugin for further processing by Rollup later - * in the bundling process. - * - * @param entries the Stencil project files to process. It should be noted that the keys in this object may not - * necessarily be an absolute or relative path to a file, but may be a Rollup Virtual Module (which begin with \0). - * @returns the rollup plugin that loads and process a Stencil project's entry points - */ -export declare const loaderPlugin: (entries?: { - [id: string]: string; -}) => Plugin; diff --git a/build/compiler/bundle/loader-plugin.js b/build/compiler/bundle/loader-plugin.js deleted file mode 100644 index 2ddac0e91d7..00000000000 --- a/build/compiler/bundle/loader-plugin.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Rollup plugin that aids in resolving the entry points (1 or more files) for a Stencil project. For example, a project - * using the `dist-custom-elements` output target may have a single 'entry point' for each file containing a component. - * Each of those files will be independently resolved and loaded by this plugin for further processing by Rollup later - * in the bundling process. - * - * @param entries the Stencil project files to process. It should be noted that the keys in this object may not - * necessarily be an absolute or relative path to a file, but may be a Rollup Virtual Module (which begin with \0). - * @returns the rollup plugin that loads and process a Stencil project's entry points - */ -export const loaderPlugin = (entries = {}) => { - return { - name: 'stencilLoaderPlugin', - /** - * A rollup build hook for resolving the imports of individual Stencil project files. This hook only resolves - * modules that are contained in the plugin's `entries` argument. [Source](https://rollupjs.org/guide/en/#resolveid) - * @param id the importee to resolve - * @returns a string that resolves an import to some id, null otherwise - */ - resolveId(id) { - if (id in entries) { - return { - id, - }; - } - return null; - }, - /** - * A rollup build hook for loading individual Stencil project files [Source](https://rollupjs.org/guide/en/#load) - * @param id the path of the module to load. It should be noted that the keys in this object may not necessarily - * be an absolute or relative path to a file, but may be a Rollup Virtual Module. - * @returns the module matched, null otherwise - */ - load(id) { - if (id in entries) { - return entries[id]; - } - return null; - }, - }; -}; -//# sourceMappingURL=loader-plugin.js.map \ No newline at end of file diff --git a/build/compiler/bundle/loader-plugin.js.map b/build/compiler/bundle/loader-plugin.js.map deleted file mode 100644 index 1113cd029a5..00000000000 --- a/build/compiler/bundle/loader-plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"loader-plugin.js","sourceRoot":"","sources":["../../../src/compiler/bundle/loader-plugin.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,UAAoC,EAAE,EAAU,EAAE;IAC7E,OAAO;QACL,IAAI,EAAE,qBAAqB;QAC3B;;;;;WAKG;QACH,SAAS,CAAC,EAAU;YAClB,IAAI,EAAE,IAAI,OAAO,EAAE;gBACjB,OAAO;oBACL,EAAE;iBACH,CAAC;aACH;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD;;;;;WAKG;QACH,IAAI,CAAC,EAAU;YACb,IAAI,EAAE,IAAI,OAAO,EAAE;gBACjB,OAAO,OAAO,CAAC,EAAE,CAAC,CAAC;aACpB;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/plugin-helper.d.ts b/build/compiler/bundle/plugin-helper.d.ts deleted file mode 100644 index b3114e699df..00000000000 --- a/build/compiler/bundle/plugin-helper.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type * as d from '../../declarations'; -export declare const pluginHelper: (config: d.ValidatedConfig, builtCtx: d.BuildCtx, platform: string) => { - name: string; - resolveId(importee: string, importer: string): null; -}; diff --git a/build/compiler/bundle/plugin-helper.js b/build/compiler/bundle/plugin-helper.js deleted file mode 100644 index 64a42016ac4..00000000000 --- a/build/compiler/bundle/plugin-helper.js +++ /dev/null @@ -1,69 +0,0 @@ -import { buildError, relative } from '@utils'; -export const pluginHelper = (config, builtCtx, platform) => { - return { - name: 'pluginHelper', - resolveId(importee, importer) { - if (/\0/.test(importee)) { - // ignore IDs with null character, these belong to other plugins - return null; - } - if (importee.endsWith('/')) { - importee = importee.slice(0, -1); - } - if (builtIns.has(importee)) { - let fromMsg = ''; - if (importer) { - fromMsg = ` from ${relative(config.rootDir, importer)}`; - } - const diagnostic = buildError(builtCtx.diagnostics); - diagnostic.header = `Node Polyfills Required`; - diagnostic.messageText = `For the import "${importee}" to be bundled${fromMsg}, ensure the "rollup-plugin-node-polyfills" plugin is installed and added to the stencil config plugins (${platform}). Please see the bundling docs for more information. - Further information: https://stenciljs.com/docs/module-bundling`; - } - return null; - }, - }; -}; -const builtIns = new Set([ - 'child_process', - 'cluster', - 'dgram', - 'dns', - 'module', - 'net', - 'readline', - 'repl', - 'tls', - 'assert', - 'console', - 'constants', - 'domain', - 'events', - 'path', - 'punycode', - 'querystring', - '_stream_duplex', - '_stream_passthrough', - '_stream_readable', - '_stream_writable', - '_stream_transform', - 'string_decoder', - 'sys', - 'tty', - 'crypto', - 'fs', - 'Buffer', - 'buffer', - 'global', - 'http', - 'https', - 'os', - 'process', - 'stream', - 'timers', - 'url', - 'util', - 'vm', - 'zlib', -]); -//# sourceMappingURL=plugin-helper.js.map \ No newline at end of file diff --git a/build/compiler/bundle/plugin-helper.js.map b/build/compiler/bundle/plugin-helper.js.map deleted file mode 100644 index f0b26c95dff..00000000000 --- a/build/compiler/bundle/plugin-helper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"plugin-helper.js","sourceRoot":"","sources":["../../../src/compiler/bundle/plugin-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAI9C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAyB,EAAE,QAAoB,EAAE,QAAgB,EAAE,EAAE;IAChG,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,SAAS,CAAC,QAAgB,EAAE,QAAgB;YAC1C,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;gBACvB,gEAAgE;g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ugin.d.ts b/build/compiler/bundle/server-plugin.d.ts deleted file mode 100644 index 2c6d1f3d776..00000000000 --- a/build/compiler/bundle/server-plugin.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from 'rollup'; -import type * as d from '../../declarations'; -export declare const serverPlugin: (config: d.ValidatedConfig, platform: string) => Plugin; diff --git a/build/compiler/bundle/server-plugin.js b/build/compiler/bundle/server-plugin.js deleted file mode 100644 index 00b229300bd..00000000000 --- a/build/compiler/bundle/server-plugin.js +++ /dev/null @@ -1,59 +0,0 @@ -import { isOutputTargetHydrate, isString, normalizeFsPath } from '@utils'; -import { isAbsolute } from 'path'; -export const serverPlugin = (config, platform) => { - const isHydrateBundle = platform === 'hydrate'; - const serverVarid = `@removed-server-code`; - const isServerOnlyModule = (id) => { - if (isString(id)) { - id = normalizeFsPath(id); - return id.includes('.server/') || id.endsWith('.server'); - } - return false; - }; - const externals = isHydrateBundle - ? config.outputTargets.filter(isOutputTargetHydrate).flatMap((o) => o.external) - : []; - return { - name: 'serverPlugin', - resolveId(id, importer) { - if (id === serverVarid) { - return id; - } - if (isHydrateBundle) { - if (externals.includes(id)) { - // don't attempt to bundle node builtins for the hydrate bundle - return { - id, - external: true, - }; - } - if (isServerOnlyModule(importer) && !id.startsWith('.') && !isAbsolute(id)) { - // do not bundle if the importer is a server-only module - // and the module it is importing is a node module - return { - id, - external: true, - }; - } - } - else { - if (isServerOnlyModule(id)) { - // any path that has .server in it shouldn't actually - // be bundled in the web build, only the hydrate build - return serverVarid; - } - } - return null; - }, - load(id) { - if (id === serverVarid) { - return { - code: 'export default {};', - syntheticNamedExports: true, - }; - } - return null; - }, - }; -}; -//# sourceMappingURL=server-plugin.js.map \ No newline at end of file diff --git a/build/compiler/bundle/server-plugin.js.map b/build/compiler/bundle/server-plugin.js.map deleted file mode 100644 index fe64af3aee7..00000000000 --- a/build/compiler/bundle/server-plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"server-plugin.js","sourceR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AI,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;oBAC1E,wDAAwD;oBACxD,kDAAkD;oBAClD,OAAO;wBACL,EAAE;wBACF,QAAQ,EAAE,IAAI;qBACf,CAAC;iBACH;aACF;iBAAM;gBACL,IAAI,kBAAkB,CAAC,EAAE,CAAC,EAAE;oBAC1B,qDAAqD;oBACrD,sDAAsD;oBACtD,OAAO,WAAW,CAAC;iBACpB;aACF;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,CAAC,EAAE;YACL,IAAI,EAAE,KAAK,WAAW,EAAE;gBACtB,OAAO;oBACL,IAAI,EAAE,oBAAoB;oBAC1B,qBAAqB,EAAE,IAAI;iBAC5B,CAAC;aACH;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/test/core-resolve-plugin.spec.d.ts b/build/compiler/bundle/test/core-resolve-plugin.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/bundle/test/core-resolve-plugin.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/bundle/test/core-resolve-plugin.spec.js b/build/compiler/bundle/test/core-resolve-plugin.spec.js deleted file mode 100644 index 6642766f790..00000000000 --- a/build/compiler/bundle/test/core-resolve-plugin.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -import { mockValidatedConfig } from '@stencil/core/testing'; -import { createSystem } from '../../../compiler/sys/stencil-sys'; -import { getHydratedFlagHead, getStencilInternalModule } from '../core-resolve-plugin'; -describe('core resolve plugin', () => { - const config = mockValidatedConfig({ - rootDir: '/', - sys: createSystem(), - }); - it('http localhost with port url path', () => { - const compilerExe = 'http://localhost:3333/@stencil/core/compiler/stencil.js?v=1.2.3'; - const internalModule = 'hydrate/index.js'; - const m = getStencilInternalModule(config, compilerExe, internalModule); - expect(m).toBe('/node_modules/@stencil/core/internal/hydrate/index.js'); - }); - it('node path', () => { - const compilerExe = '/Users/me/node_modules/stencil/compiler/stencil.js'; - const internalModule = 'client/index.js'; - const m = getStencilInternalModule(config, compilerExe, internalModule); - expect(m).toBe('/Users/me/node_modules/stencil/internal/client/index.js'); - }); - it('should not set initialValue', () => { - const o = getHydratedFlagHead({ - name: 'yup', - selector: 'class', - property: 'display', - initialValue: null, - hydratedValue: 'block', - }); - expect(o).toBe(`.yup{display:block}`); - }); - it('should not set hydratedValue', () => { - const o = getHydratedFlagHead({ - name: 'yup', - selector: 'class', - property: 'display', - initialValue: 'none', - hydratedValue: null, - }); - expect(o).toBe(`{display:none}`); - }); - it('should set class selector', () => { - const o = getHydratedFlagHead({ - name: 'yup', - selector: 'class', - property: 'display', - initialValue: 'none', - hydratedValue: 'block', - }); - expect(o).toBe(`{display:none}.yup{display:block}`); - }); - it('should set attribute selector', () => { - const o = getHydratedFlagHead({ - name: 'yup', - selector: 'attribute', - property: 'display', - initialValue: 'none', - hydratedValue: 'block', - }); - expect(o).toBe(`{display:none}[yup]{display:block}`); - }); -}); -//# sourceMappingURL=core-resolve-plugin.spec.js.map \ No newline at end of file diff --git a/build/compiler/bundle/test/core-resolve-plugin.spec.js.map b/build/compiler/bundle/test/core-resolve-plugin.spec.js.map deleted file mode 100644 index b3b8b78bfb0..00000000000 --- a/build/compiler/bundle/test/core-resolve-plugin.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"core-resolve-plugin.spec.js","sourceRoot":"","sources":["../../../../src/compiler/bundle/test/core-resolve-plugin.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvF,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,MAAM,MAAM,GAAsB,mBAAmB,CAAC;QACpD,OAAO,EAA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C,gBAAgB,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,CAAC,GAAG,mBAAmB,CAAC;YAC5B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE,SAAS;YACnB,YAAY,EAAE,MAAM;YACpB,aAAa,EAAE,OAAO;SACvB,CAAC,CAAC;QACH,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,CAAC,GAAG,mBAAmB,CAAC;YAC5B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,WAAW;YACrB,QAAQ,EAAE,SAAS;YACnB,YAAY,EAAE,MAAM;YACpB,aAAa,EAAE,OAAO;SACvB,CAAC,CAAC;QACH,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/test/ext-transforms-plugin.spec.d.ts b/build/compiler/bundle/test/ext-transforms-plugin.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/bundle/test/ext-transforms-plugin.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/bundle/test/ext-transforms-plugin.spec.js b/build/compiler/bundle/test/ext-transforms-plugin.spec.js deleted file mode 100644 index 60f085f3916..00000000000 --- a/build/compiler/bundle/test/ext-transforms-plugin.spec.js +++ /dev/null @@ -1,113 +0,0 @@ -import { mockBuildCtx, mockCompilerCtx, mockModule, mockValidatedConfig } from '@stencil/core/testing'; -import { normalizePath } from '@utils'; -import * as importPathLib from '../../transformers/stencil-import-path'; -import { stubComponentCompilerMeta } from '../../types/tests/ComponentCompilerMeta.stub'; -import { extTransformsPlugin } from '../ext-transforms-plugin'; -describe('extTransformsPlugin', () => { - function setup(bundleOptsOverrides = {}) { - const config = mockValidatedConfig({ - plugins: [], - outputTargets: [ - { - type: 'dist-collection', - dir: 'dist/', - collectionDir: 'dist/collectionDir', - }, - ], - srcDir: '/some/stubbed/path', - }); - const compilerCtx = mockCompilerCtx(config); - const buildCtx = mockBuildCtx(config, compilerCtx); - const compilerComponentMeta = stubComponentCompilerMeta({ - tagName: 'my-component', - componentClassName: 'MyComponent', - }); - buildCtx.components = [compilerComponentMeta]; - compilerCtx.moduleMap.set(compilerComponentMeta.sourceFilePath, mockModule({ - cmps: [compilerComponentMeta], - })); - const bundleOpts = { - id: 'test-bundle', - platform: 'client', - inputs: {}, - ...bundleOptsOverrides, - }; - const cssText = ':host { text: pink; }'; - // mock out the read for our CSS - jest.spyOn(compilerCtx.fs, 'readFile').mockResolvedValue(cssText); - // mock out compilerCtx.worker.transformCssToEsm because 1) we want to - // test what arguments are passed to it and 2) calling it un-mocked causes - // the infamous autoprefixer-spew-issue :( - const transformCssToEsmSpy = jest.spyOn(compilerCtx.worker, 'transformCssToEsm').mockResolvedValue({ - styleText: cssText, - output: cssText, - map: null, - diagnostics: [], - imports: [], - defaultVarName: 'foo', - styleDocs: [], - }); - const writeFileSpy = jest.spyOn(compilerCtx.fs, 'writeFile'); - return { - plugin: extTransformsPlugin(config, compilerCtx, buildCtx, bundleOpts), - config, - compilerCtx, - buildCtx, - bundleOpts, - writeFileSpy, - transformCssToEsmSpy, - cssText, - }; - } - describe('transform function', () => { - it('should set name', () => { - expect(setup().plugin.name).toBe('extTransformsPlugin'); - }); - it('should return early if no data can be gleaned from the id', async () => { - const { plugin } = setup(); - // @ts-ignore we're testing something which shouldn't normally happen, - // but might if an argument of the wrong type were passed as `id` - const parseSpy = jest.spyOn(importPathLib, 'parseImportPath').mockReturnValue({ data: null }); - // @ts-ignore the Rollup plugins expect to be called in a Rollup context - expect(await plugin.transform('asdf', 'foo.css')).toBe(null); - parseSpy.mockRestore(); - }); - it('should write CSS files if associated with a tag', async () => { - const { plugin, writeFileSpy } = setup(); - // @ts-ignore the Rollup plugins expect to be called in a Rollup context - await plugin.transform('asdf', '/some/stubbed/path/foo.css?tag=my-component'); - const [path, css] = writeFileSpy.mock.calls[0]; - expect(normalizePath(path)).toBe('./dist/collectionDir/foo.css'); - expect(css).toBe(':host { text: pink; }'); - }); - describe('passing `commentOriginalSelector` to `transformCssToEsm`', () => { - it.each([ - [false, 'tag=my-component&encapsulation=scoped'], - [true, 'tag=my-component&encapsulation=shadow'], - [false, 'tag=my-component'], - ])('should pass true if %p and hydrate', async (expectation, queryParams) => { - const { plugin, transformCssToEsmSpy } = setup({ platform: 'hydrate' }); - // @ts-ignore the Rollup plugins expect to be called in a Rollup context - await plugin.transform('asdf', `/some/stubbed/path/foo.css?${queryParams}`); - expect(transformCssToEsmSpy.mock.calls[0][0].commentOriginalSelector).toBe(expectation); - }); - it('should pass false if shadow, hydrate, but using HMR in dev watch mode', async () => { - const { plugin, transformCssToEsmSpy, config } = setup({ platform: 'hydrate' }); - config.flags.watch = true; - config.flags.dev = true; - config.flags.serve = true; - config.devServer = { reloadStrategy: 'hmr' }; - // @ts-ignore the Rollup plugins expect to be called in a Rollup context - await plugin.transform('asdf', '/some/stubbed/path/foo.css?tag=my-component&encapsulation=shadow'); - expect(transformCssToEsmSpy.mock.calls[0][0].commentOriginalSelector).toBe(false); - }); - it.each(['tag=my-component&encapsulation=scoped', 'tag=my-component&encapsulation=shadow', 'tag=my-component'])('should pass false if %p without hydrate', async (queryParams) => { - const { plugin, transformCssToEsmSpy } = setup(); - // @ts-ignore the Rollup plugins expect to be called in a Rollup context - await plugin.transform('asdf', `/some/stubbed/path/foo.css?${queryParams}`); - expect(transformCssToEsmSpy.mock.calls[0][0].commentOriginalSelector).toBe(false); - }); - }); - }); -}); -//# sourceMappingURL=ext-transforms-plugin.spec.js.map \ No newline at end of file diff --git a/build/compiler/bundle/test/ext-transforms-plugin.spec.js.map b/build/compiler/bundle/test/ext-transforms-plugin.spec.js.map deleted file mode 100644 index c70620f2198..00000000000 --- a/build/compiler/bundle/test/ext-transforms-plugin.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ext-transforms-plugin.spec.js","sourceRoot":"","sources":["../../../../src/compiler/bundle/test/ext-transforms-plugin.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvG,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,KAAK,aAAa,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,SAAS,KAAK,CAAC,sBAA8C,EAAE;QAC7D,MAAM,MAAM,GAAG,mBAAmB,CAAC;YACjC,OAAO,EAAE,EAAE;YACX,aAAa,EAAE;gBACb;oBACE,IAAI,EAAE,iBAAiB;oBACvB,GAAG,EAAE,OAAO;oBACZ,aAAa,EAAE,oBAAoB;iBACpC;aACF;YACD,MAAM,EAAE,oBAAoB;SAC7B,CAAC,CAAC;QACH,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QAC5C,MAAM,QAAQ,GAAG,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAEnD,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;YACtD,OAAO,EAAE,cAAc;YACvB,kBAAkB,EAAE,aAAa;SAClC,CAAC,CAAC;QAEH,QAAQ,CAAC,UAAU,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAE9C,WAAW,CAAC,SAAS,CAAC,GAAG,CACvB,qBAAqB,CAAC,cAAc,EACpC,UAAU,CAAC;YACT,IAAI,EAAE,CAAC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AE,8BAA8B,WAAW,EAAE,CAAC,CAAC;gBAC5E,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACpF,CAAC,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/typescript-plugin.d.ts b/build/compiler/bundle/typescript-plugin.d.ts deleted file mode 100644 index b0293110629..00000000000 --- a/build/compiler/bundle/typescript-plugin.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { Plugin } from 'rollup'; -import type * as d from '../../declarations'; -import type { BundleOptions } from './bundle-interface'; -/** - * Rollup plugin that aids in resolving the TypeScript files and performing the transpilation step. - * @param compilerCtx the current compiler context - * @param bundleOpts Rollup bundling options to apply during TypeScript compilation - * @param config the Stencil configuration for the project - * @returns the rollup plugin for handling TypeScript files. - */ -export declare const typescriptPlugin: (compilerCtx: d.CompilerCtx, bundleOpts: BundleOptions, config: d.ValidatedConfig) => Plugin; -export declare const resolveIdWithTypeScript: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx) => Plugin; diff --git a/build/compiler/bundle/typescript-plugin.js b/build/compiler/bundle/typescript-plugin.js deleted file mode 100644 index a33a5cb533a..00000000000 --- a/build/compiler/bundle/typescript-plugin.js +++ /dev/null @@ -1,85 +0,0 @@ -import { isString, normalizeFsPath } from '@utils'; -import { basename, isAbsolute } from 'path'; -import ts from 'typescript'; -import { tsResolveModuleName } from '../sys/typescript/typescript-resolve-module'; -import { getModule } from '../transpile/transpiled-module'; -/** - * Rollup plugin that aids in resolving the TypeScript files and performing the transpilation step. - * @param compilerCtx the current compiler context - * @param bundleOpts Rollup bundling options to apply during TypeScript compilation - * @param config the Stencil configuration for the project - * @returns the rollup plugin for handling TypeScript files. - */ -export const typescriptPlugin = (compilerCtx, bundleOpts, config) => { - return { - name: `${bundleOpts.id}TypescriptPlugin`, - /** - * A rollup build hook for loading TypeScript files and their associated source maps (if they exist). - * [Source](https://rollupjs.org/guide/en/#load) - * @param id the path of the file to load - * @returns the module matched (with its sourcemap if it exists), null otherwise - */ - load(id) { - if (isAbsolute(id)) { - const fsFilePath = normalizeFsPath(id); - const module = getModule(compilerCtx, fsFilePath); - if (module) { - if (!module.sourceMapFileText) { - return { code: module.staticSourceFileText, map: null }; - } - const sourceMap = JSON.parse(module.sourceMapFileText); - sourceMap.sources = sourceMap.sources.map((src) => basename(src)); - return { code: module.staticSourceFileText, map: sourceMap }; - } - } - return null; - }, - /** - * Performs TypeScript compilation/transpilation, including applying any transformations against the Abstract Syntax - * Tree (AST) specific to stencil - * @param _code the code to modify, unused - * @param id module's identifier - * @returns the transpiled code, with its associated sourcemap. null otherwise - */ - transform(_code, id) { - var _a; - if (isAbsolute(id)) { - const fsFilePath = normalizeFsPath(id); - const mod = getModule(compilerCtx, fsFilePath); - if (mod && mod.cmps.length > 0) { - const tsResult = ts.transpileModule(mod.staticSourceFileText, { - compilerOptions: config.tsCompilerOptions, - fileName: mod.sourceFilePath, - transformers: { - before: (_a = bundleOpts.customBeforeTransformers) !== null && _a !== void 0 ? _a : [], - }, - }); - const sourceMap = tsResult.sourceMapText ? JSON.parse(tsResult.sourceMapText) : null; - return { code: tsResult.outputText, map: sourceMap }; - } - } - return null; - }, - }; -}; -export const resolveIdWithTypeScript = (config, compilerCtx) => { - return { - name: `resolveIdWithTypeScript`, - async resolveId(importee, importer) { - if (/\0/.test(importee) || !isString(importer)) { - return null; - } - const tsResolved = tsResolveModuleName(config, compilerCtx, importee, importer); - if (tsResolved && tsResolved.resolvedModule) { - // this is probably a .d.ts file for whatever reason in how TS resolves this - // use this resolved file as the "importer" - const tsResolvedPath = tsResolved.resolvedModule.resolvedFileName; - if (isString(tsResolvedPath) && !tsResolvedPath.endsWith('.d.ts')) { - return tsResolvedPath; - } - } - return null; - }, - }; -}; -//# sourceMappingURL=typescript-plugin.js.map \ No newline at end of file diff --git a/build/compiler/bundle/typescript-plugin.js.map b/build/compiler/bundle/typescript-plugin.js.map deleted file mode 100644 index bca665200b1..00000000000 --- a/build/compiler/bundle/typescript-plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typescript-plugin.js","sourceRoot":"","sources":["../../../src/compiler/bundle/typescript-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE5C,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAG3D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,WAA0B,EAC1B,UAAyB,EACzB,MAAyB,EACjB,EAAE;IACV,OAAO;QACL,IAAI,EAAE,GAAG,UAAU,CAAC,EAAE,kBAAkB;QAExC;;;;;WAKG;QACH,IAAI,CAAC,EAAU;YACb,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE;gBAClB,MAAM,UAAU,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC;gBACvC,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;gBAElD,IAAI,MAAM,EAAE;oBACV,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE;wBAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,oBAAoB,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;qBACzD;oBAED,MAAM,SAAS,GAAgB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;oBACpE,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,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IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;gBAC9C,OAAO,IAAI,CAAC;aACb;YAED,MAAM,UAAU,GAAG,mBAAmB,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAChF,IAAI,UAAU,IAAI,UAAU,CAAC,cAAc,EAAE;gBAC3C,4EAA4E;gBAC5E,2CAA2C;gBAC3C,MAAM,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,gBAAgB,CAAC;gBAClE,IAAI,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;oBACjE,OAAO,cAAc,CAAC;iBACvB;aACF;YAED,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/user-index-plugin.d.ts b/build/compiler/bundle/user-index-plugin.d.ts deleted file mode 100644 index 8bd4ffed557..00000000000 --- a/build/compiler/bundle/user-index-plugin.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Plugin } from 'rollup'; -import type * as d from '../../declarations'; -export declare const userIndexPlugin: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx) => Plugin; diff --git a/build/compiler/bundle/user-index-plugin.js b/build/compiler/bundle/user-index-plugin.js deleted file mode 100644 index 22db7fd197e..00000000000 --- a/build/compiler/bundle/user-index-plugin.js +++ /dev/null @@ -1,25 +0,0 @@ -import { join } from '@utils'; -import { USER_INDEX_ENTRY_ID } from './entry-alias-ids'; -export const userIndexPlugin = (config, compilerCtx) => { - return { - name: 'userIndexPlugin', - async resolveId(importee) { - if (importee === USER_INDEX_ENTRY_ID) { - const usersIndexJsPath = join(config.srcDir, 'index.ts'); - const hasUserIndex = await compilerCtx.fs.access(usersIndexJsPath); - if (hasUserIndex) { - return usersIndexJsPath; - } - return importee; - } - return null; - }, - async load(id) { - if (id === USER_INDEX_ENTRY_ID) { - return `//! Autogenerated index`; - } - return null; - }, - }; -}; -//# sourceMappingURL=user-index-plugin.js.map \ No newline at end of file diff --git a/build/compiler/bundle/user-index-plugin.js.map b/build/compiler/bundle/user-index-plugin.js.map deleted file mode 100644 index fa745218c69..00000000000 --- a/build/compiler/bundle/user-index-plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"user-index-plugin.js","sourceRoot":"","sources":["../../../src/compiler/bundle/user-index-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAyB,EAAE,WAA0B,EAAU,EAAE;IAC/F,OAAO;QACL,IAAI,EAAE,iBAAiB;QAEvB,KAAK,CAAC,SAAS,CAAC,QAAQ;YACtB,IAAI,QAAQ,KAAK,mBAAmB,EAAE;gBACpC,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;gBACzD,MAAM,YAAY,GAAG,MAAM,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;gBACnE,IAAI,YAAY,EAAE;oBAChB,OAAO,gBAAgB,CAAC;iBACzB;gBACD,OAAO,QAAQ,CAAC;aACjB;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,KAAK,mBAAmB,EAAE;gBAC9B,OAAO,yBAAyB,CAAC;aAClC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/bundle/worker-plugin.d.ts b/build/compiler/bundle/worker-plugin.d.ts deleted file mode 100644 index 8a2b7f3aec8..00000000000 --- a/build/compiler/bundle/worker-plugin.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { Plugin } from 'rollup'; -import type * as d from '../../declarations'; -export declare const workerPlugin: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx, platform: string, inlineWorkers: boolean) => Plugin; -export declare const WORKER_HELPERS = "\nimport { consoleError } from '@stencil/core/internal';\n\n\nconst isInstanceOf = (value, className) => {\n const C = globalThis[className];\n return C != null && value instanceof C;\n}\nconst getTransferables = (value) => {\n if (value != null) {\n if (\n isInstanceOf(value, \"ArrayBuffer\") ||\n isInstanceOf(value, \"MessagePort\") ||\n isInstanceOf(value, \"ImageBitmap\") ||\n isInstanceOf(value, \"OffscreenCanvas\")\n ) {\n return [value];\n }\n if (typeof value === \"object\") {\n if (value.constructor === Object) {\n value = Object.values(value);\n }\n if (Array.isArray(value)) {\n return value.flatMap(getTransferables);\n }\n return getTransferables(value.buffer);\n }\n }\n return [];\n};\n\nlet pendingIds = 0;\nlet callbackIds = 0;\nconst pending = new Map();\nconst callbacks = new Map();\n\nexport const createWorker = (workerPath, workerName, workerMsgId) => {\n const worker = new Worker(workerPath, {name:workerName});\n\n worker.addEventListener('message', ({data}) => {\n if (data) {\n const workerMsg = data[0];\n const id = data[1];\n const value = data[2];\n\n if (workerMsg === workerMsgId) {\n const err = data[3];\n const [resolve, reject, callbackIds] = pending.get(id);\n pending.delete(id);\n\n if (err) {\n const errObj = (err.isError)\n ? Object.assign(new Error(err.value.message), err.value)\n : err.value;\n\n consoleError(errObj);\n reject(errObj);\n } else {\n if (callbackIds) {\n callbackIds.forEach(id => callbacks.delete(id));\n }\n resolve(value);\n }\n } else if (workerMsg === workerMsgId + '.cb') {\n try {\n callbacks.get(id)(...value);\n } catch (e) {\n consoleError(e);\n }\n }\n }\n });\n\n return worker;\n};\n\nexport const createWorkerProxy = (worker, workerMsgId, exportedMethod) => (\n (...args) => new Promise((resolve, reject) => {\n let pendingId = pendingIds++;\n let i = 0;\n let argLen = args.length;\n let mainData = [resolve, reject];\n pending.set(pendingId, mainData);\n\n for (; i < argLen; i++) {\n if (typeof args[i] === 'function') {\n const callbackId = callbackIds++;\n callbacks.set(callbackId, args[i]);\n args[i] = [workerMsgId + '.cb', callbackId];\n (mainData[2] = mainData[2] || []).push(callbackId);\n }\n }\n const postMessage = (w) => (\n w.postMessage(\n [workerMsgId, pendingId, exportedMethod, args],\n getTransferables(args)\n )\n );\n if (worker.then) {\n worker.then(postMessage);\n } else {\n postMessage(worker);\n }\n })\n);\n"; diff --git a/build/compiler/bundle/worker-plugin.js b/build/compiler/bundle/worker-plugin.js deleted file mode 100644 index 990c960a6d8..00000000000 --- a/build/compiler/bundle/worker-plugin.js +++ /dev/null @@ -1,393 +0,0 @@ -import { generatePreamble, hasError, normalizeFsPath } from '@utils'; -import { optimizeModule } from '../optimize/optimize-module'; -import { bundleOutput } from './bundle-output'; -import { STENCIL_INTERNAL_ID } from './entry-alias-ids'; -export const workerPlugin = (config, compilerCtx, buildCtx, platform, inlineWorkers) => { - if (platform === 'worker' || platform === 'hydrate') { - return { - name: 'workerPlugin', - transform(_, id) { - if (id.endsWith('?worker') || id.endsWith('?worker-inline')) { - return getMockedWorkerMain(); - } - return null; - }, - }; - } - const workersMap = new Map(); - return { - name: 'workerPlugin', - buildStart() { - workersMap.clear(); - }, - resolveId(id) { - if (id === WORKER_HELPER_ID) { - return { - id, - moduleSideEffects: false, - }; - } - return null; - }, - load(id) { - if (id === WORKER_HELPER_ID) { - return WORKER_HELPERS; - } - return null; - }, - async transform(_, id) { - if (/\0/.test(id)) { - return null; - } - // Canonical worker path - if (id.endsWith('?worker')) { - const workerEntryPath = normalizeFsPath(id); - const workerName = getWorkerName(workerEntryPath); - const { code, dependencies, workerMsgId } = await getWorker(config, compilerCtx, buildCtx, this, workersMap, workerEntryPath); - const referenceId = this.emitFile({ - type: 'asset', - source: code, - name: workerName + '.js', - }); - dependencies.forEach((id) => this.addWatchFile(id)); - return { - code: getWorkerMain(referenceId, workerName, workerMsgId), - moduleSideEffects: false, - }; - } - else if (id.endsWith('?worker-inline')) { - const workerEntryPath = normalizeFsPath(id); - const workerName = getWorkerName(workerEntryPath); - const { code, dependencies, workerMsgId } = await getWorker(config, compilerCtx, buildCtx, this, workersMap, workerEntryPath); - const referenceId = this.emitFile({ - type: 'asset', - source: code, - name: workerName + '.js', - }); - dependencies.forEach((id) => this.addWatchFile(id)); - return { - code: getInlineWorker(referenceId, workerName, workerMsgId), - moduleSideEffects: false, - }; - } - // Proxy worker path - const workerEntryPath = getWorkerEntryPath(id); - if (workerEntryPath != null) { - const worker = await getWorker(config, compilerCtx, buildCtx, this, workersMap, workerEntryPath); - if (worker) { - if (inlineWorkers) { - return { - code: getInlineWorkerProxy(workerEntryPath, worker.workerMsgId, worker.exports), - moduleSideEffects: false, - }; - } - else { - return { - code: getWorkerProxy(workerEntryPath, worker.exports), - moduleSideEffects: false, - }; - } - } - } - return null; - }, - }; -}; -const getWorkerEntryPath = (id) => { - if (WORKER_SUFFIX.some((p) => id.endsWith(p))) { - return normalizeFsPath(id); - } - return null; -}; -const getWorker = async (config, compilerCtx, buildCtx, ctx, workersMap, workerEntryPath) => { - let worker = workersMap.get(workerEntryPath); - if (!worker) { - worker = await buildWorker(config, compilerCtx, buildCtx, ctx, workerEntryPath); - workersMap.set(workerEntryPath, worker); - } - return worker; -}; -const getWorkerName = (id) => { - const parts = id.split('/').filter((i) => !i.includes('index')); - id = parts[parts.length - 1]; - return id.replace('.tsx', '').replace('.ts', ''); -}; -const buildWorker = async (config, compilerCtx, buildCtx, ctx, workerEntryPath) => { - const workerName = getWorkerName(workerEntryPath); - const workerMsgId = `stencil.${workerName}`; - const build = await bundleOutput(config, compilerCtx, buildCtx, { - platform: 'worker', - id: workerName, - inputs: { - [workerName]: workerEntryPath, - }, - inlineDynamicImports: true, - }); - if (build) { - // Generate commonjs output so we can intercept exports at runtime - const output = await build.generate({ - format: 'commonjs', - banner: `${generatePreamble(config)}\n(()=>{\n`, - footer: '})();', - intro: getWorkerIntro(workerMsgId, config.devMode), - esModule: false, - preferConst: true, - externalLiveBindings: false, - }); - const entryPoint = output.output[0]; - if (entryPoint.imports.length > 0) { - ctx.error('Workers should not have any external imports: ' + JSON.stringify(entryPoint.imports)); - } - // Optimize code - let code = entryPoint.code; - const results = await optimizeModule(config, compilerCtx, { - input: code, - sourceTarget: config.buildEs5 ? 'es5' : 'es2017', - isCore: false, - minify: config.minifyJs, - inlineHelpers: true, - }); - buildCtx.diagnostics.push(...results.diagnostics); - if (!hasError(results.diagnostics)) { - code = results.output; - } - return { - code, - exports: entryPoint.exports, - workerMsgId, - dependencies: Object.keys(entryPoint.modules).filter((id) => !/\0/.test(id) && id !== workerEntryPath), - }; - } - return null; -}; -const WORKER_SUFFIX = ['.worker.ts', '.worker.tsx', '.worker/index.ts', '.worker/index.tsx']; -const WORKER_HELPER_ID = '@worker-helper'; -const GET_TRANSFERABLES = ` -const isInstanceOf = (value, className) => { - const C = globalThis[className]; - return C != null && value instanceof C; -} -const getTransferables = (value) => { - if (value != null) { - if ( - isInstanceOf(value, "ArrayBuffer") || - isInstanceOf(value, "MessagePort") || - isInstanceOf(value, "ImageBitmap") || - isInstanceOf(value, "OffscreenCanvas") - ) { - return [value]; - } - if (typeof value === "object") { - if (value.constructor === Object) { - value = Object.values(value); - } - if (Array.isArray(value)) { - return value.flatMap(getTransferables); - } - return getTransferables(value.buffer); - } - } - return []; -};`; -const getWorkerIntro = (workerMsgId, isDev) => ` -${GET_TRANSFERABLES} -const exports = {}; -const workerMsgId = '${workerMsgId}'; -const workerMsgCallbackId = workerMsgId + '.cb'; -addEventListener('message', async ({data}) => { - if (data && data[0] === workerMsgId) { - let id = data[1]; - let method = data[2]; - let args = data[3]; - let i = 0; - let argsLen = args.length; - let value; - let err; - - try { - for (; i < argsLen; i++) { - if (Array.isArray(args[i]) && args[i][0] === workerMsgCallbackId) { - const callbackId = args[i][1]; - args[i] = (...cbArgs) => { - postMessage( - [workerMsgCallbackId, callbackId, cbArgs] - ); - }; - } - } - ${isDev - ? ` - value = exports[method](...args); - if (!value || !value.then) { - throw new Error('The exported method "' + method + '" does not return a Promise, make sure it is an "async" function'); - } - value = await value; - ` - : ` - value = await exports[method](...args);`} - - } catch (e) { - value = null; - if (e instanceof Error) { - err = { - isError: true, - value: { - message: e.message, - name: e.name, - stack: e.stack, - } - }; - } else { - err = { - isError: false, - value: e - }; - } - value = undefined; - } - - const transferables = getTransferables(value); - ${isDev ? `if (transferables.length > 0) console.debug('Transfering', transferables);` : ''} - - postMessage( - [workerMsgId, id, value, err], - transferables - ); - } -}); -`; -export const WORKER_HELPERS = ` -import { consoleError } from '${STENCIL_INTERNAL_ID}'; - -${GET_TRANSFERABLES} - -let pendingIds = 0; -let callbackIds = 0; -const pending = new Map(); -const callbacks = new Map(); - -export const createWorker = (workerPath, workerName, workerMsgId) => { - const worker = new Worker(workerPath, {name:workerName}); - - worker.addEventListener('message', ({data}) => { - if (data) { - const workerMsg = data[0]; - const id = data[1]; - const value = data[2]; - - if (workerMsg === workerMsgId) { - const err = data[3]; - const [resolve, reject, callbackIds] = pending.get(id); - pending.delete(id); - - if (err) { - const errObj = (err.isError) - ? Object.assign(new Error(err.value.message), err.value) - : err.value; - - consoleError(errObj); - reject(errObj); - } else { - if (callbackIds) { - callbackIds.forEach(id => callbacks.delete(id)); - } - resolve(value); - } - } else if (workerMsg === workerMsgId + '.cb') { - try { - callbacks.get(id)(...value); - } catch (e) { - consoleError(e); - } - } - } - }); - - return worker; -}; - -export const createWorkerProxy = (worker, workerMsgId, exportedMethod) => ( - (...args) => new Promise((resolve, reject) => { - let pendingId = pendingIds++; - let i = 0; - let argLen = args.length; - let mainData = [resolve, reject]; - pending.set(pendingId, mainData); - - for (; i < argLen; i++) { - if (typeof args[i] === 'function') { - const callbackId = callbackIds++; - callbacks.set(callbackId, args[i]); - args[i] = [workerMsgId + '.cb', callbackId]; - (mainData[2] = mainData[2] || []).push(callbackId); - } - } - const postMessage = (w) => ( - w.postMessage( - [workerMsgId, pendingId, exportedMethod, args], - getTransferables(args) - ) - ); - if (worker.then) { - worker.then(postMessage); - } else { - postMessage(worker); - } - }) -); -`; -const getWorkerMain = (referenceId, workerName, workerMsgId) => { - return ` -import { createWorker } from '${WORKER_HELPER_ID}'; -export const workerName = '${workerName}'; -export const workerMsgId = '${workerMsgId}'; -export const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${referenceId}; -export const worker = /*@__PURE__*/createWorker(workerPath, workerName, workerMsgId); -`; -}; -const getInlineWorker = (referenceId, workerName, workerMsgId) => { - return ` -import { createWorker } from '${WORKER_HELPER_ID}'; -export const workerName = '${workerName}'; -export const workerMsgId = '${workerMsgId}'; -export const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${referenceId}; -const blob = new Blob(['importScripts("' + workerPath + '")'], { type: 'text/javascript' }); -const url = URL.createObjectURL(blob); -export const worker = /*@__PURE__*/createWorker(url, workerName, workerMsgId); -URL.revokeObjectURL(url); -`; -}; -const getMockedWorkerMain = () => { - // for the hydrate build the workers won't actually work - // however, we still need to make the {worker} export - // kick-in otherwise bundling chokes - return ` -export const workerName = 'mocked-worker'; -export const workerMsgId = workerName; -export const workerPath = workerName; -export const worker = { name: workerName }; -`; -}; -const getWorkerProxy = (workerEntryPath, exportedMethods) => { - return ` -import { createWorkerProxy } from '${WORKER_HELPER_ID}'; -import { worker, workerName, workerMsgId } from '${workerEntryPath}?worker'; -${exportedMethods - .map((exportedMethod) => { - return `export const ${exportedMethod} = /*@__PURE__*/createWorkerProxy(worker, workerMsgId, '${exportedMethod}');`; - }) - .join('\n')} -`; -}; -const getInlineWorkerProxy = (workerEntryPath, workerMsgId, exportedMethods) => { - return ` -import { createWorkerProxy } from '${WORKER_HELPER_ID}'; -const workerPromise = import('${workerEntryPath}?worker-inline').then(m => m.worker); -${exportedMethods - .map((exportedMethod) => { - return `export const ${exportedMethod} = /*@__PURE__*/createWorkerProxy(workerPromise, '${workerMsgId}', '${exportedMethod}');`; - }) - .join('\n')} -`; -}; -//# sourceMappingURL=worker-plugin.js.map \ No newline at end of file diff --git a/build/compiler/bundle/worker-plugin.js.map b/build/compiler/bundle/worker-plugin.js.map deleted file mode 100644 index 7007db51373..00000000000 --- a/build/compiler/bundle/worker-plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"worker-plugin.js","sourceRoot":"","sources":["../../../src/compiler/bundle/worker-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAIrE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,MAAyB,EACzB,WAA0B,EAC1B,QAAoB,EACpB,QAAgB,EAChB,aAAsB,EACd,EAAE;IACV,IAAI,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,SAAS,EAAE;QACnD,OAAO;YACL,IAAI,EAAE,cAAc;YACpB,SAAS,CAAC,CAAC,EAAE,EAAE;gBACb,IAAI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE;oBAC3D,OAAO,mBAAmB,EAAE,CAAC;iBAC9B;gBACD,OAAO,IAAI,CAAC;YACd,CAAC;SACF,CAAC;KACH;IAED,MAAM,UAAU,GAAG,IAAI,GAAG,EAAsB,CAAC;IAEjD,OAAO;QACL,IAAI,EAAE,cAAc;QAEpB,UAAU;YACR,UAAU,CAAC,KAAK,EAAE,CAAC;QACrB,CAAC;QAED,SAAS,CAAC,EAAE;YACV,IAAI,EAAE,KAAK,gBAAgB,EAAE;gBAC3B,OAAO;oBACL,EAAE;oBACF,iBAAiB,EAAE,KAAK;iBACzB,CAAC;aACH;YACD,OAAO,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E/E,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,WAAmB,EAAE,UAAkB,EAAE,WAAmB,EAAE,EAAE;IACvF,OAAO;gCACuB,gBAAgB;6BACnB,UAAU;8BACT,WAAW;qEAC4B,WAAW;;;;;CAK/E,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAC/B,wDAAwD;IACxD,qDAAqD;IACrD,oCAAoC;IACpC,OAAO;;;;;CAKR,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,eAAuB,EAAE,eAAyB,EAAE,EAAE;IAC5E,OAAO;qCAC4B,gBAAgB;mDACF,eAAe;EAChE,eAAe;SACd,GAAG,CAAC,CAAC,cAAc,EAAE,EAAE;QACtB,OAAO,gBAAgB,cAAc,2DAA2D,cAAc,KAAK,CAAC;IACtH,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC;CACZ,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,eAAuB,EAAE,WAAmB,EAAE,eAAyB,EAAE,EAAE;IACvG,OAAO;qCAC4B,gBAAgB;gCACrB,eAAe;EAC7C,eAAe;SACd,GAAG,CAAC,CAAC,cAAc,EAAE,EAAE;QACtB,OAAO,gBAAgB,cAAc,qDAAqD,WAAW,OAAO,cAAc,KAAK,CAAC;IAClI,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC;CACZ,CAAC;AACF,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/cache.d.ts b/build/compiler/cache.d.ts deleted file mode 100644 index 30961ce00f8..00000000000 --- a/build/compiler/cache.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type * as d from '../declarations'; -import { InMemoryFileSystem } from './sys/in-memory-fs'; -export declare class Cache implements d.Cache { - private config; - private cacheFs; - private failed; - private skip; - private sys; - private logger; - private buildCacheDir; - constructor(config: d.ValidatedConfig, cacheFs: InMemoryFileSystem); - initCacheDir(): Promise; - get(key: string): Promise; - put(key: string, value: string): Promise; - has(key: string): Promise; - createKey(domain: string, ...args: any[]): Promise; - commit(): Promise; - clear(): void; - clearExpiredCache(): Promise; - clearDiskCache(): Promise; - private getCacheFilePath; - getMemoryStats(): string | null; -} diff --git a/build/compiler/cache.js b/build/compiler/cache.js deleted file mode 100644 index 39e6f2b800f..00000000000 --- a/build/compiler/cache.js +++ /dev/null @@ -1,152 +0,0 @@ -import { join } from '@utils'; -export class Cache { - constructor(config, cacheFs) { - this.config = config; - this.cacheFs = cacheFs; - this.failed = 0; - this.skip = false; - this.sys = config.sys; - this.logger = config.logger; - } - async initCacheDir() { - if (this.config._isTesting || !this.config.cacheDir) { - return; - } - this.buildCacheDir = join(this.config.cacheDir, '.build'); - if (!this.config.enableCache || !this.cacheFs) { - this.config.logger.info(`cache optimizations disabled`); - this.clearDiskCache(); - return; - } - this.config.logger.debug(`cache enabled, cacheDir: ${this.buildCacheDir}`); - try { - const readmeFilePath = join(this.buildCacheDir, '_README.log'); - await this.cacheFs.writeFile(readmeFilePath, CACHE_DIR_README); - } - catch (e) { - this.logger.error(`Cache, initCacheDir: ${e}`); - this.config.enableCache = false; - } - } - async get(key) { - if (!this.config.enableCache || this.skip) { - return null; - } - if (this.failed >= MAX_FAILED) { - if (!this.skip) { - this.skip = true; - this.logger.debug(`cache had ${this.failed} failed ops, skip disk ops for remainder of build`); - } - return null; - } - let result; - try { - result = await this.cacheFs.readFile(this.getCacheFilePath(key)); - this.failed = 0; - this.skip = false; - } - catch (e) { - this.failed++; - result = null; - } - return result; - } - async put(key, value) { - if (!this.config.enableCache) { - return false; - } - try { - await this.cacheFs.writeFile(this.getCacheFilePath(key), value); - return true; - } - catch (e) { - this.failed++; - return false; - } - } - async has(key) { - const val = await this.get(key); - return typeof val === 'string'; - } - async createKey(domain, ...args) { - if (!this.config.enableCache || !this.sys.generateContentHash) { - return domain + Math.random() * 9999999; - } - const hash = await this.sys.generateContentHash(JSON.stringify(args), 32); - return domain + '_' + hash; - } - async commit() { - if (this.config.enableCache) { - this.skip = false; - this.failed = 0; - await this.cacheFs.commit(); - await this.clearExpiredCache(); - } - } - clear() { - if (this.cacheFs != null) { - this.cacheFs.clearCache(); - } - } - async clearExpiredCache() { - if (this.cacheFs == null || this.sys.cacheStorage == null) { - return; - } - const now = Date.now(); - const lastClear = (await this.sys.cacheStorage.get(EXP_STORAGE_KEY)); - if (lastClear != null) { - const diff = now - lastClear; - if (diff < ONE_DAY) { - return; - } - const fs = this.cacheFs.sys; - const cachedFileNames = await fs.readDir(this.buildCacheDir); - const cachedFilePaths = cachedFileNames.map((f) => join(this.buildCacheDir, f)); - let totalCleared = 0; - const promises = cachedFilePaths.map(async (filePath) => { - const stat = await fs.stat(filePath); - const lastModified = stat.mtimeMs; - if (lastModified && now - lastModified > ONE_WEEK) { - await fs.removeFile(filePath); - totalCleared++; - } - }); - await Promise.all(promises); - this.logger.debug(`clearExpiredCache, cachedFileNames: ${cachedFileNames.length}, totalCleared: ${totalCleared}`); - } - this.logger.debug(`clearExpiredCache, set last clear`); - await this.sys.cacheStorage.set(EXP_STORAGE_KEY, now); - } - async clearDiskCache() { - if (this.cacheFs != null) { - const hasAccess = await this.cacheFs.access(this.buildCacheDir); - if (hasAccess) { - await this.cacheFs.remove(this.buildCacheDir); - await this.cacheFs.commit(); - } - } - } - getCacheFilePath(key) { - return join(this.buildCacheDir, key) + '.log'; - } - getMemoryStats() { - if (this.cacheFs != null) { - return this.cacheFs.getMemoryStats(); - } - return null; - } -} -const MAX_FAILED = 100; -const ONE_DAY = 1000 * 60 * 60 * 24; -const ONE_WEEK = ONE_DAY * 7; -const EXP_STORAGE_KEY = `last_clear_expired_cache`; -const CACHE_DIR_README = `# Stencil Cache Directory - -This directory contains files which the compiler has -cached for faster builds. To disable caching, please set -"enableCache: false" within the stencil config. - -To change the cache directory, please update the -"cacheDir" property within the stencil config. -`; -//# sourceMappingURL=cache.js.map \ No newline at end of file diff --git a/build/compiler/cache.js.map b/build/compiler/cache.js.map deleted file mode 100644 index 1be9c046586..00000000000 --- a/build/compiler/cache.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cache.js","sourceRoot":"","sources":["../../src/compiler/cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAK9B,MAAM,OAAO,KAAK;IAOhB,YACU,MAAyB,EACzB,OAA2B;QAD3B,WAAM,GAAN,MAAM,CAAmB;QACzB,YAAO,GAAP,OAAO,CAAoB;QAR7B,WAAM,GAAG,CAAC,CAAC;QACX,SAAI,GAAG,KAAK,CAAC;QASnB,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;YACnD,OAAO;SACR;QAED,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAE1D,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YAC7C,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;YACxD,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,OAAO;SACR;QAED,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,4BAA4B,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QAE3E,IAAI;YACF,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;YAC/D,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;SAChE;Q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AAC,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACxB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAChE,IAAI,SAAS,EAAE;gBACb,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;gBAC9C,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;aAC7B;SACF;IACH,CAAC;IAEO,gBAAgB,CAAC,GAAW;QAClC,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC;IAChD,CAAC;IAED,cAAc;QACZ,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACxB,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;SACtC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED,MAAM,UAAU,GAAG,GAAG,CAAC;AACvB,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AACpC,MAAM,QAAQ,GAAG,OAAO,GAAG,CAAC,CAAC;AAC7B,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAEnD,MAAM,gBAAgB,GAAG;;;;;;;;CAQxB,CAAC"} \ No newline at end of file diff --git a/build/compiler/compiler.d.ts b/build/compiler/compiler.d.ts deleted file mode 100644 index b7a51377dee..00000000000 --- a/build/compiler/compiler.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { Compiler, Config } from '../declarations'; -/** - * Generate a Stencil compiler instance - * @param userConfig a user-provided Stencil configuration to apply to the compiler instance - * @returns a new instance of a Stencil compiler - * @public - */ -export declare const createCompiler: (userConfig: Config) => Promise; diff --git a/build/compiler/compiler.js b/build/compiler/compiler.js deleted file mode 100644 index 4db3e98b3e1..00000000000 --- a/build/compiler/compiler.js +++ /dev/null @@ -1,53 +0,0 @@ -import { isFunction } from '@utils'; -import ts from 'typescript'; -import { CompilerContext } from './build/compiler-ctx'; -import { createFullBuild } from './build/full-build'; -import { createWatchBuild } from './build/watch-build'; -import { Cache } from './cache'; -import { getConfig } from './sys/config'; -import { createInMemoryFs } from './sys/in-memory-fs'; -import { resolveModuleIdAsync } from './sys/resolve/resolve-module-async'; -import { patchTypescript } from './sys/typescript/typescript-sys'; -import { createSysWorker } from './sys/worker/sys-worker'; -/** - * Generate a Stencil compiler instance - * @param userConfig a user-provided Stencil configuration to apply to the compiler instance - * @returns a new instance of a Stencil compiler - * @public - */ -export const createCompiler = async (userConfig) => { - // actual compiler code - const config = getConfig(userConfig); - const diagnostics = []; - const sys = config.sys; - const compilerCtx = new CompilerContext(); - if (isFunction(config.sys.setupCompiler)) { - config.sys.setupCompiler({ ts }); - } - compilerCtx.fs = createInMemoryFs(sys); - compilerCtx.cache = new Cache(config, createInMemoryFs(sys)); - await compilerCtx.cache.initCacheDir(); - sys.resolveModuleId = (opts) => resolveModuleIdAsync(sys, compilerCtx.fs, opts); - compilerCtx.worker = createSysWorker(config); - if (sys.events) { - // Pipe events from sys.events to compilerCtx - sys.events.on(compilerCtx.events.emit); - } - patchTypescript(config, compilerCtx.fs); - const build = () => createFullBuild(config, compilerCtx); - const createWatcher = () => createWatchBuild(config, compilerCtx); - const destroy = async () => { - compilerCtx.reset(); - compilerCtx.events.unsubscribeAll(); - await sys.destroy(); - }; - const compiler = { - build, - createWatcher, - destroy, - sys, - }; - config.logger.printDiagnostics(diagnostics); - return compiler; -}; -//# sourceMappingURL=compiler.js.map \ No newline at end of file diff --git a/build/compiler/compiler.js.map b/build/compiler/compiler.js.map deleted file mode 100644 index 9b5b8d7ffaf..00000000000 --- a/build/compiler/compiler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"compiler.js","sourceRoot":"","s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IAEvC,GAAG,CAAC,eAAe,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAoB,CAAC,GAAG,EAAE,WAAW,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAChF,WAAW,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IAE7C,IAAI,GAAG,CAAC,MAAM,EAAE;QACd,6CAA6C;QAC7C,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;KACxC;IACD,eAAe,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC;IAExC,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAEzD,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAElE,MAAM,OAAO,GAAG,KAAK,IAAI,EAAE;QACzB,WAAW,CAAC,KAAK,EAAE,CAAC;QACpB,WAAW,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC;IACtB,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAa;QACzB,KAAK;QACL,aAAa;QACb,OAAO;QACP,GAAG;KACJ,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAE5C,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/config-utils.d.ts b/build/compiler/config/config-utils.d.ts deleted file mode 100644 index 058c3508d88..00000000000 --- a/build/compiler/config/config-utils.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { ConfigFlags } from '../../cli/config-flags'; -import type * as d from '../../declarations'; -export declare const getAbsolutePath: (config: d.ValidatedConfig, dir: string) => string; -/** - * This function does two things: - * - * 1. If you pass a `flagName`, it will hoist that `flagName` out of the - * `ConfigFlags` object and onto the 'root' level (if you will) of the - * `config` under the `configName` (`keyof d.Config`) that you pass. - * 2. If you _don't_ pass a `flagName` it will just set the value you supply - * on the config. - * - * @param config the config that we want to update - * @param configName the key we're setting on the config - * @param flagName either the name of a ConfigFlag prop we want to hoist up or null - * @param defaultValue the default value we should set! - */ -export declare const setBooleanConfig: (config: d.UnvalidatedConfig, configName: K | (K & keyof ConfigFlags), flagName: keyof ConfigFlags | null, defaultValue: d.Config[K]) => void; diff --git a/build/compiler/config/config-utils.js b/build/compiler/config/config-utils.js deleted file mode 100644 index df5a57d6e6f..00000000000 --- a/build/compiler/config/config-utils.js +++ /dev/null @@ -1,65 +0,0 @@ -import { isBoolean, join } from '@utils'; -import { isAbsolute } from 'path'; -export const getAbsolutePath = (config, dir) => { - if (!isAbsolute(dir)) { - dir = join(config.rootDir, dir); - } - return dir; -}; -/** - * This function does two things: - * - * 1. If you pass a `flagName`, it will hoist that `flagName` out of the - * `ConfigFlags` object and onto the 'root' level (if you will) of the - * `config` under the `configName` (`keyof d.Config`) that you pass. - * 2. If you _don't_ pass a `flagName` it will just set the value you supply - * on the config. - * - * @param config the config that we want to update - * @param configName the key we're setting on the config - * @param flagName either the name of a ConfigFlag prop we want to hoist up or null - * @param defaultValue the default value we should set! - */ -export const setBooleanConfig = (config, configName, flagName, defaultValue) => { - var _a; - if (flagName) { - const flagValue = (_a = config.flags) === null || _a === void 0 ? void 0 : _a[flagName]; - if (isBoolean(flagValue)) { - config[configName] = flagValue; - } - } - const userConfigName = getUserConfigName(config, configName); - if (typeof config[userConfigName] === 'function') { - config[userConfigName] = !!config[userConfigName](); - } - if (isBoolean(config[userConfigName])) { - config[configName] = config[userConfigName]; - } - else { - config[configName] = defaultValue; - } -}; -/** - * Find any possibly mis-capitalized configuration names on the config, logging - * and warning if one is found. - * - * @param config the user-supplied config that we're dealing with - * @param correctConfigName the configuration name that we're checking for right now - * @returns a string container a mis-capitalized config name found on the - * config object, if any. - */ -const getUserConfigName = (config, correctConfigName) => { - var _a; - const userConfigNames = Object.keys(config); - for (const userConfigName of userConfigNames) { - if (userConfigName.toLowerCase() === correctConfigName.toLowerCase()) { - if (userConfigName !== correctConfigName) { - (_a = config.logger) === null || _a === void 0 ? void 0 : _a.warn(`config "${userConfigName}" should be "${correctConfigName}"`); - return userConfigName; - } - break; - } - } - return correctConfigName; -}; -//# sourceMappingURL=config-utils.js.map \ No newline at end of file diff --git a/build/compiler/config/config-utils.js.map b/build/compiler/config/config-utils.js.map deleted file mode 100644 index ca5f8c7934e..00000000000 --- a/build/compiler/config/config-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config-utils.js","sourceRoot":"","sources":["../../../src/compiler/config/config-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKlC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAyB,EAAE,GAAW,EAAE,EAAE;IACxE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;QACpB,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;KACjC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,MAA2B,EAC3B,UAAuC,EACvC,QAAkC,EAClC,YAAyB,EACzB,EAAE;;IACF,IAAI,QAAQ,EAAE;QACZ,MAAM,SAAS,GAAG,MAAA,MAAM,CAAC,KAAK,0CAAG,QAAQ,CAAC,CAAC;QAC3C,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE;YACxB,MAAM,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;SAChC;KACF;IAED,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE7D,IAAI,OAAO,MAAM,CAAC,cAAc,CAAC,KAAK,UAAU,EAAE;QAChD,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC;KACrD;IAED,IAAI,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE;QACrC,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;KAC7C;SAAM;QACL,MAAM,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC;KACnC;AACH,CAAC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,iBAAiB,GAAG,CAAC,MAA2B,EAAE,iBAAiC,EAAU,EAAE;;IACnG,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5C,KAAK,MAAM,cAAc,IAAI,eAAe,EAAE;QAC5C,IAAI,cAAc,CAAC,WAAW,EAAE,KAAK,iBAAiB,CAAC,WAAW,EAAE,EAAE;YACpE,IAAI,cAAc,KAAK,iBAAiB,EAAE;gBACxC,MAAA,MAAM,CAAC,MAAM,0CAAE,IAAI,CAAC,WAAW,cAAc,gBAAgB,iBAAiB,GAAG,CAAC,CAAC;gBACnF,OAAO,cAAc,CAAC;aACvB;YACD,MAAM;SACP;KACF;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/constants.d.ts b/build/compiler/config/constants.d.ts deleted file mode 100644 index bae7072cb83..00000000000 --- a/build/compiler/config/constants.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare const DEFAULT_DEV_MODE = false; -export declare const DEFAULT_HASHED_FILENAME_LENGTH = 8; -export declare const MIN_HASHED_FILENAME_LENGTH = 4; -export declare const MAX_HASHED_FILENAME_LENGTH = 32; -export declare const DEFAULT_NAMESPACE = "App"; diff --git a/build/compiler/config/constants.js b/build/compiler/config/constants.js deleted file mode 100644 index f0e09a25613..00000000000 --- a/build/compiler/config/constants.js +++ /dev/null @@ -1,6 +0,0 @@ -export const DEFAULT_DEV_MODE = false; -export const DEFAULT_HASHED_FILENAME_LENGTH = 8; -export const MIN_HASHED_FILENAME_LENGTH = 4; -export const MAX_HASHED_FILENAME_LENGTH = 32; -export const DEFAULT_NAMESPACE = 'App'; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/build/compiler/config/constants.js.map b/build/compiler/config/constants.js.map deleted file mode 100644 index 1a3dcbfaa72..00000000000 --- a/build/compiler/config/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/compiler/config/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AACtC,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC;AAChD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAC5C,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAC7C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/load-config.d.ts b/build/compiler/config/load-config.d.ts deleted file mode 100644 index 49e9498e543..00000000000 --- a/build/compiler/config/load-config.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { LoadConfigInit, LoadConfigResults } from '../../declarations'; -/** - * Load and validate a configuration to use throughout the lifetime of any Stencil task (build, test, etc.). - * - * Users can provide configurations multiple ways simultaneously: - * - as an object of the `init` argument to this function - * - through a path to a configuration file that exists on disk - * - * In the case of both being present, the two configurations will be merged. The fields of the former will take precedence - * over the fields of the latter. - * - * @param init the initial configuration provided by the user (or generated by Stencil) used to bootstrap configuration - * loading and validation - * @returns the results of loading a configuration - * @public - */ -export declare const loadConfig: (init?: LoadConfigInit) => Promise; diff --git a/build/compiler/config/load-config.js b/build/compiler/config/load-config.js deleted file mode 100644 index 181d3fde0eb..00000000000 --- a/build/compiler/config/load-config.js +++ /dev/null @@ -1,139 +0,0 @@ -import { createNodeSys } from '@sys-api-node'; -import { buildError, catchError, hasError, isString, normalizePath } from '@utils'; -import { dirname } from 'path'; -import { nodeRequire } from '../sys/node-require'; -import { validateTsConfig } from '../sys/typescript/typescript-config'; -import { validateConfig } from './validate-config'; -/** - * Load and validate a configuration to use throughout the lifetime of any Stencil task (build, test, etc.). - * - * Users can provide configurations multiple ways simultaneously: - * - as an object of the `init` argument to this function - * - through a path to a configuration file that exists on disk - * - * In the case of both being present, the two configurations will be merged. The fields of the former will take precedence - * over the fields of the latter. - * - * @param init the initial configuration provided by the user (or generated by Stencil) used to bootstrap configuration - * loading and validation - * @returns the results of loading a configuration - * @public - */ -export const loadConfig = async (init = {}) => { - var _a; - const results = { - config: null, - diagnostics: [], - tsconfig: { - path: null, - compilerOptions: null, - files: null, - include: null, - exclude: null, - extends: null, - }, - }; - const unknownConfig = {}; - try { - const config = init.config || {}; - let configPath = init.configPath || config.configPath; - // Pull the {@link CompilerSystem} out of the initialization object, or create one if it does not exist. - // This entity is needed to load the project's configuration (and therefore needs to be created before it can be - // attached to a configuration entity, validated or otherwise) - const sys = (_a = init.sys) !== null && _a !== void 0 ? _a : createNodeSys(); - const loadedConfigFile = await loadConfigFile(results.diagnostics, configPath); - if (hasError(results.diagnostics)) { - return results; - } - if (loadedConfigFile !== null) { - // merge the user's config object into their loaded config file - configPath = loadedConfigFile.configPath; - unknownConfig.config = { ...loadedConfigFile, ...config }; - unknownConfig.config.configPath = configPath; - unknownConfig.config.rootDir = normalizePath(dirname(configPath)); - } - else { - // no stencil.config.ts or .js file, which is fine - unknownConfig.config = { ...config }; - unknownConfig.config.configPath = null; - unknownConfig.config.rootDir = normalizePath(sys.getCurrentDirectory()); - } - unknownConfig.config.sys = sys; - const validated = validateConfig(unknownConfig.config, init); - results.diagnostics.push(...validated.diagnostics); - if (hasError(results.diagnostics)) { - return results; - } - results.config = validated.config; - if (!hasError(results.diagnostics)) { - const tsConfigResults = await validateTsConfig(results.config, sys, init); - results.diagnostics.push(...tsConfigResults.diagnostics); - results.config.tsconfig = tsConfigResults.path; - results.config.tsCompilerOptions = tsConfigResults.compilerOptions; - results.tsconfig.path = tsConfigResults.path; - results.tsconfig.compilerOptions = JSON.parse(JSON.stringify(tsConfigResults.compilerOptions)); - results.tsconfig.files = tsConfigResults.files; - results.tsconfig.include = tsConfigResults.include; - results.tsconfig.exclude = tsConfigResults.exclude; - results.tsconfig.extends = tsConfigResults.extends; - } - } - catch (e) { - catchError(results.diagnostics, e); - } - return results; -}; -/** - * Load a Stencil configuration file from disk - * - * @param diagnostics a series of diagnostics used to track errors & warnings - * throughout the loading process. Entries may be added to this list in the - * event of an error. - * @param configPath the path to the configuration file to load - * @returns an unvalidated configuration. In the event of an error, additional - * diagnostics may be pushed to the provided `diagnostics` argument and `null` - * will be returned. - */ -const loadConfigFile = async (diagnostics, configPath) => { - let config = null; - if (isString(configPath)) { - // the passed in config was a string, so it's probably a path to the config we need to load - const configFileData = await evaluateConfigFile(diagnostics, configPath); - if (hasError(diagnostics)) { - return config; - } - if (!configFileData.config) { - const err = buildError(diagnostics); - err.messageText = `Invalid Stencil configuration file "${configPath}". Missing "config" property.`; - err.absFilePath = configPath; - return config; - } - config = configFileData.config; - config.configPath = normalizePath(configPath); - } - return config; -}; -/** - * Load the configuration file, based on the environment that Stencil is being run in - * - * @param diagnostics a series of diagnostics used to track errors & warnings - * throughout the loading process. Entries may be added to this list in the - * event of an error. - * @param configFilePath the path to the configuration file to load - * @returns an unvalidated configuration. In the event of an error, additional - * diagnostics may be pushed to the provided `diagnostics` argument and `null` - * will be returned. - */ -const evaluateConfigFile = async (diagnostics, configFilePath) => { - let configFileData = null; - try { - const results = nodeRequire(configFilePath); - diagnostics.push(...results.diagnostics); - configFileData = results.module; - } - catch (e) { - catchError(diagnostics, e); - } - return configFileData; -}; -//# sourceMappingURL=load-config.js.map \ No newline at end of file diff --git a/build/compiler/config/load-config.js.map b/build/compiler/config/load-config.js.map deleted file mode 100644 index 1898ac5c6ad..00000000000 --- a/build/compiler/config/load-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"load-config.js","sourceRoot":"","sources":["../../../src/compiler/config/load-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAG/B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,OAAuB,EAAE,EAA8B,EAAE;;IACxF,MAAM,OAAO,GAAsB;QACjC,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,EAAE;QACf,QAAQ,EAAE;YACR,IAAI,EAAE,IAAI;YACV,eAAe,EAAE,IAAI;YACrB,KAAK,EAAE,IAAI;YACX,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,IAAI;SACd;KACF,CAAC;IAEF,MAAM,aAAa,GAAsB,EAAE,CAAC;IAE5C,IAAI;QACF,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC;QACjC,IAAI,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC;QAEtD,wGAAwG;QACxG,gHAAgH;QAChH,8DAA8D;QAC9D,MAAM,GAAG,GAAG,MAAA,IAAI,CAAC,GAAG,mCAAI,aAAa,EAAE,CAAC;QAExC,MAAM,gBAAgB,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QA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BAA+B,CAAC;YACnG,GAAG,CAAC,WAAW,GAAG,UAAU,CAAC;YAC7B,OAAO,MAAM,CAAC;SACf;QACD,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;QAC/B,MAAM,CAAC,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC;KAC/C;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,kBAAkB,GAAG,KAAK,EAC9B,WAAyB,EACzB,cAAsB,EAC0B,EAAE;IAClD,IAAI,cAAc,GAA0C,IAAI,CAAC;IAEjE,IAAI;QACF,MAAM,OAAO,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;QAC5C,WAAW,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;QACzC,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;KACjC;IAAC,OAAO,CAAM,EAAE;QACf,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;KAC5B;IAED,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/outputs/index.d.ts b/build/compiler/config/outputs/index.d.ts deleted file mode 100644 index 807482eca39..00000000000 --- a/build/compiler/config/outputs/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const validateOutputTargets: (config: d.ValidatedConfig, diagnostics: d.Diagnostic[]) => void; diff --git a/build/compiler/config/outputs/index.js b/build/compiler/config/outputs/index.js deleted file mode 100644 index 2de454e2a79..00000000000 --- a/build/compiler/config/outputs/index.js +++ /dev/null @@ -1,35 +0,0 @@ -import { buildError, isValidConfigOutputTarget, VALID_CONFIG_OUTPUT_TARGETS } from '@utils'; -import { validateCollection } from './validate-collection'; -import { validateCustomElement } from './validate-custom-element'; -import { validateCustomOutput } from './validate-custom-output'; -import { validateDist } from './validate-dist'; -import { validateDocs } from './validate-docs'; -import { validateHydrateScript } from './validate-hydrate-script'; -import { validateLazy } from './validate-lazy'; -import { validateStats } from './validate-stats'; -import { validateWww } from './validate-www'; -export const validateOutputTargets = (config, diagnostics) => { - const userOutputs = (config.outputTargets || []).slice(); - userOutputs.forEach((outputTarget) => { - if (!isValidConfigOutputTarget(outputTarget.type)) { - const err = buildError(diagnostics); - err.messageText = `Invalid outputTarget type "${outputTarget.type}". Valid outputTarget types include: ${VALID_CONFIG_OUTPUT_TARGETS.map((t) => `"${t}"`).join(', ')}`; - } - }); - config.outputTargets = [ - ...validateCollection(config, userOutputs), - ...validateCustomElement(config, userOutputs), - ...validateCustomOutput(config, diagnostics, userOutputs), - ...validateLazy(config, userOutputs), - ...validateWww(config, diagnostics, userOutputs), - ...validateDist(config, userOutputs), - ...validateDocs(config, diagnostics, userOutputs), - ...validateStats(config, userOutputs), - ]; - // hydrate also gets info from the www output - config.outputTargets = [ - ...config.outputTargets, - ...validateHydrateScript(config, [...userOutputs, ...config.outputTargets]), - ]; -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/compiler/config/outputs/index.js.map b/build/compiler/config/outputs/index.js.map deleted file mode 100644 index 81145a4063f..00000000000 --- a/build/compiler/config/outputs/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/compiler/config/outputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAG5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,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,MAAM,CAAC,aAAa;QACvB,GAAG,qBAAqB,CAAC,MAAM,EAAE,CAAC,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;KAC5E,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-collection.d.ts b/build/compiler/config/outputs/validate-collection.d.ts deleted file mode 100644 index db8958ea871..00000000000 --- a/build/compiler/config/outputs/validate-collection.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type * as d from '../../../declarations'; -/** - * Validate and return DIST_COLLECTION output targets, ensuring that the `dir` - * property is set on them. - * - * @param config a validated configuration object - * @param userOutputs an array of output targets - * @returns an array of validated DIST_COLLECTION output targets - */ -export declare const validateCollection: (config: d.ValidatedConfig, userOutputs: d.OutputTarget[]) => d.OutputTargetDistCollection[]; diff --git a/build/compiler/config/outputs/validate-collection.js b/build/compiler/config/outputs/validate-collection.js deleted file mode 100644 index 4ab607bbb77..00000000000 --- a/build/compiler/config/outputs/validate-collection.js +++ /dev/null @@ -1,23 +0,0 @@ -import { isBoolean, isOutputTargetDistCollection } from '@utils'; -import { getAbsolutePath } from '../config-utils'; -/** - * Validate and return DIST_COLLECTION output targets, ensuring that the `dir` - * property is set on them. - * - * @param config a validated configuration object - * @param userOutputs an array of output targets - * @returns an array of validated DIST_COLLECTION output targets - */ -export const validateCollection = (config, userOutputs) => { - return userOutputs.filter(isOutputTargetDistCollection).map((outputTarget) => { - var _a; - return { - ...outputTarget, - transformAliasedImportPaths: isBoolean(outputTarget.transformAliasedImportPaths) - ? outputTarget.transformAliasedImportPaths - : true, - dir: getAbsolutePath(config, (_a = outputTarget.dir) !== null && _a !== void 0 ? _a : 'dist/collection'), - }; - }); -}; -//# sourceMappingURL=validate-collection.js.map \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-collection.js.map b/build/compiler/config/outputs/validate-collection.js.map deleted file mode 100644 index b60c111365c..00000000000 --- a/build/compiler/config/outputs/validate-collection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-collection.js","sourceRoot":"","sources":["../../../../src/compiler/config/outputs/validate-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAGjE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,MAAyB,EACzB,WAA6B,EACG,EAAE;IAClC,OAAO,WAAW,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE;;QAC3E,OAAO;YACL,GAAG,YAAY;YACf,2BAA2B,EAAE,SAAS,CAAC,YAAY,CAAC,2BAA2B,CAAC;gBAC9E,CAAC,CAAC,YAAY,CAAC,2BAA2B;gBAC1C,CAAC,CAAC,IAAI;YACR,GAAG,EAAE,eAAe,CAAC,MAAM,EAAE,MAAA,YAAY,CAAC,GAAG,mCAAI,iBAAiB,CAAC;SACpE,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-custom-element.d.ts b/build/compiler/config/outputs/validate-custom-element.d.ts deleted file mode 100644 index afdcc3d0c2e..00000000000 --- a/build/compiler/config/outputs/validate-custom-element.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { OutputTarget, OutputTargetCopy, OutputTargetDistCustomElements, OutputTargetDistTypes, ValidatedConfig } from '../../../declarations'; -/** - * Validate one or more `dist-custom-elements` output targets. Validation of an output target may involve back-filling - * fields that are omitted with sensible defaults and/or creating additional supporting output targets that were not - * explicitly defined by the user - * @param config the Stencil configuration associated with the project being compiled - * @param userOutputs the output target(s) specified by the user - * @returns the validated output target(s) - */ -export declare const validateCustomElement: (config: ValidatedConfig, userOutputs: ReadonlyArray) => ReadonlyArray; diff --git a/build/compiler/config/outputs/validate-custom-element.js b/build/compiler/config/outputs/validate-custom-element.js deleted file mode 100644 index cd90bc58250..00000000000 --- a/build/compiler/config/outputs/validate-custom-element.js +++ /dev/null @@ -1,56 +0,0 @@ -import { COPY, DIST_TYPES, isBoolean, isOutputTargetDistCustomElements, join } from '@utils'; -import { CustomElementsExportBehaviorOptions } from '../../../declarations'; -import { getAbsolutePath } from '../config-utils'; -import { validateCopy } from '../validate-copy'; -/** - * Validate one or more `dist-custom-elements` output targets. Validation of an output target may involve back-filling - * fields that are omitted with sensible defaults and/or creating additional supporting output targets that were not - * explicitly defined by the user - * @param config the Stencil configuration associated with the project being compiled - * @param userOutputs the output target(s) specified by the user - * @returns the validated output target(s) - */ -export const validateCustomElement = (config, userOutputs) => { - const defaultDir = 'dist'; - return userOutputs.filter(isOutputTargetDistCustomElements).reduce((outputs, o) => { - const outputTarget = { - ...o, - dir: getAbsolutePath(config, o.dir || join(defaultDir, 'components')), - }; - if (!isBoolean(outputTarget.empty)) { - outputTarget.empty = true; - } - if (!isBoolean(outputTarget.externalRuntime)) { - outputTarget.externalRuntime = true; - } - if (!isBoolean(outputTarget.generateTypeDeclarations)) { - outputTarget.generateTypeDeclarations = true; - } - // Export behavior must be defined on the validated target config and must - // be one of the export behavior valid values - if (outputTarget.customElementsExportBehavior == null || - !CustomElementsExportBehaviorOptions.includes(outputTarget.customElementsExportBehavior)) { - outputTarget.customElementsExportBehavior = 'default'; - } - // unlike other output targets, Stencil does not allow users to define the output location of types at this time - if (outputTarget.generateTypeDeclarations) { - const typesDirectory = getAbsolutePath(config, join(defaultDir, 'types')); - outputs.push({ - type: DIST_TYPES, - dir: outputTarget.dir, - typesDir: typesDirectory, - }); - } - outputTarget.copy = validateCopy(outputTarget.copy, []); - if (outputTarget.copy.length > 0) { - outputs.push({ - type: COPY, - dir: config.rootDir, - copy: [...outputTarget.copy], - }); - } - outputs.push(outputTarget); - return outputs; - }, []); -}; -//# sourceMappingURL=validate-custom-element.js.map \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-custom-element.js.map b/build/compiler/config/outputs/validate-custom-element.js.map deleted file mode 100644 index c4463655498..00000000000 --- a/build/compiler/config/outputs/validate-custom-element.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-custom-element.js","sourceRoot":"","sources":["../../../../src/compiler/config/outputs/validate-custom-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,gCAAgC,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAS7F,OAAO,EAAE,mCAAmC,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,MAAuB,EACvB,WAAwC,EACkD,EAAE;IAC5F,MAAM,UAAU,GAAG,MAAM,CAAC;IAE1B,OAAO,WAAW,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC,MAAM,CAChE,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE;QACb,MAAM,YAAY,GAAG;YACnB,GAAG,CAAC;YACJ,GAAG,EAAE,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;SACtE,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;YAClC,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC;SAC3B;QACD,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,eAAe,CAAC,EAAE;YAC5C,YAAY,CAAC,eAAe,GAAG,IAAI,CAAC;SACrC;QACD,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,wBAAwB,CAAC,EAAE;YACrD,YAAY,CAAC,wBAAwB,GAAG,IAAI,CAAC;SAC9C;QACD,0EAA0E;QAC1E,6CAA6C;QAC7C,IACE,YAAY,CAAC,4BAA4B,IAAI,IAAI;YACjD,CAAC,mCAAmC,CAAC,QAAQ,CAAC,YAAY,CAAC,4BAA4B,CAAC,EACxF;YACA,YAAY,CAAC,4BAA4B,GAAG,SAAS,CAAC;SACvD;QAED,gHAAgH;QAChH,IAAI,YAAY,CAAC,wBAAwB,EAAE;YACzC,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;YAC1E,OAAO,CAAC,IAAI,CAAC;gBACX,IAAI,EAAE,UAAU;gBAChB,GAAG,EAAE,YAAY,CAAC,GAAG;gBACrB,QAAQ,EAAE,cAAc;aACzB,CAAC,CAAC;SACJ;QAED,YAAY,CAAC,IAAI,GAAG,YAAY,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAExD,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;YAChC,OAAO,CAAC,IAAI,CAAC;gBACX,IAAI,EAAE,IAAI;gBACV,GAAG,EAAE,MAAM,CAAC,OAAO;gBACnB,IAAI,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,CAAC;aAC7B,CAAC,CAAC;SACJ;QACD,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE3B,OAAO,OAAO,CAAC;IACjB,CAAC,EACD,EAAmF,CACpF,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-custom-output.d.ts b/build/compiler/config/outputs/validate-custom-output.d.ts deleted file mode 100644 index 4c53b17c09d..00000000000 --- a/build/compiler/config/outputs/validate-custom-output.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const validateCustomOutput: (config: d.ValidatedConfig, diagnostics: d.Diagnostic[], userOutputs: d.OutputTarget[]) => d.OutputTargetCustom[]; diff --git a/build/compiler/config/outputs/validate-custom-output.js b/build/compiler/config/outputs/validate-custom-output.js deleted file mode 100644 index ca22cd49a42..00000000000 --- a/build/compiler/config/outputs/validate-custom-output.js +++ /dev/null @@ -1,24 +0,0 @@ -import { catchError, COPY, isOutputTargetCustom } from '@utils'; -export const validateCustomOutput = (config, diagnostics, userOutputs) => { - return userOutputs.filter(isOutputTargetCustom).map((o) => { - if (o.validate) { - const localDiagnostics = []; - try { - o.validate(config, diagnostics); - } - catch (e) { - catchError(localDiagnostics, e); - } - if (o.copy && o.copy.length > 0) { - config.outputTargets.push({ - type: COPY, - dir: config.rootDir, - copy: [...o.copy], - }); - } - diagnostics.push(...localDiagnostics); - } - return o; - }); -}; -//# sourceMappingURL=validate-custom-output.js.map \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-custom-output.js.map b/build/compiler/config/outputs/validate-custom-output.js.map deleted file mode 100644 index 386fd638bd1..00000000000 --- a/build/compiler/config/outputs/validate-custom-output.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-custom-output.js","sourceRoot":"","sources":["../../../../src/compiler/config/outputs/validate-custom-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAIhE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,MAAyB,EACzB,WAA2B,EAC3B,WAA6B,EAC7B,EAAE;IACF,OAAO,WAAW,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACxD,IAAI,CAAC,CAAC,QAAQ,EAAE;YACd,MAAM,gBAAgB,GAAmB,EAAE,CAAC;YAC5C,IAAI;gBACF,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;aACjC;YAAC,OAAO,CAAM,EAAE;gBACf,UAAU,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;aACjC;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC/B,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC;oBACxB,IAAI,EAAE,IAAI;oBACV,GAAG,EAAE,MAAM,CAAC,OAAO;oBACnB,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;iBAClB,CAAC,CAAC;aACJ;YACD,WAAW,CAAC,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAC;SACvC;QACD,OAAO,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-dist.d.ts b/build/compiler/config/outputs/validate-dist.d.ts deleted file mode 100644 index 3b87e973f6d..00000000000 --- a/build/compiler/config/outputs/validate-dist.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type * as d from '../../../declarations'; -/** - * Validate that the "dist" output targets are valid and ready to go. - * - * This function will also add in additional output targets to its output, based on the input supplied. - * - * @param config the compiler config, what else? - * @param userOutputs a user-supplied list of output targets. - * @returns a list of OutputTargets which have been validated for us. - */ -export declare const validateDist: (config: d.ValidatedConfig, userOutputs: d.OutputTarget[]) => d.OutputTarget[]; diff --git a/build/compiler/config/outputs/validate-dist.js b/build/compiler/config/outputs/validate-dist.js deleted file mode 100644 index 68206808e54..00000000000 --- a/build/compiler/config/outputs/validate-dist.js +++ /dev/null @@ -1,142 +0,0 @@ -import { COPY, DIST_COLLECTION, DIST_GLOBAL_STYLES, DIST_LAZY, DIST_LAZY_LOADER, DIST_TYPES, getComponentsDtsTypesFilePath, isBoolean, isOutputTargetDist, isString, join, resolve, } from '@utils'; -import { isAbsolute } from 'path'; -import { getAbsolutePath } from '../config-utils'; -import { validateCopy } from '../validate-copy'; -/** - * Validate that the "dist" output targets are valid and ready to go. - * - * This function will also add in additional output targets to its output, based on the input supplied. - * - * @param config the compiler config, what else? - * @param userOutputs a user-supplied list of output targets. - * @returns a list of OutputTargets which have been validated for us. - */ -export const validateDist = (config, userOutputs) => { - var _a; - const distOutputTargets = userOutputs.filter(isOutputTargetDist); - const outputs = []; - for (const outputTarget of distOutputTargets) { - const distOutputTarget = validateOutputTargetDist(config, outputTarget); - outputs.push(distOutputTarget); - const namespace = config.fsNamespace || 'app'; - const lazyDir = join(distOutputTarget.buildDir, namespace); - // Lazy build for CDN in dist - outputs.push({ - type: DIST_LAZY, - esmDir: lazyDir, - systemDir: config.buildEs5 ? lazyDir : undefined, - systemLoaderFile: config.buildEs5 ? join(lazyDir, namespace + '.js') : undefined, - legacyLoaderFile: join(distOutputTarget.buildDir, namespace + '.js'), - polyfills: outputTarget.polyfills !== undefined ? !!distOutputTarget.polyfills : true, - isBrowserBuild: true, - empty: distOutputTarget.empty, - }); - outputs.push({ - type: COPY, - dir: lazyDir, - copyAssets: 'dist', - copy: ((_a = distOutputTarget.copy) !== null && _a !== void 0 ? _a : []).concat(), - }); - outputs.push({ - type: DIST_GLOBAL_STYLES, - file: join(lazyDir, `${config.fsNamespace}.css`), - }); - outputs.push({ - type: DIST_TYPES, - dir: distOutputTarget.dir, - typesDir: distOutputTarget.typesDir, - }); - if (config.buildDist) { - if (distOutputTarget.collectionDir) { - outputs.push({ - type: DIST_COLLECTION, - dir: distOutputTarget.dir, - collectionDir: distOutputTarget.collectionDir, - empty: distOutputTarget.empty, - transformAliasedImportPaths: distOutputTarget.transformAliasedImportPathsInCollection, - }); - outputs.push({ - type: COPY, - dir: distOutputTarget.collectionDir, - copyAssets: 'collection', - copy: [...distOutputTarget.copy, { src: '**/*.svg' }, { src: '**/*.js' }], - }); - } - const esmDir = join(distOutputTarget.dir, 'esm'); - const esmEs5Dir = config.buildEs5 ? join(distOutputTarget.dir, 'esm-es5') : undefined; - const cjsDir = join(distOutputTarget.dir, 'cjs'); - // Create lazy output-target - outputs.push({ - type: DIST_LAZY, - esmDir, - esmEs5Dir, - cjsDir, - cjsIndexFile: join(distOutputTarget.dir, 'index.cjs.js'), - esmIndexFile: join(distOutputTarget.dir, 'index.js'), - polyfills: true, - empty: distOutputTarget.empty, - }); - // Create output target that will generate the /loader entry-point - outputs.push({ - type: DIST_LAZY_LOADER, - dir: distOutputTarget.esmLoaderPath, - esmDir, - esmEs5Dir, - cjsDir, - componentDts: getComponentsDtsTypesFilePath(distOutputTarget), - empty: distOutputTarget.empty, - }); - } - } - return outputs; -}; -/** - * Validate that an OutputTargetDist object has what it needs to do it's job. - * To enforce this, we have this function return - * `Required`, giving us a compile-time check that all - * properties are defined (with either user-supplied or default values). - * - * @param config the current config - * @param o the OutputTargetDist object we want to validate - * @returns `Required`, i.e. `d.OutputTargetDist` with all - * optional properties rendered un-optional. - */ -const validateOutputTargetDist = (config, o) => { - var _a, _b; - // we need to create an object with a bunch of default values here so that - // the typescript compiler can infer their types correctly - const outputTarget = { - ...o, - dir: getAbsolutePath(config, o.dir || DEFAULT_DIR), - buildDir: isString(o.buildDir) ? o.buildDir : DEFAULT_BUILD_DIR, - collectionDir: o.collectionDir !== undefined ? o.collectionDir : DEFAULT_COLLECTION_DIR, - typesDir: o.typesDir || DEFAULT_TYPES_DIR, - esmLoaderPath: o.esmLoaderPath || DEFAULT_ESM_LOADER_DIR, - copy: validateCopy((_a = o.copy) !== null && _a !== void 0 ? _a : [], []), - polyfills: isBoolean(o.polyfills) ? o.polyfills : false, - empty: isBoolean(o.empty) ? o.empty : true, - transformAliasedImportPathsInCollection: isBoolean(o.transformAliasedImportPathsInCollection) - ? o.transformAliasedImportPathsInCollection - : true, - isPrimaryPackageOutputTarget: (_b = o.isPrimaryPackageOutputTarget) !== null && _b !== void 0 ? _b : false, - }; - if (!isAbsolute(outputTarget.buildDir)) { - outputTarget.buildDir = join(outputTarget.dir, outputTarget.buildDir); - } - if (outputTarget.collectionDir && !isAbsolute(outputTarget.collectionDir)) { - outputTarget.collectionDir = join(outputTarget.dir, outputTarget.collectionDir); - } - if (!isAbsolute(outputTarget.esmLoaderPath)) { - outputTarget.esmLoaderPath = resolve(outputTarget.dir, outputTarget.esmLoaderPath); - } - if (!isAbsolute(outputTarget.typesDir)) { - outputTarget.typesDir = join(outputTarget.dir, outputTarget.typesDir); - } - return outputTarget; -}; -const DEFAULT_DIR = 'dist'; -const DEFAULT_BUILD_DIR = ''; -const DEFAULT_COLLECTION_DIR = 'collection'; -const DEFAULT_TYPES_DIR = 'types'; -const DEFAULT_ESM_LOADER_DIR = 'loader'; -//# sourceMappingURL=validate-dist.js.map \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-dist.js.map b/build/compiler/config/outputs/validate-dist.js.map deleted file mode 100644 index 50782cf7a56..00000000000 --- a/build/compiler/config/outputs/validate-dist.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-dist.js","sourceRoot":"","sources":["../../../../src/compiler/config/outputs/validate-dist.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,6BAA6B,EAC7B,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,IAAI,EACJ,OAAO,GACR,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAyB,EAAE,WAA6B,EAAoB,EAAE;;IACzG,MAAM,iBAAiB,GAAG,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAEjE,MAAM,OAAO,GAAqB,EAAE,CAAC;IAErC,KAAK,MAAM,YAAY,IAAI,iBAAiB,EAAE;QAC5C,MAAM,gBAAgB,GAAG,wBAAwB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QACxE,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAE/B,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,IAAI,KAAK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C,CAAC,uCAAuC;YAC3C,CAAC,CAAC,IAAI;QACR,4BAA4B,EAAE,MAAA,CAAC,CAAC,4BAA4B,mCAAI,KAAK;KAC/B,CAAC;IAEzC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE;QACtC,YAAY,CAAC,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;KACvE;IAED,IAAI,YAAY,CAAC,aAAa,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE;QACzE,YAAY,CAAC,aAAa,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;KACjF;IAED,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE;QAC3C,YAAY,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;KACpF;IAED,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE;QACtC,YAAY,CAAC,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;KACvE;IAED,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC;AAC3B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAC5C,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAClC,MAAM,sBAAsB,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-docs.d.ts b/build/compiler/config/outputs/validate-docs.d.ts deleted file mode 100644 index f5a5a72a264..00000000000 --- a/build/compiler/config/outputs/validate-docs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const validateDocs: (config: d.ValidatedConfig, diagnostics: d.Diagnostic[], userOutputs: d.OutputTarget[]) => d.OutputTarget[]; diff --git a/build/compiler/config/outputs/validate-docs.js b/build/compiler/config/outputs/validate-docs.js deleted file mode 100644 index ba2630c0699..00000000000 --- a/build/compiler/config/outputs/validate-docs.js +++ /dev/null @@ -1,85 +0,0 @@ -import { buildError, DOCS_JSON, DOCS_README, isFunction, isOutputTargetDocsCustom, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isString, join, } from '@utils'; -import { isAbsolute } from 'path'; -import { NOTE } from '../../docs/constants'; -export const validateDocs = (config, diagnostics, userOutputs) => { - const docsOutputs = []; - // json docs flag - if (isString(config.flags.docsJson)) { - docsOutputs.push(validateJsonDocsOutputTarget(config, diagnostics, { - type: DOCS_JSON, - file: config.flags.docsJson, - })); - } - // json docs - const jsonDocsOutputs = userOutputs.filter(isOutputTargetDocsJson); - jsonDocsOutputs.forEach((jsonDocsOutput) => { - docsOutputs.push(validateJsonDocsOutputTarget(config, diagnostics, jsonDocsOutput)); - }); - // readme docs flag - if (config.flags.docs || config.flags.task === 'docs') { - if (!userOutputs.some(isOutputTargetDocsReadme)) { - // didn't provide a docs config, so let's add one - docsOutputs.push(validateReadmeOutputTarget(config, { type: DOCS_README })); - } - } - // readme docs - const readmeDocsOutputs = userOutputs.filter(isOutputTargetDocsReadme); - readmeDocsOutputs.forEach((readmeDocsOutput) => { - docsOutputs.push(validateReadmeOutputTarget(config, readmeDocsOutput)); - }); - // custom docs - const customDocsOutputs = userOutputs.filter(isOutputTargetDocsCustom); - customDocsOutputs.forEach((jsonDocsOutput) => { - docsOutputs.push(validateCustomDocsOutputTarget(diagnostics, jsonDocsOutput)); - }); - // vscode docs - const vscodeDocsOutputs = userOutputs.filter(isOutputTargetDocsVscode); - vscodeDocsOutputs.forEach((vscodeDocsOutput) => { - docsOutputs.push(validateVScodeDocsOutputTarget(diagnostics, vscodeDocsOutput)); - }); - return docsOutputs; -}; -const validateReadmeOutputTarget = (config, outputTarget) => { - if (!isString(outputTarget.dir)) { - outputTarget.dir = config.srcDir; - } - if (!isAbsolute(outputTarget.dir)) { - outputTarget.dir = join(config.rootDir, outputTarget.dir); - } - if (outputTarget.footer == null) { - outputTarget.footer = NOTE; - } - outputTarget.strict = !!outputTarget.strict; - return outputTarget; -}; -const validateJsonDocsOutputTarget = (config, diagnostics, outputTarget) => { - if (!isString(outputTarget.file)) { - const err = buildError(diagnostics); - err.messageText = `docs-json outputTarget missing the "file" option`; - } - outputTarget.file = join(config.rootDir, outputTarget.file); - if (isString(outputTarget.typesFile)) { - outputTarget.typesFile = join(config.rootDir, outputTarget.typesFile); - } - else if (outputTarget.typesFile !== null && outputTarget.file.endsWith('.json')) { - outputTarget.typesFile = outputTarget.file.replace(/\.json$/, '.d.ts'); - } - outputTarget.strict = !!outputTarget.strict; - return outputTarget; -}; -const validateCustomDocsOutputTarget = (diagnostics, outputTarget) => { - if (!isFunction(outputTarget.generator)) { - const err = buildError(diagnostics); - err.messageText = `docs-custom outputTarget missing the "generator" function`; - } - outputTarget.strict = !!outputTarget.strict; - return outputTarget; -}; -const validateVScodeDocsOutputTarget = (diagnostics, outputTarget) => { - if (!isString(outputTarget.file)) { - const err = buildError(diagnostics); - err.messageText = `docs-vscode outputTarget missing the "file" path`; - } - return outputTarget; -}; -//# sourceMappingURL=validate-docs.js.map \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-docs.js.map b/build/compiler/config/outputs/validate-docs.js.map deleted file mode 100644 index d8c287f853f..00000000000 --- a/build/compiler/config/outputs/validate-docs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-docs.js","sourceRoot":"","sources":["../../../../src/compiler/config/outputs/validate-docs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,QAAQ,EACR,IAAI,GACL,MAAM,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CAAC,WAAW,CAAC,CAAC;QACpC,GAAG,CAAC,WAAW,GAAG,kDAAkD,CAAC;KACtE;IACD,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-hydrate-script.d.ts b/build/compiler/config/outputs/validate-hydrate-script.d.ts deleted file mode 100644 index 30d3df20151..00000000000 --- a/build/compiler/config/outputs/validate-hydrate-script.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const validateHydrateScript: (config: d.ValidatedConfig, userOutputs: d.OutputTarget[]) => d.OutputTargetHydrate[]; diff --git a/build/compiler/config/outputs/validate-hydrate-script.js b/build/compiler/config/outputs/validate-hydrate-script.js deleted file mode 100644 index 82737c1232d..00000000000 --- a/build/compiler/config/outputs/validate-hydrate-script.js +++ /dev/null @@ -1,48 +0,0 @@ -import { DIST_HYDRATE_SCRIPT, isBoolean, isOutputTargetDist, isOutputTargetHydrate, isOutputTargetWww, isString, join, } from '@utils'; -import { isAbsolute } from 'path'; -export const validateHydrateScript = (config, userOutputs) => { - const output = []; - const hasHydrateOutputTarget = userOutputs.some(isOutputTargetHydrate); - if (!hasHydrateOutputTarget) { - // we don't already have a hydrate output target - // let's still see if we require one because of other output targets - const hasWwwOutput = userOutputs.filter(isOutputTargetWww).some((o) => isString(o.indexHtml)); - const shouldBuildHydrate = config.flags.prerender || config.flags.ssr; - if (hasWwwOutput && shouldBuildHydrate) { - // we're prerendering a www output target, so we'll need a hydrate app - let hydrateDir; - const distOutput = userOutputs.find(isOutputTargetDist); - if (distOutput != null && isString(distOutput.dir)) { - hydrateDir = join(distOutput.dir, 'hydrate'); - } - else { - hydrateDir = 'dist/hydrate'; - } - const hydrateForWwwOutputTarget = { - type: DIST_HYDRATE_SCRIPT, - dir: hydrateDir, - }; - userOutputs.push(hydrateForWwwOutputTarget); - } - } - const hydrateOutputTargets = userOutputs.filter(isOutputTargetHydrate); - hydrateOutputTargets.forEach((outputTarget) => { - if (!isString(outputTarget.dir)) { - // no directory given, see if we've got a dist to go off of - outputTarget.dir = 'hydrate'; - } - if (!isAbsolute(outputTarget.dir)) { - outputTarget.dir = join(config.rootDir, outputTarget.dir); - } - if (!isBoolean(outputTarget.empty)) { - outputTarget.empty = true; - } - outputTarget.external = outputTarget.external || []; - outputTarget.external.push('fs'); - outputTarget.external.push('path'); - outputTarget.external.push('crypto'); - output.push(outputTarget); - }); - return output; -}; -//# sourceMappingURL=validate-hydrate-script.js.map \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-hydrate-script.js.map b/build/compiler/config/outputs/validate-hydrate-script.js.map deleted file mode 100644 index facf5f2d430..00000000000 --- a/build/compiler/config/outputs/validate-hydrate-script.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-hydrate-script.js","sourceRoot":"","sources":["../../../../src/compiler/config/outputs/validate-hydrate-script.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,QAAQ,EACR,IAAI,GACL,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAyB,EAAE,WAA6B,EAAE,EAAE;IAChG,MAAM,MAAM,GAA4B,EAAE,CAAC;IAE3C,MAAM,sBAAsB,GAAG,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAEvE,IAAI,CAAC,sBAAsB,EAAE;QAC3B,gDAAgD;QAChD,oEAAoE;QAEpE,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QAC9F,MAAM,kBAAkB,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,IAAI,MAAM,CAAC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AAM,CAAC,CAAC;QACnC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAErC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-lazy.d.ts b/build/compiler/config/outputs/validate-lazy.d.ts deleted file mode 100644 index 487c08da006..00000000000 --- a/build/compiler/config/outputs/validate-lazy.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const validateLazy: (config: d.ValidatedConfig, userOutputs: d.OutputTarget[]) => d.OutputTargetDistLazy[]; diff --git a/build/compiler/config/outputs/validate-lazy.js b/build/compiler/config/outputs/validate-lazy.js deleted file mode 100644 index f9b96469bf9..00000000000 --- a/build/compiler/config/outputs/validate-lazy.js +++ /dev/null @@ -1,18 +0,0 @@ -import { DIST_LAZY, isBoolean, isOutputTargetDistLazy, join } from '@utils'; -import { getAbsolutePath } from '../config-utils'; -export const validateLazy = (config, userOutputs) => { - return userOutputs.filter(isOutputTargetDistLazy).map((o) => { - const dir = getAbsolutePath(config, o.dir || join('dist', config.fsNamespace)); - const lazyOutput = { - type: DIST_LAZY, - esmDir: dir, - systemDir: config.buildEs5 ? dir : undefined, - systemLoaderFile: config.buildEs5 ? join(dir, `${config.fsNamespace}.js`) : undefined, - polyfills: !!o.polyfills, - isBrowserBuild: true, - empty: isBoolean(o.empty) ? o.empty : true, - }; - return lazyOutput; - }); -}; -//# sourceMappingURL=validate-lazy.js.map \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-lazy.js.map b/build/compiler/config/outputs/validate-lazy.js.map deleted file mode 100644 index 688cfa30f8a..00000000000 --- a/build/compiler/config/outputs/validate-lazy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-lazy.js","sourceRoot":"","sources":["../../../../src/compiler/config/outputs/validate-lazy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG5E,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAyB,EAAE,WAA6B,EAAE,EAAE;IACvF,OAAO,WAAW,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QAC1D,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAC/E,MAAM,UAAU,GAA2B;YACzC,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS;YAC5C,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;YACrF,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;YACxB,cAAc,EAAE,IAAI;YACpB,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;SAC3C,CAAC;QACF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-stats.d.ts b/build/compiler/config/outputs/validate-stats.d.ts deleted file mode 100644 index a2b096a5c88..00000000000 --- a/build/compiler/config/outputs/validate-stats.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const validateStats: (userConfig: d.ValidatedConfig, userOutputs: d.OutputTarget[]) => d.OutputTargetStats[]; diff --git a/build/compiler/config/outputs/validate-stats.js b/build/compiler/config/outputs/validate-stats.js deleted file mode 100644 index e0921ad1db6..00000000000 --- a/build/compiler/config/outputs/validate-stats.js +++ /dev/null @@ -1,24 +0,0 @@ -import { isOutputTargetStats, join, STATS } from '@utils'; -import { isAbsolute } from 'path'; -export const validateStats = (userConfig, userOutputs) => { - const outputTargets = []; - if (userConfig.flags.stats) { - const hasOutputTarget = userOutputs.some(isOutputTargetStats); - if (!hasOutputTarget) { - outputTargets.push({ - type: STATS, - }); - } - } - outputTargets.push(...userOutputs.filter(isOutputTargetStats)); - outputTargets.forEach((outputTarget) => { - if (!outputTarget.file) { - outputTarget.file = 'stencil-stats.json'; - } - if (!isAbsolute(outputTarget.file)) { - outputTarget.file = join(userConfig.rootDir, outputTarget.file); - } - }); - return outputTargets; -}; -//# sourceMappingURL=validate-stats.js.map \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-stats.js.map b/build/compiler/config/outputs/validate-stats.js.map deleted file mode 100644 index e81b078d05e..00000000000 --- a/build/compiler/config/outputs/validate-stats.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-stats.js","sourceRoot":"","sources":["../../../../src/compiler/config/outputs/validate-stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,UAA6B,EAAE,WAA6B,EAAE,EAAE;IAC5F,MAAM,aAAa,GAA0B,EAAE,CAAC;IAEhD,IAAI,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE;QAC1B,MAAM,eAAe,GAAG,WAAW,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAC9D,IAAI,CAAC,eAAe,EAAE;YACpB,aAAa,CAAC,IAAI,CAAC;gBACjB,IAAI,EAAE,KAAK;aACZ,CAAC,CAAC;SACJ;KACF;IAED,aAAa,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC/D,aAAa,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE;QACrC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;YACtB,YAAY,CAAC,IAAI,GAAG,oBAAoB,CAAC;SAC1C;QAED,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YAClC,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;SACjE;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-www.d.ts b/build/compiler/config/outputs/validate-www.d.ts deleted file mode 100644 index 8a2a81e4242..00000000000 --- a/build/compiler/config/outputs/validate-www.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const validateWww: (config: d.ValidatedConfig, diagnostics: d.Diagnostic[], userOutputs: d.OutputTarget[]) => (d.OutputTargetCopy | d.OutputTargetDistLazy | d.OutputTargetDistGlobalStyles | d.OutputTargetWww)[]; diff --git a/build/compiler/config/outputs/validate-www.js b/build/compiler/config/outputs/validate-www.js deleted file mode 100644 index 4e8fdd13365..00000000000 --- a/build/compiler/config/outputs/validate-www.js +++ /dev/null @@ -1,94 +0,0 @@ -import { buildError, COPY, DIST_GLOBAL_STYLES, DIST_LAZY, isBoolean, isOutputTargetDist, isOutputTargetWww, isString, join, WWW, } from '@utils'; -import { isAbsolute } from 'path'; -import { getAbsolutePath } from '../config-utils'; -import { validateCopy } from '../validate-copy'; -import { validatePrerender } from '../validate-prerender'; -import { validateServiceWorker } from '../validate-service-worker'; -export const validateWww = (config, diagnostics, userOutputs) => { - const hasOutputTargets = userOutputs.length > 0; - const hasE2eTests = !!config.flags.e2e; - const userWwwOutputs = userOutputs.filter(isOutputTargetWww); - if (!hasOutputTargets || - (hasE2eTests && !userOutputs.some(isOutputTargetWww) && !userOutputs.some(isOutputTargetDist))) { - userWwwOutputs.push({ type: WWW }); - } - if (config.flags.prerender && userWwwOutputs.length === 0) { - const err = buildError(diagnostics); - err.messageText = `You need at least one "www" output target configured in your stencil.config.ts, when the "--prerender" flag is used`; - } - return userWwwOutputs.reduce((outputs, o) => { - const outputTarget = validateWwwOutputTarget(config, o, diagnostics); - outputs.push(outputTarget); - // Add dist-lazy output target - const buildDir = outputTarget.buildDir; - outputs.push({ - type: DIST_LAZY, - dir: buildDir, - esmDir: buildDir, - systemDir: config.buildEs5 ? buildDir : undefined, - systemLoaderFile: config.buildEs5 ? join(buildDir, `${config.fsNamespace}.js`) : undefined, - polyfills: outputTarget.polyfills, - isBrowserBuild: true, - }); - // Copy for dist - outputs.push({ - type: COPY, - dir: buildDir, - copyAssets: 'dist', - }); - // Copy for www - outputs.push({ - type: COPY, - dir: outputTarget.appDir, - copy: validateCopy(outputTarget.copy, [ - { src: 'assets', warn: false }, - { src: 'manifest.json', warn: false }, - ]), - }); - // Generate global style with original name - outputs.push({ - type: DIST_GLOBAL_STYLES, - file: join(buildDir, `${config.fsNamespace}.css`), - }); - return outputs; - }, []); -}; -const validateWwwOutputTarget = (config, outputTarget, diagnostics) => { - if (!isString(outputTarget.baseUrl)) { - outputTarget.baseUrl = '/'; - } - if (!outputTarget.baseUrl.endsWith('/')) { - // Make sure the baseUrl always finish with "/" - outputTarget.baseUrl += '/'; - } - outputTarget.dir = getAbsolutePath(config, outputTarget.dir || 'www'); - // Fix "dir" to account - const pathname = new URL(outputTarget.baseUrl, 'http://localhost/').pathname; - outputTarget.appDir = join(outputTarget.dir, pathname); - if (outputTarget.appDir.endsWith('/') || outputTarget.appDir.endsWith('\\')) { - outputTarget.appDir = outputTarget.appDir.substring(0, outputTarget.appDir.length - 1); - } - if (!isString(outputTarget.buildDir)) { - outputTarget.buildDir = 'build'; - } - if (!isAbsolute(outputTarget.buildDir)) { - outputTarget.buildDir = join(outputTarget.appDir, outputTarget.buildDir); - } - if (!isString(outputTarget.indexHtml)) { - outputTarget.indexHtml = 'index.html'; - } - if (!isAbsolute(outputTarget.indexHtml)) { - outputTarget.indexHtml = join(outputTarget.appDir, outputTarget.indexHtml); - } - if (!isBoolean(outputTarget.empty)) { - outputTarget.empty = true; - } - validatePrerender(config, diagnostics, outputTarget); - validateServiceWorker(config, outputTarget); - if (outputTarget.polyfills === undefined) { - outputTarget.polyfills = true; - } - outputTarget.polyfills = !!outputTarget.polyfills; - return outputTarget; -}; -//# sourceMappingURL=validate-www.js.map \ No newline at end of file diff --git a/build/compiler/config/outputs/validate-www.js.map b/build/compiler/config/outputs/validate-www.js.map deleted file mode 100644 index 938c4f3e080..00000000000 --- a/build/compiler/config/outputs/validate-www.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-www.js","sourceRoot":"","sources":["../../../../src/compiler/config/outputs/validate-www.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,IAAI,EACJ,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,IAAI,EACJ,GAAG,GACJ,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAyB,EAAE,WAA2B,EAAE,WAA6B,EAAE,EAAE;IACnH,MAAM,gBAAgB,GAAG,WA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AAI,CAAC;KAC/B;IACD,YAAY,CAAC,SAAS,GAAG,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC;IAElD,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/load-config.spec.d.ts b/build/compiler/config/test/load-config.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/load-config.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/load-config.spec.js b/build/compiler/config/test/load-config.spec.js deleted file mode 100644 index 8d07ed02453..00000000000 --- a/build/compiler/config/test/load-config.spec.js +++ /dev/null @@ -1,105 +0,0 @@ -import { mockCompilerSystem } from '@stencil/core/testing'; -import path from 'path'; -import ts from 'typescript'; -import { normalizePath } from '../../../utils'; -import { loadConfig } from '../load-config'; -describe('load config', () => { - const configPath = require.resolve('./fixtures/stencil.config.ts'); - const configPath2 = require.resolve('./fixtures/stencil.config2.ts'); - let sys; - beforeEach(() => { - sys = mockCompilerSystem(); - jest.spyOn(ts, 'getParsedCommandLineOfConfigFile').mockReturnValue({ - options: { - target: ts.ScriptTarget.ES2017, - module: ts.ModuleKind.ESNext, - }, - fileNames: [], - errors: [], - }); - }); - afterEach(() => { - jest.clearAllMocks(); - }); - it("merges a user's configuration with a stencil.config file on disk", async () => { - const loadedConfig = await loadConfig({ - configPath: configPath2, - sys, - config: { - hashedFileNameLength: 9, - }, - initTsConfig: true, - }); - expect(loadedConfig.diagnostics).toHaveLength(0); - const actualConfig = loadedConfig.config; - // this field is defined on the `init` argument, and should override the value found in the config on disk - expect(actualConfig).toBeDefined(); - expect(actualConfig.hashedFileNameLength).toEqual(9); - // these fields are defined in the config file on disk, and should be present - expect(actualConfig.flags).toEqual({ dev: true }); - expect(actualConfig.extras).toBeDefined(); - expect(actualConfig.extras.enableImportInjection).toBe(true); - }); - it('uses the provided config path when no initial config provided', async () => { - const loadedConfig = await loadConfig({ - configPath, - sys, - initTsConfig: true, - }); - expect(loadedConfig.diagnostics).toHaveLength(0); - const actualConfig = loadedConfig.config; - expect(actualConfig).toBeDefined(); - // set the config path based on the one provided in the init object - expect(actualConfig.configPath).toBe(normalizePath(configPath)); - // this field is defined in the config file on disk, and should be present - expect(actualConfig.hashedFileNameLength).toBe(13); - // this field should default to an empty object literal, since it wasn't present in the config file - expect(actualConfig.flags).toEqual({}); - }); - describe('empty initialization argument', () => { - it('provides sensible default values with no config', async () => { - const loadedConfig = await loadConfig({ initTsConfig: true, sys }); - const actualConfig = loadedConfig.config; - expect(actualConfig).toBeDefined(); - expect(actualConfig.sys).toBeDefined(); - expect(actualConfig.logger).toBeDefined(); - expect(actualConfig.configPath).toBe(null); - }); - it('creates a tsconfig file when "initTsConfig" set', async () => { - const tsconfigPath = path.resolve(path.dirname(configPath), 'tsconfig.json'); - expect(sys.accessSync(tsconfigPath)).toBe(false); - const loadedConfig = await loadConfig({ initTsConfig: true, configPath, sys }); - expect(sys.accessSync(tsconfigPath)).toBe(true); - expect(loadedConfig.diagnostics).toHaveLength(0); - }); - it('errors that a tsconfig file could not be created when "initTsConfig" isn\'t present', async () => { - const loadedConfig = await loadConfig({ configPath, sys }); - expect(loadedConfig.diagnostics).toHaveLength(1); - expect(loadedConfig.diagnostics[0]).toEqual({ - absFilePath: undefined, - header: 'Missing tsconfig.json', - level: 'error', - lines: [], - messageText: `Unable to load TypeScript config file. Please create a "tsconfig.json" file within the "${normalizePath(path.dirname(configPath))}" directory.`, - relFilePath: undefined, - type: 'build', - }); - }); - }); - describe('no initialization argument', () => { - it('errors that a tsconfig file cannot be found', async () => { - const loadConfigResults = await loadConfig({ sys }); - expect(loadConfigResults.diagnostics).toHaveLength(1); - expect(loadConfigResults.diagnostics[0]).toEqual({ - absFilePath: undefined, - header: 'Missing tsconfig.json', - level: 'error', - lines: [], - messageText: expect.stringMatching(`Unable to load TypeScript config file. Please create a "tsconfig.json" file within the`), - relFilePath: undefined, - type: 'build', - }); - }); - }); -}); -//# sourceMappingURL=load-config.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/load-config.spec.js.map b/build/compiler/config/test/load-config.spec.js.map deleted file mode 100644 index 4b2dc016ff7..00000000000 --- a/build/compiler/config/test/load-config.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"load-config.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/load-config.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,YAAY,CAAC;AAI5B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACnE,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAErE,IAAI,GAAqB,CAAC;IAE1B,UAAU,CAAC,GAAG,EAAE;QACd,GAAG,GAAG,kBAAkB,EAAE,CAAC;QAE3B,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,kCAAkC,CAAC,CAAC,eAAe,CAAC;YACjE,OAAO,EAAE;gBACP,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM;gBAC9B,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM;aAC7B;YACD,SAAS,EAAE,EAAE;YACb,MAAM,EAAE,EAAE;SACX,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kEAAkE,EAAE,KAAK,IAAI,EAAE;QAChF,MAAM,YAAY,GAAG,MAAM,UAAU,CA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AC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-config-sourcemap.spec.d.ts b/build/compiler/config/test/validate-config-sourcemap.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-config-sourcemap.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-config-sourcemap.spec.js b/build/compiler/config/test/validate-config-sourcemap.spec.js deleted file mode 100644 index 3ac2d6f2140..00000000000 --- a/build/compiler/config/test/validate-config-sourcemap.spec.js +++ /dev/null @@ -1,72 +0,0 @@ -import { mockCompilerSystem, mockLoadConfigInit } from '@stencil/core/testing'; -import ts from 'typescript'; -import { loadConfig } from '../load-config'; -describe('stencil config - sourceMap option', () => { - const configPath = require.resolve('./fixtures/stencil.config.ts'); - let sys; - /** - * Test helper for generating default `d.LoadConfigInit` objects. - * - * This function assumes the fields in the enclosing scope have been initialized. - * @param overrides the properties on the default `d.LoadConfigInit` entity to manually override - * @returns the default configuration initialization object, with any overrides applied - */ - const getLoadConfigForTests = (overrides) => { - const defaults = { - configPath, - sys, - config: {}, - initTsConfig: true, - }; - return mockLoadConfigInit({ ...defaults, ...overrides }); - }; - /** - * Test helper for mocking the {@link ts.getParsedCommandLineOfConfigFile} function. This function returns the appropriate - * `options` object based on the `sourceMap` argument. - * - * @param sourceMap The `sourceMap` option from the Stencil config. - */ - const mockTsConfigParser = (sourceMap) => { - jest.spyOn(ts, 'getParsedCommandLineOfConfigFile').mockReturnValue({ - options: { - target: ts.ScriptTarget.ES2017, - module: ts.ModuleKind.ESNext, - sourceMap, - inlineSources: sourceMap, - }, - fileNames: [], - errors: [], - }); - }; - beforeEach(() => { - sys = mockCompilerSystem(); - }); - afterEach(() => { - jest.clearAllMocks(); - }); - it('sets sourceMap options to true in tsconfig', async () => { - const testConfig = getLoadConfigForTests({ config: { sourceMap: true } }); - mockTsConfigParser(testConfig.config.sourceMap); - const loadConfigResults = await loadConfig(testConfig); - const { sourceMap, inlineSources } = loadConfigResults.config.tsCompilerOptions; - expect(sourceMap).toBe(true); - expect(inlineSources).toBe(true); - }); - it('sets sourceMap options to false in tsconfig', async () => { - const testConfig = getLoadConfigForTests({ config: { sourceMap: false } }); - mockTsConfigParser(testConfig.config.sourceMap); - const loadConfigResults = await loadConfig(testConfig); - const { sourceMap, inlineSources } = loadConfigResults.config.tsCompilerOptions; - expect(sourceMap).toBe(false); - expect(inlineSources).toBe(false); - }); - it('sets the sourceMap options to true in tsconfig by default', async () => { - const testConfig = getLoadConfigForTests(); - mockTsConfigParser(testConfig.config.sourceMap); - const loadConfigResults = await loadConfig(testConfig); - const { sourceMap, inlineSources } = loadConfigResults.config.tsCompilerOptions; - expect(sourceMap).toBe(true); - expect(inlineSources).toBe(true); - }); -}); -//# sourceMappingURL=validate-config-sourcemap.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-config-sourcemap.spec.js.map b/build/compiler/config/test/validate-config-sourcemap.spec.js.map deleted file mode 100644 index 36b60341107..00000000000 --- a/build/compiler/config/test/validate-config-sourcemap.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-config-sourcemap.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-config-sourcemap.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,QAAQ,CAAC,mCAAmC,EAAE,GAAG,EAAE;IACjD,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACnE,IAAI,GAAqB,CAAC;IAE1B;;;;;;OAMG;IACH,MAAM,qBAAqB,GAAG,CAAC,SAAqC,EAAoB,EAAE;QACxF,MAAM,QAAQ,GAAqB;YACjC,UAAU;YACV,GAAG;YACH,MAAM,EAAE,EAAE;Y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EH,EAAE,CAAC,6CAA6C,EAAE,KAAK,IAAI,EAAE;QAC3D,MAAM,UAAU,GAAG,qBAAqB,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QAC3E,kBAAkB,CAAC,UAAU,CAAC,MAAO,CAAC,SAAU,CAAC,CAAC;QAElD,MAAM,iBAAiB,GAAG,MAAM,UAAU,CAAC,UAAU,CAAC,CAAC;QAEvD,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,iBAAiB,CAAC,MAAM,CAAC,iBAAiB,CAAC;QAChF,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;QACzE,MAAM,UAAU,GAAG,qBAAqB,EAAE,CAAC;QAC3C,kBAAkB,CAAC,UAAU,CAAC,MAAO,CAAC,SAAU,CAAC,CAAC;QAElD,MAAM,iBAAiB,GAAG,MAAM,UAAU,CAAC,UAAU,CAAC,CAAC;QAEvD,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,iBAAiB,CAAC,MAAM,CAAC,iBAAiB,CAAC;QAChF,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7B,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-config.spec.d.ts b/build/compiler/config/test/validate-config.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-config.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-config.spec.js b/build/compiler/config/test/validate-config.spec.js deleted file mode 100644 index eeb95fa546d..00000000000 --- a/build/compiler/config/test/validate-config.spec.js +++ /dev/null @@ -1,439 +0,0 @@ -import { mockCompilerSystem, mockLoadConfigInit, mockLogger } from '@stencil/core/testing'; -import { DOCS_CUSTOM, DOCS_JSON, DOCS_README, DOCS_VSCODE } from '@utils'; -import { createConfigFlags } from '../../../cli/config-flags'; -import { isWatchIgnorePath } from '../../fs-watch/fs-watch-rebuild'; -import { validateConfig } from '../validate-config'; -describe('validation', () => { - let userConfig; - let bootstrapConfig; - const logger = mockLogger(); - const sys = mockCompilerSystem(); - beforeEach(() => { - userConfig = { - sys: sys, - logger: logger, - rootDir: '/User/some/path/', - namespace: 'Testing', - }; - bootstrapConfig = mockLoadConfigInit(); - }); - describe('caching', () => { - it('should cache the validated config between calls if the same config is passed back in', () => { - const { config } = validateConfig(userConfig, {}); - const { config: secondRound } = validateConfig(config, {}); - // we should have object identity - expect(config === secondRound).toBe(true); - // objects should be deepEqual as well - expect(config).toEqual(secondRound); - }); - it('should bust the cache if a different config is supplied than the cached one', () => { - // validate once, caching that result - const { config } = validateConfig(userConfig, {}); - // pass a new initial configuration - const { config: secondRound } = validateConfig({ ...userConfig }, {}); - // shouldn't have object equality with the earlier one - expect(config === secondRound).toBe(false); - }); - }); - describe('flags', () => { - it('adds a default "flags" object if none is provided', () => { - userConfig.flags = undefined; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.flags).toEqual({}); - }); - it('serializes a provided "flags" object', () => { - userConfig.flags = createConfigFlags({ dev: false }); - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.flags).toEqual(createConfigFlags({ dev: false })); - }); - describe('devMode', () => { - it('defaults "devMode" to false when "flag.prod" is truthy', () => { - userConfig.flags = createConfigFlags({ prod: true }); - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devMode).toBe(false); - }); - it('defaults "devMode" to true when "flag.dev" is truthy', () => { - userConfig.flags = createConfigFlags({ dev: true }); - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devMode).toBe(true); - }); - it('defaults "devMode" to false when "flag.prod" & "flag.dev" are truthy', () => { - userConfig.flags = createConfigFlags({ dev: true, prod: true }); - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devMode).toBe(false); - }); - it('sets "devMode" to false if the user provided flag isn\'t a boolean', () => { - // the branch under test explicitly requires a value whose type is not allowed by the type system - const devMode = 'not-a-bool'; - userConfig = { devMode }; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devMode).toBe(false); - }); - }); - }); - describe('allowInlineScripts', () => { - it('set allowInlineScripts true', () => { - userConfig.allowInlineScripts = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.allowInlineScripts).toBe(true); - }); - it('set allowInlineScripts false', () => { - userConfig.allowInlineScripts = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.allowInlineScripts).toBe(false); - }); - it('default allowInlineScripts true', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.allowInlineScripts).toBe(true); - }); - }); - describe('transformAliasedImportPaths', () => { - it.each([true, false])('set transformAliasedImportPaths %p', (bool) => { - userConfig.transformAliasedImportPaths = bool; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.transformAliasedImportPaths).toBe(bool); - }); - it('defaults `transformAliasedImportPaths` to true', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.transformAliasedImportPaths).toBe(true); - }); - }); - describe('enableCache', () => { - it('set enableCache true', () => { - userConfig.enableCache = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.enableCache).toBe(true); - }); - it('set enableCache false', () => { - userConfig.enableCache = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.enableCache).toBe(false); - }); - it('default enableCache true', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.enableCache).toBe(true); - }); - }); - describe('buildAppCore', () => { - it('set buildAppCore true', () => { - userConfig.buildAppCore = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildAppCore).toBe(true); - }); - it('set buildAppCore false', () => { - userConfig.buildAppCore = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildAppCore).toBe(false); - }); - it('default buildAppCore true', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildAppCore).toBe(true); - }); - }); - describe('es5 build', () => { - it('set buildEs5 false', () => { - userConfig.buildEs5 = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildEs5).toBe(false); - }); - it('set buildEs5 true', () => { - userConfig.buildEs5 = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildEs5).toBe(true); - }); - it('set buildEs5 true, dev mode', () => { - userConfig.devMode = true; - userConfig.buildEs5 = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildEs5).toBe(true); - }); - it('prod mode, set modern and es5', () => { - userConfig.devMode = false; - userConfig.buildEs5 = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildEs5).toBe(true); - }); - it('build es5 when set to "prod" and in prod', () => { - userConfig.devMode = false; - userConfig.buildEs5 = 'prod'; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildEs5).toBe(true); - }); - it('do not build es5 when set to "prod" and in dev', () => { - userConfig.devMode = true; - userConfig.buildEs5 = 'prod'; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildEs5).toBe(false); - }); - it('prod mode default to only modern and not es5', () => { - userConfig.devMode = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildEs5).toBe(false); - }); - }); - describe('hashed filenames', () => { - it('should error when hashedFileNameLength too large', () => { - userConfig.hashedFileNameLength = 33; - const validated = validateConfig(userConfig, bootstrapConfig); - expect(validated.diagnostics).toHaveLength(1); - }); - it('should error when hashedFileNameLength too small', () => { - userConfig.hashedFileNameLength = 3; - const validated = validateConfig(userConfig, bootstrapConfig); - expect(validated.diagnostics).toHaveLength(1); - }); - it('should set from hashedFileNameLength', () => { - userConfig.hashedFileNameLength = 28; - const validated = validateConfig(userConfig, bootstrapConfig); - expect(validated.config.hashedFileNameLength).toBe(28); - }); - it('should set hashedFileNameLength', () => { - userConfig.hashedFileNameLength = 6; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.hashedFileNameLength).toBe(6); - }); - it('should default hashedFileNameLength', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.hashedFileNameLength).toBe(8); - }); - it('should default hashFileNames to false in watch mode despite prod mode', () => { - userConfig.watch = true; - userConfig.devMode = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.hashFileNames).toBe(true); - }); - it('should default hashFileNames to true in prod mode', () => { - userConfig.devMode = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.hashFileNames).toBe(true); - }); - it('should default hashFileNames to false in dev mode', () => { - userConfig.devMode = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.hashFileNames).toBe(false); - }); - it.each([true, false])('should set hashFileNames when hashFileNames===%b', (hashFileNames) => { - userConfig.hashFileNames = hashFileNames; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.hashFileNames).toBe(hashFileNames); - }); - it('should set hashFileNames from function', () => { - userConfig.hashFileNames = () => { - return true; - }; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.hashFileNames).toBe(true); - }); - }); - describe('minifyJs', () => { - it('should set minifyJs to true', () => { - userConfig.devMode = true; - userConfig.minifyJs = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.minifyJs).toBe(true); - }); - it('should default minifyJs to true in prod mode', () => { - userConfig.devMode = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.minifyJs).toBe(true); - }); - it('should default minifyJs to false in dev mode', () => { - userConfig.devMode = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.minifyJs).toBe(false); - }); - }); - describe('minifyCss', () => { - it('should set minifyCss to true', () => { - userConfig.devMode = true; - userConfig.minifyCss = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.minifyCss).toBe(true); - }); - it('should default minifyCss to true in prod mode', () => { - userConfig.devMode = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.minifyCss).toBe(true); - }); - it('should default minifyCss to false in dev mode', () => { - userConfig.devMode = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.minifyCss).toBe(false); - }); - }); - it('should default watch to false', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.watch).toBe(false); - }); - it('should set devMode to false', () => { - userConfig.devMode = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devMode).toBe(false); - }); - it('should set devMode to true', () => { - userConfig.devMode = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devMode).toBe(true); - }); - it('should default devMode to false', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devMode).toBe(false); - }); - it.each([DOCS_JSON, DOCS_CUSTOM, DOCS_README, DOCS_VSCODE])('should not add "%s" output target by default', (targetType) => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.outputTargets.some((o) => o.type === targetType)).toBe(false); - }); - it('should set devInspector false', () => { - userConfig.devInspector = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devInspector).toBe(false); - }); - it('should set devInspector true', () => { - userConfig.devInspector = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devInspector).toBe(true); - }); - it('should default devInspector false when devMode is false', () => { - userConfig.devMode = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devInspector).toBe(false); - }); - it('should default devInspector true when devMode is true', () => { - userConfig.devMode = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.devInspector).toBe(true); - }); - it('should default dist false and www true', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.outputTargets.some((o) => o.type === 'dist')).toBe(false); - expect(config.outputTargets.some((o) => o.type === 'www')).toBe(true); - }); - it('should error for invalid outputTarget type', () => { - userConfig.outputTargets = [ - { - type: 'whatever', - }, - ]; - const validated = validateConfig(userConfig, bootstrapConfig); - expect(validated.diagnostics).toHaveLength(1); - }); - it('should default outputTargets with www', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.outputTargets.some((o) => o.type === 'www')).toBe(true); - }); - it('should set extras defaults', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.extras.appendChildSlotFix).toBe(false); - expect(config.extras.cloneNodeFix).toBe(false); - expect(config.extras.lifecycleDOMEvents).toBe(false); - expect(config.extras.scriptDataOpts).toBe(false); - expect(config.extras.slotChildNodesFix).toBe(false); - expect(config.extras.initializeNextTick).toBe(false); - expect(config.extras.tagNameTransform).toBe(false); - }); - it('should set slot config based on `experimentalSlotFixes`', () => { - userConfig.extras = {}; - userConfig.extras.experimentalSlotFixes = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.extras.appendChildSlotFix).toBe(true); - expect(config.extras.cloneNodeFix).toBe(true); - expect(config.extras.slotChildNodesFix).toBe(true); - expect(config.extras.scopedSlotTextContentFix).toBe(true); - }); - it('should override slot fix config based on `experimentalSlotFixes`', () => { - // This test is to verify the flags get overwritten correctly even if an - // invalid config is ingested. Hence, the `any` cast - userConfig.extras = { - appendChildSlotFix: false, - slotChildNodesFix: false, - cloneNodeFix: false, - scopedSlotTextContentFix: false, - experimentalSlotFixes: true, - }; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.extras.appendChildSlotFix).toBe(true); - expect(config.extras.cloneNodeFix).toBe(true); - expect(config.extras.slotChildNodesFix).toBe(true); - expect(config.extras.scopedSlotTextContentFix).toBe(true); - }); - it('should set taskQueue "async" by default', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.taskQueue).toBe('async'); - }); - it('should set taskQueue', () => { - userConfig.taskQueue = 'congestionAsync'; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.taskQueue).toBe('congestionAsync'); - }); - it('empty watchIgnoredRegex, all valid', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.watchIgnoredRegex).toEqual([]); - expect(isWatchIgnorePath(config, '/some/image.gif')).toBe(false); - expect(isWatchIgnorePath(config, '/some/typescript.ts')).toBe(false); - }); - it('should change a single watchIgnoredRegex to an array', () => { - userConfig.watchIgnoredRegex = /\.(gif|jpe?g|png)$/i; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.watchIgnoredRegex).toHaveLength(1); - expect(config.watchIgnoredRegex[0]).toEqual(/\.(gif|jpe?g|png)$/i); - expect(isWatchIgnorePath(config, '/some/image.gif')).toBe(true); - expect(isWatchIgnorePath(config, '/some/typescript.ts')).toBe(false); - }); - it('should clean up valid watchIgnoredRegex', () => { - userConfig.watchIgnoredRegex = [/\.(gif|jpe?g)$/i, null, 'me-regex', /\.(png)$/i]; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.watchIgnoredRegex).toHaveLength(2); - expect(config.watchIgnoredRegex[0]).toEqual(/\.(gif|jpe?g)$/i); - expect(config.watchIgnoredRegex[1]).toEqual(/\.(png)$/i); - expect(isWatchIgnorePath(config, '/some/image.gif')).toBe(true); - expect(isWatchIgnorePath(config, '/some/image.jpg')).toBe(true); - expect(isWatchIgnorePath(config, '/some/image.png')).toBe(true); - expect(isWatchIgnorePath(config, '/some/typescript.ts')).toBe(false); - }); - describe('sourceMap', () => { - it('sets the field to true when the set to true in the config', () => { - userConfig.sourceMap = true; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.sourceMap).toBe(true); - }); - it('sets the field to false when set to false in the config', () => { - userConfig.sourceMap = false; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.sourceMap).toBe(false); - }); - it('defaults the field to true when not set in the config', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.sourceMap).toBe(true); - }); - }); - describe('buildDist', () => { - it.each([true, false])('should set the field based on the config flag (%p)', (flag) => { - userConfig.flags = createConfigFlags({ esm: flag }); - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildDist).toBe(flag); - }); - it.each([true, false])('should fallback to !devMode', (devMode) => { - userConfig.devMode = devMode; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildDist).toBe(!devMode); - }); - it.each([true, false])('should fallback to buildEs5 in devMode', (buildEs5) => { - userConfig.devMode = true; - userConfig.buildEs5 = buildEs5; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.buildDist).toBe(config.buildEs5); - }); - }); - describe('validatePrimaryPackageOutputTarget', () => { - it('should default to false', () => { - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.validatePrimaryPackageOutputTarget).toBe(false); - }); - it.each([true, false])('should set validatePrimaryPackageOutputTarget to %p', (validatePrimaryPackageOutputTarget) => { - userConfig.validatePrimaryPackageOutputTarget = validatePrimaryPackageOutputTarget; - const { config } = validateConfig(userConfig, bootstrapConfig); - expect(config.validatePrimaryPackageOutputTarget).toBe(validatePrimaryPackageOutputTarget); - }); - }); -}); -//# sourceMappingURL=validate-config.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-config.spec.js.map b/build/compiler/config/test/validate-config.spec.js.map deleted file mode 100644 index 725ea0462f9..00000000000 --- a/build/compiler/config/test/validate-config.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-config.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-config.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,YAAY,EAAE,GAAG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C,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAClD,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;YACjC,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;YAE/D,MAAM,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CACpB,qDAAqD,EACrD,CAAC,kCAAkC,EAAE,EAAE;YACrC,UAAU,CAAC,kCAAkC,GAAG,kCAAkC,CAAC;YAEnF,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;YAE/D,MAAM,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;QAC7F,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-copy.spec.d.ts b/build/compiler/config/test/validate-copy.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-copy.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-copy.spec.js b/build/compiler/config/test/validate-copy.spec.js deleted file mode 100644 index 659bccde6c7..00000000000 --- a/build/compiler/config/test/validate-copy.spec.js +++ /dev/null @@ -1,43 +0,0 @@ -import { validateCopy } from '../validate-copy'; -describe('validate-copy', () => { - describe('validateCopy', () => { - it.each([false, null, undefined, []])('returns an empty array when the copy task is `%s`', (copyValue) => { - expect(validateCopy(copyValue, [])).toEqual([]); - }); - it('pushes default tasks not found in the original copy list', () => { - const defaultCopyTasks = [ - { src: 'defaultSrc' }, - { src: 'anotherDefaultSrc', dest: 'anotherDefaultDest' }, - ]; - expect(validateCopy([], defaultCopyTasks)).toEqual(defaultCopyTasks); - }); - it('combines provided and default tasks', () => { - const tasksToValidate = [{ src: 'someSrc', dest: 'someDest', keepDirStructure: true, warn: false }]; - const defaultCopyTasks = [ - { src: 'defaultSrc' }, - { src: 'anotherDefaultSrc', dest: 'anotherDefaultDest' }, - ]; - expect(validateCopy(tasksToValidate, defaultCopyTasks)).toEqual([...tasksToValidate, ...defaultCopyTasks]); - }); - it('prefers provided tasks over default tasks', () => { - const tasksToValidate = [ - { src: 'aDuplicateSrc', dest: 'someDest', keepDirStructure: true, warn: false }, - ]; - const defaultCopyTasks = [ - { src: 'aDuplicateSrc' }, - { src: 'anotherDefaultSrc', dest: 'anotherDefaultDest' }, - ]; - // the first task from the default task list is not used - expect(validateCopy(tasksToValidate, defaultCopyTasks)).toEqual([ - { src: 'aDuplicateSrc', dest: 'someDest', keepDirStructure: true, warn: false }, - { src: 'anotherDefaultSrc', dest: 'anotherDefaultDest' }, - ]); - }); - it('de-duplicates copy tasks', () => { - const copyTask = { src: 'aDuplicateSrc', dest: 'someDest', keepDirStructure: true, warn: false }; - const tasksToValidate = [{ ...copyTask }, { ...copyTask }]; - expect(validateCopy(tasksToValidate, [])).toEqual([{ ...copyTask }]); - }); - }); -}); -//# sourceMappingURL=validate-copy.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-copy.spec.js.map b/build/compiler/config/test/validate-copy.spec.js.map deleted file mode 100644 index db76ee52a65..00000000000 --- a/build/compiler/config/test/validate-copy.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-copy.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-copy.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;QAC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E,KAAK,EAAE;aAChF,CAAC;YACF,MAAM,gBAAgB,GAAiB;gBACrC,EAAE,GAAG,EAAE,eAAe,EAAE;gBACxB,EAAE,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,oBAAoB,EAAE;aACzD,CAAC;YAEF,wDAAwD;YACxD,MAAM,CAAC,YAAY,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC;gBAC9D,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE;gBAC/E,EAAE,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,oBAAoB,EAAE;aACzD,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;YAClC,MAAM,QAAQ,GAAe,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YAC7G,MAAM,eAAe,GAAiB,CAAC,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;YAEzE,MAAM,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC;QACvE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-custom.spec.d.ts b/build/compiler/config/test/validate-custom.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-custom.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-custom.spec.js b/build/compiler/config/test/validate-custom.spec.js deleted file mode 100644 index 4c4b929097a..00000000000 --- a/build/compiler/config/test/validate-custom.spec.js +++ /dev/null @@ -1,27 +0,0 @@ -import { mockConfig, mockLoadConfigInit } from '@stencil/core/testing'; -import { buildWarn } from '@utils'; -import { validateConfig } from '../validate-config'; -describe('validateCustom', () => { - let userConfig; - beforeEach(() => { - userConfig = mockConfig(); - }); - it('should log warning', () => { - userConfig.outputTargets = [ - { - type: 'custom', - name: 'test', - validate: (_, diagnostics) => { - const warn = buildWarn(diagnostics); - warn.messageText = 'test warning'; - }, - generator: async () => { - return; - }, - }, - ]; - const { diagnostics } = validateConfig(userConfig, mockLoadConfigInit()); - expect(diagnostics.length).toBe(1); - }); -}); -//# sourceMappingURL=validate-custom.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-custom.spec.js.map b/build/compiler/config/test/validate-custom.spec.js.map deleted file mode 100644 index 8a5bc106db5..00000000000 --- a/build/compiler/config/test/validate-custom.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-custom.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-custom.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,IAAI,UAAoB,CAAC;IAEzB,UAAU,CAAC,GAAG,EAAE;QACd,UAAU,GAAG,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAC5B,UAAU,CAAC,aAAa,GAAG;YACzB;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,EAAE;oBAC3B,MAAM,IAAI,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;oBACpC,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC;gBACpC,CAAC;gBACD,SAAS,EAAE,KAAK,IAAI,EAAE;oBACpB,OAAO;gBACT,CAAC;aACF;SACF,CAAC;QACF,MAAM,EAAE,WAAW,EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAC;QACzE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-dev-server.spec.d.ts b/build/compiler/config/test/validate-dev-server.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-dev-server.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-dev-server.spec.js b/build/compiler/config/test/validate-dev-server.spec.js deleted file mode 100644 index da8dd370288..00000000000 --- a/build/compiler/config/test/validate-dev-server.spec.js +++ /dev/null @@ -1,218 +0,0 @@ -import { mockLoadConfigInit } from '@stencil/core/testing'; -import path from 'path'; -import { createConfigFlags } from '../../../cli/config-flags'; -import { normalizePath } from '../../../utils'; -import { validateConfig } from '../validate-config'; -describe('validateDevServer', () => { - const root = path.resolve('/'); - let inputConfig; - let inputDevServerConfig; - let flags; - beforeEach(() => { - inputDevServerConfig = {}; - flags = createConfigFlags({ serve: true }); - inputConfig = { - sys: {}, - rootDir: normalizePath(path.join(root, 'some', 'path')), - devServer: inputDevServerConfig, - flags, - namespace: 'Testing', - }; - }); - it('should default address', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.address).toBe('0.0.0.0'); - }); - it.each(['https://localhost', 'http://localhost', 'https://localhost/', 'http://localhost/', 'localhost/'])('should remove extraneous stuff from address %p', (address) => { - inputConfig.devServer = { ...inputDevServerConfig, address }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.address).toBe('localhost'); - }); - it('should set address', () => { - inputConfig.devServer = { ...inputDevServerConfig, address: '123.123.123.123' }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.address).toBe('123.123.123.123'); - }); - it('should set address from flags', () => { - inputConfig.flags = { ...flags, address: '123.123.123.123' }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.address).toBe('123.123.123.123'); - }); - it('should get custom baseUrl', () => { - inputConfig.outputTargets = [ - { - type: 'www', - baseUrl: '/my-base-url', - }, - ]; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.basePath).toBe('/my-base-url/'); - }); - it('should get custom baseUrl with domain', () => { - inputConfig.outputTargets = [ - { - type: 'www', - baseUrl: 'http://stenciljs.com/my-base-url', - }, - ]; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.basePath).toBe('/my-base-url/'); - }); - it('should default basePath', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.basePath).toBe('/'); - }); - it('should default root', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.root).toBe(normalizePath(path.join(root, 'some', 'path', 'www'))); - }); - it('should set relative root', () => { - inputConfig.devServer = { ...inputDevServerConfig, root: 'my-rel-root' }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.root).toBe(normalizePath(path.join(root, 'some', 'path', 'my-rel-root'))); - }); - it('should set absolute root', () => { - inputConfig.devServer = { - ...inputDevServerConfig, - root: normalizePath(path.join(root, 'some', 'path', 'my-abs-root')), - }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.root).toBe(normalizePath(path.join(root, 'some', 'path', 'my-abs-root'))); - }); - it('should default gzip', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.gzip).toBe(true); - }); - it('should set gzip', () => { - inputConfig.devServer = { ...inputDevServerConfig, gzip: false }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.gzip).toBe(false); - }); - it.each(['localhost', '192.12.12.10', '127.0.0.1'])('should default port with address %p', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.port).toBe(3333); - }); - it.each(['https://subdomain.stenciljs.com:3000', 'localhost:3000/', 'localhost:3000'])('should override port in address with port property', (address) => { - inputConfig.devServer = { ...inputDevServerConfig, address, port: 1234 }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.port).toBe(1234); - }); - it('should not set default port if null', () => { - inputConfig.devServer = { ...inputDevServerConfig, port: null }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.port).toBe(null); - }); - it.each(['localhost:20/', 'localhost:20'])('should set port from address %p if no port prop', (address) => { - inputConfig.devServer = { ...inputDevServerConfig, address }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.port).toBe(20); - expect(config.devServer.address).toBe('localhost'); - }); - it('should set address, port null, protocol', () => { - inputConfig.devServer = { ...inputDevServerConfig, address: 'https://subdomain.stenciljs.com/' }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.port).toBe(undefined); - expect(config.devServer.address).toBe('subdomain.stenciljs.com'); - expect(config.devServer.protocol).toBe('https'); - }); - it('should set port', () => { - inputConfig.devServer = { ...inputDevServerConfig, port: 4444 }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.port).toBe(4444); - }); - it('should set port from flags', () => { - inputConfig.flags = { ...flags, port: 4444 }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.port).toBe(4444); - }); - it('should default historyApiFallback', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.historyApiFallback).toBeDefined(); - expect(config.devServer.historyApiFallback.index).toBe('index.html'); - }); - it.each([1, []])('should default historyApiFallback when an invalid value (%s) is provided', (badValue) => { - // this test explicitly checks for a bad value in the stencil.config file, hence the type assertion - inputConfig.devServer = { ...inputDevServerConfig, historyApiFallback: badValue }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.historyApiFallback).toBeDefined(); - expect(config.devServer.historyApiFallback.index).toBe('index.html'); - }); - it('should set historyApiFallback', () => { - inputConfig.devServer = { ...inputDevServerConfig, historyApiFallback: {} }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.historyApiFallback).toBeDefined(); - expect(config.devServer.historyApiFallback.index).toBe('index.html'); - }); - it('should disable historyApiFallback', () => { - inputConfig.devServer = { ...inputDevServerConfig, historyApiFallback: null }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.historyApiFallback).toBe(null); - }); - it('should default reloadStrategy hmr', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.reloadStrategy).toBe('hmr'); - }); - it('should set reloadStrategy pageReload', () => { - inputConfig.devServer = { ...inputDevServerConfig, reloadStrategy: 'pageReload' }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.reloadStrategy).toBe('pageReload'); - }); - it('should default openBrowser', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.openBrowser).toBe(true); - }); - it('should set openBrowser', () => { - inputConfig.devServer = { ...inputDevServerConfig, openBrowser: false }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.openBrowser).toBe(false); - }); - it('should set openBrowser from flag', () => { - // the flags field should have been set up in the `beforeEach` block for this test, hence the bang operator - inputConfig.flags.open = false; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.openBrowser).toBe(false); - }); - it('should default http protocol', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.protocol).toBe('http'); - }); - it('should set https protocol if credentials are set', () => { - inputConfig.devServer = { ...inputDevServerConfig, https: { key: 'fake-key', cert: 'fake-cert' } }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.protocol).toBe('https'); - }); - it('should set ssr true', () => { - inputConfig.devServer = { ssr: true }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.ssr).toBe(true); - }); - it('should set ssr false', () => { - inputConfig.devServer = { ssr: false }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.ssr).toBe(false); - }); - it('should set ssr from flag', () => { - inputConfig.flags = { ...flags, ssr: true }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.ssr).toBe(true); - }); - it('should set ssr false by default', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.ssr).toBe(false); - }); - it('should set default srcIndexHtml from config', () => { - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.srcIndexHtml).toBe(normalizePath(path.join(root, 'some', 'path', 'src', 'index.html'))); - }); - it('should set srcIndexHtml from config', () => { - const wwwOutputTarget = { - type: 'www', - prerenderConfig: normalizePath(path.join(root, 'some', 'path', 'prerender.config.ts')), - }; - inputConfig.outputTargets = [wwwOutputTarget]; - inputConfig.flags = { ...flags, ssr: true }; - const { config } = validateConfig(inputConfig, mockLoadConfigInit()); - expect(config.devServer.prerenderConfig).toBe(wwwOutputTarget.prerenderConfig); - }); -}); -//# sourceMappingURL=validate-dev-server.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-dev-server.spec.js.map b/build/compiler/config/test/validate-dev-server.spec.js.map deleted file mode 100644 index 385fc2ae83d..00000000000 --- a/build/compiler/config/test/validate-dev-server.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-dev-server.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-dev-server.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,IAAI,MAAM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d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-docs.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-docs.spec.js b/build/compiler/config/test/validate-docs.spec.js deleted file mode 100644 index 92f5055df48..00000000000 --- a/build/compiler/config/test/validate-docs.spec.js +++ /dev/null @@ -1,32 +0,0 @@ -import { mockConfig, mockLoadConfigInit } from '@stencil/core/testing'; -import { validateConfig } from '../validate-config'; -describe('validateDocs', () => { - let userConfig; - beforeEach(() => { - userConfig = mockConfig(); - }); - it('readme docs dir', () => { - // the flags field is expected to have been set by the mock creation function for unvalidated configs, hence the - // bang operator - userConfig.flags.docs = true; - userConfig.outputTargets = [ - { - type: 'docs-readme', - dir: 'my-dir', - }, - ]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const o = config.outputTargets.find((o) => o.type === 'docs-readme'); - expect(o.dir).toContain('my-dir'); - }); - it('default no docs, not remove docs output target', () => { - userConfig.outputTargets = [{ type: 'docs-readme' }]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets.some((o) => o.type === 'docs-readme')).toBe(true); - }); - it('default no docs, no output target', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets.some((o) => o.type === 'docs-readme')).toBe(false); - }); -}); -//# sourceMappingURL=validate-docs.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-docs.spec.js.map b/build/compiler/config/test/validate-docs.spec.js.map deleted file mode 100644 index 03581062739..00000000000 --- a/build/compiler/config/test/validate-docs.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-docs.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-docs.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,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,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-hydrated.spec.d.ts b/build/compiler/config/test/validate-hydrated.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-hydrated.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-hydrated.spec.js b/build/compiler/config/test/validate-hydrated.spec.js deleted file mode 100644 index 65e96da5bb9..00000000000 --- a/build/compiler/config/test/validate-hydrated.spec.js +++ /dev/null @@ -1,32 +0,0 @@ -import { validateHydrated } from '../validate-hydrated'; -describe('validate-hydrated', () => { - describe('validateHydrated', () => { - let inputConfig; - let inputHydrateFlagConfig; - beforeEach(() => { - inputHydrateFlagConfig = {}; - inputConfig = { - hydratedFlag: inputHydrateFlagConfig, - }; - }); - it.each([null, false])('returns undefined for hydratedFlag=%s', (badValue) => { - // this test explicitly checks for a bad value in the stencil.config file, hence the type assertion - inputConfig.hydratedFlag = badValue; - const actual = validateHydrated(inputConfig); - expect(actual).toBeNull(); - }); - it.each([[], true])('returns a default value when hydratedFlag=%s', (badValue) => { - // this test explicitly checks for a bad value in the stencil.config file, hence the type assertion - inputConfig.hydratedFlag = badValue; - const actual = validateHydrated(inputConfig); - expect(actual).toEqual({ - hydratedValue: 'inherit', - initialValue: 'hidden', - name: 'hydrated', - property: 'visibility', - selector: 'class', - }); - }); - }); -}); -//# sourceMappingURL=validate-hydrated.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-hydrated.spec.js.map b/build/compiler/config/test/validate-hydrated.spec.js.map deleted file mode 100644 index bd08eb6dc0c..00000000000 --- a/build/compiler/config/test/validate-hydrated.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-hydrated.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-hydrated.spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAChC,IAAI,WAAgC,CAAC;QACrC,IAAI,sBAAsC,CAAC;QAE3C,UAAU,CAAC,GAAG,EAAE;YACd,sBAAsB,GAAG,EAAE,CAAC;YAC5B,WAAW,GAAG;gBACZ,YAAY,EAAE,sBAAsB;aACrC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,uCAAuC,EAAE,CAAC,QAAQ,EAAE,EAAE;YAC3E,mGAAmG;YAClG,WAAW,CAAC,YAAoB,GAAG,QAAQ,CAAC;YAC7C,MAAM,MAAM,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;YAC7C,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC5B,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,8CAA8C,EAAE,CAAC,QAAQ,EAAE,EAAE;YAC/E,mGAAmG;YAClG,WAAW,CAAC,YAAoB,GAAG,QAAQ,CAAC;YAC7C,MAAM,MAAM,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;YAC7C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAiB;gBACrC,aAAa,EAAE,SAAS;gBACxB,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,YAAY;gBACtB,QAAQ,EAAE,OAAO;aAClB,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-namespace.spec.d.ts b/build/compiler/config/test/validate-namespace.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-namespace.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-namespace.spec.js b/build/compiler/config/test/validate-namespace.spec.js deleted file mode 100644 index 2c28e841540..00000000000 --- a/build/compiler/config/test/validate-namespace.spec.js +++ /dev/null @@ -1,64 +0,0 @@ -import { validateNamespace } from '../validate-namespace'; -// TODO(STENCIL-968): Update tests to check diagnostic messages -describe('validateNamespace', () => { - const diagnostics = []; - beforeEach(() => { - diagnostics.length = 0; - }); - it('should not allow special characters in namespace', () => { - validateNamespace('My/Namespace', undefined, diagnostics); - expect(diagnostics).toHaveLength(1); - diagnostics.length = 0; - validateNamespace('My%20Namespace', undefined, diagnostics); - expect(diagnostics).toHaveLength(1); - diagnostics.length = 0; - validateNamespace('My:Namespace', undefined, diagnostics); - expect(diagnostics).toHaveLength(1); - }); - it('should not allow spaces in namespace', () => { - validateNamespace('My Namespace', undefined, diagnostics); - expect(diagnostics).toHaveLength(1); - }); - it('should not allow dash for last character of namespace', () => { - validateNamespace('MyNamespace-', undefined, diagnostics); - expect(diagnostics).toHaveLength(1); - }); - it('should not allow dash for first character of namespace', () => { - validateNamespace('-MyNamespace', undefined, diagnostics); - expect(diagnostics).toHaveLength(1); - }); - it('should not allow number for first character of namespace', () => { - validateNamespace('88MyNamespace', undefined, diagnostics); - expect(diagnostics).toHaveLength(1); - }); - it('should enforce namespace being at least 3 characters', () => { - validateNamespace('ab', undefined, diagnostics); - expect(diagnostics).toHaveLength(1); - }); - it('should allow $ in the namespace', () => { - const { namespace, fsNamespace } = validateNamespace('$MyNamespace', undefined, diagnostics); - expect(namespace).toBe('$MyNamespace'); - expect(fsNamespace).toBe('$mynamespace'); - }); - it('should allow underscore in the namespace', () => { - const { namespace, fsNamespace } = validateNamespace('My_Namespace', undefined, diagnostics); - expect(namespace).toBe('My_Namespace'); - expect(fsNamespace).toBe('my_namespace'); - }); - it('should allow dash in the namespace', () => { - const { namespace, fsNamespace } = validateNamespace('My-Namespace', undefined, diagnostics); - expect(namespace).toBe('MyNamespace'); - expect(fsNamespace).toBe('my-namespace'); - }); - it('should set user namespace', () => { - const { namespace, fsNamespace } = validateNamespace('MyNamespace', undefined, diagnostics); - expect(namespace).toBe('MyNamespace'); - expect(fsNamespace).toBe('mynamespace'); - }); - it('should set default namespace', () => { - const { namespace, fsNamespace } = validateNamespace(undefined, undefined, diagnostics); - expect(namespace).toBe('App'); - expect(fsNamespace).toBe('app'); - }); -}); -//# sourceMappingURL=validate-namespace.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-namespace.spec.js.map b/build/compiler/config/test/validate-namespace.spec.js.map deleted file mode 100644 index edce6d86e57..00000000000 --- a/build/compiler/config/test/validate-namespace.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-namespace.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-namespace.spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,+DAA+D;AAC/D,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,MAAM,WAAW,GAAmB,EAAE,CAAC;IAEvC,UAAU,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,iBAAiB,CAAC,cAAc,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;QAC1D,MAAM,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAEpC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;QACvB,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C,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,iBAAiB,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;QACxF,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-output-dist-collection.spec.d.ts b/build/compiler/config/test/validate-output-dist-collection.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-output-dist-collection.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-output-dist-collection.spec.js b/build/compiler/config/test/validate-output-dist-collection.spec.js deleted file mode 100644 index e33ae83cb27..00000000000 --- a/build/compiler/config/test/validate-output-dist-collection.spec.js +++ /dev/null @@ -1,72 +0,0 @@ -import { mockConfig, mockLoadConfigInit } from '@stencil/core/testing'; -import { join, resolve } from '@utils'; -import { validateConfig } from '../validate-config'; -describe('validateDistCollectionOutputTarget', () => { - let config; - const rootDir = resolve('/'); - const defaultDir = join(rootDir, 'dist', 'collection'); - beforeEach(() => { - config = mockConfig(); - }); - it('sets correct default values', () => { - const target = { - type: 'dist-collection', - empty: false, - dir: null, - collectionDir: null, - }; - config.outputTargets = [target]; - const { config: validatedConfig } = validateConfig(config, mockLoadConfigInit()); - expect(validatedConfig.outputTargets).toEqual([ - { - type: 'dist-collection', - empty: false, - dir: defaultDir, - collectionDir: null, - transformAliasedImportPaths: true, - }, - ]); - }); - it('sets specified directory', () => { - const target = { - type: 'dist-collection', - empty: false, - dir: '/my-dist', - collectionDir: null, - }; - config.outputTargets = [target]; - const { config: validatedConfig } = validateConfig(config, mockLoadConfigInit()); - expect(validatedConfig.outputTargets).toEqual([ - { - type: 'dist-collection', - empty: false, - dir: '/my-dist', - collectionDir: null, - transformAliasedImportPaths: true, - }, - ]); - }); - describe('transformAliasedImportPaths', () => { - it.each([false, true])("sets option '%s' when explicitly '%s' in config", (transformAliasedImportPaths) => { - const target = { - type: 'dist-collection', - empty: false, - dir: null, - collectionDir: null, - transformAliasedImportPaths, - }; - config.outputTargets = [target]; - const { config: validatedConfig } = validateConfig(config, mockLoadConfigInit()); - expect(validatedConfig.outputTargets).toEqual([ - { - type: 'dist-collection', - empty: false, - dir: defaultDir, - collectionDir: null, - transformAliasedImportPaths, - }, - ]); - }); - }); -}); -//# sourceMappingURL=validate-output-dist-collection.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-output-dist-collection.spec.js.map b/build/compiler/config/test/validate-output-dist-collection.spec.js.map deleted file mode 100644 index 5ce033460e4..00000000000 --- a/build/compiler/config/test/validate-output-dist-collection.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-output-dist-collection.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-output-dist-collection.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,oCAAoC,EAAE,GAAG,EAAE;IAClD,IAAI,MAAgB,CAAC;IAErB,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;IAEvD,UAAU,CAAC,GAAG,EAAE;QACd,MAAM,GAAG,UA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EAAE;QAC3C,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CACpB,iDAAiD,EACjD,CAAC,2BAAoC,EAAE,EAAE;YACvC,MAAM,MAAM,GAAiC;gBAC3C,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,KAAK;gBACZ,GAAG,EAAE,IAAI;gBACT,aAAa,EAAE,IAAI;gBACnB,2BAA2B;aAC5B,CAAC;YACF,MAAM,CAAC,aAAa,GAAG,CAAC,MAAM,CAAC,CAAC;YAEhC,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,GAAG,cAAc,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAEjF,MAAM,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC;gBAC5C;oBACE,IAAI,EAAE,iBAAiB;oBACvB,KAAK,EAAE,KAAK;oBACZ,GAAG,EAAE,UAAU;oBACf,aAAa,EAAE,IAAI;oBACnB,2BAA2B;iBAC5B;aACF,CAAC,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-output-dist-custom-element.spec.d.ts b/build/compiler/config/test/validate-output-dist-custom-element.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-output-dist-custom-element.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-output-dist-custom-element.spec.js b/build/compiler/config/test/validate-output-dist-custom-element.spec.js deleted file mode 100644 index 7b2b854ab51..00000000000 --- a/build/compiler/config/test/validate-output-dist-custom-element.spec.js +++ /dev/null @@ -1,358 +0,0 @@ -import { mockConfig, mockLoadConfigInit } from '@stencil/core/testing'; -import { COPY, DIST_CUSTOM_ELEMENTS, DIST_TYPES, join } from '@utils'; -import path from 'path'; -import { validateConfig } from '../validate-config'; -describe('validate-output-dist-custom-element', () => { - describe('validateCustomElement', () => { - // use Node's resolve() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) - const rootDir = path.resolve('/'); - const defaultDistDir = join(rootDir, 'dist', 'components'); - const distCustomElementsDir = 'my-dist-custom-elements'; - let userConfig; - beforeEach(() => { - userConfig = mockConfig(); - }); - it('generates a default dist-custom-elements output target', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_TYPES, - dir: defaultDistDir, - typesDir: join(rootDir, 'dist', 'types'), - }, - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: true, - externalRuntime: true, - generateTypeDeclarations: true, - customElementsExportBehavior: 'default', - }, - ]); - }); - it('uses a provided export behavior over the default value', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - customElementsExportBehavior: 'single-export-module', - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_TYPES, - dir: defaultDistDir, - typesDir: join(rootDir, 'dist', 'types'), - }, - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: true, - externalRuntime: true, - generateTypeDeclarations: true, - customElementsExportBehavior: 'single-export-module', - }, - ]); - }); - it('uses the default export behavior if the specified value is invalid', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - customElementsExportBehavior: 'not-a-valid-option', - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_TYPES, - dir: defaultDistDir, - typesDir: join(rootDir, 'dist', 'types'), - }, - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: true, - externalRuntime: true, - generateTypeDeclarations: true, - customElementsExportBehavior: 'default', - }, - ]); - }); - it('uses a provided dir field over a default directory', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - dir: distCustomElementsDir, - generateTypeDeclarations: false, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: join(rootDir, distCustomElementsDir), - empty: true, - externalRuntime: true, - generateTypeDeclarations: false, - customElementsExportBehavior: 'default', - }, - ]); - }); - describe('"empty" field', () => { - it('defaults the "empty" field to true if not provided', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - externalRuntime: false, - generateTypeDeclarations: false, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: true, - externalRuntime: false, - generateTypeDeclarations: false, - customElementsExportBehavior: 'default', - }, - ]); - }); - it('defaults the "empty" field to true it\'s not a boolean', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - empty: undefined, - externalRuntime: false, - generateTypeDeclarations: false, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: true, - externalRuntime: false, - generateTypeDeclarations: false, - customElementsExportBehavior: 'default', - }, - ]); - }); - }); - describe('"externalRuntime" field', () => { - it('defaults the "externalRuntime" field to true if not provided', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - empty: false, - generateTypeDeclarations: false, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: false, - externalRuntime: true, - generateTypeDeclarations: false, - customElementsExportBehavior: 'default', - }, - ]); - }); - it('defaults the "externalRuntime" field to true it\'s not a boolean', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - empty: false, - externalRuntime: undefined, - generateTypeDeclarations: false, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: false, - externalRuntime: true, - generateTypeDeclarations: false, - customElementsExportBehavior: 'default', - }, - ]); - }); - }); - describe('"generateTypeDeclarations" field', () => { - it('defaults the "generateTypeDeclarations" field to true if not provided', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - empty: false, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_TYPES, - dir: defaultDistDir, - typesDir: join(rootDir, 'dist', 'types'), - }, - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: false, - externalRuntime: true, - generateTypeDeclarations: true, - customElementsExportBehavior: 'default', - }, - ]); - }); - it('defaults the "generateTypeDeclarations" field to true it\'s not a boolean', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - empty: false, - generateTypeDeclarations: undefined, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_TYPES, - dir: defaultDistDir, - typesDir: join(rootDir, 'dist', 'types'), - }, - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: false, - externalRuntime: true, - generateTypeDeclarations: true, - customElementsExportBehavior: 'default', - }, - ]); - }); - it('creates a types directory when "generateTypeDeclarations" is true', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - empty: false, - externalRuntime: false, - generateTypeDeclarations: true, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_TYPES, - dir: defaultDistDir, - typesDir: join(rootDir, 'dist', 'types'), - }, - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: false, - externalRuntime: false, - generateTypeDeclarations: true, - customElementsExportBehavior: 'default', - }, - ]); - }); - it('creates a types directory for a custom directory', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - dir: distCustomElementsDir, - empty: false, - externalRuntime: false, - generateTypeDeclarations: true, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_TYPES, - dir: join(rootDir, distCustomElementsDir), - typesDir: join(rootDir, 'dist', 'types'), - }, - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: join(rootDir, distCustomElementsDir), - empty: false, - externalRuntime: false, - generateTypeDeclarations: true, - customElementsExportBehavior: 'default', - }, - ]); - }); - it('doesn\'t create a types directory when "generateTypeDeclarations" is false', () => { - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - empty: false, - externalRuntime: false, - generateTypeDeclarations: false, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: DIST_CUSTOM_ELEMENTS, - copy: [], - dir: defaultDistDir, - empty: false, - externalRuntime: false, - generateTypeDeclarations: false, - customElementsExportBehavior: 'default', - }, - ]); - }); - }); - describe('copy tasks', () => { - it('copies existing copy tasks over to the output target', () => { - const copyOutputTarget = { - src: 'mock/src', - dest: 'mock/dest', - }; - const copyOutputTarget2 = { - src: 'mock/src2', - dest: 'mock/dest2', - }; - const outputTarget = { - type: DIST_CUSTOM_ELEMENTS, - copy: [copyOutputTarget, copyOutputTarget2], - dir: distCustomElementsDir, - empty: false, - externalRuntime: false, - generateTypeDeclarations: false, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - type: COPY, - dir: rootDir, - copy: [copyOutputTarget, copyOutputTarget2], - }, - { - type: DIST_CUSTOM_ELEMENTS, - copy: [copyOutputTarget, copyOutputTarget2], - dir: join(rootDir, distCustomElementsDir), - empty: false, - externalRuntime: false, - generateTypeDeclarations: false, - customElementsExportBehavior: 'default', - }, - ]); - }); - }); - }); -}); -//# sourceMappingURL=validate-output-dist-custom-element.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-output-dist-custom-element.spec.js.map b/build/compiler/config/test/validate-output-dist-custom-element.spec.js.map deleted file mode 100644 index 29f20cda8c0..00000000000 --- a/build/compiler/config/test/validate-output-dist-custom-element.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-output-dist-custom-element.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-output-dist-custom-element.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,qCAAqC,EAAE,GAAG,EAAE;IACnD,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;QACrC,kHAAkH;QAClH,oBAAoB;QACpB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAClC,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;QAC3D,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;QACxD,IAAI,UAAoB,CAAC;QAEzB,UAAU,CAAC,GAAG,EAAE;YACd,UAAU,GAAG,UAAU,EAAE,CAAC;QAC5B,C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a,CAAC,CAAC,OAAO,CAAC;oBACnC;wBACE,IAAI,EAAE,IAAI;wBACV,GAAG,EAAE,OAAO;wBACZ,IAAI,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;qBAC5C;oBACD;wBACE,IAAI,EAAE,oBAAoB;wBAC1B,IAAI,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;wBAC3C,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,qBAAqB,CAAC;wBACzC,KAAK,EAAE,KAAK;wBACZ,eAAe,EAAE,KAAK;wBACtB,wBAAwB,EAAE,KAAK;wBAC/B,4BAA4B,EAAE,SAAS;qBACxC;iBACF,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-output-dist.spec.d.ts b/build/compiler/config/test/validate-output-dist.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-output-dist.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-output-dist.spec.js b/build/compiler/config/test/validate-output-dist.spec.js deleted file mode 100644 index aed89f428af..00000000000 --- a/build/compiler/config/test/validate-output-dist.spec.js +++ /dev/null @@ -1,279 +0,0 @@ -import { mockConfig, mockLoadConfigInit } from '@stencil/core/testing'; -import { join } from '@utils'; -import path from 'path'; -import { validateConfig } from '../validate-config'; -describe('validateDistOutputTarget', () => { - // use Node's resolve() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) - const rootDir = path.resolve('/'); - let userConfig; - beforeEach(() => { - userConfig = mockConfig({ fsNamespace: 'testing' }); - }); - it('should set dist values', () => { - const outputTarget = { - type: 'dist', - dir: 'my-dist', - buildDir: 'my-build', - empty: false, - }; - userConfig.outputTargets = [outputTarget]; - userConfig.buildDist = true; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - buildDir: join(rootDir, 'my-dist', 'my-build'), - collectionDir: join(rootDir, 'my-dist', 'collection'), - copy: [], - dir: join(rootDir, 'my-dist'), - empty: false, - esmLoaderPath: join(rootDir, 'my-dist', 'loader'), - type: 'dist', - polyfills: false, - typesDir: join(rootDir, 'my-dist', 'types'), - transformAliasedImportPathsInCollection: true, - isPrimaryPackageOutputTarget: false, - }, - { - esmDir: join(rootDir, 'my-dist', 'my-build', 'testing'), - empty: false, - isBrowserBuild: true, - legacyLoaderFile: join(rootDir, 'my-dist', 'my-build', 'testing.js'), - polyfills: true, - systemDir: undefined, - systemLoaderFile: undefined, - type: 'dist-lazy', - }, - { - copyAssets: 'dist', - copy: [], - dir: join(rootDir, 'my-dist', 'my-build', 'testing'), - type: 'copy', - }, - { - file: join(rootDir, 'my-dist', 'my-build', 'testing', 'testing.css'), - type: 'dist-global-styles', - }, - { - dir: join(rootDir, 'my-dist'), - type: 'dist-types', - typesDir: join(rootDir, 'my-dist', 'types'), - }, - { - collectionDir: join(rootDir, 'my-dist', 'collection'), - dir: join(rootDir, '/my-dist'), - empty: false, - transformAliasedImportPaths: true, - type: 'dist-collection', - }, - { - copy: [{ src: '**/*.svg' }, { src: '**/*.js' }], - copyAssets: 'collection', - dir: join(rootDir, 'my-dist', 'collection'), - type: 'copy', - }, - { - type: 'dist-lazy', - cjsDir: join(rootDir, 'my-dist', 'cjs'), - cjsIndexFile: join(rootDir, 'my-dist', 'index.cjs.js'), - empty: false, - esmDir: join(rootDir, 'my-dist', 'esm'), - esmEs5Dir: undefined, - esmIndexFile: join(rootDir, 'my-dist', 'index.js'), - polyfills: true, - }, - { - cjsDir: join(rootDir, 'my-dist', 'cjs'), - componentDts: join(rootDir, 'my-dist', 'types', 'components.d.ts'), - dir: join(rootDir, 'my-dist', 'loader'), - empty: false, - esmDir: join(rootDir, 'my-dist', 'esm'), - esmEs5Dir: undefined, - type: 'dist-lazy-loader', - }, - ]); - }); - it('should set defaults when outputTargets dist is empty', () => { - userConfig.outputTargets = [{ type: 'dist' }]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const outputTarget = config.outputTargets.find((o) => o.type === 'dist'); - expect(outputTarget).toBeDefined(); - expect(outputTarget.dir).toBe(join(rootDir, 'dist')); - expect(outputTarget.buildDir).toBe(join(rootDir, '/dist')); - expect(outputTarget.empty).toBe(true); - }); - it('should default to not add dist when outputTargets exists, but without dist', () => { - userConfig.outputTargets = []; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets.some((o) => o.type === 'dist')).toBe(false); - }); - it('sets option to transform aliased import paths when enabled', () => { - const outputTarget = { - type: 'dist', - dir: 'my-dist', - buildDir: 'my-build', - empty: false, - transformAliasedImportPathsInCollection: true, - }; - userConfig.outputTargets = [outputTarget]; - userConfig.buildDist = true; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - buildDir: join(rootDir, 'my-dist', 'my-build'), - collectionDir: join(rootDir, 'my-dist', 'collection'), - copy: [], - dir: join(rootDir, 'my-dist'), - empty: false, - esmLoaderPath: join(rootDir, 'my-dist', 'loader'), - type: 'dist', - polyfills: false, - typesDir: join(rootDir, 'my-dist', 'types'), - transformAliasedImportPathsInCollection: true, - isPrimaryPackageOutputTarget: false, - }, - { - esmDir: join(rootDir, 'my-dist', 'my-build', 'testing'), - empty: false, - isBrowserBuild: true, - legacyLoaderFile: join(rootDir, 'my-dist', 'my-build', 'testing.js'), - polyfills: true, - systemDir: undefined, - systemLoaderFile: undefined, - type: 'dist-lazy', - }, - { - copyAssets: 'dist', - copy: [], - dir: join(rootDir, 'my-dist', 'my-build', 'testing'), - type: 'copy', - }, - { - file: join(rootDir, 'my-dist', 'my-build', 'testing', 'testing.css'), - type: 'dist-global-styles', - }, - { - dir: join(rootDir, 'my-dist'), - type: 'dist-types', - typesDir: join(rootDir, 'my-dist', 'types'), - }, - { - collectionDir: join(rootDir, 'my-dist', 'collection'), - dir: join(rootDir, '/my-dist'), - empty: false, - transformAliasedImportPaths: true, - type: 'dist-collection', - }, - { - copy: [{ src: '**/*.svg' }, { src: '**/*.js' }], - copyAssets: 'collection', - dir: join(rootDir, 'my-dist', 'collection'), - type: 'copy', - }, - { - type: 'dist-lazy', - cjsDir: join(rootDir, 'my-dist', 'cjs'), - cjsIndexFile: join(rootDir, 'my-dist', 'index.cjs.js'), - empty: false, - esmDir: join(rootDir, 'my-dist', 'esm'), - esmEs5Dir: undefined, - esmIndexFile: join(rootDir, 'my-dist', 'index.js'), - polyfills: true, - }, - { - cjsDir: join(rootDir, 'my-dist', 'cjs'), - componentDts: join(rootDir, 'my-dist', 'types', 'components.d.ts'), - dir: join(rootDir, 'my-dist', 'loader'), - empty: false, - esmDir: join(rootDir, 'my-dist', 'esm'), - esmEs5Dir: undefined, - type: 'dist-lazy-loader', - }, - ]); - }); - it('sets option to validate primary package output target when enabled', () => { - const outputTarget = { - type: 'dist', - dir: 'my-dist', - buildDir: 'my-build', - empty: false, - isPrimaryPackageOutputTarget: true, - }; - userConfig.outputTargets = [outputTarget]; - userConfig.buildDist = true; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - buildDir: join(rootDir, 'my-dist', 'my-build'), - collectionDir: join(rootDir, 'my-dist', 'collection'), - copy: [], - dir: join(rootDir, 'my-dist'), - empty: false, - esmLoaderPath: join(rootDir, 'my-dist', 'loader'), - type: 'dist', - polyfills: false, - typesDir: join(rootDir, 'my-dist', 'types'), - transformAliasedImportPathsInCollection: true, - isPrimaryPackageOutputTarget: true, - }, - { - esmDir: join(rootDir, 'my-dist', 'my-build', 'testing'), - empty: false, - isBrowserBuild: true, - legacyLoaderFile: join(rootDir, 'my-dist', 'my-build', 'testing.js'), - polyfills: true, - systemDir: undefined, - systemLoaderFile: undefined, - type: 'dist-lazy', - }, - { - copyAssets: 'dist', - copy: [], - dir: join(rootDir, 'my-dist', 'my-build', 'testing'), - type: 'copy', - }, - { - file: join(rootDir, 'my-dist', 'my-build', 'testing', 'testing.css'), - type: 'dist-global-styles', - }, - { - dir: join(rootDir, 'my-dist'), - type: 'dist-types', - typesDir: join(rootDir, 'my-dist', 'types'), - }, - { - collectionDir: join(rootDir, 'my-dist', 'collection'), - dir: join(rootDir, '/my-dist'), - empty: false, - transformAliasedImportPaths: true, - type: 'dist-collection', - }, - { - copy: [{ src: '**/*.svg' }, { src: '**/*.js' }], - copyAssets: 'collection', - dir: join(rootDir, 'my-dist', 'collection'), - type: 'copy', - }, - { - type: 'dist-lazy', - cjsDir: join(rootDir, 'my-dist', 'cjs'), - cjsIndexFile: join(rootDir, 'my-dist', 'index.cjs.js'), - empty: false, - esmDir: join(rootDir, 'my-dist', 'esm'), - esmEs5Dir: undefined, - esmIndexFile: join(rootDir, 'my-dist', 'index.js'), - polyfills: true, - }, - { - cjsDir: join(rootDir, 'my-dist', 'cjs'), - componentDts: join(rootDir, 'my-dist', 'types', 'components.d.ts'), - dir: join(rootDir, 'my-dist', 'loader'), - empty: false, - esmDir: join(rootDir, 'my-dist', 'esm'), - esmEs5Dir: undefined, - type: 'dist-lazy-loader', - }, - ]); - }); -}); -//# sourceMappingURL=validate-output-dist.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-output-dist.spec.js.map b/build/compiler/config/test/validate-output-dist.spec.js.map deleted file mode 100644 index 67d376d2a88..00000000000 --- a/build/compiler/config/test/validate-output-dist.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-output-dist.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-output-dist.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,0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,KAAK,CAAC;gBACvC,YAAY,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,CAAC;gBAClE,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;gBACvC,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC;gBACvC,SAAS,EAAE,SAAS;gBACpB,IAAI,EAAE,kBAAkB;aACzB;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-output-www.spec.d.ts b/build/compiler/config/test/validate-output-www.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-output-www.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-output-www.spec.js b/build/compiler/config/test/validate-output-www.spec.js deleted file mode 100644 index 4d986932506..00000000000 --- a/build/compiler/config/test/validate-output-www.spec.js +++ /dev/null @@ -1,346 +0,0 @@ -import { mockLoadConfigInit } from '@stencil/core/testing'; -import { isOutputTargetCopy, isOutputTargetHydrate, isOutputTargetWww, join } from '@utils'; -import path from 'path'; -import { createConfigFlags } from '../../../cli/config-flags'; -import { validateConfig } from '../validate-config'; -describe('validateOutputTargetWww', () => { - // use Node's resolve() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) - const rootDir = path.resolve('/'); - let userConfig; - let flags; - beforeEach(() => { - flags = createConfigFlags(); - userConfig = { - rootDir: rootDir, - flags, - }; - }); - it('should have default value', () => { - const outputTarget = { - type: 'www', - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - dir: path.join('www', 'docs'), - }; - userConfig.outputTargets = [outputTarget]; - userConfig.buildEs5 = false; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toEqual([ - { - appDir: join(rootDir, 'www', 'docs'), - baseUrl: '/', - buildDir: join(rootDir, 'www', 'docs', 'build'), - dir: join(rootDir, 'www', 'docs'), - empty: true, - indexHtml: join(rootDir, 'www', 'docs', 'index.html'), - polyfills: true, - serviceWorker: { - dontCacheBustURLsMatching: /p-\w{8}/, - globDirectory: join(rootDir, 'www', 'docs'), - globIgnores: [ - '**/host.config.json', - '**/*.system.entry.js', - '**/*.system.js', - '**/app.js', - '**/app.esm.js', - '**/app.css', - ], - globPatterns: ['*.html', '**/*.{js,css,json}'], - swDest: join(rootDir, 'www', 'docs', 'sw.js'), - }, - type: 'www', - }, - { - dir: join(rootDir, 'www', 'docs', 'build'), - esmDir: join(rootDir, 'www', 'docs', 'build'), - isBrowserBuild: true, - polyfills: true, - systemDir: undefined, - systemLoaderFile: undefined, - type: 'dist-lazy', - }, - { - copyAssets: 'dist', - dir: join(rootDir, 'www', 'docs', 'build'), - type: 'copy', - }, - { - copy: [ - { - src: 'assets', - warn: false, - }, - { - src: 'manifest.json', - warn: false, - }, - ], - dir: join(rootDir, 'www', 'docs'), - type: 'copy', - }, - { - file: join(rootDir, 'www', 'docs', 'build', 'app.css'), - type: 'dist-global-styles', - }, - ]); - }); - it('should www with sub directory', () => { - const outputTarget = { - type: 'www', - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - dir: path.join('www', 'docs'), - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const www = config.outputTargets.find(isOutputTargetWww); - expect(www.dir).toBe(join(rootDir, 'www', 'docs')); - expect(www.appDir).toBe(join(rootDir, 'www', 'docs')); - expect(www.buildDir).toBe(join(rootDir, 'www', 'docs', 'build')); - expect(www.indexHtml).toBe(join(rootDir, 'www', 'docs', 'index.html')); - }); - it('should set www values', () => { - const outputTarget = { - type: 'www', - dir: 'my-www', - buildDir: 'my-build', - indexHtml: 'my-index.htm', - empty: false, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const www = config.outputTargets.find(isOutputTargetWww); - expect(www.type).toBe('www'); - expect(www.dir).toBe(join(rootDir, 'my-www')); - expect(www.buildDir).toBe(join(rootDir, 'my-www', 'my-build')); - expect(www.indexHtml).toBe(join(rootDir, 'my-www', 'my-index.htm')); - expect(www.empty).toBe(false); - }); - it('should default to add www when outputTargets is undefined', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets).toHaveLength(5); - const outputTarget = config.outputTargets.find(isOutputTargetWww); - expect(outputTarget.dir).toBe(join(rootDir, 'www')); - expect(outputTarget.buildDir).toBe(join(rootDir, 'www', 'build')); - expect(outputTarget.indexHtml).toBe(join(rootDir, 'www', 'index.html')); - expect(outputTarget.empty).toBe(true); - }); - describe('baseUrl', () => { - it('baseUrl does not end with / with dir set', () => { - const outputTarget = { - type: 'www', - dir: 'my-www', - baseUrl: '/docs', - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const www = config.outputTargets.find(isOutputTargetWww); - expect(www.type).toBe('www'); - expect(www.dir).toBe(join(rootDir, 'my-www')); - expect(www.baseUrl).toBe('/docs/'); - expect(www.appDir).toBe(join(rootDir, 'my-www/docs')); - expect(www.buildDir).toBe(join(rootDir, 'my-www', 'docs', 'build')); - expect(www.indexHtml).toBe(join(rootDir, 'my-www', 'docs', 'index.html')); - }); - it('baseUrl does not end with /', () => { - const outputTarget = { - type: 'www', - baseUrl: '/docs', - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const www = config.outputTargets.find(isOutputTargetWww); - expect(www.type).toBe('www'); - expect(www.dir).toBe(join(rootDir, 'www')); - expect(www.baseUrl).toBe('/docs/'); - expect(www.appDir).toBe(join(rootDir, 'www/docs')); - expect(www.buildDir).toBe(join(rootDir, 'www', 'docs', 'build')); - expect(www.indexHtml).toBe(join(rootDir, 'www', 'docs', 'index.html')); - }); - it('baseUrl is a full url', () => { - const outputTarget = { - type: 'www', - baseUrl: 'https://example.com/docs', - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const www = config.outputTargets.find(isOutputTargetWww); - expect(www.type).toBe('www'); - expect(www.dir).toBe(join(rootDir, 'www')); - expect(www.baseUrl).toBe('https://example.com/docs/'); - expect(www.appDir).toBe(join(rootDir, 'www/docs')); - expect(www.buildDir).toBe(join(rootDir, 'www', 'docs', 'build')); - expect(www.indexHtml).toBe(join(rootDir, 'www', 'docs', 'index.html')); - }); - }); - describe('copy', () => { - it('should add copy tasks', () => { - const outputTarget = { - type: 'www', - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - dir: path.join('www', 'docs'), - copy: [ - { - src: 'index-modules.html', - dest: 'index-2.html', - }, - ], - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const copyTargets = config.outputTargets.filter(isOutputTargetCopy); - expect(copyTargets).toEqual([ - { - copyAssets: 'dist', - dir: join(rootDir, 'www', 'docs', 'build'), - type: 'copy', - }, - { - copy: [ - { - dest: 'index-2.html', - src: 'index-modules.html', - }, - { - src: 'assets', - warn: false, - }, - { - src: 'manifest.json', - warn: false, - }, - ], - dir: join(rootDir, 'www', 'docs'), - type: 'copy', - }, - ]); - }); - it('should replace copy tasks', () => { - const outputTarget = { - type: 'www', - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - dir: path.join('www', 'docs'), - copy: [ - { - src: 'assets', - dest: 'assets2', - }, - ], - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const copyTargets = config.outputTargets.filter(isOutputTargetCopy); - expect(copyTargets).toEqual([ - { - copyAssets: 'dist', - dir: join(rootDir, 'www', 'docs', 'build'), - type: 'copy', - }, - { - copy: [ - { - dest: 'assets2', - src: 'assets', - }, - { - src: 'manifest.json', - warn: false, - }, - ], - dir: join(rootDir, 'www', 'docs'), - type: 'copy', - }, - ]); - }); - it('should disable copy tasks', () => { - const outputTarget = { - type: 'www', - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - dir: path.join('www', 'docs'), - copy: null, - }; - userConfig.outputTargets = [outputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const copyTargets = config.outputTargets.filter(isOutputTargetCopy); - expect(copyTargets).toEqual([ - { - copyAssets: 'dist', - dir: join(rootDir, 'www', 'docs', 'build'), - type: 'copy', - }, - { - copy: [], - dir: join(rootDir, 'www', 'docs'), - type: 'copy', - }, - ]); - }); - }); - describe('dist-hydrate-script', () => { - it('should not add hydrate by default', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets.some((o) => o.type === 'dist-hydrate-script')).toBe(false); - expect(config.outputTargets.some((o) => o.type === 'www')).toBe(true); - }); - it('should not add hydrate with user www', () => { - const wwwOutputTarget = { - type: 'www', - }; - userConfig.outputTargets = [wwwOutputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets.some((o) => o.type === 'dist-hydrate-script')).toBe(false); - expect(config.outputTargets.some((o) => o.type === 'www')).toBe(true); - }); - it('should add hydrate with user hydrate and www outputs', () => { - const wwwOutputTarget = { - type: 'www', - }; - const hydrateOutputTarget = { - type: 'dist-hydrate-script', - }; - userConfig.outputTargets = [wwwOutputTarget, hydrateOutputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets.some((o) => o.type === 'dist-hydrate-script')).toBe(true); - expect(config.outputTargets.some((o) => o.type === 'www')).toBe(true); - }); - it('should add hydrate with --prerender flag', () => { - userConfig.flags = { ...flags, prerender: true }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets.some((o) => o.type === 'dist-hydrate-script')).toBe(true); - expect(config.outputTargets.some((o) => o.type === 'www')).toBe(true); - }); - it('should add hydrate with --ssr flag', () => { - userConfig.flags = { ...flags, ssr: true }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets.some((o) => o.type === 'dist-hydrate-script')).toBe(true); - expect(config.outputTargets.some((o) => o.type === 'www')).toBe(true); - }); - it('should add externals and defaults', () => { - const hydrateOutputTarget = { - type: 'dist-hydrate-script', - external: ['lodash', 'left-pad'], - }; - userConfig.outputTargets = [hydrateOutputTarget]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const o = config.outputTargets.find(isOutputTargetHydrate); - expect(o.external).toContain('lodash'); - expect(o.external).toContain('left-pad'); - expect(o.external).toContain('fs'); - expect(o.external).toContain('path'); - expect(o.external).toContain('crypto'); - }); - it('should add node builtins to external by default', () => { - userConfig.flags = { ...flags, prerender: true }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const o = config.outputTargets.find(isOutputTargetHydrate); - expect(o.external).toContain('fs'); - expect(o.external).toContain('path'); - expect(o.external).toContain('crypto'); - }); - }); -}); -//# sourceMappingURL=validate-output-www.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-output-www.spec.js.map b/build/compiler/config/test/validate-output-www.spec.js.map deleted file mode 100644 index a0868cf231d..00000000000 --- a/build/compiler/config/test/validate-output-www.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-output-www.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-output-www.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC5F,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAe,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,yBAAyB,EAAE,GA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QAAQ,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACrC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;YACzD,UAAU,CAAC,KAAK,GAAG,EAAE,GAAG,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;YAEjD,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAC;YACpE,MAAM,CAAC,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,qBAAqB,CAA0B,CAAC;YACpF,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACnC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACrC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-paths.spec.d.ts b/build/compiler/config/test/validate-paths.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-paths.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-paths.spec.js b/build/compiler/config/test/validate-paths.spec.js deleted file mode 100644 index 8f9d2e49cfd..00000000000 --- a/build/compiler/config/test/validate-paths.spec.js +++ /dev/null @@ -1,155 +0,0 @@ -import { mockCompilerSystem, mockLoadConfigInit, mockLogger } from '@stencil/core/testing'; -import { join } from '@utils'; -import path from 'path'; -import { validateConfig } from '../validate-config'; -describe('validatePaths', () => { - let userConfig; - const logger = mockLogger(); - const sys = mockCompilerSystem(); - // use Node's resolve() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) - const ROOT = path.resolve('/'); - beforeEach(() => { - userConfig = { - sys: sys, - logger: logger, - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - rootDir: path.join(ROOT, 'User', 'my-app'), - namespace: 'Testing', - }; - }); - it('should set absolute cacheDir', () => { - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - userConfig.cacheDir = path.join(ROOT, 'some', 'custom', 'cache'); - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.cacheDir).toBe(join(ROOT, 'some', 'custom', 'cache')); - }); - it('should set relative cacheDir', () => { - userConfig.cacheDir = 'custom-cache'; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.cacheDir).toBe(join(ROOT, 'User', 'my-app', 'custom-cache')); - }); - it('should set default cacheDir', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.cacheDir).toBe(join(ROOT, 'User', 'my-app', '.stencil')); - }); - it('should set default wwwIndexHtml and convert to absolute path', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(path.basename(config.outputTargets[0].indexHtml)).toBe('index.html'); - expect(path.isAbsolute(config.outputTargets[0].indexHtml)).toBe(true); - }); - it('should convert a custom wwwIndexHtml to absolute path', () => { - userConfig.outputTargets = [ - { - type: 'www', - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - indexHtml: path.join('assets', 'custom-index.html'), - }, - ]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(path.basename(config.outputTargets[0].indexHtml)).toBe('custom-index.html'); - expect(path.isAbsolute(config.outputTargets[0].indexHtml)).toBe(true); - }); - it('should set default indexHtmlSrc and convert to absolute path', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(path.basename(config.srcIndexHtml)).toBe('index.html'); - expect(path.isAbsolute(config.srcIndexHtml)).toBe(true); - }); - it('should set emptyDist to false', () => { - userConfig.outputTargets = [ - { - type: 'www', - empty: false, - }, - ]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets[0].empty).toBe(false); - }); - it('should set default emptyWWW to true', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets[0].empty).toBe(true); - }); - it('should set emptyWWW to false', () => { - userConfig.outputTargets = [ - { - type: 'www', - empty: false, - }, - ]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets[0].empty).toBe(false); - }); - it('should set default collection dir and convert to absolute path', () => { - userConfig.outputTargets = [ - { - type: 'dist', - }, - ]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(path.basename(config.outputTargets[0].collectionDir)).toBe('collection'); - expect(path.isAbsolute(config.outputTargets[0].collectionDir)).toBe(true); - }); - it('should set default types dir and convert to absolute path', () => { - userConfig.outputTargets = [ - { - type: 'dist', - }, - ]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(path.basename(config.outputTargets[0].typesDir)).toBe('types'); - expect(path.isAbsolute(config.outputTargets[0].typesDir)).toBe(true); - }); - it('should set default build dir and convert to absolute path', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - // the path will be normalized by Stencil us use '/', split on that regardless of platform - const parts = config.outputTargets[0].buildDir.split('/'); - expect(parts[parts.length - 1]).toBe('build'); - expect(parts[parts.length - 2]).toBe('www'); - expect(path.isAbsolute(config.outputTargets[0].buildDir)).toBe(true); - }); - it('should set build dir w/ custom www', () => { - userConfig.outputTargets = [ - { - type: 'www', - dir: 'custom-www', - }, - ]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - // the path will be normalized by Stencil us use '/', split on that regardless of platform - const parts = config.outputTargets[0].buildDir.split('/'); - expect(parts[parts.length - 1]).toBe('build'); - expect(parts[parts.length - 2]).toBe('custom-www'); - expect(path.isAbsolute(config.outputTargets[0].buildDir)).toBe(true); - }); - it('should set default src dir and convert to absolute path', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(path.basename(config.srcDir)).toBe('src'); - expect(path.isAbsolute(config.srcDir)).toBe(true); - }); - it('should set src dir and convert to absolute path', () => { - userConfig.srcDir = 'app'; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(path.basename(config.srcDir)).toBe('app'); - expect(path.isAbsolute(config.srcDir)).toBe(true); - }); - it('should convert globalScript to absolute path, if a globalScript property was provided', () => { - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - userConfig.globalScript = path.join('src', 'global', 'index.ts'); - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(path.basename(config.globalScript)).toBe('index.ts'); - expect(path.isAbsolute(config.globalScript)).toBe(true); - }); - it('should convert globalStyle string to absolute path array, if a globalStyle property was provided', () => { - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - userConfig.globalStyle = path.join('src', 'global', 'styles.css'); - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(path.basename(config.globalStyle)).toBe('styles.css'); - expect(path.isAbsolute(config.globalStyle)).toBe(true); - }); -}); -//# sourceMappingURL=validate-paths.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-paths.spec.js.map b/build/compiler/config/test/validate-paths.spec.js.map deleted file mode 100644 index 4ef896b8c3f..00000000000 --- a/build/compiler/config/test/validate-paths.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-paths.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-paths.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QA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EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAC;QACpE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5D,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kGAAkG,EAAE,GAAG,EAAE;QAC1G,+GAA+G;QAC/G,oCAAoC;QACpC,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;QAClE,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAC;QACpE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC7D,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-rollup-config.spec.d.ts b/build/compiler/config/test/validate-rollup-config.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-rollup-config.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-rollup-config.spec.js b/build/compiler/config/test/validate-rollup-config.spec.js deleted file mode 100644 index ef2aeab99d0..00000000000 --- a/build/compiler/config/test/validate-rollup-config.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -import { validateRollupConfig } from '../validate-rollup-config'; -describe('validateStats', () => { - let config; - beforeEach(() => { - config = {}; - }); - it('should use default if no config provided', () => { - const rollupConfig = validateRollupConfig(config); - expect(rollupConfig).toEqual({ - inputOptions: {}, - outputOptions: {}, - }); - }); - it('should set based on inputOptions if provided', () => { - config.rollupConfig = { - inputOptions: { - context: 'window', - }, - }; - const rollupConfig = validateRollupConfig(config); - expect(rollupConfig).toEqual({ - inputOptions: { - context: 'window', - }, - outputOptions: {}, - }); - }); - it('should use default if inputOptions is not provided but outputOptions is', () => { - config.rollupConfig = { - outputOptions: { - globals: { - jquery: '$', - }, - }, - }; - const rollupConfig = validateRollupConfig(config); - expect(rollupConfig).toEqual({ - inputOptions: {}, - outputOptions: { - globals: { - jquery: '$', - }, - }, - }); - }); - it('should pass all valid config data through and not those that are extraneous', () => { - config.rollupConfig = { - inputOptions: { - context: 'window', - notAnOption: {}, - }, - outputOptions: { - globals: { - jquery: '$', - }, - }, - }; - const rollupConfig = validateRollupConfig(config); - expect(rollupConfig).toEqual({ - inputOptions: { - context: 'window', - }, - outputOptions: { - globals: { - jquery: '$', - }, - }, - }); - }); -}); -//# sourceMappingURL=validate-rollup-config.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-rollup-config.spec.js.map b/build/compiler/config/test/validate-rollup-config.spec.js.map deleted file mode 100644 index 6875c5cd442..00000000000 --- a/build/compiler/config/test/validate-rollup-config.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-rollup-config.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-rollup-config.spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,MAAgB,CAAC;IAErB,UAAU,CAAC,GAAG,EAAE;QACd,MAAM,GAAG,EAAE,CAAC;IACd,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAClD,MAAM,YAAY,GAAG,o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,YAAY,CAAC,CAAC,OAAO,CAAC;YAC3B,YAAY,EAAE;gBACZ,OAAO,EAAE,QAAQ;aAClB;YACD,aAAa,EAAE;gBACb,OAAO,EAAE;oBACP,MAAM,EAAE,GAAG;iBACZ;aACF;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-service-worker.spec.d.ts b/build/compiler/config/test/validate-service-worker.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-service-worker.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-service-worker.spec.js b/build/compiler/config/test/validate-service-worker.spec.js deleted file mode 100644 index 2fe495f658f..00000000000 --- a/build/compiler/config/test/validate-service-worker.spec.js +++ /dev/null @@ -1,174 +0,0 @@ -import { mockCompilerSystem, mockLogger, mockValidatedConfig } from '@stencil/core/testing'; -import { createConfigFlags } from '../../../cli/config-flags'; -import { validateServiceWorker } from '../validate-service-worker'; -describe('validateServiceWorker', () => { - let config; - let outputTarget; - beforeEach(() => { - config = mockValidatedConfig({ - devMode: false, - flags: createConfigFlags(), - fsNamespace: 'app', - hydratedFlag: null, - logger: mockLogger(), - outputTargets: [], - packageJsonFilePath: '/package.json', - rootDir: '/', - sys: mockCompilerSystem(), - testing: {}, - transformAliasedImportPaths: true, - }); - }); - /** - * A little util to work around a typescript annoyance. Because - * `outputTarget.serviceWorker` is typed as - * `serviceWorker?: ServiceWorkerConfig | null | false;` we get type errors - * all over if we try to just access it directly. So instead, do a little - * check to see if it's falsy. If not, we return it, and if it is we fail the test. - * - * @param target the output target from which we want to pull the serviceWorker - * @returns a serviceWorker object or `void`, with a `void` return being - * accompanied by a manually-triggered test failure. - */ - function getServiceWorker(target) { - if (target.serviceWorker) { - return target.serviceWorker; - } - else { - throw new Error('the serviceWorker on the provided target was unexpectedly falsy, so this test needs to fail!'); - } - } - it('should add host.config.json to globIgnores', () => { - outputTarget = { - type: 'www', - appDir: '/User/me/app/www/', - }; - validateServiceWorker(config, outputTarget); - expect(getServiceWorker(outputTarget).globIgnores).toContain('**/host.config.json'); - }); - it('should set globIgnores from string', () => { - outputTarget = { - type: 'www', - appDir: '/User/me/app/www/', - serviceWorker: { - globIgnores: '**/some-file.js', - }, - }; - validateServiceWorker(config, outputTarget); - expect(getServiceWorker(outputTarget).globIgnores).toContain('**/some-file.js'); - }); - it('should set globDirectory', () => { - outputTarget = { - type: 'www', - appDir: '/User/me/app/www/', - serviceWorker: { - globDirectory: '/custom/www', - }, - }; - validateServiceWorker(config, outputTarget); - expect(getServiceWorker(outputTarget).globDirectory).toBe('/custom/www'); - }); - it('should set default globDirectory', () => { - outputTarget = { - type: 'www', - appDir: '/User/me/app/www/', - }; - validateServiceWorker(config, outputTarget); - expect(getServiceWorker(outputTarget).globDirectory).toBe('/User/me/app/www/'); - }); - it('should set globPatterns array', () => { - outputTarget = { - type: 'www', - appDir: '/www', - serviceWorker: { - globPatterns: ['**/*.{png,svg}'], - }, - }; - validateServiceWorker(config, outputTarget); - expect(getServiceWorker(outputTarget).globPatterns).toEqual(['**/*.{png,svg}']); - }); - it('should set globPatterns string', () => { - outputTarget = { - type: 'www', - appDir: '/www', - serviceWorker: { - globPatterns: '**/*.{png,svg}', - }, - }; - validateServiceWorker(config, outputTarget); - expect(getServiceWorker(outputTarget).globPatterns).toEqual(['**/*.{png,svg}']); - }); - it('should create default globPatterns', () => { - outputTarget = { - type: 'www', - appDir: '/www', - }; - validateServiceWorker(config, outputTarget); - expect(getServiceWorker(outputTarget).globPatterns).toEqual(['*.html', '**/*.{js,css,json}']); - }); - it('should create default sw config when www type and prod mode', () => { - outputTarget = { - type: 'www', - appDir: '/www', - }; - validateServiceWorker(config, outputTarget); - expect(outputTarget.serviceWorker).not.toBe(null); - }); - it('should not create default sw config when www type and devMode', () => { - outputTarget = { - type: 'www', - appDir: '/www', - }; - config.devMode = true; - validateServiceWorker(config, outputTarget); - expect(outputTarget.serviceWorker).toBe(null); - }); - it('should create default sw config when true boolean, even if devMode', () => { - outputTarget = { - type: 'www', - appDir: '/www', - serviceWorker: true, - }; - config.devMode = true; - validateServiceWorker(config, outputTarget); - expect(outputTarget.serviceWorker).not.toBe(true); - }); - it('should not create sw config when in devMode', () => { - outputTarget = { - type: 'www', - appDir: '/www', - serviceWorker: true, - }; - config.devMode = true; - validateServiceWorker(config, outputTarget); - expect(outputTarget.serviceWorker).toBe(null); - }); - it('should create sw config when in devMode if flag serviceWorker', () => { - outputTarget = { - type: 'www', - appDir: '/www', - serviceWorker: true, - }; - config.devMode = true; - config.flags.serviceWorker = true; - validateServiceWorker(config, outputTarget); - expect(outputTarget.serviceWorker).not.toBe(null); - }); - it('should stay null', () => { - outputTarget = { - type: 'www', - serviceWorker: null, - }; - validateServiceWorker(config, outputTarget); - expect(outputTarget.serviceWorker).toBe(null); - }); - it('should stay false', () => { - outputTarget = { - type: 'www', - serviceWorker: false, - }; - validateServiceWorker(config, outputTarget); - expect(outputTarget.serviceWorker).toBe(false); - }); -}); -//# sourceMappingURL=validate-service-worker.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-service-worker.spec.js.map b/build/compiler/config/test/validate-service-worker.spec.js.map deleted file mode 100644 index 68800a9b055..00000000000 --- a/build/compiler/config/test/validate-service-worker.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-service-worker.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-service-worker.spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAI,MAAyB,CAAC;IAE9B,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,CAAC;IAEH,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC3B,YAAY,GAAG;YACb,IAAI,EAAE,KAAK;YACX,aAAa,EAAE,KAAK;SACrB,CAAC;QACF,qBAAqB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QAC5C,MAAM,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-stats.spec.d.ts b/build/compiler/config/test/validate-stats.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-stats.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-stats.spec.js b/build/compiler/config/test/validate-stats.spec.js deleted file mode 100644 index aba3b6ce796..00000000000 --- a/build/compiler/config/test/validate-stats.spec.js +++ /dev/null @@ -1,45 +0,0 @@ -import { mockConfig, mockLoadConfigInit } from '@stencil/core/testing'; -import { validateConfig } from '../validate-config'; -describe('validateStats', () => { - let userConfig; - beforeEach(() => { - userConfig = mockConfig(); - }); - it('adds stats from flags, w/ no outputTargets', () => { - // the flags field is expected to have been set by the mock creation function for unvalidated configs, hence the - // bang operator - userConfig.flags.stats = true; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const o = config.outputTargets.find((o) => o.type === 'stats'); - expect(o).toBeDefined(); - expect(o.file).toContain('stencil-stats.json'); - }); - it('uses stats config, custom path', () => { - userConfig.outputTargets = [ - { - type: 'stats', - file: 'custom-path.json', - }, - ]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const o = config.outputTargets.find((o) => o.type === 'stats'); - expect(o).toBeDefined(); - expect(o.file).toContain('custom-path.json'); - }); - it('uses stats config, defaults file', () => { - userConfig.outputTargets = [ - { - type: 'stats', - }, - ]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - const o = config.outputTargets.find((o) => o.type === 'stats'); - expect(o).toBeDefined(); - expect(o.file).toContain('stencil-stats.json'); - }); - it('default no stats', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.outputTargets.some((o) => o.type === 'stats')).toBe(false); - }); -}); -//# sourceMappingURL=validate-stats.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-stats.spec.js.map b/build/compiler/config/test/validate-stats.spec.js.map deleted file mode 100644 index f29dc0d6734..00000000000 --- a/build/compiler/config/test/validate-stats.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-stats.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-stats.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,UAAoB,CAAC;IAEzB,UAAU,CAAC,GAAG,EAAE;QACd,UAAU,GAAG,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACpD,gHAAgH;QAChH,gBAAgB;QAChB,UAAU,CAAC,KAAM,CAAC,KAAK,GAAG,IAAI,CAAC;QAE/B,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAC;QACpE,MAAM,CAAC,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAwB,CAAC;QACtF,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACxB,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH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CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-testing.spec.d.ts b/build/compiler/config/test/validate-testing.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-testing.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-testing.spec.js b/build/compiler/config/test/validate-testing.spec.js deleted file mode 100644 index e3a40dcbc7f..00000000000 --- a/build/compiler/config/test/validate-testing.spec.js +++ /dev/null @@ -1,636 +0,0 @@ -import { mockCompilerSystem, mockLoadConfigInit, mockLogger } from '@stencil/core/testing'; -import { join } from '@utils'; -import path from 'path'; -import { createConfigFlags } from '../../../cli/config-flags'; -import { validateConfig } from '../validate-config'; -describe('validateTesting', () => { - // use Node's resolve() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) - const ROOT = path.resolve('/'); - const sys = mockCompilerSystem(); - const logger = mockLogger(); - let userConfig; - let flags; - beforeEach(() => { - flags = createConfigFlags(); - userConfig = { - sys: sys, - logger: logger, - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - rootDir: path.join(ROOT, 'User', 'some', 'path'), - srcDir: path.join(ROOT, 'User', 'some', 'path', 'src'), - flags, - namespace: 'Testing', - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - configPath: path.join(ROOT, 'User', 'some', 'path', 'stencil.config.ts'), - }; - userConfig.outputTargets = [ - { - type: 'www', - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - dir: path.join(ROOT, 'www'), - }, - ]; - }); - describe('no testing flags', () => { - it('returns an empty testing config when no testing config nor testing flags are provided', () => { - userConfig.flags = { ...flags, e2e: false, spec: false }; - delete userConfig.testing; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing).toEqual({}); - }); - it('returns the provided testing config when neither testing flag is provided', () => { - const testingConfig = { - bail: false, - }; - userConfig.flags = { ...flags, e2e: false, spec: false }; - userConfig.testing = testingConfig; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing).toEqual(testingConfig); - }); - }); - describe('browserHeadless', () => { - describe("using 'headless' value from cli", () => { - it.each([false, true, 'new'])('sets browserHeadless to %s', (headless) => { - userConfig.flags = { ...flags, e2e: true, headless }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserHeadless).toBe(headless); - }); - it('defaults to true outside of CI', () => { - userConfig.flags = { ...flags, e2e: true }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserHeadless).toBe(true); - }); - }); - describe('with ci enabled', () => { - it("forces using the old headless mode when 'headless: false'", () => { - userConfig.flags = { ...flags, ci: true, e2e: true, headless: false }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserHeadless).toBe(true); - }); - it('allows the new headless mode to be used', () => { - userConfig.flags = { ...flags, ci: true, e2e: true, headless: 'new' }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserHeadless).toBe('new'); - }); - }); - describe('`testing` configuration', () => { - beforeEach(() => { - userConfig.flags = { ...flags, e2e: true, headless: undefined }; - }); - it.each([false, true, 'new'])('uses %s browserHeadless mode from testing config', (browserHeadlessValue) => { - userConfig.testing = { browserHeadless: browserHeadlessValue }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserHeadless).toBe(browserHeadlessValue); - }); - it('defaults the headless mode to true when browserHeadless is not provided', () => { - userConfig.testing = {}; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserHeadless).toBe(true); - }); - }); - }); - describe('devTools', () => { - it('ignores devTools settings if CI is enabled', () => { - userConfig.flags = { ...flags, ci: true, devtools: true, e2e: true }; - userConfig.testing = {}; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserDevtools).toBeUndefined(); - }); - it('sets browserDevTools to true when the devtools flag is set', () => { - userConfig.flags = { ...flags, devtools: true, e2e: true }; - userConfig.testing = {}; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserDevtools).toBe(true); - // browserHeadless must be false to enabled dev tools (which are headful by definition) - expect(config.testing.browserHeadless).toBe(false); - }); - it("sets browserDevTools to true when set in a project's config", () => { - userConfig.flags = { ...flags, devtools: false, e2e: true }; - userConfig.testing = { browserDevtools: true }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserDevtools).toBe(true); - // browserHeadless must be false to enabled dev tools (which are headful by definition) - expect(config.testing.browserHeadless).toBe(false); - }); - }); - describe('browserWaitUntil', () => { - it('sets the default to "load" if no value is provided', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = {}; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserWaitUntil).toBe('load'); - }); - it('does not override a provided value', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - browserWaitUntil: 'domcontentloaded', - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserWaitUntil).toBe('domcontentloaded'); - }); - }); - describe('browserArgs', () => { - it('does not add duplicate default fields', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - browserArgs: ['--unique', '--font-render-hinting=medium'], - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserArgs).toEqual(['--unique', '--font-render-hinting=medium', '--incognito']); - }); - it('adds default browser args', () => { - userConfig.flags = { ...flags, e2e: true }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserArgs).toEqual(['--font-render-hinting=medium', '--incognito']); - }); - it("adds additional browser args when the 'ci' flag is set", () => { - userConfig.flags = { ...flags, ci: true, e2e: true }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.browserArgs).toEqual([ - '--font-render-hinting=medium', - '--incognito', - '--no-sandbox', - '--disable-setuid-sandbox', - '--disable-dev-shm-usage', - ]); - }); - }); - describe('screenshotConnector', () => { - it('assigns the screenshotConnector value from the provided flags', () => { - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - userConfig.flags = { ...flags, e2e: true, screenshotConnector: path.join(ROOT, 'mock', 'path') }; - userConfig.testing = { screenshotConnector: path.join(ROOT, 'another', 'mock', 'path') }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.screenshotConnector).toBe(join(ROOT, 'mock', 'path')); - }); - it("uses the config's root dir to make the screenshotConnector path absolute", () => { - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - userConfig.flags = { ...flags, e2e: true, screenshotConnector: path.join('mock', 'path') }; - userConfig.testing = { screenshotConnector: path.join('another', 'mock', 'path') }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.screenshotConnector).toBe(join(ROOT, 'User', 'some', 'path', 'mock', 'path')); - }); - it('sets screenshotConnector if a non-string is provided', () => { - userConfig.flags = { ...flags, e2e: true }; - // the nature of this test is to evaluate a non-string, hence the type assertion - userConfig.testing = { screenshotConnector: true }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.screenshotConnector).toBe(join('screenshot', 'local-connector.js')); - }); - }); - describe('testPathIgnorePatterns', () => { - it('does not alter a provided testPathIgnorePatterns', () => { - userConfig.flags = { ...flags, e2e: true }; - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - const mockPath1 = path.join('this', 'is', 'a', 'mock', 'path'); - const mockPath2 = path.join('this', 'is', 'another', 'mock', 'path'); - userConfig.testing = { testPathIgnorePatterns: [mockPath1, mockPath2] }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.testPathIgnorePatterns).toEqual([mockPath1, mockPath2]); - }); - it('sets the default testPathIgnorePatterns if no array is provided', () => { - userConfig.flags = { ...flags, e2e: true }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.testPathIgnorePatterns).toEqual([ - join(ROOT, 'User', 'some', 'path', '.vscode'), - join(ROOT, 'User', 'some', 'path', '.stencil'), - join(ROOT, 'User', 'some', 'path', 'node_modules'), - // use Node's join() here as the normalization process doesn't necessarily occur for this field - path.join(ROOT, 'www'), - ]); - }); - it('sets the default testPathIgnorePatterns with custom outputTargets', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.outputTargets = [ - { type: 'dist', dir: 'dist-folder' }, - { type: 'www', dir: 'www-folder' }, - { type: 'docs-readme', dir: 'docs' }, - ]; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.testPathIgnorePatterns).toEqual([ - join(ROOT, 'User', 'some', 'path', '.vscode'), - join(ROOT, 'User', 'some', 'path', '.stencil'), - join(ROOT, 'User', 'some', 'path', 'node_modules'), - join(ROOT, 'User', 'some', 'path', 'www-folder'), - join(ROOT, 'User', 'some', 'path', 'dist-folder'), - ]); - }); - }); - describe('preset', () => { - it.each([null, true])("uses stencil's default preset if a non-string (%s) is provided", (nonStringPreset) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - // the nature of this test requires a non-string value, hence the type assertion - preset: nonStringPreset, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - // 'testing' is the internal directory where `jest-preset.js` can be found - expect(config.testing.preset).toEqual('testing'); - }); - it('forces a provided preset path to be absolute', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - preset: path.join('mock', 'path'), - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.preset).toEqual(join(ROOT, 'User', 'some', 'path', 'mock', 'path')); - }); - it('does not change an already absolute preset path', () => { - userConfig.flags = { ...flags, e2e: true }; - // use Node's join() here to simulate a user using either Win/Posix separators (depending on the platform these - // tests are run on) for their input - const presetPath = path.join(ROOT, 'mock', 'path'); - userConfig.testing = { - preset: presetPath, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - // per the test name, we should not change an already absolute path - assert against the preset path that was - // generated using Node's join() - expect(config.testing.preset).toEqual(presetPath); - }); - }); - describe('setupFilesAfterEnv', () => { - it.each([null, true])('forces a non-array (%s) of setup files to a default', (nonSetupFiles) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - // the nature of this test requires a non-string value, hence the type assertion - setupFilesAfterEnv: nonSetupFiles, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - // 'testing' is the internal directory where the default setup file can be found - expect(config.testing.setupFilesAfterEnv).toEqual([join('testing', 'jest-setuptestframework.js')]); - }); - it.each([[[]], [['mock-setup-file.js']]])("prepends stencil's default file to an array: %s", (setupFilesAfterEnv) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - setupFilesAfterEnv: [...setupFilesAfterEnv], - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.setupFilesAfterEnv).toEqual([ - // 'testing' is the internal directory where the default setup file can be found - join('testing', 'jest-setuptestframework.js'), - ...setupFilesAfterEnv, - ]); - }); - }); - describe('testEnvironment', () => { - it('sets a relative testEnvironment to absolute', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - testEnvironment: './rel-path.js', - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(path.isAbsolute(config.testing.testEnvironment)).toBe(true); - expect(path.basename(config.testing.testEnvironment)).toEqual('rel-path.js'); - }); - it('allows a node module testEnvironment', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - testEnvironment: 'jsdom', - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.testEnvironment).toEqual('jsdom'); - }); - it('does nothing for an empty testEnvironment', () => { - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.testEnvironment).toBeUndefined(); - }); - }); - describe('allowableMismatchedPixels', () => { - it.each([0, 123])('does nothing is a non-negative number (%s) is provided', (pixelCount) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - allowableMismatchedPixels: pixelCount, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.allowableMismatchedPixels).toBe(pixelCount); - }); - it('creates an error if a negative number is provided', () => { - const pixelCount = -1; - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - allowableMismatchedPixels: pixelCount, - }; - const { config, diagnostics } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.allowableMismatchedPixels).toBe(pixelCount); - expect(diagnostics).toHaveLength(1); - expect(diagnostics[0]).toEqual({ - absFilePath: undefined, - header: 'Build Error', - level: 'error', - lines: [], - messageText: 'allowableMismatchedPixels must be a value that is 0 or greater', - relFilePath: undefined, - type: 'build', - }); - }); - it.each([true, null])('defaults to a reasonable value if a non-number (%s) is provided', (pixelCount) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - // the nature of this test requires using a non-number, hence th type assertion - allowableMismatchedPixels: pixelCount, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.allowableMismatchedPixels).toBe(100); - }); - }); - describe('allowableMismatchedRatio', () => { - it.each([-0, 0, 0.5, 1.0])('does nothing if a value between 0 and 1 is provided (%s)', (allowableMismatchedRatio) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - allowableMismatchedRatio, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.allowableMismatchedRatio).toBe(allowableMismatchedRatio); - }); - it.each([-1, -0.1, 1.1, 2])('creates an error if a number outside 0 and 1 is provided (%s)', (allowableMismatchedRatio) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - allowableMismatchedRatio, - }; - const { config, diagnostics } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.allowableMismatchedRatio).toBe(allowableMismatchedRatio); - expect(diagnostics).toHaveLength(1); - expect(diagnostics[0]).toEqual({ - absFilePath: undefined, - header: 'Build Error', - level: 'error', - lines: [], - messageText: 'allowableMismatchedRatio must be a value ranging from 0 to 1', - relFilePath: undefined, - type: 'build', - }); - }); - it.each([true, null])('does nothing when a non-number (%s) is provided', (allowableMismatchedRatio) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - // the nature of this test requires using a non-number, hence th type assertion - allowableMismatchedRatio: allowableMismatchedRatio, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.allowableMismatchedRatio).toBe(allowableMismatchedRatio); - }); - }); - describe('pixelmatchThreshold', () => { - it.each([-0, 0, 0.5, 1.0])('does nothing if a value between 0 and 1 is provided (%s)', (pixelmatchThreshold) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - pixelmatchThreshold, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.pixelmatchThreshold).toBe(pixelmatchThreshold); - }); - it.each([-0.1, -1, 1.1, 2])('creates an error if a number outside 0 and 1 is provided (%s)', (pixelmatchThreshold) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - pixelmatchThreshold, - }; - const { config, diagnostics } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.pixelmatchThreshold).toBe(pixelmatchThreshold); - expect(diagnostics).toHaveLength(1); - expect(diagnostics[0]).toEqual({ - absFilePath: undefined, - header: 'Build Error', - level: 'error', - lines: [], - messageText: 'pixelmatchThreshold must be a value ranging from 0 to 1', - relFilePath: undefined, - type: 'build', - }); - }); - it.each([true, null])('defaults to a reasonable value if a non-number (%s) is provided', (pixelmatchThreshold) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - // the nature of this test requires using a non-number, hence th type assertion - pixelmatchThreshold: pixelmatchThreshold, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.allowableMismatchedPixels).toBe(100); - }); - }); - describe('testRegex', () => { - let testRegex; - beforeEach(() => { - userConfig.flags = { ...flags, spec: true }; - const { testing: testConfig } = validateConfig(userConfig, mockLoadConfigInit()).config; - const testRegexSetting = testConfig === null || testConfig === void 0 ? void 0 : testConfig.testRegex; - if (!testRegexSetting) { - throw new Error('No testRegex was found in the Stencil TestingConfig. Failing test.'); - } - testRegex = new RegExp(testRegexSetting); - }); - describe('test.* extensions', () => { - it.each([ - 'my-component.test.ts', - 'my-component.test.tsx', - 'my-component.test.js', - 'my-component.test.jsx', - 'some/path/test.ts', - 'some/path/test.tsx', - 'some/path/test.js', - 'some/path/test.jsx', - ])(`matches the file '%s'`, (filename) => { - expect(testRegex.test(filename)).toBe(true); - }); - it.each([ - 'my-component.test.ts.snap', - 'my-component.test.tsx.snap', - 'my-component.test.js.snap', - 'my-component.test.jsx.snap', - 'my-component-test.ts', - 'my-component-test.tsx', - 'my-component-test.js', - 'my-component-test.jsx', - 'my-component.test.t', - 'my-component.test.j', - ])(`doesn't match the file '%s'`, (filename) => { - expect(testRegex.test(filename)).toBe(false); - }); - }); - describe('spec.* extensions', () => { - it.each([ - 'my-component.spec.ts', - 'my-component.spec.tsx', - 'my-component.spec.js', - 'my-component.spec.jsx', - 'some/path/spec.ts', - 'some/path/spec.tsx', - 'some/path/spec.js', - 'some/path/spec.jsx', - ])(`matches the file '%s'`, (filename) => { - expect(testRegex.test(filename)).toBe(true); - }); - it.each([ - 'my-component.spec.ts.snap', - 'my-component.spec.tsx.snap', - 'my-component.spec.js.snap', - 'my-component.spec.jsx.snap', - 'my-component-spec.ts', - 'my-component-spec.tsx', - 'my-component-spec.js', - 'my-component-spec.jsx', - 'my-component.spec.t', - 'my-component.spec.j', - ])(`doesn't match the file '%s'`, (filename) => { - expect(testRegex.test(filename)).toBe(false); - }); - }); - describe('e2e.* extensions', () => { - it.each([ - 'my-component.e2e.ts', - 'my-component.e2e.tsx', - 'my-component.e2e.js', - 'my-component.e2e.jsx', - 'some/path/e2e.ts', - 'some/path/e2e.tsx', - 'some/path/e2e.js', - 'some/path/e2e.jsx', - ])(`matches the file '%s'`, (filename) => { - expect(testRegex.test(filename)).toBe(true); - }); - it.each([ - 'my-component.e2e.ts.snap', - 'my-component.e2e.tsx.snap', - 'my-component.e2e.js.snap', - 'my-component.e2e.jsx.snap', - 'my-component-e2e.ts', - 'my-component-e2e.tsx', - 'my-component-e2e.js', - 'my-component-e2e.jsx', - 'my-component.e2e.t', - 'my-component.e2e.j', - ])(`doesn't match the file '%s'`, (filename) => { - expect(testRegex.test(filename)).toBe(false); - }); - }); - }); - describe('testMatch', () => { - it('removes testRegex from the config when testMatch is an array', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - testMatch: ['mockMatcher'], - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.testMatch).toEqual(['mockMatcher']); - expect(config.testing.testRegex).toBeUndefined(); - }); - it('removes testMatch from the config when testRegex is a string', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - testMatch: undefined, - testRegex: '/regexStr/', - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.testMatch).toBeUndefined(); - expect(config.testing.testRegex).toBe('/regexStr/'); - }); - }); - describe('runner', () => { - it('does nothing if the runner property is a string', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - runner: 'my-runner.js', - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.runner).toEqual('my-runner.js'); - }); - it('sets the runner if a non-string value is provided', () => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - runner: undefined, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - // 'testing' is the internal directory where the default runner file can be found - expect(config.testing.runner).toEqual(join('testing', 'jest-runner.js')); - }); - }); - describe('waitBeforeScreenshot', () => { - it.each([-0, 0, 0.5, 1.0])('does nothing for a non-negative value (%s)', (waitBeforeScreenshot) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - waitBeforeScreenshot, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.waitBeforeScreenshot).toBe(waitBeforeScreenshot); - }); - it('creates an error if the value provided is negative', () => { - const waitBeforeScreenshot = -1; - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - waitBeforeScreenshot, - }; - const { config, diagnostics } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.waitBeforeScreenshot).toBe(waitBeforeScreenshot); - expect(diagnostics).toHaveLength(1); - expect(diagnostics[0]).toEqual({ - absFilePath: undefined, - header: 'Build Error', - level: 'error', - lines: [], - messageText: 'waitBeforeScreenshot must be a value that is 0 or greater', - relFilePath: undefined, - type: 'build', - }); - }); - it.each([true, null])('defaults to a reasonable value if a non-number (%s) is provided', (waitBeforeScreenshot) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - // the nature of this test requires using a non-number, hence the type assertion - pixelmatchThreshold: waitBeforeScreenshot, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.waitBeforeScreenshot).toBe(10); - }); - }); - describe('emulate', () => { - it.each([[undefined], [[]]])('provides a reasonable default for %s', (emulate) => { - userConfig.flags = { ...flags, e2e: true }; - userConfig.testing = { - emulate, - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.emulate).toEqual([ - { - userAgent: 'default', - viewport: { - width: 600, - height: 600, - deviceScaleFactor: 1, - isMobile: false, - hasTouch: false, - isLandscape: false, - }, - }, - ]); - }); - it('does nothing when a non-zero length array is provided', () => { - userConfig.flags = { ...flags, e2e: true }; - const emulateConfig = { - userAgent: 'mockAgent', - viewport: { - width: 100, - height: 100, - deviceScaleFactor: 1, - isMobile: true, - hasTouch: true, - isLandscape: false, - }, - }; - userConfig.testing = { - emulate: [emulateConfig], - }; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.testing.emulate).toEqual([emulateConfig]); - }); - }); -}); -//# sourceMappingURL=validate-testing.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-testing.spec.js.map b/build/compiler/config/test/validate-testing.spec.js.map deleted file mode 100644 index 537e2aeb3fc..00000000000 --- a/build/compiler/config/test/validate-testing.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-testing.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-testing.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAe,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,kHAAkH;IAClH,oBAAoB;IACpB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/B,MAAM,GAAG,GAAG,kBAAkB,EAAE,CAAC;IACjC,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,IAAI,UAAoB,CAAC;IACzB,IAAI,KAAkB,CAAC;IAEvB,UAAU,CAAC,GAAG,EAAE;QACd,KAAK,GAAG,iBAAiB,EAAE,CAAC;QAC5B,UAAU,GAAG;YACX,GAAG,EAAE,GAAU;YACf,MAAM,EAAE,MAAM;YACd,+GAA+G;YAC/G,oCAAoC;YACpC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;YAChD,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;YACtD,KAAK;YACL,SAAS,EAAE,SAAS;YACpB,+GAA+G;YAC/G,oCAAoC;YACpC,U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AAC,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/test/validate-workers.spec.d.ts b/build/compiler/config/test/validate-workers.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/config/test/validate-workers.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/config/test/validate-workers.spec.js b/build/compiler/config/test/validate-workers.spec.js deleted file mode 100644 index afff369d02c..00000000000 --- a/build/compiler/config/test/validate-workers.spec.js +++ /dev/null @@ -1,45 +0,0 @@ -import { mockLoadConfigInit, mockLogger } from '@stencil/core/testing'; -import path from 'path'; -import { createConfigFlags } from '../../../cli/config-flags'; -import { validateConfig } from '../validate-config'; -describe('validate-workers', () => { - let userConfig; - const logger = mockLogger(); - beforeEach(() => { - userConfig = { - sys: { - path: path, - }, - logger: logger, - rootDir: '/', - namespace: 'Testing', - }; - }); - it('set maxConcurrentWorkers, but dont let it go under 0', () => { - userConfig.maxConcurrentWorkers = -1; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.maxConcurrentWorkers).toBe(0); - }); - it('set maxConcurrentWorkers from ci flags', () => { - userConfig.flags = createConfigFlags({ - ci: true, - }); - userConfig.maxConcurrentWorkers = 2; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.maxConcurrentWorkers).toBe(4); - }); - it('set maxConcurrentWorkers from flags', () => { - userConfig.flags = createConfigFlags({ - maxWorkers: 1, - }); - userConfig.maxConcurrentWorkers = 4; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.maxConcurrentWorkers).toBe(1); - }); - it('set maxConcurrentWorkers', () => { - userConfig.maxConcurrentWorkers = 4; - const { config } = validateConfig(userConfig, mockLoadConfigInit()); - expect(config.maxConcurrentWorkers).toBe(4); - }); -}); -//# sourceMappingURL=validate-workers.spec.js.map \ No newline at end of file diff --git a/build/compiler/config/test/validate-workers.spec.js.map b/build/compiler/config/test/validate-workers.spec.js.map deleted file mode 100644 index 393f50b5e3d..00000000000 --- a/build/compiler/config/test/validate-workers.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-workers.spec.js","sourceRoot":"","sources":["../../../../src/compiler/config/test/validate-workers.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAI,UAAoB,CAAC;IACzB,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAE5B,UAAU,CAAC,GAAG,EAAE;QACd,UAAU,GAAG;YACX,GAAG,EAAE;gBACH,IAAI,EAAE,IAAI;aACJ;YACR,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,SAAS;SACrB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC9D,UAAU,CAAC,oBAAoB,GAAG,CAAC,CAAC,CAAC;QACrC,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,UAAU,CAAC,KAAK,GAAG,iBAAiB,CAAC;YACnC,EAAE,EAAE,IAAI;SACT,CAAC,CAAC;QACH,UAAU,CAAC,oBAAoB,GAAG,CAAC,CAAC;QACpC,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC7C,UAAU,CAAC,KAAK,GAAG,iBAAiB,CAAC;YACnC,UAAU,EAAE,CAAC;SACd,CAAC,CAAC;QACH,UAAU,CAAC,oBAAoB,GAAG,CAAC,CAAC;QACpC,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,UAAU,CAAC,oBAAoB,GAAG,CAAC,CAAC;QACpC,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/transpile-options.d.ts b/build/compiler/config/transpile-options.d.ts deleted file mode 100644 index 7968321c7bb..00000000000 --- a/build/compiler/config/transpile-options.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { Config, ImportData, TransformCssToEsmInput, TransformOptions, TranspileOptions, TranspileResults } from '../../declarations'; -export declare const getTranspileResults: (code: string, input: TranspileOptions) => { - importData: ImportData; - results: TranspileResults; -}; -/** - * Configuration necessary for transpilation - */ -interface TranspileConfig { - compileOpts: TranspileOptions; - config: Config; - transformOpts: TransformOptions; -} -/** - * Get configuration necessary to carry out transpilation, including a Stencil - * configuration, transformation options, and transpilation options. - * - * @param input options for Stencil's transpiler (string-to-string compiler) - * @returns the options and configuration necessary for transpilation - */ -export declare const getTranspileConfig: (input: TranspileOptions) => TranspileConfig; -export declare const getTranspileCssConfig: (compileOpts: TranspileOptions, importData: ImportData, results: TranspileResults) => TransformCssToEsmInput; -export {}; diff --git a/build/compiler/config/transpile-options.js b/build/compiler/config/transpile-options.js deleted file mode 100644 index fce37d28e39..00000000000 --- a/build/compiler/config/transpile-options.js +++ /dev/null @@ -1,149 +0,0 @@ -import { isString } from '@utils'; -import { STENCIL_INTERNAL_CLIENT_ID } from '../bundle/entry-alias-ids'; -import { parseImportPath } from '../transformers/stencil-import-path'; -export const getTranspileResults = (code, input) => { - if (!isString(input.file)) { - input.file = 'module.tsx'; - } - const parsedImport = parseImportPath(input.file); - const results = { - code: typeof code === 'string' ? code : '', - data: [], - diagnostics: [], - inputFileExtension: parsedImport.ext, - inputFilePath: input.file, - imports: [], - map: null, - outputFilePath: null, - }; - return { - importData: parsedImport.data, - results, - }; -}; -const transpileCtx = { sys: null }; -/** - * Get configuration necessary to carry out transpilation, including a Stencil - * configuration, transformation options, and transpilation options. - * - * @param input options for Stencil's transpiler (string-to-string compiler) - * @returns the options and configuration necessary for transpilation - */ -export const getTranspileConfig = (input) => { - if (input.sys) { - transpileCtx.sys = input.sys; - } - else if (!transpileCtx.sys) { - transpileCtx.sys = require('../sys/node/index.js').createNodeSys(); - } - const compileOpts = { - componentExport: getTranspileConfigOpt(input.componentExport, VALID_EXPORT, 'customelement'), - componentMetadata: getTranspileConfigOpt(input.componentMetadata, VALID_METADATA, null), - coreImportPath: isString(input.coreImportPath) ? input.coreImportPath : STENCIL_INTERNAL_CLIENT_ID, - currentDirectory: isString(input.currentDirectory) - ? input.currentDirectory - : transpileCtx.sys.getCurrentDirectory(), - file: input.file, - proxy: getTranspileConfigOpt(input.proxy, VALID_PROXY, 'defineproperty'), - module: getTranspileConfigOpt(input.module, VALID_MODULE, 'esm'), - sourceMap: input.sourceMap === 'inline' ? 'inline' : input.sourceMap !== false, - style: getTranspileConfigOpt(input.style, VALID_STYLE, 'static'), - styleImportData: getTranspileConfigOpt(input.styleImportData, VALID_STYLE_IMPORT_DATA, 'queryparams'), - target: getTranspileConfigOpt(input.target, VALID_TARGET, 'latest'), - }; - const tsCompilerOptions = { - // ensure we uses legacy decorators - experimentalDecorators: true, - // best we always set this to true - allowSyntheticDefaultImports: true, - // best we always set this to true - esModuleInterop: true, - // always get source maps - sourceMap: compileOpts.sourceMap !== false, - // isolated per file transpiling - isolatedModules: true, - // transpileModule does not write anything to disk so there is no need to verify that there are no conflicts between input and output paths. - suppressOutputPathCheck: true, - // Filename can be non-ts file. - allowNonTsExtensions: true, - // We are not returning a sourceFile for lib file when asked by the program, - // so pass --noLib to avoid reporting a file not found error. - noLib: true, - noResolve: true, - // NOTE: "module" and "target" configs will be set later - // after the "ts" object has been loaded - }; - if (isString(input.baseUrl)) { - compileOpts.baseUrl = input.baseUrl; - tsCompilerOptions.baseUrl = compileOpts.baseUrl; - } - if (input.paths) { - compileOpts.paths = { ...input.paths }; - tsCompilerOptions.paths = { ...compileOpts.paths }; - } - const transformOpts = { - coreImportPath: compileOpts.coreImportPath, - componentExport: compileOpts.componentExport, - componentMetadata: compileOpts.componentMetadata, - currentDirectory: compileOpts.currentDirectory, - isolatedModules: true, - module: compileOpts.module, - proxy: compileOpts.proxy, - file: compileOpts.file, - style: compileOpts.style, - styleImportData: compileOpts.styleImportData, - target: compileOpts.target, - }; - const config = { - _isTesting: true, - devMode: true, - enableCache: false, - minifyCss: true, - minifyJs: false, - rootDir: compileOpts.currentDirectory, - srcDir: compileOpts.currentDirectory, - sys: transpileCtx.sys, - transformAliasedImportPaths: input.transformAliasedImportPaths, - tsCompilerOptions, - validateTypes: false, - }; - return { - compileOpts, - config, - transformOpts, - }; -}; -export const getTranspileCssConfig = (compileOpts, importData, results) => { - const transformInput = { - file: results.inputFilePath, - input: results.code, - tag: importData && importData.tag, - encapsulation: importData && importData.encapsulation, - mode: importData && importData.mode, - sourceMap: compileOpts.sourceMap !== false, - commentOriginalSelector: false, - minify: false, - autoprefixer: false, - module: compileOpts.module, - styleImportData: compileOpts.styleImportData, - }; - return transformInput; -}; -const getTranspileConfigOpt = (value, validValues, defaultValue) => { - if (value === null || value === 'null') { - return null; - } - value = isString(value) ? value.toLowerCase().trim() : null; - if (validValues.has(value)) { - return value; - } - return defaultValue; -}; -const VALID_EXPORT = new Set(['customelement', 'module']); -const VALID_METADATA = new Set(['compilerstatic', null]); -const VALID_MODULE = new Set(['cjs', 'esm']); -const VALID_PROXY = new Set(['defineproperty', null]); -const VALID_STYLE = new Set(['static']); -const VALID_STYLE_IMPORT_DATA = new Set(['queryparams']); -const VALID_TARGET = new Set(['latest', 'esnext', 'es2020', 'es2019', 'es2018', 'es2017', 'es2016', 'es2015', 'es5']); -//# sourceMappingURL=transpile-options.js.map \ No newline at end of file diff --git a/build/compiler/config/transpile-options.js.map b/build/compiler/config/transpile-options.js.map deleted file mode 100644 index 6f0c33fe0f3..00000000000 --- a/build/compiler/config/transpile-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transpile-options.js","sourceRoot":"","sources":["../../../src/compiler/config/transpile-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAYlC,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,KAAuB,EAAE,EAAE;IAC3E,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QACzB,KAAK,CAAC,IAAI,GAAG,YAAY,CAAC;KAC3B;IACD,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEjD,MAAM,OAAO,GAAqB;QAChC,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AG,IAAI,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;AACzD,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-config.d.ts b/build/compiler/config/validate-config.d.ts deleted file mode 100644 index 76b6e5ba47a..00000000000 --- a/build/compiler/config/validate-config.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Diagnostic, LoadConfigInit, UnvalidatedConfig, ValidatedConfig } from '../../declarations'; -/** - * Represents the results of validating a previously unvalidated configuration - */ -type ConfigValidationResults = { - /** - * The validated configuration, with well-known default values set if they weren't previously provided - */ - config: ValidatedConfig; - /** - * A collection of errors and warnings that occurred during the configuration validation process - */ - diagnostics: Diagnostic[]; -}; -/** - * Validate a Config object, ensuring that all its field are present and - * consistent with our expectations. This function transforms an - * {@link UnvalidatedConfig} to a {@link ValidatedConfig}. - * - * **NOTE**: this function _may_ return a previously-cached configuration - * object. It will do so if the cached object is `===` to the one passed in. - * - * @param userConfig an unvalidated config that we've gotten from a user - * @param bootstrapConfig the initial configuration provided by the user (or - * generated by Stencil) used to bootstrap configuration loading and validation - * @returns an object with config and diagnostics props - */ -export declare const validateConfig: (userConfig: UnvalidatedConfig, bootstrapConfig: LoadConfigInit) => ConfigValidationResults; -export {}; diff --git a/build/compiler/config/validate-config.js b/build/compiler/config/validate-config.js deleted file mode 100644 index 7cdc4028ecd..00000000000 --- a/build/compiler/config/validate-config.js +++ /dev/null @@ -1,210 +0,0 @@ -import { createNodeLogger, createNodeSys } from '@sys-api-node'; -import { buildError, isBoolean, isNumber, isString, sortBy } from '@utils'; -import { setBooleanConfig } from './config-utils'; -import { DEFAULT_DEV_MODE, DEFAULT_HASHED_FILENAME_LENGTH, MAX_HASHED_FILENAME_LENGTH, MIN_HASHED_FILENAME_LENGTH, } from './constants'; -import { validateOutputTargets } from './outputs'; -import { validateDevServer } from './validate-dev-server'; -import { validateHydrated } from './validate-hydrated'; -import { validateDistNamespace } from './validate-namespace'; -import { validateNamespace } from './validate-namespace'; -import { validatePaths } from './validate-paths'; -import { validatePlugins } from './validate-plugins'; -import { validateRollupConfig } from './validate-rollup-config'; -import { validateTesting } from './validate-testing'; -import { validateWorkers } from './validate-workers'; -/** - * We never really want to re-run validation for a Stencil configuration. - * Besides the cost of doing so, our validation pipeline is unfortunately not - * idempotent, so we want to have a guarantee that even if we call - * {@link validateConfig} in a few places that the same configuration object - * won't be passed through multiple times. So we cache the result of our work - * here. - */ -let CACHED_VALIDATED_CONFIG = null; -/** - * Validate a Config object, ensuring that all its field are present and - * consistent with our expectations. This function transforms an - * {@link UnvalidatedConfig} to a {@link ValidatedConfig}. - * - * **NOTE**: this function _may_ return a previously-cached configuration - * object. It will do so if the cached object is `===` to the one passed in. - * - * @param userConfig an unvalidated config that we've gotten from a user - * @param bootstrapConfig the initial configuration provided by the user (or - * generated by Stencil) used to bootstrap configuration loading and validation - * @returns an object with config and diagnostics props - */ -export const validateConfig = (userConfig = {}, bootstrapConfig) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; - const diagnostics = []; - if (CACHED_VALIDATED_CONFIG !== null && CACHED_VALIDATED_CONFIG === userConfig) { - // We've previously done the work to validate a Stencil config. Since our - // overall validation pipeline is unfortunately not idempotent we do not - // want to simply validate again. Leaving aside the performance - // implications of needlessly repeating the validation, we don't want to do - // certain operations multiple times. - // - // For the sake of correctness we check both that the cache is not null and - // that it's the same object as the one passed in. - return { - config: userConfig, - diagnostics, - }; - } - const config = Object.assign({}, userConfig); - const logger = bootstrapConfig.logger || config.logger || createNodeLogger(); - // flags _should_ be JSON safe here - // - // we access `'flags'` on validated config to avoid having to introduce an - // import of the CLI module - const flags = JSON.parse(JSON.stringify(config.flags || {})); - // default level is 'info' - let logLevel = 'info'; - if (flags.debug || flags.verbose) { - logLevel = 'debug'; - } - else if (flags.logLevel) { - logLevel = flags.logLevel; - } - logger.setLevel(logLevel); - let devMode = (_a = config.devMode) !== null && _a !== void 0 ? _a : DEFAULT_DEV_MODE; - if (flags.prod) { - devMode = false; - } - else if (flags.dev) { - devMode = true; - } - else if (!isBoolean(config.devMode)) { - devMode = DEFAULT_DEV_MODE; - } - const hashFileNames = (_b = config.hashFileNames) !== null && _b !== void 0 ? _b : !devMode; - const validatedConfig = { - devServer: {}, - ...config, - buildEs5: config.buildEs5 === true || (!devMode && config.buildEs5 === 'prod'), - devMode, - extras: config.extras || {}, - flags, - hashFileNames, - hashedFileNameLength: (_c = config.hashedFileNameLength) !== null && _c !== void 0 ? _c : DEFAULT_HASHED_FILENAME_LENGTH, - hydratedFlag: validateHydrated(config), - logLevel, - logger, - minifyCss: (_d = config.minifyCss) !== null && _d !== void 0 ? _d : !devMode, - minifyJs: (_e = config.minifyJs) !== null && _e !== void 0 ? _e : !devMode, - outputTargets: (_f = config.outputTargets) !== null && _f !== void 0 ? _f : [], - rollupConfig: validateRollupConfig(config), - sys: (_h = (_g = config.sys) !== null && _g !== void 0 ? _g : bootstrapConfig.sys) !== null && _h !== void 0 ? _h : createNodeSys({ logger }), - testing: (_j = config.testing) !== null && _j !== void 0 ? _j : {}, - transformAliasedImportPaths: isBoolean(userConfig.transformAliasedImportPaths) - ? userConfig.transformAliasedImportPaths - : true, - validatePrimaryPackageOutputTarget: (_k = userConfig.validatePrimaryPackageOutputTarget) !== null && _k !== void 0 ? _k : false, - ...validateNamespace(config.namespace, config.fsNamespace, diagnostics), - ...validatePaths(config), - }; - validatedConfig.extras.lifecycleDOMEvents = !!validatedConfig.extras.lifecycleDOMEvents; - validatedConfig.extras.scriptDataOpts = !!validatedConfig.extras.scriptDataOpts; - validatedConfig.extras.initializeNextTick = !!validatedConfig.extras.initializeNextTick; - validatedConfig.extras.tagNameTransform = !!validatedConfig.extras.tagNameTransform; - // TODO(STENCIL-914): remove when `experimentalSlotFixes` is the default behavior - // If the user set `experimentalSlotFixes` and any individual slot fix flags to `false`, we need to log a warning - // to the user that we will "override" the individual flags - if (validatedConfig.extras.experimentalSlotFixes === true) { - const possibleFlags = [ - 'appendChildSlotFix', - 'slotChildNodesFix', - 'cloneNodeFix', - 'scopedSlotTextContentFix', - ]; - const conflictingFlags = possibleFlags.filter((flag) => validatedConfig.extras[flag] === false); - if (conflictingFlags.length > 0) { - const warning = buildError(diagnostics); - warning.level = 'warn'; - warning.messageText = `If the 'experimentalSlotFixes' flag is enabled it will override any slot fix flags which are disabled. In particular, the following currently-disabled flags will be ignored: ${conflictingFlags.join(', ')}. Please update your Stencil config accordingly.`; - } - } - // TODO(STENCIL-914): remove `experimentalSlotFixes` when it's the default behavior - validatedConfig.extras.experimentalSlotFixes = !!validatedConfig.extras.experimentalSlotFixes; - if (validatedConfig.extras.experimentalSlotFixes === true) { - validatedConfig.extras.appendChildSlotFix = true; - validatedConfig.extras.cloneNodeFix = true; - validatedConfig.extras.slotChildNodesFix = true; - validatedConfig.extras.scopedSlotTextContentFix = true; - } - else { - validatedConfig.extras.appendChildSlotFix = !!validatedConfig.extras.appendChildSlotFix; - validatedConfig.extras.cloneNodeFix = !!validatedConfig.extras.cloneNodeFix; - validatedConfig.extras.slotChildNodesFix = !!validatedConfig.extras.slotChildNodesFix; - validatedConfig.extras.scopedSlotTextContentFix = !!validatedConfig.extras.scopedSlotTextContentFix; - } - setBooleanConfig(validatedConfig, 'sourceMap', null, typeof validatedConfig.sourceMap === 'undefined' ? true : validatedConfig.sourceMap); - setBooleanConfig(validatedConfig, 'watch', 'watch', false); - setBooleanConfig(validatedConfig, 'buildDocs', 'docs', !validatedConfig.devMode); - setBooleanConfig(validatedConfig, 'buildDist', 'esm', !validatedConfig.devMode || !!validatedConfig.buildEs5); - setBooleanConfig(validatedConfig, 'profile', 'profile', validatedConfig.devMode); - setBooleanConfig(validatedConfig, 'writeLog', 'log', false); - setBooleanConfig(validatedConfig, 'buildAppCore', null, true); - setBooleanConfig(validatedConfig, 'autoprefixCss', null, validatedConfig.buildEs5); - setBooleanConfig(validatedConfig, 'validateTypes', null, !validatedConfig._isTesting); - setBooleanConfig(validatedConfig, 'allowInlineScripts', null, true); - if (!isString(validatedConfig.taskQueue)) { - validatedConfig.taskQueue = 'async'; - } - // hash file names - if (!isBoolean(validatedConfig.hashFileNames)) { - validatedConfig.hashFileNames = !validatedConfig.devMode; - } - if (!isNumber(validatedConfig.hashedFileNameLength)) { - validatedConfig.hashedFileNameLength = DEFAULT_HASHED_FILENAME_LENGTH; - } - if (validatedConfig.hashedFileNameLength < MIN_HASHED_FILENAME_LENGTH) { - const err = buildError(diagnostics); - err.messageText = `validatedConfig.hashedFileNameLength must be at least ${MIN_HASHED_FILENAME_LENGTH} characters`; - } - if (validatedConfig.hashedFileNameLength > MAX_HASHED_FILENAME_LENGTH) { - const err = buildError(diagnostics); - err.messageText = `validatedConfig.hashedFileNameLength cannot be more than ${MAX_HASHED_FILENAME_LENGTH} characters`; - } - if (!validatedConfig.env) { - validatedConfig.env = {}; - } - // outputTargets - validateOutputTargets(validatedConfig, diagnostics); - // plugins - validatePlugins(validatedConfig, diagnostics); - // dev server - validatedConfig.devServer = validateDevServer(validatedConfig, diagnostics); - // testing - validateTesting(validatedConfig, diagnostics); - // bundles - if (Array.isArray(validatedConfig.bundles)) { - validatedConfig.bundles = sortBy(validatedConfig.bundles, (a) => a.components.length); - } - else { - validatedConfig.bundles = []; - } - // validate how many workers we can use - validateWorkers(validatedConfig); - // default devInspector to whatever devMode is - setBooleanConfig(validatedConfig, 'devInspector', null, validatedConfig.devMode); - if (!validatedConfig._isTesting) { - validateDistNamespace(validatedConfig, diagnostics); - } - setBooleanConfig(validatedConfig, 'enableCache', 'cache', true); - if (!Array.isArray(validatedConfig.watchIgnoredRegex) && validatedConfig.watchIgnoredRegex != null) { - validatedConfig.watchIgnoredRegex = [validatedConfig.watchIgnoredRegex]; - } - validatedConfig.watchIgnoredRegex = (validatedConfig.watchIgnoredRegex || []).reduce((arr, reg) => { - if (reg instanceof RegExp) { - arr.push(reg); - } - return arr; - }, []); - CACHED_VALIDATED_CONFIG = validatedConfig; - return { - config: validatedConfig, - diagnostics, - }; -}; -//# sourceMappingURL=validate-config.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-config.js.map b/build/compiler/config/validate-config.js.map deleted file mode 100644 index 0b634a56a39..00000000000 --- a/build/compiler/config/validate-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-config.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAW3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgBrD;;;;;;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G,CAAC;IACb,CAAC,EAAE,EAAc,CAAC,CAAC;IAEnB,uBAAuB,GAAG,eAAe,CAAC;IAE1C,OAAO;QACL,MAAM,EAAE,eAAe;QACvB,WAAW;KACZ,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-copy.d.ts b/build/compiler/config/validate-copy.d.ts deleted file mode 100644 index aeb6991b10c..00000000000 --- a/build/compiler/config/validate-copy.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Validate a series of {@link d.CopyTask}s - * @param copy the copy tasks to validate, or a boolean to specify if copy tasks are enabled - * @param defaultCopy default copy tasks to add to the returned validated list if not present in the first argument - * @returns the validated copy tasks - */ -export declare const validateCopy: (copy: d.CopyTask[] | boolean | null | undefined, defaultCopy?: d.CopyTask[]) => d.CopyTask[]; diff --git a/build/compiler/config/validate-copy.js b/build/compiler/config/validate-copy.js deleted file mode 100644 index f0ea085661c..00000000000 --- a/build/compiler/config/validate-copy.js +++ /dev/null @@ -1,23 +0,0 @@ -import { unique } from '@utils'; -/** - * Validate a series of {@link d.CopyTask}s - * @param copy the copy tasks to validate, or a boolean to specify if copy tasks are enabled - * @param defaultCopy default copy tasks to add to the returned validated list if not present in the first argument - * @returns the validated copy tasks - */ -export const validateCopy = (copy, defaultCopy = []) => { - if (copy === null || copy === false) { - return []; - } - if (!Array.isArray(copy)) { - copy = []; - } - copy = copy.slice(); - for (const task of defaultCopy) { - if (copy.every((t) => t.src !== task.src)) { - copy.push(task); - } - } - return unique(copy, (task) => `${task.src}:${task.dest}:${task.keepDirStructure}`); -}; -//# sourceMappingURL=validate-copy.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-copy.js.map b/build/compiler/config/validate-copy.js.map deleted file mode 100644 index 534b61ed67d..00000000000 --- a/build/compiler/config/validate-copy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-copy.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,IAA+C,EAC/C,cAA4B,EAAE,EAChB,EAAE;IAChB,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,EAAE;QACnC,OAAO,EAAE,CAAC;KACX;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACxB,IAAI,GAAG,EAAE,CAAC;KACX;IACD,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IACpB,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE;QAC9B,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE;YACzC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACjB;KACF;IACD,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;AACrF,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-dev-server.d.ts b/build/compiler/config/validate-dev-server.d.ts deleted file mode 100644 index 15e5f568566..00000000000 --- a/build/compiler/config/validate-dev-server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const validateDevServer: (config: d.ValidatedConfig, diagnostics: d.Diagnostic[]) => d.DevServerConfig; diff --git a/build/compiler/config/validate-dev-server.js b/build/compiler/config/validate-dev-server.js deleted file mode 100644 index 7e5313c281b..00000000000 --- a/build/compiler/config/validate-dev-server.js +++ /dev/null @@ -1,155 +0,0 @@ -import { buildError, isBoolean, isNumber, isOutputTargetWww, isString, join, normalizePath } from '@utils'; -import { isAbsolute } from 'path'; -export const validateDevServer = (config, diagnostics) => { - var _a, _b, _c, _d, _e; - if ((config.devServer === null || config.devServer) === false) { - return {}; - } - const { flags } = config; - const devServer = { ...config.devServer }; - if (flags.address && isString(flags.address)) { - devServer.address = flags.address; - } - else if (!isString(devServer.address)) { - devServer.address = '0.0.0.0'; - } - // default to http for local dev - let addressProtocol = 'http'; - if (devServer.address.toLowerCase().startsWith('http://')) { - devServer.address = devServer.address.substring(7); - addressProtocol = 'http'; - } - else if (devServer.address.toLowerCase().startsWith('https://')) { - devServer.address = devServer.address.substring(8); - addressProtocol = 'https'; - } - devServer.address = devServer.address.split('/')[0]; - // split on `:` to get the domain and the (possibly present) port - // separately. we've already sliced off the protocol (if present) above - // so we can safely split on `:` here. - const addressSplit = devServer.address.split(':'); - const isLocalhost = addressSplit[0] === 'localhost' || !isNaN(addressSplit[0].split('.')[0]); - // if localhost we use 3333 as a default port - let addressPort = isLocalhost ? 3333 : undefined; - if (addressSplit.length > 1) { - if (!isNaN(addressSplit[1])) { - devServer.address = addressSplit[0]; - addressPort = parseInt(addressSplit[1], 10); - } - } - if (isNumber(flags.port)) { - devServer.port = flags.port; - } - else if (devServer.port !== null && !isNumber(devServer.port)) { - if (isNumber(addressPort)) { - devServer.port = addressPort; - } - } - if (devServer.reloadStrategy === undefined) { - devServer.reloadStrategy = 'hmr'; - } - else if (devServer.reloadStrategy !== 'hmr' && - devServer.reloadStrategy !== 'pageReload' && - devServer.reloadStrategy !== null) { - const err = buildError(diagnostics); - err.messageText = `Invalid devServer reloadStrategy "${devServer.reloadStrategy}". Valid configs include "hmr", "pageReload" and null.`; - } - if (!isBoolean(devServer.gzip)) { - devServer.gzip = true; - } - if (!isBoolean(devServer.openBrowser)) { - devServer.openBrowser = true; - } - if (!isBoolean(devServer.websocket)) { - devServer.websocket = true; - } - if (flags.ssr) { - devServer.ssr = true; - } - else { - devServer.ssr = !!devServer.ssr; - } - if (devServer.ssr) { - const wwwOutput = ((_a = config.outputTargets) !== null && _a !== void 0 ? _a : []).find(isOutputTargetWww); - devServer.prerenderConfig = wwwOutput === null || wwwOutput === void 0 ? void 0 : wwwOutput.prerenderConfig; - } - if (isString(config.srcIndexHtml)) { - devServer.srcIndexHtml = normalizePath(config.srcIndexHtml); - } - if (devServer.protocol !== 'http' && devServer.protocol !== 'https') { - devServer.protocol = devServer.https ? 'https' : addressProtocol ? addressProtocol : 'http'; - } - if (devServer.historyApiFallback !== null) { - if (Array.isArray(devServer.historyApiFallback) || typeof devServer.historyApiFallback !== 'object') { - devServer.historyApiFallback = {}; - } - if (!isString(devServer.historyApiFallback.index)) { - devServer.historyApiFallback.index = 'index.html'; - } - if (!isBoolean(devServer.historyApiFallback.disableDotRule)) { - devServer.historyApiFallback.disableDotRule = false; - } - } - if (flags.open === false) { - devServer.openBrowser = false; - } - else if (flags.prerender && !config.watch) { - devServer.openBrowser = false; - } - let serveDir; - let basePath; - const wwwOutputTarget = ((_b = config.outputTargets) !== null && _b !== void 0 ? _b : []).find(isOutputTargetWww); - if (wwwOutputTarget) { - const baseUrl = new URL((_c = wwwOutputTarget.baseUrl) !== null && _c !== void 0 ? _c : '', 'http://config.stenciljs.com'); - basePath = baseUrl.pathname; - serveDir = (_d = wwwOutputTarget.appDir) !== null && _d !== void 0 ? _d : ''; - } - else { - basePath = ''; - serveDir = (_e = config.rootDir) !== null && _e !== void 0 ? _e : ''; - } - if (!isString(basePath) || basePath.trim() === '') { - basePath = `/`; - } - basePath = normalizePath(basePath); - if (!basePath.startsWith('/')) { - basePath = '/' + basePath; - } - if (!basePath.endsWith('/')) { - basePath += '/'; - } - if (!isBoolean(devServer.logRequests)) { - devServer.logRequests = config.logLevel === 'debug'; - } - if (!isString(devServer.root)) { - devServer.root = serveDir; - } - if (!isString(devServer.basePath)) { - devServer.basePath = basePath; - } - if (isString(devServer.baseUrl)) { - const err = buildError(diagnostics); - err.messageText = `devServer config "baseUrl" has been renamed to "basePath", and should not include a domain or protocol.`; - } - if (!isAbsolute(devServer.root)) { - devServer.root = join(config.rootDir, devServer.root); - } - devServer.root = normalizePath(devServer.root); - if (devServer.excludeHmr) { - if (!Array.isArray(devServer.excludeHmr)) { - const err = buildError(diagnostics); - err.messageText = `dev server excludeHmr must be an array of glob strings`; - } - } - else { - devServer.excludeHmr = []; - } - if (!config.devMode || config.buildEs5) { - devServer.experimentalDevModules = false; - } - else { - devServer.experimentalDevModules = !!devServer.experimentalDevModules; - } - return devServer; -}; -//# sourceMappingURL=validate-dev-server.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-dev-server.js.map b/build/compiler/config/validate-dev-server.js.map deleted file mode 100644 index 3162bfe969d..00000000000 --- a/build/compiler/config/validate-dev-server.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-dev-server.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-dev-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC3G,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAAyB,EAAE,WAA2B,EAAqB,EAAE;;IAC7G,IAAI,CAAC,MAAM,CAAC,SAAS,KAAK,IAAI,IAAK,MAAM,CAAC,SAAiB,CAAC,KAAK,KAAK,EAAE;QACtE,OAAO,EAAE,CAAC;KACX;IAED,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IACzB,MAAM,SAAS,GAAG,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAE1C,IAAI,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;QAC5C,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;KACnC;SAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,EAA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AAQ,CAAC,EAAE;QACjC,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC/B;IAED,IAAI,QAAQ,CAAE,SAAiB,CAAC,OAAO,CAAC,EAAE;QACxC,MAAM,GAAG,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;QACpC,GAAG,CAAC,WAAW,GAAG,yGAAyG,CAAC;KAC7H;IAED,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;QAC/B,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAiB,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;KACjE;IACD,SAAS,CAAC,IAAI,GAAG,aAAa,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAE/C,IAAI,SAAS,CAAC,UAAU,EAAE;QACxB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE;YACxC,MAAM,GAAG,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;YACpC,GAAG,CAAC,WAAW,GAAG,wDAAwD,CAAC;SAC5E;KACF;SAAM;QACL,SAAS,CAAC,UAAU,GAAG,EAAE,CAAC;KAC3B;IAED,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,QAAQ,EAAE;QACtC,SAAS,CAAC,sBAAsB,GAAG,KAAK,CAAC;KAC1C;SAAM;QACL,SAAS,CAAC,sBAAsB,GAAG,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC;KACvE;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-hydrated.d.ts b/build/compiler/config/validate-hydrated.d.ts deleted file mode 100644 index 798b5073d69..00000000000 --- a/build/compiler/config/validate-hydrated.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { HydratedFlag, UnvalidatedConfig } from '../../declarations'; -/** - * Validate the `.hydratedFlag` property on the supplied config object and - * return a properly-validated value. - * - * @param config the configuration we're examining - * @returns a suitable value for the hydratedFlag property - */ -export declare const validateHydrated: (config: UnvalidatedConfig) => HydratedFlag | null; diff --git a/build/compiler/config/validate-hydrated.js b/build/compiler/config/validate-hydrated.js deleted file mode 100644 index 8de4d3e7cf0..00000000000 --- a/build/compiler/config/validate-hydrated.js +++ /dev/null @@ -1,45 +0,0 @@ -import { isString } from '@utils'; -/** - * Validate the `.hydratedFlag` property on the supplied config object and - * return a properly-validated value. - * - * @param config the configuration we're examining - * @returns a suitable value for the hydratedFlag property - */ -export const validateHydrated = (config) => { - var _a; - /** - * If `config.hydratedFlag` is set to `null` that is an explicit signal that we - * should _not_ create a default configuration when validating and should instead - * just return `null`. It may also have been set to `false`; this is an invalid - * value as far as the type system is concerned, but users may ignore this. - * - * See {@link HydratedFlag} for more details. - */ - if (config.hydratedFlag === null || config.hydratedFlag === false) { - return null; - } - // Here we start building up a default config since `.hydratedFlag` wasn't set to - // `null` on the provided config. - const hydratedFlag = { ...((_a = config.hydratedFlag) !== null && _a !== void 0 ? _a : {}) }; - if (!isString(hydratedFlag.name) || hydratedFlag.property === '') { - hydratedFlag.name = `hydrated`; - } - if (hydratedFlag.selector === 'attribute') { - hydratedFlag.selector = `attribute`; - } - else { - hydratedFlag.selector = `class`; - } - if (!isString(hydratedFlag.property) || hydratedFlag.property === '') { - hydratedFlag.property = `visibility`; - } - if (!isString(hydratedFlag.initialValue) && hydratedFlag.initialValue !== null) { - hydratedFlag.initialValue = `hidden`; - } - if (!isString(hydratedFlag.hydratedValue) && hydratedFlag.initialValue !== null) { - hydratedFlag.hydratedValue = `inherit`; - } - return hydratedFlag; -}; -//# sourceMappingURL=validate-hydrated.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-hydrated.js.map b/build/compiler/config/validate-hydrated.js.map deleted file mode 100644 index 7d13d909f4c..00000000000 --- a/build/compiler/config/validate-hydrated.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-hydrated.js","sourceRoot":"","sources":["../../../src/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iler/config/validate-namespace.d.ts b/build/compiler/config/validate-namespace.d.ts deleted file mode 100644 index d8aeb6966c5..00000000000 --- a/build/compiler/config/validate-namespace.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Ensures that the `namespace` and `fsNamespace` properties on a project's - * Stencil config are valid strings. A valid namespace means: - * - at least 3 characters - * - cannot start with a number or dash - * - cannot end with a dash - * - must only contain alphanumeric, dash, and dollar sign characters - * - * If any conditions are not met, a diagnostic is added to the provided array. - * - * If a namespace is not provided, the default value is `App`. - * - * @param namespace The namespace to validate - * @param fsNamespace The fsNamespace to validate - * @param diagnostics The array of diagnostics to add to if the namespace is invalid - * @returns The validated namespace and fsNamespace - */ -export declare const validateNamespace: (namespace: string | undefined, fsNamespace: string | undefined, diagnostics: d.Diagnostic[]) => { - namespace: string; - fsNamespace: string; -}; -export declare const validateDistNamespace: (config: d.UnvalidatedConfig, diagnostics: d.Diagnostic[]) => void; diff --git a/build/compiler/config/validate-namespace.js b/build/compiler/config/validate-namespace.js deleted file mode 100644 index b00c3d19fa5..00000000000 --- a/build/compiler/config/validate-namespace.js +++ /dev/null @@ -1,65 +0,0 @@ -import { buildError, dashToPascalCase, isOutputTargetDist, isString } from '@utils'; -import { DEFAULT_NAMESPACE } from './constants'; -/** - * Ensures that the `namespace` and `fsNamespace` properties on a project's - * Stencil config are valid strings. A valid namespace means: - * - at least 3 characters - * - cannot start with a number or dash - * - cannot end with a dash - * - must only contain alphanumeric, dash, and dollar sign characters - * - * If any conditions are not met, a diagnostic is added to the provided array. - * - * If a namespace is not provided, the default value is `App`. - * - * @param namespace The namespace to validate - * @param fsNamespace The fsNamespace to validate - * @param diagnostics The array of diagnostics to add to if the namespace is invalid - * @returns The validated namespace and fsNamespace - */ -export const validateNamespace = (namespace, fsNamespace, diagnostics) => { - namespace = isString(namespace) ? namespace : DEFAULT_NAMESPACE; - namespace = namespace.trim(); - const invalidNamespaceChars = namespace.replace(/(\w)|(\-)|(\$)/g, ''); - if (invalidNamespaceChars !== '') { - const err = buildError(diagnostics); - err.messageText = `Namespace "${namespace}" contains invalid characters: ${invalidNamespaceChars}`; - } - if (namespace.length < 3) { - const err = buildError(diagnostics); - err.messageText = `Namespace "${namespace}" must be at least 3 characters`; - } - if (/^\d+$/.test(namespace.charAt(0))) { - const err = buildError(diagnostics); - err.messageText = `Namespace "${namespace}" cannot have a number for the first character`; - } - if (namespace.charAt(0) === '-') { - const err = buildError(diagnostics); - err.messageText = `Namespace "${namespace}" cannot have a dash for the first character`; - } - if (namespace.charAt(namespace.length - 1) === '-') { - const err = buildError(diagnostics); - err.messageText = `Namespace "${namespace}" cannot have a dash for the last character`; - } - // the file system namespace is the one - // used in filenames and seen in the url - if (!isString(fsNamespace)) { - fsNamespace = namespace.toLowerCase().trim(); - } - if (namespace.includes('-')) { - // convert to PascalCase - namespace = dashToPascalCase(namespace); - } - return { namespace, fsNamespace }; -}; -export const validateDistNamespace = (config, diagnostics) => { - var _a; - const hasDist = ((_a = config.outputTargets) !== null && _a !== void 0 ? _a : []).some(isOutputTargetDist); - if (hasDist) { - if (!isString(config.namespace) || config.namespace.toLowerCase() === 'app') { - const err = buildError(diagnostics); - err.messageText = `When generating a distribution it is recommended to choose a unique namespace rather than the default setting "App". Please updated the "namespace" config property within the stencil config.`; - } - } -}; -//# sourceMappingURL=validate-namespace.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-namespace.js.map b/build/compiler/config/validate-namespace.js.map deleted file mode 100644 index 86f16e040e8..00000000000 --- a/build/compiler/config/validate-namespace.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-namespace.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;;;;;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AAc,SAAS,6CAA6C,CAAC;KACxF;IAED,uCAAuC;IACvC,wCAAwC;IACxC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;QAC1B,WAAW,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;KAC9C;IAED,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAC3B,wBAAwB;QACxB,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;KACzC;IAED,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAA2B,EAAE,WAA2B,EAAE,EAAE;;IAChG,MAAM,OAAO,GAAG,CAAC,MAAA,MAAM,CAAC,aAAa,mCAAI,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACtE,IAAI,OAAO,EAAE;QACX,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;YAC3E,MAAM,GAAG,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;YACpC,GAAG,CAAC,WAAW,GAAG,gMAAgM,CAAC;SACpN;KACF;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-paths.d.ts b/build/compiler/config/validate-paths.d.ts deleted file mode 100644 index d6312350cf8..00000000000 --- a/build/compiler/config/validate-paths.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type * as d from '../../declarations'; -/** - * The paths validated in this module. These fields can be incorporated into a - * {@link d.ValidatedConfig} object. - */ -interface ConfigPaths { - rootDir: string; - srcDir: string; - packageJsonFilePath: string; - cacheDir: string; - srcIndexHtml: string; - globalScript?: string; - globalStyle?: string; - buildLogFilePath?: string; -} -/** - * Do logical-level validation (as opposed to type-level validation) - * for various properties in the user-supplied config which represent - * filesystem paths. - * - * @param config a validated user-supplied configuration - * @returns an object holding the validated paths - */ -export declare const validatePaths: (config: d.Config) => ConfigPaths; -export {}; diff --git a/build/compiler/config/validate-paths.js b/build/compiler/config/validate-paths.js deleted file mode 100644 index 4ea5d2c0af5..00000000000 --- a/build/compiler/config/validate-paths.js +++ /dev/null @@ -1,55 +0,0 @@ -import { join, normalizePath } from '@utils'; -import { isAbsolute } from 'path'; -/** - * Do logical-level validation (as opposed to type-level validation) - * for various properties in the user-supplied config which represent - * filesystem paths. - * - * @param config a validated user-supplied configuration - * @returns an object holding the validated paths - */ -export const validatePaths = (config) => { - const rootDir = typeof config.rootDir !== 'string' ? '/' : config.rootDir; - let srcDir = typeof config.srcDir !== 'string' ? DEFAULT_SRC_DIR : config.srcDir; - if (!isAbsolute(srcDir)) { - srcDir = join(rootDir, srcDir); - } - let cacheDir = typeof config.cacheDir !== 'string' ? DEFAULT_CACHE_DIR : config.cacheDir; - if (!isAbsolute(cacheDir)) { - cacheDir = join(rootDir, cacheDir); - } - else { - cacheDir = normalizePath(cacheDir); - } - let srcIndexHtml = typeof config.srcIndexHtml !== 'string' ? join(srcDir, DEFAULT_INDEX_HTML) : config.srcIndexHtml; - if (!isAbsolute(srcIndexHtml)) { - srcIndexHtml = join(rootDir, srcIndexHtml); - } - const packageJsonFilePath = join(rootDir, 'package.json'); - const validatedPaths = { - rootDir, - srcDir, - cacheDir, - srcIndexHtml, - packageJsonFilePath, - }; - if (typeof config.globalScript === 'string' && !isAbsolute(config.globalScript)) { - validatedPaths.globalScript = join(rootDir, config.globalScript); - } - if (typeof config.globalStyle === 'string' && !isAbsolute(config.globalStyle)) { - validatedPaths.globalStyle = join(rootDir, config.globalStyle); - } - if (config.writeLog) { - validatedPaths.buildLogFilePath = - typeof config.buildLogFilePath === 'string' ? config.buildLogFilePath : DEFAULT_BUILD_LOG_FILE_NAME; - if (!isAbsolute(validatedPaths.buildLogFilePath)) { - validatedPaths.buildLogFilePath = join(rootDir, config.buildLogFilePath); - } - } - return validatedPaths; -}; -const DEFAULT_BUILD_LOG_FILE_NAME = 'stencil-build.log'; -const DEFAULT_CACHE_DIR = '.stencil'; -const DEFAULT_INDEX_HTML = 'index.html'; -const DEFAULT_SRC_DIR = 'src'; -//# sourceMappingURL=validate-paths.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-paths.js.map b/build/compiler/config/validate-paths.js.map deleted file mode 100644 index c711f6c8c18..00000000000 --- a/build/compiler/config/validate-paths.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-paths.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAmBlC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAgB,EAAe,EAAE;IAC7D,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;IAE1E,IAAI,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IAEjF,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;QACvB,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;KAChC;IAED,IAAI,QAAQ,GAAG,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IAEzF,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QACzB,QAAQ,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;KACpC;SAAM;QACL,QAAQ,GAAG,aA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C;AACxB,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AACxD,MAAM,iBAAiB,GAAG,UAAU,CAAC;AACrC,MAAM,kBAAkB,GAAG,YAAY,CAAC;AACxC,MAAM,eAAe,GAAG,KAAK,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-plugins.d.ts b/build/compiler/config/validate-plugins.d.ts deleted file mode 100644 index 336b39de1c1..00000000000 --- a/build/compiler/config/validate-plugins.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const validatePlugins: (config: d.UnvalidatedConfig, diagnostics: d.Diagnostic[]) => void; diff --git a/build/compiler/config/validate-plugins.js b/build/compiler/config/validate-plugins.js deleted file mode 100644 index 1dc88af342b..00000000000 --- a/build/compiler/config/validate-plugins.js +++ /dev/null @@ -1,34 +0,0 @@ -import { buildWarn } from '@utils'; -export const validatePlugins = (config, diagnostics) => { - const userPlugins = config.plugins; - if (!config.rollupPlugins) { - config.rollupPlugins = {}; - } - if (!Array.isArray(userPlugins)) { - config.plugins = []; - return; - } - const rollupPlugins = userPlugins.filter((plugin) => { - return !!(plugin && typeof plugin === 'object' && !plugin.pluginType); - }); - const hasResolveNode = rollupPlugins.some((p) => p.name === 'node-resolve'); - const hasCommonjs = rollupPlugins.some((p) => p.name === 'commonjs'); - if (hasCommonjs) { - const warn = buildWarn(diagnostics); - warn.messageText = `Stencil already uses "@rollup/plugin-commonjs", please remove it from your "stencil.config.ts" plugins. - You can configure the commonjs settings using the "commonjs" property in "stencil.config.ts`; - } - if (hasResolveNode) { - const warn = buildWarn(diagnostics); - warn.messageText = `Stencil already uses "@rollup/plugin-commonjs", please remove it from your "stencil.config.ts" plugins. - You can configure the commonjs settings using the "commonjs" property in "stencil.config.ts`; - } - config.rollupPlugins.before = [ - ...(config.rollupPlugins.before || []), - ...rollupPlugins.filter(({ name }) => name !== 'node-resolve' && name !== 'commonjs'), - ]; - config.plugins = userPlugins.filter((plugin) => { - return !!(plugin && typeof plugin === 'object' && plugin.pluginType); - }); -}; -//# sourceMappingURL=validate-plugins.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-plugins.js.map b/build/compiler/config/validate-plugins.js.map deleted file mode 100644 index 42deca740ff..00000000000 --- a/build/compiler/config/validate-plugins.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-plugins.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAInC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAA2B,EAAE,WAA2B,EAAE,EAAE;IAC1F,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC;IAEnC,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE;QACzB,MAAM,CAAC,aAAa,GAAG,EAAE,CAAC;KAC3B;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;QAC/B,MAAM,CAAC,OAAO,GAAG,EAAE,CAAC;QACpB,OAAO;KACR;IAED,MAAM,aAAa,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;QAClD,OAAO,CAAC,CAAC,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC;IAC5E,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC;IAErE,IAAI,WAAW,EAAE;QACf,MAAM,IAAI,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG;gGACyE,CAAC;KAC9F;IAED,IAAI,cAAc,EAAE;QAClB,MAAM,IAAI,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG;gGACyE,CAAC;KAC9F;IAED,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG;QAC5B,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC;QACtC,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,cAAc,IAAI,IAAI,KAAK,UAAU,CAAC;KACtF,CAAC;IAEF,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;QAC7C,OAAO,CAAC,CAAC,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-prerender.d.ts b/build/compiler/config/validate-prerender.d.ts deleted file mode 100644 index 79500e6c119..00000000000 --- a/build/compiler/config/validate-prerender.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const validatePrerender: (config: d.ValidatedConfig, diagnostics: d.Diagnostic[], outputTarget: d.OutputTargetWww) => void; diff --git a/build/compiler/config/validate-prerender.js b/build/compiler/config/validate-prerender.js deleted file mode 100644 index c6f35d7d2cc..00000000000 --- a/build/compiler/config/validate-prerender.js +++ /dev/null @@ -1,28 +0,0 @@ -import { buildError, isString, join, normalizePath } from '@utils'; -import { isAbsolute } from 'path'; -export const validatePrerender = (config, diagnostics, outputTarget) => { - if (!config.flags.ssr && !config.flags.prerender && config.flags.task !== 'prerender') { - return; - } - outputTarget.baseUrl = normalizePath(outputTarget.baseUrl); - if (!outputTarget.baseUrl.startsWith('http://') && !outputTarget.baseUrl.startsWith('https://')) { - const err = buildError(diagnostics); - err.messageText = `When prerendering, the "baseUrl" output target config must be a full URL and start with either "http://" or "https://". The config can be updated in the "www" output target within the stencil config.`; - } - try { - new URL(outputTarget.baseUrl); - } - catch (e) { - const err = buildError(diagnostics); - err.messageText = `invalid "baseUrl": ${e}`; - } - if (!outputTarget.baseUrl.endsWith('/')) { - outputTarget.baseUrl += '/'; - } - if (isString(outputTarget.prerenderConfig)) { - if (!isAbsolute(outputTarget.prerenderConfig)) { - outputTarget.prerenderConfig = join(config.rootDir, outputTarget.prerenderConfig); - } - } -}; -//# sourceMappingURL=validate-prerender.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-prerender.js.map b/build/compiler/config/validate-prerender.js.map deleted file mode 100644 index ee3e656fae0..00000000000 --- a/build/compiler/config/validate-prerender.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-prerender.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-prerender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,MAAyB,EACzB,WAA2B,EAC3B,YAA+B,EAC/B,EAAE;IACF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,WAAW,EAAE;QACrF,OAAO;KACR;IAED,YAAY,CAAC,OAAO,GAAG,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAE3D,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;QAC/F,MAAM,GAAG,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;QACpC,GAAG,CAAC,WAAW,GAAG,yMAAyM,CAAC;KAC7N;IAED,IAAI;QACF,IAAI,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;KAC/B;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,GAAG,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;QACpC,GAAG,CAAC,WAAW,GAAG,sBAAsB,CAAC,EAAE,CAAC;KAC7C;IAED,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACvC,YAAY,CAAC,OAAO,IAAI,GAAG,CAAC;KAC7B;IAED,IAAI,QAAQ,CAAC,YAAY,CAAC,eAAe,CAAC,EAAE;QAC1C,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,eAAe,CAAC,EAAE;YAC7C,YAAY,CAAC,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;SACnF;KACF;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-rollup-config.d.ts b/build/compiler/config/validate-rollup-config.d.ts deleted file mode 100644 index a678e3e77bd..00000000000 --- a/build/compiler/config/validate-rollup-config.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Ensure that a valid baseline rollup configuration is set on the validated - * config. - * - * If a config is present this will return a new config based on the user - * supplied one. - * - * If no config is present, this will return a default config. - * - * @param config a validated user-supplied configuration object - * @returns a validated rollup configuration - */ -export declare const validateRollupConfig: (config: d.Config) => d.RollupConfig; diff --git a/build/compiler/config/validate-rollup-config.js b/build/compiler/config/validate-rollup-config.js deleted file mode 100644 index 8e916e76704..00000000000 --- a/build/compiler/config/validate-rollup-config.js +++ /dev/null @@ -1,38 +0,0 @@ -import { isObject, pluck } from '@utils'; -/** - * Ensure that a valid baseline rollup configuration is set on the validated - * config. - * - * If a config is present this will return a new config based on the user - * supplied one. - * - * If no config is present, this will return a default config. - * - * @param config a validated user-supplied configuration object - * @returns a validated rollup configuration - */ -export const validateRollupConfig = (config) => { - let cleanRollupConfig = { ...DEFAULT_ROLLUP_CONFIG }; - const rollupConfig = config.rollupConfig; - if (!rollupConfig || !isObject(rollupConfig)) { - return cleanRollupConfig; - } - if (rollupConfig.inputOptions && isObject(rollupConfig.inputOptions)) { - cleanRollupConfig = { - ...cleanRollupConfig, - inputOptions: pluck(rollupConfig.inputOptions, ['context', 'moduleContext', 'treeshake']), - }; - } - if (rollupConfig.outputOptions && isObject(rollupConfig.outputOptions)) { - cleanRollupConfig = { - ...cleanRollupConfig, - outputOptions: pluck(rollupConfig.outputOptions, ['globals']), - }; - } - return cleanRollupConfig; -}; -const DEFAULT_ROLLUP_CONFIG = { - inputOptions: {}, - outputOptions: {}, -}; -//# sourceMappingURL=validate-rollup-config.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-rollup-config.js.map b/build/compiler/config/validate-rollup-config.js.map deleted file mode 100644 index 126beffc55f..00000000000 --- a/build/compiler/config/validate-rollup-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-rollup-config.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-rollup-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAIzC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAgB,EAAkB,EAAE;IACvE,IAAI,iBAAiB,GAAG,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAErD,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;IAEzC,IAAI,CAAC,YAAY,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;QAC5C,OAAO,iBAAiB,CAAC;KAC1B;IAED,IAAI,YAAY,CAAC,YAAY,IAAI,QAAQ,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE;QACpE,iBAAiB,GAAG;YAClB,GAAG,iBAAiB;YACpB,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC,SAAS,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC;SAC1F,CAAC;KACH;IAED,IAAI,YAAY,CAAC,aAAa,IAAI,QAAQ,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE;QACtE,iBAAiB,GAAG;YAClB,GAAG,iBAAiB;YACpB,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,SAAS,CAAC,CAAC;SAC9D,CAAC;KACH;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAmB;IAC5C,YAAY,EAAE,EAAE;IAChB,aAAa,EAAE,EAAE;CAClB,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-service-worker.d.ts b/build/compiler/config/validate-service-worker.d.ts deleted file mode 100644 index 3965f32b2ae..00000000000 --- a/build/compiler/config/validate-service-worker.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Validate that a service worker configuration is valid, if it is present and - * accounted for. - * - * Note that our service worker configuration / support is based on - * Workbox, a package for automatically generating Service Workers to cache - * assets on the client. More here: https://developer.chrome.com/docs/workbox/ - * - * This function first checks that the service worker config set on the - * supplied `OutputTarget` is not empty and that we are not currently in - * development mode. In those cases it will early return. - * - * If we do find a service worker configuration we do some validation to ensure - * that things are set up correctly. - * - * @param config the current, validated configuration - * @param outputTarget the `www` outputTarget whose service worker - * configuration we want to validate. **Note**: the `.serviceWorker` object - * _will be mutated_ if it is present. - */ -export declare const validateServiceWorker: (config: d.ValidatedConfig, outputTarget: d.OutputTargetWww) => void; diff --git a/build/compiler/config/validate-service-worker.js b/build/compiler/config/validate-service-worker.js deleted file mode 100644 index 594bd6a14fc..00000000000 --- a/build/compiler/config/validate-service-worker.js +++ /dev/null @@ -1,84 +0,0 @@ -import { isString, join } from '@utils'; -import { isAbsolute } from 'path'; -/** - * Validate that a service worker configuration is valid, if it is present and - * accounted for. - * - * Note that our service worker configuration / support is based on - * Workbox, a package for automatically generating Service Workers to cache - * assets on the client. More here: https://developer.chrome.com/docs/workbox/ - * - * This function first checks that the service worker config set on the - * supplied `OutputTarget` is not empty and that we are not currently in - * development mode. In those cases it will early return. - * - * If we do find a service worker configuration we do some validation to ensure - * that things are set up correctly. - * - * @param config the current, validated configuration - * @param outputTarget the `www` outputTarget whose service worker - * configuration we want to validate. **Note**: the `.serviceWorker` object - * _will be mutated_ if it is present. - */ -export const validateServiceWorker = (config, outputTarget) => { - var _a, _b, _c, _d; - if (outputTarget.serviceWorker === false) { - return; - } - if (config.devMode && !config.flags.serviceWorker) { - outputTarget.serviceWorker = null; - return; - } - if (outputTarget.serviceWorker === null) { - outputTarget.serviceWorker = null; - return; - } - if (!outputTarget.serviceWorker && config.devMode) { - outputTarget.serviceWorker = null; - return; - } - const globDirectory = typeof ((_a = outputTarget.serviceWorker) === null || _a === void 0 ? void 0 : _a.globDirectory) === 'string' - ? outputTarget.serviceWorker.globDirectory - : outputTarget.appDir; - outputTarget.serviceWorker = { - ...outputTarget.serviceWorker, - globDirectory, - swDest: isString((_b = outputTarget.serviceWorker) === null || _b === void 0 ? void 0 : _b.swDest) - ? outputTarget.serviceWorker.swDest - : join((_c = outputTarget.appDir) !== null && _c !== void 0 ? _c : '', DEFAULT_FILENAME), - }; - if (!Array.isArray(outputTarget.serviceWorker.globPatterns)) { - if (typeof outputTarget.serviceWorker.globPatterns === 'string') { - outputTarget.serviceWorker.globPatterns = [outputTarget.serviceWorker.globPatterns]; - } - else if (typeof outputTarget.serviceWorker.globPatterns !== 'string') { - outputTarget.serviceWorker.globPatterns = DEFAULT_GLOB_PATTERNS.slice(); - } - } - if (typeof outputTarget.serviceWorker.globIgnores === 'string') { - outputTarget.serviceWorker.globIgnores = [outputTarget.serviceWorker.globIgnores]; - } - outputTarget.serviceWorker.globIgnores = outputTarget.serviceWorker.globIgnores || []; - addGlobIgnores(config, outputTarget.serviceWorker.globIgnores); - outputTarget.serviceWorker.dontCacheBustURLsMatching = /p-\w{8}/; - if (isString(outputTarget.serviceWorker.swSrc) && !isAbsolute(outputTarget.serviceWorker.swSrc)) { - outputTarget.serviceWorker.swSrc = join(config.rootDir, outputTarget.serviceWorker.swSrc); - } - if (isString(outputTarget.serviceWorker.swDest) && !isAbsolute(outputTarget.serviceWorker.swDest)) { - outputTarget.serviceWorker.swDest = join((_d = outputTarget.appDir) !== null && _d !== void 0 ? _d : '', outputTarget.serviceWorker.swDest); - } -}; -/** - * Add file glob patterns to the `globIgnores` for files we don't want to cache - * with the service worker. - * - * @param config the current, validated configuration - * @param globIgnores list of file ignore patterns. **Note**: will be mutated. - */ -const addGlobIgnores = (config, globIgnores) => { - globIgnores.push(`**/host.config.json`, // the filename of the host configuration - `**/*.system.entry.js`, `**/*.system.js`, `**/${config.fsNamespace}.js`, `**/${config.fsNamespace}.esm.js`, `**/${config.fsNamespace}.css`); -}; -const DEFAULT_GLOB_PATTERNS = ['*.html', '**/*.{js,css,json}']; -const DEFAULT_FILENAME = 'sw.js'; -//# sourceMappingURL=validate-service-worker.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-service-worker.js.map b/build/compiler/config/validate-service-worker.js.map deleted file mode 100644 index 834416fb6aa..00000000000 --- a/build/compiler/config/validate-service-worker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-service-worker.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-service-worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAyB,EAAE,YAA+B,EAAQ,EAAE;;IACxG,IAAI,YAAY,CAAC,aAAa,KAAK,KAAK,EAAE;QACxC,OAAO;KAC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C;AACJ,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC;AAE/D,MAAM,gBAAgB,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-testing.d.ts b/build/compiler/config/validate-testing.d.ts deleted file mode 100644 index 0de4eea50e9..00000000000 --- a/build/compiler/config/validate-testing.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const validateTesting: (config: d.ValidatedConfig, diagnostics: d.Diagnostic[]) => void; diff --git a/build/compiler/config/validate-testing.js b/build/compiler/config/validate-testing.js deleted file mode 100644 index 4b00cc2e077..00000000000 --- a/build/compiler/config/validate-testing.js +++ /dev/null @@ -1,169 +0,0 @@ -import { buildError, isOutputTargetDist, isOutputTargetWww, isString, join, normalizePath } from '@utils'; -import { basename, dirname, isAbsolute } from 'path'; -import { isLocalModule } from '../sys/resolve/resolve-utils'; -export const validateTesting = (config, diagnostics) => { - var _a; - const testing = (config.testing = Object.assign({}, config.testing || {})); - if (!config.flags.e2e && !config.flags.spec) { - return; - } - let configPathDir = config.configPath; - if (isString(configPathDir)) { - if (basename(configPathDir).includes('.')) { - configPathDir = dirname(configPathDir); - } - } - else { - configPathDir = config.rootDir; - } - if (typeof config.flags.headless === 'boolean' || config.flags.headless === 'new') { - testing.browserHeadless = config.flags.headless; - } - else if (typeof testing.browserHeadless !== 'boolean' && testing.browserHeadless !== 'new') { - testing.browserHeadless = true; - } - if (!testing.browserWaitUntil) { - testing.browserWaitUntil = 'load'; - } - testing.browserArgs = testing.browserArgs || []; - addTestingConfigOption(testing.browserArgs, '--font-render-hinting=medium'); - addTestingConfigOption(testing.browserArgs, '--incognito'); - if (config.flags.ci) { - addTestingConfigOption(testing.browserArgs, '--no-sandbox'); - addTestingConfigOption(testing.browserArgs, '--disable-setuid-sandbox'); - addTestingConfigOption(testing.browserArgs, '--disable-dev-shm-usage'); - testing.browserHeadless = testing.browserHeadless === 'new' ? 'new' : true; - } - else if (config.flags.devtools || testing.browserDevtools) { - testing.browserDevtools = true; - testing.browserHeadless = false; - } - if (typeof testing.rootDir === 'string') { - if (!isAbsolute(testing.rootDir)) { - testing.rootDir = join(config.rootDir, testing.rootDir); - } - } - else { - testing.rootDir = config.rootDir; - } - if (typeof config.flags.screenshotConnector === 'string') { - testing.screenshotConnector = config.flags.screenshotConnector; - } - if (typeof testing.screenshotConnector === 'string') { - if (!isAbsolute(testing.screenshotConnector)) { - testing.screenshotConnector = join(config.rootDir, testing.screenshotConnector); - } - else { - testing.screenshotConnector = normalizePath(testing.screenshotConnector); - } - } - else { - testing.screenshotConnector = join(config.sys.getCompilerExecutingPath(), '..', '..', 'screenshot', 'local-connector.js'); - } - if (!Array.isArray(testing.testPathIgnorePatterns)) { - testing.testPathIgnorePatterns = DEFAULT_IGNORE_PATTERNS.map((ignorePattern) => { - return join(testing.rootDir, ignorePattern); - }); - ((_a = config.outputTargets) !== null && _a !== void 0 ? _a : []) - .filter((o) => (isOutputTargetDist(o) || isOutputTargetWww(o)) && !!o.dir) - .forEach((outputTarget) => { - var _a; - (_a = testing.testPathIgnorePatterns) === null || _a === void 0 ? void 0 : _a.push(outputTarget.dir); - }); - } - if (typeof testing.preset !== 'string') { - testing.preset = join(config.sys.getCompilerExecutingPath(), '..', '..', 'testing'); - } - else if (!isAbsolute(testing.preset)) { - testing.preset = join(configPathDir, testing.preset); - } - if (!Array.isArray(testing.setupFilesAfterEnv)) { - testing.setupFilesAfterEnv = []; - } - testing.setupFilesAfterEnv.unshift(join(config.sys.getCompilerExecutingPath(), '..', '..', 'testing', 'jest-setuptestframework.js')); - if (isString(testing.testEnvironment)) { - if (!isAbsolute(testing.testEnvironment) && isLocalModule(testing.testEnvironment)) { - testing.testEnvironment = join(configPathDir, testing.testEnvironment); - } - } - if (typeof testing.allowableMismatchedPixels === 'number') { - if (testing.allowableMismatchedPixels < 0) { - const err = buildError(diagnostics); - err.messageText = `allowableMismatchedPixels must be a value that is 0 or greater`; - } - } - else { - testing.allowableMismatchedPixels = DEFAULT_ALLOWABLE_MISMATCHED_PIXELS; - } - if (typeof testing.allowableMismatchedRatio === 'number') { - if (testing.allowableMismatchedRatio < 0 || testing.allowableMismatchedRatio > 1) { - const err = buildError(diagnostics); - err.messageText = `allowableMismatchedRatio must be a value ranging from 0 to 1`; - } - } - if (typeof testing.pixelmatchThreshold === 'number') { - if (testing.pixelmatchThreshold < 0 || testing.pixelmatchThreshold > 1) { - const err = buildError(diagnostics); - err.messageText = `pixelmatchThreshold must be a value ranging from 0 to 1`; - } - } - else { - testing.pixelmatchThreshold = DEFAULT_PIXEL_MATCH_THRESHOLD; - } - if (testing.testRegex === undefined) { - /** - * The test regex covers cases of: - * - files under a `__tests__` directory - * - the case where a test file has a name such as `test.ts`, `spec.ts` or `e2e.ts`. - * - these files can use any of the following file extensions: .ts, .tsx, .js, .jsx. - * - this regex only handles the entire path of a file, e.g. `/some/path/e2e.ts` - * - the case where a test file ends with `.test.ts`, `.spec.ts`, or `.e2e.ts`. - * - these files can use any of the following file extensions: .ts, .tsx, .js, .jsx. - * - this regex case shall match file names such as `my-cmp.spec.ts`, `test.spec.ts` - * - this regex case shall not match file names such as `attest.ts`, `bespec.ts` - */ - testing.testRegex = '(/__tests__/.*|(\\.|/)(test|spec|e2e))\\.[jt]sx?$'; - } - if (Array.isArray(testing.testMatch)) { - delete testing.testRegex; - } - else if (typeof testing.testRegex === 'string') { - delete testing.testMatch; - } - if (typeof testing.runner !== 'string') { - testing.runner = join(config.sys.getCompilerExecutingPath(), '..', '..', 'testing', 'jest-runner.js'); - } - if (typeof testing.waitBeforeScreenshot === 'number') { - if (testing.waitBeforeScreenshot < 0) { - const err = buildError(diagnostics); - err.messageText = `waitBeforeScreenshot must be a value that is 0 or greater`; - } - } - else { - testing.waitBeforeScreenshot = 10; - } - if (!Array.isArray(testing.emulate) || testing.emulate.length === 0) { - testing.emulate = [ - { - userAgent: 'default', - viewport: { - width: 600, - height: 600, - deviceScaleFactor: 1, - isMobile: false, - hasTouch: false, - isLandscape: false, - }, - }, - ]; - } -}; -const addTestingConfigOption = (setArray, option) => { - if (!setArray.includes(option)) { - setArray.push(option); - } -}; -const DEFAULT_ALLOWABLE_MISMATCHED_PIXELS = 100; -const DEFAULT_PIXEL_MATCH_THRESHOLD = 0.1; -const DEFAULT_IGNORE_PATTERNS = ['.vscode', '.stencil', 'node_modules']; -//# sourceMappingURL=validate-testing.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-testing.js.map b/build/compiler/config/validate-testing.js.map deleted file mode 100644 index 5f513483144..00000000000 --- a/build/compiler/config/validate-testing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-testing.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-testing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC1G,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGrD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAyB,EAAE,WAA2B,EAAE,EAAE;;IACxF,MAAM,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IAE3E,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE;QAC3C,OAAO;KACR;IAED,IAAI,aAAa,GAAG,MAAM,CAAC,UAAW,CAAC;IACvC,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE;QAC3B,IAAI,QAAQ,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,GAAG,C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MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,GAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;KACxG;IAED,IAAI,OAAO,OAAO,CAAC,oBAAoB,KAAK,QAAQ,EAAE;QACpD,IAAI,OAAO,CAAC,oBAAoB,GAAG,CAAC,EAAE;YACpC,MAAM,GAAG,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;YACpC,GAAG,CAAC,WAAW,GAAG,2DAA2D,CAAC;SAC/E;KACF;SAAM;QACL,OAAO,CAAC,oBAAoB,GAAG,EAAE,CAAC;KACnC;IAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;QACnE,OAAO,CAAC,OAAO,GAAG;YAChB;gBACE,SAAS,EAAE,SAAS;gBACpB,QAAQ,EAAE;oBACR,KAAK,EAAE,GAAG;oBACV,MAAM,EAAE,GAAG;oBACX,iBAAiB,EAAE,CAAC;oBACpB,QAAQ,EAAE,KAAK;oBACf,QAAQ,EAAE,KAAK;oBACf,WAAW,EAAE,KAAK;iBACnB;aACF;SACF,CAAC;KACH;AACH,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,QAAkB,EAAE,MAAc,EAAE,EAAE;IACpE,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAC9B,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACvB;AACH,CAAC,CAAC;AAEF,MAAM,mCAAmC,GAAG,GAAG,CAAC;AAChD,MAAM,6BAA6B,GAAG,GAAG,CAAC;AAC1C,MAAM,uBAAuB,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/config/validate-workers.d.ts b/build/compiler/config/validate-workers.d.ts deleted file mode 100644 index 24626ccfe0a..00000000000 --- a/build/compiler/config/validate-workers.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const validateWorkers: (config: d.ValidatedConfig) => void; diff --git a/build/compiler/config/validate-workers.js b/build/compiler/config/validate-workers.js deleted file mode 100644 index 454d327c328..00000000000 --- a/build/compiler/config/validate-workers.js +++ /dev/null @@ -1,16 +0,0 @@ -export const validateWorkers = (config) => { - if (typeof config.maxConcurrentWorkers !== 'number') { - config.maxConcurrentWorkers = 8; - } - if (typeof config.flags.maxWorkers === 'number') { - config.maxConcurrentWorkers = config.flags.maxWorkers; - } - else if (config.flags.ci) { - config.maxConcurrentWorkers = 4; - } - config.maxConcurrentWorkers = Math.max(Math.min(config.maxConcurrentWorkers, 16), 0); - if (config.devServer) { - config.devServer.worker = config.maxConcurrentWorkers > 0; - } -}; -//# sourceMappingURL=validate-workers.js.map \ No newline at end of file diff --git a/build/compiler/config/validate-workers.js.map b/build/compiler/config/validate-workers.js.map deleted file mode 100644 index 20d8d569c5f..00000000000 --- a/build/compiler/config/validate-workers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validate-workers.js","sourceRoot":"","sources":["../../../src/compiler/config/validate-workers.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAyB,EAAE,EAAE;IAC3D,IAAI,OAAO,MAAM,CAAC,oBAAoB,KAAK,QAAQ,EAAE;QACnD,MAAM,CAAC,oBAAoB,GAAG,CAAC,CAAC;KACjC;IAED,IAAI,OAAO,MAAM,CAAC,KAAK,CAAC,UAAU,KAAK,QAAQ,EAAE;QAC/C,MAAM,CAAC,oBAAoB,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC;KACvD;SAAM,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE;QAC1B,MAAM,CAAC,oBAAoB,GAAG,CAAC,CAAC;KACjC;IAED,MAAM,CAAC,oBAAoB,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,oBAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAErF,IAAI,MAAM,CAAC,SAAS,EAAE;QACpB,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,oBAAoB,GAAG,CAAC,CAAC;KAC3D;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/constants.d.ts b/build/compiler/docs/constants.d.ts deleted file mode 100644 index d499f7dac84..00000000000 --- a/build/compiler/docs/constants.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const AUTO_GENERATE_COMMENT = ""; -export declare const NOTE = "*Built with [StencilJS](https://stenciljs.com/)*"; diff --git a/build/compiler/docs/constants.js b/build/compiler/docs/constants.js deleted file mode 100644 index a86ae5fa47f..00000000000 --- a/build/compiler/docs/constants.js +++ /dev/null @@ -1,3 +0,0 @@ -export const AUTO_GENERATE_COMMENT = ``; -export const NOTE = `*Built with [StencilJS](https://stenciljs.com/)*`; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/build/compiler/docs/constants.js.map b/build/compiler/docs/constants.js.map deleted file mode 100644 index 40df94352ec..00000000000 --- a/build/compiler/docs/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/compiler/docs/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,+BAA+B,CAAC;AACrE,MAAM,CAAC,MAAM,IAAI,GAAG,kDAAkD,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/custom/index.d.ts b/build/compiler/docs/custom/index.d.ts deleted file mode 100644 index a8ce2ab6115..00000000000 --- a/build/compiler/docs/custom/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const generateCustomDocs: (config: d.ValidatedConfig, docsData: d.JsonDocs, outputTargets: d.OutputTarget[]) => Promise; diff --git a/build/compiler/docs/custom/index.js b/build/compiler/docs/custom/index.js deleted file mode 100644 index e73173519b2..00000000000 --- a/build/compiler/docs/custom/index.js +++ /dev/null @@ -1,16 +0,0 @@ -import { isOutputTargetDocsCustom } from '@utils'; -export const generateCustomDocs = async (config, docsData, outputTargets) => { - const customOutputTargets = outputTargets.filter(isOutputTargetDocsCustom); - if (customOutputTargets.length === 0) { - return; - } - await Promise.all(customOutputTargets.map(async (customOutput) => { - try { - await customOutput.generator(docsData, config); - } - catch (e) { - config.logger.error(`uncaught custom docs error: ${e}`); - } - })); -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/compiler/docs/custom/index.js.map b/build/compiler/docs/custom/index.js.map deleted file mode 100644 index 9ce4829ad56..00000000000 --- a/build/compiler/docs/custom/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/compiler/docs/custom/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAIlD,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,MAAyB,EACzB,QAAoB,EACpB,aAA+B,EAC/B,EAAE;IACF,MAAM,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAC3E,IAAI,mBAAmB,CAAC,MAAM,KAAK,CAAC,EAAE;QACpC,OAAO;KACR;IACD,MAAM,OAAO,CAAC,GAAG,CACf,mBAAmB,CAAC,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE;QAC7C,IAAI;YACF,MAAM,YAAY,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;SAChD;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,EAAE,CAAC,CAAC;SACzD;IACH,CAAC,CAAC,CACH,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/generate-doc-data.d.ts b/build/compiler/docs/generate-doc-data.d.ts deleted file mode 100644 index 02a5183d438..00000000000 --- a/build/compiler/docs/generate-doc-data.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Generate metadata that will be used to generate any given documentation-related - * output target(s) - * - * @param config the configuration associated with the current Stencil task run - * @param compilerCtx the current compiler context - * @param buildCtx the build context for the current Stencil task run - * @returns the generated metadata - */ -export declare const generateDocData: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx) => Promise; -export declare const getNameText: (name: string, tags: d.JsonDocsTag[]) => string[][]; diff --git a/build/compiler/docs/generate-doc-data.js b/build/compiler/docs/generate-doc-data.js deleted file mode 100644 index 72083d15f98..00000000000 --- a/build/compiler/docs/generate-doc-data.js +++ /dev/null @@ -1,420 +0,0 @@ -import { flatOne, isOutputTargetDocsJson, join, normalizePath, relative, sortBy, unique } from '@utils'; -import { basename, dirname } from 'path'; -import { typescriptVersion, version } from '../../version'; -import { getBuildTimestamp } from '../build/build-ctx'; -import { addFileToLibrary, getTypeLibrary } from '../transformers/type-library'; -import { AUTO_GENERATE_COMMENT } from './constants'; -/** - * Generate metadata that will be used to generate any given documentation-related - * output target(s) - * - * @param config the configuration associated with the current Stencil task run - * @param compilerCtx the current compiler context - * @param buildCtx the build context for the current Stencil task run - * @returns the generated metadata - */ -export const generateDocData = async (config, compilerCtx, buildCtx) => { - const jsonOutputTargets = config.outputTargets.filter(isOutputTargetDocsJson); - const supplementalPublicTypes = findSupplementalPublicTypes(jsonOutputTargets); - if (supplementalPublicTypes !== '') { - // if supplementalPublicTypes is set then we want to add all the public - // types in that file to the type library so that output targets producing - // documentation can make use of that data later. - addFileToLibrary(config, supplementalPublicTypes); - } - const typeLibrary = getTypeLibrary(); - return { - timestamp: getBuildTimestamp(), - compiler: { - name: '@stencil/core', - version, - typescriptVersion, - }, - components: await getDocsComponents(config, compilerCtx, buildCtx), - typeLibrary, - }; -}; -/** - * If the `supplementalPublicTypes` option is set on one output target, find that value and return it. - * - * @param outputTargets an array of docs-json output targets - * @returns the first value encountered for supplementalPublicTypes or an empty string - */ -function findSupplementalPublicTypes(outputTargets) { - for (const docsJsonOT of outputTargets) { - if (docsJsonOT.supplementalPublicTypes) { - return docsJsonOT.supplementalPublicTypes; - } - } - return ''; -} -/** - * Derive the metadata for each Stencil component - * - * @param config the configuration associated with the current Stencil task run - * @param compilerCtx the current compiler context - * @param buildCtx the build context for the current Stencil task run - * @returns the derived metadata - */ -const getDocsComponents = async (config, compilerCtx, buildCtx) => { - const results = await Promise.all(buildCtx.moduleFiles.map(async (moduleFile) => { - const filePath = moduleFile.sourceFilePath; - const dirPath = normalizePath(dirname(filePath)); - const readmePath = normalizePath(join(dirPath, 'readme.md')); - const usagesDir = normalizePath(join(dirPath, 'usage')); - const readme = await getUserReadmeContent(compilerCtx, readmePath); - const usage = await generateUsages(compilerCtx, usagesDir); - return moduleFile.cmps - .filter((cmp) => !cmp.internal && !cmp.isCollectionDependency) - .map((cmp) => ({ - dirPath, - filePath: normalizePath(relative(config.rootDir, filePath), false), - fileName: basename(filePath), - readmePath, - usagesDir, - tag: cmp.tagName, - readme, - overview: cmp.docs.text, - usage, - docs: generateDocs(readme, cmp.docs), - docsTags: cmp.docs.tags, - encapsulation: getDocsEncapsulation(cmp), - dependents: cmp.directDependents, - dependencies: cmp.directDependencies, - dependencyGraph: buildDocsDepGraph(cmp, buildCtx.components), - deprecation: getDocsDeprecationText(cmp.docs.tags), - props: getDocsProperties(cmp), - methods: getDocsMethods(cmp.methods), - events: getDocsEvents(cmp.events), - styles: getDocsStyles(cmp), - slots: getDocsSlots(cmp.docs.tags), - parts: getDocsParts(cmp.htmlParts, cmp.docs.tags), - listeners: getDocsListeners(cmp.listeners), - })); - })); - return sortBy(flatOne(results), (cmp) => cmp.tag); -}; -const buildDocsDepGraph = (cmp, cmps) => { - const dependencies = {}; - function walk(tagName) { - if (!dependencies[tagName]) { - const cmp = cmps.find((c) => c.tagName === tagName); - const deps = cmp.directDependencies; - if (deps.length > 0) { - dependencies[tagName] = deps; - deps.forEach(walk); - } - } - } - walk(cmp.tagName); - // load dependents - cmp.directDependents.forEach((tagName) => { - if (dependencies[tagName] && !dependencies[tagName].includes(cmp.tagName)) { - dependencies[tagName].push(cmp.tagName); - } - else { - dependencies[tagName] = [cmp.tagName]; - } - }); - return dependencies; -}; -/** - * Determines the encapsulation string to use, based on the provided compiler metadata - * @param cmp the metadata for a single component - * @returns the encapsulation level, expressed as a string - */ -const getDocsEncapsulation = (cmp) => { - if (cmp.encapsulation === 'shadow') { - return 'shadow'; - } - else if (cmp.encapsulation === 'scoped') { - return 'scoped'; - } - else { - return 'none'; - } -}; -/** - * Generate a collection of JSDoc metadata for both real and virtual props - * @param cmpMeta the component metadata to derive JSDoc metadata from - * @returns the derived metadata - */ -const getDocsProperties = (cmpMeta) => { - return sortBy([...getRealProperties(cmpMeta.properties), ...getVirtualProperties(cmpMeta.virtualProperties)], (p) => p.name); -}; -/** - * Generate a collection of JSDoc metadata for props on a component - * @param properties the component's property metadata to derive JSDoc metadata from - * @returns the derived metadata - */ -const getRealProperties = (properties) => { - return properties - .filter((member) => !member.internal) - .map((member) => ({ - name: member.name, - type: member.complexType.resolved, - complexType: member.complexType, - mutable: member.mutable, - attr: member.attribute, - reflectToAttr: !!member.reflect, - docs: member.docs.text, - docsTags: member.docs.tags, - default: member.defaultValue, - deprecation: getDocsDeprecationText(member.docs.tags), - values: parseTypeIntoValues(member.complexType.resolved), - optional: member.optional, - required: member.required, - })); -}; -/** - * Generate a collection of JSDoc metadata for props on a component - * @param virtualProps the component's virtual property metadata to derive JSDoc metadata from - * @returns the derived metadata - */ -const getVirtualProperties = (virtualProps) => { - return virtualProps.map((member) => ({ - name: member.name, - type: member.type, - mutable: false, - attr: member.name, - reflectToAttr: false, - docs: member.docs, - docsTags: [], - default: undefined, - deprecation: undefined, - values: parseTypeIntoValues(member.type), - optional: true, - required: false, - })); -}; -const parseTypeIntoValues = (type) => { - if (typeof type === 'string') { - const unions = type.split('|').map((u) => u.trim()); - const parsedUnions = []; - unions.forEach((u) => { - if (u === 'true') { - parsedUnions.push({ - value: 'true', - type: 'boolean', - }); - return; - } - if (u === 'false') { - parsedUnions.push({ - value: 'false', - type: 'boolean', - }); - return; - } - if (!Number.isNaN(parseFloat(u))) { - // union is a number - parsedUnions.push({ - value: u, - type: 'number', - }); - return; - } - if (/^("|').+("|')$/gm.test(u)) { - // ionic is a string - parsedUnions.push({ - value: u.slice(1, -1), - type: 'string', - }); - return; - } - parsedUnions.push({ - type: u, - }); - }); - return parsedUnions; - } - return []; -}; -const getDocsMethods = (methods) => { - return sortBy(methods, (member) => member.name) - .filter((member) => !member.internal) - .map((member) => ({ - name: member.name, - returns: { - type: member.complexType.return, - docs: member.docs.tags - .filter((t) => t.name === 'return' || t.name === 'returns') - .map((t) => t.text) - .join('\n'), - }, - complexType: member.complexType, - signature: `${member.name}${member.complexType.signature}`, - parameters: [], - docs: member.docs.text, - docsTags: member.docs.tags, - deprecation: getDocsDeprecationText(member.docs.tags), - })); -}; -const getDocsEvents = (events) => { - return sortBy(events, (eventMeta) => eventMeta.name.toLowerCase()) - .filter((eventMeta) => !eventMeta.internal) - .map((eventMeta) => ({ - event: eventMeta.name, - detail: eventMeta.complexType.resolved, - bubbles: eventMeta.bubbles, - complexType: eventMeta.complexType, - cancelable: eventMeta.cancelable, - composed: eventMeta.composed, - docs: eventMeta.docs.text, - docsTags: eventMeta.docs.tags, - deprecation: getDocsDeprecationText(eventMeta.docs.tags), - })); -}; -const getDocsStyles = (cmpMeta) => { - if (!cmpMeta.styleDocs) { - return []; - } - return sortBy(cmpMeta.styleDocs, (o) => o.name.toLowerCase()).map((styleDoc) => { - return { - name: styleDoc.name, - annotation: styleDoc.annotation || '', - docs: styleDoc.docs || '', - }; - }); -}; -const getDocsListeners = (listeners) => { - return listeners.map((listener) => ({ - event: listener.name, - target: listener.target, - capture: listener.capture, - passive: listener.passive, - })); -}; -/** - * Get the text associated with a `@deprecated` tag, if one exists - * @param tags the tags associated with a JSDoc block on a node in the AST - * @returns the text associated with the first found `@deprecated` tag. If a `@deprecated` tag exists but does not - * have associated text, an empty string is returned. If no such tag is found, return `undefined` - */ -const getDocsDeprecationText = (tags) => { - const deprecation = tags.find((t) => t.name === 'deprecated'); - if (deprecation) { - return deprecation.text || ''; - } - return undefined; -}; -const getDocsSlots = (tags) => { - return sortBy(getNameText('slot', tags).map(([name, docs]) => ({ name, docs })), (a) => a.name); -}; -const getDocsParts = (vdom, tags) => { - const docsParts = getNameText('part', tags).map(([name, docs]) => ({ name, docs })); - const vdomParts = vdom.map((name) => ({ name, docs: '' })); - return sortBy(unique([...docsParts, ...vdomParts], (p) => p.name), (p) => p.name); -}; -export const getNameText = (name, tags) => { - return tags - .filter((tag) => tag.name === name && tag.text) - .map(({ text }) => { - const [namePart, ...rest] = (' ' + text).split(' - '); - return [namePart.trim(), rest.join(' - ').trim()]; - }); -}; -/** - * Attempts to read a pre-existing README.md file from disk, returning any content generated by the user. - * - * For simplicity's sake, it is assumed that all user-generated content will fall before {@link AUTO_GENERATE_COMMENT} - * - * @param compilerCtx the current compiler context - * @param readmePath the path to the README file to read - * @returns the user generated content that occurs before {@link AUTO_GENERATE_COMMENT}. If no user generated content - * exists, or if there was an issue reading the file, return `undefined` - */ -const getUserReadmeContent = async (compilerCtx, readmePath) => { - try { - const existingContent = await compilerCtx.fs.readFile(readmePath); - // subtract one to get everything up to, but not including the auto generated comment - const userContentIndex = existingContent.indexOf(AUTO_GENERATE_COMMENT) - 1; - if (userContentIndex >= 0) { - return existingContent.substring(0, userContentIndex); - } - } - catch (e) { } - return undefined; -}; -/** - * Generate documentation for a given component based on the provided JSDoc and README contents - * @param readme the contents of a component's README file, without any autogenerated contents - * @param jsdoc the JSDoc associated with the component's declaration - * @returns the generated documentation - */ -const generateDocs = (readme, jsdoc) => { - const docs = jsdoc.text; - if (docs !== '' || !readme) { - // just return the existing docs if they exist. these would have been captured earlier in the compilation process. - // if they don't exist, and there's no README to process, return an empty string. - return docs; - } - /** - * Parse the README, storing the first section of content. - * Content is defined as the area between two non-consecutive lines that start with a '#': - * ``` - * # Header 1 - * This is some content - * # Header 2 - * This is more content - * # Header 3 - * Again, content - * ``` - * In the example above, this chunk of code is designed to capture "This is some content" - */ - let isContent = false; - const lines = readme.split('\n'); - const contentLines = []; - for (const line of lines) { - const isHeader = line.startsWith('#'); - if (isHeader && isContent) { - // we were actively parsing content, but found a new header, break out - break; - } - if (!isHeader && !isContent) { - // we've found content for the first time, set this sentinel to `true` - isContent = true; - } - if (isContent) { - // we're actively parsing the first found block of content, add it to our list for later - contentLines.push(line); - } - } - return contentLines.join('\n').trim(); -}; -/** - * This function is responsible for reading the contents of all markdown files in a provided `usage` directory and - * returning their contents - * @param compilerCtx the current compiler context - * @param usagesDir the directory to read usage markdown files from - * @returns an object that maps the filename containing the usage example, to the file's contents. If an error occurs, - * an empty object is returned. - */ -const generateUsages = async (compilerCtx, usagesDir) => { - const rtn = {}; - try { - const usageFilePaths = await compilerCtx.fs.readdir(usagesDir); - const usages = {}; - await Promise.all(usageFilePaths.map(async (f) => { - if (!f.isFile) { - return; - } - const fileName = basename(f.relPath); - if (!fileName.toLowerCase().endsWith('.md')) { - return; - } - const parts = fileName.split('.'); - parts.pop(); - const key = parts.join('.'); - usages[key] = await compilerCtx.fs.readFile(f.absPath); - })); - Object.keys(usages) - .sort() - .forEach((key) => { - rtn[key] = usages[key]; - }); - } - catch (e) { } - return rtn; -}; -//# sourceMappingURL=generate-doc-data.js.map \ No newline at end of file diff --git a/build/compiler/docs/generate-doc-data.js.map b/build/compiler/docs/generate-doc-data.js.map deleted file mode 100644 index 42929ce10fa..00000000000 --- a/build/compiler/docs/generate-doc-data.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate-doc-data.js","sourceRoot":"","sources":["../../../src/compiler/docs/generate-doc-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,O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AAM,GAAoB,EAAE,CAAC;QAEnC,MAAM,OAAO,CAAC,GAAG,CACf,cAAc,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;YAC7B,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE;gBACb,OAAO;aACR;YAED,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YACrC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBAC3C,OAAO;aACR;YAED,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAClC,KAAK,CAAC,GAAG,EAAE,CAAC;YACZ,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAE5B,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,WAAW,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QACzD,CAAC,CAAC,CACH,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;aAChB,IAAI,EAAE;aACN,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACf,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;KACN;IAAC,OAAO,CAAC,EAAE,GAAE;IAEd,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/json/index.d.ts b/build/compiler/docs/json/index.d.ts deleted file mode 100644 index a0ad332b9ee..00000000000 --- a/build/compiler/docs/json/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const generateJsonDocs: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, docsData: d.JsonDocs, outputTargets: d.OutputTarget[]) => Promise; -export declare const writeDocsOutput: (compilerCtx: d.CompilerCtx, jsonOutput: d.OutputTargetDocsJson, jsonContent: string, typesContent: string) => Promise<[import("../..").FsWriteResults, any]>; diff --git a/build/compiler/docs/json/index.js b/build/compiler/docs/json/index.js deleted file mode 100644 index 26fac3356cd..00000000000 --- a/build/compiler/docs/json/index.js +++ /dev/null @@ -1,58 +0,0 @@ -import { isOutputTargetDocsJson, join } from '@utils'; -export const generateJsonDocs = async (config, compilerCtx, docsData, outputTargets) => { - const jsonOutputTargets = outputTargets.filter(isOutputTargetDocsJson); - if (jsonOutputTargets.length === 0) { - return; - } - const docsDtsPath = join(config.sys.getCompilerExecutingPath(), '..', '..', 'internal', 'stencil-public-docs.d.ts'); - let docsDts = await compilerCtx.fs.readFile(docsDtsPath); - // this file was written by dts-bundle-generator, which uses tabs for - // indentation. Instead, let's replace those with spaces! - docsDts = docsDts - .split('\n') - .map((line) => line.replace(/\t/g, ' ')) - .join('\n'); - const typesContent = ` -/** - * This is an autogenerated file created by the Stencil compiler. - * DO NOT MODIFY IT MANUALLY - */ -${docsDts} -declare const _default: JsonDocs; -export default _default; -`; - const json = { - ...docsData, - components: docsData.components.map((cmp) => ({ - filePath: cmp.filePath, - encapsulation: cmp.encapsulation, - tag: cmp.tag, - readme: cmp.readme, - docs: cmp.docs, - docsTags: cmp.docsTags, - usage: cmp.usage, - props: cmp.props, - methods: cmp.methods, - events: cmp.events, - listeners: cmp.listeners, - styles: cmp.styles, - slots: cmp.slots, - parts: cmp.parts, - dependents: cmp.dependents, - dependencies: cmp.dependencies, - dependencyGraph: cmp.dependencyGraph, - deprecation: cmp.deprecation, - })), - }; - const jsonContent = JSON.stringify(json, null, 2); - await Promise.all(jsonOutputTargets.map((jsonOutput) => { - return writeDocsOutput(compilerCtx, jsonOutput, jsonContent, typesContent); - })); -}; -export const writeDocsOutput = async (compilerCtx, jsonOutput, jsonContent, typesContent) => { - return Promise.all([ - compilerCtx.fs.writeFile(jsonOutput.file, jsonContent), - jsonOutput.typesFile ? compilerCtx.fs.writeFile(jsonOutput.typesFile, typesContent) : Promise.resolve(), - ]); -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/compiler/docs/json/index.js.map b/build/compiler/docs/json/index.js.map deleted file mode 100644 index e8ea11c3efa..00000000000 --- a/build/compiler/docs/json/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/compiler/docs/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAItD,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EACnC,MAAyB,EACzB,WAA0B,EAC1B,QAAoB,EACpB,aAA+B,EAC/B,EAAE;IACF,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACvE,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE;QAClC,OAAO;KACR;IACD,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,0BAA0B,CAAC,CAAC;IACpH,IAAI,OAAO,GAAG,MAAM,WAAW,CAAC,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACzD,qEAAqE;IACrE,yDAAyD;IACzD,OAAO,GAAG,OAAO;SACd,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;SACxC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,MAAM,YAAY,GAAG;;;;;EAKrB,OAAO;;;CAGR,CAAC;IAEA,MAAM,IAAI,GAAG;QACX,GAAG,QAAQ;QACX,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAC5C,QAAQ,EAAE,GAAG,CAAC,QAAQ;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CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,CAAE,OAAO,CAAC,OAAO,EAAU;KACjH,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/docs-util.d.ts b/build/compiler/docs/readme/docs-util.d.ts deleted file mode 100644 index b14bfd532ce..00000000000 --- a/build/compiler/docs/readme/docs-util.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare class MarkdownTable { - private rows; - addHeader(data: string[]): void; - addRow(data: string[], isHeader?: boolean): void; - toMarkdown(): string[]; -} diff --git a/build/compiler/docs/readme/docs-util.js b/build/compiler/docs/readme/docs-util.js deleted file mode 100644 index 6c6de90731f..00000000000 --- a/build/compiler/docs/readme/docs-util.js +++ /dev/null @@ -1,110 +0,0 @@ -export class MarkdownTable { - constructor() { - this.rows = []; - } - addHeader(data) { - this.addRow(data, true); - } - addRow(data, isHeader = false) { - const colData = []; - data.forEach((text) => { - const col = { - text: escapeMarkdownTableColumn(text), - width: text.length, - }; - colData.push(col); - }); - this.rows.push({ - columns: colData, - isHeader: isHeader, - }); - } - toMarkdown() { - return createTable(this.rows); - } -} -const escapeMarkdownTableColumn = (text) => { - text = text.replace(/\r?\n/g, ' '); - text = text.replace(/\|/g, '\\|'); - return text; -}; -const createTable = (rows) => { - const content = []; - if (rows.length === 0) { - return content; - } - normalizeColumCount(rows); - normalizeColumnWidth(rows); - const th = rows.find((r) => r.isHeader); - if (th) { - const headerRow = createRow(th); - content.push(headerRow); - content.push(createBorder(th)); - } - const tds = rows.filter((r) => !r.isHeader); - tds.forEach((td) => { - content.push(createRow(td)); - }); - return content; -}; -const createBorder = (th) => { - const border = { - columns: [], - isHeader: false, - }; - th.columns.forEach((c) => { - const borderCol = { - text: '', - width: c.width, - }; - while (borderCol.text.length < borderCol.width) { - borderCol.text += '-'; - } - border.columns.push(borderCol); - }); - return createRow(border); -}; -const createRow = (row) => { - const content = ['| ']; - row.columns.forEach((c) => { - content.push(c.text); - content.push(' | '); - }); - return content.join('').trim(); -}; -const normalizeColumCount = (rows) => { - let columnCount = 0; - rows.forEach((r) => { - if (r.columns.length > columnCount) { - columnCount = r.columns.length; - } - }); - rows.forEach((r) => { - while (r.columns.length < columnCount) { - r.columns.push({ - text: ``, - width: 0, - }); - } - }); -}; -const normalizeColumnWidth = (rows) => { - const columnCount = rows[0].columns.length; - for (let columnIndex = 0; columnIndex < columnCount; columnIndex++) { - let longestText = 0; - rows.forEach((r) => { - const col = r.columns[columnIndex]; - if (col.text.length > longestText) { - longestText = col.text.length; - } - }); - rows.forEach((r) => { - const col = r.columns[columnIndex]; - col.width = longestText; - while (col.text.length < longestText) { - col.text += ' '; - } - }); - } -}; -//# sourceMappingURL=docs-util.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/docs-util.js.map b/build/compiler/docs/readme/docs-util.js.map deleted file mode 100644 index 68b65ecd0c0..00000000000 --- a/build/compiler/docs/readme/docs-util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"docs-util.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/docs-util.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAa;IAA1B;QACU,SAAI,GAAc,EAAE,CAAC;IA0B/B,CAAC;IAxBC,SAAS,CAAC,IAAc;QACtB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,IAAc,EAAE,QAAQ,GAAG,KAAK;QACrC,MAAM,OAAO,GAAiB,EAAE,CAAC;QAEjC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACpB,MAAM,GAAG,GAAe;gBACtB,IAAI,EAAE,yBAAyB,CAAC,IAAI,CAAC;gBACrC,KAAK,EAAE,IAAI,CAAC,MAAM;aACnB,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;QAEH,IAAI,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C,MAAM,CAAC;SAChC;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QACjB,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,WAAW,EAAE;YACrC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;gBACb,IAAI,EAAE,EAAE;gBACR,KAAK,EAAE,CAAC;aACT,CAAC,CAAC;SACJ;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,IAAe,EAAE,EAAE;IAC/C,MAAM,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAE3C,KAAK,IAAI,WAAW,GAAG,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,WAAW,EAAE,EAAE;QAClE,IAAI,WAAW,GAAG,CAAC,CAAC;QAEpB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACjB,MAAM,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YACnC,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,WAAW,EAAE;gBACjC,WAAW,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;aAC/B;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACjB,MAAM,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YACnC,GAAG,CAAC,KAAK,GAAG,WAAW,CAAC;YACxB,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,WAAW,EAAE;gBACpC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC;aACjB;QACH,CAAC,CAAC,CAAC;KACJ;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/index.d.ts b/build/compiler/docs/readme/index.d.ts deleted file mode 100644 index 49f7fc2bde7..00000000000 --- a/build/compiler/docs/readme/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const generateReadmeDocs: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, docsData: d.JsonDocs, outputTargets: d.OutputTarget[]) => Promise; -export declare const strictCheckDocs: (config: d.ValidatedConfig, docsData: d.JsonDocs) => void; diff --git a/build/compiler/docs/readme/index.js b/build/compiler/docs/readme/index.js deleted file mode 100644 index 8d26228cf3c..00000000000 --- a/build/compiler/docs/readme/index.js +++ /dev/null @@ -1,40 +0,0 @@ -import { isOutputTargetDocsReadme } from '@utils'; -import { generateReadme } from './output-docs'; -export const generateReadmeDocs = async (config, compilerCtx, docsData, outputTargets) => { - const readmeOutputTargets = outputTargets.filter(isOutputTargetDocsReadme); - if (readmeOutputTargets.length === 0) { - return; - } - const strictCheck = readmeOutputTargets.some((o) => o.strict); - if (strictCheck) { - strictCheckDocs(config, docsData); - } - await Promise.all(docsData.components.map((cmpData) => { - return generateReadme(config, compilerCtx, readmeOutputTargets, cmpData, docsData.components); - })); -}; -export const strictCheckDocs = (config, docsData) => { - docsData.components.forEach((component) => { - component.props.forEach((prop) => { - if (!prop.docs && prop.deprecation === undefined) { - config.logger.warn(`Property "${prop.name}" of "${component.tag}" is not documented. ${component.filePath}`); - } - }); - component.methods.forEach((method) => { - if (!method.docs && method.deprecation === undefined) { - config.logger.warn(`Method "${method.name}" of "${component.tag}" is not documented. ${component.filePath}`); - } - }); - component.events.forEach((ev) => { - if (!ev.docs && ev.deprecation === undefined) { - config.logger.warn(`Event "${ev.event}" of "${component.tag}" is not documented. ${component.filePath}`); - } - }); - component.parts.forEach((ev) => { - if (ev.docs === '') { - config.logger.warn(`Part "${ev.name}" of "${component.tag}" is not documented. ${component.filePath}`); - } - }); - }); -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/index.js.map b/build/compiler/docs/readme/index.js.map deleted file mode 100644 index b39bf50c411..00000000000 --- a/build/compiler/docs/readme/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,MAAyB,EACzB,WAA0B,EAC1B,QAAoB,EACpB,aAA+B,EAC/B,EAAE;IACF,MAAM,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAC3E,IAAI,mBAAmB,CAAC,MAAM,KAAK,CAAC,EAAE;QACpC,OAAO;KACR;IACD,MAAM,WAAW,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9D,IAAI,WAAW,EAAE;QACf,eAAe,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;KACnC;IAED,MAAM,OAAO,CAAC,GAAG,CACf,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QAClC,OAAO,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IAChG,CAAC,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAyB,EAAE,QAAoB,EAAE,EAAE;IACjF,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;QACxC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC/B,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE;gBAChD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,SAAS,SAAS,CAAC,GAAG,wBAAwB,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;aAC9G;QACH,CAAC,CAAC,CAAC;QACH,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YACnC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,WAAW,KAAK,SAAS,EAAE;gBACpD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,CAAC,IAAI,SAAS,SAAS,CAAC,GAAG,wBAAwB,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;aAC9G;QACH,CAAC,CAAC,CAAC;QACH,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;YAC9B,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS,EAAE;gBAC5C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,SAAS,SAAS,CAAC,GAAG,wBAAwB,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;aAC1G;QACH,CAAC,CAAC,CAAC;QACH,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;YAC7B,IAAI,EAAE,CAAC,IAAI,KAAK,EAAE,EAAE;gBAClB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,SAAS,SAAS,CAAC,GAAG,wBAAwB,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;aACxG;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-css-props.d.ts b/build/compiler/docs/readme/markdown-css-props.d.ts deleted file mode 100644 index 9c8df939767..00000000000 --- a/build/compiler/docs/readme/markdown-css-props.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const stylesToMarkdown: (styles: d.JsonDocsStyle[]) => string[]; diff --git a/build/compiler/docs/readme/markdown-css-props.js b/build/compiler/docs/readme/markdown-css-props.js deleted file mode 100644 index 0fb5fde54af..00000000000 --- a/build/compiler/docs/readme/markdown-css-props.js +++ /dev/null @@ -1,19 +0,0 @@ -import { MarkdownTable } from './docs-util'; -export const stylesToMarkdown = (styles) => { - const content = []; - if (styles.length === 0) { - return content; - } - content.push(`## CSS Custom Properties`); - content.push(``); - const table = new MarkdownTable(); - table.addHeader(['Name', 'Description']); - styles.forEach((style) => { - table.addRow([`\`${style.name}\``, style.docs]); - }); - content.push(...table.toMarkdown()); - content.push(``); - content.push(``); - return content; -}; -//# sourceMappingURL=markdown-css-props.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-css-props.js.map b/build/compiler/docs/readme/markdown-css-props.js.map deleted file mode 100644 index ce75cb0485c..00000000000 --- a/build/compiler/docs/readme/markdown-css-props.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-css-props.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/markdown-css-props.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAyB,EAAE,EAAE;IAC5D,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACvB,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IACzC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,MAAM,KAAK,GAAG,IAAI,aAAa,EAAE,CAAC;IAClC,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAEzC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACvB,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,IAAI,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-dependencies.d.ts b/build/compiler/docs/readme/markdown-dependencies.d.ts deleted file mode 100644 index 188593cbb1a..00000000000 --- a/build/compiler/docs/readme/markdown-dependencies.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const depsToMarkdown: (cmp: d.JsonDocsComponent, cmps: d.JsonDocsComponent[]) => string[]; diff --git a/build/compiler/docs/readme/markdown-dependencies.js b/build/compiler/docs/readme/markdown-dependencies.js deleted file mode 100644 index c2f9936dc2d..00000000000 --- a/build/compiler/docs/readme/markdown-dependencies.js +++ /dev/null @@ -1,45 +0,0 @@ -import { normalizePath, relative } from '@utils'; -export const depsToMarkdown = (cmp, cmps) => { - const content = []; - const deps = Object.entries(cmp.dependencyGraph); - if (deps.length === 0) { - return content; - } - content.push(`## Dependencies`); - content.push(``); - if (cmp.dependents.length > 0) { - const usedBy = cmp.dependents.map((tag) => ' - ' + getCmpLink(cmp, tag, cmps)); - content.push(`### Used by`); - content.push(``); - content.push(...usedBy); - content.push(``); - } - if (cmp.dependencies.length > 0) { - const dependsOn = cmp.dependencies.map((tag) => '- ' + getCmpLink(cmp, tag, cmps)); - content.push(`### Depends on`); - content.push(``); - content.push(...dependsOn); - content.push(``); - } - content.push(`### Graph`); - content.push('```mermaid'); - content.push('graph TD;'); - deps.forEach(([key, deps]) => { - deps.forEach((dep) => { - content.push(` ${key} --> ${dep}`); - }); - }); - content.push(` style ${cmp.tag} fill:#f9f,stroke:#333,stroke-width:4px`); - content.push('```'); - content.push(``); - return content; -}; -const getCmpLink = (from, to, cmps) => { - const destCmp = cmps.find((c) => c.tag === to); - if (destCmp) { - const cmpRelPath = normalizePath(relative(from.dirPath, destCmp.dirPath)); - return `[${to}](${cmpRelPath})`; - } - return to; -}; -//# sourceMappingURL=markdown-dependencies.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-dependencies.js.map b/build/compiler/docs/readme/markdown-dependencies.js.map deleted file mode 100644 index 0812dff4aab..00000000000 --- a/build/compiler/docs/readme/markdown-dependencies.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-dependencies.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/markdown-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIjD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAwB,EAAE,IAA2B,EAAE,EAAE;IACtF,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACjD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACrB,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAChC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;QAE/E,OAAO,CAAC,IAAI,CAAC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,MAAM,UAAU,GAAG,CAAC,IAAyB,EAAE,EAAU,EAAE,IAA2B,EAAE,EAAE;IACxF,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;IAC/C,IAAI,OAAO,EAAE;QACX,MAAM,UAAU,GAAG,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;QAC1E,OAAO,IAAI,EAAE,KAAK,UAAU,GAAG,CAAC;KACjC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-events.d.ts b/build/compiler/docs/readme/markdown-events.d.ts deleted file mode 100644 index 76351f760e9..00000000000 --- a/build/compiler/docs/readme/markdown-events.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const eventsToMarkdown: (events: d.JsonDocsEvent[]) => string[]; diff --git a/build/compiler/docs/readme/markdown-events.js b/build/compiler/docs/readme/markdown-events.js deleted file mode 100644 index 93031f5f047..00000000000 --- a/build/compiler/docs/readme/markdown-events.js +++ /dev/null @@ -1,24 +0,0 @@ -import { MarkdownTable } from './docs-util'; -export const eventsToMarkdown = (events) => { - const content = []; - if (events.length === 0) { - return content; - } - content.push(`## Events`); - content.push(``); - const table = new MarkdownTable(); - table.addHeader(['Event', 'Description', 'Type']); - events.forEach((ev) => { - table.addRow([`\`${ev.event}\``, getDocsField(ev), `\`CustomEvent<${ev.detail}>\``]); - }); - content.push(...table.toMarkdown()); - content.push(``); - content.push(``); - return content; -}; -const getDocsField = (prop) => { - return `${prop.deprecation !== undefined - ? `**[DEPRECATED]** ${prop.deprecation}

` - : ''}${prop.docs}`; -}; -//# sourceMappingURL=markdown-events.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-events.js.map b/build/compiler/docs/readme/markdown-events.js.map deleted file mode 100644 index 3c43f973a7b..00000000000 --- a/build/compiler/docs/readme/markdown-events.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-events.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/markdown-events.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAyB,EAAE,EAAE;IAC5D,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACvB,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC1B,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,MAAM,KAAK,GAAG,IAAI,aAAa,EAAE,CAAC;IAElC,KAAK,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;IAElD,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;QACpB,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAAE,YAAY,CAAC,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IACvF,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,IAAqB,EAAE,EAAE;IAC7C,OAAO,GACL,IAAI,CAAC,WAAW,KAAK,SAAS;QAC5B,CAAC,CAAC,mDAAmD,IAAI,CAAC,WAAW,YAAY;QACjF,CAAC,CAAC,EACN,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-methods.d.ts b/build/compiler/docs/readme/markdown-methods.d.ts deleted file mode 100644 index 50a381e63f1..00000000000 --- a/build/compiler/docs/readme/markdown-methods.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const methodsToMarkdown: (methods: d.JsonDocsMethod[]) => string[]; diff --git a/build/compiler/docs/readme/markdown-methods.js b/build/compiler/docs/readme/markdown-methods.js deleted file mode 100644 index 59c38d1dac9..00000000000 --- a/build/compiler/docs/readme/markdown-methods.js +++ /dev/null @@ -1,42 +0,0 @@ -import { MarkdownTable } from './docs-util'; -export const methodsToMarkdown = (methods) => { - const content = []; - if (methods.length === 0) { - return content; - } - content.push(`## Methods`); - content.push(``); - methods.forEach((method) => { - content.push(`### \`${method.signature}\``); - content.push(``); - content.push(getDocsField(method)); - content.push(``); - if (method.parameters.length > 0) { - const parmsTable = new MarkdownTable(); - parmsTable.addHeader(['Name', 'Type', 'Description']); - method.parameters.forEach(({ name, type, docs }) => { - parmsTable.addRow(['`' + name + '`', '`' + type + '`', docs]); - }); - content.push(`#### Parameters`); - content.push(``); - content.push(...parmsTable.toMarkdown()); - content.push(``); - } - if (method.returns) { - content.push(`#### Returns`); - content.push(``); - content.push(`Type: \`${method.returns.type}\``); - content.push(``); - content.push(method.returns.docs); - content.push(``); - } - }); - content.push(``); - return content; -}; -const getDocsField = (prop) => { - return `${prop.deprecation !== undefined - ? `**[DEPRECATED]** ${prop.deprecation}

` - : ''}${prop.docs}`; -}; -//# sourceMappingURL=markdown-methods.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-methods.js.map b/build/compiler/docs/readme/markdown-methods.js.map deleted file mode 100644 index 655fccf7539..00000000000 --- a/build/compiler/docs/readme/markdown-methods.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-methods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AC;YACjB,OAAO,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC,CAAC;YACzC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAClB;QAED,IAAI,MAAM,CAAC,OAAO,EAAE;YAClB,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAC7B,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjB,OAAO,CAAC,IAAI,CAAC,WAAW,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC;YACjD,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAClC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAClB;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,IAAsB,EAAE,EAAE;IAC9C,OAAO,GACL,IAAI,CAAC,WAAW,KAAK,SAAS;QAC5B,CAAC,CAAC,mDAAmD,IAAI,CAAC,WAAW,YAAY;QACjF,CAAC,CAAC,EACN,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-overview.d.ts b/build/compiler/docs/readme/markdown-overview.d.ts deleted file mode 100644 index e2e955779a4..00000000000 --- a/build/compiler/docs/readme/markdown-overview.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Generate an 'Overview' section for a markdown file - * @param overview a component-level comment string to place in a markdown file - * @returns The generated Overview section. If the provided overview is empty, return an empty list - */ -export declare const overviewToMarkdown: (overview: string | undefined) => ReadonlyArray; diff --git a/build/compiler/docs/readme/markdown-overview.js b/build/compiler/docs/readme/markdown-overview.js deleted file mode 100644 index c660334d18a..00000000000 --- a/build/compiler/docs/readme/markdown-overview.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Generate an 'Overview' section for a markdown file - * @param overview a component-level comment string to place in a markdown file - * @returns The generated Overview section. If the provided overview is empty, return an empty list - */ -export const overviewToMarkdown = (overview) => { - if (!overview) { - return []; - } - const content = []; - content.push(`## Overview`); - content.push(''); - content.push(`${overview.trim()}`); - content.push(''); - return content; -}; -//# sourceMappingURL=markdown-overview.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-overview.js.map b/build/compiler/docs/readme/markdown-overview.js.map deleted file mode 100644 index d376bd857f7..00000000000 --- a/build/compiler/docs/readme/markdown-overview.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-overview.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/markdown-overview.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,QAA4B,EAAyB,EAAE;IACxF,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,EAAE,CAAC;KACX;IAED,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC5B,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,OAAO,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACnC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-parts.d.ts b/build/compiler/docs/readme/markdown-parts.d.ts deleted file mode 100644 index 3fa8646550c..00000000000 --- a/build/compiler/docs/readme/markdown-parts.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type * as d from '../../../declarations'; -/** - * Converts a list of Shadow Parts metadata to a table written in Markdown - * @param parts the Shadow parts metadata to convert - * @returns a list of strings that make up the Markdown table - */ -export declare const partsToMarkdown: (parts: d.JsonDocsPart[]) => ReadonlyArray; diff --git a/build/compiler/docs/readme/markdown-parts.js b/build/compiler/docs/readme/markdown-parts.js deleted file mode 100644 index efcc1a5bee4..00000000000 --- a/build/compiler/docs/readme/markdown-parts.js +++ /dev/null @@ -1,24 +0,0 @@ -import { MarkdownTable } from './docs-util'; -/** - * Converts a list of Shadow Parts metadata to a table written in Markdown - * @param parts the Shadow parts metadata to convert - * @returns a list of strings that make up the Markdown table - */ -export const partsToMarkdown = (parts) => { - const content = []; - if (parts.length === 0) { - return content; - } - content.push(`## Shadow Parts`); - content.push(``); - const table = new MarkdownTable(); - table.addHeader(['Part', 'Description']); - parts.forEach((style) => { - table.addRow([style.name === '' ? '' : `\`"${style.name}"\``, style.docs]); - }); - content.push(...table.toMarkdown()); - content.push(``); - content.push(``); - return content; -}; -//# sourceMappingURL=markdown-parts.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-parts.js.map b/build/compiler/docs/readme/markdown-parts.js.map deleted file mode 100644 index b9612fea142..00000000000 --- a/build/compiler/docs/readme/markdown-parts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-parts.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/markdown-parts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAyB,EAAE;IAChF,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAChC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,MAAM,KAAK,GAAG,IAAI,aAAa,EAAE,CAAC;IAClC,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAEzC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACtB,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-props.d.ts b/build/compiler/docs/readme/markdown-props.d.ts deleted file mode 100644 index 49e26677f02..00000000000 --- a/build/compiler/docs/readme/markdown-props.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const propsToMarkdown: (props: d.JsonDocsProp[]) => string[]; diff --git a/build/compiler/docs/readme/markdown-props.js b/build/compiler/docs/readme/markdown-props.js deleted file mode 100644 index 56c17e739c0..00000000000 --- a/build/compiler/docs/readme/markdown-props.js +++ /dev/null @@ -1,36 +0,0 @@ -import { MarkdownTable } from './docs-util'; -export const propsToMarkdown = (props) => { - const content = []; - if (props.length === 0) { - return content; - } - content.push(`## Properties`); - content.push(``); - const table = new MarkdownTable(); - table.addHeader(['Property', 'Attribute', 'Description', 'Type', 'Default']); - props.forEach((prop) => { - table.addRow([ - getPropertyField(prop), - getAttributeField(prop), - getDocsField(prop), - `\`${prop.type}\``, - `\`${prop.default}\``, - ]); - }); - content.push(...table.toMarkdown()); - content.push(``); - content.push(``); - return content; -}; -const getPropertyField = (prop) => { - return `\`${prop.name}\`${prop.required ? ' _(required)_' : ''}`; -}; -const getAttributeField = (prop) => { - return prop.attr ? `\`${prop.attr}\`` : '--'; -}; -const getDocsField = (prop) => { - return `${prop.deprecation !== undefined - ? `**[DEPRECATED]** ${prop.deprecation}

` - : ''}${prop.docs}`; -}; -//# sourceMappingURL=markdown-props.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-props.js.map b/build/compiler/docs/readme/markdown-props.js.map deleted file mode 100644 index 57a5a8dec99..00000000000 --- a/build/compiler/docs/readme/markdown-props.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-props.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/markdown-props.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAE,EAAE;IACzD,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC9B,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,MAAM,KAAK,GAAG,IAAI,aAAa,EAAE,CAAC;IAElC,KAAK,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;IAE7E,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,KAAK,CAAC,MAAM,CAAC;YACX,gBAAgB,CAAC,IAAI,CAAC;YACtB,iBAAiB,CAAC,IAAI,CAAC;YACvB,YAAY,CAAC,IAAI,CAAC;YAClB,KAAK,IAAI,CAAC,IAAI,IAAI;YAClB,KAAK,IAAI,CAAC,OAAO,IAAI;SACtB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAoB,EAAE,EAAE;IAChD,OAAO,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACnE,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,IAAoB,EAAE,EAAE;IACjD,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/C,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,IAAoB,EAAE,EAAE;IAC5C,OAAO,GACL,IAAI,CAAC,WAAW,KAAK,SAAS;QAC5B,CAAC,CAAC,mDAAmD,IAAI,CAAC,WAAW,YAAY;QACjF,CAAC,CAAC,EACN,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-slots.d.ts b/build/compiler/docs/readme/markdown-slots.d.ts deleted file mode 100644 index 3ecf86befba..00000000000 --- a/build/compiler/docs/readme/markdown-slots.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type * as d from '../../../declarations'; -/** - * Converts a list of Slots metadata to a table written in Markdown - * @param slots the Slots metadata to convert - * @returns a list of strings that make up the Markdown table - */ -export declare const slotsToMarkdown: (slots: d.JsonDocsSlot[]) => ReadonlyArray; diff --git a/build/compiler/docs/readme/markdown-slots.js b/build/compiler/docs/readme/markdown-slots.js deleted file mode 100644 index 56004139887..00000000000 --- a/build/compiler/docs/readme/markdown-slots.js +++ /dev/null @@ -1,24 +0,0 @@ -import { MarkdownTable } from './docs-util'; -/** - * Converts a list of Slots metadata to a table written in Markdown - * @param slots the Slots metadata to convert - * @returns a list of strings that make up the Markdown table - */ -export const slotsToMarkdown = (slots) => { - const content = []; - if (slots.length === 0) { - return content; - } - content.push(`## Slots`); - content.push(``); - const table = new MarkdownTable(); - table.addHeader(['Slot', 'Description']); - slots.forEach((style) => { - table.addRow([style.name === '' ? '' : `\`"${style.name}"\``, style.docs]); - }); - content.push(...table.toMarkdown()); - content.push(``); - content.push(``); - return content; -}; -//# sourceMappingURL=markdown-slots.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-slots.js.map b/build/compiler/docs/readme/markdown-slots.js.map deleted file mode 100644 index 17b55420afd..00000000000 --- a/build/compiler/docs/readme/markdown-slots.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-slots.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/markdown-slots.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAyB,EAAE;IAChF,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACzB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,MAAM,KAAK,GAAG,IAAI,aAAa,EAAE,CAAC;IAClC,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAEzC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACtB,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-usage.d.ts b/build/compiler/docs/readme/markdown-usage.d.ts deleted file mode 100644 index 5303fb73e10..00000000000 --- a/build/compiler/docs/readme/markdown-usage.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const usageToMarkdown: (usages: d.JsonDocsUsage) => string[]; -export declare const mergeUsages: (usages: d.JsonDocsUsage) => { - name: string; - text: string; -}[]; diff --git a/build/compiler/docs/readme/markdown-usage.js b/build/compiler/docs/readme/markdown-usage.js deleted file mode 100644 index 8af35eb1d51..00000000000 --- a/build/compiler/docs/readme/markdown-usage.js +++ /dev/null @@ -1,38 +0,0 @@ -import { toTitleCase } from '@utils'; -export const usageToMarkdown = (usages) => { - const content = []; - const merged = mergeUsages(usages); - if (merged.length === 0) { - return content; - } - content.push(`## Usage`); - merged.forEach(({ name, text }) => { - content.push(''); - content.push(`### ${toTitleCase(name)}`); - content.push(''); - content.push(text); - content.push(''); - }), - content.push(''); - content.push(''); - return content; -}; -export const mergeUsages = (usages) => { - const keys = Object.keys(usages); - const map = new Map(); - keys.forEach((key) => { - const usage = usages[key].trim(); - const array = map.get(usage) || []; - array.push(key); - map.set(usage, array); - }); - const merged = []; - map.forEach((value, key) => { - merged.push({ - name: value.join(' / '), - text: key, - }); - }); - return merged; -}; -//# sourceMappingURL=markdown-usage.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/markdown-usage.js.map b/build/compiler/docs/readme/markdown-usage.js.map deleted file mode 100644 index 126ab1dadce..00000000000 --- a/build/compiler/docs/readme/markdown-usage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-usage.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/markdown-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAIrC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAuB,EAAE,EAAE;IACzD,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IACnC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACvB,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAEzB,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;QAChC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,OAAO,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACzC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnB,CAAC,CAAC;QACA,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAuB,EAAE,EAAE;IACrD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACjC,MAAM,GAAG,GAAG,IAAI,GAAG,EAAoB,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QACjC,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChB,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;IACH,MAAM,MAAM,GAAqC,EAAE,CAAC;IACpD,GAAG,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACzB,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;YACvB,IAAI,EAAE,GAAG;SACV,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/readme/output-docs.d.ts b/build/compiler/docs/readme/output-docs.d.ts deleted file mode 100644 index 6bda9c674df..00000000000 --- a/build/compiler/docs/readme/output-docs.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as d from '../../../declarations'; -export declare const generateReadme: (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, readmeOutputs: d.OutputTargetDocsReadme[], docsData: d.JsonDocsComponent, cmps: d.JsonDocsComponent[]) => Promise; -export declare const generateMarkdown: (userContent: string, cmp: d.JsonDocsComponent, cmps: d.JsonDocsComponent[], readmeOutput: d.OutputTargetDocsReadme) => string; diff --git a/build/compiler/docs/readme/output-docs.js b/build/compiler/docs/readme/output-docs.js deleted file mode 100644 index 0fc798ffb51..00000000000 --- a/build/compiler/docs/readme/output-docs.js +++ /dev/null @@ -1,65 +0,0 @@ -import { join, relative } from '@utils'; -import { AUTO_GENERATE_COMMENT } from '../constants'; -import { stylesToMarkdown } from './markdown-css-props'; -import { depsToMarkdown } from './markdown-dependencies'; -import { eventsToMarkdown } from './markdown-events'; -import { methodsToMarkdown } from './markdown-methods'; -import { overviewToMarkdown } from './markdown-overview'; -import { partsToMarkdown } from './markdown-parts'; -import { propsToMarkdown } from './markdown-props'; -import { slotsToMarkdown } from './markdown-slots'; -import { usageToMarkdown } from './markdown-usage'; -export const generateReadme = async (config, compilerCtx, readmeOutputs, docsData, cmps) => { - const isUpdate = !!docsData.readme; - const userContent = isUpdate ? docsData.readme : getDefaultReadme(docsData); - await Promise.all(readmeOutputs.map(async (readmeOutput) => { - if (readmeOutput.dir) { - const readmeContent = generateMarkdown(userContent, docsData, cmps, readmeOutput); - const relPath = relative(config.srcDir, docsData.readmePath); - const absPath = join(readmeOutput.dir, relPath); - const results = await compilerCtx.fs.writeFile(absPath, readmeContent); - if (results.changedContent) { - if (isUpdate) { - config.logger.info(`updated readme docs: ${docsData.tag}`); - } - else { - config.logger.info(`created readme docs: ${docsData.tag}`); - } - } - } - })); -}; -export const generateMarkdown = (userContent, cmp, cmps, readmeOutput) => { - //If the readmeOutput.dependencies is true or undefined the dependencies will be generated. - const dependencies = readmeOutput.dependencies !== false ? depsToMarkdown(cmp, cmps) : []; - return [ - userContent, - AUTO_GENERATE_COMMENT, - '', - '', - ...getDocsDeprecation(cmp), - ...overviewToMarkdown(cmp.overview), - ...usageToMarkdown(cmp.usage), - ...propsToMarkdown(cmp.props), - ...eventsToMarkdown(cmp.events), - ...methodsToMarkdown(cmp.methods), - ...slotsToMarkdown(cmp.slots), - ...partsToMarkdown(cmp.parts), - ...stylesToMarkdown(cmp.styles), - ...dependencies, - `----------------------------------------------`, - '', - readmeOutput.footer, - '', - ].join('\n'); -}; -const getDocsDeprecation = (cmp) => { - if (cmp.deprecation !== undefined) { - return [`> **[DEPRECATED]** ${cmp.deprecation}`, '']; - } - return []; -}; -const getDefaultReadme = (docsData) => { - return [`# ${docsData.tag}`, '', '', ''].join('\n'); -}; -//# sourceMappingURL=output-docs.js.map \ No newline at end of file diff --git a/build/compiler/docs/readme/output-docs.js.map b/build/compiler/docs/readme/output-docs.js.map deleted file mode 100644 index 7c4374e2667..00000000000 --- a/build/compiler/docs/readme/output-docs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"output-docs.js","sourceRoot":"","sources":["../../../../src/compiler/docs/readme/output-docs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,MAAyB,EACzB,WAA0B,EAC1B,aAAyC,EACzC,QAA6B,EAC7B,IAA2B,EAC3B,EAAE;IACF,MAAM,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;IACnC,MAAM,WAAW,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAE5E,MAAM,OAAO,CAAC,GAAG,CACf,aAAa,CAAC,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE;QACvC,IAAI,YAAY,CAAC,GAAG,EAAE;YACpB,MAAM,aAAa,GAAG,gBA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B,CAAC,GAAG,CAAC,OAAO,CAAC;QACjC,GAAG,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC;QAC7B,GAAG,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC;QAC7B,GAAG,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC;QAC/B,GAAG,YAAY;QACf,gDAAgD;QAChD,EAAE;QACF,YAAY,CAAC,MAAM;QACnB,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,GAAwB,EAAE,EAAE;IACtD,IAAI,GAAG,CAAC,WAAW,KAAK,SAAS,EAAE;QACjC,OAAO,CAAC,sBAAsB,GAAG,CAAC,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;KACtD;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,QAA6B,EAAE,EAAE;IACzD,OAAO,CAAC,KAAK,QAAQ,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/style-docs.d.ts b/build/compiler/docs/style-docs.d.ts deleted file mode 100644 index 397260072fe..00000000000 --- a/build/compiler/docs/style-docs.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Parse CSS docstrings that Stencil supports, as documented here: - * https://stenciljs.com/docs/docs-json#css-variables - * - * Docstrings found in the supplied style text will be added to the - * `styleDocs` param - * - * @param styleDocs the array to hold formatted CSS docstrings - * @param styleText the CSS text we're working with - */ -export declare function parseStyleDocs(styleDocs: d.StyleDoc[], styleText: string | null): void; diff --git a/build/compiler/docs/style-docs.js b/build/compiler/docs/style-docs.js deleted file mode 100644 index fe033e26529..00000000000 --- a/build/compiler/docs/style-docs.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Parse CSS docstrings that Stencil supports, as documented here: - * https://stenciljs.com/docs/docs-json#css-variables - * - * Docstrings found in the supplied style text will be added to the - * `styleDocs` param - * - * @param styleDocs the array to hold formatted CSS docstrings - * @param styleText the CSS text we're working with - */ -export function parseStyleDocs(styleDocs, styleText) { - if (typeof styleText !== 'string') { - return; - } - let startIndex; - while ((startIndex = styleText.indexOf(CSS_DOC_START)) > -1) { - styleText = styleText.substring(startIndex + CSS_DOC_START.length); - const endIndex = styleText.indexOf(CSS_DOC_END); - if (endIndex === -1) { - break; - } - const comment = styleText.substring(0, endIndex); - parseCssComment(styleDocs, comment); - styleText = styleText.substring(endIndex + CSS_DOC_END.length); - } -} -/** - * Parse a CSS comment string and insert it into the provided array of - * style docstrings. - * - * @param styleDocs an array which will be modified with the docstring - * @param comment the comment string - */ -function parseCssComment(styleDocs, comment) { - /** - * @prop --max-width: Max width of the alert - */ - // (the above is an example of what these comments might look like) - const lines = comment.split(/\r?\n/).map((line) => { - line = line.trim(); - while (line.startsWith('*')) { - line = line.substring(1).trim(); - } - return line; - }); - comment = lines.join(' ').replace(/\t/g, ' ').trim(); - while (comment.includes(' ')) { - comment = comment.replace(' ', ' '); - } - const docs = comment.split(CSS_PROP_ANNOTATION); - docs.forEach((d) => { - const doc = d.trim(); - if (!doc.startsWith(`--`)) { - return; - } - const splt = doc.split(`:`); - const cssDoc = { - name: splt[0].trim(), - docs: (splt.shift() && splt.join(`:`)).trim(), - annotation: 'prop', - }; - if (!styleDocs.some((c) => c.name === cssDoc.name && c.annotation === 'prop')) { - styleDocs.push(cssDoc); - } - }); -} -/** - * Opening syntax for a CSS docstring - */ -const CSS_DOC_START = '/**'; -/** - * Closing syntax for a CSS docstring - */ -const CSS_DOC_END = '*/'; -/** - * The `@prop` annotation we support within CSS docstrings - */ -const CSS_PROP_ANNOTATION = '@prop'; -//# sourceMappingURL=style-docs.js.map \ No newline at end of file diff --git a/build/compiler/docs/style-docs.js.map b/build/compiler/docs/style-docs.js.map deleted file mode 100644 index c4c44a43a3b..00000000000 --- a/build/compiler/docs/style-docs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"style-docs.js","sourceRoot":"","sources":["../../../src/compiler/docs/style-docs.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAAC,SAAuB,EAAE,SAAwB;IAC9E,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;QACjC,OAAO;KACR;IAED,IAAI,UAAkB,CAAC;IACvB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE;QAC3D,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;QAEnE,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAChD,IAAI,QAAQ,KAAK,CAAC,CAAC,EAAE;YACnB,MAAM;SACP;QAED,MAAM,OAAO,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;QACjD,eAAe,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAEpC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;KAChE;AACH,CAAC;AAED;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,SAAuB,EAAE,OAAe;IAC/D;;OAEG;IACH,mEAAmE;IAEnE,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAChD,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAEnB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;YAC3B,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SACjC;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AmB,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/test/docs-util.spec.d.ts b/build/compiler/docs/test/docs-util.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/docs/test/docs-util.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/docs/test/docs-util.spec.js b/build/compiler/docs/test/docs-util.spec.js deleted file mode 100644 index d402d46238c..00000000000 --- a/build/compiler/docs/test/docs-util.spec.js +++ /dev/null @@ -1,44 +0,0 @@ -import { MarkdownTable } from '../../docs/readme/docs-util'; -describe('markdown-table', () => { - it('header', () => { - const t = new MarkdownTable(); - t.addHeader(['Column 1', 'Column 22', 'Column\n333']); - t.addRow(['Text 1', 'Text 2']); - const o = t.toMarkdown(); - expect(o).toEqual([ - '| Column 1 | Column 22 | Column 333 |', - '| -------- | --------- | ---------- |', - '| Text 1 | Text 2 | |', - ]); - }); - it('longest column', () => { - const t = new MarkdownTable(); - t.addRow(['Text aa', 'Text b', 'Text c']); - t.addRow(['Text a', 'Text bb', 'Text c']); - t.addRow(['Text a', 'Text bb', 'Text cc']); - const o = t.toMarkdown(); - expect(o).toEqual([ - '| Text aa | Text b | Text c |', - '| Text a | Text bb | Text c |', - '| Text a | Text bb | Text cc |', - ]); - }); - it('3 columns', () => { - const t = new MarkdownTable(); - t.addRow(['Text 1', 'Text 2', 'Text 3']); - const o = t.toMarkdown(); - expect(o).toEqual(['| Text 1 | Text 2 | Text 3 |']); - }); - it('one column', () => { - const t = new MarkdownTable(); - t.addRow(['Text']); - const o = t.toMarkdown(); - expect(o).toEqual(['| Text |']); - }); - it('do nothing', () => { - const t = new MarkdownTable(); - const o = t.toMarkdown(); - expect(o).toEqual([]); - }); -}); -//# sourceMappingURL=docs-util.spec.js.map \ No newline at end of file diff --git a/build/compiler/docs/test/docs-util.spec.js.map b/build/compiler/docs/test/docs-util.spec.js.map deleted file mode 100644 index b3e0879c26a..00000000000 --- a/build/compiler/doc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AW,EAAE,GAAG,EAAE;QACnB,MAAM,CAAC,GAAG,IAAI,aAAa,EAAE,CAAC;QAC9B,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;QACzC,MAAM,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE;QACpB,MAAM,CAAC,GAAG,IAAI,aAAa,EAAE,CAAC;QAC9B,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QACnB,MAAM,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE;QACpB,MAAM,CAAC,GAAG,IAAI,aAAa,EAAE,CAAC;QAC9B,MAAM,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/test/generate-doc-data.spec.d.ts b/build/compiler/docs/test/generate-doc-data.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/docs/test/generate-doc-data.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/docs/test/generate-doc-data.spec.js b/build/compiler/docs/test/generate-doc-data.spec.js deleted file mode 100644 index 84dd7523635..00000000000 --- a/build/compiler/docs/test/generate-doc-data.spec.js +++ /dev/null @@ -1,160 +0,0 @@ -import { mockBuildCtx, mockCompilerCtx, mockModule, mockValidatedConfig } from '@stencil/core/testing'; -import { getComponentsFromModules } from '@utils'; -import { stubComponentCompilerMeta } from '../../types/tests/ComponentCompilerMeta.stub'; -import { AUTO_GENERATE_COMMENT } from '../constants'; -import { generateDocData } from '../generate-doc-data'; -describe('generate-doc-data', () => { - describe('getDocsComponents', () => { - let moduleCmpWithJsdoc; - let moduleCmpNoJsdoc; - beforeEach(() => { - moduleCmpWithJsdoc = mockModule({ - cmps: [ - stubComponentCompilerMeta({ - docs: { - tags: [], - text: 'This is the overview of `my-component`', - }, - }), - ], - }); - moduleCmpNoJsdoc = mockModule({ - cmps: [ - stubComponentCompilerMeta({ - docs: { - tags: [], - text: '', - }, - }), - ], - }); - }); - /** - * Setup function for the {@link generateDocData} function exported by the module under test - * @param moduleMap a map of {@link d.ModuleMap} entities to add to the returned compiler and build contexts - * @returns the arguments required to invoke the method under test - */ - const setup = (moduleMap) => { - const validatedConfig = mockValidatedConfig(); - const compilerCtx = mockCompilerCtx(validatedConfig); - compilerCtx.moduleMap = moduleMap; - const modules = Array.from(compilerCtx.moduleMap.values()); - const buildCtx = mockBuildCtx(validatedConfig, compilerCtx); - buildCtx.moduleFiles = modules; - buildCtx.components = getComponentsFromModules(modules); - return { validatedConfig, compilerCtx, buildCtx }; - }; - describe('component JSDoc overview', () => { - it("takes the value from the component's JSDoc", async () => { - const moduleMap = new Map(); - moduleMap.set('path/to/component.tsx', moduleCmpWithJsdoc); - const { validatedConfig, compilerCtx, buildCtx } = setup(moduleMap); - const generatedDocData = await generateDocData(validatedConfig, compilerCtx, buildCtx); - expect(generatedDocData.components).toHaveLength(1); - const componentDocData = generatedDocData.components[0]; - expect(componentDocData.overview).toBe('This is the overview of `my-component`'); - }); - it('sets the value to the empty string when there is no JSDoc', async () => { - const moduleMap = new Map(); - moduleMap.set('path/to/component.tsx', moduleCmpNoJsdoc); - const { validatedConfig, compilerCtx, buildCtx } = setup(moduleMap); - const generatedDocData = await generateDocData(validatedConfig, compilerCtx, buildCtx); - expect(generatedDocData.components).toHaveLength(1); - const componentDocData = generatedDocData.components[0]; - expect(componentDocData.overview).toBe(''); - }); - }); - describe('docs content', () => { - it("sets the field's contents to the jsdoc text if present", async () => { - const moduleMap = new Map(); - moduleMap.set('path/to/component.tsx', moduleCmpWithJsdoc); - const { validatedConfig, compilerCtx, buildCtx } = setup(moduleMap); - const generatedDocData = await generateDocData(validatedConfig, compilerCtx, buildCtx); - expect(generatedDocData.components).toHaveLength(1); - const componentDocData = generatedDocData.components[0]; - expect(componentDocData.docs).toBe('This is the overview of `my-component`'); - }); - it("sets the field's contents to an empty string if neither the readme, nor jsdoc are set", async () => { - const moduleMap = new Map(); - moduleMap.set('path/to/component.tsx', moduleCmpNoJsdoc); - const { validatedConfig, compilerCtx, buildCtx } = setup(moduleMap); - const generatedDocData = await generateDocData(validatedConfig, compilerCtx, buildCtx); - expect(generatedDocData.components).toHaveLength(1); - const componentDocData = generatedDocData.components[0]; - expect(componentDocData.docs).toBe(''); - }); - it("sets the field's contents to an empty string if the readme doesn't contain the autogenerated comment", async () => { - const moduleMap = new Map(); - moduleMap.set('path/to/component.tsx', moduleCmpNoJsdoc); - const { validatedConfig, compilerCtx, buildCtx } = setup(moduleMap); - await compilerCtx.fs.writeFile('readme.md', 'this is manually generated user content'); - const generatedDocData = await generateDocData(validatedConfig, compilerCtx, buildCtx); - expect(generatedDocData.components).toHaveLength(1); - const componentDocData = generatedDocData.components[0]; - expect(componentDocData.docs).toBe(''); - }); - it("sets the field's contents to manually generated content when the autogenerated comment is present", async () => { - const moduleMap = new Map(); - moduleMap.set('path/to/component.tsx', moduleCmpNoJsdoc); - const { validatedConfig, compilerCtx, buildCtx } = setup(moduleMap); - await compilerCtx.fs.writeFile('readme.md', `this is manually generated user content\n${AUTO_GENERATE_COMMENT}\nauto-generated content`); - const generatedDocData = await generateDocData(validatedConfig, compilerCtx, buildCtx); - expect(generatedDocData.components).toHaveLength(1); - const componentDocData = generatedDocData.components[0]; - expect(componentDocData.docs).toBe('this is manually generated user content'); - }); - it("sets the field's contents to a subset of the manually generated content", async () => { - const moduleMap = new Map(); - moduleMap.set('path/to/component.tsx', moduleCmpNoJsdoc); - const { validatedConfig, compilerCtx, buildCtx } = setup(moduleMap); - const readmeContent = ` -this is manually generated user content - -# user header -user content - -# another user header -more user content - -${AUTO_GENERATE_COMMENT} - -#some-header - -auto-generated content -`; - await compilerCtx.fs.writeFile('readme.md', readmeContent); - const generatedDocData = await generateDocData(validatedConfig, compilerCtx, buildCtx); - expect(generatedDocData.components).toHaveLength(1); - const componentDocData = generatedDocData.components[0]; - expect(componentDocData.docs).toBe('this is manually generated user content'); - }); - it("sets the field's contents to a an empty string when the manually generated content starts with a '#'", async () => { - const moduleMap = new Map(); - moduleMap.set('path/to/component.tsx', moduleCmpNoJsdoc); - const { validatedConfig, compilerCtx, buildCtx } = setup(moduleMap); - const readmeContent = ` -# header that leads to skipping -this is manually generated user content - -# user header -user content - -# another user header -more user content - -${AUTO_GENERATE_COMMENT} - -#some-header - -auto-generated content -`; - await compilerCtx.fs.writeFile('readme.md', readmeContent); - const generatedDocData = await generateDocData(validatedConfig, compilerCtx, buildCtx); - expect(generatedDocData.components).toHaveLength(1); - const componentDocData = generatedDocData.components[0]; - expect(componentDocData.docs).toBe(''); - }); - }); - }); -}); -//# sourceMappingURL=generate-doc-data.spec.js.map \ No newline at end of file diff --git a/build/compiler/docs/test/generate-doc-data.spec.js.map b/build/compiler/docs/test/generate-doc-data.spec.js.map deleted file mode 100644 index d11a1b5cbe7..00000000000 --- a/build/compiler/docs/test/generate-doc-data.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate-doc-data.spec.js","sourceRoot":"","sources":["../../../../src/compiler/docs/test/generate-doc-data.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvG,OAAO,EAAE,wBA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BACzC,SAAS,CAAC,GAAG,CAAC,uBAAuB,EAAE,gBAAgB,CAAC,CAAC;gBACzD,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;gBAEpE,MAAM,aAAa,GAAG;;;;;;;;;;EAU5B,qBAAqB;;;;;CAKtB,CAAC;gBACM,MAAM,WAAW,CAAC,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;gBAE3D,MAAM,gBAAgB,GAAG,MAAM,eAAe,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;gBAEvF,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;gBACpD,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBACxD,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACzC,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/test/markdown-overview.spec.d.ts b/build/compiler/docs/test/markdown-overview.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/docs/test/markdown-overview.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/docs/test/markdown-overview.spec.js b/build/compiler/docs/test/markdown-overview.spec.js deleted file mode 100644 index 5baedd7192a..00000000000 --- a/build/compiler/docs/test/markdown-overview.spec.js +++ /dev/null @@ -1,43 +0,0 @@ -import { overviewToMarkdown } from '../readme/markdown-overview'; -describe('markdown-overview', () => { - describe('overviewToMarkdown', () => { - it('returns no overview if no docs exist', () => { - const generatedOverview = overviewToMarkdown('').join('\n'); - expect(generatedOverview).toBe(''); - }); - it('generates a single line overview', () => { - const generatedOverview = overviewToMarkdown('This is a custom button component').join('\n'); - expect(generatedOverview).toBe(`## Overview - -This is a custom button component -`); - }); - it('generates a multi-line overview', () => { - const description = `This is a custom button component. -It is to be used throughout the design system. - -This is a comment followed by a newline. -`; - const generatedOverview = overviewToMarkdown(description).join('\n'); - expect(generatedOverview).toBe(`## Overview - -This is a custom button component. -It is to be used throughout the design system. - -This is a comment followed by a newline. -`); - }); - it('trims all leading newlines & leaves one at the end', () => { - const description = ` -This is a custom button component. - -`; - const generatedOverview = overviewToMarkdown(description).join('\n'); - expect(generatedOverview).toBe(`## Overview - -This is a custom button component. -`); - }); - }); -}); -//# sourceMappingURL=markdown-overview.spec.js.map \ No newline at end of file diff --git a/build/compiler/docs/test/markdown-overview.spec.js.map b/build/compiler/docs/test/markdown-overview.spec.js.map deleted file mode 100644 index 899b44de71f..00000000000 --- a/build/compiler/docs/test/markdown-overview.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-overview.spec.js","sourceRoot":"","sources":["../../../../src/compiler/docs/test/markdown-overview.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;YAC9C,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAE5D,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;YAC1C,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,mCAAmC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAE7F,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC;;;CAGpC,CAAC,CAAC;QACC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;YACzC,MAAM,WAAW,GAAG;;;;CAIzB,CAAC;YACI,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAErE,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC;;;;;;CAMpC,CAAC,CAAC;QACC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;YAC5D,MAAM,WAAW,GAAG;;;CAGzB,CAAC;YACI,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAErE,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC;;;CAGpC,CAAC,CAAC;QACC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/test/markdown-props.spec.d.ts b/build/compiler/docs/test/markdown-props.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/docs/test/markdown-props.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/docs/test/markdown-props.spec.js b/build/compiler/docs/test/markdown-props.spec.js deleted file mode 100644 index dbde25db824..00000000000 --- a/build/compiler/docs/test/markdown-props.spec.js +++ /dev/null @@ -1,42 +0,0 @@ -import { propsToMarkdown } from '../../docs/readme/markdown-props'; -describe('markdown props', () => { - it('advanced union types', () => { - const markdown = propsToMarkdown([ - { - name: 'hello', - attr: 'hello', - docs: 'This is a prop', - default: 'false', - type: 'boolean | string', - mutable: false, - optional: false, - required: false, - reflectToAttr: false, - docsTags: [], - values: [], - }, - { - name: 'hello', - attr: undefined, - docs: 'This is a prop', - default: 'false', - type: 'boolean | string', - mutable: false, - optional: false, - required: false, - reflectToAttr: false, - docsTags: [], - values: [], - }, - ]).join('\n'); - expect(markdown).toEqual(`## Properties - -| Property | Attribute | Description | Type | Default | -| -------- | --------- | -------------- | ------------------- | ------- | -| \`hello\` | \`hello\` | This is a prop | \`boolean \\| string\` | \`false\` | -| \`hello\` | -- | This is a prop | \`boolean \\| string\` | \`false\` | - -`); - }); -}); -//# sourceMappingURL=markdown-props.spec.js.map \ No newline at end of file diff --git a/build/compiler/docs/test/markdown-props.spec.js.map b/build/compiler/docs/test/markdown-props.spec.js.map deleted file mode 100644 index 43b4629ea5c..00000000000 --- a/build/compiler/docs/test/markdown-props.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"markdown-props.spec.js","sourceRoot":"","sources":["../../../../src/compiler/docs/test/markdown-props.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC9B,MAAM,QAAQ,GAAG,eAAe,CAAC;YAC/B;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,gBAAgB;gBACtB,OAAO,EAAE,OAAO;gBAChB,IAAI,EAAE,kBAAkB;gBACxB,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,KAAK;gBACf,QAAQ,EAAE,KAAK;gBACf,aAAa,EAAE,KAAK;gBACpB,QAAQ,EAAE,EAAE;gBACZ,MAAM,EAAE,EAAE;aACX;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,gBAAgB;gBACtB,OAAO,EAAE,OAAO;gBAChB,IAAI,EAAE,kBAAkB;gBACxB,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,KAAK;gBACf,QAAQ,EAAE,KAAK;gBACf,aAAa,EAAE,KAAK;gBACpB,QAAQ,EAAE,EAAE;gBACZ,MAAM,EAAE,EAAE;aACX;SACF,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;;;;;;;CAO5B,CAAC,CAAC;IACD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/test/style-docs.spec.d.ts b/build/compiler/docs/test/style-docs.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/compiler/docs/test/style-docs.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/compiler/docs/test/style-docs.spec.js b/build/compiler/docs/test/style-docs.spec.js deleted file mode 100644 index 1ce9cba80ef..00000000000 --- a/build/compiler/docs/test/style-docs.spec.js +++ /dev/null @@ -1,126 +0,0 @@ -import { parseStyleDocs } from '../style-docs'; -describe('style-docs', () => { - let styleDocs; - beforeEach(() => { - styleDocs = []; - }); - it('no docs', () => { - const styleText = ` - /** - * @prop --max-width - */ - - body { - color: red; - } - `; - parseStyleDocs(styleDocs, styleText); - expect(styleDocs).toEqual([{ name: `--max-width`, docs: ``, annotation: 'prop' }]); - }); - it('multiline', () => { - const styleText = ` - /** - * @prop --color: This is the docs - * for color. - @prop --background : This is the docs - for background. It is two - * sentences and some :: man. - */ - body { - color: red; - } - `; - parseStyleDocs(styleDocs, styleText); - expect(styleDocs).toEqual([ - { name: `--color`, docs: `This is the docs for color.`, annotation: 'prop' }, - { - name: `--background`, - docs: `This is the docs for background. It is two sentences and some :: man.`, - annotation: 'prop', - }, - ]); - }); - it('docs', () => { - const styleText = ` - /** - * @prop --max-width: Max width of the alert - * @prop --color: Descript with : in it - * * @prop --background: background docs - @prop --font-weight: font-weight docs - */ - - html { - height: 100%; - } - - /** - * @prop --border: border docs - * @prop --font-size: font-size docs - */ - - /** @prop --padding: padding docs */ - - body { - color: red; - } - `; - parseStyleDocs(styleDocs, styleText); - expect(styleDocs).toEqual([ - { name: `--max-width`, docs: `Max width of the alert`, annotation: 'prop' }, - { name: `--color`, docs: `Descript with : in it`, annotation: 'prop' }, - { name: `--background`, docs: `background docs`, annotation: 'prop' }, - { name: `--font-weight`, docs: `font-weight docs`, annotation: 'prop' }, - { name: `--border`, docs: `border docs`, annotation: 'prop' }, - { name: `--font-size`, docs: `font-size docs`, annotation: 'prop' }, - { name: `--padding`, docs: `padding docs`, annotation: 'prop' }, - ]); - }); - it('invalid css prop comment', () => { - const styleText = ` - /** - * hello - * @prop max-width: Max width of the alert - * --max-width: Max width of the alert - */ - /* - * @prop --max-width - */ - /* hi i'm normal comments */ - body { - color: red; - } - `; - parseStyleDocs(styleDocs, styleText); - expect(styleDocs).toEqual([]); - }); - it('no closing comments', () => { - const styleText = ` - /** - body { - color: red; - } - `; - parseStyleDocs(styleDocs, styleText); - expect(styleDocs).toEqual([]); - }); - it('no comments', () => { - const styleText = ` - body { - color: red; - } - `; - parseStyleDocs(styleDocs, styleText); - expect(styleDocs).toEqual([]); - }); - it('empty styleText', () => { - const styleText = ``; - parseStyleDocs(styleDocs, styleText); - expect(styleDocs).toEqual([]); - }); - it('null styleText', () => { - const styleText = null; - parseStyleDocs(styleDocs, styleText); - expect(styleDocs).toEqual([]); - }); -}); -//# sourceMappingURL=style-docs.spec.js.map \ No newline at end of file diff --git a/build/compiler/docs/test/style-docs.spec.js.map b/build/compiler/docs/test/style-docs.spec.js.map deleted file mode 100644 index 5497185cab4..00000000000 --- a/build/compiler/docs/test/style-docs.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"style-docs.spec.js","sourceRoot":"","sources":["../../../../src/compiler/docs/test/style-docs.spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAI,SAAuB,CAAC;IAE5B,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,GAAG,EAAE,C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,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gBAAgB,EAAE,GAAG,EAAE;QACxB,MAAM,SAAS,GAAS,IAAI,CAAC;QAC7B,cAAc,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACrC,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/docs/vscode/index.d.ts b/build/compiler/docs/vscode/index.d.ts deleted file mode 100644 index 9b6c348dbff..00000000000 --- a/build/compiler/docs/vscode/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type * as d from '../../../declarations'; -/** - * Generate [custom data](https://github.com/microsoft/vscode-custom-data) to augment existing HTML types in VS Code. - * This function writes the custom data as a JSON file to disk, which can be used in VS Code to inform the IDE about - * custom elements generated by Stencil. - * - * The JSON generated by this function must conform to the - * [HTML custom data schema](https://github.com/microsoft/vscode-html-languageservice/blob/e7ae8a7170df5e721a13cee1b86e293b24eb3b20/docs/customData.schema.json). - * - * This function generates custom data for HTML only at this time (it does not generate custom data for CSS). - * - * @param compilerCtx the current compiler context - * @param docsData an intermediate representation documentation derived from compiled Stencil components - * @param outputTargets the output target(s) the associated with the current build - */ -export declare const generateVscodeDocs: (compilerCtx: d.CompilerCtx, docsData: d.JsonDocs, outputTargets: d.OutputTarget[]) => Promise; diff --git a/build/compiler/docs/vscode/index.js b/build/compiler/docs/vscode/index.js deleted file mode 100644 index f1dc40716c9..00000000000 --- a/build/compiler/docs/vscode/index.js +++ /dev/null @@ -1,88 +0,0 @@ -import { isOutputTargetDocsVscode, join } from '@utils'; -import { getNameText } from '../generate-doc-data'; -/** - * Generate [custom data](https://github.com/microsoft/vscode-custom-data) to augment existing HTML types in VS Code. - * This function writes the custom data as a JSON file to disk, which can be used in VS Code to inform the IDE about - * custom elements generated by Stencil. - * - * The JSON generated by this function must conform to the - * [HTML custom data schema](https://github.com/microsoft/vscode-html-languageservice/blob/e7ae8a7170df5e721a13cee1b86e293b24eb3b20/docs/customData.schema.json). - * - * This function generates custom data for HTML only at this time (it does not generate custom data for CSS). - * - * @param compilerCtx the current compiler context - * @param docsData an intermediate representation documentation derived from compiled Stencil components - * @param outputTargets the output target(s) the associated with the current build - */ -export const generateVscodeDocs = async (compilerCtx, docsData, outputTargets) => { - const vsCodeOutputTargets = outputTargets.filter(isOutputTargetDocsVscode); - if (vsCodeOutputTargets.length === 0) { - return; - } - await Promise.all(vsCodeOutputTargets.map(async (outputTarget) => { - const json = { - /** - * the 'version' top-level field is required by the schema. changes to the JSON generated by Stencil must: - * - comply with v1.X of the schema _OR_ - * - increment this field as a part of updating the JSON generation. This should be considered a breaking change - * - * {@link https://github.com/microsoft/vscode-html-languageservice/blob/e7ae8a7170df5e721a13cee1b86e293b24eb3b20/src/htmlLanguageTypes.ts#L184} - */ - version: 1.1, - tags: docsData.components.map((cmp) => ({ - name: cmp.tag, - description: { - kind: 'markdown', - value: cmp.docs, - }, - attributes: cmp.props - .filter((p) => p.attr !== undefined && p.attr.length > 0) - .map(serializeAttribute), - references: getReferences(cmp, outputTarget.sourceCodeBaseUrl), - })), - }; - // fields in the custom data may have a value of `undefined`. calling `stringify` will remove such fields. - const jsonContent = JSON.stringify(json, null, 2); - await compilerCtx.fs.writeFile(outputTarget.file, jsonContent); - })); -}; -/** - * Generate a 'references' section for a component's documentation. - * @param cmp the Stencil component to generate a references section for - * @param repoBaseUrl an optional URL, that when provided, will add a reference to the source code for the component - * @returns the generated references section, or undefined if no references could be generated - */ -const getReferences = (cmp, repoBaseUrl) => { - var _a; - // collect any `@reference` JSDoc tags on the component - const references = getNameText('reference', cmp.docsTags).map(([name, url]) => ({ name, url })); - if (repoBaseUrl) { - references.push({ - name: 'Source code', - url: join(repoBaseUrl, (_a = cmp.filePath) !== null && _a !== void 0 ? _a : ''), - }); - } - if (references.length > 0) { - return references; - } - return undefined; -}; -/** - * Serialize a component's class member decorated with `@Prop` to be written to disk - * @param prop the intermediate representation of the documentation to serialize - * @returns the serialized data - */ -const serializeAttribute = (prop) => { - const attribute = { - name: prop.attr, - description: prop.docs, - }; - const values = prop.values - .filter((jsonDocValue) => jsonDocValue.type === 'string' && jsonDocValue.value !== undefined) - .map((jsonDocValue) => ({ name: jsonDocValue.value })); - if (values.length > 0) { - attribute.values = values; - } - return attribute; -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/compiler/docs/vscode/index.js.map b/build/compiler/docs/vscode/index.js.map deleted file mode 100644 index 5cc794f6f55..00000000000 --- a/build/compiler/docs/vscode/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/compiler/docs/vscode/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGxD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,WAA0B,EAC1B,QAAoB,EACpB,aAA+B,EAChB,EAAE;IACjB,MAAM,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAC3E,IAAI,mBAAmB,CAAC,MAAM,KAAK,CAAC,EAAE;QACpC,OAAO;KACR;IAED,MAAM,OAAO,CAAC,GAAG,CACf,mBAAmB,CAAC,GAAG,CAAC,KAAK,EAAE,YAAsC,EAAiB,EAAE;QACtF,MAAM,IAAI,GAAG;YACX;;;;;;eAMG;YACH,OAAO,EAAE,GAAG;YACZ,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAwB,EAAE,EAAE,CAAC,CAAC;gBAC3D,IAAI,EAAE,GAAG,CAAC,GAAG;gBACb,WAAW,EAAE;oBACX,IAAI,EAAE,UAAU;oBAChB,KAAK,EAAE,GAAG,CAAC,IAAI;iBAChB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AM,SAAS,GAAkB;QAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,WAAW,EAAE,IAAI,CAAC,IAAI;KACvB,CAAC;IACF,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM;SACvB,MAAM,CACL,CAAC,YAA6B,EAA6C,EAAE,CAC3E,YAAY,CAAC,IAAI,KAAK,QAAQ,IAAI,YAAY,CAAC,KAAK,KAAK,SAAS,CACrE;SACA,GAAG,CAAC,CAAC,YAAuC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAEpF,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QACrB,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;KAC3B;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/entries/component-bundles.d.ts b/build/compiler/entries/component-bundles.d.ts deleted file mode 100644 index 3dbc9220b76..00000000000 --- a/build/compiler/entries/component-bundles.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Generate the bundles that will be used during the bundling process - * - * This gathers information about all of the components used in the build, - * including the bundles which will be included by default, and then returns a - * deduplicated list of all the bundles which need to be present. - * - * @param config the Stencil configuration used for the build - * @param buildCtx the current build context - * @returns the bundles to be used during the bundling process - */ -export declare function generateComponentBundles(config: d.ValidatedConfig, buildCtx: d.BuildCtx): readonly d.ComponentCompilerMeta[][]; diff --git a/build/compiler/entries/component-bundles.js b/build/compiler/entries/component-bundles.js deleted file mode 100644 index 327363a0da8..00000000000 --- a/build/compiler/entries/component-bundles.js +++ /dev/null @@ -1,177 +0,0 @@ -import { sortBy } from '@utils'; -import { getDefaultBundles } from './default-bundles'; -/** - * Generate a list of all component tags that will be used by the output - * - * If the user has set the {@link d.Config.excludeUnusedDependencies} option - * to `false` then this simply returns all components. - * - * Else, this takes {@link d.ComponentCompilerMeta} objects which are being - * used in the current output and then ensures that all used components as well - * as their dependencies are present. - * - * @param config the Stencil configuration used for the build - * @param defaultBundles metadata of the assumed components being used/bundled - * @param allCmps all known components - * @returns a set of all component tags that are used - */ -function computeUsedComponents(config, defaultBundles, allCmps) { - if (!config.excludeUnusedDependencies) { - // the user/config has specified that Stencil should use all the dependencies it's found, return the set of all - // known tags - return new Set(allCmps.map((c) => c.tagName)); - } - const usedComponents = new Set(); - // All components - defaultBundles.forEach((entry) => { - entry.forEach((cmp) => usedComponents.add(cmp.tagName)); - }); - allCmps.forEach((cmp) => { - if (!cmp.isCollectionDependency) { - usedComponents.add(cmp.tagName); - } - }); - allCmps.forEach((cmp) => { - if (cmp.isCollectionDependency) { - if (cmp.dependents.some((dep) => usedComponents.has(dep))) { - usedComponents.add(cmp.tagName); - } - } - }); - return usedComponents; -} -/** - * Generate the bundles that will be used during the bundling process - * - * This gathers information about all of the components used in the build, - * including the bundles which will be included by default, and then returns a - * deduplicated list of all the bundles which need to be present. - * - * @param config the Stencil configuration used for the build - * @param buildCtx the current build context - * @returns the bundles to be used during the bundling process - */ -export function generateComponentBundles(config, buildCtx) { - const components = sortBy(buildCtx.components, (cmp) => cmp.dependents.length); - const defaultBundles = getDefaultBundles(config, buildCtx, components); - // this is most likely all the components - const usedComponents = computeUsedComponents(config, defaultBundles, components); - if (config.devMode) { - // return only components used in the build - return components - .filter((c) => usedComponents.has(c.tagName)) - .map((cmp) => [cmp]); - } - // Visit components that are already in one of the default bundles - const alreadyBundled = new Set(); - defaultBundles.forEach((entry) => { - entry.forEach((cmp) => alreadyBundled.add(cmp)); - }); - const bundlers = components - .filter((cmp) => usedComponents.has(cmp.tagName) && !alreadyBundled.has(cmp)) - .map((c) => [c]); - return [...defaultBundles, ...optimizeBundlers(bundlers, 0.6)].filter((b) => b.length > 0); -} -/** - * Calculate and reorganize bundles based on a calculated similarity score between bundle entries - * @param bundles the bundles to reorganize - * @param threshold a numeric value used to determine whether or not bundles should be reorganized - * @returns the reorganized bundles - */ -function optimizeBundlers(bundles, threshold) { - /** - * build a mapping of component tag names in each `bundles` entry to the index where that entry occurs in `bundles`: - * ```ts - * bundles = [ - * [ - * { - * tagName: 'my-foo', ..., - * }, - * ], - * [ - * { - * tagName: 'my-bar', ..., - * }, - * { - * tagName: 'my-baz', ..., - * }, - * ], - * ]; - * // yields - * { - * 'my-foo': 0, - * 'my-bar': 1, - * 'my-baz': 1, - * } - * ``` - * note that in the event of a component being found >1 time, store the index of the last entry in which it's found - */ - const cmpIndexMap = new Map(); - bundles.forEach((entry, index) => { - entry.forEach((cmp) => { - cmpIndexMap.set(cmp.tagName, index); - }); - }); - // build a record of components - const matrix = bundles.map((entry) => { - const vector = new Uint8Array(bundles.length); - entry.forEach((cmp) => { - // for each dependent of a component, check to see if the dependent has been seen already when the `cmpIndexMap` - // was originally built. If so, mark it with a '1' - cmp.dependents.forEach((tag) => { - const index = cmpIndexMap.get(tag); - if (index !== undefined) { - vector[index] = 1; - } - }); - }); - entry.forEach((cmp) => { - // for each entry, check to see if the component has been seen already when the `cmpIndexMap` was originally - // built. If so, mark it with a '0', potentially overriding a previously set value on the vector. - const index = cmpIndexMap.get(cmp.tagName); - if (index !== undefined) { - vector[index] = 0; - } - }); - return vector; - }); - // resolve similar components - const newBundles = []; - const visited = new Uint8Array(bundles.length); - for (let i = 0; i < matrix.length; i++) { - // check if bundle is visited (0 means it's not) - if (visited[i] === 0) { - const bundle = [...bundles[i]]; - visited[i] = 1; - for (let j = i + 1; j < matrix.length; j++) { - if (visited[j] === 0 && computeScore(matrix[i], matrix[j]) >= threshold) { - bundle.push(...bundles[j]); - visited[j] = 1; - } - } - newBundles.push(bundle); - } - } - return newBundles; -} -/** - * Computes a 'score' between two arrays, that is defined as the number of times that the value at a given index is the - * same in both arrays divided by the number of times the value in either array is high at the given index. - * @param m0 the first array to calculate sameness with - * @param m1 the second array to calculate sameness with - * @returns the calculated score - */ -function computeScore(m0, m1) { - let total = 0; - let match = 0; - for (let i = 0; i < m0.length; i++) { - if (m0[i] === 1 || m1[i] === 1) { - total++; - if (m0[i] === m1[i]) { - match++; - } - } - } - return match / total; -} -//# sourceMappingURL=component-bundles.js.map \ No newline at end of file diff --git a/build/compiler/entries/component-bundles.js.map b/build/compiler/entries/component-bundles.js.map deleted file mode 100644 index 54d5c8f09bb..00000000000 --- a/build/compiler/entries/component-bundles.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component-bundles.js","sourceRoot":"","sources":["../../../src/compiler/entries/component-bundles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;;;;;;;;;;;GAcG;AACH,SAAS,qBAAqB,CAC5B,MAAyB,EACzB,cAAoD,EACpD,OAA2C;IAE3C,IAAI,CAAC,MAAM,CAAC,yBAAyB,EAAE;QACrC,+GAA+G;QAC/G,aAAa;QACb,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAA0B,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;KACxE;IACD,MAAM,cAAc,GAAG,IAAI,GAAG,EAAU,CAAC;IAEzC,iBAAiB;IACjB,cAAc,CAAC,OAAO,CAAC,CAAC,KAAyC,EAAE,EAAE;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC,GAA4B,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IACnF,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,OAAO,CAAC,CAAC,GAA4B,EAAE,EAAE;QAC/C,IAAI,CAAC,GAAG,CAAC,sBAAsB,EAAE;YAC/B,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SACjC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,OAAO,CAAC,CAAC,GAA4B,EAAE,EAAE;QAC/C,IAAI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D,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACzB;KACF;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;;;;GAMG;AACH,SAAS,YAAY,CAAC,EAAc,EAAE,EAAc;IAClD,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAClC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE;YAC9B,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;gBACnB,KAAK,EAAE,CAAC;aACT;SACF;KACF;IACD,OAAO,KAAK,GAAG,KAAK,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/build/compiler/entries/component-graph.d.ts b/build/compiler/entries/component-graph.d.ts deleted file mode 100644 index a6e19fc929f..00000000000 --- a/build/compiler/entries/component-graph.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const generateModuleGraph: (cmps: d.ComponentCompilerMeta[], bundleModules: ReadonlyArray) => Map; diff --git a/build/compiler/entries/component-graph.js b/build/compiler/entries/component-graph.js deleted file mode 100644 index 74a0bb709ad..00000000000 --- a/build/compiler/entries/component-graph.js +++ /dev/null @@ -1,13 +0,0 @@ -import { getScopeId } from '../style/scope-css'; -export const generateModuleGraph = (cmps, bundleModules) => { - const cmpMap = new Map(); - cmps.forEach((cmp) => { - const bundle = bundleModules.find((b) => b.cmps.includes(cmp)); - if (bundle) { - // add default case for no mode - cmpMap.set(getScopeId(cmp.tagName), bundle.rollupResult.imports); - } - }); - return cmpMap; -}; -//# sourceMappingURL=component-graph.js.map \ No newline at end of file diff --git a/build/compiler/entries/component-graph.js.map b/build/compiler/entries/component-graph.js.map deleted file mode 100644 index 1cd9a4fa2df..00000000000 --- a/build/compiler/entries/component-graph.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component-graph.js","sourceRoot":"","sources":["../../../src/compiler/entries/component-graph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAA+B,EAAE,aAA4C,EAAE,EAAE;IACnH,MAAM,MAAM,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC3C,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;QAC/D,IAAI,MAAM,EAAE;YACV,+BAA+B;YAC/B,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;SAClE;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/entries/default-bundles.d.ts b/build/compiler/entries/default-bundles.d.ts deleted file mode 100644 index 6403ef5a412..00000000000 --- a/build/compiler/entries/default-bundles.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Retrieve the component bundle groupings to be used when generating output - * @param config the Stencil configuration used for the build - * @param buildCtx the current build context - * @param cmps the components that have been registered & defined for the current build - * @returns the component bundling data - */ -export declare function getDefaultBundles(config: d.ValidatedConfig, buildCtx: d.BuildCtx, cmps: d.ComponentCompilerMeta[]): readonly d.ComponentCompilerMeta[][]; -/** - * Retrieve and validate the `bundles` field on a project's Stencil configuration file - * @param config the configuration file with a `bundles` field to inspect - * @param buildCtx the current build context - * @param cmps the components that have been registered & defined for the current build - * @returns a three dimensional array with the compiler metadata for each component used - */ -export declare function getUserConfigBundles(config: d.ValidatedConfig, buildCtx: d.BuildCtx, cmps: d.ComponentCompilerMeta[]): readonly d.ComponentCompilerMeta[][]; diff --git a/build/compiler/entries/default-bundles.js b/build/compiler/entries/default-bundles.js deleted file mode 100644 index 673307c01d7..00000000000 --- a/build/compiler/entries/default-bundles.js +++ /dev/null @@ -1,70 +0,0 @@ -import { buildError, buildWarn, flatOne, unique, validateComponentTag } from '@utils'; -import { getUsedComponents } from '../html/used-components'; -/** - * Retrieve the component bundle groupings to be used when generating output - * @param config the Stencil configuration used for the build - * @param buildCtx the current build context - * @param cmps the components that have been registered & defined for the current build - * @returns the component bundling data - */ -export function getDefaultBundles(config, buildCtx, cmps) { - // get all of the user defined bundles in the Stencil config file - const userConfigEntryPoints = getUserConfigBundles(config, buildCtx, cmps); - if (userConfigEntryPoints.length > 0) { - // prefer user defined entry points over anything else Stencil may derive - return userConfigEntryPoints; - } - let entryPointsHints = config.entryComponentsHint; - if (!entryPointsHints && buildCtx.indexDoc) { - // attempt to scan an HTML file for known Stencil components - entryPointsHints = getUsedComponents(buildCtx.indexDoc, cmps); - } - if (!entryPointsHints) { - return []; - } - const mainBundle = unique([ - ...entryPointsHints, - ...flatOne(entryPointsHints.map(resolveTag).map((cmp) => cmp.dependencies)), - ]).map(resolveTag); - function resolveTag(tag) { - return cmps.find((cmp) => cmp.tagName === tag); - } - return [mainBundle]; -} -/** - * Retrieve and validate the `bundles` field on a project's Stencil configuration file - * @param config the configuration file with a `bundles` field to inspect - * @param buildCtx the current build context - * @param cmps the components that have been registered & defined for the current build - * @returns a three dimensional array with the compiler metadata for each component used - */ -export function getUserConfigBundles(config, buildCtx, cmps) { - const definedTags = new Set(); - const entryTags = config.bundles.map((b) => { - return b.components - .map((tag) => { - const tagError = validateComponentTag(tag); - if (tagError) { - const err = buildError(buildCtx.diagnostics); - err.header = `Stencil Config`; - err.messageText = tagError; - } - const component = cmps.find((cmp) => cmp.tagName === tag); - if (!component) { - const warn = buildWarn(buildCtx.diagnostics); - warn.header = `Stencil Config`; - warn.messageText = `Component tag "${tag}" is defined in a bundle but no matching component was found within this app or its collections.`; - } - if (definedTags.has(tag)) { - const warn = buildWarn(buildCtx.diagnostics); - warn.header = `Stencil Config`; - warn.messageText = `Component tag "${tag}" has been defined multiple times in the "bundles" config.`; - } - definedTags.add(tag); - return component; - }) - .sort(); - }); - return entryTags; -} -//# sourceMappingURL=default-bundles.js.map \ No newline at end of file diff --git a/build/compiler/entries/default-bundles.js.map b/build/compiler/entries/default-bundles.js.map deleted file mode 100644 index 18a63349b4c..00000000000 --- a/build/compiler/entries/default-bundles.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"default-bundles.js","sourceRoot":"","sources":["../../../src/compiler/entries/default-bundles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAGtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAC/B,MAAyB,EACzB,QAAoB,EACpB,IAA+B;IAE/B,iEAAiE;IACjE,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC3E,IAAI,qBAAqB,CAAC,MAAM,GAAG,CAAC,EAAE;QACpC,yEAAyE;QACzE,OAAO,qBAAqB,CAAC;KAC9B;IAED,IAAI,gBAAgB,GAAG,MAAM,CAAC,mBAAmB,CAAC;IAClD,IAAI,CAAC,gBAAgB,IAAI,QAAQ,CAAC,QAAQ,EAAE;QAC1C,4DAA4D;QAC5D,gBAAgB,GAAG,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;KAC/D;IACD,IAAI,CAAC,gBAAgB,EA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AAC;gBAC7C,IAAI,CAAC,MAAM,GAAG,gBAAgB,CAAC;gBAC/B,IAAI,CAAC,WAAW,GAAG,kBAAkB,GAAG,kGAAkG,CAAC;aAC5I;YAED,IAAI,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBACxB,MAAM,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;gBAC7C,IAAI,CAAC,MAAM,GAAG,gBAAgB,CAAC;gBAC/B,IAAI,CAAC,WAAW,GAAG,kBAAkB,GAAG,4DAA4D,CAAC;aACtG;YAED,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACrB,OAAO,SAAS,CAAC;QACnB,CAAC,CAAC;aACD,IAAI,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;IACH,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/build/compiler/entries/resolve-component-dependencies.d.ts b/build/compiler/entries/resolve-component-dependencies.d.ts deleted file mode 100644 index be1c860ce46..00000000000 --- a/build/compiler/entries/resolve-component-dependencies.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type * as d from '../../declarations'; -/** - * For each entry in the provided collection of compiler metadata, generate several lists: - * - dependencies that the component has (both directly and indirectly/transitively) - * - dependencies that the component has (only directly) - * - components that are dependent on a particular component (both directly and indirectly/transitively) - * - components that are dependent on a particular component (only directly) - * - * This information is stored directly on each entry in the provided collection - * - * @param cmps the compiler metadata of the components whose dependencies and dependents ought to be calculated - */ -export declare function resolveComponentDependencies(cmps: d.ComponentCompilerMeta[]): void; diff --git a/build/compiler/entries/resolve-component-dependencies.js b/build/compiler/entries/resolve-component-dependencies.js deleted file mode 100644 index 327a3ef849b..00000000000 --- a/build/compiler/entries/resolve-component-dependencies.js +++ /dev/null @@ -1,110 +0,0 @@ -import { flatOne, unique } from '@utils'; -/** - * For each entry in the provided collection of compiler metadata, generate several lists: - * - dependencies that the component has (both directly and indirectly/transitively) - * - dependencies that the component has (only directly) - * - components that are dependent on a particular component (both directly and indirectly/transitively) - * - components that are dependent on a particular component (only directly) - * - * This information is stored directly on each entry in the provided collection - * - * @param cmps the compiler metadata of the components whose dependencies and dependents ought to be calculated - */ -export function resolveComponentDependencies(cmps) { - computeDependencies(cmps); - computeDependents(cmps); -} -/** - * Compute the direct and transitive dependencies for each entry in the provided collection of component metadata. - * - * This function mutates each entry in the provided collection. - * - * @param cmps the metadata for the components whose dependencies ought to be calculated. - */ -function computeDependencies(cmps) { - const visited = new Set(); - cmps.forEach((cmp) => { - resolveTransitiveDependencies(cmp, cmps, visited); - cmp.dependencies = unique(cmp.dependencies).sort(); - }); -} -/** - * Compute the direct and transitive dependents for each entry in the provided collection of component metadata. - * - * @param cmps the component metadata whose entries will have their dependents calculated - */ -function computeDependents(cmps) { - cmps.forEach((cmp) => { - resolveTransitiveDependents(cmp, cmps); - }); -} -/** - * Calculate the direct and transitive dependencies of a particular component. - * - * For example, given a component `foo-bar` whose `render` function references another web component `baz-buzz`: - * ```tsx - * // foo-bar.ts - * render() { - * return ; - * } - * ``` - * where `baz-buzz` references `my-component`: - * ```tsx - * // baz-buzz.ts - * render() { - * return ; - * } - * ``` - * this function will return ['baz-buzz', 'my-component'] when inspecting 'foo-bar', as 'baz-buzz' is directly used by - * 'foo-bar', and 'my-component' is used by a component ('baz-buzz') that is being used by 'foo-bar'. - * - * This function mutates each entry in the provided collection. - * - * @param cmp the metadata for the component whose dependencies are being calculated - * @param cmps the metadata for all components that participate in the current build - * @param visited a collection of component metadata that has already been inspected - * @returns a list of direct and transitive dependencies for the component being inspected - */ -function resolveTransitiveDependencies(cmp, cmps, visited) { - if (visited.has(cmp)) { - // we've already inspected this component, return its dependency list - return cmp.dependencies; - } - // otherwise, add the component to our collection to mark it as 'visited' - visited.add(cmp); - // create a collection of dependencies of web components that the build knows about - const dependencies = unique(cmp.potentialCmpRefs.filter((tagName) => cmps.some((c) => c.tagName === tagName))); - cmp.dependencies = cmp.directDependencies = dependencies; - // get a list of dependencies of the current component's dependencies - const transitiveDeps = flatOne(dependencies - .map((tagName) => cmps.find((c) => c.tagName === tagName)) - .map((c) => resolveTransitiveDependencies(c, cmps, visited))); - return (cmp.dependencies = [...dependencies, ...transitiveDeps]); -} -/** - * Generate and set the lists of components that are: - * 1. directly _and_ indirectly (transitively) dependent on the component being inspected - * 2. only directly dependent on the component being inspected - * - * This function assumes that the {@link d.ComponentCompilerMeta#dependencies} and - * {@link d.ComponentCompilerMeta#directDependencies} properties are pre-populated for `cmp` and all entries in `cmps`. - * - * This function mutates the `dependents` and `directDependents` field on the provided `cmp` argument for both lists, - * respectively. - * - * @param cmp the metadata for the component whose dependents are being calculated - * @param cmps the metadata for all components that participate in the current build - */ -function resolveTransitiveDependents(cmp, cmps) { - // the dependents of a component are any other components that list it as a direct or transitive dependency - cmp.dependents = cmps - .filter((c) => c.dependencies.includes(cmp.tagName)) - .map((c) => c.tagName) - .sort(); - // the dependents of a component are any other components that list it as a direct dependency - cmp.directDependents = cmps - .filter((c) => c.directDependencies.includes(cmp.tagName)) - .map((c) => c.tagName) - .sort(); -} -//# sourceMappingURL=resolve-component-dependencies.js.map \ No newline at end of file diff --git a/build/compiler/entries/resolve-component-dependencies.js.map b/build/compiler/entries/resolve-component-dependencies.js.map deleted file mode 100644 index 9d6497dea9a..00000000000 --- a/build/compiler/entries/resolve-component-dependencies.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolve-component-dependencies.js","sourceRoot":"","sources":["../../../src/compiler/entries/resolve-component-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIzC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,4BAA4B,CAAC,IAA+B;IAC1E,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC1B,iBAAiB,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED;;;;;;GAMG;AACH,SAAS,mBAAmB,CAAC,IAA+B;IAC1D,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AO,CAAC,CAAC;SACzD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAC/D,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,CAAC,GAAG,YAAY,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC;AACnE,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,SAAS,2BAA2B,CAAC,GAA4B,EAAE,IAA+B;IAChG,2GAA2G;IAC3G,GAAG,CAAC,UAAU,GAAG,IAAI;SAClB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SACnD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;SACrB,IAAI,EAAE,CAAC;IAEV,6FAA6F;IAC7F,GAAG,CAAC,gBAAgB,GAAG,IAAI;SACxB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SACzD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;SACrB,IAAI,EAAE,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/build/compiler/events.d.ts b/build/compiler/events.d.ts deleted file mode 100644 index fee2f58e079..00000000000 --- a/build/compiler/events.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../declarations'; -export declare const buildEvents: () => d.BuildEvents; diff --git a/build/compiler/events.js b/build/compiler/events.js deleted file mode 100644 index c9520eede32..00000000000 --- a/build/compiler/events.js +++ /dev/null @@ -1,63 +0,0 @@ -export const buildEvents = () => { - const evCallbacks = []; - const off = (callback) => { - const index = evCallbacks.findIndex((ev) => ev.callback === callback); - if (index > -1) { - evCallbacks.splice(index, 1); - return true; - } - return false; - }; - const on = (arg0, arg1) => { - if (typeof arg0 === 'function') { - const eventName = null; - const callback = arg0; - evCallbacks.push({ - eventName, - callback, - }); - return () => off(callback); - } - else if (typeof arg0 === 'string' && typeof arg1 === 'function') { - const eventName = arg0.toLowerCase().trim(); - const callback = arg1; - evCallbacks.push({ - eventName, - callback, - }); - return () => off(callback); - } - return () => false; - }; - const emit = (eventName, data) => { - const normalizedEventName = eventName.toLowerCase().trim(); - const callbacks = evCallbacks.slice(); - for (const ev of callbacks) { - if (ev.eventName == null) { - try { - ev.callback(eventName, data); - } - catch (e) { - console.error(e); - } - } - else if (ev.eventName === normalizedEventName) { - try { - ev.callback(data); - } - catch (e) { - console.error(e); - } - } - } - }; - const unsubscribeAll = () => { - evCallbacks.length = 0; - }; - return { - emit, - on, - unsubscribeAll, - }; -}; -//# sourceMappingURL=events.js.map \ No newline at end of file diff --git a/build/compiler/events.js.map b/build/compiler/events.js.map deleted file mode 100644 index d5983f60630..00000000000 --- a/build/compiler/events.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/compiler/events.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAG,GAAkB,EAAE;IAC7C,MAAM,WAAW,GAAoB,EAAE,CAAC;IAExC,MAAM,GAAG,GAAG,CAAC,QAAa,EAAE,EAAE;QAC5B,MAAM,KAAK,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;QACtE,IAAI,KAAK,GAAG,CAAC,CAAC,EAAE;YACd,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YAC7B,OAAO,IAAI,CAAC;SACb;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAEF,MAAM,EAAE,GAAG,CAAC,IAAS,EAAE,IAAU,EAAwB,EAAE;QACzD,IAAI,OAAO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OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;iBAClB;aACF;SACF;IACH,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,OAAO;QACL,IAAI;QACJ,EAAE;QACF,cAAc;KACf,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/fs-watch/fs-watch-rebuild.d.ts b/build/compiler/fs-watch/fs-watch-rebuild.d.ts deleted file mode 100644 index 137ee50d08f..00000000000 --- a/build/compiler/fs-watch/fs-watch-rebuild.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import type * as d from '../../declarations'; -export declare const filesChanged: (buildCtx: d.BuildCtx) => string[]; -/** - * Helper to check if a filepath has a script extension - * - * @param filePath a file extension - * @returns whether the filepath has a script extension or not - */ -export declare const hasScriptExt: (filePath: string) => boolean; -/** - * Helper to check if a filepath has a style extension - * - * @param filePath a file extension to check - * @returns whether the filepath has a style extension or not - */ -export declare const hasStyleExt: (filePath: string) => boolean; -/** - * Get all scripts from a build context that were added - * - * @param buildCtx the build context - * @returns an array of filepaths that were added - */ -export declare const scriptsAdded: (buildCtx: d.BuildCtx) => string[]; -/** - * Get all scripts from a build context that were deleted - * - * @param buildCtx the build context - * @returns an array of deleted filepaths - */ -export declare const scriptsDeleted: (buildCtx: d.BuildCtx) => string[]; -/** - * Check whether a build has script changes - * - * @param buildCtx the build context - * @returns whether or not there are script changes - */ -export declare const hasScriptChanges: (buildCtx: d.BuildCtx) => boolean; -/** - * Check whether a build has style changes - * - * @param buildCtx the build context - * @returns whether or not there are style changes - */ -export declare const hasStyleChanges: (buildCtx: d.BuildCtx) => boolean; -/** - * Check whether a build has html changes - * - * @param config the current config - * @param buildCtx the build context - * @returns whether or not HTML files were changed - */ -export declare const hasHtmlChanges: (config: d.ValidatedConfig, buildCtx: d.BuildCtx) => boolean; -export declare const updateCacheFromRebuild: (compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx) => void; -export declare const isWatchIgnorePath: (config: d.ValidatedConfig, path: string) => boolean; diff --git a/build/compiler/fs-watch/fs-watch-rebuild.js b/build/compiler/fs-watch/fs-watch-rebuild.js deleted file mode 100644 index 60eb03b8326..00000000000 --- a/build/compiler/fs-watch/fs-watch-rebuild.js +++ /dev/null @@ -1,130 +0,0 @@ -import { isOutputTargetDocsJson, isOutputTargetDocsVscode, isOutputTargetStats, isString, unique } from '@utils'; -import { basename } from 'path'; -export const filesChanged = (buildCtx) => { - // files changed include updated, added and deleted - return unique([...buildCtx.filesUpdated, ...buildCtx.filesAdded, ...buildCtx.filesDeleted]).sort(); -}; -/** - * Unary helper function mapping string to string and wrapping `basename`, - * which normally takes two string arguments. This means it cannot be passed - * to `Array.prototype.map`, but this little helper can! - * - * @param filePath a filepath to check out - * @returns the basename for that filepath - */ -const unaryBasename = (filePath) => basename(filePath); -/** - * Get the file extension for a path - * - * @param filePath a path - * @returns the file extension (well, characters after the last `'.'`) or - * `null` if no extension exists. - */ -const getExt = (filePath) => { - const fileParts = filePath.split('.'); - return fileParts.length > 1 ? fileParts.pop().toLowerCase() : null; -}; -/** - * Script extensions which we want to be able to recognize - */ -const SCRIPT_EXT = ['ts', 'tsx', 'js', 'jsx']; -/** - * Helper to check if a filepath has a script extension - * - * @param filePath a file extension - * @returns whether the filepath has a script extension or not - */ -export const hasScriptExt = (filePath) => { - const ext = getExt(filePath); - return ext ? SCRIPT_EXT.includes(ext) : false; -}; -const STYLE_EXT = ['css', 'scss', 'sass', 'pcss', 'styl', 'stylus', 'less']; -/** - * Helper to check if a filepath has a style extension - * - * @param filePath a file extension to check - * @returns whether the filepath has a style extension or not - */ -export const hasStyleExt = (filePath) => { - const ext = getExt(filePath); - return ext ? STYLE_EXT.includes(ext) : false; -}; -/** - * Get all scripts from a build context that were added - * - * @param buildCtx the build context - * @returns an array of filepaths that were added - */ -export const scriptsAdded = (buildCtx) => buildCtx.filesAdded.filter(hasScriptExt).map(unaryBasename); -/** - * Get all scripts from a build context that were deleted - * - * @param buildCtx the build context - * @returns an array of deleted filepaths - */ -export const scriptsDeleted = (buildCtx) => buildCtx.filesDeleted.filter(hasScriptExt).map(unaryBasename); -/** - * Check whether a build has script changes - * - * @param buildCtx the build context - * @returns whether or not there are script changes - */ -export const hasScriptChanges = (buildCtx) => buildCtx.filesChanged.some(hasScriptExt); -/** - * Check whether a build has style changes - * - * @param buildCtx the build context - * @returns whether or not there are style changes - */ -export const hasStyleChanges = (buildCtx) => buildCtx.filesChanged.some(hasStyleExt); -/** - * Check whether a build has html changes - * - * @param config the current config - * @param buildCtx the build context - * @returns whether or not HTML files were changed - */ -export const hasHtmlChanges = (config, buildCtx) => { - const anyHtmlChanged = buildCtx.filesChanged.some((f) => f.toLowerCase().endsWith('.html')); - if (anyHtmlChanged) { - // any *.html in any directory that changes counts and rebuilds - return true; - } - const srcIndexHtmlChanged = buildCtx.filesChanged.some((fileChanged) => { - // the src index index.html file has changed - // this file name could be something other than index.html - return fileChanged === config.srcIndexHtml; - }); - return srcIndexHtmlChanged; -}; -export const updateCacheFromRebuild = (compilerCtx, buildCtx) => { - buildCtx.filesChanged.forEach((filePath) => { - compilerCtx.fs.clearFileCache(filePath); - }); - buildCtx.dirsAdded.forEach((dirAdded) => { - compilerCtx.fs.clearDirCache(dirAdded); - }); - buildCtx.dirsDeleted.forEach((dirDeleted) => { - compilerCtx.fs.clearDirCache(dirDeleted); - }); -}; -export const isWatchIgnorePath = (config, path) => { - if (isString(path)) { - const isWatchIgnore = config.watchIgnoredRegex.some((reg) => reg.test(path)); - if (isWatchIgnore) { - return true; - } - const outputTargets = config.outputTargets; - const ignoreFiles = [ - ...outputTargets.filter(isOutputTargetDocsJson).map((o) => o.file), - ...outputTargets.filter(isOutputTargetDocsJson).map((o) => o.typesFile), - ...outputTargets.filter(isOutputTargetStats).map((o) => o.file), - ...outputTargets.filter(isOutputTargetDocsVscode).map((o) => o.file), - ]; - if (ignoreFiles.includes(path)) { - return true; - } - } - return false; -}; -//# sourceMappingURL=fs-watch-rebuild.js.map \ No newline at end of file diff --git a/build/compiler/fs-watch/fs-watch-rebuild.js.map b/build/compiler/fs-watch/fs-watch-rebuild.js.map deleted file mode 100644 index 6b25c80ccd1..00000000000 --- a/build/compiler/fs-watch/fs-watch-rebuild.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fs-watch-rebuild.js","sourceRoot":"","sources":["../../../src/compiler/fs-watch/fs-watch-rebuild.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACjH,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAIhC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,QAAoB,EAAE,EAAE;IACnD,mDAAmD;IACnD,OAAO,MAAM,CAAC,CAAC,GAAG,QAAQ,CAAC,YAAY,EAAE,GAAG,QAAQ,CAAC,UAAU,EAAE,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACrG,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,aAAa,GAAG,CAAC,QAAgB,EAAU,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,MAAM,GAAG,CAAC,QAAgB,EAAiB,EAAE;IACjD,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEtC,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACtE,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AA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,CAAC,IAAI,CAAC,EAAE;QAClB,MAAM,aAAa,GAAI,MAAM,CAAC,iBAA8B,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC3F,IAAI,aAAa,EAAE;YACjB,OAAO,IAAI,CAAC;SACb;QACD,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;QAC3C,MAAM,WAAW,GAAG;YAClB,GAAG,aAAa,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;YAClE,GAAG,aAAa,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACvE,GAAG,aAAa,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;YAC/D,GAAG,aAAa,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;SACrE,CAAC;QACF,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAC9B,OAAO,IAAI,CAAC;SACb;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/html/add-script-attr.d.ts b/build/compiler/html/add-script-attr.d.ts deleted file mode 100644 index 15443a5bffe..00000000000 --- a/build/compiler/html/add-script-attr.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const addScriptDataAttribute: (config: d.ValidatedConfig, doc: Document, outputTarget: d.OutputTargetWww) => void; diff --git a/build/compiler/html/add-script-attr.js b/build/compiler/html/add-script-attr.js deleted file mode 100644 index ad4b104c005..00000000000 --- a/build/compiler/html/add-script-attr.js +++ /dev/null @@ -1,19 +0,0 @@ -import { join } from '@utils'; -import { getAbsoluteBuildDir } from './html-utils'; -export const addScriptDataAttribute = (config, doc, outputTarget) => { - const resourcesUrl = getAbsoluteBuildDir(outputTarget); - const entryEsmFilename = `${config.fsNamespace}.esm.js`; - const entryNoModuleFilename = `${config.fsNamespace}.js`; - const expectedEsmSrc = join(resourcesUrl, entryEsmFilename); - const expectedNoModuleSrc = join(resourcesUrl, entryNoModuleFilename); - const scripts = Array.from(doc.querySelectorAll('script')); - const scriptEsm = scripts.find((s) => s.getAttribute('src') === expectedEsmSrc); - const scriptNomodule = scripts.find((s) => s.getAttribute('src') === expectedNoModuleSrc); - if (scriptEsm) { - scriptEsm.setAttribute('data-stencil', ''); - } - if (scriptNomodule) { - scriptNomodule.setAttribute('data-stencil', ''); - } -}; -//# sourceMappingURL=add-script-attr.js.map \ No newline at end of file diff --git a/build/compiler/html/add-script-attr.js.map b/build/compiler/html/add-script-attr.js.map deleted file mode 100644 index 3fb39543483..00000000000 --- a/build/compiler/html/add-script-attr.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"add-script-attr.js","sourceRoot":"","sources":["../../../src/compiler/html/add-script-attr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAAyB,EAAE,GAAa,EAAE,YAA+B,EAAE,EAAE;IAClH,MAAM,YAAY,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;IACvD,MAAM,gBAAgB,GAAG,GAAG,MAAM,CAAC,WAAW,SAAS,CAAC;IACxD,MAAM,qBAAqB,GAAG,GAAG,MAAM,CAAC,WAAW,KAAK,CAAC;IACzD,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;IAC5D,MAAM,mBAAmB,GAAG,IAAI,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAC;IAEtE,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3D,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,cAAc,CAAC,CAAC;IAChF,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,mBAAmB,CAAC,CAAC;IAE1F,IAAI,SAAS,EAAE;QACb,SAAS,CAAC,YAAY,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;KAC5C;IACD,IAAI,cAAc,EAAE;QAClB,cAAc,CAAC,YAAY,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;KACjD;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/html/canonical-link.d.ts b/build/compiler/html/canonical-link.d.ts deleted file mode 100644 index 1fca96a7dd3..00000000000 --- a/build/compiler/html/canonical-link.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const updateCanonicalLink: (doc: Document, href: string) => void; diff --git a/build/compiler/html/canonical-link.js b/build/compiler/html/canonical-link.js deleted file mode 100644 index 3fac7fad664..00000000000 --- a/build/compiler/html/canonical-link.js +++ /dev/null @@ -1,27 +0,0 @@ -export const updateCanonicalLink = (doc, href) => { - // https://webmasters.googleblog.com/2009/02/specify-your-canonical.html - // - let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]'); - if (typeof href === 'string') { - // have a valid href to add - if (canonicalLinkElm == null) { - // don't have a element yet, create one - canonicalLinkElm = doc.createElement('link'); - canonicalLinkElm.setAttribute('rel', 'canonical'); - doc.head.appendChild(canonicalLinkElm); - } - // set the href attribute - canonicalLinkElm.setAttribute('href', href); - } - else { - // don't have a href - if (canonicalLinkElm != null) { - // but there is a canonical link in the head so let's remove it - const existingHref = canonicalLinkElm.getAttribute('href'); - if (!existingHref) { - canonicalLinkElm.parentNode.removeChild(canonicalLinkElm); - } - } - } -}; -//# sourceMappingURL=canonical-link.js.map \ No newline at end of file diff --git a/build/compiler/html/canonical-link.js.map b/build/compiler/html/canonical-link.js.map deleted file mode 100644 index 6ebd792f2bc..00000000000 --- a/build/compiler/html/canonical-link.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canonical-link.js","sourceRoot":"","sources":["../../../src/compiler/html/canonical-link.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAa,EAAE,IAAY,EAAE,EAAE;IACjE,wEAAwE;IACxE,uFAAuF;IACvF,IAAI,gBAAgB,GAAG,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;IAEvE,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,2BAA2B;QAC3B,IAAI,gBAAgB,IAAI,IAAI,EAAE;YAC5B,8CAA8C;YAC9C,gBAAgB,GAAG,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YAC7C,gBAAgB,CAAC,YAAY,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;YAClD,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;SACxC;QAED,yBAAyB;QACzB,gBAAgB,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;KAC7C;SAAM;QACL,oBAAoB;QACpB,IAAI,gBAAgB,IAAI,IAAI,EAAE;YAC5B,+DAA+D;YAC/D,MAAM,YAAY,GAAG,gBAAgB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;YAC3D,IAAI,CAAC,YAAY,EAAE;gBACjB,gBAAgB,CAAC,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;aAC3D;SACF;KACF;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/html/html-utils.d.ts b/build/compiler/html/html-utils.d.ts deleted file mode 100644 index 9ae92ad9c09..00000000000 --- a/build/compiler/html/html-utils.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Get the path to the build directory where files written for the `www` output - * target should be written. - * - * @param outputTarget a www output target of interest - * @returns a path to the build directory for that output target - */ -export declare const getAbsoluteBuildDir: (outputTarget: d.OutputTargetWww) => string; diff --git a/build/compiler/html/html-utils.js b/build/compiler/html/html-utils.js deleted file mode 100644 index d7e0545125d..00000000000 --- a/build/compiler/html/html-utils.js +++ /dev/null @@ -1,13 +0,0 @@ -import { join, relative } from '@utils'; -/** - * Get the path to the build directory where files written for the `www` output - * target should be written. - * - * @param outputTarget a www output target of interest - * @returns a path to the build directory for that output target - */ -export const getAbsoluteBuildDir = (outputTarget) => { - const relativeBuildDir = relative(outputTarget.dir, outputTarget.buildDir); - return join('/', relativeBuildDir) + '/'; -}; -//# sourceMappingURL=html-utils.js.map \ No newline at end of file diff --git a/build/compiler/html/html-utils.js.map b/build/compiler/html/html-utils.js.map deleted file mode 100644 index fb6bb80cffa..00000000000 --- a/build/compiler/html/html-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"html-utils.js","sourceRoot":"","sources":["../../../src/compiler/html/html-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIxC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,YAA+B,EAAU,EAAE;IAC7E,MAAM,gBAAgB,GAAG,QAAQ,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC3E,OAAO,IAAI,CAAC,GAAG,EAAE,gBAAgB,CAAC,GAAG,GAAG,CAAC;AAC3C,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/html/inject-module-preloads.d.ts b/build/compiler/html/inject-module-preloads.d.ts deleted file mode 100644 index 1cb25986171..00000000000 --- a/build/compiler/html/inject-module-preloads.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as d from '../../declarations'; -export declare const optimizeCriticalPath: (doc: Document, criticalBundlers: string[], outputTarget: d.OutputTargetWww) => void; -export declare const injectModulePreloads: (doc: Document, paths: string[]) => void; diff --git a/build/compiler/html/inject-module-preloads.js b/build/compiler/html/inject-module-preloads.js deleted file mode 100644 index 236ed2317b7..00000000000 --- a/build/compiler/html/inject-module-preloads.js +++ /dev/null @@ -1,30 +0,0 @@ -import { join } from '@utils'; -import { getAbsoluteBuildDir } from './html-utils'; -export const optimizeCriticalPath = (doc, criticalBundlers, outputTarget) => { - const buildDir = getAbsoluteBuildDir(outputTarget); - const paths = criticalBundlers.map((path) => join(buildDir, path)); - injectModulePreloads(doc, paths); -}; -export const injectModulePreloads = (doc, paths) => { - const existingLinks = Array.from(doc.querySelectorAll('link[rel=modulepreload]')).map((link) => link.getAttribute('href')); - const addLinks = paths.filter((path) => !existingLinks.includes(path)).map((path) => createModulePreload(doc, path)); - const head = doc.head; - const firstScript = head.querySelector('script'); - if (firstScript) { - for (const link of addLinks) { - head.insertBefore(link, firstScript); - } - } - else { - for (const link of addLinks) { - head.appendChild(link); - } - } -}; -const createModulePreload = (doc, href) => { - const link = doc.createElement('link'); - link.setAttribute('rel', 'modulepreload'); - link.setAttribute('href', href); - return link; -}; -//# sourceMappingURL=inject-module-preloads.js.map \ No newline at end of file diff --git a/build/compiler/html/inject-module-preloads.js.map b/build/compiler/html/inject-module-preloads.js.map deleted file mode 100644 index 36d3875480a..00000000000 --- a/build/compiler/html/inject-module-preloads.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inject-module-preloads.js","sourceRoot":"","sources":["../../../src/compiler/html/inject-module-preloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,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AC,WAAW,CAAC,IAAI,CAAC,CAAC;SACxB;KACF;AACH,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,GAAa,EAAE,IAAY,EAAE,EAAE;IAC1D,MAAM,IAAI,GAAG,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IACvC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IAC1C,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAChC,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/html/inject-sw-script.d.ts b/build/compiler/html/inject-sw-script.d.ts deleted file mode 100644 index 8368dd4061b..00000000000 --- a/build/compiler/html/inject-sw-script.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const updateIndexHtmlServiceWorker: (config: d.ValidatedConfig, buildCtx: d.BuildCtx, doc: Document, outputTarget: d.OutputTargetWww) => Promise; diff --git a/build/compiler/html/inject-sw-script.js b/build/compiler/html/inject-sw-script.js deleted file mode 100644 index f391e82a06d..00000000000 --- a/build/compiler/html/inject-sw-script.js +++ /dev/null @@ -1,30 +0,0 @@ -import { getRegisterSW, UNREGISTER_SW } from '../service-worker/generate-sw'; -import { generateServiceWorkerUrl } from '../service-worker/service-worker-util'; -export const updateIndexHtmlServiceWorker = async (config, buildCtx, doc, outputTarget) => { - const serviceWorker = outputTarget.serviceWorker; - if (serviceWorker !== false) { - if ((serviceWorker && serviceWorker.unregister) || (!serviceWorker && config.devMode)) { - injectUnregisterServiceWorker(doc); - } - else if (serviceWorker) { - await injectRegisterServiceWorker(buildCtx, outputTarget, doc); - } - } -}; -const injectRegisterServiceWorker = async (buildCtx, outputTarget, doc) => { - const swUrl = generateServiceWorkerUrl(outputTarget, outputTarget.serviceWorker); - const serviceWorker = getRegisterSwScript(doc, buildCtx, swUrl); - doc.body.appendChild(serviceWorker); -}; -const injectUnregisterServiceWorker = (doc) => { - const script = doc.createElement('script'); - script.innerHTML = UNREGISTER_SW; - doc.body.appendChild(script); -}; -const getRegisterSwScript = (doc, buildCtx, swUrl) => { - const script = doc.createElement('script'); - script.setAttribute('data-build', `${buildCtx.timestamp}`); - script.innerHTML = getRegisterSW(swUrl); - return script; -}; -//# sourceMappingURL=inject-sw-script.js.map \ No newline at end of file diff --git a/build/compiler/html/inject-sw-script.js.map b/build/compiler/html/inject-sw-script.js.map deleted file mode 100644 index b20533ea839..00000000000 --- a/build/compiler/html/inject-sw-script.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inject-sw-script.js","sourceRoot":"","sources":["../../../src/compiler/html/inject-sw-script.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEjF,MAAM,CAAC,MAAM,4BAA4B,GAAG,KAAK,EAC/C,MAAyB,EACzB,QAAoB,EACpB,GAAa,EACb,YAA+B,EAC/B,EAAE;IACF,MAAM,aAAa,GAAG,YAAY,CAAC,aAAa,CAAC;IAEjD,IAAI,aAAa,KAAK,KAAK,EAAE;QAC3B,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE;YACrF,6BAA6B,CAAC,GAAG,CAAC,CAAC;SACpC;aAAM,IAAI,aAAa,EAAE;YACxB,MAAM,2BAA2B,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,CAAC,CAAC;SAChE;KACF;AACH,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAG,KAAK,EAAE,QAAoB,EAAE,YAA+B,EAAE,GAAa,EAAE,EAAE;IACjH,MAAM,KAAK,GAAG,wBAAwB,CAAC,YAAY,EAAE,YAAY,CAAC,aAAsC,CAAC,CAAC;IAC1G,MAAM,aAAa,GAAG,mBAAmB,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAChE,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,6BAA6B,GAAG,CAAC,GAAa,EAAE,EAAE;IACtD,MAAM,MAAM,GAAG,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC3C,MAAM,CAAC,SAAS,GAAG,aAAa,CAAC;IACjC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,GAAa,EAAE,QAAoB,EAAE,KAAa,EAAE,EAAE;IACjF,MAAM,MAAM,GAAG,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC3C,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,SAAS,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/compiler/html/inline-esm-import.d.ts b/build/compiler/html/inline-esm-import.d.ts deleted file mode 100644 index aa9c28df663..00000000000 --- a/build/compiler/html/inline-esm-import.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Attempt to optimize an ESM import of the main entry point for a `www` build - * by inlining the imported script within the supplied HTML document, if - * possible. - * - * This will only do this for a ` - results.staticData.push({ - id: staticDataKey, - type: childElm.getAttribute('type'), - content: childElm.textContent, - }); - } - } - break; - } - } - depth++; - inspectElement(results, childElm, depth); - } -} -function collectAttributes(node) { - const parsedElm = {}; - const attrs = node.attributes; - for (let i = 0, ii = attrs.length; i < ii; i++) { - const attr = attrs.item(i); - const attrName = attr.nodeName.toLowerCase(); - if (SKIP_ATTRS.has(attrName)) { - continue; - } - const attrValue = attr.nodeValue; - if (attrName === 'class' && attrValue === '') { - continue; - } - parsedElm[attrName] = attrValue; - } - return parsedElm; -} -const SKIP_ATTRS = new Set(['s-id', 'c-id']); -//# sourceMappingURL=inspect-element.js.map \ No newline at end of file diff --git a/build/hydrate/runner/inspect-element.js.map b/build/hydrate/runner/inspect-element.js.map deleted file mode 100644 index ef2edd653d3..00000000000 --- a/build/hydrate/runner/inspect-element.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inspect-element.js","sourceRoot":"","sources":["../../../src/hydrate/runner/inspect-element.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,cAAc,CAAC,OAAyB,EAAE,GAAY,EAAE,KAAa;IACnF,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;IAE9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;QACjD,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC7B,MAAM,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QAEhD,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACzB,wDAAwD;YACxD,sDAAsD;YACtD,gCAAgC;YAChC,MAAM,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,CAAC;YAC9D,IAAI,GAAG,IAAI,IAAI,EAAE;gBACf,GAAG,CAAC,KAAK,EAAE,CAAC;gBACZ,IAAI,KAAK,GAAG,GAAG,CAAC,KAAK,EAAE;oBACrB,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC;iBACnB;aACF;SACF;aAAM;YACL,QAAQ,OAAO,EAAE;gBACf,KAAK,GAAG;oBACN,MAAM,MAAM,GAAG,iBAAiB,CAAC,QAAQ,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K,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;QAC9C,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC3B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QAC7C,IAAI,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;YAC5B,SAAS;SACV;QACD,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QACjC,IAAI,QAAQ,KAAK,OAAO,IAAI,SAAS,KAAK,EAAE,EAAE;YAC5C,SAAS;SACV;QACD,SAAS,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;KACjC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/hydrate/runner/patch-dom-implementation.d.ts b/build/hydrate/runner/patch-dom-implementation.d.ts deleted file mode 100644 index ef5f255a6a2..00000000000 --- a/build/hydrate/runner/patch-dom-implementation.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare function patchDomImplementation(doc: any, opts: d.HydrateFactoryOptions): Window & typeof globalThis; diff --git a/build/hydrate/runner/patch-dom-implementation.js b/build/hydrate/runner/patch-dom-implementation.js deleted file mode 100644 index ce8cf8b5150..00000000000 --- a/build/hydrate/runner/patch-dom-implementation.js +++ /dev/null @@ -1,60 +0,0 @@ -import { MockWindow, patchWindow } from '@stencil/core/mock-doc'; -export function patchDomImplementation(doc, opts) { - let win; - if (doc.defaultView != null) { - opts.destroyWindow = true; - patchWindow(doc.defaultView); - win = doc.defaultView; - } - else { - opts.destroyWindow = true; - opts.destroyDocument = false; - win = new MockWindow(false); - } - if (win.document !== doc) { - win.document = doc; - } - if (doc.defaultView !== win) { - doc.defaultView = win; - } - const HTMLElement = doc.documentElement.constructor.prototype; - if (typeof HTMLElement.getRootNode !== 'function') { - const elm = doc.createElement('unknown-element'); - const HTMLUnknownElement = elm.constructor.prototype; - HTMLUnknownElement.getRootNode = getRootNode; - } - if (typeof doc.createEvent === 'function') { - const CustomEvent = doc.createEvent('CustomEvent').constructor; - if (win.CustomEvent !== CustomEvent) { - win.CustomEvent = CustomEvent; - } - } - try { - // Assigning the baseURI prevents JavaScript optimizers from treating this as dead code - win.__stencil_baseURI = doc.baseURI; - } - catch (e) { - Object.defineProperty(doc, 'baseURI', { - get() { - const baseElm = doc.querySelector('base[href]'); - if (baseElm) { - return new URL(baseElm.getAttribute('href'), win.location.href).href; - } - return win.location.href; - }, - }); - } - return win; -} -function getRootNode(opts) { - const isComposed = opts != null && opts.composed === true; - let node = this; - while (node.parentNode != null) { - node = node.parentNode; - if (isComposed === true && node.parentNode == null && node.host != null) { - node = node.host; - } - } - return node; -} -//# sourceMappingURL=patch-dom-implementation.js.map \ No newline at end of file diff --git a/build/hydrate/runner/patch-dom-implementation.js.map b/build/hydrate/runner/patch-dom-implementation.js.map deleted file mode 100644 index 0e14181bfd3..00000000000 --- a/build/hydrate/runner/patch-dom-implementation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patch-dom-implementation.js","sourceRoot":"","sources":["../../../src/hydrate/runner/patch-dom-implementation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAIjE,MAAM,UAAU,sBAAsB,CAAC,GAAQ,EAAE,IAA6B;IAC5E,IAAI,GAAQ,CAAC;IAEb,IAAI,GAAG,CAAC,WAAW,IAAI,IAAI,EAAE;QAC3B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC7B,GAAG,GAAG,GAAG,CAAC,WAAW,CAAC;KACvB;SAAM;QACL,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC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C;iBACtE;gBACD,OAAO,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC3B,CAAC;SACF,CAAC,CAAC;KACJ;IAED,OAAO,GAAiC,CAAC;AAC3C,CAAC;AAED,SAAS,WAAW,CAAC,IAAiD;IACpE,MAAM,UAAU,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC;IAE1D,IAAI,IAAI,GAAS,IAAW,CAAC;IAE7B,OAAO,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;QAC9B,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;QAEvB,IAAI,UAAU,KAAK,IAAI,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,IAAK,IAAY,CAAC,IAAI,IAAI,IAAI,EAAE;YAChF,IAAI,GAAI,IAAY,CAAC,IAAI,CAAC;SAC3B;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/build/hydrate/runner/render-utils.d.ts b/build/hydrate/runner/render-utils.d.ts deleted file mode 100644 index d0e6349a4fd..00000000000 --- a/build/hydrate/runner/render-utils.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type * as d from '../../declarations'; -export declare function normalizeHydrateOptions(inputOpts: d.HydrateDocumentOptions): d.HydrateFactoryOptions; -export declare function generateHydrateResults(opts: d.HydrateDocumentOptions): d.HydrateResults; -export declare const createHydrateBuildId: () => string; -export declare function renderBuildDiagnostic(results: d.HydrateResults, level: 'error' | 'warn' | 'info' | 'log' | 'debug', header: string, msg: string): d.Diagnostic; -export declare function renderBuildError(results: d.HydrateResults, msg: string): d.Diagnostic; -export declare function renderCatchError(results: d.HydrateResults, err: any): d.Diagnostic; diff --git a/build/hydrate/runner/render-utils.js b/build/hydrate/runner/render-utils.js deleted file mode 100644 index b408289db38..00000000000 --- a/build/hydrate/runner/render-utils.js +++ /dev/null @@ -1,142 +0,0 @@ -export function normalizeHydrateOptions(inputOpts) { - const outputOpts = Object.assign({ - serializeToHtml: false, - destroyWindow: false, - destroyDocument: false, - }, inputOpts || {}); - if (typeof outputOpts.clientHydrateAnnotations !== 'boolean') { - outputOpts.clientHydrateAnnotations = true; - } - if (typeof outputOpts.constrainTimeouts !== 'boolean') { - outputOpts.constrainTimeouts = true; - } - if (typeof outputOpts.maxHydrateCount !== 'number') { - outputOpts.maxHydrateCount = 300; - } - if (typeof outputOpts.runtimeLogging !== 'boolean') { - outputOpts.runtimeLogging = false; - } - if (typeof outputOpts.timeout !== 'number') { - outputOpts.timeout = 15000; - } - if (Array.isArray(outputOpts.excludeComponents)) { - outputOpts.excludeComponents = outputOpts.excludeComponents.filter(filterValidTags).map(mapValidTags); - } - else { - outputOpts.excludeComponents = []; - } - if (Array.isArray(outputOpts.staticComponents)) { - outputOpts.staticComponents = outputOpts.staticComponents.filter(filterValidTags).map(mapValidTags); - } - else { - outputOpts.staticComponents = []; - } - return outputOpts; -} -function filterValidTags(tag) { - return typeof tag === 'string' && tag.includes('-'); -} -function mapValidTags(tag) { - return tag.trim().toLowerCase(); -} -export function generateHydrateResults(opts) { - if (typeof opts.url !== 'string') { - opts.url = `https://hydrate.stenciljs.com/`; - } - if (typeof opts.buildId !== 'string') { - opts.buildId = createHydrateBuildId(); - } - const results = { - buildId: opts.buildId, - diagnostics: [], - url: opts.url, - host: null, - hostname: null, - href: null, - pathname: null, - port: null, - search: null, - hash: null, - html: null, - httpStatus: null, - hydratedCount: 0, - anchors: [], - components: [], - imgs: [], - scripts: [], - staticData: [], - styles: [], - title: null, - }; - try { - const url = new URL(opts.url, `https://hydrate.stenciljs.com/`); - results.url = url.href; - results.host = url.host; - results.hostname = url.hostname; - results.href = url.href; - results.port = url.port; - results.pathname = url.pathname; - results.search = url.search; - results.hash = url.hash; - } - catch (e) { - renderCatchError(results, e); - } - return results; -} -export const createHydrateBuildId = () => { - // should be case insensitive because it could be in a URL - // and shouldn't start with a number cuz we might use it as a js prop - let chars = 'abcdefghijklmnopqrstuvwxyz'; - let buildId = ''; - while (buildId.length < 8) { - const char = chars[Math.floor(Math.random() * chars.length)]; - buildId += char; - if (buildId.length === 1) { - chars += '0123456789'; - } - } - return buildId; -}; -export function renderBuildDiagnostic(results, level, header, msg) { - const diagnostic = { - level: level, - type: 'build', - header: header, - messageText: msg, - relFilePath: undefined, - absFilePath: undefined, - lines: [], - }; - if (results.pathname) { - if (results.pathname !== '/') { - diagnostic.header += ': ' + results.pathname; - } - } - else if (results.url) { - diagnostic.header += ': ' + results.url; - } - results.diagnostics.push(diagnostic); - return diagnostic; -} -export function renderBuildError(results, msg) { - return renderBuildDiagnostic(results, 'error', 'Hydrate Error', msg); -} -export function renderCatchError(results, err) { - const diagnostic = renderBuildError(results, null); - if (err != null) { - if (err.stack != null) { - diagnostic.messageText = err.stack.toString(); - } - else { - if (err.message != null) { - diagnostic.messageText = err.message.toString(); - } - else { - diagnostic.messageText = err.toString(); - } - } - } - return diagnostic; -} -//# sourceMappingURL=render-utils.js.map \ No newline at end of file diff --git a/build/hydrate/runner/render-utils.js.map b/build/hydrate/runner/render-utils.js.map deleted file mode 100644 index a9d5efe3ad6..00000000000 --- a/build/hydrate/runner/render-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"render-utils.js","sourceRoot":"","sources":["../../../src/hydrate/runner/render-utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,uBAAuB,CAAC,SAAmC;IACzE,MAAM,UAAU,GAA4B,MAAM,CAAC,MAAM,CACvD;QACE,eAAe,EAAE,KAAK;QACtB,aAAa,EAAE,KAAK;QACpB,eAAe,EAAE,KAAK;KACvB,EACD,SAAS,IAAI,EAAE,CAChB,CAAC;IAEF,IAAI,OAAO,UAAU,CAAC,wBAAwB,KAAK,SAAS,EAAE;QAC5D,UAAU,CAAC,wBAAwB,GAAG,IAAI,CAAC;KAC5C;IAED,IAAI,OAAO,UAAU,CAAC,iBAAiB,KAAK,SAAS,EAAE;QACrD,UAAU,CAAC,iBAAiB,GAAG,IAAI,CAAC;K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AE,GAAW;IACrE,OAAO,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAyB,EAAE,GAAQ;IAClE,MAAM,UAAU,GAAG,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAEnD,IAAI,GAAG,IAAI,IAAI,EAAE;QACf,IAAI,GAAG,CAAC,KAAK,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;SAC/C;aAAM;YACL,IAAI,GAAG,CAAC,OAAO,IAAI,IAAI,EAAE;gBACvB,UAAU,CAAC,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;aACjD;iBAAM;gBACL,UAAU,CAAC,WAAW,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;aACzC;SACF;KACF;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"} \ No newline at end of file diff --git a/build/hydrate/runner/render.d.ts b/build/hydrate/runner/render.d.ts deleted file mode 100644 index e1eff24d7ca..00000000000 --- a/build/hydrate/runner/render.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { HydrateDocumentOptions, HydrateFactoryOptions, HydrateResults, SerializeDocumentOptions } from '../../declarations'; -export declare function renderToString(html: string | any, options?: SerializeDocumentOptions): Promise; -export declare function hydrateDocument(doc: any | string, options?: HydrateDocumentOptions): Promise; -export declare function serializeDocumentToString(doc: any, opts: HydrateFactoryOptions): string; diff --git a/build/hydrate/runner/render.js b/build/hydrate/runner/render.js deleted file mode 100644 index 3dd3cde3dcb..00000000000 --- a/build/hydrate/runner/render.js +++ /dev/null @@ -1,256 +0,0 @@ -import { hydrateFactory } from '@hydrate-factory'; -import { MockWindow, serializeNodeToHtml } from '@stencil/core/mock-doc'; -import { hasError, isPromise } from '@utils'; -import { updateCanonicalLink } from '../../compiler/html/canonical-link'; -import { relocateMetaCharset } from '../../compiler/html/relocate-meta-charset'; -import { removeUnusedStyles } from '../../compiler/html/remove-unused-styles'; -import { inspectElement } from './inspect-element'; -import { patchDomImplementation } from './patch-dom-implementation'; -import { generateHydrateResults, normalizeHydrateOptions, renderBuildError, renderCatchError } from './render-utils'; -import { initializeWindow } from './window-initialize'; -export function renderToString(html, options) { - const opts = normalizeHydrateOptions(options); - opts.serializeToHtml = true; - return new Promise((resolve) => { - let win; - const results = generateHydrateResults(opts); - if (hasError(results.diagnostics)) { - resolve(results); - } - else if (typeof html === 'string') { - try { - opts.destroyWindow = true; - opts.destroyDocument = true; - win = new MockWindow(html); - render(win, opts, results, resolve); - } - catch (e) { - if (win && win.close) { - win.close(); - } - win = null; - renderCatchError(results, e); - resolve(results); - } - } - else if (isValidDocument(html)) { - try { - opts.destroyDocument = false; - win = patchDomImplementation(html, opts); - render(win, opts, results, resolve); - } - catch (e) { - if (win && win.close) { - win.close(); - } - win = null; - renderCatchError(results, e); - resolve(results); - } - } - else { - renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`); - resolve(results); - } - }); -} -export function hydrateDocument(doc, options) { - const opts = normalizeHydrateOptions(options); - opts.serializeToHtml = false; - return new Promise((resolve) => { - let win; - const results = generateHydrateResults(opts); - if (hasError(results.diagnostics)) { - resolve(results); - } - else if (typeof doc === 'string') { - try { - opts.destroyWindow = true; - opts.destroyDocument = true; - win = new MockWindow(doc); - render(win, opts, results, resolve); - } - catch (e) { - if (win && win.close) { - win.close(); - } - win = null; - renderCatchError(results, e); - resolve(results); - } - } - else if (isValidDocument(doc)) { - try { - opts.destroyDocument = false; - win = patchDomImplementation(doc, opts); - render(win, opts, results, resolve); - } - catch (e) { - if (win && win.close) { - win.close(); - } - win = null; - renderCatchError(results, e); - resolve(results); - } - } - else { - renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`); - resolve(results); - } - }); -} -function render(win, opts, results, resolve) { - if (!process.__stencilErrors) { - process.__stencilErrors = true; - process.on('unhandledRejection', (e) => { - console.log('unhandledRejection', e); - }); - } - initializeWindow(win, win.document, opts, results); - if (typeof opts.beforeHydrate === 'function') { - try { - const rtn = opts.beforeHydrate(win.document); - if (isPromise(rtn)) { - rtn.then(() => { - hydrateFactory(win, opts, results, afterHydrate, resolve); - }); - } - else { - hydrateFactory(win, opts, results, afterHydrate, resolve); - } - } - catch (e) { - renderCatchError(results, e); - finalizeHydrate(win, win.document, opts, results, resolve); - } - } - else { - hydrateFactory(win, opts, results, afterHydrate, resolve); - } -} -function afterHydrate(win, opts, results, resolve) { - if (typeof opts.afterHydrate === 'function') { - try { - const rtn = opts.afterHydrate(win.document); - if (isPromise(rtn)) { - rtn.then(() => { - finalizeHydrate(win, win.document, opts, results, resolve); - }); - } - else { - finalizeHydrate(win, win.document, opts, results, resolve); - } - } - catch (e) { - renderCatchError(results, e); - finalizeHydrate(win, win.document, opts, results, resolve); - } - } - else { - finalizeHydrate(win, win.document, opts, results, resolve); - } -} -function finalizeHydrate(win, doc, opts, results, resolve) { - try { - inspectElement(results, doc.documentElement, 0); - if (opts.removeUnusedStyles !== false) { - try { - removeUnusedStyles(doc, results.diagnostics); - } - catch (e) { - renderCatchError(results, e); - } - } - if (typeof opts.title === 'string') { - try { - doc.title = opts.title; - } - catch (e) { - renderCatchError(results, e); - } - } - results.title = doc.title; - if (opts.removeScripts) { - removeScripts(doc.documentElement); - } - try { - updateCanonicalLink(doc, opts.canonicalUrl); - } - catch (e) { - renderCatchError(results, e); - } - try { - relocateMetaCharset(doc); - } - catch (e) { } - if (!hasError(results.diagnostics)) { - results.httpStatus = 200; - } - try { - const metaStatus = doc.head.querySelector('meta[http-equiv="status"]'); - if (metaStatus != null) { - const metaStatusContent = metaStatus.getAttribute('content'); - if (metaStatusContent && metaStatusContent.length > 0) { - results.httpStatus = parseInt(metaStatusContent, 10); - } - } - } - catch (e) { } - if (opts.clientHydrateAnnotations) { - doc.documentElement.classList.add('hydrated'); - } - if (opts.serializeToHtml) { - results.html = serializeDocumentToString(doc, opts); - } - } - catch (e) { - renderCatchError(results, e); - } - if (opts.destroyWindow) { - try { - if (!opts.destroyDocument) { - win.document = null; - doc.defaultView = null; - } - if (win.close) { - win.close(); - } - } - catch (e) { - renderCatchError(results, e); - } - } - resolve(results); -} -export function serializeDocumentToString(doc, opts) { - return serializeNodeToHtml(doc, { - approximateLineWidth: opts.approximateLineWidth, - outerHtml: false, - prettyHtml: opts.prettyHtml, - removeAttributeQuotes: opts.removeAttributeQuotes, - removeBooleanAttributeQuotes: opts.removeBooleanAttributeQuotes, - removeEmptyAttributes: opts.removeEmptyAttributes, - removeHtmlComments: opts.removeHtmlComments, - serializeShadowRoot: false, - }); -} -function isValidDocument(doc) { - return (doc != null && - doc.nodeType === 9 && - doc.documentElement != null && - doc.documentElement.nodeType === 1 && - doc.body != null && - doc.body.nodeType === 1); -} -function removeScripts(elm) { - const children = elm.children; - for (let i = children.length - 1; i >= 0; i--) { - const child = children[i]; - removeScripts(child); - if (child.nodeName === 'SCRIPT' || (child.nodeName === 'LINK' && child.getAttribute('rel') === 'modulepreload')) { - child.remove(); - } - } -} -//# sourceMappingURL=render.js.map \ No newline at end of file diff --git a/build/hydrate/runner/render.js.map b/build/hydrate/runner/render.js.map deleted file mode 100644 index 2dd65d90d9b..00000000000 --- a/build/hydrate/runner/render.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"render.js","sourceRoot":"","sources":["../../../src/hydrate/runner/render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,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AAC,KAAK,CAAC,QAAQ,KAAK,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,eAAe,CAAC,EAAE;YAC/G,KAAK,CAAC,MAAM,EAAE,CAAC;SAChB;KACF;AACH,CAAC"} \ No newline at end of file diff --git a/build/hydrate/runner/runtime-log.d.ts b/build/hydrate/runner/runtime-log.d.ts deleted file mode 100644 index f59295dd34f..00000000000 --- a/build/hydrate/runner/runtime-log.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare function runtimeLogging(win: Window & typeof globalThis, opts: d.HydrateDocumentOptions, results: d.HydrateResults): void; diff --git a/build/hydrate/runner/runtime-log.js b/build/hydrate/runner/runtime-log.js deleted file mode 100644 index a5addbaaa86..00000000000 --- a/build/hydrate/runner/runtime-log.js +++ /dev/null @@ -1,49 +0,0 @@ -import { renderBuildDiagnostic, renderCatchError } from './render-utils'; -export function runtimeLogging(win, opts, results) { - try { - const pathname = win.location.pathname; - win.console.error = (...msgs) => { - const errMsg = msgs - .reduce((errMsg, m) => { - if (m) { - if (m.stack != null) { - return errMsg + ' ' + String(m.stack); - } - else { - if (m.message != null) { - return errMsg + ' ' + String(m.message); - } - } - } - return String(m); - }, '') - .trim(); - if (errMsg !== '') { - renderCatchError(results, errMsg); - if (opts.runtimeLogging) { - runtimeLog(pathname, 'error', [errMsg]); - } - } - }; - win.console.debug = (...msgs) => { - renderBuildDiagnostic(results, 'debug', 'Hydrate Debug', [...msgs].join(', ')); - if (opts.runtimeLogging) { - runtimeLog(pathname, 'debug', msgs); - } - }; - if (opts.runtimeLogging) { - ['log', 'warn', 'assert', 'info', 'trace'].forEach((type) => { - win.console[type] = (...msgs) => { - runtimeLog(pathname, type, msgs); - }; - }); - } - } - catch (e) { - renderCatchError(results, e); - } -} -function runtimeLog(pathname, type, msgs) { - global.console[type].apply(global.console, [`[ ${pathname} ${type} ] `, ...msgs]); -} -//# sourceMappingURL=runtime-log.js.map \ No newline at end of file diff --git a/build/hydrate/runner/runtime-log.js.map b/build/hydrate/runner/runtime-log.js.map deleted file mode 100644 index 4788445dab2..00000000000 --- a/build/hydrate/runner/runtime-log.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime-log.js","sourceRoot":"","sources":["../../../src/hydrate/runner/runtime-log.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEzE,MAAM,UAAU,cAAc,CAC5B,GAA+B,EAC/B,IAA8B,EAC9B,OAAyB;IAEzB,IAAI;QACF,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAEvC,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,GAAG,IAAW,EAAE,EAAE;YACrC,MAAM,MAAM,GAAG,IAAI;iBAChB,MAAM,CAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC5B,IAAI,CAAC,EAAE;oBACL,IAAI,CAAC,CAAC,KAAK,IAAI,IAAI,EAAE;wBACnB,OAAO,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;qBACvC;yBAAM;wBACL,IAAI,CAAC,CAAC,OAAO,IAAI,IAAI,EAAE;4BACrB,OAAO,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;yBACzC;qBACF;iBACF;gBACD,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;YACnB,CAAC,EAAE,EAAE,CAAC;iBACL,IAAI,EAAE,CAAC;YAEV,IAAI,MAAM,KAAK,EAAE,EAAE;gBACjB,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;gBAElC,IAAI,IAAI,CAAC,cAAc,EAAE;oBACvB,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;iBACzC;aACF;QACH,CAAC,CAAC;QAEF,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,GAAG,IAAW,EAAE,EAAE;YACrC,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAC/E,IAAI,IAAI,CAAC,cAAc,EAAE;gBACvB,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;aACrC;QACH,CAAC,CAAC;QAEF,IAAI,IAAI,CAAC,cAAc,EAAE;YACvB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBACzD,GAAG,CAAC,OAAe,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAW,EAAE,EAAE;oBAC9C,UAAU,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;gBACnC,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;SACJ;KACF;IAAC,OAAO,CAAC,EAAE;QACV,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;KAC9B;AACH,CAAC;AAED,SAAS,UAAU,CAAC,QAAgB,EAAE,IAAY,EAAE,IAAW;IAC5D,MAAM,CAAC,OAAe,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,QAAQ,KAAK,IAAI,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;AAC9F,CAAC"} \ No newline at end of file diff --git a/build/hydrate/runner/window-initialize.d.ts b/build/hydrate/runner/window-initialize.d.ts deleted file mode 100644 index 04efc4eb596..00000000000 --- a/build/hydrate/runner/window-initialize.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare function initializeWindow(win: Window & typeof globalThis, doc: Document, opts: d.HydrateDocumentOptions, results: d.HydrateResults): Window & typeof globalThis; diff --git a/build/hydrate/runner/window-initialize.js b/build/hydrate/runner/window-initialize.js deleted file mode 100644 index cb7669dad25..00000000000 --- a/build/hydrate/runner/window-initialize.js +++ /dev/null @@ -1,59 +0,0 @@ -import { constrainTimeouts } from '@stencil/core/mock-doc'; -import { renderCatchError } from './render-utils'; -import { runtimeLogging } from './runtime-log'; -export function initializeWindow(win, doc, opts, results) { - try { - win.location.href = opts.url; - } - catch (e) { - renderCatchError(results, e); - } - if (typeof opts.userAgent === 'string') { - try { - win.navigator.userAgent = opts.userAgent; - } - catch (e) { } - } - if (typeof opts.cookie === 'string') { - try { - doc.cookie = opts.cookie; - } - catch (e) { } - } - if (typeof opts.referrer === 'string') { - try { - doc.referrer = opts.referrer; - } - catch (e) { } - } - if (typeof opts.direction === 'string') { - try { - doc.documentElement.setAttribute('dir', opts.direction); - } - catch (e) { } - } - if (typeof opts.language === 'string') { - try { - doc.documentElement.setAttribute('lang', opts.language); - } - catch (e) { } - } - if (typeof opts.buildId === 'string') { - try { - doc.documentElement.setAttribute('data-stencil-build', opts.buildId); - } - catch (e) { } - } - try { - // TODO(STENCIL-345) - Evaluate reconciling MockWindow, Window differences - // @ts-ignore - win.customElements = null; - } - catch (e) { } - if (opts.constrainTimeouts) { - constrainTimeouts(win); - } - runtimeLogging(win, opts, results); - return win; -} -//# sourceMappingURL=window-initialize.js.map \ No newline at end of file diff --git a/build/hydrate/runner/window-initialize.js.map b/build/hydrate/runner/window-initialize.js.map deleted file mode 100644 index e882067c4c0..00000000000 --- a/build/hydrate/runner/window-initialize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"window-initialize.js","sourceRoot":"","sources":["../../../src/hydrate/runner/window-initialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE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,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;SACtE;QAAC,OAAO,CAAC,EAAE,GAAE;KACf;IAED,IAAI;QACF,0EAA0E;QAC1E,aAAa;QACb,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC;KAC3B;IAAC,OAAO,CAAC,EAAE,GAAE;IAEd,IAAI,IAAI,CAAC,iBAAiB,EAAE;QAC1B,iBAAiB,CAAC,GAAG,CAAC,CAAC;KACxB;IAED,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAEnC,OAAO,GAAG,CAAC;AACb,CAAC"} \ No newline at end of file diff --git a/build/internal/default.d.ts b/build/internal/default.d.ts deleted file mode 100644 index c1ea565c2cc..00000000000 --- a/build/internal/default.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@stencil/core/internal/client'; diff --git a/build/internal/default.js b/build/internal/default.js deleted file mode 100644 index 188c3f52119..00000000000 --- a/build/internal/default.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from '@stencil/core/internal/client'; -//# sourceMappingURL=default.js.map \ No newline at end of file diff --git a/build/internal/default.js.map b/build/internal/default.js.map deleted file mode 100644 index 51313c5f37f..00000000000 --- a/build/internal/default.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"default.js","sourceRoot":"","sources":["../../src/internal/default.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"} \ No newline at end of file diff --git a/build/internal/index.d.ts b/build/internal/index.d.ts deleted file mode 100644 index b53904afce4..00000000000 --- a/build/internal/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '../declarations'; diff --git a/build/internal/index.js b/build/internal/index.js deleted file mode 100644 index f240bfa5dc3..00000000000 --- a/build/internal/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from '../declarations'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/internal/index.js.map b/build/internal/index.js.map deleted file mode 100644 index b4166d3aa8d..00000000000 --- a/build/internal/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/attribute.d.ts b/build/mock-doc/attribute.d.ts deleted file mode 100644 index 108a82ce8f2..00000000000 --- a/build/mock-doc/attribute.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export declare const createAttributeProxy: (caseInsensitive: boolean) => any; -export declare class MockAttributeMap { - caseInsensitive: boolean; - __items: MockAttr[]; - constructor(caseInsensitive?: boolean); - get length(): number; - item(index: number): MockAttr; - setNamedItem(attr: MockAttr): void; - setNamedItemNS(attr: MockAttr): void; - getNamedItem(attrName: string): MockAttr; - getNamedItemNS(namespaceURI: string | null, attrName: string): MockAttr; - removeNamedItem(attr: MockAttr): void; - removeNamedItemNS(attr: MockAttr): void; - [Symbol.iterator](): { - next: () => { - done: boolean; - value: MockAttr; - }; - }; - get [Symbol.toStringTag](): string; -} -export declare function cloneAttributes(srcAttrs: MockAttributeMap, sortByName?: boolean): MockAttributeMap; -export declare class MockAttr { - private _name; - private _value; - private _namespaceURI; - constructor(attrName: string, attrValue: string, namespaceURI?: string | null); - get name(): string; - set name(value: string); - get value(): string; - set value(value: string); - get nodeName(): string; - set nodeName(value: string); - get nodeValue(): string; - set nodeValue(value: string); - get namespaceURI(): string; - set namespaceURI(namespaceURI: string); -} diff --git a/build/mock-doc/attribute.js b/build/mock-doc/attribute.js deleted file mode 100644 index de3a1dcac3a..00000000000 --- a/build/mock-doc/attribute.js +++ /dev/null @@ -1,147 +0,0 @@ -import { XLINK_NS } from '../runtime/runtime-constants'; -const attrHandler = { - get(obj, prop) { - if (prop in obj) { - return obj[prop]; - } - if (typeof prop !== 'symbol' && !isNaN(prop)) { - return obj.__items[prop]; - } - return undefined; - }, -}; -export const createAttributeProxy = (caseInsensitive) => new Proxy(new MockAttributeMap(caseInsensitive), attrHandler); -export class MockAttributeMap { - constructor(caseInsensitive = false) { - this.caseInsensitive = caseInsensitive; - this.__items = []; - } - get length() { - return this.__items.length; - } - item(index) { - return this.__items[index] || null; - } - setNamedItem(attr) { - attr.namespaceURI = null; - this.setNamedItemNS(attr); - } - setNamedItemNS(attr) { - if (attr != null && attr.value != null) { - attr.value = String(attr.value); - } - const existingAttr = this.__items.find((a) => a.name === attr.name && a.namespaceURI === attr.namespaceURI); - if (existingAttr != null) { - existingAttr.value = attr.value; - } - else { - this.__items.push(attr); - } - } - getNamedItem(attrName) { - if (this.caseInsensitive) { - attrName = attrName.toLowerCase(); - } - return this.getNamedItemNS(null, attrName); - } - getNamedItemNS(namespaceURI, attrName) { - namespaceURI = getNamespaceURI(namespaceURI); - return (this.__items.find((attr) => attr.name === attrName && getNamespaceURI(attr.namespaceURI) === namespaceURI) || null); - } - removeNamedItem(attr) { - this.removeNamedItemNS(attr); - } - removeNamedItemNS(attr) { - for (let i = 0, ii = this.__items.length; i < ii; i++) { - if (this.__items[i].name === attr.name && this.__items[i].namespaceURI === attr.namespaceURI) { - this.__items.splice(i, 1); - break; - } - } - } - [Symbol.iterator]() { - let i = 0; - return { - next: () => ({ - done: i === this.length, - value: this.item(i++), - }), - }; - } - get [Symbol.toStringTag]() { - return 'MockAttributeMap'; - } -} -function getNamespaceURI(namespaceURI) { - return namespaceURI === XLINK_NS ? null : namespaceURI; -} -export function cloneAttributes(srcAttrs, sortByName = false) { - const dstAttrs = new MockAttributeMap(srcAttrs.caseInsensitive); - if (srcAttrs != null) { - const attrLen = srcAttrs.length; - if (sortByName && attrLen > 1) { - const sortedAttrs = []; - for (let i = 0; i < attrLen; i++) { - const srcAttr = srcAttrs.item(i); - const dstAttr = new MockAttr(srcAttr.name, srcAttr.value, srcAttr.namespaceURI); - sortedAttrs.push(dstAttr); - } - sortedAttrs.sort(sortAttributes).forEach((attr) => { - dstAttrs.setNamedItemNS(attr); - }); - } - else { - for (let i = 0; i < attrLen; i++) { - const srcAttr = srcAttrs.item(i); - const dstAttr = new MockAttr(srcAttr.name, srcAttr.value, srcAttr.namespaceURI); - dstAttrs.setNamedItemNS(dstAttr); - } - } - } - return dstAttrs; -} -function sortAttributes(a, b) { - if (a.name < b.name) - return -1; - if (a.name > b.name) - return 1; - return 0; -} -export class MockAttr { - constructor(attrName, attrValue, namespaceURI = null) { - this._name = attrName; - this._value = String(attrValue); - this._namespaceURI = namespaceURI; - } - get name() { - return this._name; - } - set name(value) { - this._name = value; - } - get value() { - return this._value; - } - set value(value) { - this._value = String(value); - } - get nodeName() { - return this._name; - } - set nodeName(value) { - this._name = value; - } - get nodeValue() { - return this._value; - } - set nodeValue(value) { - this._value = String(value); - } - get namespaceURI() { - return this._namespaceURI; - } - set namespaceURI(namespaceURI) { - this._namespaceURI = namespaceURI; - } -} -//# sourceMappingURL=attribute.js.map \ No newline at end of file diff --git a/build/mock-doc/attribute.js.map b/build/mock-doc/attribute.js.map deleted file mode 100644 index 5af054f25a0..00000000000 --- a/build/mock-doc/attribute.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"attribute.js","sourceRoot":"","sources":["../../src/mock-doc/attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,MAAM,WAAW,GAAG;IAClB,GAAG,CAAC,GAAQ,EAAE,IAAY;QACxB,IAAI,IAAI,IAAI,GAAG,EAAE;YACf,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;SAClB;QACD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAW,CAAC,EAAE;YACnD,OAAQ,GAAwB,CAAC,OAAO,CAAC,IAAW,CAAC,CAAC;SACvD;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,eAAwB,EAAE,EAAE,CAC/D,IAAI,KAAK,CAAC,IAAI,gBAAgB,CAAC,eAAe,CAAC,EAAE,WAAW,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C;IACpC,CAAC;CACF"} \ No newline at end of file diff --git a/build/mock-doc/class-list.d.ts b/build/mock-doc/class-list.d.ts deleted file mode 100644 index ecff7234483..00000000000 --- a/build/mock-doc/class-list.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare class MockClassList { - private elm; - constructor(elm: HTMLElement); - add(...classNames: string[]): void; - remove(...classNames: string[]): void; - contains(className: string): boolean; - toggle(className: string): void; - get length(): number; - item(index: number): string; - toString(): string; -} diff --git a/build/mock-doc/class-list.js b/build/mock-doc/class-list.js deleted file mode 100644 index fc8bcb63169..00000000000 --- a/build/mock-doc/class-list.js +++ /dev/null @@ -1,77 +0,0 @@ -export class MockClassList { - constructor(elm) { - this.elm = elm; - } - add(...classNames) { - const clsNames = getItems(this.elm); - let updated = false; - classNames.forEach((className) => { - className = String(className); - validateClass(className); - if (clsNames.includes(className) === false) { - clsNames.push(className); - updated = true; - } - }); - if (updated) { - this.elm.setAttributeNS(null, 'class', clsNames.join(' ')); - } - } - remove(...classNames) { - const clsNames = getItems(this.elm); - let updated = false; - classNames.forEach((className) => { - className = String(className); - validateClass(className); - const index = clsNames.indexOf(className); - if (index > -1) { - clsNames.splice(index, 1); - updated = true; - } - }); - if (updated) { - this.elm.setAttributeNS(null, 'class', clsNames.filter((c) => c.length > 0).join(' ')); - } - } - contains(className) { - className = String(className); - return getItems(this.elm).includes(className); - } - toggle(className) { - className = String(className); - if (this.contains(className) === true) { - this.remove(className); - } - else { - this.add(className); - } - } - get length() { - return getItems(this.elm).length; - } - item(index) { - return getItems(this.elm)[index]; - } - toString() { - return getItems(this.elm).join(' '); - } -} -function validateClass(className) { - if (className === '') { - throw new Error('The token provided must not be empty.'); - } - if (/\s/.test(className)) { - throw new Error(`The token provided ('${className}') contains HTML space characters, which are not valid in tokens.`); - } -} -function getItems(elm) { - const className = elm.getAttribute('class'); - if (typeof className === 'string' && className.length > 0) { - return className - .trim() - .split(' ') - .filter((c) => c.length > 0); - } - return []; -} -//# sourceMappingURL=class-list.js.map \ No newline at end of file diff --git a/build/mock-doc/class-list.js.map b/build/mock-doc/class-list.js.map deleted file mode 100644 index 5a9f5e67a14..00000000000 --- a/build/mock-doc/class-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"class-list.js","sourceRoot":"","sources":["../../src/mock-doc/class-list.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAa;IACxB,YAAoB,GAAgB;QAAhB,QAAG,GAAH,GAAG,CAAa;IAAG,CAAC;IAExC,GAAG,CAAC,GAAG,UAAoB;QACzB,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpC,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAC/B,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;YAC9B,aAAa,CAAC,SAAS,CAAC,CAAC;YACzB,IAAI,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,KAAK,EAAE;gBAC1C,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACzB,OAAO,GAAG,IAAI,CAAC;aAChB;QACH,CAAC,CAAC,CAAC;QACH,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SAC5D;IACH,CAAC;IAED,MAAM,CAAC,GAAG,UAAoB;QAC5B,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpC,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAC/B,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;YAC9B,aAAa,CAAC,SAAS,CAAC,CAAC;YACzB,MAAM,KAAK,GAAG,QAAQ,CAAC,OA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S,KAAK,EAAE,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;KAC1D;IACD,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;QACxB,MAAM,IAAI,KAAK,CACb,wBAAwB,SAAS,mEAAmE,CACrG,CAAC;KACH;AACH,CAAC;AAED,SAAS,QAAQ,CAAC,GAAgB;IAChC,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAC5C,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;QACzD,OAAO,SAAS;aACb,IAAI,EAAE;aACN,KAAK,CAAC,GAAG,CAAC;aACV,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;KAChC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/comment-node.d.ts b/build/mock-doc/comment-node.d.ts deleted file mode 100644 index 98fc32412f7..00000000000 --- a/build/mock-doc/comment-node.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { MockNode } from './node'; -export declare class MockComment extends MockNode { - constructor(ownerDocument: any, data: string); - cloneNode(_deep?: boolean): MockComment; - get textContent(): string; - set textContent(text: string); -} diff --git a/build/mock-doc/comment-node.js b/build/mock-doc/comment-node.js deleted file mode 100644 index cca9d2a777e..00000000000 --- a/build/mock-doc/comment-node.js +++ /dev/null @@ -1,16 +0,0 @@ -import { MockNode } from './node'; -export class MockComment extends MockNode { - constructor(ownerDocument, data) { - super(ownerDocument, 8 /* NODE_TYPES.COMMENT_NODE */, "#comment" /* NODE_NAMES.COMMENT_NODE */, data); - } - cloneNode(_deep) { - return new MockComment(null, this.nodeValue); - } - get textContent() { - return this.nodeValue; - } - set textContent(text) { - this.nodeValue = text; - } -} -//# sourceMappingURL=comment-node.js.map \ No newline at end of file diff --git a/build/mock-doc/comment-node.js.map b/build/mock-doc/comment-node.js.map deleted file mode 100644 index 79efae86738..00000000000 --- a/build/mock-doc/comment-node.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"comment-node.js","sourceRoot":"","sources":["../../src/mock-doc/comment-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,WAAY,SAAQ,QAAQ;IACvC,YAAY,aAAkB,EAAE,IAAY;QAC1C,KAAK,CAAC,aAAa,6EAAoD,IAAI,CAAC,CAAC;IAC/E,CAAC;IAEQ,SAAS,CAAC,KAAe;QAChC,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC/C,CAAC;IAED,IAAa,WAAW;QACtB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAa,WAAW,CAAC,IAAI;QAC3B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACxB,CAAC;CACF"} \ No newline at end of file diff --git a/build/mock-doc/console.d.ts b/build/mock-doc/console.d.ts deleted file mode 100644 index b9eaf0b4467..00000000000 --- a/build/mock-doc/console.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function createConsole(): any; diff --git a/build/mock-doc/console.js b/build/mock-doc/console.js deleted file mode 100644 index 6d6bb63efaf..00000000000 --- a/build/mock-doc/console.js +++ /dev/null @@ -1,32 +0,0 @@ -const consoleNoop = () => { - /**/ -}; -export function createConsole() { - return { - debug: consoleNoop, - error: consoleNoop, - info: consoleNoop, - log: consoleNoop, - warn: consoleNoop, - dir: consoleNoop, - dirxml: consoleNoop, - table: consoleNoop, - trace: consoleNoop, - group: consoleNoop, - groupCollapsed: consoleNoop, - groupEnd: consoleNoop, - clear: consoleNoop, - count: consoleNoop, - countReset: consoleNoop, - assert: consoleNoop, - profile: consoleNoop, - profileEnd: consoleNoop, - time: consoleNoop, - timeLog: consoleNoop, - timeEnd: consoleNoop, - timeStamp: consoleNoop, - context: consoleNoop, - memory: consoleNoop, - }; -} -//# sourceMappingURL=console.js.map \ No newline at end of file diff --git a/build/mock-doc/console.js.map b/build/mock-doc/console.js.map deleted file mode 100644 index 7624ea3b356..00000000000 --- a/build/mock-doc/console.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"console.js","sourceRoot":"","sources":["../../src/mock-doc/console.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG,GAAG,EAAE;IACvB,IAAI;AACN,CAAC,CAAC;AAEF,MAAM,UAAU,aAAa;IAC3B,OAAO;QACL,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,WAAW;QACjB,GAAG,EAAE,WAAW;QAChB,IAAI,EAAE,WAAW;QACjB,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,WAAW;QACnB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,cAAc,EAAE,WAAW;QAC3B,QAAQ,EAAE,WAAW;QACrB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,UAAU,EAAE,WAAW;QACvB,MAAM,EAAE,WAAW;QACnB,OAAO,EAAE,WAAW;QACpB,UAAU,EAAE,WAAW;QACvB,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,WAAW;QACpB,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,WAAW;QACtB,OAAO,EAAE,WAAW;QACpB,MAAM,EAAE,WAAW;KACpB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/constants.d.ts b/build/mock-doc/constants.d.ts deleted file mode 100644 index d437c65fbd9..00000000000 --- a/build/mock-doc/constants.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export declare const enum NODE_TYPES { - ELEMENT_NODE = 1, - ATTRIBUTE_NODE = 2, - TEXT_NODE = 3, - CDATA_SECTION_NODE = 4, - ENTITY_REFERENCE_NODE = 5, - ENTITY_NODE = 6, - PROCESSING_INSTRUCTION_NODE = 7, - COMMENT_NODE = 8, - DOCUMENT_NODE = 9, - DOCUMENT_TYPE_NODE = 10, - DOCUMENT_FRAGMENT_NODE = 11, - NOTATION_NODE = 12 -} -export declare const enum NODE_NAMES { - COMMENT_NODE = "#comment", - DOCUMENT_NODE = "#document", - DOCUMENT_FRAGMENT_NODE = "#document-fragment", - TEXT_NODE = "#text" -} diff --git a/build/mock-doc/constants.js b/build/mock-doc/constants.js deleted file mode 100644 index e6cef890e23..00000000000 --- a/build/mock-doc/constants.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/build/mock-doc/constants.js.map b/build/mock-doc/constants.js.map deleted file mode 100644 index bda55c6e084..00000000000 --- a/build/mock-doc/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/mock-doc/constants.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/build/mock-doc/css-style-declaration.d.ts b/build/mock-doc/css-style-declaration.d.ts deleted file mode 100644 index 8684913d278..00000000000 --- a/build/mock-doc/css-style-declaration.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export declare class MockCSSStyleDeclaration { - private _styles; - setProperty(prop: string, value: string): void; - getPropertyValue(prop: string): string; - removeProperty(prop: string): void; - get length(): number; - get cssText(): string; - set cssText(cssText: string); -} -export declare function createCSSStyleDeclaration(): MockCSSStyleDeclaration; diff --git a/build/mock-doc/css-style-declaration.js b/build/mock-doc/css-style-declaration.js deleted file mode 100644 index c920f3c19e9..00000000000 --- a/build/mock-doc/css-style-declaration.js +++ /dev/null @@ -1,96 +0,0 @@ -export class MockCSSStyleDeclaration { - constructor() { - this._styles = new Map(); - } - setProperty(prop, value) { - prop = jsCaseToCssCase(prop); - if (value == null || value === '') { - this._styles.delete(prop); - } - else { - this._styles.set(prop, String(value)); - } - } - getPropertyValue(prop) { - prop = jsCaseToCssCase(prop); - return String(this._styles.get(prop) || ''); - } - removeProperty(prop) { - prop = jsCaseToCssCase(prop); - this._styles.delete(prop); - } - get length() { - return this._styles.size; - } - get cssText() { - const cssText = []; - this._styles.forEach((value, prop) => { - cssText.push(`${prop}: ${value};`); - }); - return cssText.join(' ').trim(); - } - set cssText(cssText) { - if (cssText == null || cssText === '') { - this._styles.clear(); - return; - } - cssText.split(';').forEach((rule) => { - rule = rule.trim(); - if (rule.length > 0) { - const splt = rule.split(':'); - if (splt.length > 1) { - const prop = splt[0].trim(); - const value = splt.slice(1).join(':').trim(); - if (prop !== '' && value !== '') { - this._styles.set(jsCaseToCssCase(prop), value); - } - } - } - }); - } -} -export function createCSSStyleDeclaration() { - return new Proxy(new MockCSSStyleDeclaration(), cssProxyHandler); -} -const cssProxyHandler = { - get(cssStyle, prop) { - if (prop in cssStyle) { - return cssStyle[prop]; - } - prop = cssCaseToJsCase(prop); - return cssStyle.getPropertyValue(prop); - }, - set(cssStyle, prop, value) { - if (prop in cssStyle) { - cssStyle[prop] = value; - } - else { - cssStyle.setProperty(prop, value); - } - return true; - }, -}; -function cssCaseToJsCase(str) { - // font-size to fontSize - if (str.length > 1 && str.includes('-') === true) { - str = str - .toLowerCase() - .split('-') - .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)) - .join(''); - str = str.slice(0, 1).toLowerCase() + str.slice(1); - } - return str; -} -function jsCaseToCssCase(str) { - // fontSize to font-size - if (str.length > 1 && str.includes('-') === false && /[A-Z]/.test(str) === true) { - str = str - .replace(/([A-Z])/g, (g) => ' ' + g[0]) - .trim() - .replace(/ /g, '-') - .toLowerCase(); - } - return str; -} -//# sourceMappingURL=css-style-declaration.js.map \ No newline at end of file diff --git a/build/mock-doc/css-style-declaration.js.map b/build/mock-doc/css-style-declaration.js.map deleted file mode 100644 index 198670b8978..00000000000 --- a/build/mock-doc/css-style-declaration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css-style-declaration.js","sourceRoot":"","sources":["../../src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end of file diff --git a/build/mock-doc/css-style-sheet.d.ts b/build/mock-doc/css-style-sheet.d.ts deleted file mode 100644 index 15d0ae23e1e..00000000000 --- a/build/mock-doc/css-style-sheet.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { MockStyleElement } from './element'; -declare class MockCSSRule { - parentStyleSheet: MockCSSStyleSheet; - cssText: string; - type: number; - constructor(parentStyleSheet: MockCSSStyleSheet); -} -export declare class MockCSSStyleSheet { - ownerNode: any; - type: string; - parentStyleSheet: MockCSSStyleSheet; - cssRules: MockCSSRule[]; - constructor(ownerNode: MockStyleElement); - get rules(): MockCSSRule[]; - set rules(rules: MockCSSRule[]); - deleteRule(index: number): void; - insertRule(rule: string, index?: number): number; -} -export declare function getStyleElementText(styleElm: MockStyleElement): string; -export declare function setStyleElementText(styleElm: MockStyleElement, text: string): void; -export {}; diff --git a/build/mock-doc/css-style-sheet.js b/build/mock-doc/css-style-sheet.js deleted file mode 100644 index 0a25e1cda83..00000000000 --- a/build/mock-doc/css-style-sheet.js +++ /dev/null @@ -1,74 +0,0 @@ -class MockCSSRule { - constructor(parentStyleSheet) { - this.parentStyleSheet = parentStyleSheet; - this.cssText = ''; - this.type = 0; - } -} -export class MockCSSStyleSheet { - constructor(ownerNode) { - this.type = 'text/css'; - this.parentStyleSheet = null; - this.cssRules = []; - this.ownerNode = ownerNode; - } - get rules() { - return this.cssRules; - } - set rules(rules) { - this.cssRules = rules; - } - deleteRule(index) { - if (index >= 0 && index < this.cssRules.length) { - this.cssRules.splice(index, 1); - updateStyleTextNode(this.ownerNode); - } - } - insertRule(rule, index = 0) { - if (typeof index !== 'number') { - index = 0; - } - if (index < 0) { - index = 0; - } - if (index > this.cssRules.length) { - index = this.cssRules.length; - } - const cssRule = new MockCSSRule(this); - cssRule.cssText = rule; - this.cssRules.splice(index, 0, cssRule); - updateStyleTextNode(this.ownerNode); - return index; - } -} -export function getStyleElementText(styleElm) { - const output = []; - for (let i = 0; i < styleElm.childNodes.length; i++) { - output.push(styleElm.childNodes[i].nodeValue); - } - return output.join(''); -} -export function setStyleElementText(styleElm, text) { - // keeping the innerHTML and the sheet.cssRules connected - // is not technically correct, but since we're doing - // SSR we'll need to turn any assigned cssRules into - // real text, not just properties that aren't rendered - const sheet = styleElm.sheet; - sheet.cssRules.length = 0; - sheet.insertRule(text); - updateStyleTextNode(styleElm); -} -function updateStyleTextNode(styleElm) { - const childNodeLen = styleElm.childNodes.length; - if (childNodeLen > 1) { - for (let i = childNodeLen - 1; i >= 1; i--) { - styleElm.removeChild(styleElm.childNodes[i]); - } - } - else if (childNodeLen < 1) { - styleElm.appendChild(styleElm.ownerDocument.createTextNode('')); - } - const textNode = styleElm.childNodes[0]; - textNode.nodeValue = styleElm.sheet.cssRules.map((r) => r.cssText).join('\n'); -} -//# sourceMappingURL=css-style-sheet.js.map \ No newline at end of file diff --git a/build/mock-doc/css-style-sheet.js.map b/build/mock-doc/css-style-sheet.js.map deleted file mode 100644 index 0ae33fed51f..00000000000 --- a/build/mock-doc/css-style-sheet.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css-style-sheet.js","sourceRoot":"","sources":["../../src/mock-doc/css-style-sheet.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW;IAGf,YAAmB,gBAAmC;QAAnC,qBAAgB,GAAhB,gBAAgB,CAAmB;QAFtD,YAAO,GAAG,EAAE,CAAC;QACb,SAAI,GAAG,CAAC,CAAC;IACgD,CAAC;CAC3D;AAED,MAAM,OAAO,iBAAiB;IAM5B,YAAY,SAA2B;QAJvC,SAAI,GAAG,UAAU,CAAC;QAClB,qBAAgB,GAAsB,IAAI,CAAC;QAC3C,aAAQ,GAAkB,EAAE,CAAC;QAG3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IACD,IAAI,KAAK,CAAC,KAAK;QACb,IAAI,CAAC,QAAQ,GAAG,KAAK,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BAAmB,CAAC,QAA0B,EAAE,IAAY;IAC1E,yDAAyD;IACzD,oDAAoD;IACpD,oDAAoD;IACpD,sDAAsD;IACtD,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAC7B,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IAC1B,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAEvB,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,mBAAmB,CAAC,QAA0B;IACrD,MAAM,YAAY,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC;IAChD,IAAI,YAAY,GAAG,CAAC,EAAE;QACpB,KAAK,IAAI,CAAC,GAAG,YAAY,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;YAC1C,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;SAC9C;KACF;SAAM,IAAI,YAAY,GAAG,CAAC,EAAE;QAC3B,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC;KACjE;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACxC,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAChF,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/custom-element-registry.d.ts b/build/mock-doc/custom-element-registry.d.ts deleted file mode 100644 index bc0db63a955..00000000000 --- a/build/mock-doc/custom-element-registry.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { MockNode } from './node'; -export declare class MockCustomElementRegistry implements CustomElementRegistry { - private win; - private __registry; - private __whenDefined; - constructor(win: Window); - define(tagName: string, cstr: any, options?: any): void; - get(tagName: string): any; - upgrade(_rootNode: any): void; - clear(): void; - whenDefined(tagName: string): Promise; -} -export declare function createCustomElement(customElements: MockCustomElementRegistry, ownerDocument: any, tagName: string): any; -export declare function connectNode(ownerDocument: any, node: MockNode): void; -export declare function disconnectNode(node: MockNode): void; -export declare function attributeChanged(node: MockNode, attrName: string, oldValue: string | null, newValue: string | null): void; -export declare function checkAttributeChanged(node: MockNode): boolean; diff --git a/build/mock-doc/custom-element-registry.js b/build/mock-doc/custom-element-registry.js deleted file mode 100644 index ecf0829b913..00000000000 --- a/build/mock-doc/custom-element-registry.js +++ /dev/null @@ -1,195 +0,0 @@ -import { MockHTMLElement } from './node'; -export class MockCustomElementRegistry { - constructor(win) { - this.win = win; - } - define(tagName, cstr, options) { - if (tagName.toLowerCase() !== tagName) { - throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': "${tagName}" is not a valid custom element name`); - } - if (this.__registry == null) { - this.__registry = new Map(); - } - this.__registry.set(tagName, { cstr, options }); - if (this.__whenDefined != null) { - const whenDefinedResolveFns = this.__whenDefined.get(tagName); - if (whenDefinedResolveFns != null) { - whenDefinedResolveFns.forEach((whenDefinedResolveFn) => { - whenDefinedResolveFn(); - }); - whenDefinedResolveFns.length = 0; - this.__whenDefined.delete(tagName); - } - } - const doc = this.win.document; - if (doc != null) { - const hosts = doc.querySelectorAll(tagName); - hosts.forEach((host) => { - if (upgradedElements.has(host) === false) { - tempDisableCallbacks.add(doc); - const upgradedCmp = createCustomElement(this, doc, tagName); - for (let i = 0; i < host.childNodes.length; i++) { - const childNode = host.childNodes[i]; - childNode.remove(); - upgradedCmp.appendChild(childNode); - } - tempDisableCallbacks.delete(doc); - if (proxyElements.has(host)) { - proxyElements.set(host, upgradedCmp); - } - } - fireConnectedCallback(host); - }); - } - } - get(tagName) { - if (this.__registry != null) { - const def = this.__registry.get(tagName.toLowerCase()); - if (def != null) { - return def.cstr; - } - } - return undefined; - } - upgrade(_rootNode) { - // - } - clear() { - if (this.__registry != null) { - this.__registry.clear(); - } - if (this.__whenDefined != null) { - this.__whenDefined.clear(); - } - } - whenDefined(tagName) { - tagName = tagName.toLowerCase(); - if (this.__registry != null && this.__registry.has(tagName) === true) { - return Promise.resolve(this.__registry.get(tagName).cstr); - } - return new Promise((resolve) => { - if (this.__whenDefined == null) { - this.__whenDefined = new Map(); - } - let whenDefinedResolveFns = this.__whenDefined.get(tagName); - if (whenDefinedResolveFns == null) { - whenDefinedResolveFns = []; - this.__whenDefined.set(tagName, whenDefinedResolveFns); - } - whenDefinedResolveFns.push(resolve); - }); - } -} -export function createCustomElement(customElements, ownerDocument, tagName) { - const Cstr = customElements.get(tagName); - if (Cstr != null) { - const cmp = new Cstr(ownerDocument); - cmp.nodeName = tagName.toUpperCase(); - upgradedElements.add(cmp); - return cmp; - } - const host = new Proxy({}, { - get(obj, prop) { - const elm = proxyElements.get(host); - if (elm != null) { - return elm[prop]; - } - return obj[prop]; - }, - set(obj, prop, val) { - const elm = proxyElements.get(host); - if (elm != null) { - elm[prop] = val; - } - else { - obj[prop] = val; - } - return true; - }, - has(obj, prop) { - const elm = proxyElements.get(host); - if (prop in elm) { - return true; - } - if (prop in obj) { - return true; - } - return false; - }, - }); - const elm = new MockHTMLElement(ownerDocument, tagName); - proxyElements.set(host, elm); - return host; -} -const proxyElements = new WeakMap(); -const upgradedElements = new WeakSet(); -export function connectNode(ownerDocument, node) { - node.ownerDocument = ownerDocument; - if (node.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */) { - if (ownerDocument != null && node.nodeName.includes('-')) { - const win = ownerDocument.defaultView; - if (win != null && typeof node.connectedCallback === 'function' && node.isConnected) { - fireConnectedCallback(node); - } - const shadowRoot = node.shadowRoot; - if (shadowRoot != null) { - shadowRoot.childNodes.forEach((childNode) => { - connectNode(ownerDocument, childNode); - }); - } - } - node.childNodes.forEach((childNode) => { - connectNode(ownerDocument, childNode); - }); - } - else { - node.childNodes.forEach((childNode) => { - childNode.ownerDocument = ownerDocument; - }); - } -} -function fireConnectedCallback(node) { - if (typeof node.connectedCallback === 'function') { - if (tempDisableCallbacks.has(node.ownerDocument) === false) { - try { - node.connectedCallback(); - } - catch (e) { - console.error(e); - } - } - } -} -export function disconnectNode(node) { - if (node.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */) { - if (node.nodeName.includes('-') === true && typeof node.disconnectedCallback === 'function') { - if (tempDisableCallbacks.has(node.ownerDocument) === false) { - try { - node.disconnectedCallback(); - } - catch (e) { - console.error(e); - } - } - } - node.childNodes.forEach(disconnectNode); - } -} -export function attributeChanged(node, attrName, oldValue, newValue) { - attrName = attrName.toLowerCase(); - const observedAttributes = node.constructor.observedAttributes; - if (Array.isArray(observedAttributes) === true && - observedAttributes.some((obs) => obs.toLowerCase() === attrName) === true) { - try { - node.attributeChangedCallback(attrName, oldValue, newValue); - } - catch (e) { - console.error(e); - } - } -} -export function checkAttributeChanged(node) { - return node.nodeName.includes('-') === true && typeof node.attributeChangedCallback === 'function'; -} -const tempDisableCallbacks = new Set(); -//# sourceMappingURL=custom-element-registry.js.map \ No newline at end of file diff --git a/build/mock-doc/custom-element-registry.js.map b/build/mock-doc/custom-element-registry.js.map deleted file mode 100644 index bcea4dfe773..00000000000 --- a/build/mock-doc/custom-element-registry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"custom-element-registry.js","sourceRoot":"","sources":["../../src/mock-doc/custom-element-registry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAY,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,yBAAyB;IAIpC,YAAoB,GAAW;QAAX,QAAG,GAAH,GAAG,CAAQ;IAAG,CAAC;IAEnC,MAAM,CAAC,OAAe,EAAE,IAAS,EAAE,OAAa;QAC9C,IAAI,OAAO,CAAC,WAAW,EAAE,KAAK,OAAO,EAAE;YACrC,MAAM,IAAI,KAAK,CACb,2DAA2D,OAAO,sCAAsC,CACzG,CAA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AAC;iBAClB;aACF;SACF;QACD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;KACzC;AACH,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAc,EAAE,QAAgB,EAAE,QAAuB,EAAE,QAAuB;IACjH,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;IAElC,MAAM,kBAAkB,GAAI,IAAY,CAAC,WAAW,CAAC,kBAA8B,CAAC;IACpF,IACE,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI;QAC1C,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,QAAQ,CAAC,KAAK,IAAI,EACzE;QACA,IAAI;YACD,IAAY,CAAC,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;SACtE;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAClB;KACF;AACH,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,IAAc;IAClD,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,OAAQ,IAAY,CAAC,wBAAwB,KAAK,UAAU,CAAC;AAC9G,CAAC;AAED,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/dataset.d.ts b/build/mock-doc/dataset.d.ts deleted file mode 100644 index fb51fb470b7..00000000000 --- a/build/mock-doc/dataset.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { MockElement } from './node'; -export declare function dataset(elm: MockElement): any; diff --git a/build/mock-doc/dataset.js b/build/mock-doc/dataset.js deleted file mode 100644 index 4791221ed35..00000000000 --- a/build/mock-doc/dataset.js +++ /dev/null @@ -1,43 +0,0 @@ -export function dataset(elm) { - const ds = {}; - const attributes = elm.attributes; - const attrLen = attributes.length; - for (let i = 0; i < attrLen; i++) { - const attr = attributes.item(i); - const nodeName = attr.nodeName; - if (nodeName.startsWith('data-')) { - ds[dashToPascalCase(nodeName)] = attr.nodeValue; - } - } - return new Proxy(ds, { - get(_obj, camelCaseProp) { - return ds[camelCaseProp]; - }, - set(_obj, camelCaseProp, value) { - const dataAttr = toDataAttribute(camelCaseProp); - elm.setAttribute(dataAttr, value); - return true; - }, - }); -} -function toDataAttribute(str) { - return ('data-' + - String(str) - .replace(/([A-Z0-9])/g, (g) => ' ' + g[0]) - .trim() - .replace(/ /g, '-') - .toLowerCase()); -} -function dashToPascalCase(str) { - str = String(str).slice(5); - return str - .split('-') - .map((segment, index) => { - if (index === 0) { - return segment.charAt(0).toLowerCase() + segment.slice(1); - } - return segment.charAt(0).toUpperCase() + segment.slice(1); - }) - .join(''); -} -//# sourceMappingURL=dataset.js.map \ No newline at end of file diff --git a/build/mock-doc/dataset.js.map b/build/mock-doc/dataset.js.map deleted file mode 100644 index f6625d23449..00000000000 --- a/build/mock-doc/dataset.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../src/mock-doc/dataset.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,OAAO,CAAC,GAAgB;IACtC,MAAM,EAAE,GAAQ,EAAE,CAAC;IACnB,MAAM,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;IAClC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC;IAElC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE;QAChC,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;YAChC,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,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\ No newline at end of file diff --git a/build/mock-doc/document-fragment.d.ts b/build/mock-doc/document-fragment.d.ts deleted file mode 100644 index c74db996787..00000000000 --- a/build/mock-doc/document-fragment.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { MockElement, MockHTMLElement } from './node'; -export declare class MockDocumentFragment extends MockHTMLElement { - constructor(ownerDocument: any); - getElementById(id: string): MockElement; - cloneNode(deep?: boolean): MockDocumentFragment; -} diff --git a/build/mock-doc/document-fragment.js b/build/mock-doc/document-fragment.js deleted file mode 100644 index d05f8c2961b..00000000000 --- a/build/mock-doc/document-fragment.js +++ /dev/null @@ -1,28 +0,0 @@ -import { getElementById } from './document'; -import { MockHTMLElement } from './node'; -export class MockDocumentFragment extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, null); - this.nodeName = "#document-fragment" /* NODE_NAMES.DOCUMENT_FRAGMENT_NODE */; - this.nodeType = 11 /* NODE_TYPES.DOCUMENT_FRAGMENT_NODE */; - } - getElementById(id) { - return getElementById(this, id); - } - cloneNode(deep) { - const cloned = new MockDocumentFragment(null); - if (deep) { - for (let i = 0, ii = this.childNodes.length; i < ii; i++) { - const childNode = this.childNodes[i]; - if (childNode.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */ || - childNode.nodeType === 3 /* NODE_TYPES.TEXT_NODE */ || - childNode.nodeType === 8 /* NODE_TYPES.COMMENT_NODE */) { - const clonedChildNode = this.childNodes[i].cloneNode(true); - cloned.appendChild(clonedChildNode); - } - } - } - return cloned; - } -} -//# sourceMappingURL=document-fragment.js.map \ No newline at end of file diff --git a/build/mock-doc/document-fragment.js.map b/build/mock-doc/document-fragment.js.map deleted file mode 100644 index 1b8115bcbc1..00000000000 --- a/build/mock-doc/document-fragment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"document-fragment.js","sourceRoot":"","sources":["../../src/mock-doc/document-fragment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAe,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEtD,MAAM,OAAO,oBAAqB,SAAQ,eAAe;IACvD,YAAY,aAAkB;QAC5B,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QAC3B,IAAI,CAAC,QAAQ,+DAAoC,CAAC;QAClD,IAAI,CAAC,QAAQ,6CAAoC,CAAC;IACpD,CAAC;IAED,cAAc,CAAC,EAAU;QACvB,OAAO,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAClC,CAAC;IAEQ,SAAS,CAAC,IAAc;QAC/B,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAE9C,IAAI,IAAI,EAAE;YACR,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;gBACxD,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBACrC,IACE,SAAS,CAAC,QAAQ,oCAA4B;oBAC9C,SAAS,CAAC,QAAQ,iCAAyB;oBAC3C,SAAS,CAAC,QAAQ,oCAA4B,EAC9C;oBACA,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;oBAC3D,MAAM,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;iBACrC;aACF;SACF;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"} \ No newline at end of file diff --git a/build/mock-doc/document-type-node.d.ts b/build/mock-doc/document-type-node.d.ts deleted file mode 100644 index 6d11020d7fa..00000000000 --- a/build/mock-doc/document-type-node.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { MockHTMLElement } from './node'; -export declare class MockDocumentTypeNode extends MockHTMLElement { - constructor(ownerDocument: any); -} diff --git a/build/mock-doc/document-type-node.js b/build/mock-doc/document-type-node.js deleted file mode 100644 index 57fc57c0bec..00000000000 --- a/build/mock-doc/document-type-node.js +++ /dev/null @@ -1,9 +0,0 @@ -import { MockHTMLElement } from './node'; -export class MockDocumentTypeNode extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, '!DOCTYPE'); - this.nodeType = 10 /* NODE_TYPES.DOCUMENT_TYPE_NODE */; - this.setAttribute('html', ''); - } -} -//# sourceMappingURL=document-type-node.js.map \ No newline at end of file diff --git a/build/mock-doc/document-type-node.js.map b/build/mock-doc/document-type-node.js.map deleted file mode 100644 index 0dad693baea..00000000000 --- a/build/mock-doc/document-type-node.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"document-type-node.js","sourceRoot":"","sources":["../../src/mock-doc/document-type-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,OAAO,oBAAqB,SAAQ,eAAe;IACvD,YAAY,aAAkB;QAC5B,KAAK,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;QACjC,IAAI,CAAC,QAAQ,yCAAgC,CAAC;QAC9C,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAChC,CAAC;CACF"} \ No newline at end of file diff --git a/build/mock-doc/document.d.ts b/build/mock-doc/document.d.ts deleted file mode 100644 index e9acaa46d6f..00000000000 --- a/build/mock-doc/document.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { MockAttr } from './attribute'; -import { MockComment } from './comment-node'; -import { MockDocumentFragment } from './document-fragment'; -import { MockDocumentTypeNode } from './document-type-node'; -import { MockElement, MockHTMLElement, MockTextNode } from './node'; -export declare class MockDocument extends MockHTMLElement { - defaultView: any; - cookie: string; - referrer: string; - constructor(html?: string | boolean, win?: any); - get dir(): string; - set dir(value: string); - get location(): Location; - set location(val: Location); - get baseURI(): string; - get URL(): string; - get styleSheets(): Element[]; - get scripts(): Element[]; - get forms(): Element[]; - get images(): Element[]; - get scrollingElement(): MockElement; - get documentElement(): MockElement; - set documentElement(documentElement: MockElement); - get head(): MockElement; - set head(head: MockElement); - get body(): MockElement; - set body(body: MockElement); - appendChild(newNode: MockElement): MockElement; - createComment(data: string): MockComment; - createAttribute(attrName: string): MockAttr; - createAttributeNS(namespaceURI: string, attrName: string): MockAttr; - createElement(tagName: string): any; - createElementNS(namespaceURI: string, tagName: string): any; - createTextNode(text: string): MockTextNode; - createDocumentFragment(): MockDocumentFragment; - createDocumentTypeNode(): MockDocumentTypeNode; - getElementById(id: string): MockElement; - getElementsByName(elmName: string): MockElement[]; - get title(): string; - set title(value: string); -} -export declare function createDocument(html?: string | boolean): Document; -export declare function createFragment(html?: string): DocumentFragment; -export declare function resetDocument(doc: Document): void; -export declare function getElementById(elm: MockElement, id: string): MockElement; -export declare function setOwnerDocument(elm: MockElement, ownerDocument: any): void; diff --git a/build/mock-doc/document.js b/build/mock-doc/document.js deleted file mode 100644 index 2c81d28802f..00000000000 --- a/build/mock-doc/document.js +++ /dev/null @@ -1,287 +0,0 @@ -import { MockAttr } from './attribute'; -import { MockComment } from './comment-node'; -import { MockDocumentFragment } from './document-fragment'; -import { MockDocumentTypeNode } from './document-type-node'; -import { createElement, createElementNS } from './element'; -import { resetEventListeners } from './event'; -import { MockHTMLElement, MockTextNode, resetElement } from './node'; -import { parseHtmlToFragment } from './parse-html'; -import { parseDocumentUtil } from './parse-util'; -import { MockWindow } from './window'; -export class MockDocument extends MockHTMLElement { - constructor(html = null, win = null) { - super(null, null); - this.nodeName = "#document" /* NODE_NAMES.DOCUMENT_NODE */; - this.nodeType = 9 /* NODE_TYPES.DOCUMENT_NODE */; - this.defaultView = win; - this.cookie = ''; - this.referrer = ''; - this.appendChild(this.createDocumentTypeNode()); - if (typeof html === 'string') { - const parsedDoc = parseDocumentUtil(this, html); - const documentElement = parsedDoc.children.find((elm) => elm.nodeName === 'HTML'); - if (documentElement != null) { - this.appendChild(documentElement); - setOwnerDocument(documentElement, this); - } - } - else if (html !== false) { - const documentElement = new MockHTMLElement(this, 'html'); - this.appendChild(documentElement); - documentElement.appendChild(new MockHTMLElement(this, 'head')); - documentElement.appendChild(new MockHTMLElement(this, 'body')); - } - } - get dir() { - return this.documentElement.dir; - } - set dir(value) { - this.documentElement.dir = value; - } - get location() { - if (this.defaultView != null) { - return this.defaultView.location; - } - return null; - } - set location(val) { - if (this.defaultView != null) { - this.defaultView.location = val; - } - } - get baseURI() { - const baseNode = this.head.childNodes.find((node) => node.nodeName === 'BASE'); - if (baseNode) { - return baseNode.href; - } - return this.URL; - } - get URL() { - return this.location.href; - } - get styleSheets() { - return this.querySelectorAll('style'); - } - get scripts() { - return this.querySelectorAll('script'); - } - get forms() { - return this.querySelectorAll('form'); - } - get images() { - return this.querySelectorAll('img'); - } - get scrollingElement() { - return this.documentElement; - } - get documentElement() { - for (let i = this.childNodes.length - 1; i >= 0; i--) { - if (this.childNodes[i].nodeName === 'HTML') { - return this.childNodes[i]; - } - } - const documentElement = new MockHTMLElement(this, 'html'); - this.appendChild(documentElement); - return documentElement; - } - set documentElement(documentElement) { - for (let i = this.childNodes.length - 1; i >= 0; i--) { - if (this.childNodes[i].nodeType !== 10 /* NODE_TYPES.DOCUMENT_TYPE_NODE */) { - this.childNodes[i].remove(); - } - } - if (documentElement != null) { - this.appendChild(documentElement); - setOwnerDocument(documentElement, this); - } - } - get head() { - const documentElement = this.documentElement; - for (let i = 0; i < documentElement.childNodes.length; i++) { - if (documentElement.childNodes[i].nodeName === 'HEAD') { - return documentElement.childNodes[i]; - } - } - const head = new MockHTMLElement(this, 'head'); - documentElement.insertBefore(head, documentElement.firstChild); - return head; - } - set head(head) { - const documentElement = this.documentElement; - for (let i = documentElement.childNodes.length - 1; i >= 0; i--) { - if (documentElement.childNodes[i].nodeName === 'HEAD') { - documentElement.childNodes[i].remove(); - } - } - if (head != null) { - documentElement.insertBefore(head, documentElement.firstChild); - setOwnerDocument(head, this); - } - } - get body() { - const documentElement = this.documentElement; - for (let i = documentElement.childNodes.length - 1; i >= 0; i--) { - if (documentElement.childNodes[i].nodeName === 'BODY') { - return documentElement.childNodes[i]; - } - } - const body = new MockHTMLElement(this, 'body'); - documentElement.appendChild(body); - return body; - } - set body(body) { - const documentElement = this.documentElement; - for (let i = documentElement.childNodes.length - 1; i >= 0; i--) { - if (documentElement.childNodes[i].nodeName === 'BODY') { - documentElement.childNodes[i].remove(); - } - } - if (body != null) { - documentElement.appendChild(body); - setOwnerDocument(body, this); - } - } - appendChild(newNode) { - newNode.remove(); - newNode.parentNode = this; - this.childNodes.push(newNode); - return newNode; - } - createComment(data) { - return new MockComment(this, data); - } - createAttribute(attrName) { - return new MockAttr(attrName.toLowerCase(), ''); - } - createAttributeNS(namespaceURI, attrName) { - return new MockAttr(attrName, '', namespaceURI); - } - createElement(tagName) { - if (tagName === "#document" /* NODE_NAMES.DOCUMENT_NODE */) { - const doc = new MockDocument(false); - doc.nodeName = tagName; - doc.parentNode = null; - return doc; - } - return createElement(this, tagName); - } - createElementNS(namespaceURI, tagName) { - const elmNs = createElementNS(this, namespaceURI, tagName); - return elmNs; - } - createTextNode(text) { - return new MockTextNode(this, text); - } - createDocumentFragment() { - return new MockDocumentFragment(this); - } - createDocumentTypeNode() { - return new MockDocumentTypeNode(this); - } - getElementById(id) { - return getElementById(this, id); - } - getElementsByName(elmName) { - return getElementsByName(this, elmName.toLowerCase()); - } - get title() { - const title = this.head.childNodes.find((elm) => elm.nodeName === 'TITLE'); - if (title != null && typeof title.textContent === 'string') { - return title.textContent.trim(); - } - return ''; - } - set title(value) { - const head = this.head; - let title = head.childNodes.find((elm) => elm.nodeName === 'TITLE'); - if (title == null) { - title = this.createElement('title'); - head.appendChild(title); - } - title.textContent = value; - } -} -export function createDocument(html = null) { - return new MockWindow(html).document; -} -export function createFragment(html) { - return parseHtmlToFragment(html, null); -} -export function resetDocument(doc) { - if (doc != null) { - resetEventListeners(doc); - const documentElement = doc.documentElement; - if (documentElement != null) { - resetElement(documentElement); - for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) { - const childNode = documentElement.childNodes[i]; - resetElement(childNode); - childNode.childNodes.length = 0; - } - } - for (const key in doc) { - if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) { - delete doc[key]; - } - } - try { - doc.nodeName = "#document" /* NODE_NAMES.DOCUMENT_NODE */; - } - catch (e) { } - try { - doc.nodeType = 9 /* NODE_TYPES.DOCUMENT_NODE */; - } - catch (e) { } - try { - doc.cookie = ''; - } - catch (e) { } - try { - doc.referrer = ''; - } - catch (e) { } - } -} -const DOC_KEY_KEEPERS = new Set([ - 'nodeName', - 'nodeType', - 'nodeValue', - 'ownerDocument', - 'parentNode', - 'childNodes', - '_shadowRoot', -]); -export function getElementById(elm, id) { - const children = elm.children; - for (let i = 0, ii = children.length; i < ii; i++) { - const childElm = children[i]; - if (childElm.id === id) { - return childElm; - } - const childElmFound = getElementById(childElm, id); - if (childElmFound != null) { - return childElmFound; - } - } - return null; -} -function getElementsByName(elm, elmName, foundElms = []) { - const children = elm.children; - for (let i = 0, ii = children.length; i < ii; i++) { - const childElm = children[i]; - if (childElm.name && childElm.name.toLowerCase() === elmName) { - foundElms.push(childElm); - } - getElementsByName(childElm, elmName, foundElms); - } - return foundElms; -} -export function setOwnerDocument(elm, ownerDocument) { - for (let i = 0, ii = elm.childNodes.length; i < ii; i++) { - elm.childNodes[i].ownerDocument = ownerDocument; - if (elm.childNodes[i].nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */) { - setOwnerDocument(elm.childNodes[i], ownerDocument); - } - } -} -//# sourceMappingURL=document.js.map \ No newline at end of file diff --git a/build/mock-doc/document.js.map b/build/mock-doc/document.js.map deleted file mode 100644 index f91b30a74f0..00000000000 --- a/build/mock-doc/document.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"document.js","sourceRoot":"","sources":["../../src/mock-doc/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACv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c7f7..00000000000 --- a/build/mock-doc/element.d.ts +++ /dev/null @@ -1,184 +0,0 @@ -import { MockCSSStyleSheet } from './css-style-sheet'; -import { MockDocumentFragment } from './document-fragment'; -import { MockElement, MockHTMLElement } from './node'; -export declare function createElement(ownerDocument: any, tagName: string): any; -export declare function createElementNS(ownerDocument: any, namespaceURI: string, tagName: string): any; -export declare class MockAnchorElement extends MockHTMLElement { - constructor(ownerDocument: any); - get href(): string; - set href(value: string); - get pathname(): string; -} -export declare class MockButtonElement extends MockHTMLElement { - constructor(ownerDocument: any); -} -export declare class MockImageElement extends MockHTMLElement { - constructor(ownerDocument: any); - get draggable(): boolean; - set draggable(value: boolean); - get src(): string; - set src(value: string); -} -export declare class MockInputElement extends MockHTMLElement { - constructor(ownerDocument: any); - get list(): HTMLElement; -} -export declare class MockFormElement extends MockHTMLElement { - constructor(ownerDocument: any); -} -export declare class MockLinkElement extends MockHTMLElement { - constructor(ownerDocument: any); - get href(): string; - set href(value: string); -} -export declare class MockMetaElement extends MockHTMLElement { - content: string; - constructor(ownerDocument: any); -} -export declare class MockScriptElement extends MockHTMLElement { - constructor(ownerDocument: any); - get src(): string; - set src(value: string); -} -export declare class MockDOMMatrix { - static fromMatrix(): MockDOMMatrix; - a: number; - b: number; - c: number; - d: number; - e: number; - f: number; - m11: number; - m12: number; - m13: number; - m14: number; - m21: number; - m22: number; - m23: number; - m24: number; - m31: number; - m32: number; - m33: number; - m34: number; - m41: number; - m42: number; - m43: number; - m44: number; - is2D: boolean; - isIdentity: boolean; - inverse(): MockDOMMatrix; - flipX(): MockDOMMatrix; - flipY(): MockDOMMatrix; - multiply(): MockDOMMatrix; - rotate(): MockDOMMatrix; - rotateAxisAngle(): MockDOMMatrix; - rotateFromVector(): MockDOMMatrix; - scale(): MockDOMMatrix; - scaleNonUniform(): MockDOMMatrix; - skewX(): MockDOMMatrix; - skewY(): MockDOMMatrix; - toJSON(): void; - toString(): void; - transformPoint(): MockDOMPoint; - translate(): MockDOMMatrix; -} -export declare class MockDOMPoint { - w: number; - x: number; - y: number; - z: number; - toJSON(): void; - matrixTransform(): MockDOMMatrix; -} -export declare class MockSVGRect { - height: number; - width: number; - x: number; - y: number; -} -export declare class MockStyleElement extends MockHTMLElement { - sheet: MockCSSStyleSheet; - constructor(ownerDocument: any); - get innerHTML(): string; - set innerHTML(value: string); - get innerText(): string; - set innerText(value: string); - get textContent(): string; - set textContent(value: string); -} -export declare class MockSVGElement extends MockElement { - __namespaceURI: string; - get ownerSVGElement(): SVGSVGElement; - get viewportElement(): SVGElement; - onunload(): void; - get pathLength(): number; - isPointInFill(_pt: DOMPoint): boolean; - isPointInStroke(_pt: DOMPoint): boolean; - getTotalLength(): number; -} -export declare class MockSVGGraphicsElement extends MockSVGElement { - getBBox(_options?: { - clipped: boolean; - fill: boolean; - markers: boolean; - stroke: boolean; - }): MockSVGRect; - getCTM(): MockDOMMatrix; - getScreenCTM(): MockDOMMatrix; -} -export declare class MockSVGSVGElement extends MockSVGGraphicsElement { - createSVGPoint(): MockDOMPoint; -} -export declare class MockSVGTextContentElement extends MockSVGGraphicsElement { - getComputedTextLength(): number; -} -export declare class MockBaseElement extends MockHTMLElement { - constructor(ownerDocument: any); - get href(): string; - set href(value: string); -} -export declare class MockTemplateElement extends MockHTMLElement { - content: MockDocumentFragment; - constructor(ownerDocument: any); - get innerHTML(): string; - set innerHTML(html: string); - cloneNode(deep?: boolean): MockTemplateElement; -} -export declare class MockTitleElement extends MockHTMLElement { - constructor(ownerDocument: any); - get text(): string; - set text(value: string); -} -export declare class MockCanvasElement extends MockHTMLElement { - constructor(ownerDocument: any); - getContext(): { - fillRect(): void; - clearRect(): void; - getImageData: (_: number, __: number, w: number, h: number) => { - data: any[]; - }; - putImageData(): void; - createImageData: () => any[]; - setTransform(): void; - drawImage(): void; - save(): void; - fillText(): void; - restore(): void; - beginPath(): void; - moveTo(): void; - lineTo(): void; - closePath(): void; - stroke(): void; - translate(): void; - scale(): void; - rotate(): void; - arc(): void; - fill(): void; - measureText(): { - width: number; - }; - transform(): void; - rect(): void; - clip(): void; - }; -} diff --git a/build/mock-doc/element.js b/build/mock-doc/element.js deleted file mode 100644 index 9337bce664a..00000000000 --- a/build/mock-doc/element.js +++ /dev/null @@ -1,556 +0,0 @@ -import { cloneAttributes } from './attribute'; -import { getStyleElementText, MockCSSStyleSheet, setStyleElementText } from './css-style-sheet'; -import { createCustomElement } from './custom-element-registry'; -import { MockDocumentFragment } from './document-fragment'; -import { MockElement, MockHTMLElement } from './node'; -export function createElement(ownerDocument, tagName) { - if (typeof tagName !== 'string' || tagName === '' || !/^[a-z0-9-_:]+$/i.test(tagName)) { - throw new Error(`The tag name provided (${tagName}) is not a valid name.`); - } - tagName = tagName.toLowerCase(); - switch (tagName) { - case 'a': - return new MockAnchorElement(ownerDocument); - case 'base': - return new MockBaseElement(ownerDocument); - case 'button': - return new MockButtonElement(ownerDocument); - case 'canvas': - return new MockCanvasElement(ownerDocument); - case 'form': - return new MockFormElement(ownerDocument); - case 'img': - return new MockImageElement(ownerDocument); - case 'input': - return new MockInputElement(ownerDocument); - case 'link': - return new MockLinkElement(ownerDocument); - case 'meta': - return new MockMetaElement(ownerDocument); - case 'script': - return new MockScriptElement(ownerDocument); - case 'style': - return new MockStyleElement(ownerDocument); - case 'template': - return new MockTemplateElement(ownerDocument); - case 'title': - return new MockTitleElement(ownerDocument); - } - if (ownerDocument != null && tagName.includes('-')) { - const win = ownerDocument.defaultView; - if (win != null && win.customElements != null) { - return createCustomElement(win.customElements, ownerDocument, tagName); - } - } - return new MockHTMLElement(ownerDocument, tagName); -} -export function createElementNS(ownerDocument, namespaceURI, tagName) { - if (namespaceURI === 'http://www.w3.org/1999/xhtml') { - return createElement(ownerDocument, tagName); - } - else if (namespaceURI === 'http://www.w3.org/2000/svg') { - switch (tagName.toLowerCase()) { - case 'text': - case 'tspan': - case 'tref': - case 'altglyph': - case 'textpath': - return new MockSVGTextContentElement(ownerDocument, tagName); - case 'circle': - case 'ellipse': - case 'image': - case 'line': - case 'path': - case 'polygon': - case 'polyline': - case 'rect': - case 'use': - return new MockSVGGraphicsElement(ownerDocument, tagName); - case 'svg': - return new MockSVGSVGElement(ownerDocument, tagName); - default: - return new MockSVGElement(ownerDocument, tagName); - } - } - else { - return new MockElement(ownerDocument, tagName, namespaceURI); - } -} -export class MockAnchorElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'a'); - } - get href() { - return fullUrl(this, 'href'); - } - set href(value) { - this.setAttribute('href', value); - } - get pathname() { - return new URL(this.href).pathname; - } -} -export class MockButtonElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'button'); - } -} -patchPropAttributes(MockButtonElement.prototype, { - type: String, -}, { - type: 'submit', -}); -export class MockImageElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'img'); - } - get draggable() { - return this.getAttributeNS(null, 'draggable') !== 'false'; - } - set draggable(value) { - this.setAttributeNS(null, 'draggable', value); - } - get src() { - return fullUrl(this, 'src'); - } - set src(value) { - this.setAttribute('src', value); - } -} -patchPropAttributes(MockImageElement.prototype, { - height: Number, - width: Number, -}); -export class MockInputElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'input'); - } - get list() { - const listId = this.getAttribute('list'); - if (listId) { - return this.ownerDocument.getElementById(listId); - } - return null; - } -} -patchPropAttributes(MockInputElement.prototype, { - accept: String, - autocomplete: String, - autofocus: Boolean, - capture: String, - checked: Boolean, - disabled: Boolean, - form: String, - formaction: String, - formenctype: String, - formmethod: String, - formnovalidate: String, - formtarget: String, - height: Number, - inputmode: String, - max: String, - maxLength: Number, - min: String, - minLength: Number, - multiple: Boolean, - name: String, - pattern: String, - placeholder: String, - required: Boolean, - readOnly: Boolean, - size: Number, - spellCheck: Boolean, - src: String, - step: String, - type: String, - value: String, - width: Number, -}, { - type: 'text', -}); -export class MockFormElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'form'); - } -} -patchPropAttributes(MockFormElement.prototype, { - name: String, -}); -export class MockLinkElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'link'); - } - get href() { - return fullUrl(this, 'href'); - } - set href(value) { - this.setAttribute('href', value); - } -} -patchPropAttributes(MockLinkElement.prototype, { - crossorigin: String, - media: String, - rel: String, - type: String, -}); -export class MockMetaElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'meta'); - } -} -patchPropAttributes(MockMetaElement.prototype, { - charset: String, - content: String, - name: String, -}); -export class MockScriptElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'script'); - } - get src() { - return fullUrl(this, 'src'); - } - set src(value) { - this.setAttribute('src', value); - } -} -patchPropAttributes(MockScriptElement.prototype, { - type: String, -}); -export class MockDOMMatrix { - constructor() { - this.a = 1; - this.b = 0; - this.c = 0; - this.d = 1; - this.e = 0; - this.f = 0; - this.m11 = 1; - this.m12 = 0; - this.m13 = 0; - this.m14 = 0; - this.m21 = 0; - this.m22 = 1; - this.m23 = 0; - this.m24 = 0; - this.m31 = 0; - this.m32 = 0; - this.m33 = 1; - this.m34 = 0; - this.m41 = 0; - this.m42 = 0; - this.m43 = 0; - this.m44 = 1; - this.is2D = true; - this.isIdentity = true; - } - static fromMatrix() { - return new MockDOMMatrix(); - } - inverse() { - return new MockDOMMatrix(); - } - flipX() { - return new MockDOMMatrix(); - } - flipY() { - return new MockDOMMatrix(); - } - multiply() { - return new MockDOMMatrix(); - } - rotate() { - return new MockDOMMatrix(); - } - rotateAxisAngle() { - return new MockDOMMatrix(); - } - rotateFromVector() { - return new MockDOMMatrix(); - } - scale() { - return new MockDOMMatrix(); - } - scaleNonUniform() { - return new MockDOMMatrix(); - } - skewX() { - return new MockDOMMatrix(); - } - skewY() { - return new MockDOMMatrix(); - } - toJSON() { } - toString() { } - transformPoint() { - return new MockDOMPoint(); - } - translate() { - return new MockDOMMatrix(); - } -} -export class MockDOMPoint { - constructor() { - this.w = 1; - this.x = 0; - this.y = 0; - this.z = 0; - } - toJSON() { } - matrixTransform() { - return new MockDOMMatrix(); - } -} -export class MockSVGRect { - constructor() { - this.height = 10; - this.width = 10; - this.x = 0; - this.y = 0; - } -} -export class MockStyleElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'style'); - this.sheet = new MockCSSStyleSheet(this); - } - get innerHTML() { - return getStyleElementText(this); - } - set innerHTML(value) { - setStyleElementText(this, value); - } - get innerText() { - return getStyleElementText(this); - } - set innerText(value) { - setStyleElementText(this, value); - } - get textContent() { - return getStyleElementText(this); - } - set textContent(value) { - setStyleElementText(this, value); - } -} -export class MockSVGElement extends MockElement { - constructor() { - super(...arguments); - this.__namespaceURI = 'http://www.w3.org/2000/svg'; - } - // SVGElement properties and methods - get ownerSVGElement() { - return null; - } - get viewportElement() { - return null; - } - onunload() { - /**/ - } - // SVGGeometryElement properties and methods - get pathLength() { - return 0; - } - isPointInFill(_pt) { - return false; - } - isPointInStroke(_pt) { - return false; - } - getTotalLength() { - return 0; - } -} -export class MockSVGGraphicsElement extends MockSVGElement { - getBBox(_options) { - return new MockSVGRect(); - } - getCTM() { - return new MockDOMMatrix(); - } - getScreenCTM() { - return new MockDOMMatrix(); - } -} -export class MockSVGSVGElement extends MockSVGGraphicsElement { - createSVGPoint() { - return new MockDOMPoint(); - } -} -export class MockSVGTextContentElement extends MockSVGGraphicsElement { - getComputedTextLength() { - return 0; - } -} -export class MockBaseElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'base'); - } - get href() { - return fullUrl(this, 'href'); - } - set href(value) { - this.setAttribute('href', value); - } -} -export class MockTemplateElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'template'); - this.content = new MockDocumentFragment(ownerDocument); - } - get innerHTML() { - return this.content.innerHTML; - } - set innerHTML(html) { - this.content.innerHTML = html; - } - cloneNode(deep) { - const cloned = new MockTemplateElement(null); - cloned.attributes = cloneAttributes(this.attributes); - const styleCssText = this.getAttribute('style'); - if (styleCssText != null && styleCssText.length > 0) { - cloned.setAttribute('style', styleCssText); - } - cloned.content = this.content.cloneNode(deep); - if (deep) { - for (let i = 0, ii = this.childNodes.length; i < ii; i++) { - const clonedChildNode = this.childNodes[i].cloneNode(true); - cloned.appendChild(clonedChildNode); - } - } - return cloned; - } -} -export class MockTitleElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'title'); - } - get text() { - return this.textContent; - } - set text(value) { - this.textContent = value; - } -} -export class MockCanvasElement extends MockHTMLElement { - constructor(ownerDocument) { - super(ownerDocument, 'canvas'); - } - getContext() { - return { - fillRect() { - return; - }, - clearRect() { }, - getImageData: function (_, __, w, h) { - return { - data: new Array(w * h * 4), - }; - }, - putImageData() { }, - createImageData: function () { - return []; - }, - setTransform() { }, - drawImage() { }, - save() { }, - fillText() { }, - restore() { }, - beginPath() { }, - moveTo() { }, - lineTo() { }, - closePath() { }, - stroke() { }, - translate() { }, - scale() { }, - rotate() { }, - arc() { }, - fill() { }, - measureText() { - return { width: 0 }; - }, - transform() { }, - rect() { }, - clip() { }, - }; - } -} -function fullUrl(elm, attrName) { - const val = elm.getAttribute(attrName) || ''; - if (elm.ownerDocument != null) { - const win = elm.ownerDocument.defaultView; - if (win != null) { - const loc = win.location; - if (loc != null) { - try { - const url = new URL(val, loc.href); - return url.href; - } - catch (e) { } - } - } - } - return val.replace(/\'|\"/g, '').trim(); -} -function patchPropAttributes(prototype, attrs, defaults = {}) { - Object.keys(attrs).forEach((propName) => { - const attr = attrs[propName]; - const defaultValue = defaults[propName]; - if (attr === Boolean) { - Object.defineProperty(prototype, propName, { - get() { - return this.hasAttribute(propName); - }, - set(value) { - if (value) { - this.setAttribute(propName, ''); - } - else { - this.removeAttribute(propName); - } - }, - }); - } - else if (attr === Number) { - Object.defineProperty(prototype, propName, { - get() { - const value = this.getAttribute(propName); - return value ? parseInt(value, 10) : defaultValue === undefined ? 0 : defaultValue; - }, - set(value) { - this.setAttribute(propName, value); - }, - }); - } - else { - Object.defineProperty(prototype, propName, { - get() { - return this.hasAttribute(propName) ? this.getAttribute(propName) : defaultValue || ''; - }, - set(value) { - this.setAttribute(propName, value); - }, - }); - } - }); -} -MockElement.prototype.cloneNode = function (deep) { - // because we're creating elements, which extending specific HTML base classes there - // is a MockElement circular reference that bundling has trouble dealing with so - // the fix is to add cloneNode() to MockElement's prototype after the HTML classes - const cloned = createElement(this.ownerDocument, this.nodeName); - cloned.attributes = cloneAttributes(this.attributes); - const styleCssText = this.getAttribute('style'); - if (styleCssText != null && styleCssText.length > 0) { - cloned.setAttribute('style', styleCssText); - } - if (deep) { - for (let i = 0, ii = this.childNodes.length; i < ii; i++) { - const clonedChildNode = this.childNodes[i].cloneNode(true); - cloned.appendChild(clonedChildNode); - } - } - return cloned; -}; -//# sourceMappingURL=element.js.map \ No newline at end of file diff --git a/build/mock-doc/element.js.map b/build/mock-doc/element.js.map deleted file mode 100644 index 0b14d42fa39..00000000000 --- a/build/mock-doc/element.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"element.js","sourceRoot":"","sources":["../../src/mock-doc/element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAChG,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEtD,MAAM,UAAU,aAAa,CAAC,aAAkB,EAAE,OAAe;IAC/D,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;QACrF,MAAM,IAAI,KAAK,CAAC,0BAA0B,OAAO,wBAAwB,CAAC,CAAC;KAC5E;IACD,OAAO,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AAC,QAAQ,CAAC,CAAC;IAChE,MAAM,CAAC,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAErD,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAChD,IAAI,YAAY,IAAI,IAAI,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;QACnD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;KAC5C;IAED,IAAI,IAAI,EAAE;QACR,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;YACxD,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAC3D,MAAM,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;SACrC;KACF;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/event.d.ts b/build/mock-doc/event.d.ts deleted file mode 100644 index 14293e628f9..00000000000 --- a/build/mock-doc/event.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { MockElement } from './node'; -import { MockWindow } from './window'; -export declare class MockEvent { - bubbles: boolean; - cancelBubble: boolean; - cancelable: boolean; - composed: boolean; - currentTarget: MockElement; - defaultPrevented: boolean; - srcElement: MockElement; - target: MockElement; - timeStamp: number; - type: string; - constructor(type: string, eventInitDict?: EventInit); - preventDefault(): void; - stopPropagation(): void; - stopImmediatePropagation(): void; - composedPath(): MockElement[]; -} -export declare class MockCustomEvent extends MockEvent { - detail: any; - constructor(type: string, customEventInitDic?: CustomEventInit); -} -export declare class MockKeyboardEvent extends MockEvent { - code: string; - key: string; - altKey: boolean; - ctrlKey: boolean; - metaKey: boolean; - shiftKey: boolean; - location: number; - repeat: boolean; - constructor(type: string, keyboardEventInitDic?: KeyboardEventInit); -} -export declare class MockMouseEvent extends MockEvent { - screenX: number; - screenY: number; - clientX: number; - clientY: number; - ctrlKey: boolean; - shiftKey: boolean; - altKey: boolean; - metaKey: boolean; - button: number; - buttons: number; - relatedTarget: EventTarget; - constructor(type: string, mouseEventInitDic?: MouseEventInit); -} -export declare class MockUIEvent extends MockEvent { - detail: number | null; - view: MockWindow | null; - constructor(type: string, uiEventInitDic?: UIEventInit); -} -export declare class MockFocusEvent extends MockUIEvent { - relatedTarget: EventTarget | null; - constructor(type: 'blur' | 'focus', focusEventInitDic?: FocusEventInit); -} -export declare class MockEventListener { - type: string; - handler: (ev?: any) => void; - constructor(type: string, handler: any); -} -export declare function addEventListener(elm: any, type: string, handler: any): void; -export declare function removeEventListener(elm: any, type: string, handler: any): void; -export declare function resetEventListeners(target: any): void; -export declare function dispatchEvent(currentTarget: any, ev: MockEvent): boolean; -export interface EventTarget { - __listeners: MockEventListener[]; -} diff --git a/build/mock-doc/event.js b/build/mock-doc/event.js deleted file mode 100644 index 0ae9549436f..00000000000 --- a/build/mock-doc/event.js +++ /dev/null @@ -1,168 +0,0 @@ -export class MockEvent { - constructor(type, eventInitDict) { - this.bubbles = false; - this.cancelBubble = false; - this.cancelable = false; - this.composed = false; - this.currentTarget = null; - this.defaultPrevented = false; - this.srcElement = null; - this.target = null; - if (typeof type !== 'string') { - throw new Error(`Event type required`); - } - this.type = type; - this.timeStamp = Date.now(); - if (eventInitDict != null) { - Object.assign(this, eventInitDict); - } - } - preventDefault() { - this.defaultPrevented = true; - } - stopPropagation() { - this.cancelBubble = true; - } - stopImmediatePropagation() { - this.cancelBubble = true; - } - composedPath() { - const composedPath = []; - let currentElement = this.target; - while (currentElement) { - composedPath.push(currentElement); - if (!currentElement.parentElement && currentElement.nodeName === "#document" /* NODE_NAMES.DOCUMENT_NODE */) { - // the current element doesn't have a parent, but we've detected it's our root document node. push the window - // object associated with the document onto the path - composedPath.push(currentElement.defaultView); - break; - } - currentElement = currentElement.parentElement; - } - return composedPath; - } -} -export class MockCustomEvent extends MockEvent { - constructor(type, customEventInitDic) { - super(type); - this.detail = null; - if (customEventInitDic != null) { - Object.assign(this, customEventInitDic); - } - } -} -export class MockKeyboardEvent extends MockEvent { - constructor(type, keyboardEventInitDic) { - super(type); - this.code = ''; - this.key = ''; - this.altKey = false; - this.ctrlKey = false; - this.metaKey = false; - this.shiftKey = false; - this.location = 0; - this.repeat = false; - if (keyboardEventInitDic != null) { - Object.assign(this, keyboardEventInitDic); - } - } -} -export class MockMouseEvent extends MockEvent { - constructor(type, mouseEventInitDic) { - super(type); - this.screenX = 0; - this.screenY = 0; - this.clientX = 0; - this.clientY = 0; - this.ctrlKey = false; - this.shiftKey = false; - this.altKey = false; - this.metaKey = false; - this.button = 0; - this.buttons = 0; - this.relatedTarget = null; - if (mouseEventInitDic != null) { - Object.assign(this, mouseEventInitDic); - } - } -} -export class MockUIEvent extends MockEvent { - constructor(type, uiEventInitDic) { - super(type); - this.detail = null; - this.view = null; - if (uiEventInitDic != null) { - Object.assign(this, uiEventInitDic); - } - } -} -export class MockFocusEvent extends MockUIEvent { - constructor(type, focusEventInitDic) { - super(type); - this.relatedTarget = null; - if (focusEventInitDic != null) { - Object.assign(this, focusEventInitDic); - } - } -} -export class MockEventListener { - constructor(type, handler) { - this.type = type; - this.handler = handler; - } -} -export function addEventListener(elm, type, handler) { - const target = elm; - if (target.__listeners == null) { - target.__listeners = []; - } - target.__listeners.push(new MockEventListener(type, handler)); -} -export function removeEventListener(elm, type, handler) { - const target = elm; - if (target != null && Array.isArray(target.__listeners) === true) { - const elmListener = target.__listeners.find((e) => e.type === type && e.handler === handler); - if (elmListener != null) { - const index = target.__listeners.indexOf(elmListener); - target.__listeners.splice(index, 1); - } - } -} -export function resetEventListeners(target) { - if (target != null && target.__listeners != null) { - target.__listeners = null; - } -} -function triggerEventListener(elm, ev) { - if (elm == null || ev.cancelBubble === true) { - return; - } - const target = elm; - ev.currentTarget = elm; - if (Array.isArray(target.__listeners) === true) { - const listeners = target.__listeners.filter((e) => e.type === ev.type); - listeners.forEach((listener) => { - try { - listener.handler.call(target, ev); - } - catch (err) { - console.error(err); - } - }); - } - if (ev.bubbles === false) { - return; - } - if (elm.nodeName === "#document" /* NODE_NAMES.DOCUMENT_NODE */) { - triggerEventListener(elm.defaultView, ev); - } - else { - triggerEventListener(elm.parentElement, ev); - } -} -export function dispatchEvent(currentTarget, ev) { - ev.target = currentTarget; - triggerEventListener(currentTarget, ev); - return true; -} -//# sourceMappingURL=event.js.map \ No newline at end of file diff --git a/build/mock-doc/event.js.map b/build/mock-doc/event.js.map deleted file mode 100644 index 50823565545..00000000000 --- a/build/mock-doc/event.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/mock-doc/event.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,SAAS;IAYpB,YAAY,IAAY,EAAE,aAAyB;QAXnD,YAAO,GAAG,KAAK,CAAC;QAChB,iBAAY,GAAG,KAAK,CAAC;QACrB,eAAU,GAAG,KAAK,CAAC;QACnB,aAAQ,GAAG,KAAK,CAAC;QACjB,kBAAa,GAAgB,IAAI,CAAC;QAClC,qBAAgB,GAAG,KAAK,CAAC;QACzB,eAAU,GAAgB,IAAI,CAAC;QAC/B,WAAM,GAAgB,IAAI,CAAC;QAKzB,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;SACxC;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAE5B,IAAI,aAAa,IAAI,IAAI,EAAE;YACzB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;SACpC;IACH,CAAC;IAED,cAAc;QACZ,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAC/B,CAAC;IAED,eAAe;QACb,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AG,IAAI,IAAI,IAAI,EAAE,CAAC,YAAY,KAAK,IAAI,EAAE;QAC3C,OAAO;KACR;IAED,MAAM,MAAM,GAAgB,GAAG,CAAC;IAChC,EAAE,CAAC,aAAa,GAAG,GAAG,CAAC;IAEvB,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE;QAC9C,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC;QACvE,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YAC7B,IAAI;gBACF,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;aACnC;YAAC,OAAO,GAAG,EAAE;gBACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aACpB;QACH,CAAC,CAAC,CAAC;KACJ;IAED,IAAI,EAAE,CAAC,OAAO,KAAK,KAAK,EAAE;QACxB,OAAO;KACR;IAED,IAAI,GAAG,CAAC,QAAQ,+CAA6B,EAAE;QAC7C,oBAAoB,CAAE,GAAoB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;KAC7D;SAAM;QACL,oBAAoB,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;KAC7C;AACH,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,aAAkB,EAAE,EAAa;IAC7D,EAAE,CAAC,MAAM,GAAG,aAAa,CAAC;IAC1B,oBAAoB,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/global.d.ts b/build/mock-doc/global.d.ts deleted file mode 100644 index b0d95024f99..00000000000 --- a/build/mock-doc/global.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare function setupGlobal(gbl: any): any; -export declare function teardownGlobal(gbl: any): void; -export declare function patchWindow(winToBePatched: any): void; -export declare function addGlobalsToWindowPrototype(mockWinPrototype: any): void; diff --git a/build/mock-doc/global.js b/build/mock-doc/global.js deleted file mode 100644 index f34e8dbfedd..00000000000 --- a/build/mock-doc/global.js +++ /dev/null @@ -1,153 +0,0 @@ -import { MockAnchorElement, MockBaseElement, MockButtonElement, MockCanvasElement, MockFormElement, MockImageElement, MockInputElement, MockLinkElement, MockMetaElement, MockScriptElement, MockStyleElement, MockTemplateElement, MockTitleElement, } from './element'; -import { MockCustomEvent, MockEvent, MockFocusEvent, MockKeyboardEvent, MockMouseEvent } from './event'; -import { MockHeaders } from './headers'; -import { MockDOMParser } from './parser'; -import { MockRequest, MockResponse } from './request-response'; -import { MockWindow } from './window'; -export function setupGlobal(gbl) { - if (gbl.window == null) { - const win = (gbl.window = new MockWindow()); - WINDOW_FUNCTIONS.forEach((fnName) => { - if (!(fnName in gbl)) { - gbl[fnName] = win[fnName].bind(win); - } - }); - WINDOW_PROPS.forEach((propName) => { - if (!(propName in gbl)) { - Object.defineProperty(gbl, propName, { - get() { - return win[propName]; - }, - set(val) { - win[propName] = val; - }, - configurable: true, - enumerable: true, - }); - } - }); - GLOBAL_CONSTRUCTORS.forEach(([cstrName]) => { - gbl[cstrName] = win[cstrName]; - }); - } - return gbl.window; -} -export function teardownGlobal(gbl) { - const win = gbl.window; - if (win && typeof win.close === 'function') { - win.close(); - } -} -export function patchWindow(winToBePatched) { - const mockWin = new MockWindow(false); - WINDOW_FUNCTIONS.forEach((fnName) => { - if (typeof winToBePatched[fnName] !== 'function') { - winToBePatched[fnName] = mockWin[fnName].bind(mockWin); - } - }); - WINDOW_PROPS.forEach((propName) => { - if (winToBePatched === undefined) { - Object.defineProperty(winToBePatched, propName, { - get() { - return mockWin[propName]; - }, - set(val) { - mockWin[propName] = val; - }, - configurable: true, - enumerable: true, - }); - } - }); -} -export function addGlobalsToWindowPrototype(mockWinPrototype) { - GLOBAL_CONSTRUCTORS.forEach(([cstrName, Cstr]) => { - Object.defineProperty(mockWinPrototype, cstrName, { - get() { - return this['__' + cstrName] || Cstr; - }, - set(cstr) { - this['__' + cstrName] = cstr; - }, - configurable: true, - enumerable: true, - }); - }); -} -const WINDOW_FUNCTIONS = [ - 'addEventListener', - 'alert', - 'blur', - 'cancelAnimationFrame', - 'cancelIdleCallback', - 'clearInterval', - 'clearTimeout', - 'close', - 'confirm', - 'dispatchEvent', - 'focus', - 'getComputedStyle', - 'matchMedia', - 'open', - 'prompt', - 'removeEventListener', - 'requestAnimationFrame', - 'requestIdleCallback', - 'URL', -]; -const WINDOW_PROPS = [ - 'customElements', - 'devicePixelRatio', - 'document', - 'history', - 'innerHeight', - 'innerWidth', - 'localStorage', - 'location', - 'navigator', - 'pageXOffset', - 'pageYOffset', - 'performance', - 'screenLeft', - 'screenTop', - 'screenX', - 'screenY', - 'scrollX', - 'scrollY', - 'sessionStorage', - 'CSS', - 'CustomEvent', - 'Event', - 'Element', - 'HTMLElement', - 'Node', - 'NodeList', - 'FocusEvent', - 'KeyboardEvent', - 'MouseEvent', -]; -const GLOBAL_CONSTRUCTORS = [ - ['CustomEvent', MockCustomEvent], - ['Event', MockEvent], - ['Headers', MockHeaders], - ['FocusEvent', MockFocusEvent], - ['KeyboardEvent', MockKeyboardEvent], - ['MouseEvent', MockMouseEvent], - ['Request', MockRequest], - ['Response', MockResponse], - ['DOMParser', MockDOMParser], - ['HTMLAnchorElement', MockAnchorElement], - ['HTMLBaseElement', MockBaseElement], - ['HTMLButtonElement', MockButtonElement], - ['HTMLCanvasElement', MockCanvasElement], - ['HTMLFormElement', MockFormElement], - ['HTMLImageElement', MockImageElement], - ['HTMLInputElement', MockInputElement], - ['HTMLLinkElement', MockLinkElement], - ['HTMLMetaElement', MockMetaElement], - ['HTMLScriptElement', MockScriptElement], - ['HTMLStyleElement', MockStyleElement], - ['HTMLTemplateElement', MockTemplateElement], - ['HTMLTitleElement', MockTitleElement], -]; -//# sourceMappingURL=global.js.map \ No newline at end of file diff --git a/build/mock-doc/global.js.map b/build/mock-doc/global.js.map deleted file mode 100644 index ed692a356ac..00000000000 --- a/build/mock-doc/global.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/mock-doc/global.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACxG,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,UAAU,WAAW,CAAC,GAAQ;IAClC,IAAI,GAAG,CAAC,MAAM,IAAI,IAAI,EAAE;QACtB,MAAM,GAAG,GAAQ,CAAC,GAAG,CAAC,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC,CAAC;QAEjD,gBAAgB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YAClC,IAAI,CAAC,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE;gBACpB,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aACrC;QACH,CAAC,CAAC,CAAC;QAEH,YAAY,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YAChC,IAAI,CAAC,CAAC,QAAQ,IAAI,GAAG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,SAAS;IACT,gBAAgB;IAChB,KAAK;IACL,aAAa;IACb,OAAO;IACP,SAAS;IACT,aAAa;IACb,MAAM;IACN,UAAU;IACV,YAAY;IACZ,eAAe;IACf,YAAY;CACb,CAAC;AAEF,MAAM,mBAAmB,GAAoB;IAC3C,CAAC,aAAa,EAAE,eAAe,CAAC;IAChC,CAAC,OAAO,EAAE,SAAS,CAAC;IACpB,CAAC,SAAS,EAAE,WAAW,CAAC;IACxB,CAAC,YAAY,EAAE,cAAc,CAAC;IAC9B,CAAC,eAAe,EAAE,iBAAiB,CAAC;IACpC,CAAC,YAAY,EAAE,cAAc,CAAC;IAC9B,CAAC,SAAS,EAAE,WAAW,CAAC;IACxB,CAAC,UAAU,EAAE,YAAY,CAAC;IAC1B,CAAC,WAAW,EAAE,aAAa,CAAC;IAE5B,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;IACxC,CAAC,iBAAiB,EAAE,eAAe,CAAC;IACpC,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;IACxC,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;IACxC,CAAC,iBAAiB,EAAE,eAAe,CAAC;IACpC,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;IACtC,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;IACtC,CAAC,iBAAiB,EAAE,eAAe,CAAC;IACpC,CAAC,iBAAiB,EAAE,eAAe,CAAC;IACpC,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;IACxC,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;IACtC,CAAC,qBAAqB,EAAE,mBAAmB,CAAC;IAC5C,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;CACvC,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/headers.d.ts b/build/mock-doc/headers.d.ts deleted file mode 100644 index 88789e32807..00000000000 --- a/build/mock-doc/headers.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export declare class MockHeaders { - private _values; - constructor(init?: string[][] | Map | any); - append(key: string, value: string): void; - delete(key: string): void; - entries(): any; - forEach(cb: (value: string, key: string) => void): void; - get(key: string): string; - has(key: string): boolean; - keys(): { - next(): { - value: string; - done: boolean; - }; - [Symbol.iterator](): any; - }; - set(key: string, value: string): void; - values(): any; - [Symbol.iterator](): any; -} diff --git a/build/mock-doc/headers.js b/build/mock-doc/headers.js deleted file mode 100644 index 92d36b93acd..00000000000 --- a/build/mock-doc/headers.js +++ /dev/null @@ -1,129 +0,0 @@ -export class MockHeaders { - constructor(init) { - this._values = []; - if (typeof init === 'object') { - if (typeof init[Symbol.iterator] === 'function') { - const kvs = []; - for (const kv of init) { - if (typeof kv[Symbol.iterator] === 'function') { - kvs.push([...kv]); - } - } - for (const kv of kvs) { - this.append(kv[0], kv[1]); - } - } - else { - for (const key in init) { - this.append(key, init[key]); - } - } - } - } - append(key, value) { - this._values.push([key, value + '']); - } - delete(key) { - key = key.toLowerCase(); - for (let i = this._values.length - 1; i >= 0; i--) { - if (this._values[i][0].toLowerCase() === key) { - this._values.splice(i, 1); - } - } - } - entries() { - const entries = []; - for (const kv of this.keys()) { - entries.push([kv, this.get(kv)]); - } - let index = -1; - return { - next() { - index++; - return { - value: entries[index], - done: !entries[index], - }; - }, - [Symbol.iterator]() { - return this; - }, - }; - } - forEach(cb) { - for (const kv of this.entries()) { - cb(kv[1], kv[0]); - } - } - get(key) { - const rtn = []; - key = key.toLowerCase(); - for (const kv of this._values) { - if (kv[0].toLowerCase() === key) { - rtn.push(kv[1]); - } - } - return rtn.length > 0 ? rtn.join(', ') : null; - } - has(key) { - key = key.toLowerCase(); - for (const kv of this._values) { - if (kv[0].toLowerCase() === key) { - return true; - } - } - return false; - } - keys() { - const keys = []; - for (const kv of this._values) { - const key = kv[0].toLowerCase(); - if (!keys.includes(key)) { - keys.push(key); - } - } - let index = -1; - return { - next() { - index++; - return { - value: keys[index], - done: !keys[index], - }; - }, - [Symbol.iterator]() { - return this; - }, - }; - } - set(key, value) { - for (const kv of this._values) { - if (kv[0].toLowerCase() === key.toLowerCase()) { - kv[1] = value + ''; - return; - } - } - this.append(key, value); - } - values() { - const values = this._values; - let index = -1; - return { - next() { - index++; - const done = !values[index]; - return { - value: done ? undefined : values[index][1], - done, - }; - }, - [Symbol.iterator]() { - return this; - }, - }; - } - [Symbol.iterator]() { - return this.entries(); - } -} -//# sourceMappingURL=headers.js.map \ No newline at end of file diff --git a/build/mock-doc/headers.js.map b/build/mock-doc/headers.js.map deleted file mode 100644 index c7136977479..00000000000 --- a/build/mock-doc/headers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"headers.js","sourceRoot":"","sources":["../../src/mock-doc/headers.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,WAAW;IAGtB,YAAY,IAA6C;QAFjD,YAAO,GAAe,EAAE,CAAC;QAG/B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,UAAU,EAAE;gBAC/C,MAAM,GAAG,GAAe,EAAE,CAAC;gBAC3B,KAAK,MAAM,EAAE,IAAI,IAAI,EAAE;oBACrB,IAAI,OAAO,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,UAAU,EAAE;wBAC7C,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;qBACnB;iBACF;gBACD,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE;oBACpB,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;iBAC3B;aACF;iBAAM;gBACL,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;oBACtB,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;iBAC7B;aACF;SACF;IACH,CAAC;IAED,MAAM,CAAC,GAAW,EAAE,KAAa;QAC/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,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CAAC;SACF,CAAC;IACJ,CAAC;IAED,GAAG,CAAC,GAAW,EAAE,KAAa;QAC5B,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE;YAC7B,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,WAAW,EAAE,EAAE;gBAC7C,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;gBACnB,OAAO;aACR;SACF;QACD,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC1B,CAAC;IAED,MAAM;QACJ,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;QACf,OAAO;YACL,IAAI;gBACF,KAAK,EAAE,CAAC;gBACR,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAC5B,OAAO;oBACL,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;oBAC1C,IAAI;iBACL,CAAC;YACJ,CAAC;YACD,CAAC,MAAM,CAAC,QAAQ,CAAC;gBACf,OAAO,IAAI,CAAC;YACd,CAAC;SACF,CAAC;IACJ,CAAC;IAED,CAAC,MAAM,CAAC,QAAQ,CAAC;QACf,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;CACF"} \ No newline at end of file diff --git a/build/mock-doc/history.d.ts b/build/mock-doc/history.d.ts deleted file mode 100644 index 138fc1c867d..00000000000 --- a/build/mock-doc/history.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare class MockHistory { - private items; - get length(): number; - back(): void; - forward(): void; - go(_value: number): void; - pushState(_state: any, _title: string, _url: string): void; - replaceState(_state: any, _title: string, _url: string): void; -} diff --git a/build/mock-doc/history.js b/build/mock-doc/history.js deleted file mode 100644 index 747d8a98ac3..00000000000 --- a/build/mock-doc/history.js +++ /dev/null @@ -1,24 +0,0 @@ -export class MockHistory { - constructor() { - this.items = []; - } - get length() { - return this.items.length; - } - back() { - this.go(-1); - } - forward() { - this.go(1); - } - go(_value) { - // - } - pushState(_state, _title, _url) { - // - } - replaceState(_state, _title, _url) { - // - } -} -//# sourceMappingURL=history.js.map \ No newline at end of file diff --git a/build/mock-doc/history.js.map b/build/mock-doc/history.js.map deleted file mode 100644 index 75b977eb8fa..00000000000 --- a/build/mock-doc/history.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/mock-doc/history.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,WAAW;IAAxB;QACU,UAAK,GAAU,EAAE,CAAC;IAyB5B,CAAC;IAvBC,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;IAC3B,CAAC;IAED,IAAI;QACF,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACd,CAAC;IAED,OAAO;QACL,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACb,CAAC;IAED,EAAE,CAAC,MAAc;QACf,EAAE;IACJ,CAAC;IAED,SAAS,CAAC,MAAW,EAAE,MAAc,EAAE,IAAY;QACjD,EAAE;IACJ,CAAC;IAED,YAAY,CAAC,MAAW,EAAE,MAAc,EAAE,IAAY;QACpD,EAAE;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/build/mock-doc/index.d.ts b/build/mock-doc/index.d.ts deleted file mode 100644 index f911dafc7ef..00000000000 --- a/build/mock-doc/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export { cloneAttributes, MockAttr, MockAttributeMap } from './attribute'; -export { MockComment } from './comment-node'; -export { NODE_TYPES } from './constants'; -export { createDocument, createFragment, MockDocument, resetDocument } from './document'; -export { MockCustomEvent, MockKeyboardEvent, MockMouseEvent } from './event'; -export { patchWindow, setupGlobal, teardownGlobal } from './global'; -export { MockHeaders } from './headers'; -export { MockElement, MockHTMLElement, MockNode, MockTextNode } from './node'; -export { parseHtmlToDocument, parseHtmlToFragment } from './parse-html'; -export { MockRequest, MockRequestInfo, MockRequestInit, MockResponse, MockResponseInit } from './request-response'; -export { serializeNodeToHtml, SerializeNodeToHtmlOptions } from './serialize-node'; -export { cloneDocument, cloneWindow, constrainTimeouts, MockWindow } from './window'; diff --git a/build/mock-doc/index.js b/build/mock-doc/index.js deleted file mode 100644 index c333894764b..00000000000 --- a/build/mock-doc/index.js +++ /dev/null @@ -1,12 +0,0 @@ -export { cloneAttributes, MockAttr, MockAttributeMap } from './attribute'; -export { MockComment } from './comment-node'; -export { createDocument, createFragment, MockDocument, resetDocument } from './document'; -export { MockCustomEvent, MockKeyboardEvent, MockMouseEvent } from './event'; -export { patchWindow, setupGlobal, teardownGlobal } from './global'; -export { MockHeaders } from './headers'; -export { MockElement, MockHTMLElement, MockNode, MockTextNode } from './node'; -export { parseHtmlToDocument, parseHtmlToFragment } from './parse-html'; -export { MockRequest, MockResponse } from './request-response'; -export { serializeNodeToHtml } from './serialize-node'; -export { cloneDocument, cloneWindow, constrainTimeouts, MockWindow } from './window'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/build/mock-doc/index.js.map b/build/mock-doc/index.js.map deleted file mode 100644 index 22965a7967a..00000000000 --- a/build/mock-doc/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mock-doc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,WAAW,EAAoC,YAAY,EAAoB,MAAM,oBAAoB,CAAC;AACnH,OAAO,EAAE,mBAAmB,EAA8B,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/intersection-observer.d.ts b/build/mock-doc/intersection-observer.d.ts deleted file mode 100644 index 9daaa8a9c82..00000000000 --- a/build/mock-doc/intersection-observer.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare class MockIntersectionObserver { - constructor(); - disconnect(): void; - observe(): void; - takeRecords(): any[]; - unobserve(): void; -} diff --git a/build/mock-doc/intersection-observer.js b/build/mock-doc/intersection-observer.js deleted file mode 100644 index 6c7e44e938e..00000000000 --- a/build/mock-doc/intersection-observer.js +++ /dev/null @@ -1,18 +0,0 @@ -export class MockIntersectionObserver { - constructor() { - /**/ - } - disconnect() { - /**/ - } - observe() { - /**/ - } - takeRecords() { - return []; - } - unobserve() { - /**/ - } -} -//# sourceMappingURL=intersection-observer.js.map \ No newline at end of file diff --git a/build/mock-doc/intersection-observer.js.map b/build/mock-doc/intersection-observer.js.map deleted file mode 100644 index b8c57626574..00000000000 --- a/build/mock-doc/intersection-observer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intersection-observer.js","sourceRoot":"","sources":["../../src/mock-doc/intersection-observer.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,wBAAwB;IACnC;QACE,IAAI;IACN,CAAC;IAED,UAAU;QACR,IAAI;IACN,CAAC;IAED,OAAO;QACL,IAAI;IACN,CAAC;IAED,WAAW;QACT,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,SAAS;QACP,IAAI;IACN,CAAC;CACF"} \ No newline at end of file diff --git a/build/mock-doc/location.d.ts b/build/mock-doc/location.d.ts deleted file mode 100644 index c2281dd578a..00000000000 --- a/build/mock-doc/location.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export declare class MockLocation implements Location { - ancestorOrigins: any; - protocol: string; - host: string; - hostname: string; - port: string; - pathname: string; - search: string; - hash: string; - username: string; - password: string; - origin: string; - private _href; - get href(): string; - set href(value: string); - assign(_url: string): void; - reload(_forcedReload?: boolean): void; - replace(_url: string): void; - toString(): string; -} diff --git a/build/mock-doc/location.js b/build/mock-doc/location.js deleted file mode 100644 index 8933085c162..00000000000 --- a/build/mock-doc/location.js +++ /dev/null @@ -1,46 +0,0 @@ -export class MockLocation { - constructor() { - this.ancestorOrigins = null; - this.protocol = ''; - this.host = ''; - this.hostname = ''; - this.port = ''; - this.pathname = ''; - this.search = ''; - this.hash = ''; - this.username = ''; - this.password = ''; - this.origin = ''; - this._href = ''; - } - get href() { - return this._href; - } - set href(value) { - const url = new URL(value, 'http://mockdoc.stenciljs.com'); - this._href = url.href; - this.protocol = url.protocol; - this.host = url.host; - this.hostname = url.hostname; - this.port = url.port; - this.pathname = url.pathname; - this.search = url.search; - this.hash = url.hash; - this.username = url.username; - this.password = url.password; - this.origin = url.origin; - } - assign(_url) { - // - } - reload(_forcedReload) { - // - } - replace(_url) { - // - } - toString() { - return this.href; - } -} -//# sourceMappingURL=location.js.map \ No newline at end of file diff --git a/build/mock-doc/location.js.map b/build/mock-doc/location.js.map deleted file mode 100644 index f45057e0db0..00000000000 --- a/build/mock-doc/location.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/mock-doc/location.ts"],"names":[],"mappings":"AAA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AE;IACJ,CAAC;IAED,MAAM,CAAC,aAAuB;QAC5B,EAAE;IACJ,CAAC;IAED,OAAO,CAAC,IAAY;QAClB,EAAE;IACJ,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"} \ No newline at end of file diff --git a/build/mock-doc/navigator.d.ts b/build/mock-doc/navigator.d.ts deleted file mode 100644 index 926beebca6c..00000000000 --- a/build/mock-doc/navigator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare class MockNavigator { - appCodeName: string; - appName: string; - appVersion: string; - platform: string; - userAgent: string; -} diff --git a/build/mock-doc/navigator.js b/build/mock-doc/navigator.js deleted file mode 100644 index 6cfbfd4a63d..00000000000 --- a/build/mock-doc/navigator.js +++ /dev/null @@ -1,10 +0,0 @@ -export class MockNavigator { - constructor() { - this.appCodeName = 'MockNavigator'; - this.appName = 'MockNavigator'; - this.appVersion = 'MockNavigator'; - this.platform = 'MockNavigator'; - this.userAgent = 'MockNavigator'; - } -} -//# sourceMappingURL=navigator.js.map \ No newline at end of file diff --git a/build/mock-doc/navigator.js.map b/build/mock-doc/navigator.js.map deleted file mode 100644 index 24a218f29dd..00000000000 --- a/build/mock-doc/navigator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"navigator.js","sourceRoot":"","sources":["../../src/mock-doc/navigator.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAa;IAA1B;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,YAAO,GAAG,eAAe,CAAC;QAC1B,eAAU,GAAG,eAAe,CAAC;QAC7B,aAAQ,GAAG,eAAe,CAAC;QAC3B,cAAS,GAAG,eAAe,CAAC;IAC9B,CAAC;CAAA"} \ No newline at end of file diff --git a/build/mock-doc/node.d.ts b/build/mock-doc/node.d.ts deleted file mode 100644 index d4f6ca49d0b..00000000000 --- a/build/mock-doc/node.d.ts +++ /dev/null @@ -1,254 +0,0 @@ -import { MockAttr, MockAttributeMap } from './attribute'; -import { MockClassList } from './class-list'; -import { MockCSSStyleDeclaration } from './css-style-declaration'; -import { MockEvent } from './event'; -import { SerializeNodeToHtmlOptions } from './serialize-node'; -export declare class MockNode { - private _nodeValue; - nodeName: string | null; - nodeType: number; - ownerDocument: any; - parentNode: MockNode | null; - childNodes: MockNode[]; - constructor(ownerDocument: any, nodeType: number, nodeName: string | null, nodeValue: string | null); - appendChild(newNode: MockNode): MockNode; - append(...items: (MockNode | string)[]): void; - prepend(...items: (MockNode | string)[]): void; - cloneNode(deep?: boolean): MockNode; - compareDocumentPosition(_other: MockNode): number; - get firstChild(): MockNode | null; - insertBefore(newNode: MockNode, referenceNode: MockNode): MockNode; - get isConnected(): boolean; - isSameNode(node: any): boolean; - get lastChild(): MockNode | null; - get nextSibling(): MockNode | null; - get nodeValue(): string; - set nodeValue(value: string); - get parentElement(): any; - set parentElement(value: any); - get previousSibling(): MockNode | null; - contains(otherNode: MockNode): boolean; - removeChild(childNode: MockNode): MockNode; - remove(): void; - replaceChild(newChild: MockNode, oldChild: MockNode): MockNode; - get textContent(): string; - set textContent(value: string); - static ELEMENT_NODE: number; - static TEXT_NODE: number; - static PROCESSING_INSTRUCTION_NODE: number; - static COMMENT_NODE: number; - static DOCUMENT_NODE: number; - static DOCUMENT_TYPE_NODE: number; - static DOCUMENT_FRAGMENT_NODE: number; -} -export declare class MockNodeList { - childNodes: MockNode[]; - length: number; - ownerDocument: any; - constructor(ownerDocument: any, childNodes: MockNode[], length: number); -} -type MockElementInternals = Record; -export declare class MockElement extends MockNode { - __namespaceURI: string | null; - __attributeMap: MockAttributeMap | null | undefined; - __shadowRoot: ShadowRoot | null | undefined; - __style: MockCSSStyleDeclaration | null | undefined; - attachInternals(): MockElementInternals; - constructor(ownerDocument: any, nodeName: string | null, namespaceURI?: string | null); - addEventListener(type: string, handler: (ev?: any) => void): void; - attachShadow(_opts: ShadowRootInit): any; - blur(): void; - get namespaceURI(): string; - get shadowRoot(): any; - set shadowRoot(shadowRoot: any); - get attributes(): MockAttributeMap; - set attributes(attrs: MockAttributeMap); - get children(): MockElement[]; - get childElementCount(): number; - get className(): string; - set className(value: string); - get classList(): MockClassList; - click(): void; - cloneNode(_deep?: boolean): MockElement; - closest(selector: string): this; - get dataset(): any; - get dir(): string; - set dir(value: string); - dispatchEvent(ev: MockEvent): boolean; - get firstElementChild(): MockElement | null; - focus(_options?: { - preventScroll?: boolean; - }): void; - getAttribute(attrName: string): any; - getAttributeNS(namespaceURI: string | null, attrName: string): string; - getAttributeNode(attrName: string): MockAttr | null; - getBoundingClientRect(): { - bottom: number; - height: number; - left: number; - right: number; - top: number; - width: number; - x: number; - y: number; - }; - getRootNode(opts?: { - composed?: boolean; - [key: string]: any; - }): Node; - get draggable(): boolean; - set draggable(value: boolean); - hasChildNodes(): boolean; - get id(): string; - set id(value: string); - get innerHTML(): string; - set innerHTML(html: string); - get innerText(): string; - set innerText(value: string); - insertAdjacentElement(position: 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend', elm: MockHTMLElement): MockHTMLElement; - insertAdjacentHTML(position: 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend', html: string): void; - insertAdjacentText(position: 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend', text: string): void; - hasAttribute(attrName: string): boolean; - hasAttributeNS(namespaceURI: string | null, name: string): boolean; - get hidden(): boolean; - set hidden(isHidden: boolean); - get lang(): string; - set lang(value: string); - get lastElementChild(): MockElement | null; - matches(selector: string): boolean; - get nextElementSibling(): any; - get outerHTML(): string; - get previousElementSibling(): any; - getElementsByClassName(classNames: string): MockElement[]; - getElementsByTagName(tagName: string): MockElement[]; - querySelector(selector: string): Element; - querySelectorAll(selector: string): Element[]; - removeAttribute(attrName: string): void; - removeAttributeNS(namespaceURI: string | null, attrName: string): void; - removeEventListener(type: string, handler: any): void; - setAttribute(attrName: string, value: any): void; - setAttributeNS(namespaceURI: string | null, attrName: string, value: any): void; - get style(): any; - set style(val: any); - get tabIndex(): number; - set tabIndex(value: number); - get tagName(): string; - set tagName(value: string); - get textContent(): string; - set textContent(value: string); - get title(): string; - set title(value: string); - animate(): void; - onanimationstart(): void; - onanimationend(): void; - onanimationiteration(): void; - onabort(): void; - onauxclick(): void; - onbeforecopy(): void; - onbeforecut(): void; - onbeforepaste(): void; - onblur(): void; - oncancel(): void; - oncanplay(): void; - oncanplaythrough(): void; - onchange(): void; - onclick(): void; - onclose(): void; - oncontextmenu(): void; - oncopy(): void; - oncuechange(): void; - oncut(): void; - ondblclick(): void; - ondrag(): void; - ondragend(): void; - ondragenter(): void; - ondragleave(): void; - ondragover(): void; - ondragstart(): void; - ondrop(): void; - ondurationchange(): void; - onemptied(): void; - onended(): void; - onerror(): void; - onfocus(): void; - onfocusin(): void; - onfocusout(): void; - onformdata(): void; - onfullscreenchange(): void; - onfullscreenerror(): void; - ongotpointercapture(): void; - oninput(): void; - oninvalid(): void; - onkeydown(): void; - onkeypress(): void; - onkeyup(): void; - onload(): void; - onloadeddata(): void; - onloadedmetadata(): void; - onloadstart(): void; - onlostpointercapture(): void; - onmousedown(): void; - onmouseenter(): void; - onmouseleave(): void; - onmousemove(): void; - onmouseout(): void; - onmouseover(): void; - onmouseup(): void; - onmousewheel(): void; - onpaste(): void; - onpause(): void; - onplay(): void; - onplaying(): void; - onpointercancel(): void; - onpointerdown(): void; - onpointerenter(): void; - onpointerleave(): void; - onpointermove(): void; - onpointerout(): void; - onpointerover(): void; - onpointerup(): void; - onprogress(): void; - onratechange(): void; - onreset(): void; - onresize(): void; - onscroll(): void; - onsearch(): void; - onseeked(): void; - onseeking(): void; - onselect(): void; - onselectstart(): void; - onstalled(): void; - onsubmit(): void; - onsuspend(): void; - ontimeupdate(): void; - ontoggle(): void; - onvolumechange(): void; - onwaiting(): void; - onwebkitfullscreenchange(): void; - onwebkitfullscreenerror(): void; - onwheel(): void; - requestFullscreen(): void; - scrollBy(): void; - scrollTo(): void; - scrollIntoView(): void; - toString(opts?: SerializeNodeToHtmlOptions): string; -} -export declare function resetElement(elm: MockElement): void; -export declare class MockHTMLElement extends MockElement { - __namespaceURI: string; - constructor(ownerDocument: any, nodeName: string); - get tagName(): string; - set tagName(value: string); - get attributes(): MockAttributeMap; - set attributes(attrs: MockAttributeMap); -} -export declare class MockTextNode extends MockNode { - constructor(ownerDocument: any, text: string); - cloneNode(_deep?: boolean): MockTextNode; - get textContent(): string; - set textContent(text: string); - get data(): string; - set data(text: string); - get wholeText(): string; -} -export {}; diff --git a/build/mock-doc/node.js b/build/mock-doc/node.js deleted file mode 100644 index 716b7f09045..00000000000 --- a/build/mock-doc/node.js +++ /dev/null @@ -1,1045 +0,0 @@ -import { createAttributeProxy, MockAttr } from './attribute'; -import { MockClassList } from './class-list'; -import { createCSSStyleDeclaration } from './css-style-declaration'; -import { attributeChanged, checkAttributeChanged, connectNode, disconnectNode } from './custom-element-registry'; -import { dataset } from './dataset'; -import { addEventListener, dispatchEvent, MockEvent, MockFocusEvent, removeEventListener, resetEventListeners, } from './event'; -import { parseFragmentUtil } from './parse-util'; -import { matches, selectAll, selectOne } from './selector'; -import { NON_ESCAPABLE_CONTENT, serializeNodeToHtml } from './serialize-node'; -export class MockNode { - constructor(ownerDocument, nodeType, nodeName, nodeValue) { - this.ownerDocument = ownerDocument; - this.nodeType = nodeType; - this.nodeName = nodeName; - this._nodeValue = nodeValue; - this.parentNode = null; - this.childNodes = []; - } - appendChild(newNode) { - if (newNode.nodeType === 11 /* NODE_TYPES.DOCUMENT_FRAGMENT_NODE */) { - const nodes = newNode.childNodes.slice(); - for (const child of nodes) { - this.appendChild(child); - } - } - else { - newNode.remove(); - newNode.parentNode = this; - this.childNodes.push(newNode); - connectNode(this.ownerDocument, newNode); - } - return newNode; - } - append(...items) { - items.forEach((item) => { - const isNode = typeof item === 'object' && item !== null && 'nodeType' in item; - this.appendChild(isNode ? item : this.ownerDocument.createTextNode(String(item))); - }); - } - prepend(...items) { - const firstChild = this.firstChild; - items.forEach((item) => { - const isNode = typeof item === 'object' && item !== null && 'nodeType' in item; - if (firstChild) { - this.insertBefore(isNode ? item : this.ownerDocument.createTextNode(String(item)), firstChild); - } - }); - } - cloneNode(deep) { - throw new Error(`invalid node type to clone: ${this.nodeType}, deep: ${deep}`); - } - compareDocumentPosition(_other) { - // unimplemented - // https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition - return -1; - } - get firstChild() { - return this.childNodes[0] || null; - } - insertBefore(newNode, referenceNode) { - if (newNode.nodeType === 11 /* NODE_TYPES.DOCUMENT_FRAGMENT_NODE */) { - for (let i = 0, ii = newNode.childNodes.length; i < ii; i++) { - insertBefore(this, newNode.childNodes[i], referenceNode); - } - } - else { - insertBefore(this, newNode, referenceNode); - } - return newNode; - } - get isConnected() { - let node = this; - while (node != null) { - if (node.nodeType === 9 /* NODE_TYPES.DOCUMENT_NODE */) { - return true; - } - node = node.parentNode; - if (node != null && node.nodeType === 11 /* NODE_TYPES.DOCUMENT_FRAGMENT_NODE */) { - node = node.host; - } - } - return false; - } - isSameNode(node) { - return this === node; - } - get lastChild() { - return this.childNodes[this.childNodes.length - 1] || null; - } - get nextSibling() { - if (this.parentNode != null) { - const index = this.parentNode.childNodes.indexOf(this) + 1; - return this.parentNode.childNodes[index] || null; - } - return null; - } - get nodeValue() { - var _a; - return (_a = this._nodeValue) !== null && _a !== void 0 ? _a : ''; - } - set nodeValue(value) { - this._nodeValue = value; - } - get parentElement() { - return this.parentNode || null; - } - set parentElement(value) { - this.parentNode = value; - } - get previousSibling() { - if (this.parentNode != null) { - const index = this.parentNode.childNodes.indexOf(this) - 1; - return this.parentNode.childNodes[index] || null; - } - return null; - } - contains(otherNode) { - if (otherNode === this) { - return true; - } - const childNodes = Array.from(this.childNodes); - if (childNodes.includes(otherNode)) { - return true; - } - return childNodes.some((node) => this.contains.bind(node)(otherNode)); - } - removeChild(childNode) { - const index = this.childNodes.indexOf(childNode); - if (index > -1) { - this.childNodes.splice(index, 1); - if (this.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */) { - const wasConnected = this.isConnected; - childNode.parentNode = null; - if (wasConnected === true) { - disconnectNode(childNode); - } - } - else { - childNode.parentNode = null; - } - } - else { - throw new Error(`node not found within childNodes during removeChild`); - } - return childNode; - } - remove() { - if (this.parentNode != null) { - this.parentNode.removeChild(this); - } - } - replaceChild(newChild, oldChild) { - if (oldChild.parentNode === this) { - this.insertBefore(newChild, oldChild); - oldChild.remove(); - return newChild; - } - return null; - } - get textContent() { - var _a; - return (_a = this._nodeValue) !== null && _a !== void 0 ? _a : ''; - } - set textContent(value) { - this._nodeValue = String(value); - } -} -MockNode.ELEMENT_NODE = 1; -MockNode.TEXT_NODE = 3; -MockNode.PROCESSING_INSTRUCTION_NODE = 7; -MockNode.COMMENT_NODE = 8; -MockNode.DOCUMENT_NODE = 9; -MockNode.DOCUMENT_TYPE_NODE = 10; -MockNode.DOCUMENT_FRAGMENT_NODE = 11; -export class MockNodeList { - constructor(ownerDocument, childNodes, length) { - this.ownerDocument = ownerDocument; - this.childNodes = childNodes; - this.length = length; - } -} -export class MockElement extends MockNode { - attachInternals() { - return new Proxy({}, { - get: function (_target, prop, _receiver) { - console.error(`NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented. -Testing components with ElementInternals is fully supported in e2e tests.`); - }, - }); - } - constructor(ownerDocument, nodeName, namespaceURI = null) { - super(ownerDocument, 1 /* NODE_TYPES.ELEMENT_NODE */, typeof nodeName === 'string' ? nodeName : null, null); - this.__namespaceURI = namespaceURI; - this.__shadowRoot = null; - this.__attributeMap = null; - } - addEventListener(type, handler) { - addEventListener(this, type, handler); - } - attachShadow(_opts) { - const shadowRoot = this.ownerDocument.createDocumentFragment(); - this.shadowRoot = shadowRoot; - return shadowRoot; - } - blur() { - dispatchEvent(this, new MockFocusEvent('blur', { relatedTarget: null, bubbles: true, cancelable: true, composed: true })); - } - get namespaceURI() { - return this.__namespaceURI; - } - get shadowRoot() { - return this.__shadowRoot || null; - } - set shadowRoot(shadowRoot) { - if (shadowRoot != null) { - shadowRoot.host = this; - this.__shadowRoot = shadowRoot; - } - else { - delete this.__shadowRoot; - } - } - get attributes() { - if (this.__attributeMap == null) { - const attrMap = createAttributeProxy(false); - this.__attributeMap = attrMap; - return attrMap; - } - return this.__attributeMap; - } - set attributes(attrs) { - this.__attributeMap = attrs; - } - get children() { - return this.childNodes.filter((n) => n.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */); - } - get childElementCount() { - return this.childNodes.filter((n) => n.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */).length; - } - get className() { - return this.getAttributeNS(null, 'class') || ''; - } - set className(value) { - this.setAttributeNS(null, 'class', value); - } - get classList() { - return new MockClassList(this); - } - click() { - dispatchEvent(this, new MockEvent('click', { bubbles: true, cancelable: true, composed: true })); - } - cloneNode(_deep) { - // implemented on MockElement.prototype from within element.ts - // @ts-ignore - implemented on MockElement.prototype from within element.ts - return null; - } - closest(selector) { - let elm = this; - while (elm != null) { - if (elm.matches(selector)) { - return elm; - } - elm = elm.parentNode; - } - return null; - } - get dataset() { - return dataset(this); - } - get dir() { - return this.getAttributeNS(null, 'dir') || ''; - } - set dir(value) { - this.setAttributeNS(null, 'dir', value); - } - dispatchEvent(ev) { - return dispatchEvent(this, ev); - } - get firstElementChild() { - return this.children[0] || null; - } - focus(_options) { - dispatchEvent(this, new MockFocusEvent('focus', { relatedTarget: null, bubbles: true, cancelable: true, composed: true })); - } - getAttribute(attrName) { - if (attrName === 'style') { - if (this.__style != null && this.__style.length > 0) { - return this.style.cssText; - } - return null; - } - const attr = this.attributes.getNamedItem(attrName); - if (attr != null) { - return attr.value; - } - return null; - } - getAttributeNS(namespaceURI, attrName) { - const attr = this.attributes.getNamedItemNS(namespaceURI, attrName); - if (attr != null) { - return attr.value; - } - return null; - } - getAttributeNode(attrName) { - if (!this.hasAttribute(attrName)) { - return null; - } - return new MockAttr(attrName, this.getAttribute(attrName)); - } - getBoundingClientRect() { - return { bottom: 0, height: 0, left: 0, right: 0, top: 0, width: 0, x: 0, y: 0 }; - } - getRootNode(opts) { - const isComposed = opts != null && opts.composed === true; - let node = this; - while (node.parentNode != null) { - node = node.parentNode; - if (isComposed === true && node.parentNode == null && node.host != null) { - node = node.host; - } - } - return node; - } - get draggable() { - return this.getAttributeNS(null, 'draggable') === 'true'; - } - set draggable(value) { - this.setAttributeNS(null, 'draggable', value); - } - hasChildNodes() { - return this.childNodes.length > 0; - } - get id() { - return this.getAttributeNS(null, 'id') || ''; - } - set id(value) { - this.setAttributeNS(null, 'id', value); - } - get innerHTML() { - if (this.childNodes.length === 0) { - return ''; - } - return serializeNodeToHtml(this, { - newLines: false, - indentSpaces: 0, - }); - } - set innerHTML(html) { - var _a; - if (NON_ESCAPABLE_CONTENT.has((_a = this.nodeName) !== null && _a !== void 0 ? _a : '') === true) { - setTextContent(this, html); - } - else { - for (let i = this.childNodes.length - 1; i >= 0; i--) { - this.removeChild(this.childNodes[i]); - } - if (typeof html === 'string') { - const frag = parseFragmentUtil(this.ownerDocument, html); - while (frag.childNodes.length > 0) { - this.appendChild(frag.childNodes[0]); - } - } - } - } - get innerText() { - const text = []; - getTextContent(this.childNodes, text); - return text.join(''); - } - set innerText(value) { - setTextContent(this, value); - } - insertAdjacentElement(position, elm) { - if (position === 'beforebegin') { - insertBefore(this.parentNode, elm, this); - } - else if (position === 'afterbegin') { - this.prepend(elm); - } - else if (position === 'beforeend') { - this.appendChild(elm); - } - else if (position === 'afterend') { - insertBefore(this.parentNode, elm, this.nextSibling); - } - return elm; - } - insertAdjacentHTML(position, html) { - const frag = parseFragmentUtil(this.ownerDocument, html); - if (position === 'beforebegin') { - while (frag.childNodes.length > 0) { - insertBefore(this.parentNode, frag.childNodes[0], this); - } - } - else if (position === 'afterbegin') { - while (frag.childNodes.length > 0) { - this.prepend(frag.childNodes[frag.childNodes.length - 1]); - } - } - else if (position === 'beforeend') { - while (frag.childNodes.length > 0) { - this.appendChild(frag.childNodes[0]); - } - } - else if (position === 'afterend') { - while (frag.childNodes.length > 0) { - insertBefore(this.parentNode, frag.childNodes[frag.childNodes.length - 1], this.nextSibling); - } - } - } - insertAdjacentText(position, text) { - const elm = this.ownerDocument.createTextNode(text); - if (position === 'beforebegin') { - insertBefore(this.parentNode, elm, this); - } - else if (position === 'afterbegin') { - this.prepend(elm); - } - else if (position === 'beforeend') { - this.appendChild(elm); - } - else if (position === 'afterend') { - insertBefore(this.parentNode, elm, this.nextSibling); - } - } - hasAttribute(attrName) { - if (attrName === 'style') { - return this.__style != null && this.__style.length > 0; - } - return this.getAttribute(attrName) !== null; - } - hasAttributeNS(namespaceURI, name) { - return this.getAttributeNS(namespaceURI, name) !== null; - } - get hidden() { - return this.hasAttributeNS(null, 'hidden'); - } - set hidden(isHidden) { - if (isHidden === true) { - this.setAttributeNS(null, 'hidden', ''); - } - else { - this.removeAttributeNS(null, 'hidden'); - } - } - get lang() { - return this.getAttributeNS(null, 'lang') || ''; - } - set lang(value) { - this.setAttributeNS(null, 'lang', value); - } - get lastElementChild() { - const children = this.children; - return children[children.length - 1] || null; - } - matches(selector) { - return matches(selector, this); - } - get nextElementSibling() { - const parentElement = this.parentElement; - if (parentElement != null && - (parentElement.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */ || - parentElement.nodeType === 11 /* NODE_TYPES.DOCUMENT_FRAGMENT_NODE */ || - parentElement.nodeType === 9 /* NODE_TYPES.DOCUMENT_NODE */)) { - const children = parentElement.children; - const index = children.indexOf(this) + 1; - return parentElement.children[index] || null; - } - return null; - } - get outerHTML() { - return serializeNodeToHtml(this, { - newLines: false, - outerHtml: true, - indentSpaces: 0, - }); - } - get previousElementSibling() { - const parentElement = this.parentElement; - if (parentElement != null && - (parentElement.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */ || - parentElement.nodeType === 11 /* NODE_TYPES.DOCUMENT_FRAGMENT_NODE */ || - parentElement.nodeType === 9 /* NODE_TYPES.DOCUMENT_NODE */)) { - const children = parentElement.children; - const index = children.indexOf(this) - 1; - return parentElement.children[index] || null; - } - return null; - } - getElementsByClassName(classNames) { - const classes = classNames - .trim() - .split(' ') - .filter((c) => c.length > 0); - const results = []; - getElementsByClassName(this, classes, results); - return results; - } - getElementsByTagName(tagName) { - const results = []; - getElementsByTagName(this, tagName.toLowerCase(), results); - return results; - } - querySelector(selector) { - return selectOne(selector, this); - } - querySelectorAll(selector) { - return selectAll(selector, this); - } - removeAttribute(attrName) { - if (attrName === 'style') { - delete this.__style; - } - else { - const attr = this.attributes.getNamedItem(attrName); - if (attr != null) { - this.attributes.removeNamedItemNS(attr); - if (checkAttributeChanged(this) === true) { - attributeChanged(this, attrName, attr.value, null); - } - } - } - } - removeAttributeNS(namespaceURI, attrName) { - const attr = this.attributes.getNamedItemNS(namespaceURI, attrName); - if (attr != null) { - this.attributes.removeNamedItemNS(attr); - if (checkAttributeChanged(this) === true) { - attributeChanged(this, attrName, attr.value, null); - } - } - } - removeEventListener(type, handler) { - removeEventListener(this, type, handler); - } - setAttribute(attrName, value) { - if (attrName === 'style') { - this.style = value; - } - else { - const attributes = this.attributes; - let attr = attributes.getNamedItem(attrName); - const checkAttrChanged = checkAttributeChanged(this); - if (attr != null) { - if (checkAttrChanged === true) { - const oldValue = attr.value; - attr.value = value; - if (oldValue !== attr.value) { - attributeChanged(this, attr.name, oldValue, attr.value); - } - } - else { - attr.value = value; - } - } - else { - if (attributes.caseInsensitive) { - attrName = attrName.toLowerCase(); - } - attr = new MockAttr(attrName, value); - attributes.__items.push(attr); - if (checkAttrChanged === true) { - attributeChanged(this, attrName, null, attr.value); - } - } - } - } - setAttributeNS(namespaceURI, attrName, value) { - const attributes = this.attributes; - let attr = attributes.getNamedItemNS(namespaceURI, attrName); - const checkAttrChanged = checkAttributeChanged(this); - if (attr != null) { - if (checkAttrChanged === true) { - const oldValue = attr.value; - attr.value = value; - if (oldValue !== attr.value) { - attributeChanged(this, attr.name, oldValue, attr.value); - } - } - else { - attr.value = value; - } - } - else { - attr = new MockAttr(attrName, value, namespaceURI); - attributes.__items.push(attr); - if (checkAttrChanged === true) { - attributeChanged(this, attrName, null, attr.value); - } - } - } - get style() { - if (this.__style == null) { - this.__style = createCSSStyleDeclaration(); - } - return this.__style; - } - set style(val) { - if (typeof val === 'string') { - if (this.__style == null) { - this.__style = createCSSStyleDeclaration(); - } - this.__style.cssText = val; - } - else { - this.__style = val; - } - } - get tabIndex() { - return parseInt(this.getAttributeNS(null, 'tabindex') || '-1', 10); - } - set tabIndex(value) { - this.setAttributeNS(null, 'tabindex', value); - } - get tagName() { - var _a; - return (_a = this.nodeName) !== null && _a !== void 0 ? _a : ''; - } - set tagName(value) { - this.nodeName = value; - } - get textContent() { - const text = []; - getTextContent(this.childNodes, text); - return text.join(''); - } - set textContent(value) { - setTextContent(this, value); - } - get title() { - return this.getAttributeNS(null, 'title') || ''; - } - set title(value) { - this.setAttributeNS(null, 'title', value); - } - animate() { - /**/ - } - onanimationstart() { - /**/ - } - onanimationend() { - /**/ - } - onanimationiteration() { - /**/ - } - onabort() { - /**/ - } - onauxclick() { - /**/ - } - onbeforecopy() { - /**/ - } - onbeforecut() { - /**/ - } - onbeforepaste() { - /**/ - } - onblur() { - /**/ - } - oncancel() { - /**/ - } - oncanplay() { - /**/ - } - oncanplaythrough() { - /**/ - } - onchange() { - /**/ - } - onclick() { - /**/ - } - onclose() { - /**/ - } - oncontextmenu() { - /**/ - } - oncopy() { - /**/ - } - oncuechange() { - /**/ - } - oncut() { - /**/ - } - ondblclick() { - /**/ - } - ondrag() { - /**/ - } - ondragend() { - /**/ - } - ondragenter() { - /**/ - } - ondragleave() { - /**/ - } - ondragover() { - /**/ - } - ondragstart() { - /**/ - } - ondrop() { - /**/ - } - ondurationchange() { - /**/ - } - onemptied() { - /**/ - } - onended() { - /**/ - } - onerror() { - /**/ - } - onfocus() { - /**/ - } - onfocusin() { - /**/ - } - onfocusout() { - /**/ - } - onformdata() { - /**/ - } - onfullscreenchange() { - /**/ - } - onfullscreenerror() { - /**/ - } - ongotpointercapture() { - /**/ - } - oninput() { - /**/ - } - oninvalid() { - /**/ - } - onkeydown() { - /**/ - } - onkeypress() { - /**/ - } - onkeyup() { - /**/ - } - onload() { - /**/ - } - onloadeddata() { - /**/ - } - onloadedmetadata() { - /**/ - } - onloadstart() { - /**/ - } - onlostpointercapture() { - /**/ - } - onmousedown() { - /**/ - } - onmouseenter() { - /**/ - } - onmouseleave() { - /**/ - } - onmousemove() { - /**/ - } - onmouseout() { - /**/ - } - onmouseover() { - /**/ - } - onmouseup() { - /**/ - } - onmousewheel() { - /**/ - } - onpaste() { - /**/ - } - onpause() { - /**/ - } - onplay() { - /**/ - } - onplaying() { - /**/ - } - onpointercancel() { - /**/ - } - onpointerdown() { - /**/ - } - onpointerenter() { - /**/ - } - onpointerleave() { - /**/ - } - onpointermove() { - /**/ - } - onpointerout() { - /**/ - } - onpointerover() { - /**/ - } - onpointerup() { - /**/ - } - onprogress() { - /**/ - } - onratechange() { - /**/ - } - onreset() { - /**/ - } - onresize() { - /**/ - } - onscroll() { - /**/ - } - onsearch() { - /**/ - } - onseeked() { - /**/ - } - onseeking() { - /**/ - } - onselect() { - /**/ - } - onselectstart() { - /**/ - } - onstalled() { - /**/ - } - onsubmit() { - /**/ - } - onsuspend() { - /**/ - } - ontimeupdate() { - /**/ - } - ontoggle() { - /**/ - } - onvolumechange() { - /**/ - } - onwaiting() { - /**/ - } - onwebkitfullscreenchange() { - /**/ - } - onwebkitfullscreenerror() { - /**/ - } - onwheel() { - /**/ - } - requestFullscreen() { - /**/ - } - scrollBy() { - /**/ - } - scrollTo() { - /**/ - } - scrollIntoView() { - /**/ - } - toString(opts) { - return serializeNodeToHtml(this, opts); - } -} -function getElementsByClassName(elm, classNames, foundElms) { - const children = elm.children; - for (let i = 0, ii = children.length; i < ii; i++) { - const childElm = children[i]; - for (let j = 0, jj = classNames.length; j < jj; j++) { - if (childElm.classList.contains(classNames[j])) { - foundElms.push(childElm); - } - } - getElementsByClassName(childElm, classNames, foundElms); - } -} -function getElementsByTagName(elm, tagName, foundElms) { - var _a; - const children = elm.children; - for (let i = 0, ii = children.length; i < ii; i++) { - const childElm = children[i]; - if (tagName === '*' || ((_a = childElm.nodeName) !== null && _a !== void 0 ? _a : '').toLowerCase() === tagName) { - foundElms.push(childElm); - } - getElementsByTagName(childElm, tagName, foundElms); - } -} -export function resetElement(elm) { - resetEventListeners(elm); - delete elm.__attributeMap; - delete elm.__shadowRoot; - delete elm.__style; -} -function insertBefore(parentNode, newNode, referenceNode) { - if (newNode !== referenceNode) { - newNode.remove(); - newNode.parentNode = parentNode; - newNode.ownerDocument = parentNode.ownerDocument; - if (referenceNode != null) { - const index = parentNode.childNodes.indexOf(referenceNode); - if (index > -1) { - parentNode.childNodes.splice(index, 0, newNode); - } - else { - throw new Error(`referenceNode not found in parentNode.childNodes`); - } - } - else { - parentNode.childNodes.push(newNode); - } - connectNode(parentNode.ownerDocument, newNode); - } - return newNode; -} -export class MockHTMLElement extends MockElement { - constructor(ownerDocument, nodeName) { - super(ownerDocument, typeof nodeName === 'string' ? nodeName.toUpperCase() : null); - this.__namespaceURI = 'http://www.w3.org/1999/xhtml'; - } - get tagName() { - var _a; - return (_a = this.nodeName) !== null && _a !== void 0 ? _a : ''; - } - set tagName(value) { - this.nodeName = value; - } - get attributes() { - if (this.__attributeMap == null) { - const attrMap = createAttributeProxy(true); - this.__attributeMap = attrMap; - return attrMap; - } - return this.__attributeMap; - } - set attributes(attrs) { - this.__attributeMap = attrs; - } -} -export class MockTextNode extends MockNode { - constructor(ownerDocument, text) { - super(ownerDocument, 3 /* NODE_TYPES.TEXT_NODE */, "#text" /* NODE_NAMES.TEXT_NODE */, text); - } - cloneNode(_deep) { - return new MockTextNode(null, this.nodeValue); - } - get textContent() { - return this.nodeValue; - } - set textContent(text) { - this.nodeValue = text; - } - get data() { - return this.nodeValue; - } - set data(text) { - this.nodeValue = text; - } - get wholeText() { - if (this.parentNode != null) { - const text = []; - for (let i = 0, ii = this.parentNode.childNodes.length; i < ii; i++) { - const childNode = this.parentNode.childNodes[i]; - if (childNode.nodeType === 3 /* NODE_TYPES.TEXT_NODE */) { - text.push(childNode.nodeValue); - } - } - return text.join(''); - } - return this.nodeValue; - } -} -function getTextContent(childNodes, text) { - for (let i = 0, ii = childNodes.length; i < ii; i++) { - const childNode = childNodes[i]; - if (childNode.nodeType === 3 /* NODE_TYPES.TEXT_NODE */) { - text.push(childNode.nodeValue); - } - else if (childNode.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */) { - getTextContent(childNode.childNodes, text); - } - } -} -function setTextContent(elm, text) { - for (let i = elm.childNodes.length - 1; i >= 0; i--) { - elm.removeChild(elm.childNodes[i]); - } - const textNode = new MockTextNode(elm.ownerDocument, text); - elm.appendChild(textNode); -} -//# sourceMappingURL=node.js.map \ No newline at end of file diff --git a/build/mock-doc/node.js.map b/build/mock-doc/node.js.map deleted file mode 100644 index baca91ca4c7..00000000000 --- a/build/mock-doc/node.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/mock-doc/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAoB,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,yBAAyB,EAA2B,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,E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AI;IACN,CAAC;IACD,UAAU;QACR,IAAI;IACN,CAAC;IACD,kBAAkB;QAChB,IAAI;IACN,CAAC;IACD,iBAAiB;QACf,IAAI;IACN,CAAC;IACD,mBAAmB;QACjB,IAAI;IACN,CAAC;IACD,OAAO;QACL,IAAI;IACN,CAAC;IACD,SAAS;QACP,IAAI;IACN,CAAC;IACD,SAAS;QACP,IAAI;IACN,CAAC;IACD,UAAU;QACR,IAAI;IACN,CAAC;IACD,OAAO;QACL,IAAI;IACN,CAAC;IACD,MAAM;QACJ,IAAI;IACN,CAAC;IACD,YAAY;QACV,IAAI;IACN,CAAC;IACD,gBAAgB;QACd,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,oBAAoB;QAClB,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,YAAY;QACV,IAAI;IACN,CAAC;IACD,YAAY;QACV,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,UAAU;QACR,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,SAAS;QACP,IAAI;IACN,CAAC;IACD,YAAY;QACV,IAAI;IACN,CAAC;IACD,OAAO;QACL,IAAI;IACN,CAAC;IACD,OAAO;QACL,IAAI;IACN,CAAC;IACD,MAAM;QACJ,IAAI;IACN,CAAC;IACD,SAAS;QACP,IAAI;IACN,CAAC;IACD,eAAe;QACb,IAAI;IACN,CAAC;IACD,aAAa;QACX,IAAI;IACN,CAAC;IACD,cAAc;QACZ,IAAI;IACN,CAAC;IACD,cAAc;QACZ,IAAI;IACN,CAAC;IACD,aAAa;QACX,IAAI;IACN,CAAC;IACD,YAAY;QACV,IAAI;IACN,CAAC;IACD,aAAa;QACX,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,UAAU;QACR,IAAI;IACN,CAAC;IACD,YAAY;QACV,IAAI;IACN,CAAC;IACD,OAAO;QACL,IAAI;IACN,C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AAE,EAAE;QACnD,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QAChC,IAAI,SAAS,CAAC,QAAQ,iCAAyB,EAAE;YAC/C,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;SAChC;aAAM,IAAI,SAAS,CAAC,QAAQ,oCAA4B,EAAE;YACzD,cAAc,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;SAC5C;KACF;AACH,CAAC;AAED,SAAS,cAAc,CAAC,GAAgB,EAAE,IAAY;IACpD,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;QACnD,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;KACpC;IACD,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAC3D,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;AAC5B,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/parse-html.d.ts b/build/mock-doc/parse-html.d.ts deleted file mode 100644 index d579356c5bf..00000000000 --- a/build/mock-doc/parse-html.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { MockDocument } from './document'; -export declare function parseHtmlToDocument(html: string, ownerDocument?: MockDocument): any; -export declare function parseHtmlToFragment(html: string, ownerDocument?: MockDocument): any; diff --git a/build/mock-doc/parse-html.js b/build/mock-doc/parse-html.js deleted file mode 100644 index 7dd2b14ae0c..00000000000 --- a/build/mock-doc/parse-html.js +++ /dev/null @@ -1,22 +0,0 @@ -import { MockDocument } from './document'; -import { parseDocumentUtil, parseFragmentUtil } from './parse-util'; -let sharedDocument; -export function parseHtmlToDocument(html, ownerDocument = null) { - if (ownerDocument == null) { - if (sharedDocument == null) { - sharedDocument = new MockDocument(); - } - ownerDocument = sharedDocument; - } - return parseDocumentUtil(ownerDocument, html); -} -export function parseHtmlToFragment(html, ownerDocument = null) { - if (ownerDocument == null) { - if (sharedDocument == null) { - sharedDocument = new MockDocument(); - } - ownerDocument = sharedDocument; - } - return parseFragmentUtil(ownerDocument, html); -} -//# sourceMappingURL=parse-html.js.map \ No newline at end of file diff --git a/build/mock-doc/parse-html.js.map b/build/mock-doc/parse-html.js.map deleted file mode 100644 index 24aa4317327..00000000000 --- a/build/mock-doc/parse-html.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-html.js","sourceRoot":"","sources":["../../src/mock-doc/parse-html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEpE,IAAI,cAA4B,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CAAC,IAAY,EAAE,gBAA8B,IAAI;IAClF,IAAI,aAAa,IAAI,IAAI,EAAE;QACzB,IAAI,cAAc,IAAI,IAAI,EAAE;YAC1B,cAAc,GAAG,IAAI,YAAY,EAAE,CAAC;SACrC;QACD,aAAa,GAAG,cAAc,CAAC;KAChC;IAED,OAAO,iBAAiB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAY,EAAE,gBAA8B,IAAI;IAClF,IAAI,aAAa,IAAI,IAAI,EAAE;QACzB,IAAI,cAAc,IAAI,IAAI,EAAE;YAC1B,cAAc,GAAG,IAAI,YAAY,EAAE,CAAC;SACrC;QACD,aAAa,GAAG,cAAc,CAAC;KAChC;IAED,OAAO,iBAAiB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;AAChD,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/parse-util.d.ts b/build/mock-doc/parse-util.d.ts deleted file mode 100644 index 6f219143c98..00000000000 --- a/build/mock-doc/parse-util.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function parseDocumentUtil(ownerDocument: any, html: string): any; -export declare function parseFragmentUtil(ownerDocument: any, html: string): any; diff --git a/build/mock-doc/parse-util.js b/build/mock-doc/parse-util.js deleted file mode 100644 index 969766c202b..00000000000 --- a/build/mock-doc/parse-util.js +++ /dev/null @@ -1,189 +0,0 @@ -import { parse, parseFragment, } from 'parse5'; -const docParser = new WeakMap(); -export function parseDocumentUtil(ownerDocument, html) { - const doc = parse(html.trim(), getParser(ownerDocument)); - doc.documentElement = doc.firstElementChild; - doc.head = doc.documentElement.firstElementChild; - doc.body = doc.head.nextElementSibling; - return doc; -} -export function parseFragmentUtil(ownerDocument, html) { - if (typeof html === 'string') { - html = html.trim(); - } - else { - html = ''; - } - const frag = parseFragment(html, getParser(ownerDocument)); - return frag; -} -function getParser(ownerDocument) { - let parseOptions = docParser.get(ownerDocument); - if (parseOptions != null) { - return parseOptions; - } - const treeAdapter = { - createDocument() { - const doc = ownerDocument.createElement("#document" /* NODE_NAMES.DOCUMENT_NODE */); - doc['x-mode'] = 'no-quirks'; - return doc; - }, - setNodeSourceCodeLocation(node, location) { - node.sourceCodeLocation = location; - }, - getNodeSourceCodeLocation(node) { - return node.sourceCodeLocation; - }, - createDocumentFragment() { - return ownerDocument.createDocumentFragment(); - }, - createElement(tagName, namespaceURI, attrs) { - const elm = ownerDocument.createElementNS(namespaceURI, tagName); - for (let i = 0; i < attrs.length; i++) { - const attr = attrs[i]; - if (attr.namespace == null || attr.namespace === 'http://www.w3.org/1999/xhtml') { - elm.setAttribute(attr.name, attr.value); - } - else { - elm.setAttributeNS(attr.namespace, attr.name, attr.value); - } - } - return elm; - }, - createCommentNode(data) { - return ownerDocument.createComment(data); - }, - appendChild(parentNode, newNode) { - parentNode.appendChild(newNode); - }, - insertBefore(parentNode, newNode, referenceNode) { - parentNode.insertBefore(newNode, referenceNode); - }, - setTemplateContent(templateElement, contentElement) { - templateElement.content = contentElement; - }, - getTemplateContent(templateElement) { - return templateElement.content; - }, - setDocumentType(doc, name, publicId, systemId) { - let doctypeNode = doc.childNodes.find((n) => n.nodeType === 10 /* NODE_TYPES.DOCUMENT_TYPE_NODE */); - if (doctypeNode == null) { - doctypeNode = ownerDocument.createDocumentTypeNode(); - doc.insertBefore(doctypeNode, doc.firstChild); - } - doctypeNode.nodeValue = '!DOCTYPE'; - doctypeNode['x-name'] = name; - doctypeNode['x-publicId'] = publicId; - doctypeNode['x-systemId'] = systemId; - }, - setDocumentMode(doc, mode) { - doc['x-mode'] = mode; - }, - getDocumentMode(doc) { - return doc['x-mode']; - }, - detachNode(node) { - node.remove(); - }, - insertText(parentNode, text) { - const lastChild = parentNode.lastChild; - if (lastChild != null && lastChild.nodeType === 3 /* NODE_TYPES.TEXT_NODE */) { - lastChild.nodeValue += text; - } - else { - parentNode.appendChild(ownerDocument.createTextNode(text)); - } - }, - insertTextBefore(parentNode, text, referenceNode) { - const prevNode = parentNode.childNodes[parentNode.childNodes.indexOf(referenceNode) - 1]; - if (prevNode != null && prevNode.nodeType === 3 /* NODE_TYPES.TEXT_NODE */) { - prevNode.nodeValue += text; - } - else { - parentNode.insertBefore(ownerDocument.createTextNode(text), referenceNode); - } - }, - adoptAttributes(recipient, attrs) { - for (let i = 0; i < attrs.length; i++) { - const attr = attrs[i]; - if (recipient.hasAttributeNS(attr.namespace, attr.name) === false) { - recipient.setAttributeNS(attr.namespace, attr.name, attr.value); - } - } - }, - getFirstChild(node) { - return node.childNodes[0]; - }, - getChildNodes(node) { - return node.childNodes; - }, - getParentNode(node) { - return node.parentNode; - }, - getAttrList(element) { - const attrs = element.attributes.__items.map((attr) => { - return { - name: attr.name, - value: attr.value, - namespace: attr.namespaceURI, - prefix: null, - }; - }); - return attrs; - }, - getTagName(element) { - if (element.namespaceURI === 'http://www.w3.org/1999/xhtml') { - return element.nodeName.toLowerCase(); - } - else { - return element.nodeName; - } - }, - getNamespaceURI(element) { - // mock-doc widens the type of an element's namespace uri to 'string | null' - // we use a type assertion here to adhere to parse5's type definitions - return element.namespaceURI; - }, - getTextNodeContent(textNode) { - return textNode.nodeValue; - }, - getCommentNodeContent(commentNode) { - return commentNode.nodeValue; - }, - getDocumentTypeNodeName(doctypeNode) { - return doctypeNode['x-name']; - }, - getDocumentTypeNodePublicId(doctypeNode) { - return doctypeNode['x-publicId']; - }, - getDocumentTypeNodeSystemId(doctypeNode) { - return doctypeNode['x-systemId']; - }, - // @ts-ignore - a `MockNode` will never be assignable to a `TreeAdapterTypeMap['text']`. As a result, we cannot - // complete this function signature - isTextNode(node) { - return node.nodeType === 3 /* NODE_TYPES.TEXT_NODE */; - }, - // @ts-ignore - a `MockNode` will never be assignable to a `TreeAdapterTypeMap['comment']`. As a result, we cannot - // complete this function signature (which requires its return type to be a type predicate) - isCommentNode(node) { - return node.nodeType === 8 /* NODE_TYPES.COMMENT_NODE */; - }, - // @ts-ignore - a `MockNode` will never be assignable to a `TreeAdapterTypeMap['document']`. As a result, we cannot - // complete this function signature (which requires its return type to be a type predicate) - isDocumentTypeNode(node) { - return node.nodeType === 10 /* NODE_TYPES.DOCUMENT_TYPE_NODE */; - }, - // @ts-ignore - a `MockNode` will never be assignable to a `TreeAdapterTypeMap['element']`. As a result, we cannot - // complete this function signature (which requires its return type to be a type predicate) - isElementNode(node) { - return node.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */; - }, - }; - parseOptions = { - treeAdapter: treeAdapter, - }; - docParser.set(ownerDocument, parseOptions); - return parseOptions; -} -//# sourceMappingURL=parse-util.js.map \ No newline at end of file diff --git a/build/mock-doc/parse-util.js.map b/build/mock-doc/parse-util.js.map deleted file mode 100644 index baf5a50e36b..00000000000 --- a/build/mock-doc/parse-util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-util.js","sourceRoot":"","sources":["../../src/mock-doc/parse-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EACL,aAAa,GAKd,MAAM,QAAQ,CAAC;AAShB,MAAM,SAAS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ACb,WAAW,EAAE,WAAW;KACzB,CAAC;IAEF,SAAS,CAAC,GAAG,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;IAE3C,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/parser.d.ts b/build/mock-doc/parser.d.ts deleted file mode 100644 index 02475e6e5c5..00000000000 --- a/build/mock-doc/parser.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { MockDocument } from './document'; -export type DOMParserSupportedType = 'text/html' | 'text/xml' | 'application/xml' | 'application/xhtml+xml' | 'image/svg+xml'; -export declare class MockDOMParser { - parseFromString(htmlToParse: string, mimeType: DOMParserSupportedType): MockDocument; -} diff --git a/build/mock-doc/parser.js b/build/mock-doc/parser.js deleted file mode 100644 index 05e03ce2729..00000000000 --- a/build/mock-doc/parser.js +++ /dev/null @@ -1,10 +0,0 @@ -import { parseHtmlToDocument } from './parse-html'; -export class MockDOMParser { - parseFromString(htmlToParse, mimeType) { - if (mimeType !== 'text/html') { - console.error('XML parsing not implemented yet, continuing as html'); - } - return parseHtmlToDocument(htmlToParse); - } -} -//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/build/mock-doc/parser.js.map b/build/mock-doc/parser.js.map deleted file mode 100644 index e2b0089d095..00000000000 --- a/build/mock-doc/parser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../src/mock-doc/parser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AASnD,MAAM,OAAO,aAAa;IACxB,eAAe,CAAC,WAAmB,EAAE,QAAgC;QACnE,IAAI,QAAQ,KAAK,WAAW,EAAE;YAC5B,OAAO,CAAC,KAAK,CAAC,qDAAqD,CAAC,CAAC;SACtE;QACD,OAAO,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAC1C,CAAC;CACF"} \ No newline at end of file diff --git a/build/mock-doc/performance.d.ts b/build/mock-doc/performance.d.ts deleted file mode 100644 index 3475475335f..00000000000 --- a/build/mock-doc/performance.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * https://developer.mozilla.org/en-US/docs/Web/API/Performance - */ -export declare class MockPerformance implements Performance { - timeOrigin: number; - eventCounts: EventCounts; - constructor(); - addEventListener(): void; - clearMarks(): void; - clearMeasures(): void; - clearResourceTimings(): void; - dispatchEvent(): boolean; - getEntries(): any; - getEntriesByName(): any; - getEntriesByType(): any; - mark(): PerformanceMark; - measure(): PerformanceMeasure; - get navigation(): any; - now(): number; - get onresourcetimingbufferfull(): any; - removeEventListener(): void; - setResourceTimingBufferSize(): void; - get timing(): any; - toJSON(): void; -} -export declare function resetPerformance(perf: Performance): void; diff --git a/build/mock-doc/performance.js b/build/mock-doc/performance.js deleted file mode 100644 index a38253c525a..00000000000 --- a/build/mock-doc/performance.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * https://developer.mozilla.org/en-US/docs/Web/API/Performance - */ -export class MockPerformance { - constructor() { - this.timeOrigin = Date.now(); - this.eventCounts = new Map(); - } - addEventListener() { - // - } - clearMarks() { - // - } - clearMeasures() { - // - } - clearResourceTimings() { - // - } - dispatchEvent() { - return true; - } - getEntries() { - return []; - } - getEntriesByName() { - return []; - } - getEntriesByType() { - return []; - } - // Stencil's implementation of `mark` is non-compliant with the `Performance` interface. Because Stencil will - // instantiate an instance of this class and may attempt to assign it to a variable of type `Performance`, the return - // type must match the `Performance` interface (rather than typing this function as returning `void` and ignoring the - // associated errors returned by the type checker) - // @ts-ignore - mark() { - // - } - // Stencil's implementation of `measure` is non-compliant with the `Performance` interface. Because Stencil will - // instantiate an instance of this class and may attempt to assign it to a variable of type `Performance`, the return - // type must match the `Performance` interface (rather than typing this function as returning `void` and ignoring the - // associated errors returned by the type checker) - // @ts-ignore - measure() { - // - } - get navigation() { - return {}; - } - now() { - return Date.now() - this.timeOrigin; - } - get onresourcetimingbufferfull() { - return null; - } - removeEventListener() { - // - } - setResourceTimingBufferSize() { - // - } - get timing() { - return {}; - } - toJSON() { - // - } -} -export function resetPerformance(perf) { - if (perf != null) { - try { - perf.timeOrigin = Date.now(); - } - catch (e) { } - } -} -//# sourceMappingURL=performance.js.map \ No newline at end of file diff --git a/build/mock-doc/performance.js.map b/build/mock-doc/performance.js.map deleted file mode 100644 index d5ad07029b2..00000000000 --- a/build/mock-doc/performance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"performance.js","sourceRoot":"","sources":["../../src/mock-doc/performance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,eAAe;IAI1B;QACE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC/C,CAAC;IAED,gBAAgB;QACd,EAAE;IACJ,CAAC;IAED,UAAU;QACR,EAAE;IACJ,CAAC;IAED,aAAa;QACX,EAAE;IACJ,CAAC;IAED,oBAAoB;QAClB,EAAE;IACJ,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAED,UAAU;QACR,OAAO,EAAS,CAAC;IACnB,CAAC;IAED,gBAAgB;QACd,OAAO,EAAS,CAAC;IACnB,CAAC;IAED,gBAAgB;QACd,OAAO,EAAS,CAAC;IACnB,CAAC;IAED,6GAA6G;IAC7G,qHAAqH;IACrH,qHAAqH;IACrH,kDAAkD;IAClD,aAAa;IACb,IAAI;QACF,EAAE;IACJ,CAAC;IAED,gHAAgH;IAChH,qHAAqH;IACrH,qHAAqH;IACrH,kDAAkD;IAClD,aAAa;IACb,OAAO;QACL,EAAE;IACJ,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,EAAS,CAAC;IACnB,CAAC;IAED,GAAG;QACD,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;IACtC,CAAC;IAED,IAAI,0BAA0B;QAC5B,OAAO,IAAW,CAAC;IACrB,CAAC;IAED,mBAAmB;QACjB,EAAE;IACJ,CAAC;IAED,2BAA2B;QACzB,EAAE;IACJ,CAAC;IAED,IAAI,MAAM;QACR,OAAO,EAAS,CAAC;IACnB,CAAC;IAED,MAAM;QACJ,EAAE;IACJ,CAAC;CACF;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAiB;IAChD,IAAI,IAAI,IAAI,IAAI,EAAE;QAChB,IAAI;YACD,IAAwB,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;SACnD;QAAC,OAAO,CAAC,EAAE,GAAE;KACf;AACH,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/request-response.d.ts b/build/mock-doc/request-response.d.ts deleted file mode 100644 index 33258da26d2..00000000000 --- a/build/mock-doc/request-response.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { MockHeaders } from './headers'; -export type MockRequestInfo = MockRequest | string; -export interface MockRequestInit { - body?: any; - cache?: string; - credentials?: string; - headers?: any; - integrity?: string; - keepalive?: boolean; - method?: string; - mode?: string; - redirect?: string; - referrer?: string; - referrerPolicy?: string; -} -export declare class MockRequest { - private _method; - private _url; - bodyUsed: boolean; - cache: string; - credentials: string; - headers: MockHeaders; - integrity: string; - keepalive: boolean; - mode: string; - redirect: string; - referrer: string; - referrerPolicy: string; - constructor(input?: any, init?: MockRequestInit); - get url(): string; - set url(value: string); - get method(): string; - set method(value: string); - clone(): MockRequest; -} -export interface MockResponseInit { - headers?: any; - ok?: boolean; - status?: number; - statusText?: string; - type?: string; - url?: string; -} -export declare class MockResponse { - private _body; - headers: MockHeaders; - ok: boolean; - status: number; - statusText: string; - type: string; - url: string; - constructor(body?: string, init?: MockResponseInit); - json(): Promise; - text(): Promise; - clone(): MockResponse; -} diff --git a/build/mock-doc/request-response.js b/build/mock-doc/request-response.js deleted file mode 100644 index 3b313757210..00000000000 --- a/build/mock-doc/request-response.js +++ /dev/null @@ -1,79 +0,0 @@ -import { MockHeaders } from './headers'; -export class MockRequest { - constructor(input, init = {}) { - this._method = 'GET'; - this._url = '/'; - this.bodyUsed = false; - this.cache = 'default'; - this.credentials = 'same-origin'; - this.integrity = ''; - this.keepalive = false; - this.mode = 'cors'; - this.redirect = 'follow'; - this.referrer = 'about:client'; - this.referrerPolicy = ''; - if (typeof input === 'string') { - this.url = input; - } - else if (input) { - Object.assign(this, input); - this.headers = new MockHeaders(input.headers); - } - Object.assign(this, init); - if (init.headers) { - this.headers = new MockHeaders(init.headers); - } - if (!this.headers) { - this.headers = new MockHeaders(); - } - } - get url() { - if (typeof this._url === 'string') { - return new URL(this._url, location.href).href; - } - return new URL('/', location.href).href; - } - set url(value) { - this._url = value; - } - get method() { - if (typeof this._method === 'string') { - return this._method.toUpperCase(); - } - return 'GET'; - } - set method(value) { - this._method = value; - } - clone() { - const clone = { ...this }; - clone.headers = new MockHeaders(this.headers); - return new MockRequest(clone); - } -} -export class MockResponse { - constructor(body, init = {}) { - this.ok = true; - this.status = 200; - this.statusText = ''; - this.type = 'default'; - this.url = ''; - this._body = body; - if (init) { - Object.assign(this, init); - } - this.headers = new MockHeaders(init.headers); - } - async json() { - return JSON.parse(this._body); - } - async text() { - return this._body; - } - clone() { - const initClone = { ...this }; - initClone.headers = new MockHeaders(this.headers); - return new MockResponse(this._body, initClone); - } -} -//# sourceMappingURL=request-response.js.map \ No newline at end of file diff --git a/build/mock-doc/request-response.js.map b/build/mock-doc/request-response.js.map deleted file mode 100644 index 8fdcdf56255..00000000000 --- a/build/mock-doc/request-response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"request-response.js","sourceRoot":"","sources":["../../src/mock-doc/request-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAkBxC,MAAM,OAAO,WAAW;IAetB,YAAY,KAAW,EAAE,OAAwB,EAAE;QAd3C,YAAO,GAAG,KAAK,CAAC;QAChB,SAAI,GAAG,GAAG,CAAC;QAEnB,aAAQ,GAAG,KAAK,CAAC;QACjB,UAAK,G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doc/selector.d.ts b/build/mock-doc/selector.d.ts deleted file mode 100644 index 7509e19a5b5..00000000000 --- a/build/mock-doc/selector.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { MockElement } from './node'; -export declare function matches(selector: string, elm: MockElement): boolean; -export declare function selectOne(selector: string, elm: MockElement): Element; -export declare function selectAll(selector: string, elm: MockElement): Element[]; diff --git a/build/mock-doc/selector.js b/build/mock-doc/selector.js deleted file mode 100644 index a5d14738f30..00000000000 --- a/build/mock-doc/selector.js +++ /dev/null @@ -1,13 +0,0 @@ -import Sizzle from 'sizzle'; -export function matches(selector, elm) { - const r = Sizzle.matches(selector, [elm]); - return r.length > 0; -} -export function selectOne(selector, elm) { - const r = Sizzle(selector, elm); - return r[0] || null; -} -export function selectAll(selector, elm) { - return Sizzle(selector, elm); -} -//# sourceMappingURL=selector.js.map \ No newline at end of file diff --git a/build/mock-doc/selector.js.map b/build/mock-doc/selector.js.map deleted file mode 100644 index 3e7e17dba45..00000000000 --- a/build/mock-doc/selector.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"selector.js","sourceRoot":"","sources":["../../src/mock-doc/selector.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAI5B,MAAM,UAAU,OAAO,CAAC,QAAgB,EAAE,GAAgB;IACxD,MAAM,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAQ,CAAC,CAAC;IACjD,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,QAAgB,EAAE,GAAgB;IAC1D,MAAM,CAAC,GAAG,MAAM,CAAC,QAAQ,EAAE,GAAU,CAAC,CAAC;IACvC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,QAAgB,EAAE,GAAgB;IAC1D,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAU,CAAC,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/build/mock-doc/serialize-node.d.ts b/build/mock-doc/serialize-node.d.ts deleted file mode 100644 index 8e63a195e3a..00000000000 --- a/build/mock-doc/serialize-node.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MockNode } from './node'; -export declare function serializeNodeToHtml(elm: Node | MockNode, opts?: SerializeNodeToHtmlOptions): string; -export declare const NON_ESCAPABLE_CONTENT: Set; -export declare const WHITESPACE_SENSITIVE: Set; -export interface SerializeNodeToHtmlOptions { - approximateLineWidth?: number; - excludeTagContent?: string[]; - excludeTags?: string[]; - indentSpaces?: number; - newLines?: boolean; - outerHtml?: boolean; - prettyHtml?: boolean; - removeAttributeQuotes?: boolean; - removeBooleanAttributeQuotes?: boolean; - removeEmptyAttributes?: boolean; - removeHtmlComments?: boolean; - serializeShadowRoot?: boolean; -} diff --git a/build/mock-doc/serialize-node.js b/build/mock-doc/serialize-node.js deleted file mode 100644 index 9f525a2045d..00000000000 --- a/build/mock-doc/serialize-node.js +++ /dev/null @@ -1,495 +0,0 @@ -import { CONTENT_REF_ID, ORG_LOCATION_ID, SLOT_NODE_ID, TEXT_NODE_ID, XLINK_NS } from '../runtime/runtime-constants'; -import { cloneAttributes } from './attribute'; -export function serializeNodeToHtml(elm, opts = {}) { - const output = { - currentLineWidth: 0, - indent: 0, - isWithinBody: false, - text: [], - }; - if (opts.prettyHtml) { - if (typeof opts.indentSpaces !== 'number') { - opts.indentSpaces = 2; - } - if (typeof opts.newLines !== 'boolean') { - opts.newLines = true; - } - opts.approximateLineWidth = -1; - } - else { - opts.prettyHtml = false; - if (typeof opts.newLines !== 'boolean') { - opts.newLines = false; - } - if (typeof opts.indentSpaces !== 'number') { - opts.indentSpaces = 0; - } - } - if (typeof opts.approximateLineWidth !== 'number') { - opts.approximateLineWidth = -1; - } - if (typeof opts.removeEmptyAttributes !== 'boolean') { - opts.removeEmptyAttributes = true; - } - if (typeof opts.removeAttributeQuotes !== 'boolean') { - opts.removeAttributeQuotes = false; - } - if (typeof opts.removeBooleanAttributeQuotes !== 'boolean') { - opts.removeBooleanAttributeQuotes = false; - } - if (typeof opts.removeHtmlComments !== 'boolean') { - opts.removeHtmlComments = false; - } - if (typeof opts.serializeShadowRoot !== 'boolean') { - opts.serializeShadowRoot = false; - } - if (opts.outerHtml) { - serializeToHtml(elm, opts, output, false); - } - else { - for (let i = 0, ii = elm.childNodes.length; i < ii; i++) { - serializeToHtml(elm.childNodes[i], opts, output, false); - } - } - if (output.text[0] === '\n') { - output.text.shift(); - } - if (output.text[output.text.length - 1] === '\n') { - output.text.pop(); - } - return output.text.join(''); -} -function serializeToHtml(node, opts, output, isShadowRoot) { - if (node.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */ || isShadowRoot) { - const tagName = isShadowRoot ? 'mock:shadow-root' : getTagName(node); - if (tagName === 'body') { - output.isWithinBody = true; - } - const ignoreTag = opts.excludeTags != null && opts.excludeTags.includes(tagName); - if (ignoreTag === false) { - const isWithinWhitespaceSensitiveNode = opts.newLines || opts.indentSpaces > 0 ? isWithinWhitespaceSensitive(node) : false; - if (opts.newLines && !isWithinWhitespaceSensitiveNode) { - output.text.push('\n'); - output.currentLineWidth = 0; - } - if (opts.indentSpaces > 0 && !isWithinWhitespaceSensitiveNode) { - for (let i = 0; i < output.indent; i++) { - output.text.push(' '); - } - output.currentLineWidth += output.indent; - } - output.text.push('<' + tagName); - output.currentLineWidth += tagName.length + 1; - const attrsLength = node.attributes.length; - const attributes = opts.prettyHtml && attrsLength > 1 - ? cloneAttributes(node.attributes, true) - : node.attributes; - for (let i = 0; i < attrsLength; i++) { - const attr = attributes.item(i); - const attrName = attr.name; - if (attrName === 'style') { - continue; - } - let attrValue = attr.value; - if (opts.removeEmptyAttributes && attrValue === '' && REMOVE_EMPTY_ATTR.has(attrName)) { - continue; - } - const attrNamespaceURI = attr.namespaceURI; - if (attrNamespaceURI == null) { - output.currentLineWidth += attrName.length + 1; - if (opts.approximateLineWidth > 0 && output.currentLineWidth > opts.approximateLineWidth) { - output.text.push('\n' + attrName); - output.currentLineWidth = 0; - } - else { - output.text.push(' ' + attrName); - } - } - else if (attrNamespaceURI === 'http://www.w3.org/XML/1998/namespace') { - output.text.push(' xml:' + attrName); - output.currentLineWidth += attrName.length + 5; - } - else if (attrNamespaceURI === 'http://www.w3.org/2000/xmlns/') { - if (attrName !== 'xmlns') { - output.text.push(' xmlns:' + attrName); - output.currentLineWidth += attrName.length + 7; - } - else { - output.text.push(' ' + attrName); - output.currentLineWidth += attrName.length + 1; - } - } - else if (attrNamespaceURI === XLINK_NS) { - output.text.push(' xlink:' + attrName); - output.currentLineWidth += attrName.length + 7; - } - else { - output.text.push(' ' + attrNamespaceURI + ':' + attrName); - output.currentLineWidth += attrNamespaceURI.length + attrName.length + 2; - } - if (opts.prettyHtml && attrName === 'class') { - attrValue = attr.value = attrValue - .split(' ') - .filter((t) => t !== '') - .sort() - .join(' ') - .trim(); - } - if (attrValue === '') { - if (opts.removeBooleanAttributeQuotes && BOOLEAN_ATTR.has(attrName)) { - continue; - } - if (opts.removeEmptyAttributes && attrName.startsWith('data-')) { - continue; - } - } - if (opts.removeAttributeQuotes && CAN_REMOVE_ATTR_QUOTES.test(attrValue)) { - output.text.push('=' + escapeString(attrValue, true)); - output.currentLineWidth += attrValue.length + 1; - } - else { - output.text.push('="' + escapeString(attrValue, true) + '"'); - output.currentLineWidth += attrValue.length + 3; - } - } - if (node.hasAttribute('style')) { - const cssText = node.style.cssText; - if (opts.approximateLineWidth > 0 && - output.currentLineWidth + cssText.length + 10 > opts.approximateLineWidth) { - output.text.push(`\nstyle="${cssText}">`); - output.currentLineWidth = 0; - } - else { - output.text.push(` style="${cssText}">`); - output.currentLineWidth += cssText.length + 10; - } - } - else { - output.text.push('>'); - output.currentLineWidth += 1; - } - } - if (EMPTY_ELEMENTS.has(tagName) === false) { - if (opts.serializeShadowRoot && node.shadowRoot != null) { - output.indent = output.indent + opts.indentSpaces; - serializeToHtml(node.shadowRoot, opts, output, true); - output.indent = output.indent - opts.indentSpaces; - if (opts.newLines && - (node.childNodes.length === 0 || - (node.childNodes.length === 1 && - node.childNodes[0].nodeType === 3 /* NODE_TYPES.TEXT_NODE */ && - node.childNodes[0].nodeValue.trim() === ''))) { - output.text.push('\n'); - output.currentLineWidth = 0; - for (let i = 0; i < output.indent; i++) { - output.text.push(' '); - } - output.currentLineWidth += output.indent; - } - } - if (opts.excludeTagContent == null || opts.excludeTagContent.includes(tagName) === false) { - const childNodes = tagName === 'template' ? node.content.childNodes : node.childNodes; - const childNodeLength = childNodes.length; - if (childNodeLength > 0) { - if (childNodeLength === 1 && - childNodes[0].nodeType === 3 /* NODE_TYPES.TEXT_NODE */ && - (typeof childNodes[0].nodeValue !== 'string' || childNodes[0].nodeValue.trim() === '')) { - // skip over empty text nodes - } - else { - const isWithinWhitespaceSensitiveNode = opts.newLines || opts.indentSpaces > 0 ? isWithinWhitespaceSensitive(node) : false; - if (!isWithinWhitespaceSensitiveNode && opts.indentSpaces > 0 && ignoreTag === false) { - output.indent = output.indent + opts.indentSpaces; - } - for (let i = 0; i < childNodeLength; i++) { - serializeToHtml(childNodes[i], opts, output, false); - } - if (ignoreTag === false) { - if (opts.newLines && !isWithinWhitespaceSensitiveNode) { - output.text.push('\n'); - output.currentLineWidth = 0; - } - if (opts.indentSpaces > 0 && !isWithinWhitespaceSensitiveNode) { - output.indent = output.indent - opts.indentSpaces; - for (let i = 0; i < output.indent; i++) { - output.text.push(' '); - } - output.currentLineWidth += output.indent; - } - } - } - } - if (ignoreTag === false) { - output.text.push(''); - output.currentLineWidth += tagName.length + 3; - } - } - } - if (opts.approximateLineWidth > 0 && STRUCTURE_ELEMENTS.has(tagName)) { - output.text.push('\n'); - output.currentLineWidth = 0; - } - if (tagName === 'body') { - output.isWithinBody = false; - } - } - else if (node.nodeType === 3 /* NODE_TYPES.TEXT_NODE */) { - let textContent = node.nodeValue; - if (typeof textContent === 'string') { - const trimmedTextContent = textContent.trim(); - if (trimmedTextContent === '') { - // this text node is whitespace only - if (isWithinWhitespaceSensitive(node)) { - // whitespace matters within this element - // just add the exact text we were given - output.text.push(textContent); - output.currentLineWidth += textContent.length; - } - else if (opts.approximateLineWidth > 0 && !output.isWithinBody) { - // do nothing if we're not in the and we're tracking line width - } - else if (!opts.prettyHtml) { - // this text node is only whitespace, and it's not - // within a whitespace sensitive element like
 or 
-                    // so replace the entire white space with a single new line
-                    output.currentLineWidth += 1;
-                    if (opts.approximateLineWidth > 0 && output.currentLineWidth > opts.approximateLineWidth) {
-                        // good enough for a new line
-                        // for perf these are all just estimates
-                        // we don't care to ensure exact line lengths
-                        output.text.push('\n');
-                        output.currentLineWidth = 0;
-                    }
-                    else {
-                        // let's keep it all on the same line yet
-                        output.text.push(' ');
-                    }
-                }
-            }
-            else {
-                // this text node has text content
-                const isWithinWhitespaceSensitiveNode = opts.newLines || opts.indentSpaces > 0 || opts.prettyHtml ? isWithinWhitespaceSensitive(node) : false;
-                if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
-                    output.text.push('\n');
-                    output.currentLineWidth = 0;
-                }
-                if (opts.indentSpaces > 0 && !isWithinWhitespaceSensitiveNode) {
-                    for (let i = 0; i < output.indent; i++) {
-                        output.text.push(' ');
-                    }
-                    output.currentLineWidth += output.indent;
-                }
-                let textContentLength = textContent.length;
-                if (textContentLength > 0) {
-                    // this text node has text content
-                    const parentTagName = node.parentNode != null && node.parentNode.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */
-                        ? node.parentNode.nodeName
-                        : null;
-                    if (NON_ESCAPABLE_CONTENT.has(parentTagName)) {
-                        // this text node cannot have its content escaped since it's going
-                        // into an element like `;
-        doc.body.innerHTML = input;
-        const output = serializeNodeToHtml(doc.body);
-        expect(output).toBe(``);
-    });
-    it('template', () => {
-        const input = ``;
-        doc.body.innerHTML = input;
-        const output = serializeNodeToHtml(doc.body);
-        expect(input).toBe(output);
-    });
-    it('svg', () => {
-        const input = ``;
-        doc.body.innerHTML = input;
-        const output = serializeNodeToHtml(doc.body);
-        expect(input).toBe(output);
-    });
-    it('remove boolean attributes', () => {
-        const input = ``;
-        doc.body.innerHTML = input;
-        const output = serializeNodeToHtml(doc.body, { removeBooleanAttributeQuotes: true });
-        expect(output).toBe(``);
-    });
-    it('do not collapse boolean attributes', () => {
-        const input = ``;
-        doc.body.innerHTML = input;
-        const output = serializeNodeToHtml(doc.body);
-        expect(input).toBe(output);
-    });
-    it('do not remove empty attrs', () => {
-        const elm = doc.createElement('button');
-        elm.setAttribute('class', '');
-        elm.setAttribute('dir', '');
-        elm.setAttribute('my-attr', '');
-        elm.setAttribute('id', '');
-        elm.setAttribute('data-custom', '');
-        elm.setAttribute('lang', '');
-        elm.setAttribute('name', '');
-        elm.setAttribute('title', '');
-        const html = serializeNodeToHtml(elm, { outerHtml: true, removeEmptyAttributes: false });
-        expect(html).toBe(``);
-    });
-    it('remove empty attrs', () => {
-        const elm = doc.createElement('button');
-        elm.setAttribute('class', '');
-        elm.setAttribute('dir', '');
-        elm.setAttribute('my-attr', '');
-        elm.setAttribute('id', '');
-        elm.setAttribute('data-custom', '');
-        elm.setAttribute('lang', '');
-        elm.setAttribute('name', '');
-        elm.setAttribute('title', '');
-        const html = serializeNodeToHtml(elm, { outerHtml: true });
-        expect(html).toBe(``);
-    });
-    it('set attributes, pretty', () => {
-        const elm = doc.createElement('button');
-        elm.setAttribute('type', 'submit');
-        elm.setAttribute('id', 'btn');
-        elm.textContent = `Text`;
-        const html = serializeNodeToHtml(elm, { outerHtml: true, prettyHtml: true });
-        expect(html).toBe(``);
-    });
-    it('set attributes', () => {
-        const elm = doc.createElement('button');
-        elm.setAttribute('type', 'submit');
-        elm.setAttribute('id', 'btn');
-        elm.textContent = `Text`;
-        const html = serializeNodeToHtml(elm, { outerHtml: true });
-        expect(html).toBe(``);
-    });
-    it('do not escape scripts', () => {
-        const elm = doc.createElement('script');
-        elm.innerHTML = `if (true && false) { console.log('hi); }`;
-        const html = serializeNodeToHtml(elm, { outerHtml: true });
-        expect(html).toBe(``);
-    });
-    it('empty document', () => {
-        const html = serializeNodeToHtml(doc);
-        expect(html).toBe(``);
-    });
-    it('empty document, pretty', () => {
-        const html = serializeNodeToHtml(doc, { prettyHtml: true });
-        expect(html).toBe(`
-
-  
-  
-`);
-    });
-    it('script innerHTML', () => {
-        const input = `xb`;
-        const scriptElm = doc.createElement('script');
-        scriptElm.innerHTML = input;
-        expect(scriptElm.innerHTML).toBe(input);
-    });
-});
-//# sourceMappingURL=serialize-node.spec.js.map
\ No newline at end of file
diff --git a/build/mock-doc/test/serialize-node.spec.js.map b/build/mock-doc/test/serialize-node.spec.js.map
deleted file mode 100644
index 44636949220..00000000000
--- a/build/mock-doc/test/serialize-node.spec.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"serialize-node.spec.js","sourceRoot":"","sources":["../../../src/mock-doc/test/serialize-node.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,GAAiB,CAAC;IACtB,UAAU,CAAC,GAAG,EAAE;QACd,GAAG,GAAG,IAAI,YAAY,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qFAAqF,EAAE,GAAG,EAAE;QAC7F,MAAM,GAAG,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAErC,GAAG,CAAC,SAAS,GAAG,qGAAqG,CAAC;QAEtH,MAAM,IAAI,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;QACtC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,qFAAqF,CAAC,CAAC;IAC3G,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kFAAkF,EAAE,GAAG,EAAE;QAC1F,MAAM,GAA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,aAAa,CAAC,QAAQ,CAAC,CAAC;QAC9C,SAAS,CAAC,SAAS,GAAG,KAAK,CAAC;QAC5B,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/mock-doc/test/storage.spec.d.ts b/build/mock-doc/test/storage.spec.d.ts
deleted file mode 100644
index cb0ff5c3b54..00000000000
--- a/build/mock-doc/test/storage.spec.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/build/mock-doc/test/storage.spec.js b/build/mock-doc/test/storage.spec.js
deleted file mode 100644
index 13a50a1589f..00000000000
--- a/build/mock-doc/test/storage.spec.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import { MockWindow } from '../window';
-describe('storage', () => {
-    let win;
-    beforeEach(() => {
-        win = new MockWindow();
-    });
-    it('localStorage should return proper values', () => {
-        expect(win.localStorage.getItem('key')).toEqual(null);
-        win.localStorage.setItem('key', null);
-        expect(win.localStorage.getItem('key')).toEqual('null');
-        win.localStorage.setItem('key', undefined);
-        expect(win.localStorage.getItem('key')).toEqual('null');
-        win.localStorage.setItem('key', 12);
-        expect(win.localStorage.getItem('key')).toEqual('12');
-        win.localStorage.setItem('key', 'value');
-        expect(win.localStorage.getItem('key')).toEqual('value');
-    });
-    it('should remove value', () => {
-        win.localStorage.setItem('key', 'value');
-        win.localStorage.removeItem('key');
-        expect(win.localStorage.getItem('key')).toEqual(null);
-    });
-    it('should not crash if removing twice', () => {
-        win.localStorage.setItem('key', 'value');
-        win.localStorage.removeItem('key');
-        win.localStorage.removeItem('key');
-        win.localStorage.removeItem('foo');
-        expect(win.localStorage.getItem('key')).toEqual(null);
-        expect(win.localStorage.getItem('foo')).toEqual(null);
-    });
-    it('should clear all', () => {
-        win.localStorage.setItem('key', 'value');
-        win.localStorage.setItem('foo', 'bar');
-        expect(win.localStorage.getItem('key')).toEqual('value');
-        expect(win.localStorage.getItem('foo')).toEqual('bar');
-        win.localStorage.clear();
-        expect(win.localStorage.getItem('key')).toEqual(null);
-        expect(win.localStorage.getItem('foo')).toEqual(null);
-    });
-    it('should cast keys to string all', () => {
-        win.localStorage.setItem('12', 'value');
-        win.localStorage.setItem(12, 'bar');
-        expect(win.localStorage.getItem('12')).toEqual('bar');
-        expect(win.localStorage.getItem(12)).toEqual('bar');
-    });
-});
-//# sourceMappingURL=storage.spec.js.map
\ No newline at end of file
diff --git a/build/mock-doc/test/storage.spec.js.map b/build/mock-doc/test/storage.spec.js.map
deleted file mode 100644
index 89259899763..00000000000
--- a/build/mock-doc/test/storage.spec.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"storage.spec.js","sourceRoot":"","sources":["../../../src/mock-doc/test/storage.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,GAAe,CAAC;IACpB,UAAU,CAAC,GAAG,EAAE;QACd,GAAG,GAAG,IAAI,UAAU,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAClD,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEtD,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACtC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAExD,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAC3C,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,O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-doc/window.d.ts
deleted file mode 100644
index e80f93edd6d..00000000000
--- a/build/mock-doc/window.d.ts
+++ /dev/null
@@ -1,230 +0,0 @@
-import { MockHeaders } from '.';
-import { MockCustomEvent, MockEvent, MockFocusEvent, MockKeyboardEvent, MockMouseEvent } from './event';
-import { MockHistory } from './history';
-import { MockIntersectionObserver } from './intersection-observer';
-import { MockLocation } from './location';
-import { MockNavigator } from './navigator';
-import { MockStorage } from './storage';
-declare const nativeClearInterval: typeof clearInterval;
-declare const nativeClearTimeout: typeof clearTimeout;
-declare const nativeSetInterval: typeof setInterval;
-declare const nativeSetTimeout: typeof setTimeout;
-export declare class MockWindow {
-    __timeouts: Set;
-    __history: MockHistory;
-    __elementCstr: any;
-    __htmlElementCstr: any;
-    __charDataCstr: any;
-    __docTypeCstr: any;
-    __docCstr: any;
-    __docFragCstr: any;
-    __domTokenListCstr: any;
-    __nodeCstr: any;
-    __nodeListCstr: any;
-    __localStorage: MockStorage;
-    __sessionStorage: MockStorage;
-    __location: MockLocation;
-    __navigator: MockNavigator;
-    __clearInterval: typeof nativeClearInterval;
-    __clearTimeout: typeof nativeClearTimeout;
-    __setInterval: typeof nativeSetInterval;
-    __setTimeout: typeof nativeSetTimeout;
-    __maxTimeout: number;
-    __allowInterval: boolean;
-    URL: typeof URL;
-    console: Console;
-    customElements: CustomElementRegistry;
-    document: Document;
-    performance: Performance;
-    devicePixelRatio: number;
-    innerHeight: number;
-    innerWidth: number;
-    pageXOffset: number;
-    pageYOffset: number;
-    screen: Screen;
-    screenLeft: number;
-    screenTop: number;
-    screenX: number;
-    screenY: number;
-    scrollX: number;
-    scrollY: number;
-    CustomEvent: typeof MockCustomEvent;
-    Event: typeof MockEvent;
-    Headers: typeof MockHeaders;
-    FocusEvent: typeof MockFocusEvent;
-    KeyboardEvent: typeof MockKeyboardEvent;
-    MouseEvent: typeof MockMouseEvent;
-    constructor(html?: string | boolean);
-    addEventListener(type: string, handler: (ev?: any) => void): void;
-    alert(msg: string): void;
-    blur(): any;
-    cancelAnimationFrame(id: any): void;
-    cancelIdleCallback(id: any): void;
-    get CharacterData(): any;
-    set CharacterData(charDataCstr: any);
-    clearInterval(id: any): void;
-    clearTimeout(id: any): void;
-    close(): void;
-    confirm(): boolean;
-    get CSS(): {
-        supports: () => boolean;
-    };
-    get Document(): any;
-    set Document(docCstr: any);
-    get DocumentFragment(): any;
-    set DocumentFragment(docFragCstr: any);
-    get DocumentType(): any;
-    set DocumentType(docTypeCstr: any);
-    get DOMTokenList(): any;
-    set DOMTokenList(domTokenListCstr: any);
-    dispatchEvent(ev: MockEvent): boolean;
-    get Element(): any;
-    fetch(input: any, init?: any): any;
-    focus(): any;
-    getComputedStyle(_: any): any;
-    get globalThis(): this;
-    get history(): any;
-    set history(hsty: any);
-    get JSON(): JSON;
-    get HTMLElement(): any;
-    set HTMLElement(htmlElementCstr: any);
-    get IntersectionObserver(): typeof MockIntersectionObserver;
-    get localStorage(): MockStorage;
-    set localStorage(locStorage: MockStorage);
-    get location(): MockLocation;
-    set location(val: Location | string);
-    matchMedia(media: string): {
-        media: string;
-        matches: boolean;
-        addListener: (_handler: (ev?: any) => void) => void;
-        removeListener: (_handler: (ev?: any) => void) => void;
-        addEventListener: (_type: string, _handler: (ev?: any) => void) => void;
-        removeEventListener: (_type: string, _handler: (ev?: any) => void) => void;
-        dispatchEvent: (_ev: any) => void;
-        onchange: (this: MediaQueryList, ev: MediaQueryListEvent) => any;
-    };
-    get Node(): any;
-    get NodeList(): any;
-    get navigator(): any;
-    set navigator(nav: any);
-    get parent(): any;
-    prompt(): string;
-    open(): any;
-    get origin(): string;
-    removeEventListener(type: string, handler: any): void;
-    requestAnimationFrame(callback: (timestamp: number) => void): number;
-    requestIdleCallback(callback: (deadline: {
-        didTimeout: boolean;
-        timeRemaining: () => number;
-    }) => void): number;
-    scroll(_x?: number, _y?: number): void;
-    scrollBy(_x?: number, _y?: number): void;
-    scrollTo(_x?: number, _y?: number): void;
-    get self(): this;
-    get sessionStorage(): any;
-    set sessionStorage(locStorage: any);
-    setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
-    setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
-    get top(): this;
-    get window(): this;
-    onanimationstart(): void;
-    onanimationend(): void;
-    onanimationiteration(): void;
-    onabort(): void;
-    onauxclick(): void;
-    onbeforecopy(): void;
-    onbeforecut(): void;
-    onbeforepaste(): void;
-    onblur(): void;
-    oncancel(): void;
-    oncanplay(): void;
-    oncanplaythrough(): void;
-    onchange(): void;
-    onclick(): void;
-    onclose(): void;
-    oncontextmenu(): void;
-    oncopy(): void;
-    oncuechange(): void;
-    oncut(): void;
-    ondblclick(): void;
-    ondrag(): void;
-    ondragend(): void;
-    ondragenter(): void;
-    ondragleave(): void;
-    ondragover(): void;
-    ondragstart(): void;
-    ondrop(): void;
-    ondurationchange(): void;
-    onemptied(): void;
-    onended(): void;
-    onerror(): void;
-    onfocus(): void;
-    onfocusin(): void;
-    onfocusout(): void;
-    onformdata(): void;
-    onfullscreenchange(): void;
-    onfullscreenerror(): void;
-    ongotpointercapture(): void;
-    oninput(): void;
-    oninvalid(): void;
-    onkeydown(): void;
-    onkeypress(): void;
-    onkeyup(): void;
-    onload(): void;
-    onloadeddata(): void;
-    onloadedmetadata(): void;
-    onloadstart(): void;
-    onlostpointercapture(): void;
-    onmousedown(): void;
-    onmouseenter(): void;
-    onmouseleave(): void;
-    onmousemove(): void;
-    onmouseout(): void;
-    onmouseover(): void;
-    onmouseup(): void;
-    onmousewheel(): void;
-    onpaste(): void;
-    onpause(): void;
-    onplay(): void;
-    onplaying(): void;
-    onpointercancel(): void;
-    onpointerdown(): void;
-    onpointerenter(): void;
-    onpointerleave(): void;
-    onpointermove(): void;
-    onpointerout(): void;
-    onpointerover(): void;
-    onpointerup(): void;
-    onprogress(): void;
-    onratechange(): void;
-    onreset(): void;
-    onresize(): void;
-    onscroll(): void;
-    onsearch(): void;
-    onseeked(): void;
-    onseeking(): void;
-    onselect(): void;
-    onselectstart(): void;
-    onstalled(): void;
-    onsubmit(): void;
-    onsuspend(): void;
-    ontimeupdate(): void;
-    ontoggle(): void;
-    onvolumechange(): void;
-    onwaiting(): void;
-    onwebkitfullscreenchange(): void;
-    onwebkitfullscreenerror(): void;
-    onwheel(): void;
-}
-export declare function createWindow(html?: string | boolean): Window;
-export declare function cloneWindow(srcWin: Window, opts?: {
-    customElementProxy?: boolean;
-}): MockWindow;
-export declare function cloneDocument(srcDoc: Document): Document;
-/**
- * Constrain setTimeout() to 1ms, but still async. Also
- * only allow setInterval() to fire once, also constrained to 1ms.
- * @param win the mock window instance to update
- */
-export declare function constrainTimeouts(win: any): void;
-export {};
diff --git a/build/mock-doc/window.js b/build/mock-doc/window.js
deleted file mode 100644
index 80d20a85eae..00000000000
--- a/build/mock-doc/window.js
+++ /dev/null
@@ -1,809 +0,0 @@
-import { createConsole } from './console';
-import { MockCustomElementRegistry } from './custom-element-registry';
-import { MockDocument, resetDocument } from './document';
-import { MockDocumentFragment } from './document-fragment';
-import { addEventListener, dispatchEvent, removeEventListener, resetEventListeners, } from './event';
-import { addGlobalsToWindowPrototype } from './global';
-import { MockHistory } from './history';
-import { MockIntersectionObserver } from './intersection-observer';
-import { MockLocation } from './location';
-import { MockNavigator } from './navigator';
-import { MockElement, MockHTMLElement, MockNode, MockNodeList } from './node';
-import { MockPerformance, resetPerformance } from './performance';
-import { MockStorage } from './storage';
-const nativeClearInterval = clearInterval;
-const nativeClearTimeout = clearTimeout;
-const nativeSetInterval = setInterval;
-const nativeSetTimeout = setTimeout;
-const nativeURL = URL;
-export class MockWindow {
-    constructor(html = null) {
-        if (html !== false) {
-            this.document = new MockDocument(html, this);
-        }
-        else {
-            this.document = null;
-        }
-        this.performance = new MockPerformance();
-        this.customElements = new MockCustomElementRegistry(this);
-        this.console = createConsole();
-        resetWindowDefaults(this);
-        resetWindowDimensions(this);
-    }
-    addEventListener(type, handler) {
-        addEventListener(this, type, handler);
-    }
-    alert(msg) {
-        if (this.console) {
-            this.console.debug(msg);
-        }
-        else {
-            console.debug(msg);
-        }
-    }
-    blur() {
-        /**/
-    }
-    cancelAnimationFrame(id) {
-        this.__clearTimeout(id);
-    }
-    cancelIdleCallback(id) {
-        this.__clearTimeout(id);
-    }
-    get CharacterData() {
-        if (this.__charDataCstr == null) {
-            const ownerDocument = this.document;
-            this.__charDataCstr = class extends MockNode {
-                constructor() {
-                    super(ownerDocument, 0, 'test', '');
-                    throw new Error('Illegal constructor: cannot construct CharacterData');
-                }
-            };
-        }
-        return this.__charDataCstr;
-    }
-    set CharacterData(charDataCstr) {
-        this.__charDataCstr = charDataCstr;
-    }
-    clearInterval(id) {
-        this.__clearInterval(id);
-    }
-    clearTimeout(id) {
-        this.__clearTimeout(id);
-    }
-    close() {
-        resetWindow(this);
-    }
-    confirm() {
-        return false;
-    }
-    get CSS() {
-        return {
-            supports: () => true,
-        };
-    }
-    get Document() {
-        if (this.__docCstr == null) {
-            const win = this;
-            this.__docCstr = class extends MockDocument {
-                constructor() {
-                    super(false, win);
-                    throw new Error('Illegal constructor: cannot construct Document');
-                }
-            };
-        }
-        return this.__docCstr;
-    }
-    set Document(docCstr) {
-        this.__docCstr = docCstr;
-    }
-    get DocumentFragment() {
-        if (this.__docFragCstr == null) {
-            const ownerDocument = this.document;
-            this.__docFragCstr = class extends MockDocumentFragment {
-                constructor() {
-                    super(ownerDocument);
-                    throw new Error('Illegal constructor: cannot construct DocumentFragment');
-                }
-            };
-        }
-        return this.__docFragCstr;
-    }
-    set DocumentFragment(docFragCstr) {
-        this.__docFragCstr = docFragCstr;
-    }
-    get DocumentType() {
-        if (this.__docTypeCstr == null) {
-            const ownerDocument = this.document;
-            this.__docTypeCstr = class extends MockNode {
-                constructor() {
-                    super(ownerDocument, 0, 'test', '');
-                    throw new Error('Illegal constructor: cannot construct DocumentType');
-                }
-            };
-        }
-        return this.__docTypeCstr;
-    }
-    set DocumentType(docTypeCstr) {
-        this.__docTypeCstr = docTypeCstr;
-    }
-    get DOMTokenList() {
-        if (this.__domTokenListCstr == null) {
-            this.__domTokenListCstr = class MockDOMTokenList {
-            };
-        }
-        return this.__domTokenListCstr;
-    }
-    set DOMTokenList(domTokenListCstr) {
-        this.__domTokenListCstr = domTokenListCstr;
-    }
-    dispatchEvent(ev) {
-        return dispatchEvent(this, ev);
-    }
-    get Element() {
-        if (this.__elementCstr == null) {
-            const ownerDocument = this.document;
-            this.__elementCstr = class extends MockElement {
-                constructor() {
-                    super(ownerDocument, '');
-                    throw new Error('Illegal constructor: cannot construct Element');
-                }
-            };
-        }
-        return this.__elementCstr;
-    }
-    fetch(input, init) {
-        if (typeof fetch === 'function') {
-            return fetch(input, init);
-        }
-        throw new Error(`fetch() not implemented`);
-    }
-    focus() {
-        /**/
-    }
-    getComputedStyle(_) {
-        return {
-            cssText: '',
-            length: 0,
-            parentRule: null,
-            getPropertyPriority() {
-                return null;
-            },
-            getPropertyValue() {
-                return '';
-            },
-            item() {
-                return null;
-            },
-            removeProperty() {
-                return null;
-            },
-            setProperty() {
-                return null;
-            },
-        };
-    }
-    get globalThis() {
-        return this;
-    }
-    get history() {
-        if (this.__history == null) {
-            this.__history = new MockHistory();
-        }
-        return this.__history;
-    }
-    set history(hsty) {
-        this.__history = hsty;
-    }
-    get JSON() {
-        return JSON;
-    }
-    get HTMLElement() {
-        if (this.__htmlElementCstr == null) {
-            const ownerDocument = this.document;
-            this.__htmlElementCstr = class extends MockHTMLElement {
-                constructor() {
-                    super(ownerDocument, '');
-                    const observedAttributes = this.constructor.observedAttributes;
-                    if (Array.isArray(observedAttributes) && typeof this.attributeChangedCallback === 'function') {
-                        observedAttributes.forEach((attrName) => {
-                            const attrValue = this.getAttribute(attrName);
-                            if (attrValue != null) {
-                                this.attributeChangedCallback(attrName, null, attrValue);
-                            }
-                        });
-                    }
-                }
-            };
-        }
-        return this.__htmlElementCstr;
-    }
-    set HTMLElement(htmlElementCstr) {
-        this.__htmlElementCstr = htmlElementCstr;
-    }
-    get IntersectionObserver() {
-        return MockIntersectionObserver;
-    }
-    get localStorage() {
-        if (this.__localStorage == null) {
-            this.__localStorage = new MockStorage();
-        }
-        return this.__localStorage;
-    }
-    set localStorage(locStorage) {
-        this.__localStorage = locStorage;
-    }
-    get location() {
-        if (this.__location == null) {
-            this.__location = new MockLocation();
-        }
-        return this.__location;
-    }
-    set location(val) {
-        if (typeof val === 'string') {
-            if (this.__location == null) {
-                this.__location = new MockLocation();
-            }
-            this.__location.href = val;
-        }
-        else {
-            this.__location = val;
-        }
-    }
-    matchMedia(media) {
-        return {
-            media,
-            matches: false,
-            addListener: (_handler) => { },
-            removeListener: (_handler) => { },
-            addEventListener: (_type, _handler) => { },
-            removeEventListener: (_type, _handler) => { },
-            dispatchEvent: (_ev) => { },
-            onchange: null,
-        };
-    }
-    get Node() {
-        if (this.__nodeCstr == null) {
-            const ownerDocument = this.document;
-            this.__nodeCstr = class extends MockNode {
-                constructor() {
-                    super(ownerDocument, 0, 'test', '');
-                    throw new Error('Illegal constructor: cannot construct Node');
-                }
-            };
-        }
-        return this.__nodeCstr;
-    }
-    get NodeList() {
-        if (this.__nodeListCstr == null) {
-            const ownerDocument = this.document;
-            this.__nodeListCstr = class extends MockNodeList {
-                constructor() {
-                    super(ownerDocument, [], 0);
-                    throw new Error('Illegal constructor: cannot construct NodeList');
-                }
-            };
-        }
-        return this.__nodeListCstr;
-    }
-    get navigator() {
-        if (this.__navigator == null) {
-            this.__navigator = new MockNavigator();
-        }
-        return this.__navigator;
-    }
-    set navigator(nav) {
-        this.__navigator = nav;
-    }
-    get parent() {
-        return null;
-    }
-    prompt() {
-        return '';
-    }
-    open() {
-        return null;
-    }
-    get origin() {
-        return this.location.origin;
-    }
-    removeEventListener(type, handler) {
-        removeEventListener(this, type, handler);
-    }
-    requestAnimationFrame(callback) {
-        return this.setTimeout(() => {
-            callback(Date.now());
-        }, 0);
-    }
-    requestIdleCallback(callback) {
-        return this.setTimeout(() => {
-            callback({
-                didTimeout: false,
-                timeRemaining: () => 0,
-            });
-        }, 0);
-    }
-    scroll(_x, _y) {
-        /**/
-    }
-    scrollBy(_x, _y) {
-        /**/
-    }
-    scrollTo(_x, _y) {
-        /**/
-    }
-    get self() {
-        return this;
-    }
-    get sessionStorage() {
-        if (this.__sessionStorage == null) {
-            this.__sessionStorage = new MockStorage();
-        }
-        return this.__sessionStorage;
-    }
-    set sessionStorage(locStorage) {
-        this.__sessionStorage = locStorage;
-    }
-    setInterval(callback, ms, ...args) {
-        if (this.__timeouts == null) {
-            this.__timeouts = new Set();
-        }
-        ms = Math.min(ms, this.__maxTimeout);
-        if (this.__allowInterval) {
-            const intervalId = this.__setInterval(() => {
-                if (this.__timeouts) {
-                    this.__timeouts.delete(intervalId);
-                    try {
-                        callback(...args);
-                    }
-                    catch (e) {
-                        if (this.console) {
-                            this.console.error(e);
-                        }
-                        else {
-                            console.error(e);
-                        }
-                    }
-                }
-            }, ms);
-            if (this.__timeouts) {
-                this.__timeouts.add(intervalId);
-            }
-            return intervalId;
-        }
-        const timeoutId = this.__setTimeout(() => {
-            if (this.__timeouts) {
-                this.__timeouts.delete(timeoutId);
-                try {
-                    callback(...args);
-                }
-                catch (e) {
-                    if (this.console) {
-                        this.console.error(e);
-                    }
-                    else {
-                        console.error(e);
-                    }
-                }
-            }
-        }, ms);
-        if (this.__timeouts) {
-            this.__timeouts.add(timeoutId);
-        }
-        return timeoutId;
-    }
-    setTimeout(callback, ms, ...args) {
-        if (this.__timeouts == null) {
-            this.__timeouts = new Set();
-        }
-        ms = Math.min(ms, this.__maxTimeout);
-        const timeoutId = this.__setTimeout(() => {
-            if (this.__timeouts) {
-                this.__timeouts.delete(timeoutId);
-                try {
-                    callback(...args);
-                }
-                catch (e) {
-                    if (this.console) {
-                        this.console.error(e);
-                    }
-                    else {
-                        console.error(e);
-                    }
-                }
-            }
-        }, ms);
-        if (this.__timeouts) {
-            this.__timeouts.add(timeoutId);
-        }
-        return timeoutId;
-    }
-    get top() {
-        return this;
-    }
-    get window() {
-        return this;
-    }
-    onanimationstart() {
-        /**/
-    }
-    onanimationend() {
-        /**/
-    }
-    onanimationiteration() {
-        /**/
-    }
-    onabort() {
-        /**/
-    }
-    onauxclick() {
-        /**/
-    }
-    onbeforecopy() {
-        /**/
-    }
-    onbeforecut() {
-        /**/
-    }
-    onbeforepaste() {
-        /**/
-    }
-    onblur() {
-        /**/
-    }
-    oncancel() {
-        /**/
-    }
-    oncanplay() {
-        /**/
-    }
-    oncanplaythrough() {
-        /**/
-    }
-    onchange() {
-        /**/
-    }
-    onclick() {
-        /**/
-    }
-    onclose() {
-        /**/
-    }
-    oncontextmenu() {
-        /**/
-    }
-    oncopy() {
-        /**/
-    }
-    oncuechange() {
-        /**/
-    }
-    oncut() {
-        /**/
-    }
-    ondblclick() {
-        /**/
-    }
-    ondrag() {
-        /**/
-    }
-    ondragend() {
-        /**/
-    }
-    ondragenter() {
-        /**/
-    }
-    ondragleave() {
-        /**/
-    }
-    ondragover() {
-        /**/
-    }
-    ondragstart() {
-        /**/
-    }
-    ondrop() {
-        /**/
-    }
-    ondurationchange() {
-        /**/
-    }
-    onemptied() {
-        /**/
-    }
-    onended() {
-        /**/
-    }
-    onerror() {
-        /**/
-    }
-    onfocus() {
-        /**/
-    }
-    onfocusin() {
-        /**/
-    }
-    onfocusout() {
-        /**/
-    }
-    onformdata() {
-        /**/
-    }
-    onfullscreenchange() {
-        /**/
-    }
-    onfullscreenerror() {
-        /**/
-    }
-    ongotpointercapture() {
-        /**/
-    }
-    oninput() {
-        /**/
-    }
-    oninvalid() {
-        /**/
-    }
-    onkeydown() {
-        /**/
-    }
-    onkeypress() {
-        /**/
-    }
-    onkeyup() {
-        /**/
-    }
-    onload() {
-        /**/
-    }
-    onloadeddata() {
-        /**/
-    }
-    onloadedmetadata() {
-        /**/
-    }
-    onloadstart() {
-        /**/
-    }
-    onlostpointercapture() {
-        /**/
-    }
-    onmousedown() {
-        /**/
-    }
-    onmouseenter() {
-        /**/
-    }
-    onmouseleave() {
-        /**/
-    }
-    onmousemove() {
-        /**/
-    }
-    onmouseout() {
-        /**/
-    }
-    onmouseover() {
-        /**/
-    }
-    onmouseup() {
-        /**/
-    }
-    onmousewheel() {
-        /**/
-    }
-    onpaste() {
-        /**/
-    }
-    onpause() {
-        /**/
-    }
-    onplay() {
-        /**/
-    }
-    onplaying() {
-        /**/
-    }
-    onpointercancel() {
-        /**/
-    }
-    onpointerdown() {
-        /**/
-    }
-    onpointerenter() {
-        /**/
-    }
-    onpointerleave() {
-        /**/
-    }
-    onpointermove() {
-        /**/
-    }
-    onpointerout() {
-        /**/
-    }
-    onpointerover() {
-        /**/
-    }
-    onpointerup() {
-        /**/
-    }
-    onprogress() {
-        /**/
-    }
-    onratechange() {
-        /**/
-    }
-    onreset() {
-        /**/
-    }
-    onresize() {
-        /**/
-    }
-    onscroll() {
-        /**/
-    }
-    onsearch() {
-        /**/
-    }
-    onseeked() {
-        /**/
-    }
-    onseeking() {
-        /**/
-    }
-    onselect() {
-        /**/
-    }
-    onselectstart() {
-        /**/
-    }
-    onstalled() {
-        /**/
-    }
-    onsubmit() {
-        /**/
-    }
-    onsuspend() {
-        /**/
-    }
-    ontimeupdate() {
-        /**/
-    }
-    ontoggle() {
-        /**/
-    }
-    onvolumechange() {
-        /**/
-    }
-    onwaiting() {
-        /**/
-    }
-    onwebkitfullscreenchange() {
-        /**/
-    }
-    onwebkitfullscreenerror() {
-        /**/
-    }
-    onwheel() {
-        /**/
-    }
-}
-addGlobalsToWindowPrototype(MockWindow.prototype);
-function resetWindowDefaults(win) {
-    win.__clearInterval = nativeClearInterval;
-    win.__clearTimeout = nativeClearTimeout;
-    win.__setInterval = nativeSetInterval;
-    win.__setTimeout = nativeSetTimeout;
-    win.__maxTimeout = 30000;
-    win.__allowInterval = true;
-    win.URL = nativeURL;
-}
-export function createWindow(html = null) {
-    return new MockWindow(html);
-}
-export function cloneWindow(srcWin, opts = {}) {
-    if (srcWin == null) {
-        return null;
-    }
-    const clonedWin = new MockWindow(false);
-    if (!opts.customElementProxy) {
-        // TODO(STENCIL-345) - Evaluate reconciling MockWindow, Window differences
-        // @ts-ignore
-        srcWin.customElements = null;
-    }
-    if (srcWin.document != null) {
-        const clonedDoc = new MockDocument(false, clonedWin);
-        clonedWin.document = clonedDoc;
-        clonedDoc.documentElement = srcWin.document.documentElement.cloneNode(true);
-    }
-    else {
-        clonedWin.document = new MockDocument(null, clonedWin);
-    }
-    return clonedWin;
-}
-export function cloneDocument(srcDoc) {
-    if (srcDoc == null) {
-        return null;
-    }
-    const dstWin = cloneWindow(srcDoc.defaultView);
-    return dstWin.document;
-}
-// TODO(STENCIL-345) - Evaluate reconciling MockWindow, Window differences
-/**
- * Constrain setTimeout() to 1ms, but still async. Also
- * only allow setInterval() to fire once, also constrained to 1ms.
- * @param win the mock window instance to update
- */
-export function constrainTimeouts(win) {
-    win.__allowInterval = false;
-    win.__maxTimeout = 0;
-}
-function resetWindow(win) {
-    if (win != null) {
-        if (win.__timeouts) {
-            win.__timeouts.forEach((timeoutId) => {
-                nativeClearInterval(timeoutId);
-                nativeClearTimeout(timeoutId);
-            });
-            win.__timeouts.clear();
-        }
-        if (win.customElements && win.customElements.clear) {
-            win.customElements.clear();
-        }
-        resetDocument(win.document);
-        resetPerformance(win.performance);
-        for (const key in win) {
-            if (win.hasOwnProperty(key) && key !== 'document' && key !== 'performance' && key !== 'customElements') {
-                delete win[key];
-            }
-        }
-        resetWindowDefaults(win);
-        resetWindowDimensions(win);
-        resetEventListeners(win);
-        if (win.document != null) {
-            try {
-                win.document.defaultView = win;
-            }
-            catch (e) { }
-        }
-        // ensure we don't hold onto nodeFetch values
-        win.fetch = null;
-        win.Headers = null;
-        win.Request = null;
-        win.Response = null;
-        win.FetchError = null;
-    }
-}
-function resetWindowDimensions(win) {
-    try {
-        win.devicePixelRatio = 1;
-        win.innerHeight = 768;
-        win.innerWidth = 1366;
-        win.pageXOffset = 0;
-        win.pageYOffset = 0;
-        win.screenLeft = 0;
-        win.screenTop = 0;
-        win.screenX = 0;
-        win.screenY = 0;
-        win.scrollX = 0;
-        win.scrollY = 0;
-        win.screen = {
-            availHeight: win.innerHeight,
-            availLeft: 0,
-            availTop: 0,
-            availWidth: win.innerWidth,
-            colorDepth: 24,
-            height: win.innerHeight,
-            keepAwake: false,
-            orientation: {
-                angle: 0,
-                type: 'portrait-primary',
-            },
-            pixelDepth: 24,
-            width: win.innerWidth,
-        };
-    }
-    catch (e) { }
-}
-//# sourceMappingURL=window.js.map
\ No newline at end of file
diff --git a/build/mock-doc/window.js.map b/build/mock-doc/window.js.map
deleted file mode 100644
index 4ab3dc88938..00000000000
--- a/build/mock-doc/window.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"window.js","sourceRoot":"","sources":["../../src/mock-doc/window.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAChB,aAAa,EAMb,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW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AC;IACD,KAAK;QACH,IAAI;IACN,CAAC;IACD,UAAU;QACR,IAAI;IACN,CAAC;IACD,MAAM;QACJ,IAAI;IACN,CAAC;IACD,SAAS;QACP,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,UAAU;QACR,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,MAAM;QACJ,IAAI;IACN,CAAC;IACD,gBAAgB;QACd,IAAI;IACN,CAAC;IACD,SAAS;QACP,IAAI;IACN,CAAC;IACD,OAAO;QACL,IAAI;IACN,CAAC;IACD,OAAO;QACL,IAAI;IACN,CAAC;IACD,OAAO;QACL,IAAI;IACN,CAAC;IACD,SAAS;QACP,IAAI;IACN,CAAC;IACD,UAAU;QACR,IAAI;IACN,CAAC;IACD,UAAU;QACR,IAAI;IACN,CAAC;IACD,kBAAkB;QAChB,IAAI;IACN,CAAC;IACD,iBAAiB;QACf,IAAI;IACN,CAAC;IACD,mBAAmB;QACjB,IAAI;IACN,CAAC;IACD,OAAO;QACL,IAAI;IACN,CAAC;IACD,SAAS;QACP,IAAI;IACN,CAAC;IACD,SAAS;QACP,IAAI;IACN,CAAC;IACD,UAAU;QACR,IAAI;IACN,CAAC;IACD,OAAO;QACL,IAAI;IACN,CAAC;IACD,MAAM;QACJ,IAAI;IACN,CAAC;IACD,YAAY;QACV,IAAI;IACN,CAAC;IACD,gBAAgB;QACd,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,oBAAoB;QAClB,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,YAAY;QACV,IAAI;IACN,CAAC;IACD,YAAY;QACV,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,UAAU;QACR,IAAI;IACN,CAAC;IACD,WAAW;QACT,IAAI;IACN,CAAC;IACD,SAAS;QACP,IAAI;IACN,CAAC;IACD,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line at end of file
diff --git a/build/runtime/asset-path.d.ts b/build/runtime/asset-path.d.ts
deleted file mode 100644
index 84dbe06c673..00000000000
--- a/build/runtime/asset-path.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export declare const getAssetPath: (path: string) => string;
-export declare const setAssetPath: (path: string) => string;
diff --git a/build/runtime/asset-path.js b/build/runtime/asset-path.js
deleted file mode 100644
index 5764061b3d5..00000000000
--- a/build/runtime/asset-path.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import { plt, win } from '@platform';
-export const getAssetPath = (path) => {
-    const assetUrl = new URL(path, plt.$resourcesUrl$);
-    return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
-};
-export const setAssetPath = (path) => (plt.$resourcesUrl$ = path);
-//# sourceMappingURL=asset-path.js.map
\ No newline at end of file
diff --git a/build/runtime/asset-path.js.map b/build/runtime/asset-path.js.map
deleted file mode 100644
index 3c4f9bd330b..00000000000
--- a/build/runtime/asset-path.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"asset-path.js","sourceRoot":"","sources":["../../src/runtime/asset-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE;IAC3C,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IACnD,OAAO,QAAQ,CAAC,MAAM,KAAK,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;AACrF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/bootstrap-custom-element.d.ts b/build/runtime/bootstrap-custom-element.d.ts
deleted file mode 100644
index c5b09832b18..00000000000
--- a/build/runtime/bootstrap-custom-element.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import type * as d from '../declarations';
-export declare const defineCustomElement: (Cstr: any, compactMeta: d.ComponentRuntimeMetaCompact) => void;
-export declare const proxyCustomElement: (Cstr: any, compactMeta: d.ComponentRuntimeMetaCompact) => d.ComponentConstructor;
-export declare const forceModeUpdate: (elm: d.RenderNode) => void;
diff --git a/build/runtime/bootstrap-custom-element.js b/build/runtime/bootstrap-custom-element.js
deleted file mode 100644
index 73ce28e0984..00000000000
--- a/build/runtime/bootstrap-custom-element.js
+++ /dev/null
@@ -1,112 +0,0 @@
-import { BUILD } from '@app-data';
-import { forceUpdate, getHostRef, registerHost, styles, supportsShadow } from '@platform';
-import { connectedCallback } from './connected-callback';
-import { disconnectedCallback } from './disconnected-callback';
-import { patchChildSlotNodes, patchCloneNode, patchPseudoShadowDom, patchSlotAppendChild, patchTextContent, } from './dom-extras';
-import { computeMode } from './mode';
-import { proxyComponent } from './proxy-component';
-import { attachStyles, getScopeId, registerStyle } from './styles';
-export const defineCustomElement = (Cstr, compactMeta) => {
-    customElements.define(compactMeta[1], proxyCustomElement(Cstr, compactMeta));
-};
-export const proxyCustomElement = (Cstr, compactMeta) => {
-    const cmpMeta = {
-        $flags$: compactMeta[0],
-        $tagName$: compactMeta[1],
-    };
-    if (BUILD.member) {
-        cmpMeta.$members$ = compactMeta[2];
-    }
-    if (BUILD.hostListener) {
-        cmpMeta.$listeners$ = compactMeta[3];
-    }
-    if (BUILD.watchCallback) {
-        cmpMeta.$watchers$ = Cstr.$watchers$;
-    }
-    if (BUILD.reflect) {
-        cmpMeta.$attrsToReflect$ = [];
-    }
-    if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
-        // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
-        cmpMeta.$flags$ |= 8 /* CMP_FLAGS.needsShadowDomShim */;
-    }
-    // TODO(STENCIL-914): this check and `else` block can go away and be replaced by just `BUILD.scoped` once we
-    // default our pseudo-slot behavior
-    if (BUILD.experimentalSlotFixes && BUILD.scoped) {
-        patchPseudoShadowDom(Cstr.prototype, cmpMeta);
-    }
-    else {
-        if (BUILD.slotChildNodesFix) {
-            patchChildSlotNodes(Cstr.prototype, cmpMeta);
-        }
-        if (BUILD.cloneNodeFix) {
-            patchCloneNode(Cstr.prototype);
-        }
-        if (BUILD.appendChildSlotFix) {
-            patchSlotAppendChild(Cstr.prototype);
-        }
-        if (BUILD.scopedSlotTextContentFix) {
-            patchTextContent(Cstr.prototype, cmpMeta);
-        }
-    }
-    const originalConnectedCallback = Cstr.prototype.connectedCallback;
-    const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
-    Object.assign(Cstr.prototype, {
-        __registerHost() {
-            registerHost(this, cmpMeta);
-        },
-        connectedCallback() {
-            connectedCallback(this);
-            if (BUILD.connectedCallback && originalConnectedCallback) {
-                originalConnectedCallback.call(this);
-            }
-        },
-        disconnectedCallback() {
-            disconnectedCallback(this);
-            if (BUILD.disconnectedCallback && originalDisconnectedCallback) {
-                originalDisconnectedCallback.call(this);
-            }
-        },
-        __attachShadow() {
-            if (supportsShadow) {
-                if (BUILD.shadowDelegatesFocus) {
-                    this.attachShadow({
-                        mode: 'open',
-                        delegatesFocus: !!(cmpMeta.$flags$ & 16 /* CMP_FLAGS.shadowDelegatesFocus */),
-                    });
-                }
-                else {
-                    this.attachShadow({ mode: 'open' });
-                }
-            }
-            else {
-                this.shadowRoot = this;
-            }
-        },
-    });
-    Cstr.is = cmpMeta.$tagName$;
-    return proxyComponent(Cstr, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */ | 2 /* PROXY_FLAGS.proxyState */);
-};
-export const forceModeUpdate = (elm) => {
-    if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
-        const mode = computeMode(elm);
-        const hostRef = getHostRef(elm);
-        if (hostRef.$modeName$ !== mode) {
-            const cmpMeta = hostRef.$cmpMeta$;
-            const oldScopeId = elm['s-sc'];
-            const scopeId = getScopeId(cmpMeta, mode);
-            const style = elm.constructor.style[mode];
-            const flags = cmpMeta.$flags$;
-            if (style) {
-                if (!styles.has(scopeId)) {
-                    registerStyle(scopeId, style, !!(flags & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
-                }
-                hostRef.$modeName$ = mode;
-                elm.classList.remove(oldScopeId + '-h', oldScopeId + '-s');
-                attachStyles(hostRef);
-                forceUpdate(elm);
-            }
-        }
-    }
-};
-//# sourceMappingURL=bootstrap-custom-element.js.map
\ No newline at end of file
diff --git a/build/runtime/bootstrap-custom-element.js.map b/build/runtime/bootstrap-custom-element.js.map
deleted file mode 100644
index 32590fb77f2..00000000000
--- a/build/runtime/bootstrap-custom-element.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"bootstrap-custom-element.js","sourceRoot":"","sources":["../../src/runtime/bootstrap-custom-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAI1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEnE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAA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lazy.d.ts b/build/runtime/bootstrap-lazy.d.ts
deleted file mode 100644
index 05c921c20f8..00000000000
--- a/build/runtime/bootstrap-lazy.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type * as d from '../declarations';
-export { setNonce } from '@platform';
-export declare const bootstrapLazy: (lazyBundles: d.LazyBundlesRuntimeData, options?: d.CustomElementsDefineOptions) => void;
diff --git a/build/runtime/bootstrap-lazy.js b/build/runtime/bootstrap-lazy.js
deleted file mode 100644
index 6d4a2e7055c..00000000000
--- a/build/runtime/bootstrap-lazy.js
+++ /dev/null
@@ -1,207 +0,0 @@
-import { BUILD } from '@app-data';
-import { doc, getHostRef, plt, registerHost, supportsShadow, win } from '@platform';
-import { queryNonceMetaTagContent } from '@utils';
-import { connectedCallback } from './connected-callback';
-import { disconnectedCallback } from './disconnected-callback';
-import { patchChildSlotNodes, patchCloneNode, patchPseudoShadowDom, patchSlotAppendChild, patchTextContent, } from './dom-extras';
-import { hmrStart } from './hmr-component';
-import { createTime, installDevTools } from './profile';
-import { proxyComponent } from './proxy-component';
-import { HYDRATED_CSS, HYDRATED_STYLE_ID, SLOT_FB_CSS } from './runtime-constants';
-import { convertScopedToShadow, registerStyle } from './styles';
-import { appDidLoad } from './update-component';
-export { setNonce } from '@platform';
-export const bootstrapLazy = (lazyBundles, options = {}) => {
-    var _a;
-    if (BUILD.profile && performance.mark) {
-        performance.mark('st:app:start');
-    }
-    installDevTools();
-    const endBootstrap = createTime('bootstrapLazy');
-    const cmpTags = [];
-    const exclude = options.exclude || [];
-    const customElements = win.customElements;
-    const head = doc.head;
-    const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
-    const dataStyles = /*@__PURE__*/ doc.createElement('style');
-    const deferredConnectedCallbacks = [];
-    const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
-    let appLoadFallback;
-    let isBootstrapping = true;
-    let i = 0;
-    Object.assign(plt, options);
-    plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
-    if (BUILD.asyncQueue) {
-        if (options.syncQueue) {
-            plt.$flags$ |= 4 /* PLATFORM_FLAGS.queueSync */;
-        }
-    }
-    if (BUILD.hydrateClientSide) {
-        // If the app is already hydrated there is not point to disable the
-        // async queue. This will improve the first input delay
-        plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
-    }
-    if (BUILD.hydrateClientSide && BUILD.shadowDom) {
-        for (; i < styles.length; i++) {
-            registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
-        }
-    }
-    let hasSlotRelocation = false;
-    lazyBundles.map((lazyBundle) => {
-        lazyBundle[1].map((compactMeta) => {
-            var _a;
-            const cmpMeta = {
-                $flags$: compactMeta[0],
-                $tagName$: compactMeta[1],
-                $members$: compactMeta[2],
-                $listeners$: compactMeta[3],
-            };
-            // Check if we are using slots outside the shadow DOM in this component.
-            // We'll use this information later to add styles for `slot-fb` elements
-            if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
-                hasSlotRelocation = true;
-            }
-            if (BUILD.member) {
-                cmpMeta.$members$ = compactMeta[2];
-            }
-            if (BUILD.hostListener) {
-                cmpMeta.$listeners$ = compactMeta[3];
-            }
-            if (BUILD.reflect) {
-                cmpMeta.$attrsToReflect$ = [];
-            }
-            if (BUILD.watchCallback) {
-                cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
-            }
-            if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
-                // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
-                cmpMeta.$flags$ |= 8 /* CMP_FLAGS.needsShadowDomShim */;
-            }
-            const tagName = BUILD.transformTagName && options.transformTagName
-                ? options.transformTagName(cmpMeta.$tagName$)
-                : cmpMeta.$tagName$;
-            const HostElement = class extends HTMLElement {
-                // StencilLazyHost
-                constructor(self) {
-                    // @ts-ignore
-                    super(self);
-                    self = this;
-                    registerHost(self, cmpMeta);
-                    if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
-                        // this component is using shadow dom
-                        // and this browser supports shadow dom
-                        // add the read-only property "shadowRoot" to the host element
-                        // adding the shadow root build conditionals to minimize runtime
-                        if (supportsShadow) {
-                            if (BUILD.shadowDelegatesFocus) {
-                                self.attachShadow({
-                                    mode: 'open',
-                                    delegatesFocus: !!(cmpMeta.$flags$ & 16 /* CMP_FLAGS.shadowDelegatesFocus */),
-                                });
-                            }
-                            else {
-                                self.attachShadow({ mode: 'open' });
-                            }
-                        }
-                        else if (!BUILD.hydrateServerSide && !('shadowRoot' in self)) {
-                            self.shadowRoot = self;
-                        }
-                    }
-                }
-                connectedCallback() {
-                    if (appLoadFallback) {
-                        clearTimeout(appLoadFallback);
-                        appLoadFallback = null;
-                    }
-                    if (isBootstrapping) {
-                        // connectedCallback will be processed once all components have been registered
-                        deferredConnectedCallbacks.push(this);
-                    }
-                    else {
-                        plt.jmp(() => connectedCallback(this));
-                    }
-                }
-                disconnectedCallback() {
-                    plt.jmp(() => disconnectedCallback(this));
-                }
-                componentOnReady() {
-                    return getHostRef(this).$onReadyPromise$;
-                }
-            };
-            // TODO(STENCIL-914): this check and `else` block can go away and be replaced by just `BUILD.scoped` once we
-            // default our pseudo-slot behavior
-            if (BUILD.experimentalSlotFixes && BUILD.scoped) {
-                patchPseudoShadowDom(HostElement.prototype, cmpMeta);
-            }
-            else {
-                if (BUILD.slotChildNodesFix) {
-                    patchChildSlotNodes(HostElement.prototype, cmpMeta);
-                }
-                if (BUILD.cloneNodeFix) {
-                    patchCloneNode(HostElement.prototype);
-                }
-                if (BUILD.appendChildSlotFix) {
-                    patchSlotAppendChild(HostElement.prototype);
-                }
-                if (BUILD.scopedSlotTextContentFix) {
-                    patchTextContent(HostElement.prototype, cmpMeta);
-                }
-            }
-            // if the component is formAssociated we need to set that on the host
-            // element so that it will be ready for `attachInternals` to be called on
-            // it later on
-            if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* CMP_FLAGS.formAssociated */) {
-                HostElement.formAssociated = true;
-            }
-            if (BUILD.hotModuleReplacement) {
-                // if we're in an HMR dev build then we need to set up the callback
-                // which will carry out the work of actually replacing the module for
-                // this particular component
-                HostElement.prototype['s-hmr'] = function (hmrVersionId) {
-                    hmrStart(this, cmpMeta, hmrVersionId);
-                };
-            }
-            cmpMeta.$lazyBundleId$ = lazyBundle[0];
-            if (!exclude.includes(tagName) && !customElements.get(tagName)) {
-                cmpTags.push(tagName);
-                customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
-            }
-        });
-    });
-    // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
-    if (hasSlotRelocation) {
-        dataStyles.innerHTML += SLOT_FB_CSS;
-    }
-    // Add hydration styles
-    if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
-        dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
-    }
-    // If we have styles, add them to the DOM
-    if (dataStyles.innerHTML.length) {
-        dataStyles.setAttribute('data-styles', '');
-        // Apply CSP nonce to the style tag if it exists
-        const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
-        if (nonce != null) {
-            dataStyles.setAttribute('nonce', nonce);
-        }
-        // Insert the styles into the document head
-        // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
-        head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
-    }
-    // Process deferred connectedCallbacks now all components have been registered
-    isBootstrapping = false;
-    if (deferredConnectedCallbacks.length) {
-        deferredConnectedCallbacks.map((host) => host.connectedCallback());
-    }
-    else {
-        if (BUILD.profile) {
-            plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30, 'timeout')));
-        }
-        else {
-            plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
-        }
-    }
-    // Fallback appLoad event
-    endBootstrap();
-};
-//# sourceMappingURL=bootstrap-lazy.js.map
\ No newline at end of file
diff --git a/build/runtime/bootstrap-lazy.js.map b/build/runtime/bootstrap-lazy.js.map
deleted file mode 100644
index 8c4a0e03ca8..00000000000
--- a/build/runtime/bootstrap-lazy.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"bootstrap-lazy.js","sourceRoot":"","sources":["../../src/runtime/bootstrap-lazy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACpF,OAAO,EAAa,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAG7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAA+B,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAChH,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,WAAqC,EAAE,UAAyC,EAAE,EAAE,E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AAW,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACxF;IAED,8EAA8E;IAC9E,eAAe,GAAG,KAAK,CAAC;IACxB,IAAI,0BAA0B,CAAC,MAAM,EAAE;QACrC,0BAA0B,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;KACpE;SAAM;QACL,IAAI,KAAK,CAAC,OAAO,EAAE;YACjB,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,eAAe,GAAG,UAAU,CAAC,UAAU,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;SAC1E;aAAM;YACL,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,eAAe,GAAG,UAAU,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;SAC/D;KACF;IACD,yBAAyB;IACzB,YAAY,EAAE,CAAC;AACjB,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/client-hydrate.d.ts b/build/runtime/client-hydrate.d.ts
deleted file mode 100644
index 90c7c40a7be..00000000000
--- a/build/runtime/client-hydrate.d.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import type * as d from '../declarations';
-/**
- * Entrypoint of the client-side hydration process. Facilitates calls to hydrate the
- * document and all its nodes.
- *
- * This process will also reconstruct the shadow root and slot DOM nodes for components using shadow DOM.
- *
- * @param hostElm The element to hydrate.
- * @param tagName The element's tag name.
- * @param hostId The host ID assigned to the element by the server.
- * @param hostRef The host reference for the element.
- */
-export declare const initializeClientHydrate: (hostElm: d.HostElement, tagName: string, hostId: string, hostRef: d.HostRef) => void;
-/**
- * Recursively locate any comments representing an original location for a node in a node's
- * children or shadowRoot children.
- *
- * @param node The node to search.
- * @param orgLocNodes A map of the original location annotation and the current node being searched.
- */
-export declare const initializeDocumentHydrate: (node: d.RenderNode, orgLocNodes: d.PlatformRuntime['$orgLocNodes$']) => void;
diff --git a/build/runtime/client-hydrate.js b/build/runtime/client-hydrate.js
deleted file mode 100644
index 02d00697db4..00000000000
--- a/build/runtime/client-hydrate.js
+++ /dev/null
@@ -1,247 +0,0 @@
-import { BUILD } from '@app-data';
-import { doc, plt, supportsShadow } from '@platform';
-import { createTime } from './profile';
-import { CONTENT_REF_ID, HYDRATE_CHILD_ID, HYDRATE_ID, ORG_LOCATION_ID, SLOT_NODE_ID, TEXT_NODE_ID, } from './runtime-constants';
-import { newVNode } from './vdom/h';
-/**
- * Entrypoint of the client-side hydration process. Facilitates calls to hydrate the
- * document and all its nodes.
- *
- * This process will also reconstruct the shadow root and slot DOM nodes for components using shadow DOM.
- *
- * @param hostElm The element to hydrate.
- * @param tagName The element's tag name.
- * @param hostId The host ID assigned to the element by the server.
- * @param hostRef The host reference for the element.
- */
-export const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
-    const endHydrate = createTime('hydrateClient', tagName);
-    const shadowRoot = hostElm.shadowRoot;
-    const childRenderNodes = [];
-    const slotNodes = [];
-    const shadowRootNodes = BUILD.shadowDom && shadowRoot ? [] : null;
-    const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
-    if (!plt.$orgLocNodes$) {
-        initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
-    }
-    hostElm[HYDRATE_ID] = hostId;
-    hostElm.removeAttribute(HYDRATE_ID);
-    clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
-    childRenderNodes.map((c) => {
-        const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
-        const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
-        const node = c.$elm$;
-        // Put the node back in its original location since the native Shadow DOM
-        // can handle rendering it its correct location now
-        if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
-            orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
-        }
-        if (!shadowRoot) {
-            node['s-hn'] = tagName;
-            if (orgLocationNode) {
-                node['s-ol'] = orgLocationNode;
-                node['s-ol']['s-nr'] = node;
-            }
-        }
-        plt.$orgLocNodes$.delete(orgLocationId);
-    });
-    if (BUILD.shadowDom && shadowRoot) {
-        shadowRootNodes.map((shadowRootNode) => {
-            if (shadowRootNode) {
-                shadowRoot.appendChild(shadowRootNode);
-            }
-        });
-    }
-    endHydrate();
-};
-/**
- * Recursively constructs the virtual node tree for a host element and its children.
- * The tree is constructed by parsing the annotations set on the nodes by the server.
- *
- * In addition to constructing the vNode tree, we also track information about the node's
- * descendants like which are slots, which should exist in the shadow root, and which
- * are nodes that should be rendered as children of the parent node.
- *
- * @param parentVNode The vNode representing the parent node.
- * @param childRenderNodes An array of all child nodes in the parent's node tree.
- * @param slotNodes An array of all slot nodes in the parent's node tree.
- * @param shadowRootNodes An array all nodes that should be rendered in the shadow root in the parent's node tree.
- * @param hostElm The parent element.
- * @param node The node to construct the vNode tree for.
- * @param hostId The host ID assigned to the element by the server.
- */
-const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
-    let childNodeType;
-    let childIdSplt;
-    let childVNode;
-    let i;
-    if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
-        childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
-        if (childNodeType) {
-            // got the node data from the element's attribute
-            // `${hostId}.${nodeId}.${depth}.${index}`
-            childIdSplt = childNodeType.split('.');
-            if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
-                childVNode = {
-                    $flags$: 0,
-                    $hostId$: childIdSplt[0],
-                    $nodeId$: childIdSplt[1],
-                    $depth$: childIdSplt[2],
-                    $index$: childIdSplt[3],
-                    $tag$: node.tagName.toLowerCase(),
-                    $elm$: node,
-                    $attrs$: null,
-                    $children$: null,
-                    $key$: null,
-                    $name$: null,
-                    $text$: null,
-                };
-                childRenderNodes.push(childVNode);
-                node.removeAttribute(HYDRATE_CHILD_ID);
-                // this is a new child vnode
-                // so ensure its parent vnode has the vchildren array
-                if (!parentVNode.$children$) {
-                    parentVNode.$children$ = [];
-                }
-                // add our child vnode to a specific index of the vnode's children
-                parentVNode.$children$[childVNode.$index$] = childVNode;
-                // this is now the new parent vnode for all the next child checks
-                parentVNode = childVNode;
-                if (shadowRootNodes && childVNode.$depth$ === '0') {
-                    shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
-                }
-            }
-        }
-        // recursively drill down, end to start so we can remove nodes
-        for (i = node.childNodes.length - 1; i >= 0; i--) {
-            clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
-        }
-        if (node.shadowRoot) {
-            // keep drilling down through the shadow root nodes
-            for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
-                clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
-            }
-        }
-    }
-    else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
-        // `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
-        childIdSplt = node.nodeValue.split('.');
-        if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
-            // comment node for either the host id or a 0 host id
-            childNodeType = childIdSplt[0];
-            childVNode = {
-                $flags$: 0,
-                $hostId$: childIdSplt[1],
-                $nodeId$: childIdSplt[2],
-                $depth$: childIdSplt[3],
-                $index$: childIdSplt[4],
-                $elm$: node,
-                $attrs$: null,
-                $children$: null,
-                $key$: null,
-                $name$: null,
-                $tag$: null,
-                $text$: null,
-            };
-            if (childNodeType === TEXT_NODE_ID) {
-                childVNode.$elm$ = node.nextSibling;
-                if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* NODE_TYPE.TextNode */) {
-                    childVNode.$text$ = childVNode.$elm$.textContent;
-                    childRenderNodes.push(childVNode);
-                    // remove the text comment since it's no longer needed
-                    node.remove();
-                    if (!parentVNode.$children$) {
-                        parentVNode.$children$ = [];
-                    }
-                    parentVNode.$children$[childVNode.$index$] = childVNode;
-                    if (shadowRootNodes && childVNode.$depth$ === '0') {
-                        shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
-                    }
-                }
-            }
-            else if (childVNode.$hostId$ === hostId) {
-                // this comment node is specifically for this host id
-                if (childNodeType === SLOT_NODE_ID) {
-                    // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
-                    childVNode.$tag$ = 'slot';
-                    if (childIdSplt[5]) {
-                        node['s-sn'] = childVNode.$name$ = childIdSplt[5];
-                    }
-                    else {
-                        node['s-sn'] = '';
-                    }
-                    node['s-sr'] = true;
-                    if (BUILD.shadowDom && shadowRootNodes) {
-                        // browser support shadowRoot and this is a shadow dom component
-                        // create an actual slot element
-                        childVNode.$elm$ = doc.createElement(childVNode.$tag$);
-                        if (childVNode.$name$) {
-                            // add the slot name attribute
-                            childVNode.$elm$.setAttribute('name', childVNode.$name$);
-                        }
-                        // insert the new slot element before the slot comment
-                        node.parentNode.insertBefore(childVNode.$elm$, node);
-                        // remove the slot comment since it's not needed for shadow
-                        node.remove();
-                        if (childVNode.$depth$ === '0') {
-                            shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
-                        }
-                    }
-                    slotNodes.push(childVNode);
-                    if (!parentVNode.$children$) {
-                        parentVNode.$children$ = [];
-                    }
-                    parentVNode.$children$[childVNode.$index$] = childVNode;
-                }
-                else if (childNodeType === CONTENT_REF_ID) {
-                    // `${CONTENT_REF_ID}.${hostId}`;
-                    if (BUILD.shadowDom && shadowRootNodes) {
-                        // remove the content ref comment since it's not needed for shadow
-                        node.remove();
-                    }
-                    else if (BUILD.slotRelocation) {
-                        hostElm['s-cr'] = node;
-                        node['s-cn'] = true;
-                    }
-                }
-            }
-        }
-    }
-    else if (parentVNode && parentVNode.$tag$ === 'style') {
-        const vnode = newVNode(null, node.textContent);
-        vnode.$elm$ = node;
-        vnode.$index$ = '0';
-        parentVNode.$children$ = [vnode];
-    }
-};
-/**
- * Recursively locate any comments representing an original location for a node in a node's
- * children or shadowRoot children.
- *
- * @param node The node to search.
- * @param orgLocNodes A map of the original location annotation and the current node being searched.
- */
-export const initializeDocumentHydrate = (node, orgLocNodes) => {
-    if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
-        let i = 0;
-        for (; i < node.childNodes.length; i++) {
-            initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
-        }
-        if (node.shadowRoot) {
-            for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
-                initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
-            }
-        }
-    }
-    else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
-        const childIdSplt = node.nodeValue.split('.');
-        if (childIdSplt[0] === ORG_LOCATION_ID) {
-            orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
-            node.nodeValue = '';
-            // useful to know if the original location is
-            // the root light-dom of a shadow dom component
-            node['s-en'] = childIdSplt[3];
-        }
-    }
-};
-//# sourceMappingURL=client-hydrate.js.map
\ No newline at end of file
diff --git a/build/runtime/client-hydrate.js.map b/build/runtime/client-hydrate.js.map
deleted file mode 100644
index 8275ca4d9a6..00000000000
--- a/build/runtime/client-hydrate.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"client-hydrate.js","sourceRoot":"","sources":["../../src/runtime/client-hydrate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,UAAU,EAEV,eAAe,EACf,YAAY,EACZ,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,OAA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E;QAC3C,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,OAAO,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,yBAAyB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAQ,EAAE,WAAW,CAAC,CAAC;SACnE;QACD,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACtD,yBAAyB,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAQ,EAAE,WAAW,CAAC,CAAC;aAC9E;SACF;KACF;SAAM,IAAI,IAAI,CAAC,QAAQ,kCAA0B,EAAE;QAClD,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9C,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,eAAe,EAAE;YACtC,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;YAC7D,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;YAEpB,6CAA6C;YAC7C,+CAA+C;YAC/C,IAAI,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAQ,CAAC;SACtC;KACF;AACH,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/connected-callback.d.ts b/build/runtime/connected-callback.d.ts
deleted file mode 100644
index 8d8933a5963..00000000000
--- a/build/runtime/connected-callback.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import type * as d from '../declarations';
-export declare const connectedCallback: (elm: d.HostElement) => void;
diff --git a/build/runtime/connected-callback.js b/build/runtime/connected-callback.js
deleted file mode 100644
index a92fdc3961f..00000000000
--- a/build/runtime/connected-callback.js
+++ /dev/null
@@ -1,114 +0,0 @@
-import { BUILD } from '@app-data';
-import { addHostEventListeners, doc, getHostRef, nextTick, plt, supportsShadow } from '@platform';
-import { initializeClientHydrate } from './client-hydrate';
-import { fireConnectedCallback, initializeComponent } from './initialize-component';
-import { createTime } from './profile';
-import { HYDRATE_ID } from './runtime-constants';
-import { addStyle } from './styles';
-import { attachToAncestor } from './update-component';
-export const connectedCallback = (elm) => {
-    if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
-        const hostRef = getHostRef(elm);
-        const cmpMeta = hostRef.$cmpMeta$;
-        const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
-        if (BUILD.hostListenerTargetParent) {
-            // only run if we have listeners being attached to a parent
-            addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
-        }
-        if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
-            // first time this component has connected
-            hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
-            let hostId;
-            if (BUILD.hydrateClientSide) {
-                hostId = elm.getAttribute(HYDRATE_ID);
-                if (hostId) {
-                    if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
-                        const scopeId = BUILD.mode
-                            ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute('s-mode'))
-                            : addStyle(elm.shadowRoot, cmpMeta);
-                        elm.classList.remove(scopeId + '-h', scopeId + '-s');
-                    }
-                    initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
-                }
-            }
-            if (BUILD.slotRelocation && !hostId) {
-                // initUpdate
-                // if the slot polyfill is required we'll need to put some nodes
-                // in here to act as original content anchors as we move nodes around
-                // host element has been connected to the DOM
-                if (BUILD.hydrateServerSide ||
-                    ((BUILD.slot || BUILD.shadowDom) &&
-                        // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
-                        cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
-                    setContentReference(elm);
-                }
-            }
-            if (BUILD.asyncLoading) {
-                // find the first ancestor component (if there is one) and register
-                // this component as one of the actively loading child components for its ancestor
-                let ancestorComponent = elm;
-                while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
-                    // climb up the ancestors looking for the first
-                    // component that hasn't finished its lifecycle update yet
-                    if ((BUILD.hydrateClientSide &&
-                        ancestorComponent.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
-                        ancestorComponent.hasAttribute('s-id') &&
-                        ancestorComponent['s-p']) ||
-                        ancestorComponent['s-p']) {
-                        // we found this components first ancestor component
-                        // keep a reference to this component's ancestor component
-                        attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
-                        break;
-                    }
-                }
-            }
-            // Lazy properties
-            // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
-            if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
-                Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
-                    if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
-                        const value = elm[memberName];
-                        delete elm[memberName];
-                        elm[memberName] = value;
-                    }
-                });
-            }
-            if (BUILD.initializeNextTick) {
-                // connectedCallback, taskQueue, initialLoad
-                // angular sets attribute AFTER connectCallback
-                // https://github.com/angular/angular/issues/18909
-                // https://github.com/angular/angular/issues/19940
-                nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
-            }
-            else {
-                initializeComponent(elm, hostRef, cmpMeta);
-            }
-        }
-        else {
-            // not the first time this has connected
-            // reattach any event listeners to the host
-            // since they would have been removed when disconnected
-            addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
-            // fire off connectedCallback() on component instance
-            if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
-                fireConnectedCallback(hostRef.$lazyInstance$);
-            }
-            else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
-                hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
-            }
-        }
-        endConnected();
-    }
-};
-const setContentReference = (elm) => {
-    // only required when we're NOT using native shadow dom (slot)
-    // or this browser doesn't support native shadow dom
-    // and this host element was NOT created with SSR
-    // let's pick out the inner content for slot projection
-    // create a node to represent where the original
-    // content was first placed, which is useful later on
-    const contentRefElm = (elm['s-cr'] = doc.createComment(BUILD.isDebug ? `content-ref (host=${elm.localName})` : ''));
-    contentRefElm['s-cn'] = true;
-    elm.insertBefore(contentRefElm, elm.firstChild);
-};
-//# sourceMappingURL=connected-callback.js.map
\ No newline at end of file
diff --git a/build/runtime/connected-callback.js.map b/build/runtime/connected-callback.js.map
deleted file mode 100644
index 0957c5be08e..00000000000
--- a/build/runtime/connected-callback.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"connected-callback.js","sourceRoot":"","sources":["../../src/runtime/connected-callback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIlG,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,UAAU,EAA6B,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAkB,EAAE,EAAE;IACtD,IAAI,CAAC,GAAG,CAAC,OAAO,2CAAm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C,CAAC,CAAC,EAAE,CACpD,CAAC,CAAC;IACV,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC7B,GAAG,CAAC,YAAY,CAAC,aAAa,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;AAClD,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/disconnected-callback.d.ts b/build/runtime/disconnected-callback.d.ts
deleted file mode 100644
index 6e39f92fa0c..00000000000
--- a/build/runtime/disconnected-callback.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import type * as d from '../declarations';
-export declare const disconnectedCallback: (elm: d.HostElement) => Promise;
diff --git a/build/runtime/disconnected-callback.js b/build/runtime/disconnected-callback.js
deleted file mode 100644
index 2b13ecc7248..00000000000
--- a/build/runtime/disconnected-callback.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import { BUILD } from '@app-data';
-import { getHostRef, plt } from '@platform';
-import { safeCall } from './update-component';
-const disconnectInstance = (instance) => {
-    if (BUILD.lazyLoad && BUILD.disconnectedCallback) {
-        safeCall(instance, 'disconnectedCallback');
-    }
-    if (BUILD.cmpDidUnload) {
-        safeCall(instance, 'componentDidUnload');
-    }
-};
-export const disconnectedCallback = async (elm) => {
-    if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
-        const hostRef = getHostRef(elm);
-        if (BUILD.hostListener) {
-            if (hostRef.$rmListeners$) {
-                hostRef.$rmListeners$.map((rmListener) => rmListener());
-                hostRef.$rmListeners$ = undefined;
-            }
-        }
-        if (!BUILD.lazyLoad) {
-            disconnectInstance(elm);
-        }
-        else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
-            disconnectInstance(hostRef.$lazyInstance$);
-        }
-        else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
-            hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
-        }
-    }
-};
-//# sourceMappingURL=disconnected-callback.js.map
\ No newline at end of file
diff --git a/build/runtime/disconnected-callback.js.map b/build/runtime/disconnected-callback.js.map
deleted file mode 100644
index e379f664e4f..00000000000
--- a/build/runtime/disconnected-callback.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"disconnected-callback.js","sourceRoot":"","sources":["../../src/runtime/disconnected-callback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAI5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,kBAAkB,GAAG,CAAC,QAAa,EAAE,EAAE;IAC3C,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,oBAAoB,EAAE;QAChD,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC;KAC5C;IACD,IAAI,KAAK,CAAC,YAAY,EAAE;QACtB,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC;KAC1C;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EAAE,GAAkB,EAAE,EAAE;IAC/D,IAAI,CAAC,GAAG,CAAC,OAAO,2CAAmC,CAAC,KAAK,CAAC,EAAE;QAC1D,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;QAEhC,IAAI,KAAK,CAAC,YAAY,EAAE;YACtB,IAAI,OAAO,CAAC,aAAa,EAAE;gBACzB,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,CAAC,CAAC;gBACxD,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;aACnC;SACF;QAED,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACnB,kBAAkB,CAAC,GAAG,CAAC,CAAC;SACzB;aAAM,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,EAAE;YAClC,kBAAkB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;SAC5C;aAAM,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,EAAE;YACpC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;SACjF;KACF;AACH,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/dom-extras.d.ts b/build/runtime/dom-extras.d.ts
deleted file mode 100644
index d04727298eb..00000000000
--- a/build/runtime/dom-extras.d.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-import type * as d from '../declarations';
-export declare const patchPseudoShadowDom: (hostElementPrototype: HTMLElement, descriptorPrototype: d.ComponentRuntimeMeta) => void;
-export declare const patchCloneNode: (HostElementPrototype: HTMLElement) => void;
-export declare const patchSlotAppendChild: (HostElementPrototype: any) => void;
-/**
- * Patches the `prepend` method for a slotted node inside a scoped component.
- *
- * @param HostElementPrototype the `Element` to be patched
- */
-export declare const patchSlotPrepend: (HostElementPrototype: HTMLElement) => void;
-/**
- * Patches the `append` method for a slotted node inside a scoped component. The patched method uses
- * `appendChild` under-the-hood while creating text nodes for any new children that passed as bare strings.
- *
- * @param HostElementPrototype the `Element` to be patched
- */
-export declare const patchSlotAppend: (HostElementPrototype: HTMLElement) => void;
-/**
- * Patches the `insertAdjacentHTML` method for a slotted node inside a scoped component. Specifically,
- * we only need to patch the behavior for the specific `beforeend` and `afterbegin` positions so the element
- * gets inserted into the DOM in the correct location.
- *
- * @param HostElementPrototype the `Element` to be patched
- */
-export declare const patchSlotInsertAdjacentHTML: (HostElementPrototype: HTMLElement) => void;
-/**
- * Patches the `insertAdjacentText` method for a slotted node inside a scoped component. Specifically,
- * we only need to patch the behavior for the specific `beforeend` and `afterbegin` positions so the text node
- * gets inserted into the DOM in the correct location.
- *
- * @param HostElementPrototype the `Element` to be patched
- */
-export declare const patchSlotInsertAdjacentText: (HostElementPrototype: HTMLElement) => void;
-/**
- * Patches the `insertAdjacentElement` method for a slotted node inside a scoped component. Specifically,
- * we only need to patch the behavior for the specific `beforeend` and `afterbegin` positions so the element
- * gets inserted into the DOM in the correct location.
- *
- * @param HostElementPrototype the `Element` to be patched
- */
-export declare const patchSlotInsertAdjacentElement: (HostElementPrototype: HTMLElement) => void;
-/**
- * Patches the text content of an unnamed slotted node inside a scoped component
- * @param hostElementPrototype the `Element` to be patched
- * @param cmpMeta component runtime metadata used to determine if the component should be patched or not
- */
-export declare const patchTextContent: (hostElementPrototype: HTMLElement, cmpMeta: d.ComponentRuntimeMeta) => void;
-export declare const patchChildSlotNodes: (elm: HTMLElement, cmpMeta: d.ComponentRuntimeMeta) => void;
diff --git a/build/runtime/dom-extras.js b/build/runtime/dom-extras.js
deleted file mode 100644
index 86521e2d198..00000000000
--- a/build/runtime/dom-extras.js
+++ /dev/null
@@ -1,303 +0,0 @@
-import { BUILD } from '@app-data';
-import { getHostRef, plt, supportsShadow } from '@platform';
-export const patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
-    patchCloneNode(hostElementPrototype);
-    patchSlotAppendChild(hostElementPrototype);
-    patchSlotAppend(hostElementPrototype);
-    patchSlotPrepend(hostElementPrototype);
-    patchSlotInsertAdjacentElement(hostElementPrototype);
-    patchSlotInsertAdjacentHTML(hostElementPrototype);
-    patchSlotInsertAdjacentText(hostElementPrototype);
-    patchTextContent(hostElementPrototype, descriptorPrototype);
-    patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
-};
-export const patchCloneNode = (HostElementPrototype) => {
-    const orgCloneNode = HostElementPrototype.cloneNode;
-    HostElementPrototype.cloneNode = function (deep) {
-        const srcNode = this;
-        const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
-        const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
-        if (BUILD.slot && !isShadowDom && deep) {
-            let i = 0;
-            let slotted, nonStencilNode;
-            const stencilPrivates = [
-                's-id',
-                's-cr',
-                's-lr',
-                's-rc',
-                's-sc',
-                's-p',
-                's-cn',
-                's-sr',
-                's-sn',
-                's-hn',
-                's-ol',
-                's-nr',
-                's-si',
-            ];
-            for (; i < srcNode.childNodes.length; i++) {
-                slotted = srcNode.childNodes[i]['s-nr'];
-                nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);
-                if (slotted) {
-                    if (BUILD.appendChildSlotFix && clonedNode.__appendChild) {
-                        clonedNode.__appendChild(slotted.cloneNode(true));
-                    }
-                    else {
-                        clonedNode.appendChild(slotted.cloneNode(true));
-                    }
-                }
-                if (nonStencilNode) {
-                    clonedNode.appendChild(srcNode.childNodes[i].cloneNode(true));
-                }
-            }
-        }
-        return clonedNode;
-    };
-};
-export const patchSlotAppendChild = (HostElementPrototype) => {
-    HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
-    HostElementPrototype.appendChild = function (newChild) {
-        const slotName = (newChild['s-sn'] = getSlotName(newChild));
-        const slotNode = getHostSlotNode(this.childNodes, slotName);
-        if (slotNode) {
-            const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
-            const appendAfter = slotChildNodes[slotChildNodes.length - 1];
-            return appendAfter.parentNode.insertBefore(newChild, appendAfter.nextSibling);
-        }
-        return this.__appendChild(newChild);
-    };
-};
-/**
- * Patches the `prepend` method for a slotted node inside a scoped component.
- *
- * @param HostElementPrototype the `Element` to be patched
- */
-export const patchSlotPrepend = (HostElementPrototype) => {
-    const originalPrepend = HostElementPrototype.prepend;
-    HostElementPrototype.prepend = function (...newChildren) {
-        newChildren.forEach((newChild) => {
-            if (typeof newChild === 'string') {
-                newChild = this.ownerDocument.createTextNode(newChild);
-            }
-            const slotName = (newChild['s-sn'] = getSlotName(newChild));
-            const slotNode = getHostSlotNode(this.childNodes, slotName);
-            if (slotNode) {
-                const slotPlaceholder = document.createTextNode('');
-                slotPlaceholder['s-nr'] = newChild;
-                slotNode['s-cr'].parentNode.__appendChild(slotPlaceholder);
-                newChild['s-ol'] = slotPlaceholder;
-                const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
-                const appendAfter = slotChildNodes[0];
-                return appendAfter.parentNode.insertBefore(newChild, appendAfter.nextSibling);
-            }
-            if (newChild.nodeType === 1 && !!newChild.getAttribute('slot')) {
-                newChild.hidden = true;
-            }
-            return originalPrepend.call(this, newChild);
-        });
-    };
-};
-/**
- * Patches the `append` method for a slotted node inside a scoped component. The patched method uses
- * `appendChild` under-the-hood while creating text nodes for any new children that passed as bare strings.
- *
- * @param HostElementPrototype the `Element` to be patched
- */
-export const patchSlotAppend = (HostElementPrototype) => {
-    HostElementPrototype.append = function (...newChildren) {
-        newChildren.forEach((newChild) => {
-            if (typeof newChild === 'string') {
-                newChild = this.ownerDocument.createTextNode(newChild);
-            }
-            this.appendChild(newChild);
-        });
-    };
-};
-/**
- * Patches the `insertAdjacentHTML` method for a slotted node inside a scoped component. Specifically,
- * we only need to patch the behavior for the specific `beforeend` and `afterbegin` positions so the element
- * gets inserted into the DOM in the correct location.
- *
- * @param HostElementPrototype the `Element` to be patched
- */
-export const patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
-    const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
-    HostElementPrototype.insertAdjacentHTML = function (position, text) {
-        if (position !== 'afterbegin' && position !== 'beforeend') {
-            return originalInsertAdjacentHtml.call(this, position, text);
-        }
-        const container = this.ownerDocument.createElement('_');
-        let node;
-        container.innerHTML = text;
-        if (position === 'afterbegin') {
-            while ((node = container.firstChild)) {
-                this.prepend(node);
-            }
-        }
-        else if (position === 'beforeend') {
-            while ((node = container.firstChild)) {
-                this.append(node);
-            }
-        }
-    };
-};
-/**
- * Patches the `insertAdjacentText` method for a slotted node inside a scoped component. Specifically,
- * we only need to patch the behavior for the specific `beforeend` and `afterbegin` positions so the text node
- * gets inserted into the DOM in the correct location.
- *
- * @param HostElementPrototype the `Element` to be patched
- */
-export const patchSlotInsertAdjacentText = (HostElementPrototype) => {
-    HostElementPrototype.insertAdjacentText = function (position, text) {
-        this.insertAdjacentHTML(position, text);
-    };
-};
-/**
- * Patches the `insertAdjacentElement` method for a slotted node inside a scoped component. Specifically,
- * we only need to patch the behavior for the specific `beforeend` and `afterbegin` positions so the element
- * gets inserted into the DOM in the correct location.
- *
- * @param HostElementPrototype the `Element` to be patched
- */
-export const patchSlotInsertAdjacentElement = (HostElementPrototype) => {
-    const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
-    HostElementPrototype.insertAdjacentElement = function (position, element) {
-        if (position !== 'afterbegin' && position !== 'beforeend') {
-            return originalInsertAdjacentElement.call(this, position, element);
-        }
-        if (position === 'afterbegin') {
-            this.prepend(element);
-            return element;
-        }
-        else if (position === 'beforeend') {
-            this.append(element);
-            return element;
-        }
-        return element;
-    };
-};
-/**
- * Patches the text content of an unnamed slotted node inside a scoped component
- * @param hostElementPrototype the `Element` to be patched
- * @param cmpMeta component runtime metadata used to determine if the component should be patched or not
- */
-export const patchTextContent = (hostElementPrototype, cmpMeta) => {
-    if (BUILD.scoped && cmpMeta.$flags$ & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
-        const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, 'textContent');
-        Object.defineProperty(hostElementPrototype, '__textContent', descriptor);
-        Object.defineProperty(hostElementPrototype, 'textContent', {
-            get() {
-                var _a;
-                // get the 'default slot', which would be the first slot in a shadow tree (if we were using one), whose name is
-                // the empty string
-                const slotNode = getHostSlotNode(this.childNodes, '');
-                // when a slot node is found, the textContent _may_ be found in the next sibling (text) node, depending on how
-                // nodes were reordered during the vdom render. first try to get the text content from the sibling.
-                if (((_a = slotNode === null || slotNode === void 0 ? void 0 : slotNode.nextSibling) === null || _a === void 0 ? void 0 : _a.nodeType) === 3 /* NODE_TYPES.TEXT_NODE */) {
-                    return slotNode.nextSibling.textContent;
-                }
-                else if (slotNode) {
-                    return slotNode.textContent;
-                }
-                else {
-                    // fallback to the original implementation
-                    return this.__textContent;
-                }
-            },
-            set(value) {
-                var _a;
-                // get the 'default slot', which would be the first slot in a shadow tree (if we were using one), whose name is
-                // the empty string
-                const slotNode = getHostSlotNode(this.childNodes, '');
-                // when a slot node is found, the textContent _may_ need to be placed in the next sibling (text) node,
-                // depending on how nodes were reordered during the vdom render. first try to set the text content on the
-                // sibling.
-                if (((_a = slotNode === null || slotNode === void 0 ? void 0 : slotNode.nextSibling) === null || _a === void 0 ? void 0 : _a.nodeType) === 3 /* NODE_TYPES.TEXT_NODE */) {
-                    slotNode.nextSibling.textContent = value;
-                }
-                else if (slotNode) {
-                    slotNode.textContent = value;
-                }
-                else {
-                    // we couldn't find a slot, but that doesn't mean that there isn't one. if this check ran before the DOM
-                    // loaded, we could have missed it. check for a content reference element on the scoped component and insert
-                    // it there
-                    this.__textContent = value;
-                    const contentRefElm = this['s-cr'];
-                    if (contentRefElm) {
-                        this.insertBefore(contentRefElm, this.firstChild);
-                    }
-                }
-            },
-        });
-    }
-};
-export const patchChildSlotNodes = (elm, cmpMeta) => {
-    class FakeNodeList extends Array {
-        item(n) {
-            return this[n];
-        }
-    }
-    // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
-    if (cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {
-        const childNodesFn = elm.__lookupGetter__('childNodes');
-        Object.defineProperty(elm, 'children', {
-            get() {
-                return this.childNodes.map((n) => n.nodeType === 1);
-            },
-        });
-        Object.defineProperty(elm, 'childElementCount', {
-            get() {
-                return elm.children.length;
-            },
-        });
-        Object.defineProperty(elm, 'childNodes', {
-            get() {
-                const childNodes = childNodesFn.call(this);
-                if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0 &&
-                    getHostRef(this).$flags$ & 2 /* HOST_FLAGS.hasRendered */) {
-                    const result = new FakeNodeList();
-                    for (let i = 0; i < childNodes.length; i++) {
-                        const slot = childNodes[i]['s-nr'];
-                        if (slot) {
-                            result.push(slot);
-                        }
-                    }
-                    return result;
-                }
-                return FakeNodeList.from(childNodes);
-            },
-        });
-    }
-};
-const getSlotName = (node) => node['s-sn'] || (node.nodeType === 1 && node.getAttribute('slot')) || '';
-/**
- * Recursively searches a series of child nodes for a slot with the provided name.
- * @param childNodes the nodes to search for a slot with a specific name.
- * @param slotName the name of the slot to match on.
- * @returns a reference to the slot node that matches the provided name, `null` otherwise
- */
-const getHostSlotNode = (childNodes, slotName) => {
-    let i = 0;
-    let childNode;
-    for (; i < childNodes.length; i++) {
-        childNode = childNodes[i];
-        if (childNode['s-sr'] && childNode['s-sn'] === slotName) {
-            return childNode;
-        }
-        childNode = getHostSlotNode(childNode.childNodes, slotName);
-        if (childNode) {
-            return childNode;
-        }
-    }
-    return null;
-};
-const getHostSlotChildNodes = (n, slotName) => {
-    const childNodes = [n];
-    while ((n = n.nextSibling) && n['s-sn'] === slotName) {
-        childNodes.push(n);
-    }
-    return childNodes;
-};
-//# sourceMappingURL=dom-extras.js.map
\ No newline at end of file
diff --git a/build/runtime/dom-extras.js.map b/build/runtime/dom-extras.js.map
deleted file mode 100644
index da4346d1aae..00000000000
--- a/build/runtime/dom-extras.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"dom-extras.js","sourceRoot":"","sources":["../../src/runtime/dom-extras.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAO5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,oBAAiC,EACjC,mBAA2C,EAC3C,EAAE;IACF,cAAc,CAAC,oBAAoB,CAAC,CAAC;IACrC,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;IAC3C,eAAe,CAAC,oBAAoB,CAAC,CAAC;IACtC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IACvC,8BAA8B,CAAC,oBAAoB,CAAC,CAAC;IACrD,2BAA2B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AkB,CAAC,IAAK,CAAkB,CAAC,MAAM,CAAC,KAAK,QAAQ,EAAE;QAC7E,UAAU,CAAC,IAAI,CAAC,CAAQ,CAAC,CAAC;KAC3B;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/element.d.ts b/build/runtime/element.d.ts
deleted file mode 100644
index 792bdd765c7..00000000000
--- a/build/runtime/element.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import type * as d from '../declarations';
-export declare const getElement: (ref: any) => d.HostElement;
diff --git a/build/runtime/element.js b/build/runtime/element.js
deleted file mode 100644
index 017cc061afb..00000000000
--- a/build/runtime/element.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import { BUILD } from '@app-data';
-import { getHostRef } from '@platform';
-export const getElement = (ref) => (BUILD.lazyLoad ? getHostRef(ref).$hostElement$ : ref);
-//# sourceMappingURL=element.js.map
\ No newline at end of file
diff --git a/build/runtime/element.js.map b/build/runtime/element.js.map
deleted file mode 100644
index c6697585e80..00000000000
--- a/build/runtime/element.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"element.js","sourceRoot":"","sources":["../../src/runtime/element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAQ,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,CAAE,GAAqB,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/event-emitter.d.ts b/build/runtime/event-emitter.d.ts
deleted file mode 100644
index 0f54abc8e2b..00000000000
--- a/build/runtime/event-emitter.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import type * as d from '../declarations';
-export declare const createEvent: (ref: d.RuntimeRef, name: string, flags: number) => {
-    emit: (detail: any) => CustomEvent;
-};
-/**
- * Helper function to create & dispatch a custom Event on a provided target
- * @param elm the target of the Event
- * @param name the name to give the custom Event
- * @param opts options for configuring a custom Event
- * @returns the custom Event
- */
-export declare const emitEvent: (elm: EventTarget, name: string, opts?: CustomEventInit) => CustomEvent;
diff --git a/build/runtime/event-emitter.js b/build/runtime/event-emitter.js
deleted file mode 100644
index a1031a72d3d..00000000000
--- a/build/runtime/event-emitter.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import { BUILD } from '@app-data';
-import { consoleDevWarn, plt } from '@platform';
-import { getElement } from './element';
-export const createEvent = (ref, name, flags) => {
-    const elm = getElement(ref);
-    return {
-        emit: (detail) => {
-            if (BUILD.isDev && !elm.isConnected) {
-                consoleDevWarn(`The "${name}" event was emitted, but the dispatcher node is no longer connected to the dom.`);
-            }
-            return emitEvent(elm, name, {
-                bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
-                composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
-                cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
-                detail,
-            });
-        },
-    };
-};
-/**
- * Helper function to create & dispatch a custom Event on a provided target
- * @param elm the target of the Event
- * @param name the name to give the custom Event
- * @param opts options for configuring a custom Event
- * @returns the custom Event
- */
-export const emitEvent = (elm, name, opts) => {
-    const ev = plt.ce(name, opts);
-    elm.dispatchEvent(ev);
-    return ev;
-};
-//# sourceMappingURL=event-emitter.js.map
\ No newline at end of file
diff --git a/build/runtime/event-emitter.js.map b/build/runtime/event-emitter.js.map
deleted file mode 100644
index 80728466fe0..00000000000
--- a/build/runtime/event-emitter.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"event-emitter.js","sourceRoot":"","sources":["../../src/runtime/event-emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAIhD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAiB,EAAE,IAAY,EAAE,KAAa,EAAE,EAAE;IAC5E,MAAM,GAAG,GAAG,UAAU,CAAC,GAAG,CAAgB,CAAC;IAC3C,OAAO;QACL,IAAI,EAAE,CAAC,MAAW,EAAE,EAAE;YACpB,IAAI,KAAK,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE;gBACnC,cAAc,CAAC,QAAQ,IAAI,iFAAiF,CAAC,CAAC;aAC/G;YACD,OAAO,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE;gBAC1B,OAAO,EAAE,CAAC,CAAC,CAAC,KAAK,8BAAsB,CAAC;gBACxC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,+BAAuB,CAAC;gBAC1C,UAAU,EAAE,CAAC,CAAC,CAAC,KAAK,kCAA0B,CAAC;gBAC/C,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,GAAgB,EAAE,IAAY,EAAE,IAAsB,EAAE,EAAE;IAClF,MAAM,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9B,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IACtB,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/fragment.d.ts b/build/runtime/fragment.d.ts
deleted file mode 100644
index b0db7b6ee2d..00000000000
--- a/build/runtime/fragment.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { FunctionalComponent } from '../declarations/stencil-public-runtime';
-export declare const Fragment: FunctionalComponent;
diff --git a/build/runtime/fragment.js b/build/runtime/fragment.js
deleted file mode 100644
index 267bbddcfaf..00000000000
--- a/build/runtime/fragment.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export const Fragment = (_, children) => children;
-//# sourceMappingURL=fragment.js.map
\ No newline at end of file
diff --git a/build/runtime/fragment.js.map b/build/runtime/fragment.js.map
deleted file mode 100644
index 918e9b09ed0..00000000000
--- a/build/runtime/fragment.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"fragment.js","sourceRoot":"","sources":["../../src/runtime/fragment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAwB,CAAC,CAAC,EAAE,QAAa,EAAE,EAAE,CAAC,QAAQ,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/hmr-component.d.ts b/build/runtime/hmr-component.d.ts
deleted file mode 100644
index 8957fe7ced2..00000000000
--- a/build/runtime/hmr-component.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import type * as d from '../declarations';
-/**
- * Kick off hot-module-replacement for a component. In order to replace the
- * component in-place we:
- *
- * 1. get a reference to the {@link d.HostRef} for the element
- * 2. reset the element's runtime flags
- * 3. re-run the initialization logic for the element (via
- *    {@link initializeComponent})
- *
- * @param hostElement the host element for the component which we want to start
- * doing HMR
- * @param cmpMeta runtime metadata for the component
- * @param hmrVersionId the current HMR version ID
- */
-export declare const hmrStart: (hostElement: d.HostElement, cmpMeta: d.ComponentRuntimeMeta, hmrVersionId: string) => void;
diff --git a/build/runtime/hmr-component.js b/build/runtime/hmr-component.js
deleted file mode 100644
index 02c6c62b145..00000000000
--- a/build/runtime/hmr-component.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import { getHostRef } from '@platform';
-import { initializeComponent } from './initialize-component';
-/**
- * Kick off hot-module-replacement for a component. In order to replace the
- * component in-place we:
- *
- * 1. get a reference to the {@link d.HostRef} for the element
- * 2. reset the element's runtime flags
- * 3. re-run the initialization logic for the element (via
- *    {@link initializeComponent})
- *
- * @param hostElement the host element for the component which we want to start
- * doing HMR
- * @param cmpMeta runtime metadata for the component
- * @param hmrVersionId the current HMR version ID
- */
-export const hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
-    // ¯\_(ツ)_/¯
-    const hostRef = getHostRef(hostElement);
-    // reset state flags to only have been connected
-    hostRef.$flags$ = 1 /* HOST_FLAGS.hasConnected */;
-    // TODO
-    // detach any event listeners that may have been added
-    // because we're not passing an exact event name it'll
-    // remove all of this element's event, which is good
-    // re-initialize the component
-    initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);
-};
-//# sourceMappingURL=hmr-component.js.map
\ No newline at end of file
diff --git a/build/runtime/hmr-component.js.map b/build/runtime/hmr-component.js.map
deleted file mode 100644
index 54a9f982125..00000000000
--- a/build/runtime/hmr-component.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"hmr-component.js","sourceRoot":"","sources":["../../src/runtime/hmr-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,WAA0B,EAAE,OAA+B,EAAE,YAAoB,EAAE,EAAE;IAC5G,YAAY;IACZ,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IAExC,gDAAgD;IAChD,OAAO,CAAC,OAAO,kCAA0B,CAAC;IAE1C,OAAO;IACP,sDAAsD;IACtD,sDAAsD;IACtD,oDAAoD;IAEpD,8BAA8B;IAC9B,mBAAmB,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;AACnE,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/host-listener.d.ts b/build/runtime/host-listener.d.ts
deleted file mode 100644
index c5e968af71e..00000000000
--- a/build/runtime/host-listener.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import type * as d from '../declarations';
-export declare const addHostEventListeners: (elm: d.HostElement, hostRef: d.HostRef, listeners: d.ComponentRuntimeHostListener[], attachParentListeners: boolean) => void;
diff --git a/build/runtime/host-listener.js b/build/runtime/host-listener.js
deleted file mode 100644
index 6d561e05286..00000000000
--- a/build/runtime/host-listener.js
+++ /dev/null
@@ -1,70 +0,0 @@
-import { BUILD } from '@app-data';
-import { consoleError, doc, plt, supportsListenerOptions, win } from '@platform';
-export const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
-    if (BUILD.hostListener && listeners) {
-        // this is called immediately within the element's constructor
-        // initialize our event listeners on the host element
-        // we do this now so that we can listen to events that may
-        // have fired even before the instance is ready
-        if (BUILD.hostListenerTargetParent) {
-            // this component may have event listeners that should be attached to the parent
-            if (attachParentListeners) {
-                // this is being ran from within the connectedCallback
-                // which is important so that we know the host element actually has a parent element
-                // filter out the listeners to only have the ones that ARE being attached to the parent
-                listeners = listeners.filter(([flags]) => flags & 32 /* LISTENER_FLAGS.TargetParent */);
-            }
-            else {
-                // this is being ran from within the component constructor
-                // everything BUT the parent element listeners should be attached at this time
-                // filter out the listeners that are NOT being attached to the parent
-                listeners = listeners.filter(([flags]) => !(flags & 32 /* LISTENER_FLAGS.TargetParent */));
-            }
-        }
-        listeners.map(([flags, name, method]) => {
-            const target = BUILD.hostListenerTarget ? getHostListenerTarget(elm, flags) : elm;
-            const handler = hostListenerProxy(hostRef, method);
-            const opts = hostListenerOpts(flags);
-            plt.ael(target, name, handler, opts);
-            (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
-        });
-    }
-};
-const hostListenerProxy = (hostRef, methodName) => (ev) => {
-    try {
-        if (BUILD.lazyLoad) {
-            if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
-                // instance is ready, let's call it's member method for this event
-                hostRef.$lazyInstance$[methodName](ev);
-            }
-            else {
-                (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
-            }
-        }
-        else {
-            hostRef.$hostElement$[methodName](ev);
-        }
-    }
-    catch (e) {
-        consoleError(e);
-    }
-};
-const getHostListenerTarget = (elm, flags) => {
-    if (BUILD.hostListenerTargetDocument && flags & 4 /* LISTENER_FLAGS.TargetDocument */)
-        return doc;
-    if (BUILD.hostListenerTargetWindow && flags & 8 /* LISTENER_FLAGS.TargetWindow */)
-        return win;
-    if (BUILD.hostListenerTargetBody && flags & 16 /* LISTENER_FLAGS.TargetBody */)
-        return doc.body;
-    if (BUILD.hostListenerTargetParent && flags & 32 /* LISTENER_FLAGS.TargetParent */)
-        return elm.parentElement;
-    return elm;
-};
-// prettier-ignore
-const hostListenerOpts = (flags) => supportsListenerOptions
-    ? ({
-        passive: (flags & 1 /* LISTENER_FLAGS.Passive */) !== 0,
-        capture: (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0,
-    })
-    : (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
-//# sourceMappingURL=host-listener.js.map
\ No newline at end of file
diff --git a/build/runtime/host-listener.js.map b/build/runtime/host-listener.js.map
deleted file mode 100644
index 25341d026d4..00000000000
--- a/build/runtime/host-listener.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"host-listener.js","sourceRoot":"","sources":["../../src/runtime/host-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAKjF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,GAAkB,EAClB,OAAkB,EAClB,SAA2C,EAC3C,qBAA8B,EAC9B,EAAE;IACF,IAAI,KAAK,CAAC,YAAY,IAAI,SAAS,EAAE;QACnC,8DAA8D;QAC9D,qDAAqD;QACrD,0DAA0D;QAC1D,+CAA+C;QAE/C,IAAI,KAAK,CAAC,wBAAwB,EAAE;YAClC,gFAAgF;YAChF,IAAI,qBAAqB,EAAE;gBACzB,sDAAsD;g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AAC,cAAc,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC;aACxC;iBAAM;gBACL,CAAC,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC;aACtF;SACF;aAAM;YACJ,OAAO,CAAC,aAAqB,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC;SAChD;KACF;IAAC,OAAO,CAAC,EAAE;QACV,YAAY,CAAC,CAAC,CAAC,CAAC;KACjB;AACH,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,GAAY,EAAE,KAAa,EAAe,EAAE;IACzE,IAAI,KAAK,CAAC,0BAA0B,IAAI,KAAK,wCAAgC;QAAE,OAAO,GAAG,CAAC;IAC1F,IAAI,KAAK,CAAC,wBAAwB,IAAI,KAAK,sCAA8B;QAAE,OAAO,GAAG,CAAC;IACtF,IAAI,KAAK,CAAC,sBAAsB,IAAI,KAAK,qCAA4B;QAAE,OAAO,GAAG,CAAC,IAAI,CAAC;IACvF,IAAI,KAAK,CAAC,wBAAwB,IAAI,KAAK,uCAA8B;QAAE,OAAO,GAAG,CAAC,aAAa,CAAC;IACpG,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,kBAAkB;AAClB,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,EAAE,CACzC,uBAAuB;IACrB,CAAC,CAAC,CAAC;QACC,OAAO,EAAE,CAAC,KAAK,iCAAyB,CAAC,KAAK,CAAC;QAC/C,OAAO,EAAE,CAAC,KAAK,iCAAyB,CAAC,KAAK,CAAC;KAChD,CAAC;IACJ,CAAC,CAAC,CAAC,KAAK,iCAAyB,CAAC,KAAK,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/index.d.ts b/build/runtime/index.d.ts
deleted file mode 100644
index 1f7a7d604b5..00000000000
--- a/build/runtime/index.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-export { getAssetPath, setAssetPath } from './asset-path';
-export { defineCustomElement, forceModeUpdate, proxyCustomElement } from './bootstrap-custom-element';
-export { bootstrapLazy } from './bootstrap-lazy';
-export { connectedCallback } from './connected-callback';
-export { disconnectedCallback } from './disconnected-callback';
-export { getElement } from './element';
-export { createEvent } from './event-emitter';
-export { Fragment } from './fragment';
-export { addHostEventListeners } from './host-listener';
-export { getMode, setMode } from './mode';
-export { setNonce } from './nonce';
-export { parsePropertyValue } from './parse-property-value';
-export { setPlatformOptions } from './platform-options';
-export { proxyComponent } from './proxy-component';
-export { getValue, setValue } from './set-value';
-export { forceUpdate, getRenderingRef, postUpdateComponent } from './update-component';
-export { h, Host } from './vdom/h';
-export { insertVdomAnnotations } from './vdom/vdom-annotations';
-export { renderVdom } from './vdom/vdom-render';
diff --git a/build/runtime/index.js b/build/runtime/index.js
deleted file mode 100644
index c97782bc6d5..00000000000
--- a/build/runtime/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-export { getAssetPath, setAssetPath } from './asset-path';
-export { defineCustomElement, forceModeUpdate, proxyCustomElement } from './bootstrap-custom-element';
-export { bootstrapLazy } from './bootstrap-lazy';
-export { connectedCallback } from './connected-callback';
-export { disconnectedCallback } from './disconnected-callback';
-export { getElement } from './element';
-export { createEvent } from './event-emitter';
-export { Fragment } from './fragment';
-export { addHostEventListeners } from './host-listener';
-export { getMode, setMode } from './mode';
-export { setNonce } from './nonce';
-export { parsePropertyValue } from './parse-property-value';
-export { setPlatformOptions } from './platform-options';
-export { proxyComponent } from './proxy-component';
-export { getValue, setValue } from './set-value';
-export { forceUpdate, getRenderingRef, postUpdateComponent } from './update-component';
-export { h, Host } from './vdom/h';
-export { insertVdomAnnotations } from './vdom/vdom-annotations';
-export { renderVdom } from './vdom/vdom-render';
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/build/runtime/index.js.map b/build/runtime/index.js.map
deleted file mode 100644
index 82fd06d3a60..00000000000
--- a/build/runtime/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/initialize-component.d.ts b/build/runtime/initialize-component.d.ts
deleted file mode 100644
index a28f7aeb26a..00000000000
--- a/build/runtime/initialize-component.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import type * as d from '../declarations';
-/**
- * Initialize a Stencil component given a reference to its host element, its
- * runtime bookkeeping data structure, runtime metadata about the component,
- * and (optionally) an HMR version ID.
- *
- * @param elm a host element
- * @param hostRef the element's runtime bookkeeping object
- * @param cmpMeta runtime metadata for the Stencil component
- * @param hmrVersionId an (optional) HMR version ID
- */
-export declare const initializeComponent: (elm: d.HostElement, hostRef: d.HostRef, cmpMeta: d.ComponentRuntimeMeta, hmrVersionId?: string) => Promise;
-export declare const fireConnectedCallback: (instance: any) => void;
diff --git a/build/runtime/initialize-component.js b/build/runtime/initialize-component.js
deleted file mode 100644
index 32617a60552..00000000000
--- a/build/runtime/initialize-component.js
+++ /dev/null
@@ -1,127 +0,0 @@
-import { BUILD } from '@app-data';
-import { consoleError, loadModule, styles } from '@platform';
-import { computeMode } from './mode';
-import { createTime, uniqueTime } from './profile';
-import { proxyComponent } from './proxy-component';
-import { getScopeId, registerStyle } from './styles';
-import { safeCall, scheduleUpdate } from './update-component';
-/**
- * Initialize a Stencil component given a reference to its host element, its
- * runtime bookkeeping data structure, runtime metadata about the component,
- * and (optionally) an HMR version ID.
- *
- * @param elm a host element
- * @param hostRef the element's runtime bookkeeping object
- * @param cmpMeta runtime metadata for the Stencil component
- * @param hmrVersionId an (optional) HMR version ID
- */
-export const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
-    let Cstr;
-    // initializeComponent
-    if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
-        // Let the runtime know that the component has been initialized
-        hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
-        if (BUILD.lazyLoad || BUILD.hydrateClientSide) {
-            // lazy loaded components
-            // request the component's implementation to be
-            // wired up with the host element
-            Cstr = loadModule(cmpMeta, hostRef, hmrVersionId);
-            if (Cstr.then) {
-                // Await creates a micro-task avoid if possible
-                const endLoad = uniqueTime(`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`, `[Stencil] Load module for <${cmpMeta.$tagName$}>`);
-                Cstr = await Cstr;
-                endLoad();
-            }
-            if ((BUILD.isDev || BUILD.isDebug) && !Cstr) {
-                throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
-            }
-            if (BUILD.member && !Cstr.isProxied) {
-                // we've never proxied this Constructor before
-                // let's add the getters/setters to its prototype before
-                // the first time we create an instance of the implementation
-                if (BUILD.watchCallback) {
-                    cmpMeta.$watchers$ = Cstr.watchers;
-                }
-                proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
-                Cstr.isProxied = true;
-            }
-            const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
-            // ok, time to construct the instance
-            // but let's keep track of when we start and stop
-            // so that the getters/setters don't incorrectly step on data
-            if (BUILD.member) {
-                hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
-            }
-            // construct the lazy-loaded component implementation
-            // passing the hostRef is very important during
-            // construction in order to directly wire together the
-            // host element and the lazy-loaded instance
-            try {
-                new Cstr(hostRef);
-            }
-            catch (e) {
-                consoleError(e);
-            }
-            if (BUILD.member) {
-                hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
-            }
-            if (BUILD.watchCallback) {
-                hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
-            }
-            endNewInstance();
-            fireConnectedCallback(hostRef.$lazyInstance$);
-        }
-        else {
-            // sync constructor component
-            Cstr = elm.constructor;
-            // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
-            // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
-            // Stencil has completed instantiating the component.
-            customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
-        }
-        if (BUILD.style && Cstr.style) {
-            // this component has styles but we haven't registered them yet
-            let style = Cstr.style;
-            if (BUILD.mode && typeof style !== 'string') {
-                style = style[(hostRef.$modeName$ = computeMode(elm))];
-                if (BUILD.hydrateServerSide && hostRef.$modeName$) {
-                    elm.setAttribute('s-mode', hostRef.$modeName$);
-                }
-            }
-            const scopeId = getScopeId(cmpMeta, hostRef.$modeName$);
-            if (!styles.has(scopeId)) {
-                const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
-                if (!BUILD.hydrateServerSide &&
-                    BUILD.shadowDom &&
-                    // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
-                    BUILD.shadowDomShim &&
-                    cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {
-                    style = await import('../utils/shadow-css').then((m) => m.scopeCss(style, scopeId, false));
-                }
-                registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
-                endRegisterStyles();
-            }
-        }
-    }
-    // we've successfully created a lazy instance
-    const ancestorComponent = hostRef.$ancestorComponent$;
-    const schedule = () => scheduleUpdate(hostRef, true);
-    if (BUILD.asyncLoading && ancestorComponent && ancestorComponent['s-rc']) {
-        // this is the initial load and this component it has an ancestor component
-        // but the ancestor component has NOT fired its will update lifecycle yet
-        // so let's just cool our jets and wait for the ancestor to continue first
-        // this will get fired off when the ancestor component
-        // finally gets around to rendering its lazy self
-        // fire off the initial update
-        ancestorComponent['s-rc'].push(schedule);
-    }
-    else {
-        schedule();
-    }
-};
-export const fireConnectedCallback = (instance) => {
-    if (BUILD.lazyLoad && BUILD.connectedCallback) {
-        safeCall(instance, 'connectedCallback');
-    }
-};
-//# sourceMappingURL=initialize-component.js.map
\ No newline at end of file
diff --git a/build/runtime/initialize-component.js.map b/build/runtime/initialize-component.js.map
deleted file mode 100644
index ad74f91c1d9..00000000000
--- a/build/runtime/initialize-component.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"initialize-component.js","sourceRoot":"","sources":["../../src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iB,EAAE,CAAC;aACrB;SACF;KACF;IAED,6CAA6C;IAC7C,MAAM,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IACtD,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAErD,IAAI,KAAK,CAAC,YAAY,IAAI,iBAAiB,IAAI,iBAAiB,CAAC,MAAM,CAAC,EAAE;QACxE,2EAA2E;QAC3E,yEAAyE;QACzE,0EAA0E;QAE1E,sDAAsD;QACtD,iDAAiD;QACjD,8BAA8B;QAC9B,iBAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAC1C;SAAM;QACL,QAAQ,EAAE,CAAC;KACZ;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,QAAa,EAAE,EAAE;IACrD,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,iBAAiB,EAAE;QAC7C,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;KACzC;AACH,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/mode.d.ts b/build/runtime/mode.d.ts
deleted file mode 100644
index e85c81d4821..00000000000
--- a/build/runtime/mode.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import type * as d from '../declarations';
-export declare const computeMode: (elm: d.HostElement) => string;
-export declare const setMode: (handler: d.ResolutionHandler) => number;
-export declare const getMode: (ref: d.RuntimeRef) => string;
diff --git a/build/runtime/mode.js b/build/runtime/mode.js
deleted file mode 100644
index dc1bacc40a7..00000000000
--- a/build/runtime/mode.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import { getHostRef, modeResolutionChain } from '@platform';
-// Private
-export const computeMode = (elm) => modeResolutionChain.map((h) => h(elm)).find((m) => !!m);
-// Public
-export const setMode = (handler) => modeResolutionChain.push(handler);
-export const getMode = (ref) => getHostRef(ref).$modeName$;
-//# sourceMappingURL=mode.js.map
\ No newline at end of file
diff --git a/build/runtime/mode.js.map b/build/runtime/mode.js.map
deleted file mode 100644
index 7fb7a7b2940..00000000000
--- a/build/runtime/mode.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"mode.js","sourceRoot":"","sources":["../../src/runtime/mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAI5D,UAAU;AACV,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAkB,EAAE,EAAE,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3G,SAAS;AACT,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,OAA4B,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC3F,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAiB,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/nonce.d.ts b/build/runtime/nonce.d.ts
deleted file mode 100644
index 29a24cd7e2c..00000000000
--- a/build/runtime/nonce.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Assigns the given value to the nonce property on the runtime platform object.
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
- * @param nonce The value to be assigned to the platform nonce property.
- * @returns void
- */
-export declare const setNonce: (nonce: string) => string;
diff --git a/build/runtime/nonce.js b/build/runtime/nonce.js
deleted file mode 100644
index 9c82602e2a7..00000000000
--- a/build/runtime/nonce.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import { plt } from '@platform';
-/**
- * Assigns the given value to the nonce property on the runtime platform object.
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
- * @param nonce The value to be assigned to the platform nonce property.
- * @returns void
- */
-export const setNonce = (nonce) => (plt.$nonce$ = nonce);
-//# sourceMappingURL=nonce.js.map
\ No newline at end of file
diff --git a/build/runtime/nonce.js.map b/build/runtime/nonce.js.map
deleted file mode 100644
index 02ea9c3d9b8..00000000000
--- a/build/runtime/nonce.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"nonce.js","sourceRoot":"","sources":["../../src/runtime/nonce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/parse-property-value.d.ts b/build/runtime/parse-property-value.d.ts
deleted file mode 100644
index 45f52ea95d0..00000000000
--- a/build/runtime/parse-property-value.d.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Parse a new property value for a given property type.
- *
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
- *   1. `any`, the type given to `propValue` in the function signature
- *   2. the type stored from `propType`.
- *
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
- *
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
- * ```tsx
- * 
- * ```
- *
- * HTML prop values on the other hand, will always a string
- *
- * @param propValue the new value to coerce to some type
- * @param propType the type of the prop, expressed as a binary number
- * @returns the parsed/coerced value
- */
-export declare const parsePropertyValue: (propValue: any, propType: number) => any;
diff --git a/build/runtime/parse-property-value.js b/build/runtime/parse-property-value.js
deleted file mode 100644
index b9402fd1f4d..00000000000
--- a/build/runtime/parse-property-value.js
+++ /dev/null
@@ -1,50 +0,0 @@
-import { BUILD } from '@app-data';
-import { isComplexType } from '@utils';
-/**
- * Parse a new property value for a given property type.
- *
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
- *   1. `any`, the type given to `propValue` in the function signature
- *   2. the type stored from `propType`.
- *
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
- *
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
- * ```tsx
- * 
- * ```
- *
- * HTML prop values on the other hand, will always a string
- *
- * @param propValue the new value to coerce to some type
- * @param propType the type of the prop, expressed as a binary number
- * @returns the parsed/coerced value
- */
-export const parsePropertyValue = (propValue, propType) => {
-    // ensure this value is of the correct prop type
-    if (propValue != null && !isComplexType(propValue)) {
-        if (BUILD.propBoolean && propType & 4 /* MEMBER_FLAGS.Boolean */) {
-            // per the HTML spec, any string value means it is a boolean true value
-            // but we'll cheat here and say that the string "false" is the boolean false
-            return propValue === 'false' ? false : propValue === '' || !!propValue;
-        }
-        if (BUILD.propNumber && propType & 2 /* MEMBER_FLAGS.Number */) {
-            // force it to be a number
-            return parseFloat(propValue);
-        }
-        if (BUILD.propString && propType & 1 /* MEMBER_FLAGS.String */) {
-            // could have been passed as a number or boolean
-            // but we still want it as a string
-            return String(propValue);
-        }
-        // redundant return here for better minification
-        return propValue;
-    }
-    // not sure exactly what type we want
-    // so no need to change to a different type
-    return propValue;
-};
-//# sourceMappingURL=parse-property-value.js.map
\ No newline at end of file
diff --git a/build/runtime/parse-property-value.js.map b/build/runtime/parse-property-value.js.map
deleted file mode 100644
index 0bee49846fe..00000000000
--- a/build/runtime/parse-property-value.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"parse-property-value.js","sourceRoot":"","sources":["../../src/runtime/parse-property-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAgB,MAAM,QAAQ,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,SAAc,EAAE,QAAgB,EAAO,EAAE;IAC1E,gDAAgD;IAEhD,IAAI,SAAS,IAAI,IAAI,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE;QAClD,IAAI,KAAK,CAAC,WAAW,IAAI,QAAQ,+BAAuB,EAAE;YACxD,uEAAuE;YACvE,4EAA4E;YAC5E,OAAO,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,KAAK,EAAE,IAAI,CAAC,CAAC,SAAS,CAAC;SACxE;QAED,IAAI,KAAK,CAAC,UAAU,IAAI,QAAQ,8BAAsB,EAAE;YACtD,0BAA0B;YAC1B,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;SAC9B;QAED,IAAI,KAAK,CAAC,UAAU,IAAI,QAAQ,8BAAsB,EAAE;YACtD,gDAAgD;YAChD,mCAAmC;YACnC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;SAC1B;QAED,gDAAgD;QAChD,OAAO,SAAS,CAAC;KAClB;IAED,qCAAqC;IACrC,2CAA2C;IAC3C,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/platform-options.d.ts b/build/runtime/platform-options.d.ts
deleted file mode 100644
index 376f623a6a8..00000000000
--- a/build/runtime/platform-options.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-interface SetPlatformOptions {
-    raf?: (c: FrameRequestCallback) => number;
-    ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
-    rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
-    ce?: (eventName: string, opts?: any) => CustomEvent;
-}
-export declare const setPlatformOptions: (opts: SetPlatformOptions) => import("../declarations").PlatformRuntime & SetPlatformOptions;
-export {};
diff --git a/build/runtime/platform-options.js b/build/runtime/platform-options.js
deleted file mode 100644
index f17463a0430..00000000000
--- a/build/runtime/platform-options.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import { plt } from '@platform';
-export const setPlatformOptions = (opts) => Object.assign(plt, opts);
-//# sourceMappingURL=platform-options.js.map
\ No newline at end of file
diff --git a/build/runtime/platform-options.js.map b/build/runtime/platform-options.js.map
deleted file mode 100644
index 450bb431a18..00000000000
--- a/build/runtime/platform-options.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"platform-options.js","sourceRoot":"","sources":["../../src/runtime/platform-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAmBhC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAwB,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/profile.d.ts b/build/runtime/profile.d.ts
deleted file mode 100644
index 28b969435c2..00000000000
--- a/build/runtime/profile.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export declare const createTime: (fnName: string, tagName?: string) => () => void;
-export declare const uniqueTime: (key: string, measureText: string) => () => void;
-export declare const installDevTools: () => void;
diff --git a/build/runtime/profile.js b/build/runtime/profile.js
deleted file mode 100644
index 26635e7bf1d..00000000000
--- a/build/runtime/profile.js
+++ /dev/null
@@ -1,90 +0,0 @@
-import { BUILD } from '@app-data';
-import { getHostRef, win } from '@platform';
-let i = 0;
-export const createTime = (fnName, tagName = '') => {
-    if (BUILD.profile && performance.mark) {
-        const key = `st:${fnName}:${tagName}:${i++}`;
-        // Start
-        performance.mark(key);
-        // End
-        return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);
-    }
-    else {
-        return () => {
-            return;
-        };
-    }
-};
-export const uniqueTime = (key, measureText) => {
-    if (BUILD.profile && performance.mark) {
-        if (performance.getEntriesByName(key, 'mark').length === 0) {
-            performance.mark(key);
-        }
-        return () => {
-            if (performance.getEntriesByName(measureText, 'measure').length === 0) {
-                performance.measure(measureText, key);
-            }
-        };
-    }
-    else {
-        return () => {
-            return;
-        };
-    }
-};
-const inspect = (ref) => {
-    const hostRef = getHostRef(ref);
-    if (!hostRef) {
-        return undefined;
-    }
-    const flags = hostRef.$flags$;
-    const hostElement = hostRef.$hostElement$;
-    return {
-        renderCount: hostRef.$renderCount$,
-        flags: {
-            hasRendered: !!(flags & 2 /* HOST_FLAGS.hasRendered */),
-            hasConnected: !!(flags & 1 /* HOST_FLAGS.hasConnected */),
-            isWaitingForChildren: !!(flags & 4 /* HOST_FLAGS.isWaitingForChildren */),
-            isConstructingInstance: !!(flags & 8 /* HOST_FLAGS.isConstructingInstance */),
-            isQueuedForUpdate: !!(flags & 16 /* HOST_FLAGS.isQueuedForUpdate */),
-            hasInitializedComponent: !!(flags & 32 /* HOST_FLAGS.hasInitializedComponent */),
-            hasLoadedComponent: !!(flags & 64 /* HOST_FLAGS.hasLoadedComponent */),
-            isWatchReady: !!(flags & 128 /* HOST_FLAGS.isWatchReady */),
-            isListenReady: !!(flags & 256 /* HOST_FLAGS.isListenReady */),
-            needsRerender: !!(flags & 512 /* HOST_FLAGS.needsRerender */),
-        },
-        instanceValues: hostRef.$instanceValues$,
-        ancestorComponent: hostRef.$ancestorComponent$,
-        hostElement,
-        lazyInstance: hostRef.$lazyInstance$,
-        vnode: hostRef.$vnode$,
-        modeName: hostRef.$modeName$,
-        onReadyPromise: hostRef.$onReadyPromise$,
-        onReadyResolve: hostRef.$onReadyResolve$,
-        onInstancePromise: hostRef.$onInstancePromise$,
-        onInstanceResolve: hostRef.$onInstanceResolve$,
-        onRenderResolve: hostRef.$onRenderResolve$,
-        queuedListeners: hostRef.$queuedListeners$,
-        rmListeners: hostRef.$rmListeners$,
-        ['s-id']: hostElement['s-id'],
-        ['s-cr']: hostElement['s-cr'],
-        ['s-lr']: hostElement['s-lr'],
-        ['s-p']: hostElement['s-p'],
-        ['s-rc']: hostElement['s-rc'],
-        ['s-sc']: hostElement['s-sc'],
-    };
-};
-export const installDevTools = () => {
-    if (BUILD.devTools) {
-        const stencil = (win.stencil = win.stencil || {});
-        const originalInspect = stencil.inspect;
-        stencil.inspect = (ref) => {
-            let result = inspect(ref);
-            if (!result && typeof originalInspect === 'function') {
-                result = originalInspect(ref);
-            }
-            return result;
-        };
-    }
-};
-//# sourceMappingURL=profile.js.map
\ No newline at end of file
diff --git a/build/runtime/profile.js.map b/build/runtime/profile.js.map
deleted file mode 100644
index 25a424e4658..00000000000
--- a/build/runtime/profile.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/runtime/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAG5C,IAAI,CAAC,GAAG,CAAC,CAAC;AAEV,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE;IACzD,IAAI,KAAK,CAAC,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE;QACrC,MAAM,GAAG,GAAG,MAAM,MAAM,IAAI,OAAO,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7C,QAAQ;QACR,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEtB,MAAM;QACN,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,aAAa,MAAM,OAAO,OAAO,GAAG,EAAE,GAAG,CAAC,CAAC;KAC7E;SAAM;QACL,OAAO,GAAG,EAAE;YACV,OAAO;QACT,CAAC,CAAC;KACH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AAO,GAAI,GAAW,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QACpE,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;QAExC,OAAO,CAAC,OAAO,GAAG,CAAC,GAAQ,EAAE,EAAE;YAC7B,IAAI,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;YAC1B,IAAI,CAAC,MAAM,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE;gBACpD,MAAM,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;aAC/B;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;KACH;AACH,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/proxy-component.d.ts b/build/runtime/proxy-component.d.ts
deleted file mode 100644
index 0f5055c5fa5..00000000000
--- a/build/runtime/proxy-component.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import type * as d from '../declarations';
-/**
- * Attach a series of runtime constructs to a compiled Stencil component
- * constructor, including getters and setters for the `@Prop` and `@State`
- * decorators, callbacks for when attributes change, and so on.
- *
- * @param Cstr the constructor for a component that we need to process
- * @param cmpMeta metadata collected previously about the component
- * @param flags a number used to store a series of bit flags
- * @returns a reference to the same constructor passed in (but now mutated)
- */
-export declare const proxyComponent: (Cstr: d.ComponentConstructor, cmpMeta: d.ComponentRuntimeMeta, flags: number) => d.ComponentConstructor;
diff --git a/build/runtime/proxy-component.js b/build/runtime/proxy-component.js
deleted file mode 100644
index 252388f4b08..00000000000
--- a/build/runtime/proxy-component.js
+++ /dev/null
@@ -1,195 +0,0 @@
-import { BUILD } from '@app-data';
-import { consoleDevWarn, getHostRef, plt } from '@platform';
-import { FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS } from './runtime-constants';
-import { getValue, setValue } from './set-value';
-/**
- * Attach a series of runtime constructs to a compiled Stencil component
- * constructor, including getters and setters for the `@Prop` and `@State`
- * decorators, callbacks for when attributes change, and so on.
- *
- * @param Cstr the constructor for a component that we need to process
- * @param cmpMeta metadata collected previously about the component
- * @param flags a number used to store a series of bit flags
- * @returns a reference to the same constructor passed in (but now mutated)
- */
-export const proxyComponent = (Cstr, cmpMeta, flags) => {
-    var _a;
-    const prototype = Cstr.prototype;
-    /**
-     * proxy form associated custom element lifecycle callbacks
-     * @ref https://web.dev/articles/more-capable-form-controls#lifecycle_callbacks
-     */
-    if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* CMP_FLAGS.formAssociated */ && flags & 1 /* PROXY_FLAGS.isElementConstructor */) {
-        FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => Object.defineProperty(prototype, cbName, {
-            value(...args) {
-                const hostRef = getHostRef(this);
-                const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
-                const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
-                if (!instance) {
-                    hostRef.$onReadyPromise$.then((instance) => {
-                        const cb = instance[cbName];
-                        typeof cb === 'function' && cb.call(instance, ...args);
-                    });
-                }
-                else {
-                    const cb = instance[cbName];
-                    typeof cb === 'function' && cb.call(instance, ...args);
-                }
-            },
-        }));
-    }
-    if (BUILD.member && cmpMeta.$members$) {
-        if (BUILD.watchCallback && Cstr.watchers) {
-            cmpMeta.$watchers$ = Cstr.watchers;
-        }
-        // It's better to have a const than two Object.entries()
-        const members = Object.entries(cmpMeta.$members$);
-        members.map(([memberName, [memberFlags]]) => {
-            if ((BUILD.prop || BUILD.state) &&
-                (memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
-                    ((!BUILD.lazyLoad || flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
-                // proxyComponent - prop
-                Object.defineProperty(prototype, memberName, {
-                    get() {
-                        // proxyComponent, get value
-                        return getValue(this, memberName);
-                    },
-                    set(newValue) {
-                        // only during dev time
-                        if (BUILD.isDev) {
-                            const ref = getHostRef(this);
-                            if (
-                            // we are proxying the instance (not element)
-                            (flags & 1 /* PROXY_FLAGS.isElementConstructor */) === 0 &&
-                                // the element is not constructing
-                                (ref && ref.$flags$ & 8 /* HOST_FLAGS.isConstructingInstance */) === 0 &&
-                                // the member is a prop
-                                (memberFlags & 31 /* MEMBER_FLAGS.Prop */) !== 0 &&
-                                // the member is not mutable
-                                (memberFlags & 1024 /* MEMBER_FLAGS.Mutable */) === 0) {
-                                consoleDevWarn(`@Prop() "${memberName}" on <${cmpMeta.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`);
-                            }
-                        }
-                        // proxyComponent, set value
-                        setValue(this, memberName, newValue, cmpMeta);
-                    },
-                    configurable: true,
-                    enumerable: true,
-                });
-            }
-            else if (BUILD.lazyLoad &&
-                BUILD.method &&
-                flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
-                memberFlags & 64 /* MEMBER_FLAGS.Method */) {
-                // proxyComponent - method
-                Object.defineProperty(prototype, memberName, {
-                    value(...args) {
-                        var _a;
-                        const ref = getHostRef(this);
-                        return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
-                    },
-                });
-            }
-        });
-        if (BUILD.observeAttribute && (!BUILD.lazyLoad || flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
-            const attrNameToPropName = new Map();
-            prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
-                plt.jmp(() => {
-                    var _a;
-                    const propName = attrNameToPropName.get(attrName);
-                    //  In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
-                    //  in the case where an attribute was set inline.
-                    //  ```html
-                    //    
-                    //  ```
-                    //
-                    //  There is an edge case where a developer sets the attribute inline on a custom element and then
-                    //  programmatically changes it before it has been upgraded as shown below:
-                    //
-                    //  ```html
-                    //    
-                    //    
-                    //    
-                    //  ```
-                    //  In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
-                    //  will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
-                    //  to the value that was set inline i.e. "some-value" from above example. When
-                    //  the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
-                    //
-                    //  The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
-                    //  by connectedCallback as this attributeChangedCallback will not fire.
-                    //
-                    //  https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
-                    //
-                    //  TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
-                    //  properties here given that this goes against best practices outlined here
-                    //  https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
-                    if (this.hasOwnProperty(propName)) {
-                        newValue = this[propName];
-                        delete this[propName];
-                    }
-                    else if (prototype.hasOwnProperty(propName) &&
-                        typeof this[propName] === 'number' &&
-                        this[propName] == newValue) {
-                        // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
-                        // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
-                        // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
-                        return;
-                    }
-                    else if (propName == null) {
-                        // At this point we should know this is not a "member", so we can treat it like watching an attribute
-                        // on a vanilla web component
-                        const hostRef = getHostRef(this);
-                        const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
-                        // We only want to trigger the callback(s) if:
-                        // 1. The instance is ready
-                        // 2. The watchers are ready
-                        // 3. The value has changed
-                        if (flags &&
-                            !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
-                            flags & 128 /* HOST_FLAGS.isWatchReady */ &&
-                            newValue !== oldValue) {
-                            const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
-                            const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
-                            const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
-                            entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
-                                if (instance[callbackName] != null) {
-                                    instance[callbackName].call(instance, newValue, oldValue, attrName);
-                                }
-                            });
-                        }
-                        return;
-                    }
-                    this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
-                });
-            };
-            // Create an array of attributes to observe
-            // This list in comprised of all strings used within a `@Watch()` decorator
-            // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
-            // As such, there is no way to guarantee type-safety here that a user hasn't entered
-            // an invalid attribute.
-            Cstr.observedAttributes = Array.from(new Set([
-                ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
-                ...members
-                    .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
-                    .map(([propName, m]) => {
-                    var _a;
-                    const attrName = m[1] || propName;
-                    attrNameToPropName.set(attrName, propName);
-                    if (BUILD.reflect && m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
-                        (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
-                    }
-                    return attrName;
-                }),
-            ]));
-        }
-    }
-    return Cstr;
-};
-//# sourceMappingURL=proxy-component.js.map
\ No newline at end of file
diff --git a/build/runtime/proxy-component.js.map b/build/runtime/proxy-component.js.map
deleted file mode 100644
index 1bac3800f7e..00000000000
--- a/build/runtime/proxy-component.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"proxy-component.js","sourceRoot":"","sources":["../../src/runtime/proxy-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAK5D,OAAO,EAAE,wCAAwC,EAAe,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,IAA4B,EAC5B,OAA+B,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,EAAE,QAAQ,CAAC,CAAC,CAAC;qBACtD;oBAED,OAAO,QAAQ,CAAC;gBAClB,CAAC,CAAC;aACL,CAAC,CACH,CAAC;SACH;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/runtime-constants.d.ts b/build/runtime/runtime-constants.d.ts
deleted file mode 100644
index 5642b727cbf..00000000000
--- a/build/runtime/runtime-constants.d.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Bit flags for recording various properties of VDom nodes
- */
-export declare const enum VNODE_FLAGS {
-    /**
-     * Whether or not a vdom node is a slot reference
-     */
-    isSlotReference = 1,
-    /**
-     * Whether or not a slot element has fallback content
-     */
-    isSlotFallback = 2,
-    /**
-     * Whether or not an element is a host element
-     */
-    isHost = 4
-}
-export declare const enum PROXY_FLAGS {
-    isElementConstructor = 1,
-    proxyState = 2
-}
-export declare const enum PLATFORM_FLAGS {
-    /**
-     * designates a node in the DOM as being actively moved by the runtime
-     */
-    isTmpDisconnected = 1,
-    appLoaded = 2,
-    queueSync = 4,
-    queueMask = 6
-}
-/**
- * A (subset) of node types which are relevant for the Stencil runtime. These
- * values are based on the values which can possibly be returned by the
- * `.nodeType` property of a DOM node. See here for details:
- *
- * {@link https://dom.spec.whatwg.org/#ref-for-dom-node-nodetype%E2%91%A0}
- */
-export declare const enum NODE_TYPE {
-    ElementNode = 1,
-    TextNode = 3,
-    CommentNode = 8,
-    DocumentNode = 9,
-    DocumentTypeNode = 10,
-    DocumentFragment = 11
-}
-export declare const CONTENT_REF_ID = "r";
-export declare const ORG_LOCATION_ID = "o";
-export declare const SLOT_NODE_ID = "s";
-export declare const TEXT_NODE_ID = "t";
-export declare const HYDRATE_ID = "s-id";
-export declare const HYDRATED_STYLE_ID = "sty-id";
-export declare const HYDRATE_CHILD_ID = "c-id";
-export declare const HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
-/**
- * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
- *
- * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
- * support as of Stencil v4.
- */
-export declare const SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
-export declare const XLINK_NS = "http://www.w3.org/1999/xlink";
-export declare const FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS: readonly ["formAssociatedCallback", "formResetCallback", "formDisabledCallback", "formStateRestoreCallback"];
diff --git a/build/runtime/runtime-constants.js b/build/runtime/runtime-constants.js
deleted file mode 100644
index a6fec4f95f2..00000000000
--- a/build/runtime/runtime-constants.js
+++ /dev/null
@@ -1,23 +0,0 @@
-export const CONTENT_REF_ID = 'r';
-export const ORG_LOCATION_ID = 'o';
-export const SLOT_NODE_ID = 's';
-export const TEXT_NODE_ID = 't';
-export const HYDRATE_ID = 's-id';
-export const HYDRATED_STYLE_ID = 'sty-id';
-export const HYDRATE_CHILD_ID = 'c-id';
-export const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
-/**
- * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
- *
- * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
- * support as of Stencil v4.
- */
-export const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
-export const XLINK_NS = 'http://www.w3.org/1999/xlink';
-export const FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
-    'formAssociatedCallback',
-    'formResetCallback',
-    'formDisabledCallback',
-    'formStateRestoreCallback',
-];
-//# sourceMappingURL=runtime-constants.js.map
\ No newline at end of file
diff --git a/build/runtime/runtime-constants.js.map b/build/runtime/runtime-constants.js.map
deleted file mode 100644
index 56326a81735..00000000000
--- a/build/runtime/runtime-constants.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"runtime-constants.js","sourceRoot":"","sources":["../../src/runtime/runtime-constants.ts"],"names":[],"mappings":"AAoDA,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC;AAChC,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC;AAEhC,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC;AACjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAC1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC;AACvC,MAAM,CAAC,MAAM,YAAY,GAAG,kDAAkD,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,wDAAwD,CAAC;AAEpF,MAAM,CAAC,MAAM,QAAQ,GAAG,8BAA8B,CAAC;AAEvD,MAAM,CAAC,MAAM,wCAAwC,GAAG;IACtD,wBAAwB;IACxB,mBAAmB;IACnB,sBAAsB;IACtB,0BAA0B;CAClB,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/set-value.d.ts b/build/runtime/set-value.d.ts
deleted file mode 100644
index ba1576c7071..00000000000
--- a/build/runtime/set-value.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type * as d from '../declarations';
-export declare const getValue: (ref: d.RuntimeRef, propName: string) => any;
-export declare const setValue: (ref: d.RuntimeRef, propName: string, newVal: any, cmpMeta: d.ComponentRuntimeMeta) => void;
diff --git a/build/runtime/set-value.js b/build/runtime/set-value.js
deleted file mode 100644
index 4573e810e23..00000000000
--- a/build/runtime/set-value.js
+++ /dev/null
@@ -1,62 +0,0 @@
-import { BUILD } from '@app-data';
-import { consoleDevWarn, consoleError, getHostRef } from '@platform';
-import { parsePropertyValue } from './parse-property-value';
-import { scheduleUpdate } from './update-component';
-export const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
-export const setValue = (ref, propName, newVal, cmpMeta) => {
-    // check our new property value against our internal value
-    const hostRef = getHostRef(ref);
-    const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
-    const oldVal = hostRef.$instanceValues$.get(propName);
-    const flags = hostRef.$flags$;
-    const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
-    newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
-    // explicitly check for NaN on both sides, as `NaN === NaN` is always false
-    const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
-    const didValueChange = newVal !== oldVal && !areBothNaN;
-    if ((!BUILD.lazyLoad || !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
-        // gadzooks! the property's value has changed!!
-        // set our new value!
-        hostRef.$instanceValues$.set(propName, newVal);
-        if (BUILD.isDev) {
-            if (hostRef.$flags$ & 1024 /* HOST_FLAGS.devOnRender */) {
-                consoleDevWarn(`The state/prop "${propName}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`, '\nElement', elm, '\nNew value', newVal, '\nOld value', oldVal);
-            }
-            else if (hostRef.$flags$ & 2048 /* HOST_FLAGS.devOnDidLoad */) {
-                consoleDevWarn(`The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`, '\nElement', elm, '\nNew value', newVal, '\nOld value', oldVal);
-            }
-        }
-        if (!BUILD.lazyLoad || instance) {
-            // get an array of method names of watch functions to call
-            if (BUILD.watchCallback && cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
-                const watchMethods = cmpMeta.$watchers$[propName];
-                if (watchMethods) {
-                    // this instance is watching for when this property changed
-                    watchMethods.map((watchMethodName) => {
-                        try {
-                            // fire off each of the watch methods that are watching this property
-                            instance[watchMethodName](newVal, oldVal, propName);
-                        }
-                        catch (e) {
-                            consoleError(e, elm);
-                        }
-                    });
-                }
-            }
-            if (BUILD.updatable &&
-                (flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
-                if (BUILD.cmpShouldUpdate && instance.componentShouldUpdate) {
-                    if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
-                        return;
-                    }
-                }
-                // looks like this value actually changed, so we've got work to do!
-                // but only if we've already rendered, otherwise just chill out
-                // queue that we need to do an update, but don't worry about queuing
-                // up millions cuz this function ensures it only runs once
-                scheduleUpdate(hostRef, false);
-            }
-        }
-    }
-};
-//# sourceMappingURL=set-value.js.map
\ No newline at end of file
diff --git a/build/runtime/set-value.js.map b/build/runtime/set-value.js.map
deleted file mode 100644
index 5075531588a..00000000000
--- a/build/runtime/set-value.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"set-value.js","sourceRoot":"","sources":["../../src/runtime/set-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAiB,EAAE,QAAgB,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAEhH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAiB,EAAE,QAAgB,EAAE,MAAW,EAAE,OAA+B,EAAE,EAAE;IAC5G,0DAA0D;IAC1D,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;IAChC,MAAM,GAAG,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAE,GAAqB,CAAC;IAC5E,MAAM,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtD,MAAM,KAAK,GAAG,OAAO,CAAC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CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;gBAElD,IAAI,YAAY,EAAE;oBAChB,2DAA2D;oBAC3D,YAAY,CAAC,GAAG,CAAC,CAAC,eAAe,EAAE,EAAE;wBACnC,IAAI;4BACF,qEAAqE;4BACrE,QAAQ,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;yBACrD;wBAAC,OAAO,CAAC,EAAE;4BACV,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;yBACtB;oBACH,CAAC,CAAC,CAAC;iBACJ;aACF;YAED,IACE,KAAK,CAAC,SAAS;gBACf,CAAC,KAAK,GAAG,CAAC,sEAAqD,CAAC,CAAC,mCAA2B,EAC5F;gBACA,IAAI,KAAK,CAAC,eAAe,IAAI,QAAQ,CAAC,qBAAqB,EAAE;oBAC3D,IAAI,QAAQ,CAAC,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,KAAK,EAAE;wBACtE,OAAO;qBACR;iBACF;gBACD,mEAAmE;gBACnE,+DAA+D;gBAC/D,oEAAoE;gBACpE,0DAA0D;gBAC1D,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;aAChC;SACF;KACF;AACH,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/styles.d.ts b/build/runtime/styles.d.ts
deleted file mode 100644
index 47ad2102d66..00000000000
--- a/build/runtime/styles.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import type * as d from '../declarations';
-export declare const registerStyle: (scopeId: string, cssText: string, allowCS: boolean) => void;
-export declare const addStyle: (styleContainerNode: any, cmpMeta: d.ComponentRuntimeMeta, mode?: string) => string;
-export declare const attachStyles: (hostRef: d.HostRef) => void;
-export declare const getScopeId: (cmp: d.ComponentRuntimeMeta, mode?: string) => string;
-export declare const convertScopedToShadow: (css: string) => string;
-declare global {
-    export interface CSSStyleSheet {
-        replaceSync(cssText: string): void;
-        replace(cssText: string): Promise;
-    }
-}
diff --git a/build/runtime/styles.js b/build/runtime/styles.js
deleted file mode 100644
index 15a4e7b6e26..00000000000
--- a/build/runtime/styles.js
+++ /dev/null
@@ -1,100 +0,0 @@
-import { BUILD } from '@app-data';
-import { doc, plt, styles, supportsConstructableStylesheets, supportsShadow } from '@platform';
-import { queryNonceMetaTagContent } from '@utils';
-import { createTime } from './profile';
-import { HYDRATED_STYLE_ID, SLOT_FB_CSS } from './runtime-constants';
-const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
-export const registerStyle = (scopeId, cssText, allowCS) => {
-    let style = styles.get(scopeId);
-    if (supportsConstructableStylesheets && allowCS) {
-        style = (style || new CSSStyleSheet());
-        if (typeof style === 'string') {
-            style = cssText;
-        }
-        else {
-            style.replaceSync(cssText);
-        }
-    }
-    else {
-        style = cssText;
-    }
-    styles.set(scopeId, style);
-};
-export const addStyle = (styleContainerNode, cmpMeta, mode) => {
-    var _a;
-    const scopeId = getScopeId(cmpMeta, mode);
-    const style = styles.get(scopeId);
-    if (!BUILD.attachStyles) {
-        return scopeId;
-    }
-    // if an element is NOT connected then getRootNode() will return the wrong root node
-    // so the fallback is to always use the document for the root node in those cases
-    styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
-    if (style) {
-        if (typeof style === 'string') {
-            styleContainerNode = styleContainerNode.head || styleContainerNode;
-            let appliedStyles = rootAppliedStyles.get(styleContainerNode);
-            let styleElm;
-            if (!appliedStyles) {
-                rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
-            }
-            if (!appliedStyles.has(scopeId)) {
-                if (BUILD.hydrateClientSide &&
-                    styleContainerNode.host &&
-                    (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
-                    // This is only happening on native shadow-dom, do not needs CSS var shim
-                    styleElm.innerHTML = style;
-                }
-                else {
-                    styleElm = doc.createElement('style');
-                    styleElm.innerHTML = style;
-                    // Apply CSP nonce to the style tag if it exists
-                    const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
-                    if (nonce != null) {
-                        styleElm.setAttribute('nonce', nonce);
-                    }
-                    if (BUILD.hydrateServerSide || BUILD.hotModuleReplacement) {
-                        styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId);
-                    }
-                    styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
-                }
-                // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
-                if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
-                    styleElm.innerHTML += SLOT_FB_CSS;
-                }
-                if (appliedStyles) {
-                    appliedStyles.add(scopeId);
-                }
-            }
-        }
-        else if (BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
-            styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
-        }
-    }
-    return scopeId;
-};
-export const attachStyles = (hostRef) => {
-    const cmpMeta = hostRef.$cmpMeta$;
-    const elm = hostRef.$hostElement$;
-    const flags = cmpMeta.$flags$;
-    const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
-    const scopeId = addStyle(BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$);
-    if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
-        // only required when we're NOT using native shadow dom (slot)
-        // or this browser doesn't support native shadow dom
-        // and this host element was NOT created with SSR
-        // let's pick out the inner content for slot projection
-        // create a node to represent where the original
-        // content was first placed, which is useful later on
-        // DOM WRITE!!
-        elm['s-sc'] = scopeId;
-        elm.classList.add(scopeId + '-h');
-        if (BUILD.scoped && flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
-            elm.classList.add(scopeId + '-s');
-        }
-    }
-    endAttachStyles();
-};
-export const getScopeId = (cmp, mode) => 'sc-' + (BUILD.mode && mode && cmp.$flags$ & 32 /* CMP_FLAGS.hasMode */ ? cmp.$tagName$ + '-' + mode : cmp.$tagName$);
-export const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
-//# sourceMappingURL=styles.js.map
\ No newline at end of file
diff --git a/build/runtime/styles.js.map b/build/runtime/styles.js.map
deleted file mode 100644
index 8138320f975..00000000000
--- a/build/runtime/styles.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/runtime/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,gCAAgC,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC/F,OAAO,EAAa,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAG7D,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAa,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEhF,MAAM,iBAAiB,GAA0B,aAAa,CAAC,IAAI,OAAO,EAAE,CAAC;AAE7E,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAe,EAAE,OAAe,EAAE,OAAgB,EAAE,EAAE;IAClF,IAAI,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAChC,IAAI,gCAAgC,IAAI,OAAO,EAAE;QAC/C,KAAK,GAAG,CAAC,KAAK,IAAI,IAAI,aAAa,EAAE,CAAkB,CAAC;QACxD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,KAAK,GAAG,OAAO,CAAC;SACjB;aAAM;YACL,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;SAC5B;KACF;SAAM;QACL,KAAK,GAAG,OAAO,CAAC;KACjB;IACD,MAAM,CAAC,GAAG,CA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O,GAAG,QAAQ,CACtB,KAAK,CAAC,SAAS,IAAI,cAAc,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,EACxF,OAAO,EACP,OAAO,CAAC,UAAU,CACnB,CAAC;IAEF,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,cAAc,IAAI,KAAK,8CAAqC,EAAE;QAC3G,8DAA8D;QAC9D,oDAAoD;QACpD,iDAAiD;QACjD,uDAAuD;QACvD,gDAAgD;QAChD,qDAAqD;QACrD,cAAc;QACd,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;QACtB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;QAElC,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,2CAAmC,EAAE;YAC5D,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;SACnC;KACF;IACD,eAAe,EAAE,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAA2B,EAAE,IAAa,EAAE,EAAE,CACvE,KAAK,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,OAAO,6BAAoB,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAE/G,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/test/parse-property-value.spec.d.ts b/build/runtime/test/parse-property-value.spec.d.ts
deleted file mode 100644
index cb0ff5c3b54..00000000000
--- a/build/runtime/test/parse-property-value.spec.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/build/runtime/test/parse-property-value.spec.js b/build/runtime/test/parse-property-value.spec.js
deleted file mode 100644
index de7de001630..00000000000
--- a/build/runtime/test/parse-property-value.spec.js
+++ /dev/null
@@ -1,202 +0,0 @@
-import { parsePropertyValue } from '../parse-property-value';
-describe('parse-property-value', () => {
-    describe('parsePropertyValue', () => {
-        describe('boolean coercion', () => {
-            it('coerces the string "false" to boolean false', () => {
-                const result = parsePropertyValue('false', 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(false);
-            });
-            it('coerces the string "False" to boolean true', () => {
-                const result = parsePropertyValue('False', 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(true);
-            });
-            it('coerces an empty string to boolean true', () => {
-                const result = parsePropertyValue('', 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(true);
-            });
-            it('coerces the string "true" to boolean true', () => {
-                const result = parsePropertyValue('true', 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(true);
-            });
-            it('coerces the number 0 to boolean false', () => {
-                const result = parsePropertyValue(0, 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(false);
-            });
-            it('coerces the string "0" to boolean true', () => {
-                const result = parsePropertyValue('0', 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(true);
-            });
-            it('coerces the number 1 to boolean true', () => {
-                const result = parsePropertyValue(1, 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(true);
-            });
-            it('coerces the string "1" to boolean true', () => {
-                const result = parsePropertyValue('1', 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(true);
-            });
-            it('does not coerce null to boolean', () => {
-                const result = parsePropertyValue(null, 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(null);
-            });
-            it('coerces the string "null" to boolean true', () => {
-                const result = parsePropertyValue('null', 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(true);
-            });
-            it('does not coerce undefined to boolean', () => {
-                const result = parsePropertyValue(undefined, 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(undefined);
-            });
-            it('coerces the string "undefined" to boolean true', () => {
-                const result = parsePropertyValue('undefined', 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(true);
-            });
-            it('coerces NaN to boolean false', () => {
-                const result = parsePropertyValue(NaN, 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(false);
-            });
-            it('coerces the string "NaN" to boolean true', () => {
-                const result = parsePropertyValue('NaN', 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(true);
-            });
-            it('does not coerce a function to a boolean', () => {
-                const noOpFunction = () => false;
-                const result = parsePropertyValue(noOpFunction, 4 /* MEMBER_FLAGS.Boolean */);
-                expect(result).toBe(noOpFunction);
-            });
-        });
-        describe('number coercion', () => {
-            it('coerces a number value to a number', () => {
-                const result = parsePropertyValue(42, 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(42);
-            });
-            it('coerces a stringified value to a number', () => {
-                const result = parsePropertyValue('42', 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(42);
-            });
-            it('coerces a float value to a number', () => {
-                const result = parsePropertyValue('4.2', 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(4.2);
-            });
-            it('coerces a positive value to a number', () => {
-                const result = parsePropertyValue('+4.2', 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(4.2);
-            });
-            it('coerces a negative value to a number', () => {
-                const result = parsePropertyValue('-4.2', 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(-4.2);
-            });
-            it('coerces a stringified scientific value to a number', () => {
-                const result = parsePropertyValue('42e1', 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(420);
-            });
-            it('returns NaN when parsing a boolean', () => {
-                const result = parsePropertyValue(true, 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(NaN);
-            });
-            it('returns NaN when parsing a string', () => {
-                const result = parsePropertyValue('hello world', 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(NaN);
-            });
-            it('returns an object prop unchanged', () => {
-                const originalProp = { hello: 'world' };
-                const result = parsePropertyValue(originalProp, 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(originalProp);
-            });
-            it('returns an undefined prop unchanged', () => {
-                const result = parsePropertyValue(undefined, 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(undefined);
-            });
-            it('returns a null prop unchanged', () => {
-                const result = parsePropertyValue(null, 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(null);
-            });
-            it('returns NaN when NaN is received', () => {
-                const result = parsePropertyValue(NaN, 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(NaN);
-            });
-            it('does not coerce a function to a number', () => {
-                const noOpFunction = () => 23;
-                const result = parsePropertyValue(noOpFunction, 2 /* MEMBER_FLAGS.Number */);
-                expect(result).toBe(noOpFunction);
-            });
-        });
-        describe('string coercion', () => {
-            it('coerces a string to a string', () => {
-                const result = parsePropertyValue('hello world', 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('hello world');
-            });
-            it('coerces an empty string to a string', () => {
-                const result = parsePropertyValue('', 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('');
-            });
-            it('coerces the string "false" to string "false"', () => {
-                const result = parsePropertyValue('false', 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('false');
-            });
-            it('coerces the string "False" to string "False"', () => {
-                const result = parsePropertyValue('False', 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('False');
-            });
-            it('coerces the string "true" to string "true"', () => {
-                const result = parsePropertyValue('true', 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('true');
-            });
-            it('coerces the number 0 to string "0"', () => {
-                const result = parsePropertyValue(0, 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('0');
-            });
-            it('coerces the string "0" to string "0"', () => {
-                const result = parsePropertyValue('0', 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('0');
-            });
-            it('coerces the number 1 to string "1"', () => {
-                const result = parsePropertyValue(1, 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('1');
-            });
-            it('coerces the string "1" to string "1"', () => {
-                const result = parsePropertyValue('1', 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('1');
-            });
-            it('does not coerce null to string', () => {
-                const result = parsePropertyValue(null, 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe(null);
-            });
-            it('coerces the string "null" to string "null"', () => {
-                const result = parsePropertyValue('null', 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('null');
-            });
-            it('does not coerce undefined to string', () => {
-                const result = parsePropertyValue(undefined, 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe(undefined);
-            });
-            it('coerces the string "undefined" to string "undefined"', () => {
-                const result = parsePropertyValue('undefined', 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('undefined');
-            });
-            it('coerces NaN to string "NaN"', () => {
-                const result = parsePropertyValue(NaN, 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('NaN');
-            });
-            it('coerces the string "NaN" to string "NaN"', () => {
-                const result = parsePropertyValue('NaN', 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe('NaN');
-            });
-            it('does not coerce a function to a string', () => {
-                const noOpFunction = () => 'return a string';
-                const result = parsePropertyValue(noOpFunction, 1 /* MEMBER_FLAGS.String */);
-                expect(result).toBe(noOpFunction);
-            });
-        });
-        describe('non-primitive MEMBER_FLAGS', () => {
-            it('returns the prop value for MEMBER_FLAGS.Any', () => {
-                const result = parsePropertyValue(23, 8 /* MEMBER_FLAGS.Any */);
-                expect(result).toBe(23);
-            });
-            it('returns the prop value for MEMBER_FLAGS.Unknown', () => {
-                const result = parsePropertyValue(23, 16 /* MEMBER_FLAGS.Unknown */);
-                expect(result).toBe(23);
-            });
-        });
-    });
-});
-//# sourceMappingURL=parse-property-value.spec.js.map
\ No newline at end of file
diff --git a/build/runtime/test/parse-property-value.spec.js.map b/build/runtime/test/parse-property-value.spec.js.map
deleted file mode 100644
index 9d69620dc3d..00000000000
--- a/build/runtime/test/parse-property-value.spec.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"parse-property-value.spec.js","sourceRoot":"","sources":["../../../src/runtime/test/parse-property-value.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAClC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;YAChC,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;gBACrD,MAAM,MAAM,GAAG,kBAAkB,CAAC,OAAO,+BAAuB,CAAC;gBACjE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC7B,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;gBACpD,MAAM,MAAM,GAAG,kBAAkB,CAAC,OAAO,+BAAuB,CAAC;gBACjE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;gBACjD,MAAM,MAAM,GAAG,kBAAkB,CAAC,EAAE,+BAAuB,CAAC;gBAC5D,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;gBACnD,MAAM,MAAM,GAAG,kBAAkB,CAAC,MAAM,+BAAuB,CAAC;gBAChE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,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AM,GAAG,kBAAkB,CAAC,EAAE,gCAAuB,CAAC;gBAC5D,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC1B,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/update-component.d.ts b/build/runtime/update-component.d.ts
deleted file mode 100644
index 6b3f40b27e7..00000000000
--- a/build/runtime/update-component.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import type * as d from '../declarations';
-export declare const attachToAncestor: (hostRef: d.HostRef, ancestorComponent?: d.HostElement) => void;
-export declare const scheduleUpdate: (hostRef: d.HostRef, isInitialLoad: boolean) => void | Promise;
-export declare const getRenderingRef: () => any;
-export declare const postUpdateComponent: (hostRef: d.HostRef) => void;
-export declare const forceUpdate: (ref: any) => boolean;
-export declare const appDidLoad: (who: string) => void;
-/**
- * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
- * e.g. custom element node. If a build figures out that e.g. no component
- * has a `componentDidLoad` method, the instance method gets removed from the
- * output bundle and this function returns `undefined`.
- * @param instance any object that may or may not contain methods
- * @param method method name
- * @param arg single arbitrary argument
- * @returns result of method call if it exists, otherwise `undefined`
- */
-export declare const safeCall: (instance: any, method: string, arg?: any) => any;
diff --git a/build/runtime/update-component.js b/build/runtime/update-component.js
deleted file mode 100644
index a5709806511..00000000000
--- a/build/runtime/update-component.js
+++ /dev/null
@@ -1,417 +0,0 @@
-import { BUILD, NAMESPACE } from '@app-data';
-import { Build, consoleError, doc, getHostRef, nextTick, plt, win, writeTask } from '@platform';
-import { emitEvent } from './event-emitter';
-import { createTime } from './profile';
-import { attachStyles } from './styles';
-import { renderVdom } from './vdom/vdom-render';
-export const attachToAncestor = (hostRef, ancestorComponent) => {
-    if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
-        ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
-    }
-};
-export const scheduleUpdate = (hostRef, isInitialLoad) => {
-    if (BUILD.taskQueue && BUILD.updatable) {
-        hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
-    }
-    if (BUILD.asyncLoading && hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
-        hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
-        return;
-    }
-    attachToAncestor(hostRef, hostRef.$ancestorComponent$);
-    // there is no ancestor component or the ancestor component
-    // has already fired off its lifecycle update then
-    // fire off the initial update
-    const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
-    return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
-};
-/**
- * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
- * component lifecycle methods like `componentWillLoad` as well as
- * {@link updateComponent}, which will kick off the virtual DOM re-render.
- *
- * @param hostRef a reference to a host DOM node
- * @param isInitialLoad whether we're on the initial load or not
- * @returns an empty Promise which is used to enqueue a series of operations for
- * the component
- */
-const dispatchHooks = (hostRef, isInitialLoad) => {
-    const elm = hostRef.$hostElement$;
-    const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
-    const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
-    // We're going to use this variable together with `enqueue` to implement a
-    // little promise-based queue. We start out with it `undefined`. When we add
-    // the first function to the queue we'll set this variable to be that
-    // function's return value. When we attempt to add subsequent values to the
-    // queue we'll check that value and, if it was a `Promise`, we'll then chain
-    // the new function off of that `Promise` using `.then()`. This will give our
-    // queue two nice properties:
-    //
-    // 1. If all functions added to the queue are synchronous they'll be called
-    //    synchronously right away.
-    // 2. If all functions added to the queue are asynchronous they'll all be
-    //    called in order after `dispatchHooks` exits.
-    let maybePromise;
-    if (isInitialLoad) {
-        if (BUILD.lazyLoad && BUILD.hostListener) {
-            hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
-            if (hostRef.$queuedListeners$) {
-                hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
-                hostRef.$queuedListeners$ = undefined;
-            }
-        }
-        emitLifecycleEvent(elm, 'componentWillLoad');
-        if (BUILD.cmpWillLoad) {
-            // If `componentWillLoad` returns a `Promise` then we want to wait on
-            // whatever's going on in that `Promise` before we launch into
-            // rendering the component, doing other lifecycle stuff, etc. So
-            // in that case we assign the returned promise to the variable we
-            // declared above to hold a possible 'queueing' Promise
-            maybePromise = safeCall(instance, 'componentWillLoad');
-        }
-    }
-    else {
-        emitLifecycleEvent(elm, 'componentWillUpdate');
-        if (BUILD.cmpWillUpdate) {
-            // Like `componentWillLoad` above, we allow Stencil component
-            // authors to return a `Promise` from this lifecycle callback, and
-            // we specify that our runtime will wait for that `Promise` to
-            // resolve before the component re-renders. So if the method
-            // returns a `Promise` we need to keep it around!
-            maybePromise = safeCall(instance, 'componentWillUpdate');
-        }
-    }
-    emitLifecycleEvent(elm, 'componentWillRender');
-    if (BUILD.cmpWillRender) {
-        maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
-    }
-    endSchedule();
-    return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
-};
-/**
- * This function uses a Promise to implement a simple first-in, first-out queue
- * of functions to be called.
- *
- * The queue is ordered on the basis of the first argument. If it's
- * `undefined`, then nothing is on the queue yet, so the provided function can
- * be called synchronously (although note that this function may return a
- * `Promise`). The idea is that then the return value of that enqueueing
- * operation is kept around, so that if it was a `Promise` then subsequent
- * functions can be enqueued by calling this function again with that `Promise`
- * as the first argument.
- *
- * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
- * @param fn a function to enqueue
- * @returns either a `Promise` or the return value of the provided function
- */
-const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
-/**
- * Check that a value is a `Promise`. To check, we first see if the value is an
- * instance of the `Promise` global. In a few circumstances, in particular if
- * the global has been overwritten, this is could be misleading, so we also do
- * a little 'duck typing' check to see if the `.then` property of the value is
- * defined and a function.
- *
- * @param maybePromise it might be a promise!
- * @returns whether it is or not
- */
-const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
-    (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
-/**
- * Update a component given reference to its host elements and so on.
- *
- * @param hostRef an object containing references to the element's host node,
- * VDom nodes, and other metadata
- * @param instance a reference to the underlying host element where it will be
- * rendered
- * @param isInitialLoad whether or not this function is being called as part of
- * the first render cycle
- */
-const updateComponent = async (hostRef, instance, isInitialLoad) => {
-    var _a;
-    const elm = hostRef.$hostElement$;
-    const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
-    const rc = elm['s-rc'];
-    if (BUILD.style && isInitialLoad) {
-        // DOM WRITE!
-        attachStyles(hostRef);
-    }
-    const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
-    if (BUILD.isDev) {
-        hostRef.$flags$ |= 1024 /* HOST_FLAGS.devOnRender */;
-    }
-    if (BUILD.hydrateServerSide) {
-        await callRender(hostRef, instance, elm, isInitialLoad);
-    }
-    else {
-        callRender(hostRef, instance, elm, isInitialLoad);
-    }
-    if (BUILD.isDev) {
-        hostRef.$renderCount$ = hostRef.$renderCount$ === undefined ? 1 : hostRef.$renderCount$ + 1;
-        hostRef.$flags$ &= ~1024 /* HOST_FLAGS.devOnRender */;
-    }
-    if (BUILD.hydrateServerSide) {
-        try {
-            // manually connected child components during server-side hydrate
-            serverSideConnected(elm);
-            if (isInitialLoad) {
-                // using only during server-side hydrate
-                if (hostRef.$cmpMeta$.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
-                    elm['s-en'] = '';
-                }
-                else if (hostRef.$cmpMeta$.$flags$ & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
-                    elm['s-en'] = 'c';
-                }
-            }
-        }
-        catch (e) {
-            consoleError(e, elm);
-        }
-    }
-    if (BUILD.asyncLoading && rc) {
-        // ok, so turns out there are some child host elements
-        // waiting on this parent element to load
-        // let's fire off all update callbacks waiting
-        rc.map((cb) => cb());
-        elm['s-rc'] = undefined;
-    }
-    endRender();
-    endUpdate();
-    if (BUILD.asyncLoading) {
-        const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
-        const postUpdate = () => postUpdateComponent(hostRef);
-        if (childrenPromises.length === 0) {
-            postUpdate();
-        }
-        else {
-            Promise.all(childrenPromises).then(postUpdate);
-            hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
-            childrenPromises.length = 0;
-        }
-    }
-    else {
-        postUpdateComponent(hostRef);
-    }
-};
-let renderingRef = null;
-/**
- * Handle making the call to the VDom renderer with the proper context given
- * various build variables
- *
- * @param hostRef an object containing references to the element's host node,
- * VDom nodes, and other metadata
- * @param instance a reference to the underlying host element where it will be
- * rendered
- * @param elm the Host element for the component
- * @param isInitialLoad whether or not this function is being called as part of
- * @returns an empty promise
- */
-const callRender = (hostRef, instance, elm, isInitialLoad) => {
-    // in order for bundlers to correctly tree-shake the BUILD object
-    // we need to ensure BUILD is not deoptimized within a try/catch
-    // https://rollupjs.org/guide/en/#treeshake tryCatchDeoptimization
-    const allRenderFn = BUILD.allRenderFn ? true : false;
-    const lazyLoad = BUILD.lazyLoad ? true : false;
-    const taskQueue = BUILD.taskQueue ? true : false;
-    const updatable = BUILD.updatable ? true : false;
-    try {
-        renderingRef = instance;
-        /**
-         * minification optimization: `allRenderFn` is `true` if all components have a `render`
-         * method, so we can call the method immediately. If not, check before calling it.
-         */
-        instance = allRenderFn ? instance.render() : instance.render && instance.render();
-        if (updatable && taskQueue) {
-            hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
-        }
-        if (updatable || lazyLoad) {
-            hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
-        }
-        if (BUILD.hasRenderFn || BUILD.reflect) {
-            if (BUILD.vdomRender || BUILD.reflect) {
-                // looks like we've got child nodes to render into this host element
-                // or we need to update the css class/attrs on the host element
-                // DOM WRITE!
-                if (BUILD.hydrateServerSide) {
-                    return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
-                }
-                else {
-                    renderVdom(hostRef, instance, isInitialLoad);
-                }
-            }
-            else {
-                const shadowRoot = elm.shadowRoot;
-                if (hostRef.$cmpMeta$.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
-                    shadowRoot.textContent = instance;
-                }
-                else {
-                    elm.textContent = instance;
-                }
-            }
-        }
-    }
-    catch (e) {
-        consoleError(e, hostRef.$hostElement$);
-    }
-    renderingRef = null;
-    return null;
-};
-export const getRenderingRef = () => renderingRef;
-export const postUpdateComponent = (hostRef) => {
-    const tagName = hostRef.$cmpMeta$.$tagName$;
-    const elm = hostRef.$hostElement$;
-    const endPostUpdate = createTime('postUpdate', tagName);
-    const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
-    const ancestorComponent = hostRef.$ancestorComponent$;
-    if (BUILD.cmpDidRender) {
-        if (BUILD.isDev) {
-            hostRef.$flags$ |= 1024 /* HOST_FLAGS.devOnRender */;
-        }
-        safeCall(instance, 'componentDidRender');
-        if (BUILD.isDev) {
-            hostRef.$flags$ &= ~1024 /* HOST_FLAGS.devOnRender */;
-        }
-    }
-    emitLifecycleEvent(elm, 'componentDidRender');
-    if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
-        hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
-        if (BUILD.asyncLoading && BUILD.cssAnnotations) {
-            // DOM WRITE!
-            addHydratedFlag(elm);
-        }
-        if (BUILD.cmpDidLoad) {
-            if (BUILD.isDev) {
-                hostRef.$flags$ |= 2048 /* HOST_FLAGS.devOnDidLoad */;
-            }
-            safeCall(instance, 'componentDidLoad');
-            if (BUILD.isDev) {
-                hostRef.$flags$ &= ~2048 /* HOST_FLAGS.devOnDidLoad */;
-            }
-        }
-        emitLifecycleEvent(elm, 'componentDidLoad');
-        endPostUpdate();
-        if (BUILD.asyncLoading) {
-            hostRef.$onReadyResolve$(elm);
-            if (!ancestorComponent) {
-                appDidLoad(tagName);
-            }
-        }
-    }
-    else {
-        if (BUILD.cmpDidUpdate) {
-            // we've already loaded this component
-            // fire off the user's componentDidUpdate method (if one was provided)
-            // componentDidUpdate runs AFTER render() has been called
-            // and all child components have finished updating
-            if (BUILD.isDev) {
-                hostRef.$flags$ |= 1024 /* HOST_FLAGS.devOnRender */;
-            }
-            safeCall(instance, 'componentDidUpdate');
-            if (BUILD.isDev) {
-                hostRef.$flags$ &= ~1024 /* HOST_FLAGS.devOnRender */;
-            }
-        }
-        emitLifecycleEvent(elm, 'componentDidUpdate');
-        endPostUpdate();
-    }
-    if (BUILD.method && BUILD.lazyLoad) {
-        hostRef.$onInstanceResolve$(elm);
-    }
-    // load events fire from bottom to top
-    // the deepest elements load first then bubbles up
-    if (BUILD.asyncLoading) {
-        if (hostRef.$onRenderResolve$) {
-            hostRef.$onRenderResolve$();
-            hostRef.$onRenderResolve$ = undefined;
-        }
-        if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
-            nextTick(() => scheduleUpdate(hostRef, false));
-        }
-        hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
-    }
-    // ( •_•)
-    // ( •_•)>⌐■-■
-    // (⌐■_■)
-};
-export const forceUpdate = (ref) => {
-    if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
-        const hostRef = getHostRef(ref);
-        const isConnected = hostRef.$hostElement$.isConnected;
-        if (isConnected &&
-            (hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
-            scheduleUpdate(hostRef, false);
-        }
-        // Returns "true" when the forced update was successfully scheduled
-        return isConnected;
-    }
-    return false;
-};
-export const appDidLoad = (who) => {
-    // on appload
-    // we have finish the first big initial render
-    if (BUILD.cssAnnotations) {
-        addHydratedFlag(doc.documentElement);
-    }
-    if (BUILD.asyncQueue) {
-        plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
-    }
-    nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
-    if (BUILD.profile && performance.measure) {
-        performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, 'st:app:start');
-    }
-};
-/**
- * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
- * e.g. custom element node. If a build figures out that e.g. no component
- * has a `componentDidLoad` method, the instance method gets removed from the
- * output bundle and this function returns `undefined`.
- * @param instance any object that may or may not contain methods
- * @param method method name
- * @param arg single arbitrary argument
- * @returns result of method call if it exists, otherwise `undefined`
- */
-export const safeCall = (instance, method, arg) => {
-    if (instance && instance[method]) {
-        try {
-            return instance[method](arg);
-        }
-        catch (e) {
-            consoleError(e);
-        }
-    }
-    return undefined;
-};
-/**
- * For debugging purposes as `BUILD.lifecycleDOMEvents` is `false` by default and will
- * get removed by the compiler. Used for timing events to see how long they take.
- * @param elm the target of the Event
- * @param lifecycleName name of the event
- */
-const emitLifecycleEvent = (elm, lifecycleName) => {
-    if (BUILD.lifecycleDOMEvents) {
-        emitEvent(elm, 'stencil_' + lifecycleName, {
-            bubbles: true,
-            composed: true,
-            detail: {
-                namespace: NAMESPACE,
-            },
-        });
-    }
-};
-const addHydratedFlag = (elm) => BUILD.hydratedClass
-    ? elm.classList.add('hydrated')
-    : BUILD.hydratedAttribute
-        ? elm.setAttribute('hydrated', '')
-        : undefined;
-const serverSideConnected = (elm) => {
-    const children = elm.children;
-    if (children != null) {
-        for (let i = 0, ii = children.length; i < ii; i++) {
-            const childElm = children[i];
-            if (typeof childElm.connectedCallback === 'function') {
-                childElm.connectedCallback();
-            }
-            serverSideConnected(childElm);
-        }
-    }
-};
-//# sourceMappingURL=update-component.js.map
\ No newline at end of file
diff --git a/build/runtime/update-component.js.map b/build/runtime/update-component.js.map
deleted file mode 100644
index ba795c97a32..00000000000
--- a/build/runtime/update-component.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"update-component.js","sourceRoot":"","sources":["../../src/runtime/update-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAIhG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,OAAkB,EAAE,iBAAiC,EAAE,EAAE;IACxF,IAAI,KAAK,CAAC,YAAY,IAAI,iBAAiB,IAAI,CAAC,OAAO,CAAC,iBAAiB,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE;QACrG,iBAAiB,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;KACpF;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAkB,EAAE,aAAsB,EAAE,EAAE;IAC3E,IAAI,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,EAAE;QACtC,OAAO,CAAC,OAAO,yCAAgC,CAAC;KACjD;IACD,IAAI,KAAK,CAAC,YAAY,IAAI,OAAO,CAAC,OAAO,0CAAkC,EAAE;QAC3E,OAAO,CAAC,OAAO,sCAA4B,CAAC;QAC5C,OAAO;KACR;IACD,gBAAg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AAC,GAAQ,EAAE,EAAE;IACvC,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;IAC9B,IAAI,QAAQ,IAAI,IAAI,EAAE;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;YACjD,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAQ,CAAC;YACpC,IAAI,OAAO,QAAQ,CAAC,iBAAiB,KAAK,UAAU,EAAE;gBACpD,QAAQ,CAAC,iBAAiB,EAAE,CAAC;aAC9B;YACD,mBAAmB,CAAC,QAAQ,CAAC,CAAC;SAC/B;KACF;AACH,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/vdom/h.d.ts b/build/runtime/vdom/h.d.ts
deleted file mode 100644
index a286bcd9d8f..00000000000
--- a/build/runtime/vdom/h.d.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Production h() function based on Preact by
- * Jason Miller (@developit)
- * Licensed under the MIT License
- * https://github.com/developit/preact/blob/master/LICENSE
- *
- * Modified for Stencil's compiler and vdom
- */
-import type * as d from '../../declarations';
-export declare const h: (nodeName: any, vnodeData: any, ...children: d.ChildType[]) => d.VNode;
-/**
- * A utility function for creating a virtual DOM node from a tag and some
- * possible text content.
- *
- * @param tag the tag for this element
- * @param text possible text content for the node
- * @returns a newly-minted virtual DOM node
- */
-export declare const newVNode: (tag: string, text: string) => d.VNode;
-export declare const Host: {};
-/**
- * Check whether a given node is a Host node or not
- *
- * @param node the virtual DOM node to check
- * @returns whether it's a Host node or not
- */
-export declare const isHost: (node: any) => node is d.VNode;
diff --git a/build/runtime/vdom/h.js b/build/runtime/vdom/h.js
deleted file mode 100644
index b6f7a996a89..00000000000
--- a/build/runtime/vdom/h.js
+++ /dev/null
@@ -1,201 +0,0 @@
-/**
- * Production h() function based on Preact by
- * Jason Miller (@developit)
- * Licensed under the MIT License
- * https://github.com/developit/preact/blob/master/LICENSE
- *
- * Modified for Stencil's compiler and vdom
- */
-import { BUILD } from '@app-data';
-import { consoleDevError, consoleDevWarn } from '@platform';
-import { isComplexType } from '@utils';
-// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
-// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
-export const h = (nodeName, vnodeData, ...children) => {
-    let child = null;
-    let key = null;
-    let slotName = null;
-    let simple = false;
-    let lastSimple = false;
-    const vNodeChildren = [];
-    const walk = (c) => {
-        for (let i = 0; i < c.length; i++) {
-            child = c[i];
-            if (Array.isArray(child)) {
-                walk(child);
-            }
-            else if (child != null && typeof child !== 'boolean') {
-                if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
-                    child = String(child);
-                }
-                else if (BUILD.isDev && typeof nodeName !== 'function' && child.$flags$ === undefined) {
-                    consoleDevError(`vNode passed as children has unexpected type.
-Make sure it's using the correct h() function.
-Empty objects can also be the cause, look for JSX comments that became objects.`);
-                }
-                if (simple && lastSimple) {
-                    // If the previous child was simple (string), we merge both
-                    vNodeChildren[vNodeChildren.length - 1].$text$ += child;
-                }
-                else {
-                    // Append a new vNode, if it's text, we create a text vNode
-                    vNodeChildren.push(simple ? newVNode(null, child) : child);
-                }
-                lastSimple = simple;
-            }
-        }
-    };
-    walk(children);
-    if (vnodeData) {
-        if (BUILD.isDev && nodeName === 'input') {
-            validateInputProperties(vnodeData);
-        }
-        if (BUILD.vdomKey && vnodeData.key) {
-            key = vnodeData.key;
-        }
-        if (BUILD.slotRelocation && vnodeData.name) {
-            slotName = vnodeData.name;
-        }
-        // normalize class / className attributes
-        if (BUILD.vdomClass) {
-            const classData = vnodeData.className || vnodeData.class;
-            if (classData) {
-                vnodeData.class =
-                    typeof classData !== 'object'
-                        ? classData
-                        : Object.keys(classData)
-                            .filter((k) => classData[k])
-                            .join(' ');
-            }
-        }
-    }
-    if (BUILD.isDev && vNodeChildren.some(isHost)) {
-        consoleDevError(`The  must be the single root component. Make sure:
-- You are NOT using hostData() and  in the same component.
--  is used once, and it's the single root component of the render() function.`);
-    }
-    if (BUILD.vdomFunctional && typeof nodeName === 'function') {
-        // nodeName is a functional component
-        return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
-    }
-    const vnode = newVNode(nodeName, null);
-    vnode.$attrs$ = vnodeData;
-    if (vNodeChildren.length > 0) {
-        vnode.$children$ = vNodeChildren;
-    }
-    if (BUILD.vdomKey) {
-        vnode.$key$ = key;
-    }
-    if (BUILD.slotRelocation) {
-        vnode.$name$ = slotName;
-    }
-    return vnode;
-};
-/**
- * A utility function for creating a virtual DOM node from a tag and some
- * possible text content.
- *
- * @param tag the tag for this element
- * @param text possible text content for the node
- * @returns a newly-minted virtual DOM node
- */
-export const newVNode = (tag, text) => {
-    const vnode = {
-        $flags$: 0,
-        $tag$: tag,
-        $text$: text,
-        $elm$: null,
-        $children$: null,
-    };
-    if (BUILD.vdomAttribute) {
-        vnode.$attrs$ = null;
-    }
-    if (BUILD.vdomKey) {
-        vnode.$key$ = null;
-    }
-    if (BUILD.slotRelocation) {
-        vnode.$name$ = null;
-    }
-    return vnode;
-};
-export const Host = {};
-/**
- * Check whether a given node is a Host node or not
- *
- * @param node the virtual DOM node to check
- * @returns whether it's a Host node or not
- */
-export const isHost = (node) => node && node.$tag$ === Host;
-/**
- * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
- *
- * Note that these functions convert from {@link d.VNode} to
- * {@link d.ChildNode} to give functional component developers a friendly
- * interface.
- */
-const vdomFnUtils = {
-    forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
-    map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
-};
-/**
- * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
- * friendlier public interface (hence, 'convertToPublic').
- *
- * @param node the virtual DOM node to convert
- * @returns a converted child node
- */
-const convertToPublic = (node) => ({
-    vattrs: node.$attrs$,
-    vchildren: node.$children$,
-    vkey: node.$key$,
-    vname: node.$name$,
-    vtag: node.$tag$,
-    vtext: node.$text$,
-});
-/**
- * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
- * order to use the resulting object in the virtual DOM. The initial object was
- * likely created as part of presenting a public API, so converting it back
- * involved making it 'private' again (hence, `convertToPrivate`).
- *
- * @param node the child node to convert
- * @returns a converted virtual DOM node
- */
-const convertToPrivate = (node) => {
-    if (typeof node.vtag === 'function') {
-        const vnodeData = { ...node.vattrs };
-        if (node.vkey) {
-            vnodeData.key = node.vkey;
-        }
-        if (node.vname) {
-            vnodeData.name = node.vname;
-        }
-        return h(node.vtag, vnodeData, ...(node.vchildren || []));
-    }
-    const vnode = newVNode(node.vtag, node.vtext);
-    vnode.$attrs$ = node.vattrs;
-    vnode.$children$ = node.vchildren;
-    vnode.$key$ = node.vkey;
-    vnode.$name$ = node.vname;
-    return vnode;
-};
-/**
- * Validates the ordering of attributes on an input element
- *
- * @param inputElm the element to validate
- */
-const validateInputProperties = (inputElm) => {
-    const props = Object.keys(inputElm);
-    const value = props.indexOf('value');
-    if (value === -1) {
-        return;
-    }
-    const typeIndex = props.indexOf('type');
-    const minIndex = props.indexOf('min');
-    const maxIndex = props.indexOf('max');
-    const stepIndex = props.indexOf('step');
-    if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {
-        consoleDevWarn(`The "value" prop of  should be set after "min", "max", "type" and "step"`);
-    }
-};
-//# sourceMappingURL=h.js.map
\ No newline at end of file
diff --git a/build/runtime/vdom/h.js.map b/build/runtime/vdom/h.js.map
deleted file mode 100644
index 762bceb3666..00000000000
--- a/build/runtime/vdom/h.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"h.js","sourceRoot":"","sources":["../../../src/runtime/vdom/h.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,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AG,QAAQ,CAAC,IAAI,CAAC,IAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACrD,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5B,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC;IAClC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC;IACxB,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC;IAC1B,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,CAAC,QAA0B,EAAQ,EAAE;IACnE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEpC,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACrC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;QAChB,OAAO;KACR;IAED,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,IAAI,KAAK,GAAG,SAAS,IAAI,KAAK,GAAG,QAAQ,IAAI,KAAK,GAAG,QAAQ,IAAI,KAAK,GAAG,SAAS,EAAE;QAClF,cAAc,CAAC,iFAAiF,CAAC,CAAC;KACnG;AACH,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/vdom/set-accessor.d.ts b/build/runtime/vdom/set-accessor.d.ts
deleted file mode 100644
index 6902a56c0ad..00000000000
--- a/build/runtime/vdom/set-accessor.d.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Production setAccessor() function based on Preact by
- * Jason Miller (@developit)
- * Licensed under the MIT License
- * https://github.com/developit/preact/blob/master/LICENSE
- *
- * Modified for Stencil's compiler and vdom
- */
-/**
- * When running a VDom render set properties present on a VDom node onto the
- * corresponding HTML element.
- *
- * Note that this function has special functionality for the `class`,
- * `style`, `key`, and `ref` attributes, as well as event handlers (like
- * `onClick`, etc). All others are just passed through as-is.
- *
- * @param elm the HTMLElement onto which attributes should be set
- * @param memberName the name of the attribute to set
- * @param oldValue the old value for the attribute
- * @param newValue the new value for the attribute
- * @param isSvg whether we're in an svg context or not
- * @param flags bitflags for Vdom variables
- */
-export declare const setAccessor: (elm: HTMLElement, memberName: string, oldValue: any, newValue: any, isSvg: boolean, flags: number) => void;
diff --git a/build/runtime/vdom/set-accessor.js b/build/runtime/vdom/set-accessor.js
deleted file mode 100644
index f3dce7b2d52..00000000000
--- a/build/runtime/vdom/set-accessor.js
+++ /dev/null
@@ -1,191 +0,0 @@
-/**
- * Production setAccessor() function based on Preact by
- * Jason Miller (@developit)
- * Licensed under the MIT License
- * https://github.com/developit/preact/blob/master/LICENSE
- *
- * Modified for Stencil's compiler and vdom
- */
-import { BUILD } from '@app-data';
-import { isMemberInElement, plt, win } from '@platform';
-import { isComplexType } from '@utils';
-import { XLINK_NS } from '../runtime-constants';
-/**
- * When running a VDom render set properties present on a VDom node onto the
- * corresponding HTML element.
- *
- * Note that this function has special functionality for the `class`,
- * `style`, `key`, and `ref` attributes, as well as event handlers (like
- * `onClick`, etc). All others are just passed through as-is.
- *
- * @param elm the HTMLElement onto which attributes should be set
- * @param memberName the name of the attribute to set
- * @param oldValue the old value for the attribute
- * @param newValue the new value for the attribute
- * @param isSvg whether we're in an svg context or not
- * @param flags bitflags for Vdom variables
- */
-export const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
-    if (oldValue !== newValue) {
-        let isProp = isMemberInElement(elm, memberName);
-        let ln = memberName.toLowerCase();
-        if (BUILD.vdomClass && memberName === 'class') {
-            const classList = elm.classList;
-            const oldClasses = parseClassList(oldValue);
-            const newClasses = parseClassList(newValue);
-            classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
-            classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
-        }
-        else if (BUILD.vdomStyle && memberName === 'style') {
-            // update style attribute, css properties and values
-            if (BUILD.updatable) {
-                for (const prop in oldValue) {
-                    if (!newValue || newValue[prop] == null) {
-                        if (!BUILD.hydrateServerSide && prop.includes('-')) {
-                            elm.style.removeProperty(prop);
-                        }
-                        else {
-                            elm.style[prop] = '';
-                        }
-                    }
-                }
-            }
-            for (const prop in newValue) {
-                if (!oldValue || newValue[prop] !== oldValue[prop]) {
-                    if (!BUILD.hydrateServerSide && prop.includes('-')) {
-                        elm.style.setProperty(prop, newValue[prop]);
-                    }
-                    else {
-                        elm.style[prop] = newValue[prop];
-                    }
-                }
-            }
-        }
-        else if (BUILD.vdomKey && memberName === 'key') {
-            // minifier will clean this up
-        }
-        else if (BUILD.vdomRef && memberName === 'ref') {
-            // minifier will clean this up
-            if (newValue) {
-                newValue(elm);
-            }
-        }
-        else if (BUILD.vdomListener &&
-            (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) &&
-            memberName[0] === 'o' &&
-            memberName[1] === 'n') {
-            // Event Handlers
-            // so if the member name starts with "on" and the 3rd characters is
-            // a capital letter, and it's not already a member on the element,
-            // then we're assuming it's an event listener
-            if (memberName[2] === '-') {
-                // on- prefixed events
-                // allows to be explicit about the dom event to listen without any magic
-                // under the hood:
-                //  // listens for "click"
-                //  // listens for "Click"
-                //  // listens for "ionChange"
-                //  // listens for "EVENTS"
-                memberName = memberName.slice(3);
-            }
-            else if (isMemberInElement(win, ln)) {
-                // standard event
-                // the JSX attribute could have been "onMouseOver" and the
-                // member name "onmouseover" is on the window's prototype
-                // so let's add the listener "mouseover", which is all lowercased
-                memberName = ln.slice(2);
-            }
-            else {
-                // custom event
-                // the JSX attribute could have been "onMyCustomEvent"
-                // so let's trim off the "on" prefix and lowercase the first character
-                // and add the listener "myCustomEvent"
-                // except for the first character, we keep the event name case
-                memberName = ln[2] + memberName.slice(3);
-            }
-            if (oldValue || newValue) {
-                // Need to account for "capture" events.
-                // If the event name ends with "Capture", we'll update the name to remove
-                // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
-                const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
-                // Make sure we only replace the last instance of "Capture"
-                memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
-                if (oldValue) {
-                    plt.rel(elm, memberName, oldValue, capture);
-                }
-                if (newValue) {
-                    plt.ael(elm, memberName, newValue, capture);
-                }
-            }
-        }
-        else if (BUILD.vdomPropOrAttr) {
-            // Set property if it exists and it's not a SVG
-            const isComplex = isComplexType(newValue);
-            if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
-                try {
-                    if (!elm.tagName.includes('-')) {
-                        const n = newValue == null ? '' : newValue;
-                        // Workaround for Safari, moving the  caret when re-assigning the same valued
-                        if (memberName === 'list') {
-                            isProp = false;
-                        }
-                        else if (oldValue == null || elm[memberName] != n) {
-                            elm[memberName] = n;
-                        }
-                    }
-                    else {
-                        elm[memberName] = newValue;
-                    }
-                }
-                catch (e) {
-                    /**
-                     * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
-                     */
-                }
-            }
-            /**
-             * Need to manually update attribute if:
-             * - memberName is not an attribute
-             * - if we are rendering the host element in order to reflect attribute
-             * - if it's a SVG, since properties might not work in 
-             * - if the newValue is null/undefined or 'false'.
-             */
-            let xlink = false;
-            if (BUILD.vdomXlink) {
-                if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
-                    memberName = ln;
-                    xlink = true;
-                }
-            }
-            if (newValue == null || newValue === false) {
-                if (newValue !== false || elm.getAttribute(memberName) === '') {
-                    if (BUILD.vdomXlink && xlink) {
-                        elm.removeAttributeNS(XLINK_NS, memberName);
-                    }
-                    else {
-                        elm.removeAttribute(memberName);
-                    }
-                }
-            }
-            else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
-                newValue = newValue === true ? '' : newValue;
-                if (BUILD.vdomXlink && xlink) {
-                    elm.setAttributeNS(XLINK_NS, memberName, newValue);
-                }
-                else {
-                    elm.setAttribute(memberName, newValue);
-                }
-            }
-        }
-    }
-};
-const parseClassListRegex = /\s/;
-/**
- * Parsed a string of classnames into an array
- * @param value className string, e.g. "foo bar baz"
- * @returns list of classes, e.g. ["foo", "bar", "baz"]
- */
-const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
-const CAPTURE_EVENT_SUFFIX = 'Capture';
-const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
-//# sourceMappingURL=set-accessor.js.map
\ No newline at end of file
diff --git a/build/runtime/vdom/set-accessor.js.map b/build/runtime/vdom/set-accessor.js.map
deleted file mode 100644
index f97db08612b..00000000000
--- a/build/runtime/vdom/set-accessor.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"set-accessor.js","sourceRoot":"","sources":["../../../src/runtime/vdom/set-accessor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,EAAe,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,GAAgB,EAChB,UAAkB,EAClB,QAAa,EACb,QAAa,EACb,KAAc,EACd,KAAa,EACb,EAAE;IACF,IAAI,QAAQ,KAAK,QAAQ,EAAE;QACzB,IAAI,MAAM,GAAG,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;QAChD,IAAI,EAAE,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;QA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AAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACjC;;;;GAIG;AACH,MAAM,cAAc,GAAG,CAAC,KAAgC,EAAY,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC;AACxH,MAAM,oBAAoB,GAAG,SAAS,CAAC;AACvC,MAAM,mBAAmB,GAAG,IAAI,MAAM,CAAC,oBAAoB,GAAG,GAAG,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/vdom/test/attributes.spec.d.ts b/build/runtime/vdom/test/attributes.spec.d.ts
deleted file mode 100644
index cb0ff5c3b54..00000000000
--- a/build/runtime/vdom/test/attributes.spec.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/build/runtime/vdom/test/attributes.spec.js b/build/runtime/vdom/test/attributes.spec.js
deleted file mode 100644
index 67e483d193b..00000000000
--- a/build/runtime/vdom/test/attributes.spec.js
+++ /dev/null
@@ -1,82 +0,0 @@
-import { SVG_NS, XLINK_NS } from '@utils';
-import { h, newVNode } from '../h';
-import { patch } from '../vdom-render';
-describe('attributes', () => {
-    let hostElm;
-    let vnode0;
-    beforeEach(() => {
-        hostElm = document.createElement('div');
-        vnode0 = newVNode(null, null);
-        vnode0.$elm$ = hostElm;
-    });
-    it('have their provided values', () => {
-        const vnode1 = h('div', { href: '/foo', minlength: 1, value: true });
-        patch(vnode0, vnode1);
-        expect(hostElm.getAttribute('href')).toEqual('/foo');
-        expect(hostElm.getAttribute('minlength')).toEqual('1');
-        expect(hostElm.getAttribute('value')).toEqual('');
-    });
-    it('are not omitted when falsy values are provided', () => {
-        const vnode1 = h('div', { href: null, minlength: 0, value: false });
-        patch(vnode0, vnode1);
-        expect(hostElm.getAttribute('href')).toEqual(null);
-        expect(hostElm.getAttribute('minlength')).toEqual('0');
-        expect(hostElm.getAttribute('value')).toEqual(null);
-    });
-    it('are set correctly when namespaced', () => {
-        const vnode1 = h('svg', { 'xlink:href': '#foo' });
-        patch(vnode0, vnode1);
-        expect(hostElm.getAttributeNS(XLINK_NS, 'href')).toEqual('#foo');
-    });
-    it('are set correctly when namespaced (2)', () => {
-        const vnode1 = h('svg', { xlinkHref: '#foo' });
-        patch(vnode0, vnode1);
-        expect(hostElm.getAttributeNS(XLINK_NS, 'href')).toEqual('#foo');
-    });
-    it('should not touch class nor id fields', () => {
-        hostElm = document.createElement('div');
-        hostElm.id = 'myId';
-        hostElm.className = 'myClass';
-        vnode0.$elm$ = hostElm;
-        const vnode1 = h('div', null, 'Hello');
-        patch(vnode0, vnode1);
-        expect(hostElm.tagName).toEqual('DIV');
-        expect(hostElm.id).toEqual('myId');
-        expect(hostElm.className).toEqual('myClass');
-        expect(hostElm.textContent).toEqual('Hello');
-    });
-    describe('boolean attribute', () => {
-        it('is present if the value is truthy', () => {
-            const vnode1 = h('div', { required: true, readonly: 1, noresize: 'truthy' });
-            patch(vnode0, vnode1);
-            expect(hostElm.hasAttribute('required')).toEqual(true);
-            expect(hostElm.getAttribute('required')).toEqual('');
-            expect(hostElm.hasAttribute('readonly')).toEqual(true);
-            expect(hostElm.getAttribute('readonly')).toEqual('1');
-            expect(hostElm.hasAttribute('noresize')).toEqual(true);
-            expect(hostElm.getAttribute('noresize')).toEqual('truthy');
-        });
-        it('is omitted if the value is falsy', () => {
-            const vnode1 = h('div', { required: false, readonly: 'false', noresize: null });
-            patch(vnode0, vnode1);
-            expect(hostElm.getAttribute('required')).toEqual(null);
-            expect(hostElm.getAttribute('readonly')).toEqual('false');
-            expect(hostElm.getAttribute('noresize')).toEqual(null);
-        });
-    });
-    describe('svg', function () {
-        it('adds correctly xlink namespaced attribute', () => {
-            const testUrl = '/test';
-            const vnode1 = h('svg', {}, h('div', {
-                'xlink:href': testUrl,
-            }));
-            hostElm = document.createElementNS(SVG_NS, 'svg');
-            vnode0.$elm$ = hostElm;
-            patch(vnode0, vnode1);
-            expect(hostElm.childNodes.length).toEqual(1);
-            expect(hostElm.children[0].getAttribute('href')).toEqual(testUrl);
-            expect(hostElm.children[0].getAttributeNS(XLINK_NS, 'href')).toEqual(testUrl);
-        });
-    });
-});
-//# sourceMappingURL=attributes.spec.js.map
\ No newline at end of file
diff --git a/build/runtime/vdom/test/attributes.spec.js.map b/build/runtime/vdom/test/attributes.spec.js.map
deleted file mode 100644
index 8e9cbe73c71..00000000000
--- a/build/runtime/vdom/test/attributes.spec.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"attributes.spec.js","sourceRoot":"","sources":["../../../../src/runtime/vdom/test/attributes.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAG1C,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAI,OAAsB,CAAC;IAC3B,IAAI,MAAe,CAAC;IAEpB,UAAU,CAAC,GAAG,EAAE;QACd,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACxC,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC9B,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACrE,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAEtB,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,C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,CAAC,CACd,KAAK,EACL,EAAE,EACF,CAAC,CAAC,KAAK,EAAE;gBACP,YAAY,EAAE,OAAO;aACtB,CAAC,CACH,CAAC;YAEF,OAAO,GAAG,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAQ,CAAC;YACzD,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC;YACvB,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACtB,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC7C,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAClE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAChF,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/vdom/test/event-listeners.spec.d.ts b/build/runtime/vdom/test/event-listeners.spec.d.ts
deleted file mode 100644
index cb0ff5c3b54..00000000000
--- a/build/runtime/vdom/test/event-listeners.spec.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/build/runtime/vdom/test/event-listeners.spec.js b/build/runtime/vdom/test/event-listeners.spec.js
deleted file mode 100644
index bbbc62c40d2..00000000000
--- a/build/runtime/vdom/test/event-listeners.spec.js
+++ /dev/null
@@ -1,69 +0,0 @@
-import { h, newVNode } from '../h';
-import { patch } from '../vdom-render';
-describe('event listeners', () => {
-    let hostElm;
-    let vnode0;
-    beforeEach(() => {
-        hostElm = document.createElement('div');
-        vnode0 = newVNode(null, null);
-        vnode0.$elm$ = hostElm;
-    });
-    it('attaches click event handler to element', () => {
-        const result = [];
-        function clicked(ev) {
-            result.push(ev);
-        }
-        const vnode = h('div', { onClick: clicked }, h('a', null, 'Click my parent'));
-        patch(vnode0, vnode);
-        hostElm.click();
-        expect(result.length).toBe(1);
-    });
-    it('does not attach new listener', () => {
-        const result = [];
-        const vnode1 = h('div', {
-            onClick: () => {
-                result.push(1);
-            },
-        }, h('a', null, 'Click my parent'));
-        const vnode2 = h('div', {
-            onClick: () => {
-                result.push(2);
-            },
-        }, h('a', null, 'Click my parent'));
-        patch(vnode0, vnode1);
-        hostElm.click();
-        patch(vnode1, vnode2);
-        hostElm.click();
-        expect(result[0]).toBe(1);
-        expect(result[1]).toBe(2);
-    });
-    it('detach attached click event handler to element', () => {
-        const result = [];
-        function clicked(ev) {
-            result.push(ev);
-        }
-        const vnode1 = h('div', { onClick: clicked }, h('a', null, 'Click my parent'));
-        patch(vnode0, vnode1);
-        hostElm.click();
-        hostElm.click();
-        expect(result.length).toBe(2);
-        const vnode2 = h('div', { o: {} }, h('a', null, 'Click my parent'));
-        patch(vnode1, vnode2);
-        hostElm.click();
-        hostElm.click();
-        expect(result.length).toBe(2);
-    });
-    it('shared handlers in parent and child nodes', () => {
-        const result = [];
-        function click(ev) {
-            result.push(ev);
-        }
-        const vnode1 = h('div', { onClick: click }, h('a', { onClick: click }, 'Click my parent'));
-        patch(vnode0, vnode1);
-        hostElm.click();
-        expect(result.length).toBe(1);
-        hostElm.firstChild.click();
-        expect(result.length).toBe(3);
-    });
-});
-//# sourceMappingURL=event-listeners.spec.js.map
\ No newline at end of file
diff --git a/build/runtime/vdom/test/event-listeners.spec.js.map b/build/runtime/vdom/test/event-listeners.spec.js.map
deleted file mode 100644
index 0415719edc0..00000000000
--- a/build/runtime/vdom/test/event-listeners.spec.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"event-listeners.spec.js","sourceRoot":"","sources":["../../../../src/runtime/vdom/test/event-listeners.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,QAAQ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E,MAAM,CAAC,CAAC;QACtB,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,EAAE,CAAC;QAEhB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,MAAM,MAAM,GAAU,EAAE,CAAC;QAEzB,SAAS,KAAK,CAAC,EAAO;YACpB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClB,CAAC;QAED,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,iBAAiB,CAAC,CAAC,CAAC;QAE3F,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACtB,OAAO,CAAC,KAAK,EAAE,CAAC;QAEhB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC7B,OAAO,CAAC,UAA0B,CAAC,KAAK,EAAE,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/vdom/test/h.spec.d.ts b/build/runtime/vdom/test/h.spec.d.ts
deleted file mode 100644
index cb0ff5c3b54..00000000000
--- a/build/runtime/vdom/test/h.spec.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/build/runtime/vdom/test/h.spec.js b/build/runtime/vdom/test/h.spec.js
deleted file mode 100644
index 5fca151190c..00000000000
--- a/build/runtime/vdom/test/h.spec.js
+++ /dev/null
@@ -1,449 +0,0 @@
-import { h, newVNode } from '../h';
-describe('h()', () => {
-    it('should render nested functional components', () => {
-        const FunctionalCmp1 = () => h('fn-cmp', null);
-        const FunctionalCmp2 = () => h(FunctionalCmp1, null);
-        const vnode = h(FunctionalCmp2, null);
-        expect(vnode.$tag$).toEqual('fn-cmp');
-    });
-    it('should render functional component', () => {
-        const FunctionalCmp = () => h('fn-cmp', null);
-        const vnode = h(FunctionalCmp, null);
-        expect(vnode.$tag$).toEqual('fn-cmp');
-    });
-    it('should get vnode with only tag string', () => {
-        const vnode = h('div', null);
-        expect(vnode.$tag$).toEqual('div');
-    });
-    it('should get vnode with tag and data', () => {
-        const vnode = h('div', { id: 'my-id' });
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$attrs$).toBeDefined();
-        expect(vnode.$attrs$.id).toBe('my-id');
-    });
-    it('should get vnode with tag and child text', () => {
-        const vnode = h('div', null, 'child text');
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$children$[0].$text$).toBe('child text');
-    });
-    it('should get vnode with tag and multiple child text', () => {
-        const vnode = h('div', null, 'child 1', 'child 2');
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$children$[0].$text$).toBe('child 1child 2');
-    });
-    it('should get vnode with tag and child number', () => {
-        const vnode = h('div', null, 0);
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$children$[0].$text$).toBe('0');
-    });
-    it('should get vnode with tag with multiple child h()', () => {
-        const vnode = h('div', null, h('child-a', null), h('child-b', null));
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$children$).toBeDefined();
-        expect(vnode.$children$.length).toBe(2);
-        expect(vnode.$children$[0].$tag$).toBe('child-a');
-        expect(vnode.$children$[1].$tag$).toBe('child-b');
-    });
-    it('should get vnode with tag with one child h()', () => {
-        const vnode = h('parent', null, h('child', null));
-        expect(vnode.$tag$).toEqual('parent');
-        expect(vnode.$children$).toBeDefined();
-        expect(vnode.$children$.length).toBe(1);
-        expect(vnode.$children$[0].$tag$).toBe('child');
-    });
-    it('should get vnode with tag with two child h()', () => {
-        const vnode = h('parent', null, h('child-a', null), h('child-b', null));
-        expect(vnode.$tag$).toEqual('parent');
-        expect(vnode.$children$).toBeDefined();
-        expect(vnode.$children$.length).toBe(2);
-        expect(vnode.$children$[0].$tag$).toBe('child-a');
-        expect(vnode.$children$[1].$tag$).toBe('child-b');
-    });
-    it('should get vnode with tag, data, child text', () => {
-        const vnode = h('div', { id: 'my-id' }, 'child text');
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$attrs$).toBeDefined();
-        expect(vnode.$children$[0].$text$).toBe('child text');
-    });
-    it('should get vnode with tag, data, child number', () => {
-        const vnode = h('div', { id: 'my-id' }, 0);
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$attrs$).toBeDefined();
-        expect(vnode.$children$[0].$text$).toBe('0');
-    });
-    it('should get vnode with tag, data, one child h()', () => {
-        const vnode = h('div', { id: 'my-id' }, h('child-a', null));
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$attrs$).toBeDefined();
-        expect(vnode.$children$).toBeDefined();
-        expect(vnode.$children$.length).toBe(1);
-        expect(vnode.$children$[0].$tag$).toBe('child-a');
-    });
-    it('should get vnode with tag, data, array of children h()', () => {
-        const vnode = h('div', { id: 'my-id' }, h('child-a', null), h('child-b', null));
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$attrs$).toBeDefined();
-        expect(vnode.$children$).toBeDefined();
-        expect(vnode.$children$.length).toBe(2);
-        expect(vnode.$children$[0].$tag$).toBe('child-a');
-        expect(vnode.$children$[1].$tag$).toBe('child-b');
-    });
-    it('should have class exactly as passed if string w/ extra whitespace', () => {
-        const vnode = h('div', { class: '  dragons   love  tacos  ' });
-        expect(vnode.$attrs$.class).toBeDefined();
-        expect(vnode.$attrs$.class).toEqual('  dragons   love  tacos  ');
-    });
-    it('should have class exactly as passed if string w/ duplicates', () => {
-        const vnode = h('div', { class: 'middle aligned center aligned' });
-        expect(vnode.$attrs$.class).toBeDefined();
-        expect(vnode.$attrs$.class).toEqual('middle aligned center aligned');
-    });
-    it('should have class based on classes as keys of an object', () => {
-        const vnode = h('div', { class: { dragons: true, love: true, tacos: true } });
-        expect(vnode.$attrs$.class).toBeDefined();
-        expect(vnode.$attrs$.class).toEqual('dragons love tacos');
-    });
-    it('should set vkey', () => {
-        const vnode = h('div', { key: 'my-key' });
-        expect(vnode.$key$).toBe('my-key');
-    });
-    it('should set vkey to null when key is undefined', () => {
-        const vnode = h('div', { key: undefined });
-        expect(vnode.$key$).toBe(null);
-    });
-    it('should set vkey to null when key is null', () => {
-        const vnode = h('div', { key: null });
-        expect(vnode.$key$).toBe(null);
-    });
-    it('should set vkey to undefined when we have data, but no key', () => {
-        const vnode = h('div', { some: 'data' });
-        expect(vnode.$key$).toBe(null);
-    });
-    it('should set vkey to undefined when no data', () => {
-        const vnode = h('div', null);
-        expect(vnode.$key$).toBe(null);
-    });
-    it('should set vattrs ref', () => {
-        const ref = () => {
-            /**/
-        };
-        const vnode = h('div', { ref: ref });
-        expect(vnode.$attrs$.ref).toBe(ref);
-    });
-    it('should not set vref', () => {
-        const vnode = h('div', {});
-        expect(vnode.$attrs$.ref).toBeUndefined();
-    });
-    it('should add one class from string', () => {
-        const vnode = h('div', { class: 'some-class and another-class' });
-        expect(vnode.$attrs$.class).toBeDefined();
-        expect(vnode.$attrs$.class).toEqual('some-class and another-class');
-    });
-    it('should add class from map of classnames and booleans', () => {
-        const vnode = h('div', { class: { enabled: true, checked: false } });
-        expect(vnode.$attrs$.class).toBeDefined();
-        expect(vnode.$attrs$.class).toEqual('enabled');
-    });
-    it('should add class from className string', () => {
-        const vnode = h('div', { className: 'one point twenty-one gigawatts' });
-        expect(vnode.$attrs$.class).toBeDefined();
-        expect(vnode.$attrs$.class).toEqual('one point twenty-one gigawatts');
-    });
-    it('should add class from className map of classnames and booleans', () => {
-        const vnode = h('div', { className: { save: true, the: true, clock: true, tower: true, hillvalley: false } });
-        expect(vnode.$attrs$.class).toBeDefined();
-        expect(vnode.$attrs$.class).toEqual('save the clock tower');
-    });
-    it('should add props', () => {
-        const vnode = h('div', { id: 'my-id', checked: false, count: 0 });
-        expect(vnode.$attrs$).toBeDefined();
-        expect(vnode.$attrs$.id).toBe('my-id');
-        expect(vnode.$attrs$.checked).toBe(false);
-        expect(vnode.$attrs$.count).toBe(0);
-    });
-    it('should add attrs', () => {
-        const vnode = h('div', { id: 'my-id', checked: false, count: 0 });
-        expect(vnode.$attrs$).toBeDefined();
-        expect(vnode.$attrs$.id).toBe('my-id');
-        expect(vnode.$attrs$.checked).toBe(false);
-        expect(vnode.$attrs$.count).toBe(0);
-    });
-    it('should add on', () => {
-        function onClick() {
-            /**/
-        }
-        const vnode = h('div', { onclick: onClick });
-        expect(vnode.$attrs$).toBeDefined();
-        expect(vnode.$attrs$.onclick).toBe(onClick);
-    });
-    it('should add style', () => {
-        const vnode = h('div', { style: { marginLeft: '10px' } });
-        expect(vnode.$attrs$.style).toBeDefined();
-        expect(vnode.$attrs$.style.marginLeft).toBe('10px');
-    });
-    it('should add key string', () => {
-        const vnode = h('div', { key: 'my-key' });
-        expect(vnode.$key$).toBe('my-key');
-    });
-    it('should add key number', () => {
-        const vnode = h('div', { key: 88 });
-        expect(vnode.$key$).toBe(88);
-    });
-    it('can create vnode with proper tag', () => {
-        expect(h('div', null).$tag$).toEqual('div');
-        expect(h('a', null).$tag$).toEqual('a');
-    });
-    it('can create vnode with children', () => {
-        const vnode = h('div', null, h('span', null), h('b', null));
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$children$[0].$tag$).toEqual('span');
-        expect(vnode.$children$[1].$tag$).toEqual('b');
-    });
-    it('can create vnode with one child vnode', () => {
-        const vnode = h('div', null, h('span', null));
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$children$[0].$tag$).toEqual('span');
-    });
-    it('can create vnode with no props and one child vnode', () => {
-        const vnode = h('div', null, h('span', null));
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$children$[0].$tag$).toEqual('span');
-    });
-    it('can create vnode text with dynamic string', () => {
-        const val = 'jazzhands';
-        const vnode = h('div', null, val);
-        expect(vnode.$tag$).toEqual('div');
-        expect(vnode.$children$[0].$text$).toEqual('jazzhands');
-    });
-    it('can create vnode with text content in string', () => {
-        const vnode = h('a', null, 'I am a string');
-        expect(vnode.$children$[0].$text$).toEqual('I am a string');
-    });
-    it('should merge all simple children', () => {
-        const vnode = h('a', null, 'Str0', [12, ['Str2']]);
-        expect(vnode.$children$.length).toBe(1);
-        expect(vnode.$children$[0].$text$).toEqual('Str012Str2');
-    });
-    it('should not render booleans', () => {
-        const vnode = h('a', null, [false, true]);
-        expect(vnode.$children$).toBe(null);
-    });
-    it('should not render null and undefined', () => {
-        const vnode = h('a', null, [null, undefined]);
-        expect(vnode.$children$).toBe(null);
-    });
-    it('should merge with booleans around', () => {
-        const vnode = h('a', null, [false, 'one', true], 'word');
-        expect(vnode.$children$.length).toBe(1);
-        expect(vnode.$children$[0].$text$).toBe('oneword');
-    });
-    it('should walk nested arrays', () => {
-        const vnode = h('a', null, ['Str0', [h('b', null, 'Str1'), ['Str2']]]);
-        expect(vnode.$children$).toEqual([
-            newVNode(null, 'Str0'),
-            {
-                $attrs$: null,
-                $children$: [newVNode(null, 'Str1')],
-                $elm$: null,
-                $flags$: 0,
-                $key$: null,
-                $name$: null,
-                $tag$: 'b',
-                $text$: null,
-            },
-            newVNode(null, 'Str2'),
-        ]);
-    });
-    describe('functional components', () => {
-        it('should receive props, array, and utils as props', async () => {
-            let args;
-            const MyFunction = (...argArray) => {
-                args = argArray;
-                return null;
-            };
-            h(MyFunction, { id: 'blank' }, h('span', {}));
-            expect(args.length).toBe(3);
-            expect(args[0]).toEqual({ id: 'blank' });
-            expect(args[1].length).toEqual(1);
-            expect(typeof args[2].map).toBe('function');
-            expect(typeof args[2].forEach).toBe('function');
-        });
-        it('should receive an empty object when component receives no props', async () => {
-            let args;
-            const MyFunction = (...argArray) => {
-                args = argArray;
-                return null;
-            };
-            h(MyFunction, {});
-            expect(args[0]).toEqual({});
-            expect(args[1]).toEqual([]);
-        });
-        it('should receive an empty array when component receives no children', async () => {
-            let args;
-            const MyFunction = (...argArray) => {
-                args = argArray;
-                return null;
-            };
-            h(MyFunction, {});
-            expect(args[1]).toEqual([]);
-        });
-        it('should handle functional cmp which returns null', async () => {
-            const MyFunction = () => {
-                return null;
-            };
-            const vnode = h(MyFunction, {});
-            expect(vnode).toEqual(null);
-        });
-        it('should render functional cmp content', async () => {
-            const MyFunction = () => {
-                return h('div', { id: 'fn-cmp' }, 'fn-cmp');
-            };
-            const vnode = h(MyFunction, {});
-            expect(vnode).toEqual({
-                $elm$: null,
-                $flags$: 0,
-                $attrs$: { id: 'fn-cmp' },
-                $children$: [newVNode(null, 'fn-cmp')],
-                $key$: null,
-                $name$: null,
-                $tag$: 'div',
-                $text$: null,
-            });
-        });
-    });
-    describe('VDom Util methods', () => {
-        it('utils.forEach should loop over items and get the ChildNode data', () => {
-            const output = [];
-            const FunctionalCmp = (_nodeData, children, util) => {
-                util.forEach(children, (element) => {
-                    output.push(element);
-                    util.forEach(element.vchildren, (el) => {
-                        output.push(el);
-                    });
-                });
-                return h('article', null);
-            };
-            h(FunctionalCmp, null, h('div', { id: 'blue' }, h('span', null)));
-            expect(output).toEqual([
-                {
-                    vattrs: {
-                        id: 'blue',
-                    },
-                    vchildren: [
-                        {
-                            $elm$: null,
-                            $flags$: 0,
-                            $attrs$: null,
-                            $children$: null,
-                            $key$: null,
-                            $name$: null,
-                            $tag$: 'span',
-                            $text$: null,
-                        },
-                    ],
-                    vkey: null,
-                    vname: null,
-                    vtag: 'div',
-                    vtext: null,
-                },
-                {
-                    vattrs: null,
-                    vchildren: null,
-                    vkey: null,
-                    vname: null,
-                    vtag: 'span',
-                    vtext: null,
-                },
-            ]);
-        });
-        it('replaceAttributes should return the attributes for the node', () => {
-            const FunctionalCmp = (_nodeData, children, util) => {
-                return util.map(children, (child) => {
-                    return {
-                        ...child,
-                        vattrs: {
-                            ...child.vattrs,
-                            class: 'my-class',
-                        },
-                    };
-                });
-            };
-            const vnode = h(FunctionalCmp, null, h('div', { id: 'blue' }, 'innerText'), h('span', null));
-            expect(vnode).toEqual([
-                {
-                    $elm$: null,
-                    $flags$: 0,
-                    $attrs$: {
-                        class: 'my-class',
-                        id: 'blue',
-                    },
-                    $children$: [newVNode(null, 'innerText')],
-                    $key$: null,
-                    $name$: null,
-                    $tag$: 'div',
-                    $text$: null,
-                },
-                {
-                    $elm$: null,
-                    $flags$: 0,
-                    $attrs$: {
-                        class: 'my-class',
-                    },
-                    $children$: null,
-                    $key$: null,
-                    $name$: null,
-                    $tag$: 'span',
-                    $text$: null,
-                },
-            ]);
-        });
-        it('changing the vtag to a functional component should expand the component', () => {
-            const ReplacementCmp = (nodeData, children) => {
-                return h('article', nodeData, h('p', null, ...children));
-            };
-            const FunctionalCmp = (_nodeData, children, util) => {
-                return util.map(children, (child) => {
-                    return {
-                        ...child,
-                        vtag: child.vtag === 'div' ? ReplacementCmp : child.vtag,
-                    };
-                });
-            };
-            const vnode = h(FunctionalCmp, null, h('div', { id: 'blue' }, 'innerText'), h('span', null));
-            expect(vnode).toEqual([
-                {
-                    $flags$: 0,
-                    $tag$: 'article',
-                    $text$: null,
-                    $elm$: null,
-                    $children$: [
-                        {
-                            $flags$: 0,
-                            $tag$: 'p',
-                            $text$: null,
-                            $elm$: null,
-                            $children$: [newVNode(null, 'innerText')],
-                            $attrs$: null,
-                            $key$: null,
-                            $name$: null,
-                        },
-                    ],
-                    $attrs$: { id: 'blue' },
-                    $key$: null,
-                    $name$: null,
-                },
-                {
-                    $flags$: 0,
-                    $tag$: 'span',
-                    $text$: null,
-                    $elm$: null,
-                    $children$: null,
-                    $attrs$: null,
-                    $key$: null,
-                    $name$: null,
-                },
-            ]);
-        });
-    });
-});
-//# sourceMappingURL=h.spec.js.map
\ No newline at end of file
diff --git a/build/runtime/vdom/test/h.spec.js.map b/build/runtime/vdom/test/h.spec.js.map
deleted file mode 100644
index 11367747b75..00000000000
--- a/build/runt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oBACX,UAAU,EAAE;wBACV;4BACE,OAAO,EAAE,CAAC;4BACV,KAAK,EAAE,GAAG;4BACV,MAAM,EAAE,IAAI;4BACZ,KAAK,EAAE,IAAI;4BACX,UAAU,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;4BACzC,OAAO,EAAE,IAAI;4BACb,KAAK,EAAE,IAAI;4BACX,MAAM,EAAE,IAAI;yBACb;qBACF;oBACD,OAAO,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE;oBACvB,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,IAAI;iBACb;gBACD;oBACE,OAAO,EAAE,CAAC;oBACV,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE,IAAI;oBACZ,KAAK,EAAE,IAAI;oBACX,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,IAAI;oBACb,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,IAAI;iBACb;aACF,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/vdom/test/is-same-vnode.spec.d.ts b/build/runtime/vdom/test/is-same-vnode.spec.d.ts
deleted file mode 100644
index cb0ff5c3b54..00000000000
--- a/build/runtime/vdom/test/is-same-vnode.spec.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/build/runtime/vdom/test/is-same-vnode.spec.js b/build/runtime/vdom/test/is-same-vnode.spec.js
deleted file mode 100644
index cc14531f506..00000000000
--- a/build/runtime/vdom/test/is-same-vnode.spec.js
+++ /dev/null
@@ -1,61 +0,0 @@
-// import type * as d from '../declarations';
-import { h } from '../h';
-import { isSameVnode } from '../vdom-render';
-describe('isSameVnode', () => {
-    it('should not be same vnode with slot and no vnode2 name', () => {
-        const vnode1 = h('slot', { name: 'start' }, '1');
-        const vnode2 = h('slot', {}, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(false);
-    });
-    it('should not be same vnode with slot and no vnode1 name', () => {
-        const vnode1 = h('slot', {}, '1');
-        const vnode2 = h('slot', { name: 'end' }, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(false);
-    });
-    it('should not be same vnode with slot and different vname', () => {
-        const vnode1 = h('slot', { name: 'start' }, '1');
-        const vnode2 = h('slot', { name: 'end' }, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(false);
-    });
-    it('should be same vnode with slot and same vname', () => {
-        const vnode1 = h('slot', { name: 'start' }, '1');
-        const vnode2 = h('slot', { name: 'start' }, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(true);
-    });
-    it('should be same vnode with slot and no vname', () => {
-        const vnode1 = h('slot', {}, '1');
-        const vnode2 = h('slot', {}, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(true);
-    });
-    it('should not be same vnode with same tag and different key', () => {
-        const vnode1 = h('a', { attr: '1', key: 'mykey1' }, '1');
-        const vnode2 = h('a', { attr: '2', key: 'mykey2' }, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(false);
-    });
-    it('should not be same vnode with different tag and same key', () => {
-        const vnode1 = h('a', { attr: '1', key: 'mykey' }, '1');
-        const vnode2 = h('b', { attr: '2', key: 'mykey' }, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(false);
-    });
-    it('should not be same vnode with different tag and no key', () => {
-        const vnode1 = h('a', null, '1');
-        const vnode2 = h('b', null, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(false);
-    });
-    it('should be same vnode with same tag and same key', () => {
-        const vnode1 = h('a', { attr: '1', key: 'mykey' }, '1');
-        const vnode2 = h('a', { attr: '2', key: 'mykey' }, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(true);
-    });
-    it('should be same vnode with same tag and defined data, but no key', () => {
-        const vnode1 = h('a', { attr: '1' }, '1');
-        const vnode2 = h('a', { attr: '2' }, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(true);
-    });
-    it('should be same vnode with same tag and undefined data', () => {
-        const vnode1 = h('a', null, '1');
-        const vnode2 = h('a', null, '2');
-        expect(isSameVnode(vnode1, vnode2)).toBe(true);
-    });
-});
-//# sourceMappingURL=is-same-vnode.spec.js.map
\ No newline at end of file
diff --git a/build/runtime/vdom/test/is-same-vnode.spec.js.map b/build/runtime/vdom/test/is-same-vnode.spec.js.map
deleted file mode 100644
index d08d41c88f3..00000000000
--- a/build/runtime/vdom/test/is-same-vnode.spec.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"is-same-vnode.spec.js","sourceRoot":"","sources":["../../../../src/runtime/vdom/test/is-same-vnode.spec.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,MAAM,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,CAAC;QACjD,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;QAClC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;QAClC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,GAAG,CAAC,CAAC;QAC/C,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CA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G,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,CAAC;QACxD,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QACzE,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC;QAC1C,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC;QAC1C,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC/D,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;QACjC,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;QACjC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
\ No newline at end of file
diff --git a/build/runtime/vdom/test/patch-svg.spec.d.ts b/build/runtime/vdom/test/patch-svg.spec.d.ts
deleted file mode 100644
index cb0ff5c3b54..00000000000
--- a/build/runtime/vdom/test/patch-svg.spec.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/build/runtime/vdom/test/patch-svg.spec.js b/build/runtime/vdom/test/patch-svg.spec.js
deleted file mode 100644
index 5a9818e6ee7..00000000000
--- a/build/runtime/vdom/test/patch-svg.spec.js
+++ /dev/null
@@ -1,59 +0,0 @@
-import { SVG_NS } from '@utils';
-import { h, newVNode } from '../h';
-import { patch } from '../vdom-render';
-import { toVNode } from './to-vnode';
-describe('renderer', () => {
-    let hostElm;
-    let vnode0;
-    beforeEach(() => {
-        hostElm = document.createElement('div');
-        vnode0 = newVNode(null, null);
-        vnode0.$elm$ = hostElm;
-    });
-    describe('created element', () => {
-        it('has tag', () => {
-            patch(vnode0, h('div', null));
-            expect(hostElm.tagName).toEqual('DIV');
-        });
-        it('should automatically get svg namespace', () => {
-            const svgElm = document.createElementNS(SVG_NS, 'svg');
-            const vnode1 = toVNode(svgElm);
-            patch(vnode1, h('svg', null, h('foreignObject', null, h('div', null, 'I am HTML embedded in SVG')), h('feGaussianBlur', null)));
-            expect(svgElm.namespaceURI).toEqual(SVG_NS);
-            expect(svgElm.firstChild.namespaceURI).toEqual(SVG_NS);
-            expect(svgElm.children[0].firstChild.namespaceURI).not.toEqual(SVG_NS);
-            expect(svgElm.children[1].namespaceURI).toEqual(SVG_NS);
-            expect(svgElm).toEqualHtml(`
-        
-          
-            
- I am HTML embedded in SVG -
-
- -
`); - }); - it('should not affect subsequence element', () => { - patch(vnode0, h('div', null, [h('svg', null, [h('title', null, 'Title'), h('circle', null)]), h('div', null)])); - expect(hostElm.tagName).toEqual('DIV'); - expect(hostElm.namespaceURI).not.toEqual(SVG_NS); - expect(hostElm.firstElementChild.tagName).toEqual('svg'); - expect(hostElm.firstElementChild.namespaceURI).toEqual(SVG_NS); - expect(hostElm.firstElementChild.firstChild.namespaceURI).toEqual(SVG_NS); - expect(hostElm.firstElementChild.lastChild.namespaceURI).toEqual(SVG_NS); - expect(hostElm.lastElementChild.namespaceURI).not.toEqual(SVG_NS); - }); - }); - describe('created trailing svg element', () => { - it('should not affect subsequent created element', () => { - patch(vnode0, h('div', null, h('div', null, h('svg', null)))); - const vnode1 = toVNode(vnode0.$elm$); - patch(vnode1, h('div', null, [h('div', null, h('svg', null)), h('div', null)])); - const vnode2 = toVNode(vnode1.$elm$); - expect(vnode2.$children$[0].$elm$.tagName).toEqual('DIV'); - expect(vnode2.$children$[0].$children$[0].$elm$.tagName).toEqual('svg'); - expect(vnode2.$children$[1].$elm$.tagName).toEqual('DIV'); - }); - }); -}); -//# sourceMappingURL=patch-svg.spec.js.map \ No newline at end of file diff --git a/build/runtime/vdom/test/patch-svg.spec.js.map b/build/runtime/vdom/test/patch-svg.spec.js.map deleted file mode 100644 index 97a2b1e9f3e..00000000000 --- a/build/runtime/vdom/test/patch-svg.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patch-svg.spec.js","sourceRoot":"","sources":["../../../../src/runtime/vdom/test/patch-svg.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,IAAI,OAAsB,CAAC;IAC3B,IAAI,MAAe,CAAC;IAEpB,UAAU,CAAC,GAAG,EAAE;QACd,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACxC,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC9B,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;QAC/B,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE;YACjB,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;YAC9B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC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AAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAQ,CAAC,CAAC,CAAC;YAEvF,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC1D,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACxE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/runtime/vdom/test/patch.spec.d.ts b/build/runtime/vdom/test/patch.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/runtime/vdom/test/patch.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/runtime/vdom/test/patch.spec.js b/build/runtime/vdom/test/patch.spec.js deleted file mode 100644 index b66ee21460d..00000000000 --- a/build/runtime/vdom/test/patch.spec.js +++ /dev/null @@ -1,669 +0,0 @@ -import { shuffleArray } from '@stencil/core/testing'; -import { SVG_NS } from '@utils'; -import { h, newVNode } from '../h'; -import { patch } from '../vdom-render'; -import { toVNode } from './to-vnode'; -describe('renderer', () => { - let hostElm; - let vnode0; - const inner = prop('innerHTML'); - beforeEach(() => { - hostElm = document.createElement('div'); - vnode0 = newVNode(null, null); - vnode0.$elm$ = hostElm; - }); - describe('functional component', () => { - it('should re-render functional component w/ children', () => { - const DoesNotRenderChildren = () => h('div', null, 'mph'); - const RendersChildren = (_props, children) => h('div', null, children, '-12'); - hostElm = document.createElement('my-tag'); - const vnode0 = newVNode(null, null); - vnode0.$elm$ = hostElm; - const vnode1 = h('my-tag', null, h(DoesNotRenderChildren, null, '88'), h(RendersChildren, null, 'DMC')); - patch(vnode0, vnode1); - expect(hostElm.tagName).toBe('MY-TAG'); - expect(hostElm.childNodes[0].innerHTML).toBe('mph'); - expect(hostElm.childNodes[1].innerHTML).toBe('DMC-12'); - const vnode2 = h('my-tag', null, h(DoesNotRenderChildren, null, '88'), h(RendersChildren, null, 'dmc')); - patch(vnode1, vnode2); - expect(hostElm.childNodes[0].innerHTML).toBe('mph'); - expect(hostElm.childNodes[1].innerHTML).toBe('dmc-12'); - }); - it('should re-render a functional component', () => { - function functionalComp({ children, ...props }) { - return h('span', props, children); - } - hostElm = document.createElement('my-tag'); - const vnode0 = newVNode(null, null); - vnode0.$elm$ = hostElm; - const vnode1 = h('my-tag', null, h(functionalComp, { class: 'render-one' })); - patch(vnode0, vnode1); - expect(hostElm.childNodes[0].className).toBe('render-one'); - const vnode2 = h('my-tag', null, h(functionalComp, { class: 'render-two' })); - patch(vnode1, vnode2); - expect(hostElm.childNodes[0].className).toBe('render-two'); - }); - it('should render a basic functional component', () => { - function functionalComp({ children, ...props }) { - return h('span', props, children); - } - hostElm = document.createElement('my-tag'); - vnode0 = newVNode(null, null); - vnode0.$elm$ = hostElm; - patch(vnode0, h('my-tag', null, h(functionalComp, { class: 'functional-cmp' }))); - expect(hostElm.childNodes[0].tagName).toBe('SPAN'); - expect(hostElm.childNodes[0].textContent).toBe(''); - expect(hostElm.childNodes[0].className).toBe('functional-cmp'); - }); - it('should render as a sibling component', () => { - function functionalComp(props, children) { - return h('span', props, children); - } - hostElm = document.createElement('my-tag'); - vnode0 = newVNode(null, null); - vnode0.$elm$ = hostElm; - patch(vnode0, h('my-tag', null, h('span', null, 'Test Child'), h(functionalComp, { class: 'functional-cmp' }))); - expect(hostElm.childNodes[0].tagName).toBe('SPAN'); - expect(hostElm.childNodes[0].textContent).toBe('Test Child'); - expect(hostElm.childNodes[1].tagName).toBe('SPAN'); - expect(hostElm.childNodes[1].textContent).toBe(''); - expect(hostElm.childNodes[1].className).toBe('functional-cmp'); - }); - it('should render children', () => { - function functionalComp(props, children) { - return h('span', props, children); - } - hostElm = document.createElement('my-tag'); - vnode0 = newVNode(null, null); - vnode0.$elm$ = hostElm; - patch(vnode0, h('my-tag', null, h(functionalComp, { class: 'functional-cmp' }, h('span', null, 'Test Child')))); - expect(hostElm.childNodes[0].tagName).toBe('SPAN'); - expect(hostElm.childNodes[0].className).toBe('functional-cmp'); - expect(hostElm.childNodes[0].textContent).toBe('Test Child'); - }); - }); - describe('created element', () => { - it('has tag', () => { - patch(vnode0, h('div', null)); - expect(hostElm.tagName).toEqual('DIV'); - }); - it('receives css classes', () => { - const vnode1 = h('div', null, h('i', { class: { i: true, am: true, a: true, class: true } })); - patch(vnode0, vnode1); - expect(hostElm.firstChild).toHaveClasses(['i', 'am', 'a', 'class']); - }); - it('can create elements with text content', () => { - patch(vnode0, h('div', null, 'I am a string')); - expect(hostElm.innerHTML).toEqual('I am a string'); - }); - }); - describe('patching an element', () => { - it('does not remove classes of previous from dom if vdom does not document them', () => { - hostElm.classList.add('horse'); - const vnode1 = h('i', { class: { i: true, am: true } }); - patch(vnode0, vnode1); - expect(hostElm).toHaveClasses(['i', 'am', 'horse']); - }); - it('changes elements classes from previous vnode', () => { - const vnode1 = h('i', { class: { i: true, am: true, horse: true } }); - const vnode2 = h('i', { class: { i: true, am: true, horse: false } }); - patch(vnode0, vnode1); - patch(vnode1, vnode2); - expect(hostElm).toHaveClasses(['i', 'am']); - }); - it('preserves memoized classes', () => { - const cachedClass = { i: true, am: true, horse: false }; - const vnode1 = h('i', { class: cachedClass }); - const vnode2 = h('i', { class: cachedClass }); - patch(vnode0, vnode1); - expect(hostElm).toHaveClasses(['i', 'am']); - patch(vnode1, vnode2); - expect(hostElm).toHaveClasses(['i', 'am']); - }); - it('removes missing classes', () => { - const vnode1 = h('i', { class: { i: true, am: true, horse: true } }); - const vnode2 = h('i', { class: { i: true, am: true } }); - patch(vnode0, vnode1); - patch(vnode1, vnode2); - expect(hostElm).toHaveClasses(['i', 'am']); - }); - it('removes classes when class set to empty string', () => { - const vnode1 = h('i', { class: { i: true, am: true, horse: true } }); - const vnode2 = h('i', { class: '' }); - patch(vnode0, vnode1); - patch(vnode1, vnode2); - expect(hostElm).toHaveClasses([]); - }); - describe('using toVNode()', () => { - it('can remove previous children of the root element', () => { - const h2 = document.createElement('h2'); - h2.textContent = 'Hello'; - const prevElm = document.createElement('div'); - prevElm.id = 'id'; - prevElm.className = 'class'; - prevElm.appendChild(h2); - const nextVNode = h('div', null, h('span', null, 'Hi')); - patch(toVNode(prevElm), nextVNode); - hostElm = nextVNode.$elm$; - expect(hostElm).toEqual(prevElm); - expect(hostElm.tagName).toEqual('DIV'); - expect(hostElm.id).toEqual('id'); - expect(hostElm.className).toEqual('class'); - expect(hostElm.childNodes.length).toEqual(1); - expect(hostElm.childNodes[0].tagName).toEqual('SPAN'); - expect(hostElm.childNodes[0].textContent).toEqual('Hi'); - }); - it('can remove previous children of the root element with update', () => { - const h2 = document.createElement('h2'); - h2.textContent = 'Hello'; - const prevElm = document.createElement('div'); - prevElm.id = 'id'; - prevElm.className = 'class'; - prevElm.appendChild(h2); - const nextVNode = h('div', null, h('span', null, 'Hi')); - patch(toVNode(prevElm), nextVNode); - hostElm = nextVNode.$elm$; - expect(hostElm).toEqual(prevElm); - expect(hostElm.tagName).toEqual('DIV'); - expect(hostElm.id).toEqual('id'); - expect(hostElm.className).toEqual('class'); - expect(hostElm.childNodes.length).toEqual(1); - expect(hostElm.childNodes[0].tagName).toEqual('SPAN'); - expect(hostElm.childNodes[0].textContent).toEqual('Hi'); - }); - it('can remove some children of the root element', () => { - const h2 = document.createElement('h2'); - h2.textContent = 'Hello'; - const prevElm = document.createElement('div'); - prevElm.id = 'id'; - prevElm.className = 'class'; - const text = document.createTextNode('Foobar'); - text.testProperty = function () { - /**/ - }; // ensures we don't recreate the Text Node - prevElm.appendChild(text); - prevElm.appendChild(h2); - const nextVNode = h('div', null, 'Foobar'); - patch(toVNode(prevElm), nextVNode); - hostElm = nextVNode.$elm$; - expect(hostElm).toEqual(prevElm); - expect(hostElm.tagName).toEqual('DIV'); - expect(hostElm.id).toEqual('id'); - expect(hostElm.className).toEqual('class'); - expect(hostElm.childNodes.length).toEqual(1); - expect(hostElm.childNodes[0].nodeType).toEqual(3); - expect(hostElm.childNodes[0].wholeText).toEqual('Foobar'); - expect(typeof hostElm.childNodes[0].testProperty).toEqual('function'); - }); - it('can remove text elements', () => { - const h2 = document.createElement('h2'); - h2.textContent = 'Hello'; - const prevElm = document.createElement('div'); - prevElm.id = 'id'; - prevElm.className = 'class'; - const text = document.createTextNode('Foobar'); - prevElm.appendChild(text); - prevElm.appendChild(h2); - const nextVNode = h('div', null, h('h2', null, 'Hello')); - patch(toVNode(prevElm), nextVNode); - hostElm = nextVNode.$elm$; - expect(hostElm).toEqual(prevElm); - expect(hostElm.tagName).toEqual('DIV'); - expect(hostElm.id).toEqual('id'); - expect(hostElm.className).toEqual('class'); - expect(hostElm.childNodes.length).toEqual(1); - expect(hostElm.childNodes[0].nodeType).toEqual(1); - expect(hostElm.childNodes[0].textContent).toEqual('Hello'); - }); - }); - describe('updating children with keys', () => { - function spanNum(n) { - if (n == null) { - return n; - } - else if (typeof n === 'string') { - return h('span', null, n); - } - else { - return h('span', { key: n }, n.toString()); - } - } - function vnodeMap(arr) { - return h.apply(null, ['span', null, ...arr.map(spanNum)]); - } - describe('addition of elements', () => { - it('appends elements', () => { - const vnode1 = vnodeMap([1]); - const vnode2 = vnodeMap([1, 2, 3]); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(1); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(3); - expect(hostElm.children[1].innerHTML).toEqual('2'); - expect(hostElm.children[2].innerHTML).toEqual('3'); - }); - it('prepends elements', () => { - const vnode1 = vnodeMap([4, 5]); - const vnode2 = vnodeMap([1, 2, 3, 4, 5]); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(2); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['1', '2', '3', '4', '5']); - }); - it('add elements in the middle', () => { - const vnode1 = vnodeMap([1, 2, 4, 5]); - const vnode2 = vnodeMap([1, 2, 3, 4, 5]); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(4); - expect(hostElm.children.length).toEqual(4); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['1', '2', '3', '4', '5']); - }); - it('add elements at begin and end', () => { - const vnode1 = vnodeMap([2, 3, 4]); - const vnode2 = vnodeMap([1, 2, 3, 4, 5]); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(3); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['1', '2', '3', '4', '5']); - }); - it('adds children to parent with no children', () => { - const vnode1 = h('span', { key: 'span' }); - const vnode2 = h('span', { key: 'span' }, ...[1, 2, 3].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(0); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['1', '2', '3']); - }); - it('removes all children from parent', () => { - const vnode1 = h('span', { key: 'span' }, ...[1, 2, 3].map(spanNum)); - const vnode2 = h('span', { key: 'span' }); - patch(vnode0, vnode1); - expect(map(inner, hostElm.children)).toEqual(['1', '2', '3']); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(0); - }); - it('update one child with same key but different sel', () => { - const vnode1 = h('span', { key: 'spans' }, ...[1, 2, 3].map(spanNum)); - const vnode2 = h('span', { key: 'span' }, ...[spanNum(1), h('i', { key: 2 }, '2'), spanNum(3)]); - patch(vnode0, vnode1); - expect(map(inner, hostElm.children)).toEqual(['1', '2', '3']); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['1', '2', '3']); - expect(hostElm.children.length).toEqual(3); - expect(hostElm.children[1].tagName).toEqual('I'); - }); - }); - describe('removal of elements', () => { - it('removes elements from the beginning', () => { - const vnode1 = h('span', null, ...[1, 2, 3, 4, 5].map(spanNum)); - const vnode2 = h('span', null, ...[3, 4, 5].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(5); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['3', '4', '5']); - }); - it('removes elements from the end', () => { - const vnode1 = h('span', null, ...[1, 2, 3, 4, 5].map(spanNum)); - const vnode2 = h('span', null, ...[1, 2, 3].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(5); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(3); - expect(hostElm.children[0].innerHTML).toEqual('1'); - expect(hostElm.children[1].innerHTML).toEqual('2'); - expect(hostElm.children[2].innerHTML).toEqual('3'); - }); - it('removes elements from the middle', () => { - const vnode1 = h('span', null, ...[1, 2, 3, 4, 5].map(spanNum)); - const vnode2 = h('span', null, ...[1, 2, 4, 5].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(5); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(4); - expect(hostElm.children[0].innerHTML).toEqual('1'); - expect(hostElm.children[1].innerHTML).toEqual('2'); - expect(hostElm.children[2].innerHTML).toEqual('4'); - expect(hostElm.children[3].innerHTML).toEqual('5'); - }); - it('removes child svg elements', () => { - vnode0.$elm$ = document.createElement('svg'); - const a = h('svg', { n: SVG_NS }, h('g', null), h('g', null)); - const b = h('svg', { n: SVG_NS }, h('g', null)); - patch(vnode0, a); - const resultA = toVNode(vnode0.$elm$); - expect(resultA.$elm$.childNodes.length).toEqual(2); - patch(resultA, b); - const resultB = toVNode(resultA.$elm$); - expect(resultB.$elm$.childNodes.length).toEqual(1); - }); - }); - describe('element reordering', () => { - it('moves element forward', () => { - const vnode1 = h('span', null, ...[1, 2, 3, 4].map(spanNum)); - const vnode2 = h('span', null, ...[2, 3, 1, 4].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(4); - hostElm.children[0].instance = 1; - hostElm.children[1].instance = 2; - hostElm.children[2].instance = 3; - hostElm.children[3].instance = 4; - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(4); - expect(hostElm.children[0].innerHTML).toEqual('2'); - expect(hostElm.children[0].instance).toEqual(2); - expect(hostElm.children[0].hasAttribute('key')).toBe(false); - expect(hostElm.children[1].innerHTML).toEqual('3'); - expect(hostElm.children[1].instance).toEqual(3); - expect(hostElm.children[1].hasAttribute('key')).toBe(false); - expect(hostElm.children[2].innerHTML).toEqual('1'); - expect(hostElm.children[2].instance).toEqual(1); - expect(hostElm.children[2].hasAttribute('key')).toBe(false); - expect(hostElm.children[3].innerHTML).toEqual('4'); - expect(hostElm.children[3].instance).toEqual(4); - expect(hostElm.children[3].hasAttribute('key')).toBe(false); - }); - it('moves element to end', () => { - const vnode1 = h('span', null, ...[1, 2, 3].map(spanNum)); - const vnode2 = h('span', null, ...[2, 3, 1].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(3); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(3); - expect(hostElm.children[0].innerHTML).toEqual('2'); - expect(hostElm.children[1].innerHTML).toEqual('3'); - expect(hostElm.children[2].innerHTML).toEqual('1'); - }); - it('moves element backwards', () => { - const vnode1 = h('span', null, ...[1, 2, 3, 4].map(spanNum)); - const vnode2 = h('span', null, ...[1, 4, 2, 3].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(4); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(4); - expect(hostElm.children[0].innerHTML).toEqual('1'); - expect(hostElm.children[1].innerHTML).toEqual('4'); - expect(hostElm.children[2].innerHTML).toEqual('2'); - expect(hostElm.children[3].innerHTML).toEqual('3'); - }); - it('swaps first and last', () => { - const vnode1 = h('span', null, ...[1, 2, 3, 4].map(spanNum)); - const vnode2 = h('span', null, ...[4, 2, 3, 1].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(4); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(4); - expect(hostElm.children[0].innerHTML).toEqual('4'); - expect(hostElm.children[1].innerHTML).toEqual('2'); - expect(hostElm.children[2].innerHTML).toEqual('3'); - expect(hostElm.children[3].innerHTML).toEqual('1'); - }); - }); - describe('combinations of additions, removals and reorderings', () => { - it('move to left and replace', () => { - const vnode1 = h('span', null, ...[1, 2, 3, 4, 5].map(spanNum)); - const vnode2 = h('span', null, ...[4, 1, 2, 3, 6].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(5); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(5); - expect(hostElm.children[0].innerHTML).toEqual('4'); - expect(hostElm.children[1].innerHTML).toEqual('1'); - expect(hostElm.children[2].innerHTML).toEqual('2'); - expect(hostElm.children[3].innerHTML).toEqual('3'); - expect(hostElm.children[4].innerHTML).toEqual('6'); - }); - it('moves to left and leaves hole', () => { - const vnode1 = h('span', null, ...[1, 4, 5].map(spanNum)); - const vnode2 = h('span', null, ...[4, 6].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(3); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['4', '6']); - }); - it('handles moved and set to undefined element ending at the end', () => { - const vnode1 = h('span', null, ...[2, 4, 5].map(spanNum)); - const vnode2 = h('span', null, ...[4, 5, 3].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(3); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(3); - expect(hostElm.children[0].innerHTML).toEqual('4'); - expect(hostElm.children[1].innerHTML).toEqual('5'); - expect(hostElm.children[2].innerHTML).toEqual('3'); - }); - it('moves a key in non-keyed nodes with a size up', () => { - const vnode1 = h('span', null, ...[1, 'a', 'b', 'c'].map(spanNum)); - const vnode2 = h('span', null, ...['d', 'a', 'b', 'c', 1, 'e'].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.childNodes.length).toEqual(4); - expect(hostElm.textContent).toEqual('1abc'); - patch(vnode1, vnode2); - expect(hostElm.childNodes.length).toEqual(6); - expect(hostElm.textContent).toEqual('dabc1e'); - }); - }); - it('reverses elements', () => { - const vnode1 = h('span', null, ...[1, 2, 3, 4, 5, 6, 7, 8].map(spanNum)); - const vnode2 = h('span', null, ...[8, 7, 6, 5, 4, 3, 2, 1].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(8); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['8', '7', '6', '5', '4', '3', '2', '1']); - }); - it('something', () => { - const vnode1 = h('span', null, ...[0, 1, 2, 3, 4, 5].map(spanNum)); - const vnode2 = h('span', null, ...[4, 3, 2, 1, 5, 0].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(6); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['4', '3', '2', '1', '5', '0']); - }); - it('handles random shuffles', () => { - let n, i; - const arr = [], opacities = [], elms = 14, samples = 5; - function spanNumWithOpacity(n, o) { - return h('span', { key: n, style: { opacity: o } }, n.toString()); - } - for (n = 0; n < elms; ++n) { - arr[n] = n; - } - for (n = 0; n < samples; ++n) { - const vnode1 = h('span', null, ...arr.map(function (n) { - return spanNumWithOpacity(n, '1'); - })); - const shufArr = shuffleArray(arr.slice(0)); - let elm = document.createElement('div'); - vnode0.$elm$ = elm; - patch(vnode0, vnode1); - elm = vnode1.$elm$; - for (i = 0; i < elms; ++i) { - expect(elm.children[i].innerHTML).toEqual(i.toString()); - opacities[i] = Math.random().toFixed(5).toString(); - } - const vnode2 = h('span', null, ...arr.map(function (n) { - return spanNumWithOpacity(shufArr[n], opacities[n]); - })); - patch(vnode1, vnode2); - elm = vnode2.$elm$; - for (i = 0; i < elms; ++i) { - expect(elm.children[i].innerHTML).toEqual(shufArr[i].toString()); - expect(opacities[i].indexOf(elm.children[i].style.opacity)).toEqual(0); - } - } - }); - it('supports null/undefined children', () => { - const vnode1 = h('i', null, ...[0, 1, 2, 3, 4, 5].map(spanNum)); - const vnode2 = h('i', null, ...[null, 2, undefined, null, 1, 0, null, 5, 4, null, 3, undefined].map(spanNum)); - patch(vnode0, vnode1); - expect(hostElm.children.length).toEqual(6); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['2', '1', '0', '5', '4', '3']); - }); - it('supports all null/undefined children', () => { - const vnode1 = h('v1', null, ...[0, 1, 2, 3, 4, 5].map(spanNum)); - const vnode2 = h('v2', null, ...[null, null, undefined, null, null, undefined]); - const vnode3 = h('v3', null, ...[5, 4, 3, 2, 1, 0].map(spanNum)); - patch(vnode0, vnode1); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(0); - patch(vnode2, vnode3); - expect(map(inner, hostElm.children)).toEqual(['5', '4', '3', '2', '1', '0']); - }); - it('handles random shuffles with null/undefined children', () => { - let i, j, r, len, arr; - const maxArrLen = 15, samples = 5; - let vnode1 = vnode0, vnode2; - for (i = 0; i < samples; ++i, vnode1 = vnode2) { - len = Math.floor(Math.random() * maxArrLen); - arr = []; - for (j = 0; j < len; ++j) { - if ((r = Math.random()) < 0.5) - arr[j] = String(j); - else if (r < 0.75) - arr[j] = null; - else - arr[j] = undefined; - } - shuffleArray(arr); - vnode2 = h('div', null, ...arr.map(spanNum)); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(arr.filter(function (x) { - return x != null; - })); - } - }); - }); - describe('updating children without keys', () => { - it('appends elements', () => { - const vnode1 = h('div', null, h('span', null, 'Hello')); - const vnode2 = h('div', null, h('span', null, 'Hello'), h('span', null, 'World')); - patch(vnode0, vnode1); - expect(map(inner, hostElm.children)).toEqual(['Hello']); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['Hello', 'World']); - }); - it('handles unmoved text nodes', () => { - const vnode1 = h('div', null, ...['Text', h('span', null, 'Span')]); - const vnode2 = h('div', null, ...['Text', h('span', null, 'Span')]); - patch(vnode0, vnode1); - expect(hostElm.childNodes[0].textContent).toEqual('Text'); - patch(vnode1, vnode2); - expect(hostElm.childNodes[0].textContent).toEqual('Text'); - }); - it('handles changing text children', () => { - const vnode1 = h('div', null, ...['Text', h('span', null, 'Span')]); - const vnode2 = h('div', null, ...['Text2', h('span', null, 'Span')]); - patch(vnode0, vnode1); - expect(hostElm.childNodes[0].textContent).toEqual('Text'); - patch(vnode1, vnode2); - expect(hostElm.childNodes[0].textContent).toEqual('Text2'); - }); - it('prepends element', () => { - const vnode1 = h('div', null, ...[h('span', null, 'World')]); - const vnode2 = h('div', null, ...[h('span', null, 'Hello'), h('span', null, 'World')]); - patch(vnode0, vnode1); - expect(map(inner, hostElm.children)).toEqual(['World']); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['Hello', 'World']); - }); - it('prepends element of different tag type', () => { - const vnode1 = h('div', null, ...[h('span', null, 'World')]); - const vnode2 = h('div', null, ...[h('div', null, 'Hello'), h('span', null, 'World')]); - patch(vnode0, vnode1); - expect(map(inner, hostElm.children)).toEqual(['World']); - patch(vnode1, vnode2); - expect(map(prop('tagName'), hostElm.children)).toEqual(['DIV', 'SPAN']); - expect(map(inner, hostElm.children)).toEqual(['Hello', 'World']); - }); - it('removes elements', () => { - const vnode1 = h('div', null, ...[h('span', null, 'One'), h('span', null, 'Two'), h('span', null, 'Three')]); - const vnode2 = h('div', null, ...[h('span', null, 'One'), h('span', null, 'Three')]); - patch(vnode0, vnode1); - expect(map(inner, hostElm.children)).toEqual(['One', 'Two', 'Three']); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['One', 'Three']); - }); - it('removes a single text node', () => { - const vnode1 = h('div', null, 'One'); - const vnode2 = h('div', null); - patch(vnode0, vnode1); - expect(hostElm.textContent).toEqual('One'); - patch(vnode1, vnode2); - expect(hostElm.textContent).toEqual(''); - }); - it('removes a single text node when children are updated', () => { - const vnode1 = h('div', null, 'One'); - const vnode2 = h('div', null, ...[h('div', null, 'Two'), h('span', null, 'Three')]); - patch(vnode0, vnode1); - expect(hostElm.textContent).toEqual('One'); - patch(vnode1, vnode2); - expect(map(prop('textContent'), hostElm.childNodes)).toEqual(['Two', 'Three']); - }); - it('should replace elements created with Array().map with text', () => { - const a = Array.from(Array(2)).map(() => h('div', null, 'a')); - const vnode1 = h('span', null, ...a); - const vnode2 = h('span', null, 'just text'); - patch(vnode0, vnode1); - expect(hostElm.childNodes.length).toEqual(2); - expect(hostElm.textContent).toEqual('aa'); - patch(vnode1, vnode2); - expect(hostElm.childNodes.length).toEqual(1); - expect(hostElm.textContent).toEqual('just text'); - }); - it('removes a text node among other elements', () => { - const vnode1 = h('div', null, ...['One', h('span', null, 'Two')]); - const vnode2 = h('div', null, ...[h('div', null, 'Three')]); - patch(vnode0, vnode1); - expect(map(prop('textContent'), hostElm.childNodes)).toEqual(['One', 'Two']); - patch(vnode1, vnode2); - expect(hostElm.childNodes.length).toEqual(1); - expect(hostElm.childNodes[0].tagName).toEqual('DIV'); - expect(hostElm.childNodes[0].textContent).toEqual('Three'); - }); - it('reorders elements', () => { - const vnode1 = h('div', null, ...[h('span', null, 'One'), h('div', null, 'Two'), h('b', null, 'Three')]); - const vnode2 = h('div', null, ...[h('b', null, 'Three'), h('span', null, 'One'), h('div', null, 'Two')]); - patch(vnode0, vnode1); - expect(map(inner, hostElm.children)).toEqual(['One', 'Two', 'Three']); - patch(vnode1, vnode2); - expect(map(prop('tagName'), hostElm.children)).toEqual(['B', 'SPAN', 'DIV']); - expect(map(inner, hostElm.children)).toEqual(['Three', 'One', 'Two']); - }); - it('supports null/undefined children', () => { - const vnode1 = h('i', null, ...[null, h('i', null, '1'), h('i', null, '2'), null]); - const vnode2 = h('i', null, ...[h('i', null, '2'), undefined, undefined, h('i', null, '1'), undefined]); - const vnode3 = h('i', null, ...[null, h('i', null, '1'), undefined, null, h('i', null, '2'), undefined, null]); - patch(vnode0, vnode1); - expect(map(inner, hostElm.children)).toEqual(['1', '2']); - patch(vnode1, vnode2); - expect(map(inner, hostElm.children)).toEqual(['2', '1']); - patch(vnode2, vnode3); - expect(map(inner, hostElm.children)).toEqual(['1', '2']); - }); - it('supports all null/undefined children', () => { - const vnode1 = h('i', null, ...[h('i', null, '1'), h('i', null, '2')]); - const vnode2 = h('i', null, ...[null, null, undefined]); - const vnode3 = h('i', null, ...[h('i', null, '2'), h('i', null, '1')]); - patch(vnode0, vnode1); - patch(vnode1, vnode2); - expect(hostElm.children.length).toEqual(0); - patch(vnode2, vnode3); - expect(map(inner, hostElm.children)).toEqual(['2', '1']); - }); - }); - }); - function prop(name) { - return function (obj) { - return obj[name]; - }; - } - function map(fn, list) { - const ret = []; - for (let i = 0; i < list.length; ++i) { - ret[i] = fn(list[i]); - } - return ret; - } -}); -//# sourceMappingURL=patch.spec.js.map \ No newline at end of file diff --git a/build/runtime/vdom/test/patch.spec.js.map b/build/runtime/vdom/test/patch.spec.js.map deleted file mode 100644 index eb5fd1be3d8..00000000000 --- a/build/runtime/vdom/test/patch.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patch.spec.js","sourceRoot":"","sources":["../../../../src/runtime/vdom/test/patch.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,IAAI,OAAY,CAAC;IACjB,IAAI,MAAe,CAAC;IACpB,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;IAEhC,UAAU,CAAC,GAAG,EAAE;QACd,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,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AC,CAAC,CAAC,CAAC;gBAEvE,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAEtB,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBACtB,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;gBAE3C,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBACtB,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YAC3D,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,SAAS,IAAI,CAAC,IAAS;QACrB,OAAO,UAAU,GAAQ;YACvB,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC;IAED,SAAS,GAAG,CAAC,EAAO,EAAE,IAAS;QAC7B,MAAM,GAAG,GAAG,EAAE,CAAC;QACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;YACpC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;QACD,OAAO,GAAG,CAAC;IACb,CAAC;AACH,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/runtime/vdom/test/set-accessor.spec.d.ts b/build/runtime/vdom/test/set-accessor.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/runtime/vdom/test/set-accessor.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/runtime/vdom/test/set-accessor.spec.js b/build/runtime/vdom/test/set-accessor.spec.js deleted file mode 100644 index e2f5aab781a..00000000000 --- a/build/runtime/vdom/test/set-accessor.spec.js +++ /dev/null @@ -1,682 +0,0 @@ -import { setAccessor } from '../set-accessor'; -describe('setAccessor for custom elements', () => { - let elm; - beforeEach(() => { - elm = document.createElement('my-tag'); - }); - describe('event listener', () => { - it('should allow public method starting with "on" and capital 3rd character', () => { - const addEventSpy = jest.spyOn(elm, 'addEventListener'); - elm.onMyMethod = () => { - /**/ - }; - const fn = () => { - /**/ - }; - setAccessor(elm, 'onMyMethod', undefined, fn, false, 0); - expect(addEventSpy).toHaveBeenCalledTimes(0); - }); - it('should remove standardized event listener when has old value, but no new', () => { - const addEventSpy = jest.spyOn(elm, 'addEventListener'); - const removeEventSpy = jest.spyOn(elm, 'removeEventListener'); - const orgValue = () => { - /**/ - }; - setAccessor(elm, 'onClick', undefined, orgValue, false, 0); - setAccessor(elm, 'onClick', orgValue, undefined, false, 0); - expect(addEventSpy).toHaveBeenCalledTimes(1); - expect(addEventSpy).toHaveBeenCalledWith('click', orgValue, false); - expect(removeEventSpy).toHaveBeenCalledWith('click', orgValue, false); - }); - it('should remove standardized multiple-word then add event listener w/ different value', () => { - const addEventSpy = jest.spyOn(elm, 'addEventListener'); - const removeEventSpy = jest.spyOn(elm, 'removeEventListener'); - const orgValue = () => { - /**/ - }; - setAccessor(elm, 'onMouseOver', undefined, orgValue, false, 0); - setAccessor(elm, 'onMouseOver', orgValue, undefined, false, 0); - expect(addEventSpy).toHaveBeenCalledWith('mouseover', orgValue, false); - expect(removeEventSpy).toHaveBeenCalledWith('mouseover', orgValue, false); - }); - it('should remove standardized then add event listener w/ different value', () => { - const addEventSpy = jest.spyOn(elm, 'addEventListener'); - const removeEventSpy = jest.spyOn(elm, 'removeEventListener'); - const orgValue = () => { - /**/ - }; - setAccessor(elm, 'onClick', undefined, orgValue, false, 0); - const newValue = () => { - /**/ - }; - setAccessor(elm, 'onClick', orgValue, newValue, false, 0); - expect(addEventSpy).toHaveBeenCalledTimes(2); - expect(removeEventSpy).toHaveBeenCalledTimes(1); - }); - it('should add custom event listener when no old value', () => { - const addEventSpy = jest.spyOn(elm, 'addEventListener'); - const removeEventSpy = jest.spyOn(elm, 'removeEventListener'); - const newValue = () => { - /**/ - }; - setAccessor(elm, 'onIonChange', undefined, newValue, false, 0); - expect(addEventSpy).toHaveBeenCalledWith('ionChange', newValue, false); - expect(removeEventSpy).not.toHaveBeenCalled(); - }); - it('should add standardized multiple-word event listener when no old value', () => { - const addEventSpy = jest.spyOn(elm, 'addEventListener'); - const removeEventSpy = jest.spyOn(elm, 'removeEventListener'); - const newValue = () => { - /**/ - }; - setAccessor(elm, 'onMouseOver', undefined, newValue, false, 0); - expect(addEventSpy).toHaveBeenCalledWith('mouseover', newValue, false); - expect(removeEventSpy).not.toHaveBeenCalled(); - }); - it('should add standardized event listener when no old value', () => { - const addEventSpy = jest.spyOn(elm, 'addEventListener'); - const removeEventSpy = jest.spyOn(elm, 'removeEventListener'); - const newValue = () => { - /**/ - }; - setAccessor(elm, 'onClick', undefined, newValue, false, 0); - expect(addEventSpy).toHaveBeenCalledWith('click', newValue, false); - expect(removeEventSpy).not.toHaveBeenCalled(); - }); - it('should add a capture style event listener', () => { - const addEventSpy = jest.spyOn(elm, 'addEventListener'); - const removeEventSpy = jest.spyOn(elm, 'removeEventListener'); - const newValue = () => { - /**/ - }; - setAccessor(elm, 'onClickCapture', undefined, newValue, false, 0); - expect(addEventSpy).toHaveBeenCalledWith('click', newValue, true); - expect(removeEventSpy).not.toHaveBeenCalled(); - }); - it('should remove a capture style event listener', () => { - const addEventSpy = jest.spyOn(elm, 'addEventListener'); - const removeEventSpy = jest.spyOn(elm, 'removeEventListener'); - const orgValue = () => { - /**/ - }; - setAccessor(elm, 'onClickCapture', undefined, orgValue, false, 0); - setAccessor(elm, 'onClickCapture', orgValue, undefined, false, 0); - expect(addEventSpy).toHaveBeenCalledTimes(1); - expect(addEventSpy).toHaveBeenCalledWith('click', orgValue, true); - expect(removeEventSpy).toHaveBeenCalledWith('click', orgValue, true); - }); - }); - it('should set object property to child', () => { - const oldValue = 'someval'; - const newValue = { some: 'obj' }; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.myprop).toBe(newValue); - expect(elm.hasAttribute('myprop')).toBe(false); - }); - it('should set array property to child', () => { - const oldValue = 'someval'; - const newValue = [1, 2, 3]; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.myprop).toBe(newValue); - expect(elm.hasAttribute('myprop')).toBe(false); - }); - it('should not set ref as a property', () => { - const oldValue = 'someval'; - const newValue = function meFun() { - /**/ - }; - setAccessor(elm, 'ref', oldValue, newValue, false, 0); - expect(elm.ref).toBeUndefined(); - expect(elm.hasAttribute('ref')).toBe(false); - }); - it('should set function property to child', () => { - const oldValue = 'someval'; - const newValue = function meFun() { - /**/ - }; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.myprop).toBe(newValue); - expect(elm.hasAttribute('myprop')).toBe(false); - }); - it('should set null property to child and it is a child prop', () => { - const oldValue = 'someval'; - const newValue = null; - elm.myprop = oldValue; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.hasAttribute('myprop')).toBe(false); - }); - it('should set string property to child when child already has that property', () => { - const oldValue = 'someval'; - const newValue = 'stringval'; - elm.myprop = oldValue; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.myprop).toBe('stringval'); - expect(elm.hasAttribute('myprop')).toBe(false); - }); - it('should set null property to child when known child component should have that property', () => { - elm = document.createElement('cmp-a'); - const oldValue = 'someval'; - const newValue = null; - elm.cmpAprop = oldValue; - setAccessor(elm, 'cmpAprop', oldValue, newValue, false, 0); - expect(elm.cmpAprop).toBe(null); - expect(elm.hasAttribute('cmpAprop')).toBe(false); - }); - it('should do nothing when setting null prop but child doesnt have that prop', () => { - const oldValue = 'someval'; - const newValue = null; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.myprop).toBeUndefined(); - expect(elm.hasAttribute('myprop')).toBe(false); - }); - it('should do nothing when setting undefined prop but child doesnt have that prop', () => { - const oldValue = 'someval'; - const newValue = undefined; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.myprop).toBeUndefined(); - expect(elm.hasAttribute('myprop')).toBe(false); - const propDesc = Object.getOwnPropertyDescriptor(elm, 'myprop'); - expect(propDesc).toBeUndefined(); - }); - it('should set false boolean to attribute', () => { - const oldValue = 'someval'; - const newValue = false; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.myprop).toBeUndefined(); - expect(elm).toEqualAttributes({}); - }); - it('should add aria role attribute', () => { - setAccessor(elm, 'role', undefined, 'tab', true, 0); - expect(elm.hasAttribute('role')).toBe(true); - expect(elm.getAttribute('role')).toBe('tab'); - }); - it('should update aria role attribute', () => { - elm.setAttribute('role', 'tab'); - setAccessor(elm, 'role', 'tab', 'other', true, 0); - expect(elm.getAttribute('role')).toBe('other'); - }); - it('should remove aria role attribute', () => { - elm.setAttribute('role', 'tab'); - setAccessor(elm, 'role', 'tab', undefined, true, 0); - expect(elm.hasAttribute('role')).toBe(false); - }); - it('should update svg attribute', () => { - elm.setAttribute('transform', 'rotate(45 72 72)'); - const oldValue = 'rotate(45 72 72)'; - const newValue = 'rotate(45 27 27)'; - setAccessor(elm, 'transform', oldValue, newValue, true, 0); - expect(elm.transform).toBeUndefined(); - expect(elm.getAttribute('transform')).toBe('rotate(45 27 27)'); - }); - it('should add svg attribute', () => { - const oldValue = undefined; - const newValue = 'rotate(45 27 27)'; - setAccessor(elm, 'transform', oldValue, newValue, true, 0); - expect(elm.transform).toBeUndefined(); - expect(elm.hasAttribute('transform')).toBe(true); - }); - it('should remove svg attribute', () => { - elm.setAttribute('transform', 'rotate(45 27 27)'); - const oldValue = 'rotate(45 27 27)'; - const newValue = undefined; - setAccessor(elm, 'transform', oldValue, newValue, true, 0); - expect(elm.transform).toBeUndefined(); - expect(elm.hasAttribute('transform')).toBe(false); - }); - it('should set true boolean to attribute', () => { - const oldValue = 'someval'; - const newValue = true; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.myprop).toBeUndefined(); - expect(elm).toEqualAttributes({ myprop: '' }); - }); - it('should set number to attribute', () => { - const oldValue = 'someval'; - const newValue = 88; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.myprop).toBeUndefined(); - expect(elm).toEqualAttributes({ myprop: '88' }); - }); - it('should set string to attribute', () => { - const oldValue = 'someval'; - const newValue = 'stringval'; - setAccessor(elm, 'myprop', oldValue, newValue, false, 0); - expect(elm.myprop).toBeUndefined(); - expect(elm).toEqualAttributes({ myprop: 'stringval' }); - }); - it('ignore when updating readonly properties', () => { - const readOnlyProp = 'namespaceURI'; - const oldReadOnlyVal = 'http://www.w3.org/1999/xhtml'; - setAccessor(elm, readOnlyProp, oldReadOnlyVal, 'foobar', false, 0); - expect(elm[readOnlyProp]).toBe(oldReadOnlyVal); - }); -}); -describe('setAccessor for inputs', () => { - describe('simple attributes', () => { - describe('should not add attribute when prop is undefined or null', () => { - function expectStraightForwardAttribute(propName, newValue, oldValue) { - const inputElm = document.createElement('input'); - setAccessor(inputElm, propName, oldValue, newValue, false, 0); - expect(inputElm.hasAttribute(propName)).toBe(false); - } - it(`aria-disabled`, () => { - expectStraightForwardAttribute('aria-disabled', undefined, undefined); - expectStraightForwardAttribute('aria-disabled', null, undefined); - }); - it(`autoCapitalize`, () => { - expectStraightForwardAttribute('autoCapitalize', undefined, undefined); - expectStraightForwardAttribute('autoCapitalize', null, undefined); - }); - it(`autoComplete`, () => { - expectStraightForwardAttribute('autoComplete', undefined, undefined); - expectStraightForwardAttribute('autoComplete', null, undefined); - }); - it(`autoCorrect`, () => { - expectStraightForwardAttribute('autoCorrect', undefined, undefined); - expectStraightForwardAttribute('autoCorrect', null, undefined); - }); - it(`autoFocus`, () => { - expectStraightForwardAttribute('autoFocus', undefined, undefined); - expectStraightForwardAttribute('autoFocus', null, undefined); - }); - it(`inputMode`, () => { - expectStraightForwardAttribute('inputMode', undefined, undefined); - expectStraightForwardAttribute('inputMode', null, undefined); - }); - it(`results`, () => { - expectStraightForwardAttribute('results', undefined, undefined); - expectStraightForwardAttribute('results', null, undefined); - }); - it(`spellCheck`, () => { - expectStraightForwardAttribute('spellCheck', undefined, undefined); - expectStraightForwardAttribute('spellCheck', null, undefined); - }); - it('checked', () => { - const inputElm = document.createElement('input'); - setAccessor(inputElm, 'checked', false, true, false, 0); - expect(inputElm.checked).toEqual(true); - setAccessor(inputElm, 'checked', true, false, false, 0); - expect(inputElm.checked).toEqual(false); - }); - }); - describe('should update when prop is defined', () => { - function expectStraightForwardAttribute(propName, newValue, oldValue) { - const inputElm = document.createElement('input'); - setAccessor(inputElm, propName, oldValue, newValue, false, 0); - const expected = newValue === true ? '' : newValue.toString(); - expect(inputElm).toEqualAttributes({ [propName]: expected }); - } - it(`aria-disabled should be added when set to true`, () => { - expectStraightForwardAttribute('aria-disabled', true, undefined); - }); - it(`autoCapitalize should be added when set to 'sentences'`, () => { - expectStraightForwardAttribute('autoCapitalize', 'sentences', undefined); - }); - it(`autoComplete should be added when set to true`, () => { - expectStraightForwardAttribute('autoComplete', true, undefined); - }); - it(`autoCorrect should be added when set to true`, () => { - expectStraightForwardAttribute('autoCorrect', true, undefined); - }); - it(`autoFocus should be added when set to true`, () => { - expectStraightForwardAttribute('autoFocus', true, undefined); - }); - it(`inputMode should be added when set to 'numeric'`, () => { - expectStraightForwardAttribute('inputMode', 'numeric', undefined); - }); - it(`results should be added when set to 'blah'`, () => { - expectStraightForwardAttribute('results', 'blah', undefined); - }); - it(`spellCheck should be added when set to true`, () => { - expectStraightForwardAttribute('spellCheck', true, undefined); - }); - }); - }); - describe('special attributes', () => { - describe('should not add attribute when prop is undefined or null', () => { - function expectSpecialAttribute(propName, newValue, oldValue) { - const inputElm = document.createElement('input'); - setAccessor(inputElm, propName, oldValue, newValue, false, 0); - expect(inputElm).toEqualAttributes({}); - } - it(`accept`, () => { - expectSpecialAttribute('accept', undefined, undefined); - expectSpecialAttribute('accept', null, undefined); - }); - it(`minLength`, () => { - expectSpecialAttribute('minLength', undefined, undefined); - expectSpecialAttribute('minLength', null, undefined); - }); - it(`maxLength`, () => { - expectSpecialAttribute('maxLength', undefined, undefined); - expectSpecialAttribute('maxLength', null, undefined); - }); - it(`name`, () => { - expectSpecialAttribute('name', undefined, undefined); - expectSpecialAttribute('name', null, undefined); - }); - it(`pattern`, () => { - expectSpecialAttribute('pattern', undefined, undefined); - expectSpecialAttribute('pattern', null, undefined); - }); - it(`placeholder`, () => { - expectSpecialAttribute('placeholder', undefined, undefined); - expectSpecialAttribute('placeholder', null, undefined); - }); - it(`step`, () => { - expectSpecialAttribute('step', undefined, undefined); - expectSpecialAttribute('step', null, undefined); - }); - it(`size`, () => { - expectSpecialAttribute('size', undefined, undefined); - expectSpecialAttribute('size', null, undefined); - }); - it(`type`, () => { - expectSpecialAttribute('type', undefined, undefined); - expectSpecialAttribute('type', null, undefined); - }); - }); - describe('should update when prop is defined', () => { - function expectSpecialAttributeDefined(propName, newValue, oldValue) { - const inputElm = document.createElement('input'); - setAccessor(inputElm, propName, oldValue, newValue, false, 0); - expect(inputElm).toEqualAttributes({ [propName]: newValue.toString() }); - expect(inputElm[propName]).toBe(newValue); - } - it(`accept should be added when set to 'text/html'`, () => { - expectSpecialAttributeDefined('accept', 'text/html', undefined); - }); - it(`minLength should be added when set to 10`, () => { - expectSpecialAttributeDefined('minLength', 10, undefined); - }); - it(`maxLength should be added when set to 100`, () => { - expectSpecialAttributeDefined('maxLength', 100, undefined); - }); - it(`name should be added when set to 'test'`, () => { - expectSpecialAttributeDefined('name', 'test', undefined); - }); - it(`pattern should be added when set to '[a-zA-Z0-9]+'`, () => { - expectSpecialAttributeDefined('pattern', '[a-zA-Z0-9]+', undefined); - }); - it(`placeholder should be added when set to 'text placeholder'`, () => { - expectSpecialAttributeDefined('placeholder', 'text placeholder', undefined); - }); - it(`step should be added when set to 'any'`, () => { - expectSpecialAttributeDefined('step', 'any', undefined); - }); - it(`size should be added when set to 40`, () => { - expectSpecialAttributeDefined('size', 40, undefined); - }); - it(`type should be added when set to 'tel'`, () => { - expectSpecialAttributeDefined('type', 'tel', undefined); - }); - }); - }); - describe('boolean attributes', () => { - describe('should not add attribute when prop is undefined or null', () => { - function expectBooleanAttribute(propName, newValue, oldValue) { - const inputElm = document.createElement('input'); - setAccessor(inputElm, propName, oldValue, newValue, false, 0); - expect(inputElm.hasAttribute(propName)).toBe(false); - } - it(`disabled`, () => { - expectBooleanAttribute('disabled', undefined, undefined); - expectBooleanAttribute('disabled', null, undefined); - }); - it(`multiple`, () => { - expectBooleanAttribute('multiple', undefined, undefined); - expectBooleanAttribute('multiple', null, undefined); - }); - it(`required`, () => { - expectBooleanAttribute('required', undefined, undefined); - expectBooleanAttribute('required', null, undefined); - }); - it(`readOnly`, () => { - expectBooleanAttribute('readOnly', undefined, undefined); - expectBooleanAttribute('readOnly', null, undefined); - }); - }); - describe('should update when prop is defined', () => { - function expectBooleanAttributeDefined(propName, newValue, oldValue) { - const inputElm = document.createElement('input'); - setAccessor(inputElm, propName, oldValue, newValue, false, 0); - expect(inputElm).toEqualAttributes({ [propName]: '' }); - expect(inputElm[propName]).toBe(newValue); - } - it(`disabled should be added when set to true`, () => { - expectBooleanAttributeDefined('disabled', true, undefined); - }); - it(`multiple should be added when set to true`, () => { - expectBooleanAttributeDefined('multiple', true, undefined); - }); - it(`required should be added when set to true`, () => { - expectBooleanAttributeDefined('required', true, undefined); - }); - it(`readOnly should be added when set to true`, () => { - expectBooleanAttributeDefined('readOnly', true, undefined); - }); - }); - }); - describe('min/max attributes', () => { - describe('should not add attribute when prop is undefined or null', () => { - function expectMinMaxAttribute(propName, newValue, oldValue) { - const inputElm = document.createElement('input'); - setAccessor(inputElm, propName, oldValue, newValue, false, 0); - expect(inputElm.hasAttribute(propName)).toBe(false); - } - it(`min`, () => { - expectMinMaxAttribute('min', undefined, undefined); - expectMinMaxAttribute('min', null, undefined); - }); - it(`max`, () => { - expectMinMaxAttribute('max', undefined, undefined); - expectMinMaxAttribute('max', null, undefined); - }); - }); - describe('should update when prop is defined', () => { - function expectMinMaxAttributeDefined(propName, newValue, oldValue) { - const inputElm = document.createElement('input'); - setAccessor(inputElm, propName, oldValue, newValue, false, 0); - expect(inputElm).toEqualAttributes({ [propName]: newValue.toString() }); - expect(inputElm[propName]).toBe(newValue.toString()); - } - it(`min should be added when set to 20`, () => { - expectMinMaxAttributeDefined('min', 20, undefined); - }); - it(`max should be added when set to 40`, () => { - expectMinMaxAttributeDefined('max', 40, undefined); - }); - }); - }); -}); -describe('setAccessor for standard html elements', () => { - describe('simple global attributes', () => { - it('should not add attribute when prop is undefined or null', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'title', undefined, undefined, false, 0); - expect(inputElm.hasAttribute('title')).toBe(false); - }); - it('should add attribute when prop is string', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'title', undefined, 'lime', false, 0); - expect(inputElm.hasAttribute('title')).toBe(true); - }); - it('should add attribute when prop is boolean', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'color', undefined, true, false, 0); - expect(inputElm.hasAttribute('color')).toBe(true); - }); - it('should add attribute when prop is number', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'color', undefined, 1, false, 0); - expect(inputElm.hasAttribute('color')).toBe(true); - }); - it('should remove attribute when prop is undefined', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'title', undefined, 'lime', false, 0); - setAccessor(inputElm, 'title', 'lime', undefined, false, 0); - expect(inputElm.hasAttribute('title')).toBe(false); - }); - it('should remove attribute when prop is null', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'title', undefined, 'lime', false, 0); - setAccessor(inputElm, 'title', 'lime', null, false, 0); - expect(inputElm.hasAttribute('title')).toBe(false); - }); - }); - describe('simple nonstandard attributes', () => { - it('should not add attribute when prop is undefined or null', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'color', undefined, undefined, false, 0); - expect(inputElm.hasAttribute('color')).toBe(false); - }); - it('should add attribute when prop is string', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'color', undefined, 'lime', false, 0); - expect(inputElm.hasAttribute('color')).toBe(true); - }); - it('should add attribute when prop is boolean', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'color', undefined, true, false, 0); - expect(inputElm.hasAttribute('color')).toBe(true); - }); - it('should add attribute when prop is number', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'color', undefined, 1, false, 0); - expect(inputElm.hasAttribute('color')).toBe(true); - }); - it('should aria role attribute', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'role', undefined, 'main', false, 0); - expect(inputElm.hasAttribute('role')).toBe(true); - }); - it('should remove attribute when prop is undefined', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'color', undefined, 1, false, 0); - setAccessor(inputElm, 'color', 1, undefined, false, 0); - expect(inputElm.hasAttribute('color')).toBe(false); - }); - it('should remove attribute when prop is null', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'color', undefined, 1, false, 0); - setAccessor(inputElm, 'color', 1, null, false, 0); - expect(inputElm.hasAttribute('color')).toBe(false); - }); - it('should remove aria role attribute', () => { - const inputElm = document.createElement('section'); - setAccessor(inputElm, 'role', undefined, 'main', false, 0); - setAccessor(inputElm, 'role', 'main', undefined, false, 0); - expect(inputElm.hasAttribute('role')).toBe(false); - }); - }); - describe('class attribute', () => { - it('should add classes', () => { - const elm = document.createElement('section'); - setAccessor(elm, 'class', undefined, 'class1 class2 class3 ', false, 0); - expect(elm).toHaveClasses(['class1', 'class2', 'class3']); - setAccessor(elm, 'class', undefined, 'new', false, 0); - expect(elm).toHaveClasses(['class1', 'class2', 'class3', 'new']); - setAccessor(elm, 'class', ' class1 class2', 'new class4', false, 0); - expect(elm).toHaveClasses(['class3', 'new', 'class4']); - setAccessor(elm, 'class', undefined, `class1 - class2 - class3 `, false, 0); - expect(elm).toHaveClasses(['class1', 'class2', 'class3']); - }); - it('should not add any classes', () => { - const elm = document.createElement('section'); - setAccessor(elm, 'class', '', '', false, 0); - expect(elm).toHaveClasses([]); - setAccessor(elm, 'class', 'class1 class3 class2', 'class1 class2 class3', false, 0); - expect(elm).toHaveClasses([]); - setAccessor(elm, 'class', 'class1 class3 class2', undefined, false, 0); - expect(elm).toHaveClasses([]); - setAccessor(elm, 'class', undefined, undefined, false, 0); - expect(elm).toHaveClasses([]); - setAccessor(elm, 'class', '', `\n \n \n `, false, 0); - expect(elm).toHaveClasses([]); - }); - it('should remove classes', () => { - const elm = document.createElement('section'); - elm.classList.add('icon', 'ion-color'); - setAccessor(elm, 'class', 'icon', 'icon2', false, 0); - expect(elm).toHaveClasses(['ion-color', 'icon2']); - setAccessor(elm, 'class', `icon - ion-color`, 'icon2', false, 0); - expect(elm).toHaveClasses(['icon2']); - }); - it('should not have duplicated classes', () => { - const elm = document.createElement('section'); - elm.classList.add('md'); - setAccessor(elm, 'class', undefined, 'md ios', false, 0); - expect(elm.className).toEqual('md ios'); - }); - it('should also add one class', () => { - const elm = document.createElement('section'); - elm.classList.add('md'); - setAccessor(elm, 'class', 'md', 'md ios', false, 0); - expect(elm.className).toEqual('md ios'); - }); - it('should remove one class', () => { - const elm = document.createElement('section'); - elm.classList.add('md'); - setAccessor(elm, 'class', 'md', '', false, 0); - expect(elm.className).toEqual(''); - }); - }); - describe('style attribute', () => { - it('should add styles', () => { - let elm = document.createElement('section'); - const newStyles = { - 'box-shadow': '1px', - color: 'blue', - paddingLeft: '88px', - }; - setAccessor(elm, 'style', undefined, newStyles, false, 0); - expect(elm.style.cssText).toEqual('box-shadow: 1px; color: blue; padding-left: 88px;'); - elm = document.createElement('my-tag'); - setAccessor(elm, 'style', {}, { - 'font-size': '12px', - marginRight: '55px', - }, false, 0); - expect(elm.style.cssText).toEqual('font-size: 12px; margin-right: 55px;'); - elm = document.createElement('my-tag'); - setAccessor(elm, 'style', { - 'font-size': '12px', - color: 'blue', - }, { - 'font-size': '20px', - }, false, 0); - expect(elm.style.cssText).toEqual('font-size: 20px;'); - }); - it('should not add styles', () => { - const elm = document.createElement('section'); - setAccessor(elm, 'style', undefined, undefined, false, 0); - expect(elm.style.cssText).toEqual(''); - setAccessor(elm, 'style', { color: 'blue', 'font-size': '12px', paddingLeft: '88px' }, { color: 'blue', 'font-size': '12px', paddingLeft: '88px' }, false, 0); - expect(elm.style.cssText).toEqual(''); - setAccessor(elm, 'style', { color: 'blue', 'font-size': '12px' }, undefined, false, 0); - expect(elm.style.cssText).toEqual(''); - }); - it('should change styles only when it has a new value', () => { - const elm = document.createElement('section'); - elm.style.setProperty('color', 'black'); - elm.style.setProperty('padding', '20px'); - setAccessor(elm, 'style', { color: 'blue', padding: '20px', marginRight: '88px' }, { color: 'blue', padding: '30px', marginRight: '55px' }, false, 0); - expect(elm.style.cssText).toEqual('color: black; padding: 30px; margin-right: 55px;'); - }); - it('should remove styles', () => { - const elm = document.createElement('section'); - elm.style.setProperty('color', 'black'); - elm.style.setProperty('padding', '20px'); - elm.style.setProperty('margin', '20px'); - elm.style.setProperty('font-size', '88px'); - expect(elm.style.cssText).toEqual('color: black; padding: 20px; margin: 20px; font-size: 88px;'); - setAccessor(elm, 'style', { color: 'black', padding: '20px', fontSize: '88px' }, undefined, false, 0); - expect(elm.style.cssText).toEqual('margin: 20px;'); - setAccessor(elm, 'style', { margin: '20px' }, { margin: '30px', color: 'orange' }, false, 0); - expect(elm.style.cssText).toEqual('margin: 30px; color: orange;'); - }); - }); -}); -//# sourceMappingURL=set-accessor.spec.js.map \ No newline at end of file diff --git a/build/runtime/vdom/test/set-accessor.spec.js.map b/build/runtime/vdom/test/set-accessor.spec.js.map deleted file mode 100644 index 2c2f8ed0279..00000000000 --- a/build/runtime/vdom/test/set-accessor.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"set-accessor.spec.js","sourceRoot":"","sources":["../../../../src/runtime/vdom/test/set-accessor.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,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C;YACxC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACzC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YACxC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;YAE3C,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,6DAA6D,CAAC,CAAC;YAEjG,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YACtG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;YAEnD,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YAC7F,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;QACpE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/runtime/vdom/test/to-vnode.d.ts b/build/runtime/vdom/test/to-vnode.d.ts deleted file mode 100644 index 3b4650a7be9..00000000000 --- a/build/runtime/vdom/test/to-vnode.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../../declarations'; -export declare function toVNode(node: Node): d.VNode; diff --git a/build/runtime/vdom/test/to-vnode.js b/build/runtime/vdom/test/to-vnode.js deleted file mode 100644 index 9ff50c15454..00000000000 --- a/build/runtime/vdom/test/to-vnode.js +++ /dev/null @@ -1,23 +0,0 @@ -import { newVNode } from '../h'; -export function toVNode(node) { - if (node.nodeType === 3 /* NODE_TYPE.TextNode */) { - const vnode = newVNode(null, node.textContent); - vnode.$elm$ = node; - return vnode; - } - else if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) { - const vnode = newVNode(node.nodeName.toLowerCase(), null); - vnode.$elm$ = node; - const childNodes = node.childNodes; - let childVnode; - for (let i = 0, l = childNodes.length; i < l; i++) { - childVnode = toVNode(childNodes[i]); - if (childVnode) { - (vnode.$children$ = vnode.$children$ || []).push(childVnode); - } - } - return vnode; - } - return null; -} -//# sourceMappingURL=to-vnode.js.map \ No newline at end of file diff --git a/build/runtime/vdom/test/to-vnode.js.map b/build/runtime/vdom/test/to-vnode.js.map deleted file mode 100644 index 9d84b484fe2..00000000000 --- a/build/runtime/vdom/test/to-vnode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"to-vnode.js","sourceRoot":"","sources":["../../../../src/runtime/vdom/test/to-vnode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEhC,MAAM,UAAU,OAAO,CAAC,IAAU;IAChC,IAAI,IAAI,CAAC,QAAQ,+BAAuB,EAAE;QACxC,MAAM,KAAK,GAAY,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QACxD,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;QACnB,OAAO,KAAK,CAAC;KACd;SAAM,IAAI,IAAI,CAAC,QAAQ,kCAA0B,EAAE;QAClD,MAAM,KAAK,GAAY,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;QAEnB,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACnC,IAAI,UAAmB,CAAC;QAExB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YACjD,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACpC,IAAI,UAAU,EAAE;gBACd,CAAC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9D;SACF;QACD,OAAO,KAAK,CAAC;KACd;IAED,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/build/runtime/vdom/test/to-vnode.spec.d.ts b/build/runtime/vdom/test/to-vnode.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/runtime/vdom/test/to-vnode.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/runtime/vdom/test/to-vnode.spec.js b/build/runtime/vdom/test/to-vnode.spec.js deleted file mode 100644 index 80bc776db6c..00000000000 --- a/build/runtime/vdom/test/to-vnode.spec.js +++ /dev/null @@ -1,37 +0,0 @@ -import { toVNode } from './to-vnode'; -describe('toVNode()', () => { - it('should create element w/ child elements and text nodes', () => { - const elm = document.createElement('h1'); - elm.innerHTML = '
1 2
'; - const vnode = toVNode(elm); - expect(vnode.$elm$).toBe(elm); - expect(vnode.$tag$).toBe('h1'); - expect(vnode.$children$).toBeDefined(); - expect(vnode.$children$.length).toBe(1); - expect(vnode.$children$[0].$tag$).toBe('div'); - expect(vnode.$children$[0].$children$).toBeDefined(); - expect(vnode.$children$[0].$children$.length).toBe(3); - expect(vnode.$children$[0].$children$[0].$text$).toBe(' 1 '); - expect(vnode.$children$[0].$children$[1].$tag$).toBe('span'); - expect(vnode.$children$[0].$children$[2].$text$).toBe(' '); - expect(vnode.$children$[0].$children$[1].$children$[0].$text$).toBe(' 2 '); - }); - it('should create element w/ child text node', () => { - const elm = document.createElement('h1'); - elm.textContent = '88mph'; - const vnode = toVNode(elm); - expect(vnode.$elm$).toBe(elm); - expect(vnode.$tag$).toBe('h1'); - expect(vnode.$children$).toBeDefined(); - expect(vnode.$children$.length).toBe(1); - expect(vnode.$children$[0].$text$).toBe('88mph'); - }); - it('should create element', () => { - const elm = document.createElement('h1'); - const vnode = toVNode(elm); - expect(vnode.$elm$).toBe(elm); - expect(vnode.$tag$).toBe('h1'); - expect(vnode.$children$).toBeNull(); - }); -}); -//# sourceMappingURL=to-vnode.spec.js.map \ No newline at end of file diff --git a/build/runtime/vdom/test/to-vnode.spec.js.map b/build/runtime/vdom/test/to-vnode.spec.js.map deleted file mode 100644 index 5c55d26be5f..00000000000 --- a/build/runtime/vdom/test/to-vnode.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"to-vnode.spec.js","sourceRoot":"","sources":["../../../../src/runtime/vdom/test/to-vnode.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;QAChE,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,GAAG,CAAC,SAAS,GAAG,iDAAiD,CAAC;QAElE,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QAE3B,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC9B,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE/B,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;QACvC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAExC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,K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I,CAAC,CAAC;QAC/B,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;QACvC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACxC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;QAC/B,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QAC3B,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC9B,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/runtime/vdom/test/update-element.spec.d.ts b/build/runtime/vdom/test/update-element.spec.d.ts deleted file mode 100644 index cb0ff5c3b54..00000000000 --- a/build/runtime/vdom/test/update-element.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/build/runtime/vdom/test/update-element.spec.js b/build/runtime/vdom/test/update-element.spec.js deleted file mode 100644 index 32671297292..00000000000 --- a/build/runtime/vdom/test/update-element.spec.js +++ /dev/null @@ -1,187 +0,0 @@ -import { newVNode } from '../h'; -import * as setAccessor from '../set-accessor'; -import { updateElement } from '../update-element'; -describe('updateElement', () => { - const createTestNode = (overrides = {}) => ({ - ...newVNode('div', ''), - ...overrides, - }); - it('should add/remove classes', () => { - const elm = document.createElement('my-tag'); - elm.className = 'mr plutonium'; - const oldVNode = { - ...newVNode('div', ''), - $flags$: 0, - $attrs$: { class: 'mr plutonium' }, - }; - const newNode = { - ...newVNode('div', ''), - $flags$: 0, - $elm$: elm, - $attrs$: { class: 'mr fusion' }, - }; - updateElement(oldVNode, newNode, false); - expect(elm.className).toBe('mr fusion'); - }); - it('should remove classes when oldVNode.vattrs but no newVNode.attrs', () => { - const elm = document.createElement('my-tag'); - elm.className = 'mr fusion'; - const oldVNode = createTestNode({ - $flags$: 0, - $attrs$: { class: 'mr fusion' }, - }); - const newVnode = createTestNode({ - $flags$: 0, - $elm$: elm, - }); - updateElement(oldVNode, newVnode, false); - expect(elm.className).toBe(''); - }); - it('should do nothing when class is unchanged', () => { - const elm = document.createElement('my-tag'); - elm.className = 'mr fusion'; - const oldVNode = createTestNode({ - $flags$: 0, - $attrs$: { class: 'mr fusion' }, - }); - const newVnode = createTestNode({ - $flags$: 0, - $elm$: elm, - $attrs$: { class: 'mr fusion' }, - }); - updateElement(oldVNode, newVnode, false); - expect(elm.className).toBe('mr fusion'); - }); - it('should add new classes when no oldVNode.vattrs', () => { - const elm = document.createElement('my-tag'); - const oldVNode = newVNode('my-component', 'text value'); - const newVnode = newVNode('my-component', 'text value'); - newVnode.$elm$ = elm; - newVnode.$attrs$ = { class: 'mr fusion' }; - updateElement(oldVNode, newVnode, false); - expect(elm.className).toBe('mr fusion'); - }); - it('should add new class when no oldVNode', () => { - const elm = document.createElement('my-tag'); - const oldVNode = null; - const newVnode = createTestNode({ - $flags$: 0, - $elm$: elm, - $attrs$: { class: 'mr fusion' }, - }); - updateElement(oldVNode, newVnode, false); - expect(elm.className).toBe('mr fusion'); - }); - it('should do nothing when no newVnode attrs', () => { - expect(() => { - const elm = document.createElement('my-tag'); - const oldVNode = null; - const newVnode = createTestNode({ - $flags$: 0, - $elm$: elm, - }); - updateElement(oldVNode, newVnode, false); - }).not.toThrow(); - }); - it('should use host element on shadow root element when using shadow dom', () => { - const elm = { - host: document.createElement('div'), - nodeType: 11 /* NODE_TYPE.DocumentFragment */, - }; - const oldVNode = null; - const newVnode = createTestNode({ - $flags$: 0, - $elm$: elm, - $attrs$: { - class: 'mr fusion', - style: { color: 'gray' }, - }, - }); - updateElement(oldVNode, newVnode, false); - expect(elm.host.className).toBe('mr fusion'); - expect(elm.host.style.color).toBe('gray'); - }); - it('should use host element when using an element with a "host" property', () => { - const elm = document.createElement('a'); - elm.host = 'localhost:8888'; - const oldVNode = null; - const newVnode = createTestNode({ - $flags$: 0, - $elm$: elm, - $attrs$: { - class: 'mr fusion', - style: { color: 'gray' }, - }, - }); - updateElement(oldVNode, newVnode, false); - expect(elm.className).toBe('mr fusion'); - expect(elm.style.color).toBe('gray'); - }); - it('should use host element when not shadow dom', () => { - const elm = document.createElement('my-tag'); - const oldVNode = null; - const newVnode = createTestNode({ - $flags$: 0, - $elm$: elm, - $attrs$: { - class: 'mr fusion', - style: { color: 'gray' }, - }, - }); - updateElement(oldVNode, newVnode, false); - expect(elm.className).toBe('mr fusion'); - expect(elm.style.color).toBe('gray'); - }); - it('max test', () => { - const spy = jest.spyOn(setAccessor, 'setAccessor'); - const elm = document.createElement('section'); - const initialVNode = null; - const firstVNode = createTestNode({ - $flags$: 0, - $elm$: elm, - $attrs$: { - content: 'attributes removed', - padding: false, - bold: 'false', - 'no-attr': null, - }, - }); - const secondVNode = createTestNode({ - $flags$: 0, - $elm$: elm, - $attrs$: { - content: 'attributes added', - padding: true, - bold: 'true', - margin: '', - color: 'lime', - 'no-attr': null, - }, - }); - updateElement(initialVNode, firstVNode, false); - expect(spy).toHaveBeenCalledTimes(4); - expect(spy).toHaveBeenNthCalledWith(1, elm, 'content', undefined, 'attributes removed', false, 0); - expect(spy).toHaveBeenNthCalledWith(2, elm, 'padding', undefined, false, false, 0); - expect(spy).toHaveBeenNthCalledWith(3, elm, 'bold', undefined, 'false', false, 0); - expect(spy).toHaveBeenNthCalledWith(4, elm, 'no-attr', undefined, null, false, 0); - spy.mockReset(); - updateElement(firstVNode, secondVNode, false); - expect(spy).toHaveBeenCalledTimes(6); - expect(spy).toHaveBeenNthCalledWith(1, elm, 'content', 'attributes removed', 'attributes added', false, 0); - expect(spy).toHaveBeenNthCalledWith(2, elm, 'padding', false, true, false, 0); - expect(spy).toHaveBeenNthCalledWith(3, elm, 'bold', 'false', 'true', false, 0); - expect(spy).toHaveBeenNthCalledWith(4, elm, 'margin', undefined, '', false, 0); - expect(spy).toHaveBeenNthCalledWith(5, elm, 'color', undefined, 'lime', false, 0); - spy.mockReset(); - updateElement(secondVNode, firstVNode, false); - expect(spy).toHaveBeenCalledTimes(6); - expect(spy).toHaveBeenNthCalledWith(1, elm, 'margin', '', undefined, false, 0); - expect(spy).toHaveBeenNthCalledWith(2, elm, 'color', 'lime', undefined, false, 0); - expect(spy).toHaveBeenNthCalledWith(3, elm, 'content', 'attributes added', 'attributes removed', false, 0); - expect(spy).toHaveBeenNthCalledWith(4, elm, 'padding', true, false, false, 0); - expect(spy).toHaveBeenNthCalledWith(5, elm, 'bold', 'true', 'false', false, 0); - spy.mockReset(); - spy.mockRestore(); - }); -}); -//# sourceMappingURL=update-element.spec.js.map \ No newline at end of file diff --git a/build/runtime/vdom/test/update-element.spec.js.map b/build/runtime/vdom/test/update-element.spec.js.map deleted file mode 100644 index e51e8facdde..00000000000 --- a/build/runtime/vdom/test/update-element.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"update-element.spec.js","sourceRoot":"","sources":["../../../../src/runtime/vdom/test/update-element.spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,MAAM,cAAc,GAAG,CAAC,YAA8B,EAAE,EAAW,EAAE,CAAC,CAAC;QACrE,GAAG,QAAQ,CAAC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..00000000000 --- a/build/runtime/vdom/update-element.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type * as d from '../../declarations'; -export declare const updateElement: (oldVnode: d.VNode | null, newVnode: d.VNode, isSvgMode: boolean, memberName?: string) => void; diff --git a/build/runtime/vdom/update-element.js b/build/runtime/vdom/update-element.js deleted file mode 100644 index ee08175e07a..00000000000 --- a/build/runtime/vdom/update-element.js +++ /dev/null @@ -1,26 +0,0 @@ -import { BUILD } from '@app-data'; -import { EMPTY_OBJ } from '@utils'; -import { setAccessor } from './set-accessor'; -export const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => { - // if the element passed in is a shadow root, which is a document fragment - // then we want to be adding attrs/props to the shadow root's "host" element - // if it's not a shadow root, then we add attrs/props to the same element - const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host - ? newVnode.$elm$.host - : newVnode.$elm$; - const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ; - const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ; - if (BUILD.updatable) { - // remove attributes no longer present on the vnode by setting them to undefined - for (memberName in oldVnodeAttrs) { - if (!(memberName in newVnodeAttrs)) { - setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$); - } - } - } - // add new & update changed attributes - for (memberName in newVnodeAttrs) { - setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$); - } -}; -//# sourceMappingURL=update-element.js.map \ No newline at end of file diff --git a/build/runtime/vdom/update-element.js.map b/build/runtime/vdom/update-element.js.map deleted file mode 100644 index de6198a1858..00000000000 --- a/build/runtime/vdom/update-element.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"update-element.js","sourceRoot":"","sources":["../../../src/runtime/vdom/update-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAInC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,QAAwB,EACxB,QAAiB,EACjB,SAAkB,EAClB,UAAmB,EACb,EAAE;IACR,0EAA0E;IAC1E,4EAA4E;IAC5E,yEAAyE;IACzE,MAAM,GAAG,GACP,QAAQ,CAAC,KAAK,CAAC,QAAQ,wCAA+B,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI;QAC3E,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;QACrB,CAAC,CAAE,QAAQ,CAAC,KAAa,CAAC;IAC9B,MAAM,aAAa,GAAG,CAAC,QAAQ,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC;IAClE,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,IAAI,SAAS,CAAC;IAEpD,IAAI,KAAK,CAAC,SAAS,EAAE;QACnB,gFAAgF;QAChF,KAAK,UAAU,IAAI,aAAa,EAAE;YAChC,IAAI,CAAC,CAAC,UAAU,IAAI,aAAa,CAAC,EAAE;gBAClC,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;aACjG;SACF;KACF;IAED,sCAAsC;IACtC,KAAK,UAAU,IAAI,aAAa,EAAE;QAChC,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;KACjH;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/runtime/vdom/vdom-annotations.d.ts b/build/runtime/vdom/vdom-annotations.d.ts deleted file mode 100644 index 64d5f8deedc..00000000000 --- a/build/runtime/vdom/vdom-annotations.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Updates the DOM generated on the server with annotations such as node attributes and - * comment nodes to facilitate future client-side hydration. These annotations are used for things - * like moving elements back to their original hosts if using Shadow DOM on the client, and for quickly - * reconstructing the vNode representations of the DOM. - * - * @param doc The DOM generated by the server. - * @param staticComponents Any components that should be considered static and do not need client-side hydration. - */ -export declare const insertVdomAnnotations: (doc: Document, staticComponents: string[]) => void; diff --git a/build/runtime/vdom/vdom-annotations.js b/build/runtime/vdom/vdom-annotations.js deleted file mode 100644 index e0c34e33783..00000000000 --- a/build/runtime/vdom/vdom-annotations.js +++ /dev/null @@ -1,188 +0,0 @@ -import { getHostRef } from '@platform'; -import { CONTENT_REF_ID, HYDRATE_CHILD_ID, HYDRATE_ID, ORG_LOCATION_ID, SLOT_NODE_ID, TEXT_NODE_ID, } from '../runtime-constants'; -/** - * Updates the DOM generated on the server with annotations such as node attributes and - * comment nodes to facilitate future client-side hydration. These annotations are used for things - * like moving elements back to their original hosts if using Shadow DOM on the client, and for quickly - * reconstructing the vNode representations of the DOM. - * - * @param doc The DOM generated by the server. - * @param staticComponents Any components that should be considered static and do not need client-side hydration. - */ -export const insertVdomAnnotations = (doc, staticComponents) => { - if (doc != null) { - const docData = { - hostIds: 0, - rootLevelIds: 0, - staticComponents: new Set(staticComponents), - }; - const orgLocationNodes = []; - parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes); - orgLocationNodes.forEach((orgLocationNode) => { - if (orgLocationNode != null) { - const nodeRef = orgLocationNode['s-nr']; - let hostId = nodeRef['s-host-id']; - let nodeId = nodeRef['s-node-id']; - let childId = `${hostId}.${nodeId}`; - if (hostId == null) { - hostId = 0; - docData.rootLevelIds++; - nodeId = docData.rootLevelIds; - childId = `${hostId}.${nodeId}`; - if (nodeRef.nodeType === 1 /* NODE_TYPE.ElementNode */) { - nodeRef.setAttribute(HYDRATE_CHILD_ID, childId); - } - else if (nodeRef.nodeType === 3 /* NODE_TYPE.TextNode */) { - if (hostId === 0) { - const textContent = nodeRef.nodeValue.trim(); - if (textContent === '') { - // useless whitespace node at the document root - orgLocationNode.remove(); - return; - } - } - const commentBeforeTextNode = doc.createComment(childId); - commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`; - nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef); - } - } - let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`; - const orgLocationParentNode = orgLocationNode.parentElement; - if (orgLocationParentNode) { - if (orgLocationParentNode['s-en'] === '') { - // ending with a "." means that the parent element - // of this node's original location is a SHADOW dom element - // and this node is apart of the root level light dom - orgLocationNodeId += `.`; - } - else if (orgLocationParentNode['s-en'] === 'c') { - // ending with a ".c" means that the parent element - // of this node's original location is a SCOPED element - // and this node is apart of the root level light dom - orgLocationNodeId += `.c`; - } - } - orgLocationNode.nodeValue = orgLocationNodeId; - } - }); - } -}; -/** - * Recursively parses a node generated by the server and its children to set host and child id - * attributes read during client-side hydration. This function also tracks whether each node is - * an original location reference node meaning that a node has been moved via slot relocation. - * - * @param doc The DOM generated by the server. - * @param node The node to parse. - * @param docData An object containing metadata about the document. - * @param orgLocationNodes An array of nodes that have been moved via slot relocation. - */ -const parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => { - if (node == null) { - return; - } - if (node['s-nr'] != null) { - orgLocationNodes.push(node); - } - if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) { - node.childNodes.forEach((childNode) => { - const hostRef = getHostRef(childNode); - if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) { - const cmpData = { - nodeIds: 0, - }; - insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData); - } - parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes); - }); - } -}; -/** - * Insert attribute annotations on an element for its host ID and, potentially, its child ID. - * Also makes calls to insert annotations on the element's children, keeping track of the depth of - * the component tree. - * - * @param doc The DOM generated by the server. - * @param hostElm The element to insert annotations for. - * @param vnode The vNode representation of the element. - * @param docData An object containing metadata about the document. - * @param cmpData An object containing metadata about the component. - */ -const insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => { - if (vnode != null) { - const hostId = ++docData.hostIds; - hostElm.setAttribute(HYDRATE_ID, hostId); - if (hostElm['s-cr'] != null) { - hostElm['s-cr'].nodeValue = `${CONTENT_REF_ID}.${hostId}`; - } - if (vnode.$children$ != null) { - const depth = 0; - vnode.$children$.forEach((vnodeChild, index) => { - insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index); - }); - } - // If this element does not already have a child ID and has a sibling comment node - // representing a slot, we use the content of the comment to set the child ID attribute - // on the host element. - if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) { - const parent = hostElm.parentElement; - if (parent && parent.childNodes) { - const parentChildNodes = Array.from(parent.childNodes); - const comment = parentChildNodes.find((node) => node.nodeType === 8 /* NODE_TYPE.CommentNode */ && node['s-sr']); - if (comment) { - const index = parentChildNodes.indexOf(hostElm) - 1; - vnode.$elm$.setAttribute(HYDRATE_CHILD_ID, `${comment['s-host-id']}.${comment['s-node-id']}.0.${index}`); - } - } - } - } -}; -/** - * Recursively analyzes the type of a child vNode and inserts annotations on the vNodes's element based on its type. - * Element nodes receive a child ID attribute, text nodes have a comment with the child ID inserted before them, - * and comment nodes representing a slot have their node value set to a slot node ID containing the child ID. - * - * @param doc The DOM generated by the server. - * @param vnodeChild The vNode to insert annotations for. - * @param cmpData An object containing metadata about the component. - * @param hostId The host ID of this element's parent. - * @param depth How deep this element sits in the component tree relative to its parent. - * @param index The index of this element in its parent's children array. - */ -const insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => { - const childElm = vnodeChild.$elm$; - if (childElm == null) { - return; - } - const nodeId = cmpData.nodeIds++; - const childId = `${hostId}.${nodeId}.${depth}.${index}`; - childElm['s-host-id'] = hostId; - childElm['s-node-id'] = nodeId; - if (childElm.nodeType === 1 /* NODE_TYPE.ElementNode */) { - childElm.setAttribute(HYDRATE_CHILD_ID, childId); - } - else if (childElm.nodeType === 3 /* NODE_TYPE.TextNode */) { - const parentNode = childElm.parentNode; - const nodeName = parentNode.nodeName; - if (nodeName !== 'STYLE' && nodeName !== 'SCRIPT') { - const textNodeId = `${TEXT_NODE_ID}.${childId}`; - const commentBeforeTextNode = doc.createComment(textNodeId); - parentNode.insertBefore(commentBeforeTextNode, childElm); - } - } - else if (childElm.nodeType === 8 /* NODE_TYPE.CommentNode */) { - if (childElm['s-sr']) { - const slotName = childElm['s-sn'] || ''; - const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`; - childElm.nodeValue = slotNodeId; - } - } - if (vnodeChild.$children$ != null) { - // Increment depth each time we recur deeper into the tree - const childDepth = depth + 1; - vnodeChild.$children$.forEach((vnode, index) => { - insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index); - }); - } -}; -//# sourceMappingURL=vdom-annotations.js.map \ No newline at end of file diff --git a/build/runtime/vdom/vdom-annotations.js.map b/build/runtime/vdom/vdom-annotations.js.map deleted file mode 100644 index 01b09d1d152..00000000000 --- a/build/runtime/vdom/vdom-annotations.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vdom-annotations.js","sourceRoot":"","sources":["../../../src/runtime/vdom/vdom-annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvC,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,UAAU,EAEV,eAAe,EACf,YAAY,EACZ,YAAY,GACb,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAa,EAAE,gBAA0B,EAAE,EAAE;IACjF,IAAI,GAAG,IAAI,IAAI,EAAE;QACf,MAAM,OAAO,GAAY;YACvB,OAAO,EAAE,CAAC;YACV,YAAY,EAAE,CAAC;YACf,gBAAgB,EAAE,IAAI,GAAG,CAAC,gBAAgB,CAAC;SAC5C,CA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rC,IAAI,QAAQ,KAAK,OAAO,IAAI,QAAQ,KAAK,QAAQ,EAAE;YACjD,MAAM,UAAU,GAAG,GAAG,YAAY,IAAI,OAAO,EAAE,CAAC;YAEhD,MAAM,qBAAqB,GAAG,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YAC5D,UAAU,CAAC,YAAY,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC;SAC1D;KACF;SAAM,IAAI,QAAQ,CAAC,QAAQ,kCAA0B,EAAE;QACtD,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE;YACpB,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACxC,MAAM,UAAU,GAAG,GAAG,YAAY,IAAI,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC5D,QAAQ,CAAC,SAAS,GAAG,UAAU,CAAC;SACjC;KACF;IAED,IAAI,UAAU,CAAC,UAAU,IAAI,IAAI,EAAE;QACjC,0DAA0D;QAC1D,MAAM,UAAU,GAAG,KAAK,GAAG,CAAC,CAAC;QAC7B,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YAC7C,2BAA2B,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QAC9E,CAAC,CAAC,CAAC;KACJ;AACH,CAAC,CAAC"} \ No newline at end of file diff --git a/build/runtime/vdom/vdom-render.d.ts b/build/runtime/vdom/vdom-render.d.ts deleted file mode 100644 index 74d356ab83b..00000000000 --- a/build/runtime/vdom/vdom-render.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import type * as d from '../../declarations'; -/** - * Compare two VNodes to determine if they are the same - * - * **NB**: This function is an equality _heuristic_ based on the available - * information set on the two VNodes and can be misleading under certain - * circumstances. In particular, if the two nodes do not have `key` attrs - * (available under `$key$` on VNodes) then the function falls back on merely - * checking that they have the same tag. - * - * So, in other words, if `key` attrs are not set on VNodes which may be - * changing order within a `children` array or something along those lines then - * we could obtain a false negative and then have to do needless re-rendering - * (i.e. we'd say two VNodes aren't equal when in fact they should be). - * - * @param leftVNode the first VNode to check - * @param rightVNode the second VNode to check - * @returns whether they're equal or not - */ -export declare const isSameVnode: (leftVNode: d.VNode, rightVNode: d.VNode) => boolean; -/** - * Handle reconciling an outdated VNode with a new one which corresponds to - * it. This function handles flushing updates to the DOM and reconciling the - * children of the two nodes (if any). - * - * @param oldVNode an old VNode whose DOM element and children we want to update - * @param newVNode a new VNode representing an updated version of the old one - */ -export declare const patch: (oldVNode: d.VNode, newVNode: d.VNode) => void; -/** - * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling - * them with `null`. This signals that the DOM element corresponding to the VDom - * node has been removed from the DOM. - * - * @param vNode a virtual DOM node - */ -export declare const nullifyVNodeRefs: (vNode: d.VNode) => void; -/** - * The main entry point for Stencil's virtual DOM-based rendering engine - * - * Given a {@link d.HostRef} container and some virtual DOM nodes, this - * function will handle creating a virtual DOM tree with a single root, patching - * the current virtual DOM tree onto an old one (if any), dealing with slot - * relocation, and reflecting attributes. - * - * @param hostRef data needed to root and render the virtual DOM tree, such as - * the DOM node into which it should be rendered. - * @param renderFnResults the virtual DOM nodes to be rendered - * @param isInitialLoad whether or not this is the first call after page load - */ -export declare const renderVdom: (hostRef: d.HostRef, renderFnResults: d.VNode | d.VNode[], isInitialLoad?: boolean) => void; diff --git a/build/runtime/vdom/vdom-render.js b/build/runtime/vdom/vdom-render.js deleted file mode 100644 index 62af43a1a71..00000000000 --- a/build/runtime/vdom/vdom-render.js +++ /dev/null @@ -1,970 +0,0 @@ -/** - * Virtual DOM patching algorithm based on Snabbdom by - * Simon Friis Vindum (@paldepind) - * Licensed under the MIT License - * https://github.com/snabbdom/snabbdom/blob/master/LICENSE - * - * Modified for Stencil's renderer and slot projection - */ -import { BUILD } from '@app-data'; -import { consoleDevError, doc, plt, supportsShadow } from '@platform'; -import { HTML_NS, isDef, SVG_NS } from '@utils'; -import { h, isHost, newVNode } from './h'; -import { updateElement } from './update-element'; -let scopeId; -let contentRef; -let hostTagName; -let useNativeShadowDom = false; -let checkSlotFallbackVisibility = false; -let checkSlotRelocate = false; -let isSvgMode = false; -/** - * Create a DOM Node corresponding to one of the children of a given VNode. - * - * @param oldParentVNode the parent VNode from the previous render - * @param newParentVNode the parent VNode from the current render - * @param childIndex the index of the VNode, in the _new_ parent node's - * children, for which we will create a new DOM node - * @param parentElm the parent DOM node which our new node will be a child of - * @returns the newly created node - */ -const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => { - var _a; - // tslint:disable-next-line: prefer-const - const newVNode = newParentVNode.$children$[childIndex]; - let i = 0; - let elm; - let childNode; - let oldVNode; - if (BUILD.slotRelocation && !useNativeShadowDom) { - // remember for later we need to check to relocate nodes - checkSlotRelocate = true; - if (newVNode.$tag$ === 'slot') { - if (scopeId) { - // scoped css needs to add its scoped id to the parent element - parentElm.classList.add(scopeId + '-s'); - } - newVNode.$flags$ |= newVNode.$children$ - ? // slot element has fallback content - 2 /* VNODE_FLAGS.isSlotFallback */ - : // slot element does not have fallback content - 1 /* VNODE_FLAGS.isSlotReference */; - } - } - if (BUILD.isDev && newVNode.$elm$) { - consoleDevError(`The JSX ${newVNode.$text$ !== null ? `"${newVNode.$text$}" text` : `"${newVNode.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`); - } - if (BUILD.vdomText && newVNode.$text$ !== null) { - // create text node - elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$); - } - else if (BUILD.slotRelocation && newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) { - // create a slot reference node - elm = newVNode.$elm$ = - BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode) : doc.createTextNode(''); - } - else { - if (BUILD.svg && !isSvgMode) { - isSvgMode = newVNode.$tag$ === 'svg'; - } - // create element - elm = newVNode.$elm$ = (BUILD.svg - ? doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, BUILD.slotRelocation && newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */ - ? 'slot-fb' - : newVNode.$tag$) - : doc.createElement(BUILD.slotRelocation && newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */ - ? 'slot-fb' - : newVNode.$tag$)); - if (BUILD.svg && isSvgMode && newVNode.$tag$ === 'foreignObject') { - isSvgMode = false; - } - // add css classes, attrs, props, listeners, etc. - if (BUILD.vdomAttribute) { - updateElement(null, newVNode, isSvgMode); - } - if ((BUILD.shadowDom || BUILD.scoped) && isDef(scopeId) && elm['s-si'] !== scopeId) { - // if there is a scopeId and this is the initial render - // then let's add the scopeId as a css class - elm.classList.add((elm['s-si'] = scopeId)); - } - if (newVNode.$children$) { - for (i = 0; i < newVNode.$children$.length; ++i) { - // create the node - childNode = createElm(oldParentVNode, newVNode, i, elm); - // return node could have been null - if (childNode) { - // append our new node - elm.appendChild(childNode); - } - } - } - if (BUILD.svg) { - if (newVNode.$tag$ === 'svg') { - // Only reset the SVG context when we're exiting element - isSvgMode = false; - } - else if (elm.tagName === 'foreignObject') { - // Reenter SVG context when we're exiting element - isSvgMode = true; - } - } - } - if (BUILD.slotRelocation) { - elm['s-hn'] = hostTagName; - if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) { - // remember the content reference comment - elm['s-sr'] = true; - // Persist the name of the slot that this slot was going to be projected into. - elm['s-fs'] = (_a = newVNode.$attrs$) === null || _a === void 0 ? void 0 : _a.slot; - // remember the content reference comment - elm['s-cr'] = contentRef; - // remember the slot name, or empty string for default slot - elm['s-sn'] = newVNode.$name$ || ''; - // check if we've got an old vnode for this slot - oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex]; - if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) { - // we've got an old slot vnode and the wrapper is being replaced - // so let's move the old slot content back to it's original location - putBackInOriginalLocation(oldParentVNode.$elm$, false); - } - } - } - return elm; -}; -const putBackInOriginalLocation = (parentElm, recursive) => { - var _a; - plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */; - const oldSlotChildNodes = parentElm.childNodes; - for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) { - const childNode = oldSlotChildNodes[i]; - if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) { - // // this child node in the old element is from another component - // // remove this node from the old slot's parent - // childNode.remove(); - // and relocate it back to it's original location - parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode)); - // remove the old original location comment entirely - // later on the patch function will know what to do - // and move this to the correct spot if need be - childNode['s-ol'].remove(); - childNode['s-ol'] = undefined; - // Reset so we can correctly move the node around again. - childNode['s-sh'] = undefined; - // When putting an element node back in its original location, - // we need to reset the `slot` attribute back to the value it originally had - // so we can correctly relocate it again in the future - if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) { - childNode.setAttribute('slot', (_a = childNode['s-sn']) !== null && _a !== void 0 ? _a : ''); - } - checkSlotRelocate = true; - } - if (recursive) { - putBackInOriginalLocation(childNode, recursive); - } - } - plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */; -}; -/** - * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and - * add them to the DOM in the appropriate place. - * - * @param parentElm the DOM node which should be used as a parent for the new - * DOM nodes - * @param before a child of the `parentElm` which the new children should be - * inserted before (optional) - * @param parentVNode the parent virtual DOM node - * @param vnodes the new child virtual DOM nodes to produce DOM nodes for - * @param startIdx the index in the child virtual DOM nodes at which to start - * creating DOM nodes (inclusive) - * @param endIdx the index in the child virtual DOM nodes at which to stop - * creating DOM nodes (inclusive) - */ -const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => { - let containerElm = ((BUILD.slotRelocation && parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm); - let childNode; - if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) { - containerElm = containerElm.shadowRoot; - } - for (; startIdx <= endIdx; ++startIdx) { - if (vnodes[startIdx]) { - childNode = createElm(null, parentVNode, startIdx, parentElm); - if (childNode) { - vnodes[startIdx].$elm$ = childNode; - containerElm.insertBefore(childNode, BUILD.slotRelocation ? referenceNode(before) : before); - } - } - } -}; -/** - * Remove the DOM elements corresponding to a list of {@link d.VNode} objects. - * This can be used to, for instance, clean up after a list of children which - * should no longer be shown. - * - * This function also handles some of Stencil's slot relocation logic. - * - * @param vnodes a list of virtual DOM nodes to remove - * @param startIdx the index at which to start removing nodes (inclusive) - * @param endIdx the index at which to stop removing nodes (inclusive) - */ -const removeVnodes = (vnodes, startIdx, endIdx) => { - for (let index = startIdx; index <= endIdx; ++index) { - const vnode = vnodes[index]; - if (vnode) { - const elm = vnode.$elm$; - nullifyVNodeRefs(vnode); - if (elm) { - if (BUILD.slotRelocation) { - // we're removing this element - // so it's possible we need to show slot fallback content now - checkSlotFallbackVisibility = true; - if (elm['s-ol']) { - // remove the original location comment - elm['s-ol'].remove(); - } - else { - // it's possible that child nodes of the node - // that's being removed are slot nodes - putBackInOriginalLocation(elm, true); - } - } - // remove the vnode's element from the dom - elm.remove(); - } - } - } -}; -/** - * Reconcile the children of a new VNode with the children of an old VNode by - * traversing the two collections of children, identifying nodes that are - * conserved or changed, calling out to `patch` to make any necessary - * updates to the DOM, and rearranging DOM nodes as needed. - * - * The algorithm for reconciling children works by analyzing two 'windows' onto - * the two arrays of children (`oldCh` and `newCh`). We keep track of the - * 'windows' by storing start and end indices and references to the - * corresponding array entries. Initially the two 'windows' are basically equal - * to the entire array, but we progressively narrow the windows until there are - * no children left to update by doing the following: - * - * 1. Skip any `null` entries at the beginning or end of the two arrays, so - * that if we have an initial array like the following we'll end up dealing - * only with a window bounded by the highlighted elements: - * - * [null, null, VNode1 , ... , VNode2, null, null] - * ^^^^^^ ^^^^^^ - * - * 2. Check to see if the elements at the head and tail positions are equal - * across the windows. This will basically detect elements which haven't - * been added, removed, or changed position, i.e. if you had the following - * VNode elements (represented as HTML): - * - * oldVNode: `

HEY

` - * newVNode: `

THERE

` - * - * Then when comparing the children of the `
` tag we check the equality - * of the VNodes corresponding to the `

` tags and, since they are the - * same tag in the same position, we'd be able to avoid completely - * re-rendering the subtree under them with a new DOM element and would just - * call out to `patch` to handle reconciling their children and so on. - * - * 3. Check, for both windows, to see if the element at the beginning of the - * window corresponds to the element at the end of the other window. This is - * a heuristic which will let us identify _some_ situations in which - * elements have changed position, for instance it _should_ detect that the - * children nodes themselves have not changed but merely moved in the - * following example: - * - * oldVNode: `

` - * newVNode: `
` - * - * If we find cases like this then we also need to move the concrete DOM - * elements corresponding to the moved children to write the re-order to the - * DOM. - * - * 4. Finally, if VNodes have the `key` attribute set on them we check for any - * nodes in the old children which have the same key as the first element in - * our window on the new children. If we find such a node we handle calling - * out to `patch`, moving relevant DOM nodes, and so on, in accordance with - * what we find. - * - * Finally, once we've narrowed our 'windows' to the point that either of them - * collapse (i.e. they have length 0) we then handle any remaining VNode - * insertion or deletion that needs to happen to get a DOM state that correctly - * reflects the new child VNodes. If, for instance, after our window on the old - * children has collapsed we still have more nodes on the new children that - * we haven't dealt with yet then we need to add them, or if the new children - * collapse but we still have unhandled _old_ children then we need to make - * sure the corresponding DOM nodes are removed. - * - * @param parentElm the node into which the parent VNode is rendered - * @param oldCh the old children of the parent node - * @param newVNode the new VNode which will replace the parent - * @param newCh the new children of the parent node - */ -const updateChildren = (parentElm, oldCh, newVNode, newCh) => { - let oldStartIdx = 0; - let newStartIdx = 0; - let idxInOld = 0; - let i = 0; - let oldEndIdx = oldCh.length - 1; - let oldStartVnode = oldCh[0]; - let oldEndVnode = oldCh[oldEndIdx]; - let newEndIdx = newCh.length - 1; - let newStartVnode = newCh[0]; - let newEndVnode = newCh[newEndIdx]; - let node; - let elmToMove; - while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) { - if (oldStartVnode == null) { - // VNode might have been moved left - oldStartVnode = oldCh[++oldStartIdx]; - } - else if (oldEndVnode == null) { - oldEndVnode = oldCh[--oldEndIdx]; - } - else if (newStartVnode == null) { - newStartVnode = newCh[++newStartIdx]; - } - else if (newEndVnode == null) { - newEndVnode = newCh[--newEndIdx]; - } - else if (isSameVnode(oldStartVnode, newStartVnode)) { - // if the start nodes are the same then we should patch the new VNode - // onto the old one, and increment our `newStartIdx` and `oldStartIdx` - // indices to reflect that. We don't need to move any DOM Nodes around - // since things are matched up in order. - patch(oldStartVnode, newStartVnode); - oldStartVnode = oldCh[++oldStartIdx]; - newStartVnode = newCh[++newStartIdx]; - } - else if (isSameVnode(oldEndVnode, newEndVnode)) { - // likewise, if the end nodes are the same we patch new onto old and - // decrement our end indices, and also likewise in this case we don't - // need to move any DOM Nodes. - patch(oldEndVnode, newEndVnode); - oldEndVnode = oldCh[--oldEndIdx]; - newEndVnode = newCh[--newEndIdx]; - } - else if (isSameVnode(oldStartVnode, newEndVnode)) { - // case: "Vnode moved right" - // - // We've found that the last node in our window on the new children is - // the same VNode as the _first_ node in our window on the old children - // we're dealing with now. Visually, this is the layout of these two - // nodes: - // - // newCh: [..., newStartVnode , ... , newEndVnode , ...] - // ^^^^^^^^^^^ - // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...] - // ^^^^^^^^^^^^^ - // - // In this situation we need to patch `newEndVnode` onto `oldStartVnode` - // and move the DOM element for `oldStartVnode`. - if (BUILD.slotRelocation && (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) { - putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false); - } - patch(oldStartVnode, newEndVnode); - // We need to move the element for `oldStartVnode` into a position which - // will be appropriate for `newEndVnode`. For this we can use - // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a - // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for - // `oldStartVnode` between `oldEndVnode` and it's sibling, like so: - // - // - // - // - //