@depup/angular__build 21.2.2-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +39 -0
- package/builders.json +34 -0
- package/changes.json +42 -0
- package/index.d.ts +8 -0
- package/index.js +25 -0
- package/index.js.map +1 -0
- package/package.json +177 -0
- package/private/index.d.ts +8 -0
- package/private/index.js +25 -0
- package/private/index.js.map +1 -0
- package/src/builders/application/build-action.d.ts +29 -0
- package/src/builders/application/build-action.js +355 -0
- package/src/builders/application/build-action.js.map +1 -0
- package/src/builders/application/chunk-optimizer.d.ts +21 -0
- package/src/builders/application/chunk-optimizer.js +278 -0
- package/src/builders/application/chunk-optimizer.js.map +1 -0
- package/src/builders/application/execute-build.d.ts +11 -0
- package/src/builders/application/execute-build.js +250 -0
- package/src/builders/application/execute-build.js.map +1 -0
- package/src/builders/application/execute-post-bundle.d.ts +27 -0
- package/src/builders/application/execute-post-bundle.js +136 -0
- package/src/builders/application/execute-post-bundle.js.map +1 -0
- package/src/builders/application/i18n.d.ts +31 -0
- package/src/builders/application/i18n.js +138 -0
- package/src/builders/application/i18n.js.map +1 -0
- package/src/builders/application/index.d.ts +32 -0
- package/src/builders/application/index.js +253 -0
- package/src/builders/application/index.js.map +1 -0
- package/src/builders/application/options.d.ts +214 -0
- package/src/builders/application/options.js +499 -0
- package/src/builders/application/options.js.map +1 -0
- package/src/builders/application/results.d.ts +73 -0
- package/src/builders/application/results.js +18 -0
- package/src/builders/application/results.js.map +1 -0
- package/src/builders/application/schema.d.ts +650 -0
- package/src/builders/application/schema.js +93 -0
- package/src/builders/application/schema.js.map +1 -0
- package/src/builders/application/schema.json +728 -0
- package/src/builders/application/setup-bundling.d.ts +25 -0
- package/src/builders/application/setup-bundling.js +104 -0
- package/src/builders/application/setup-bundling.js.map +1 -0
- package/src/builders/dev-server/builder.d.ts +31 -0
- package/src/builders/dev-server/builder.js +61 -0
- package/src/builders/dev-server/builder.js.map +1 -0
- package/src/builders/dev-server/index.d.ts +15 -0
- package/src/builders/dev-server/index.js +17 -0
- package/src/builders/dev-server/index.js.map +1 -0
- package/src/builders/dev-server/internal.d.ts +18 -0
- package/src/builders/dev-server/internal.js +28 -0
- package/src/builders/dev-server/internal.js.map +1 -0
- package/src/builders/dev-server/options.d.ts +51 -0
- package/src/builders/dev-server/options.js +104 -0
- package/src/builders/dev-server/options.js.map +1 -0
- package/src/builders/dev-server/output.d.ts +16 -0
- package/src/builders/dev-server/output.js +10 -0
- package/src/builders/dev-server/output.js.map +1 -0
- package/src/builders/dev-server/schema.d.ts +121 -0
- package/src/builders/dev-server/schema.js +5 -0
- package/src/builders/dev-server/schema.js.map +1 -0
- package/src/builders/dev-server/schema.json +138 -0
- package/src/builders/dev-server/vite/hmr.d.ts +25 -0
- package/src/builders/dev-server/vite/hmr.js +115 -0
- package/src/builders/dev-server/vite/hmr.js.map +1 -0
- package/src/builders/dev-server/vite/index.d.ts +21 -0
- package/src/builders/dev-server/vite/index.js +390 -0
- package/src/builders/dev-server/vite/index.js.map +1 -0
- package/src/builders/dev-server/vite/server.d.ts +15 -0
- package/src/builders/dev-server/vite/server.js +227 -0
- package/src/builders/dev-server/vite/server.js.map +1 -0
- package/src/builders/dev-server/vite/utils.d.ts +36 -0
- package/src/builders/dev-server/vite/utils.js +77 -0
- package/src/builders/dev-server/vite/utils.js.map +1 -0
- package/src/builders/extract-i18n/application-extraction.d.ts +18 -0
- package/src/builders/extract-i18n/application-extraction.js +132 -0
- package/src/builders/extract-i18n/application-extraction.js.map +1 -0
- package/src/builders/extract-i18n/builder.d.ts +14 -0
- package/src/builders/extract-i18n/builder.js +161 -0
- package/src/builders/extract-i18n/builder.js.map +1 -0
- package/src/builders/extract-i18n/index.d.ts +13 -0
- package/src/builders/extract-i18n/index.js +16 -0
- package/src/builders/extract-i18n/index.js.map +1 -0
- package/src/builders/extract-i18n/options.d.ts +33 -0
- package/src/builders/extract-i18n/options.js +86 -0
- package/src/builders/extract-i18n/options.js.map +1 -0
- package/src/builders/extract-i18n/schema.d.ts +53 -0
- package/src/builders/extract-i18n/schema.js +30 -0
- package/src/builders/extract-i18n/schema.js.map +1 -0
- package/src/builders/extract-i18n/schema.json +38 -0
- package/src/builders/karma/application_builder.d.ts +11 -0
- package/src/builders/karma/application_builder.js +324 -0
- package/src/builders/karma/application_builder.js.map +1 -0
- package/src/builders/karma/assets-middleware.d.ts +26 -0
- package/src/builders/karma/assets-middleware.js +66 -0
- package/src/builders/karma/assets-middleware.js.map +1 -0
- package/src/builders/karma/coverage.d.ts +9 -0
- package/src/builders/karma/coverage.js +32 -0
- package/src/builders/karma/coverage.js.map +1 -0
- package/src/builders/karma/find-tests.d.ts +9 -0
- package/src/builders/karma/find-tests.js +24 -0
- package/src/builders/karma/find-tests.js.map +1 -0
- package/src/builders/karma/index.d.ts +20 -0
- package/src/builders/karma/index.js +54 -0
- package/src/builders/karma/index.js.map +1 -0
- package/src/builders/karma/karma-config.d.ts +11 -0
- package/src/builders/karma/karma-config.js +80 -0
- package/src/builders/karma/karma-config.js.map +1 -0
- package/src/builders/karma/options.d.ts +42 -0
- package/src/builders/karma/options.js +44 -0
- package/src/builders/karma/options.js.map +1 -0
- package/src/builders/karma/polyfills/init_sourcemaps.js +10 -0
- package/src/builders/karma/polyfills/jasmine_global.js +18 -0
- package/src/builders/karma/polyfills/jasmine_global_cleanup.js +14 -0
- package/src/builders/karma/polyfills-plugin.d.ts +13 -0
- package/src/builders/karma/polyfills-plugin.js +75 -0
- package/src/builders/karma/polyfills-plugin.js.map +1 -0
- package/src/builders/karma/progress-reporter.d.ts +17 -0
- package/src/builders/karma/progress-reporter.js +76 -0
- package/src/builders/karma/progress-reporter.js.map +1 -0
- package/src/builders/karma/schema.d.ts +250 -0
- package/src/builders/karma/schema.js +16 -0
- package/src/builders/karma/schema.js.map +1 -0
- package/src/builders/karma/schema.json +348 -0
- package/src/builders/karma/utils.d.ts +17 -0
- package/src/builders/karma/utils.js +67 -0
- package/src/builders/karma/utils.js.map +1 -0
- package/src/builders/ng-packagr/builder.d.ts +19 -0
- package/src/builders/ng-packagr/builder.js +107 -0
- package/src/builders/ng-packagr/builder.js.map +1 -0
- package/src/builders/ng-packagr/index.d.ts +13 -0
- package/src/builders/ng-packagr/index.js +16 -0
- package/src/builders/ng-packagr/index.js.map +1 -0
- package/src/builders/ng-packagr/schema.d.ts +21 -0
- package/src/builders/ng-packagr/schema.js +5 -0
- package/src/builders/ng-packagr/schema.js.map +1 -0
- package/src/builders/ng-packagr/schema.json +26 -0
- package/src/builders/unit-test/builder.d.ts +15 -0
- package/src/builders/unit-test/builder.js +376 -0
- package/src/builders/unit-test/builder.js.map +1 -0
- package/src/builders/unit-test/index.d.ts +12 -0
- package/src/builders/unit-test/index.js +16 -0
- package/src/builders/unit-test/index.js.map +1 -0
- package/src/builders/unit-test/options.d.ts +53 -0
- package/src/builders/unit-test/options.js +119 -0
- package/src/builders/unit-test/options.js.map +1 -0
- package/src/builders/unit-test/runners/api.d.ts +65 -0
- package/src/builders/unit-test/runners/api.js +10 -0
- package/src/builders/unit-test/runners/api.js.map +1 -0
- package/src/builders/unit-test/runners/dependency-checker.d.ts +43 -0
- package/src/builders/unit-test/runners/dependency-checker.js +83 -0
- package/src/builders/unit-test/runners/dependency-checker.js.map +1 -0
- package/src/builders/unit-test/runners/karma/executor.d.ts +17 -0
- package/src/builders/unit-test/runners/karma/executor.js +164 -0
- package/src/builders/unit-test/runners/karma/executor.js.map +1 -0
- package/src/builders/unit-test/runners/karma/index.d.ts +13 -0
- package/src/builders/unit-test/runners/karma/index.js +44 -0
- package/src/builders/unit-test/runners/karma/index.js.map +1 -0
- package/src/builders/unit-test/runners/vitest/browser-provider.d.ts +17 -0
- package/src/builders/unit-test/runners/vitest/browser-provider.js +174 -0
- package/src/builders/unit-test/runners/vitest/browser-provider.js.map +1 -0
- package/src/builders/unit-test/runners/vitest/build-options.d.ts +11 -0
- package/src/builders/unit-test/runners/vitest/build-options.js +169 -0
- package/src/builders/unit-test/runners/vitest/build-options.js.map +1 -0
- package/src/builders/unit-test/runners/vitest/configuration.d.ts +15 -0
- package/src/builders/unit-test/runners/vitest/configuration.js +57 -0
- package/src/builders/unit-test/runners/vitest/configuration.js.map +1 -0
- package/src/builders/unit-test/runners/vitest/executor.d.ts +29 -0
- package/src/builders/unit-test/runners/vitest/executor.js +318 -0
- package/src/builders/unit-test/runners/vitest/executor.js.map +1 -0
- package/src/builders/unit-test/runners/vitest/index.d.ts +13 -0
- package/src/builders/unit-test/runners/vitest/index.js +69 -0
- package/src/builders/unit-test/runners/vitest/index.js.map +1 -0
- package/src/builders/unit-test/runners/vitest/plugins.d.ts +32 -0
- package/src/builders/unit-test/runners/vitest/plugins.js +382 -0
- package/src/builders/unit-test/runners/vitest/plugins.js.map +1 -0
- package/src/builders/unit-test/schema.d.ts +229 -0
- package/src/builders/unit-test/schema.js +25 -0
- package/src/builders/unit-test/schema.js.map +1 -0
- package/src/builders/unit-test/schema.json +280 -0
- package/src/builders/unit-test/test-discovery.d.ts +47 -0
- package/src/builders/unit-test/test-discovery.js +280 -0
- package/src/builders/unit-test/test-discovery.js.map +1 -0
- package/src/index.d.ts +16 -0
- package/src/index.js +25 -0
- package/src/index.js.map +1 -0
- package/src/private.d.ts +57 -0
- package/src/private.js +104 -0
- package/src/private.js.map +1 -0
- package/src/tools/angular/angular-host.d.ts +27 -0
- package/src/tools/angular/angular-host.js +164 -0
- package/src/tools/angular/angular-host.js.map +1 -0
- package/src/tools/angular/compilation/angular-compilation.d.ts +45 -0
- package/src/tools/angular/compilation/angular-compilation.js +104 -0
- package/src/tools/angular/compilation/angular-compilation.js.map +1 -0
- package/src/tools/angular/compilation/aot-compilation.d.ts +26 -0
- package/src/tools/angular/compilation/aot-compilation.js +341 -0
- package/src/tools/angular/compilation/aot-compilation.js.map +1 -0
- package/src/tools/angular/compilation/factory.d.ts +17 -0
- package/src/tools/angular/compilation/factory.js +67 -0
- package/src/tools/angular/compilation/factory.js.map +1 -0
- package/src/tools/angular/compilation/hmr-candidates.d.ts +22 -0
- package/src/tools/angular/compilation/hmr-candidates.js +270 -0
- package/src/tools/angular/compilation/hmr-candidates.js.map +1 -0
- package/src/tools/angular/compilation/index.d.ts +10 -0
- package/src/tools/angular/compilation/index.js +18 -0
- package/src/tools/angular/compilation/index.js.map +1 -0
- package/src/tools/angular/compilation/jit-compilation.d.ts +23 -0
- package/src/tools/angular/compilation/jit-compilation.js +150 -0
- package/src/tools/angular/compilation/jit-compilation.js.map +1 -0
- package/src/tools/angular/compilation/noop-compilation.d.ts +20 -0
- package/src/tools/angular/compilation/noop-compilation.js +27 -0
- package/src/tools/angular/compilation/noop-compilation.js.map +1 -0
- package/src/tools/angular/compilation/parallel-compilation.d.ts +44 -0
- package/src/tools/angular/compilation/parallel-compilation.js +119 -0
- package/src/tools/angular/compilation/parallel-compilation.js.map +1 -0
- package/src/tools/angular/compilation/parallel-worker.d.ts +39 -0
- package/src/tools/angular/compilation/parallel-worker.js +102 -0
- package/src/tools/angular/compilation/parallel-worker.js.map +1 -0
- package/src/tools/angular/transformers/jit-bootstrap-transformer.d.ts +10 -0
- package/src/tools/angular/transformers/jit-bootstrap-transformer.js +181 -0
- package/src/tools/angular/transformers/jit-bootstrap-transformer.js.map +1 -0
- package/src/tools/angular/transformers/jit-resource-transformer.d.ts +17 -0
- package/src/tools/angular/transformers/jit-resource-transformer.js +187 -0
- package/src/tools/angular/transformers/jit-resource-transformer.js.map +1 -0
- package/src/tools/angular/transformers/lazy-routes-transformer.d.ts +39 -0
- package/src/tools/angular/transformers/lazy-routes-transformer.js +164 -0
- package/src/tools/angular/transformers/lazy-routes-transformer.js.map +1 -0
- package/src/tools/angular/transformers/web-worker-transformer.d.ts +17 -0
- package/src/tools/angular/transformers/web-worker-transformer.js +94 -0
- package/src/tools/angular/transformers/web-worker-transformer.js.map +1 -0
- package/src/tools/angular/uri.d.ts +54 -0
- package/src/tools/angular/uri.js +76 -0
- package/src/tools/angular/uri.js.map +1 -0
- package/src/tools/babel/plugins/add-code-coverage.d.ts +14 -0
- package/src/tools/babel/plugins/add-code-coverage.js +45 -0
- package/src/tools/babel/plugins/add-code-coverage.js.map +1 -0
- package/src/tools/babel/plugins/adjust-static-class-members.d.ts +25 -0
- package/src/tools/babel/plugins/adjust-static-class-members.js +349 -0
- package/src/tools/babel/plugins/adjust-static-class-members.js.map +1 -0
- package/src/tools/babel/plugins/adjust-typescript-enums.d.ts +21 -0
- package/src/tools/babel/plugins/adjust-typescript-enums.js +113 -0
- package/src/tools/babel/plugins/adjust-typescript-enums.js.map +1 -0
- package/src/tools/babel/plugins/elide-angular-metadata.d.ts +21 -0
- package/src/tools/babel/plugins/elide-angular-metadata.js +110 -0
- package/src/tools/babel/plugins/elide-angular-metadata.js.map +1 -0
- package/src/tools/babel/plugins/index.d.ts +11 -0
- package/src/tools/babel/plugins/index.js +22 -0
- package/src/tools/babel/plugins/index.js.map +1 -0
- package/src/tools/babel/plugins/pure-toplevel-functions.d.ts +13 -0
- package/src/tools/babel/plugins/pure-toplevel-functions.js +128 -0
- package/src/tools/babel/plugins/pure-toplevel-functions.js.map +1 -0
- package/src/tools/babel/plugins/types.d.ts +20 -0
- package/src/tools/babel/typings.d.ts +21 -0
- package/src/tools/esbuild/angular/compilation-state.d.ts +15 -0
- package/src/tools/esbuild/angular/compilation-state.js +45 -0
- package/src/tools/esbuild/angular/compilation-state.js.map +1 -0
- package/src/tools/esbuild/angular/compiler-plugin.d.ts +34 -0
- package/src/tools/esbuild/angular/compiler-plugin.js +631 -0
- package/src/tools/esbuild/angular/compiler-plugin.js.map +1 -0
- package/src/tools/esbuild/angular/component-stylesheets.d.ts +49 -0
- package/src/tools/esbuild/angular/component-stylesheets.js +222 -0
- package/src/tools/esbuild/angular/component-stylesheets.js.map +1 -0
- package/src/tools/esbuild/angular/diagnostics.d.ts +15 -0
- package/src/tools/esbuild/angular/diagnostics.js +72 -0
- package/src/tools/esbuild/angular/diagnostics.js.map +1 -0
- package/src/tools/esbuild/angular/file-reference-tracker.d.ts +17 -0
- package/src/tools/esbuild/angular/file-reference-tracker.js +58 -0
- package/src/tools/esbuild/angular/file-reference-tracker.js.map +1 -0
- package/src/tools/esbuild/angular/jit-plugin-callbacks.d.ts +23 -0
- package/src/tools/esbuild/angular/jit-plugin-callbacks.js +120 -0
- package/src/tools/esbuild/angular/jit-plugin-callbacks.js.map +1 -0
- package/src/tools/esbuild/angular/rewrite-bazel-paths.d.ts +8 -0
- package/src/tools/esbuild/angular/rewrite-bazel-paths.js +28 -0
- package/src/tools/esbuild/angular/rewrite-bazel-paths.js.map +1 -0
- package/src/tools/esbuild/angular/source-file-cache.d.ts +18 -0
- package/src/tools/esbuild/angular/source-file-cache.js +80 -0
- package/src/tools/esbuild/angular/source-file-cache.js.map +1 -0
- package/src/tools/esbuild/angular-localize-init-warning-plugin.d.ts +16 -0
- package/src/tools/esbuild/angular-localize-init-warning-plugin.js +50 -0
- package/src/tools/esbuild/angular-localize-init-warning-plugin.js.map +1 -0
- package/src/tools/esbuild/application-code-bundle.d.ts +19 -0
- package/src/tools/esbuild/application-code-bundle.js +542 -0
- package/src/tools/esbuild/application-code-bundle.js.map +1 -0
- package/src/tools/esbuild/budget-stats.d.ts +19 -0
- package/src/tools/esbuild/budget-stats.js +67 -0
- package/src/tools/esbuild/budget-stats.js.map +1 -0
- package/src/tools/esbuild/bundler-context.d.ts +80 -0
- package/src/tools/esbuild/bundler-context.js +399 -0
- package/src/tools/esbuild/bundler-context.js.map +1 -0
- package/src/tools/esbuild/bundler-execution-result.d.ts +95 -0
- package/src/tools/esbuild/bundler-execution-result.js +149 -0
- package/src/tools/esbuild/bundler-execution-result.js.map +1 -0
- package/src/tools/esbuild/cache.d.ts +93 -0
- package/src/tools/esbuild/cache.js +100 -0
- package/src/tools/esbuild/cache.js.map +1 -0
- package/src/tools/esbuild/commonjs-checker.d.ts +28 -0
- package/src/tools/esbuild/commonjs-checker.js +151 -0
- package/src/tools/esbuild/commonjs-checker.js.map +1 -0
- package/src/tools/esbuild/compiler-plugin-options.d.ts +14 -0
- package/src/tools/esbuild/compiler-plugin-options.js +30 -0
- package/src/tools/esbuild/compiler-plugin-options.js.map +1 -0
- package/src/tools/esbuild/external-packages-plugin.d.ts +18 -0
- package/src/tools/esbuild/external-packages-plugin.js +97 -0
- package/src/tools/esbuild/external-packages-plugin.js.map +1 -0
- package/src/tools/esbuild/global-scripts.d.ts +16 -0
- package/src/tools/esbuild/global-scripts.js +153 -0
- package/src/tools/esbuild/global-scripts.js.map +1 -0
- package/src/tools/esbuild/global-styles.d.ts +10 -0
- package/src/tools/esbuild/global-styles.js +79 -0
- package/src/tools/esbuild/global-styles.js.map +1 -0
- package/src/tools/esbuild/i18n-inliner-worker.d.ts +77 -0
- package/src/tools/esbuild/i18n-inliner-worker.js +184 -0
- package/src/tools/esbuild/i18n-inliner-worker.js.map +1 -0
- package/src/tools/esbuild/i18n-inliner.d.ts +58 -0
- package/src/tools/esbuild/i18n-inliner.js +266 -0
- package/src/tools/esbuild/i18n-inliner.js.map +1 -0
- package/src/tools/esbuild/i18n-locale-plugin.d.ts +22 -0
- package/src/tools/esbuild/i18n-locale-plugin.js +139 -0
- package/src/tools/esbuild/i18n-locale-plugin.js.map +1 -0
- package/src/tools/esbuild/index-html-generator.d.ts +15 -0
- package/src/tools/esbuild/index-html-generator.js +91 -0
- package/src/tools/esbuild/index-html-generator.js.map +1 -0
- package/src/tools/esbuild/javascript-transformer-worker.d.ts +20 -0
- package/src/tools/esbuild/javascript-transformer-worker.js +162 -0
- package/src/tools/esbuild/javascript-transformer-worker.js.map +1 -0
- package/src/tools/esbuild/javascript-transformer.d.ts +54 -0
- package/src/tools/esbuild/javascript-transformer.js +153 -0
- package/src/tools/esbuild/javascript-transformer.js.map +1 -0
- package/src/tools/esbuild/license-extractor.d.ts +25 -0
- package/src/tools/esbuild/license-extractor.js +158 -0
- package/src/tools/esbuild/license-extractor.js.map +1 -0
- package/src/tools/esbuild/lmdb-cache-store.d.ts +18 -0
- package/src/tools/esbuild/lmdb-cache-store.js +55 -0
- package/src/tools/esbuild/lmdb-cache-store.js.map +1 -0
- package/src/tools/esbuild/load-result-cache.d.ts +21 -0
- package/src/tools/esbuild/load-result-cache.js +76 -0
- package/src/tools/esbuild/load-result-cache.js.map +1 -0
- package/src/tools/esbuild/loader-import-attribute-plugin.d.ts +9 -0
- package/src/tools/esbuild/loader-import-attribute-plugin.js +42 -0
- package/src/tools/esbuild/loader-import-attribute-plugin.js.map +1 -0
- package/src/tools/esbuild/profiling.d.ts +11 -0
- package/src/tools/esbuild/profiling.js +78 -0
- package/src/tools/esbuild/profiling.js.map +1 -0
- package/src/tools/esbuild/rxjs-esm-resolution-plugin.d.ts +18 -0
- package/src/tools/esbuild/rxjs-esm-resolution-plugin.js +44 -0
- package/src/tools/esbuild/rxjs-esm-resolution-plugin.js.map +1 -0
- package/src/tools/esbuild/server-bundle-metadata-plugin.d.ts +22 -0
- package/src/tools/esbuild/server-bundle-metadata-plugin.js +37 -0
- package/src/tools/esbuild/server-bundle-metadata-plugin.js.map +1 -0
- package/src/tools/esbuild/sourcemap-ignorelist-plugin.d.ts +17 -0
- package/src/tools/esbuild/sourcemap-ignorelist-plugin.js +73 -0
- package/src/tools/esbuild/sourcemap-ignorelist-plugin.js.map +1 -0
- package/src/tools/esbuild/stylesheets/bundle-options.d.ts +41 -0
- package/src/tools/esbuild/stylesheets/bundle-options.js +66 -0
- package/src/tools/esbuild/stylesheets/bundle-options.js.map +1 -0
- package/src/tools/esbuild/stylesheets/css-inline-fonts-plugin.d.ts +25 -0
- package/src/tools/esbuild/stylesheets/css-inline-fonts-plugin.js +57 -0
- package/src/tools/esbuild/stylesheets/css-inline-fonts-plugin.js.map +1 -0
- package/src/tools/esbuild/stylesheets/css-language.d.ts +9 -0
- package/src/tools/esbuild/stylesheets/css-language.js +16 -0
- package/src/tools/esbuild/stylesheets/css-language.js.map +1 -0
- package/src/tools/esbuild/stylesheets/css-resource-plugin.d.ts +18 -0
- package/src/tools/esbuild/stylesheets/css-resource-plugin.js +114 -0
- package/src/tools/esbuild/stylesheets/css-resource-plugin.js.map +1 -0
- package/src/tools/esbuild/stylesheets/less-language.d.ts +9 -0
- package/src/tools/esbuild/stylesheets/less-language.js +161 -0
- package/src/tools/esbuild/stylesheets/less-language.js.map +1 -0
- package/src/tools/esbuild/stylesheets/sass-language.d.ts +10 -0
- package/src/tools/esbuild/stylesheets/sass-language.js +231 -0
- package/src/tools/esbuild/stylesheets/sass-language.js.map +1 -0
- package/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.d.ts +77 -0
- package/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.js +333 -0
- package/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.js.map +1 -0
- package/src/tools/esbuild/utils.d.ts +58 -0
- package/src/tools/esbuild/utils.js +394 -0
- package/src/tools/esbuild/utils.js.map +1 -0
- package/src/tools/esbuild/virtual-module-plugin.d.ts +33 -0
- package/src/tools/esbuild/virtual-module-plugin.js +43 -0
- package/src/tools/esbuild/virtual-module-plugin.js.map +1 -0
- package/src/tools/esbuild/wasm-plugin.d.ts +28 -0
- package/src/tools/esbuild/wasm-plugin.js +211 -0
- package/src/tools/esbuild/wasm-plugin.js.map +1 -0
- package/src/tools/esbuild/wasm.d.ts +25 -0
- package/src/tools/esbuild/watcher.d.ts +25 -0
- package/src/tools/esbuild/watcher.js +119 -0
- package/src/tools/esbuild/watcher.js.map +1 -0
- package/src/tools/sass/lexer.d.ts +18 -0
- package/src/tools/sass/lexer.js +172 -0
- package/src/tools/sass/lexer.js.map +1 -0
- package/src/tools/sass/rebasing-importer.d.ts +101 -0
- package/src/tools/sass/rebasing-importer.js +333 -0
- package/src/tools/sass/rebasing-importer.js.map +1 -0
- package/src/tools/sass/sass-service.d.ts +67 -0
- package/src/tools/sass/sass-service.js +242 -0
- package/src/tools/sass/sass-service.js.map +1 -0
- package/src/tools/sass/worker.d.ts +63 -0
- package/src/tools/sass/worker.js +202 -0
- package/src/tools/sass/worker.js.map +1 -0
- package/src/tools/vite/middlewares/assets-middleware.d.ts +17 -0
- package/src/tools/vite/middlewares/assets-middleware.js +205 -0
- package/src/tools/vite/middlewares/assets-middleware.js.map +1 -0
- package/src/tools/vite/middlewares/base-middleware.d.ts +17 -0
- package/src/tools/vite/middlewares/base-middleware.js +44 -0
- package/src/tools/vite/middlewares/base-middleware.js.map +1 -0
- package/src/tools/vite/middlewares/chrome-devtools-middleware.d.ts +9 -0
- package/src/tools/vite/middlewares/chrome-devtools-middleware.js +53 -0
- package/src/tools/vite/middlewares/chrome-devtools-middleware.js.map +1 -0
- package/src/tools/vite/middlewares/component-middleware.d.ts +9 -0
- package/src/tools/vite/middlewares/component-middleware.js +36 -0
- package/src/tools/vite/middlewares/component-middleware.js.map +1 -0
- package/src/tools/vite/middlewares/headers-middleware.d.ts +19 -0
- package/src/tools/vite/middlewares/headers-middleware.js +35 -0
- package/src/tools/vite/middlewares/headers-middleware.js.map +1 -0
- package/src/tools/vite/middlewares/host-check-middleware.d.ts +9 -0
- package/src/tools/vite/middlewares/host-check-middleware.js +61 -0
- package/src/tools/vite/middlewares/host-check-middleware.js.map +1 -0
- package/src/tools/vite/middlewares/html-fallback-middleware.d.ts +10 -0
- package/src/tools/vite/middlewares/html-fallback-middleware.js +42 -0
- package/src/tools/vite/middlewares/html-fallback-middleware.js.map +1 -0
- package/src/tools/vite/middlewares/index-html-middleware.d.ts +10 -0
- package/src/tools/vite/middlewares/index-html-middleware.js +47 -0
- package/src/tools/vite/middlewares/index-html-middleware.js.map +1 -0
- package/src/tools/vite/middlewares/index.d.ts +16 -0
- package/src/tools/vite/middlewares/index.js +30 -0
- package/src/tools/vite/middlewares/index.js.map +1 -0
- package/src/tools/vite/middlewares/ssr-middleware.d.ts +10 -0
- package/src/tools/vite/middlewares/ssr-middleware.js +129 -0
- package/src/tools/vite/middlewares/ssr-middleware.js.map +1 -0
- package/src/tools/vite/plugins/angular-memory-plugin.d.ts +18 -0
- package/src/tools/vite/plugins/angular-memory-plugin.js +149 -0
- package/src/tools/vite/plugins/angular-memory-plugin.js.map +1 -0
- package/src/tools/vite/plugins/id-prefix-plugin.d.ts +9 -0
- package/src/tools/vite/plugins/id-prefix-plugin.js +46 -0
- package/src/tools/vite/plugins/id-prefix-plugin.js.map +1 -0
- package/src/tools/vite/plugins/index.d.ts +12 -0
- package/src/tools/vite/plugins/index.js +22 -0
- package/src/tools/vite/plugins/index.js.map +1 -0
- package/src/tools/vite/plugins/setup-middlewares-plugin.d.ts +45 -0
- package/src/tools/vite/plugins/setup-middlewares-plugin.js +108 -0
- package/src/tools/vite/plugins/setup-middlewares-plugin.js.map +1 -0
- package/src/tools/vite/plugins/ssr-ssl-plugin.d.ts +9 -0
- package/src/tools/vite/plugins/ssr-ssl-plugin.js +92 -0
- package/src/tools/vite/plugins/ssr-ssl-plugin.js.map +1 -0
- package/src/tools/vite/plugins/ssr-transform-plugin.d.ts +9 -0
- package/src/tools/vite/plugins/ssr-transform-plugin.js +68 -0
- package/src/tools/vite/plugins/ssr-transform-plugin.js.map +1 -0
- package/src/tools/vite/utils.d.ts +45 -0
- package/src/tools/vite/utils.js +106 -0
- package/src/tools/vite/utils.js.map +1 -0
- package/src/utils/bundle-calculator.d.ts +45 -0
- package/src/utils/bundle-calculator.js +305 -0
- package/src/utils/bundle-calculator.js.map +1 -0
- package/src/utils/check-port.d.ts +8 -0
- package/src/utils/check-port.js +88 -0
- package/src/utils/check-port.js.map +1 -0
- package/src/utils/color.d.ts +9 -0
- package/src/utils/color.js +28 -0
- package/src/utils/color.js.map +1 -0
- package/src/utils/delete-output-dir.d.ts +11 -0
- package/src/utils/delete-output-dir.js +46 -0
- package/src/utils/delete-output-dir.js.map +1 -0
- package/src/utils/environment-options.d.ts +64 -0
- package/src/utils/environment-options.js +150 -0
- package/src/utils/environment-options.js.map +1 -0
- package/src/utils/error.d.ts +10 -0
- package/src/utils/error.js +21 -0
- package/src/utils/error.js.map +1 -0
- package/src/utils/format-bytes.d.ts +8 -0
- package/src/utils/format-bytes.js +22 -0
- package/src/utils/format-bytes.js.map +1 -0
- package/src/utils/i18n-options.d.ts +36 -0
- package/src/utils/i18n-options.js +208 -0
- package/src/utils/i18n-options.js.map +1 -0
- package/src/utils/index-file/add-event-dispatch-contract.d.ts +8 -0
- package/src/utils/index-file/add-event-dispatch-contract.js +28 -0
- package/src/utils/index-file/add-event-dispatch-contract.js.map +1 -0
- package/src/utils/index-file/augment-index-html.d.ts +40 -0
- package/src/utils/index-file/augment-index-html.js +300 -0
- package/src/utils/index-file/augment-index-html.js.map +1 -0
- package/src/utils/index-file/auto-csp.d.ts +23 -0
- package/src/utils/index-file/auto-csp.js +295 -0
- package/src/utils/index-file/auto-csp.js.map +1 -0
- package/src/utils/index-file/html-rewriting-stream.d.ts +15 -0
- package/src/utils/index-file/html-rewriting-stream.js +60 -0
- package/src/utils/index-file/html-rewriting-stream.js.map +1 -0
- package/src/utils/index-file/index-html-generator.d.ts +61 -0
- package/src/utils/index-file/index-html-generator.js +154 -0
- package/src/utils/index-file/index-html-generator.js.map +1 -0
- package/src/utils/index-file/inline-critical-css.d.ts +25 -0
- package/src/utils/index-file/inline-critical-css.js +193 -0
- package/src/utils/index-file/inline-critical-css.js.map +1 -0
- package/src/utils/index-file/inline-fonts.d.ts +23 -0
- package/src/utils/index-file/inline-fonts.js +240 -0
- package/src/utils/index-file/inline-fonts.js.map +1 -0
- package/src/utils/index-file/ngcm-attribute.d.ts +15 -0
- package/src/utils/index-file/ngcm-attribute.js +38 -0
- package/src/utils/index-file/ngcm-attribute.js.map +1 -0
- package/src/utils/index-file/nonce.d.ts +12 -0
- package/src/utils/index-file/nonce.js +54 -0
- package/src/utils/index-file/nonce.js.map +1 -0
- package/src/utils/index-file/valid-self-closing-tags.d.ts +9 -0
- package/src/utils/index-file/valid-self-closing-tags.js +90 -0
- package/src/utils/index-file/valid-self-closing-tags.js.map +1 -0
- package/src/utils/index.d.ts +11 -0
- package/src/utils/index.js +28 -0
- package/src/utils/index.js.map +1 -0
- package/src/utils/load-esm.d.ts +20 -0
- package/src/utils/load-esm.js +31 -0
- package/src/utils/load-esm.js.map +1 -0
- package/src/utils/load-proxy-config.d.ts +8 -0
- package/src/utils/load-proxy-config.js +186 -0
- package/src/utils/load-proxy-config.js.map +1 -0
- package/src/utils/load-translations.d.ts +16 -0
- package/src/utils/load-translations.js +93 -0
- package/src/utils/load-translations.js.map +1 -0
- package/src/utils/normalize-asset-patterns.d.ts +11 -0
- package/src/utils/normalize-asset-patterns.js +111 -0
- package/src/utils/normalize-asset-patterns.js.map +1 -0
- package/src/utils/normalize-cache.d.ts +16 -0
- package/src/utils/normalize-cache.js +46 -0
- package/src/utils/normalize-cache.js.map +1 -0
- package/src/utils/normalize-optimization.d.ts +13 -0
- package/src/utils/normalize-optimization.js +42 -0
- package/src/utils/normalize-optimization.js.map +1 -0
- package/src/utils/normalize-source-maps.d.ts +9 -0
- package/src/utils/normalize-source-maps.js +25 -0
- package/src/utils/normalize-source-maps.js.map +1 -0
- package/src/utils/path.d.ts +29 -0
- package/src/utils/path.js +38 -0
- package/src/utils/path.js.map +1 -0
- package/src/utils/postcss-configuration.d.ts +20 -0
- package/src/utils/postcss-configuration.js +86 -0
- package/src/utils/postcss-configuration.js.map +1 -0
- package/src/utils/project-metadata.d.ts +21 -0
- package/src/utils/project-metadata.js +32 -0
- package/src/utils/project-metadata.js.map +1 -0
- package/src/utils/purge-cache.d.ts +10 -0
- package/src/utils/purge-cache.js +40 -0
- package/src/utils/purge-cache.js.map +1 -0
- package/src/utils/resolve-assets.d.ts +18 -0
- package/src/utils/resolve-assets.js +35 -0
- package/src/utils/resolve-assets.js.map +1 -0
- package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.d.ts +18 -0
- package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.js +125 -0
- package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.js.map +1 -0
- package/src/utils/server-rendering/esm-in-memory-loader/register-hooks.d.ts +8 -0
- package/src/utils/server-rendering/esm-in-memory-loader/register-hooks.js +14 -0
- package/src/utils/server-rendering/esm-in-memory-loader/register-hooks.js.map +1 -0
- package/src/utils/server-rendering/esm-in-memory-loader/utils.d.ts +8 -0
- package/src/utils/server-rendering/esm-in-memory-loader/utils.js +14 -0
- package/src/utils/server-rendering/esm-in-memory-loader/utils.js.map +1 -0
- package/src/utils/server-rendering/fetch-patch.d.ts +8 -0
- package/src/utils/server-rendering/fetch-patch.js +64 -0
- package/src/utils/server-rendering/fetch-patch.js.map +1 -0
- package/src/utils/server-rendering/launch-server.d.ts +14 -0
- package/src/utils/server-rendering/launch-server.js +96 -0
- package/src/utils/server-rendering/launch-server.js.map +1 -0
- package/src/utils/server-rendering/load-esm-from-memory.d.ts +27 -0
- package/src/utils/server-rendering/load-esm-from-memory.js +26 -0
- package/src/utils/server-rendering/load-esm-from-memory.js.map +1 -0
- package/src/utils/server-rendering/manifest.d.ts +58 -0
- package/src/utils/server-rendering/manifest.js +177 -0
- package/src/utils/server-rendering/manifest.js.map +1 -0
- package/src/utils/server-rendering/models.d.ts +28 -0
- package/src/utils/server-rendering/models.js +22 -0
- package/src/utils/server-rendering/models.js.map +1 -0
- package/src/utils/server-rendering/prerender.d.ts +39 -0
- package/src/utils/server-rendering/prerender.js +246 -0
- package/src/utils/server-rendering/prerender.js.map +1 -0
- package/src/utils/server-rendering/render-worker.d.ts +23 -0
- package/src/utils/server-rendering/render-worker.js +79 -0
- package/src/utils/server-rendering/render-worker.js.map +1 -0
- package/src/utils/server-rendering/routes-extractor-worker.d.ts +16 -0
- package/src/utils/server-rendering/routes-extractor-worker.js +73 -0
- package/src/utils/server-rendering/routes-extractor-worker.js.map +1 -0
- package/src/utils/server-rendering/utils.d.ts +21 -0
- package/src/utils/server-rendering/utils.js +43 -0
- package/src/utils/server-rendering/utils.js.map +1 -0
- package/src/utils/service-worker.d.ts +23 -0
- package/src/utils/service-worker.js +215 -0
- package/src/utils/service-worker.js.map +1 -0
- package/src/utils/stats-table.d.ts +20 -0
- package/src/utils/stats-table.js +205 -0
- package/src/utils/stats-table.js.map +1 -0
- package/src/utils/supported-browsers.d.ts +10 -0
- package/src/utils/supported-browsers.js +57 -0
- package/src/utils/supported-browsers.js.map +1 -0
- package/src/utils/test-files.d.ts +17 -0
- package/src/utils/test-files.js +83 -0
- package/src/utils/test-files.js.map +1 -0
- package/src/utils/tty.d.ts +8 -0
- package/src/utils/tty.js +23 -0
- package/src/utils/tty.js.map +1 -0
- package/src/utils/url.d.ts +81 -0
- package/src/utils/url.js +122 -0
- package/src/utils/url.js.map +1 -0
- package/src/utils/version.d.ts +8 -0
- package/src/utils/version.js +58 -0
- package/src/utils/version.js.map +1 -0
- package/src/utils/worker-pool.d.ts +12 -0
- package/src/utils/worker-pool.js +46 -0
- package/src/utils/worker-pool.js.map +1 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unit testing options for Angular applications.
|
|
3
|
+
*/
|
|
4
|
+
export type Schema = {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the browser viewport dimensions for browser-based tests in the format
|
|
7
|
+
* `widthxheight`.
|
|
8
|
+
*/
|
|
9
|
+
browserViewport?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the browsers to use for test execution. When not specified, tests are run in a
|
|
12
|
+
* Node.js environment using jsdom. For both Vitest and Karma, browser names ending with
|
|
13
|
+
* 'Headless' (e.g., 'ChromeHeadless') will enable headless mode.
|
|
14
|
+
*/
|
|
15
|
+
browsers?: string[];
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the build target to use for the unit test build in the format
|
|
18
|
+
* `project:target[:configuration]`. This defaults to the `build` target of the current
|
|
19
|
+
* project with the `development` configuration. You can also pass a comma-separated list of
|
|
20
|
+
* configurations. Example: `project:target:production,staging`.
|
|
21
|
+
*/
|
|
22
|
+
buildTarget?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Enables coverage reporting for tests.
|
|
25
|
+
*/
|
|
26
|
+
coverage?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies glob patterns of files to exclude from the coverage report.
|
|
29
|
+
*/
|
|
30
|
+
coverageExclude?: string[];
|
|
31
|
+
/**
|
|
32
|
+
* Specifies glob patterns of files to include in the coverage report.
|
|
33
|
+
*/
|
|
34
|
+
coverageInclude?: string[];
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the reporters to use for coverage results. Each reporter can be a string
|
|
37
|
+
* representing its name, or a tuple containing the name and an options object. Built-in
|
|
38
|
+
* reporters include 'html', 'lcov', 'lcovonly', 'text', 'text-summary', 'cobertura',
|
|
39
|
+
* 'json', and 'json-summary'.
|
|
40
|
+
*/
|
|
41
|
+
coverageReporters?: SchemaCoverageReporter[];
|
|
42
|
+
/**
|
|
43
|
+
* Specifies minimum coverage thresholds that must be met. If thresholds are not met, the
|
|
44
|
+
* builder will exit with an error.
|
|
45
|
+
*/
|
|
46
|
+
coverageThresholds?: CoverageThresholds;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies coverage watermarks for the HTML reporter. These determine the color coding for
|
|
49
|
+
* high, medium, and low coverage.
|
|
50
|
+
*/
|
|
51
|
+
coverageWatermarks?: CoverageWatermarks;
|
|
52
|
+
/**
|
|
53
|
+
* Enables debugging mode for tests, allowing the use of the Node Inspector.
|
|
54
|
+
*/
|
|
55
|
+
debug?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Dumps build output files to the `.angular/cache` directory for debugging purposes.
|
|
58
|
+
*/
|
|
59
|
+
dumpVirtualFiles?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Specifies glob patterns of files to exclude from testing, relative to the project root.
|
|
62
|
+
*/
|
|
63
|
+
exclude?: string[];
|
|
64
|
+
/**
|
|
65
|
+
* Specifies a regular expression pattern to match against test suite and test names. Only
|
|
66
|
+
* tests with a name matching the pattern will be executed. For example, `^App` will run
|
|
67
|
+
* only tests in suites beginning with 'App'.
|
|
68
|
+
*/
|
|
69
|
+
filter?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Forces all configured browsers to run in headless mode. When using the Vitest runner,
|
|
72
|
+
* this option is ignored if no browsers are configured. The Karma runner does not support
|
|
73
|
+
* this option.
|
|
74
|
+
*/
|
|
75
|
+
headless?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Specifies glob patterns of files to include for testing, relative to the project root.
|
|
78
|
+
* This option also has special handling for directory paths (includes all test files
|
|
79
|
+
* within) and file paths (includes the corresponding test file if one exists).
|
|
80
|
+
*/
|
|
81
|
+
include?: string[];
|
|
82
|
+
/**
|
|
83
|
+
* Lists all discovered test files and exits the process without building or executing the
|
|
84
|
+
* tests.
|
|
85
|
+
*/
|
|
86
|
+
listTests?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Specifies a file path for the test report, applying only to the first reporter. To
|
|
89
|
+
* configure output files for multiple reporters, use the tuple format `['reporter-name', {
|
|
90
|
+
* outputFile: '...' }]` within the `reporters` option. When not provided, output is written
|
|
91
|
+
* to the console.
|
|
92
|
+
*/
|
|
93
|
+
outputFile?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Shows build progress information in the console. Defaults to the `progress` setting of
|
|
96
|
+
* the specified `buildTarget`.
|
|
97
|
+
*/
|
|
98
|
+
progress?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Specifies the path to a TypeScript file that provides an array of Angular providers for
|
|
101
|
+
* the test environment. The file must contain a default export of the provider array.
|
|
102
|
+
*/
|
|
103
|
+
providersFile?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Specifies the reporters to use during test execution. Each reporter can be a string
|
|
106
|
+
* representing its name, or a tuple containing the name and an options object. Built-in
|
|
107
|
+
* reporters include 'default', 'verbose', 'dots', 'json', 'junit', 'tap', 'tap-flat', and
|
|
108
|
+
* 'html'. You can also provide a path to a custom reporter.
|
|
109
|
+
*/
|
|
110
|
+
reporters?: SchemaReporter[];
|
|
111
|
+
/**
|
|
112
|
+
* Specifies the test runner to use for test execution.
|
|
113
|
+
*/
|
|
114
|
+
runner?: Runner;
|
|
115
|
+
/**
|
|
116
|
+
* Specifies the configuration file for the selected test runner. If a string is provided,
|
|
117
|
+
* it will be used as the path to the configuration file. If `true`, the builder will search
|
|
118
|
+
* for a default configuration file (e.g., `vitest.config.ts` or `karma.conf.js`). If
|
|
119
|
+
* `false`, no external configuration file will be used.\nFor Vitest, this enables advanced
|
|
120
|
+
* options and the use of custom plugins. Please note that while the file is loaded, the
|
|
121
|
+
* Angular team does not provide direct support for its specific contents or any third-party
|
|
122
|
+
* plugins used within it.
|
|
123
|
+
*/
|
|
124
|
+
runnerConfig?: RunnerConfig;
|
|
125
|
+
/**
|
|
126
|
+
* A list of paths to global setup files that are executed before the test files. The
|
|
127
|
+
* application's polyfills and the Angular TestBed are always initialized before these files.
|
|
128
|
+
*/
|
|
129
|
+
setupFiles?: string[];
|
|
130
|
+
/**
|
|
131
|
+
* The path to the TypeScript configuration file, relative to the workspace root. Defaults
|
|
132
|
+
* to `tsconfig.spec.json` in the project root if it exists. If not specified and the
|
|
133
|
+
* default does not exist, the `tsConfig` from the specified `buildTarget` will be used.
|
|
134
|
+
*/
|
|
135
|
+
tsConfig?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Enables the Vitest UI for interactive test execution. This option is only available for
|
|
138
|
+
* the Vitest runner.
|
|
139
|
+
*/
|
|
140
|
+
ui?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Enables watch mode, which re-runs tests when source files change. Defaults to `true` in
|
|
143
|
+
* TTY environments and `false` otherwise.
|
|
144
|
+
*/
|
|
145
|
+
watch?: boolean;
|
|
146
|
+
};
|
|
147
|
+
export type SchemaCoverageReporter = CoverageReporterCoverageReporterUnion[] | CoverageReporterEnum;
|
|
148
|
+
export type CoverageReporterCoverageReporterUnion = CoverageReporterEnum | {
|
|
149
|
+
[key: string]: any;
|
|
150
|
+
};
|
|
151
|
+
export declare enum CoverageReporterEnum {
|
|
152
|
+
Cobertura = "cobertura",
|
|
153
|
+
Html = "html",
|
|
154
|
+
Json = "json",
|
|
155
|
+
JsonSummary = "json-summary",
|
|
156
|
+
Lcov = "lcov",
|
|
157
|
+
Lcovonly = "lcovonly",
|
|
158
|
+
Text = "text",
|
|
159
|
+
TextSummary = "text-summary"
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Specifies minimum coverage thresholds that must be met. If thresholds are not met, the
|
|
163
|
+
* builder will exit with an error.
|
|
164
|
+
*/
|
|
165
|
+
export type CoverageThresholds = {
|
|
166
|
+
/**
|
|
167
|
+
* Minimum percentage of branches covered.
|
|
168
|
+
*/
|
|
169
|
+
branches?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Minimum percentage of functions covered.
|
|
172
|
+
*/
|
|
173
|
+
functions?: number;
|
|
174
|
+
/**
|
|
175
|
+
* Minimum percentage of lines covered.
|
|
176
|
+
*/
|
|
177
|
+
lines?: number;
|
|
178
|
+
/**
|
|
179
|
+
* When true, thresholds are enforced for each file individually.
|
|
180
|
+
*/
|
|
181
|
+
perFile?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Minimum percentage of statements covered.
|
|
184
|
+
*/
|
|
185
|
+
statements?: number;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Specifies coverage watermarks for the HTML reporter. These determine the color coding for
|
|
189
|
+
* high, medium, and low coverage.
|
|
190
|
+
*/
|
|
191
|
+
export type CoverageWatermarks = {
|
|
192
|
+
/**
|
|
193
|
+
* The high and low watermarks for branches coverage. `[low, high]`
|
|
194
|
+
*/
|
|
195
|
+
branches?: number[];
|
|
196
|
+
/**
|
|
197
|
+
* The high and low watermarks for functions coverage. `[low, high]`
|
|
198
|
+
*/
|
|
199
|
+
functions?: number[];
|
|
200
|
+
/**
|
|
201
|
+
* The high and low watermarks for lines coverage. `[low, high]`
|
|
202
|
+
*/
|
|
203
|
+
lines?: number[];
|
|
204
|
+
/**
|
|
205
|
+
* The high and low watermarks for statements coverage. `[low, high]`
|
|
206
|
+
*/
|
|
207
|
+
statements?: number[];
|
|
208
|
+
};
|
|
209
|
+
export type SchemaReporter = ReporterReporter[] | string;
|
|
210
|
+
export type ReporterReporter = {
|
|
211
|
+
[key: string]: any;
|
|
212
|
+
} | string;
|
|
213
|
+
/**
|
|
214
|
+
* Specifies the test runner to use for test execution.
|
|
215
|
+
*/
|
|
216
|
+
export declare enum Runner {
|
|
217
|
+
Karma = "karma",
|
|
218
|
+
Vitest = "vitest"
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Specifies the configuration file for the selected test runner. If a string is provided,
|
|
222
|
+
* it will be used as the path to the configuration file. If `true`, the builder will search
|
|
223
|
+
* for a default configuration file (e.g., `vitest.config.ts` or `karma.conf.js`). If
|
|
224
|
+
* `false`, no external configuration file will be used.\nFor Vitest, this enables advanced
|
|
225
|
+
* options and the use of custom plugins. Please note that while the file is loaded, the
|
|
226
|
+
* Angular team does not provide direct support for its specific contents or any third-party
|
|
227
|
+
* plugins used within it.
|
|
228
|
+
*/
|
|
229
|
+
export type RunnerConfig = boolean | string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
|
3
|
+
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Runner = exports.CoverageReporterEnum = void 0;
|
|
6
|
+
var CoverageReporterEnum;
|
|
7
|
+
(function (CoverageReporterEnum) {
|
|
8
|
+
CoverageReporterEnum["Cobertura"] = "cobertura";
|
|
9
|
+
CoverageReporterEnum["Html"] = "html";
|
|
10
|
+
CoverageReporterEnum["Json"] = "json";
|
|
11
|
+
CoverageReporterEnum["JsonSummary"] = "json-summary";
|
|
12
|
+
CoverageReporterEnum["Lcov"] = "lcov";
|
|
13
|
+
CoverageReporterEnum["Lcovonly"] = "lcovonly";
|
|
14
|
+
CoverageReporterEnum["Text"] = "text";
|
|
15
|
+
CoverageReporterEnum["TextSummary"] = "text-summary";
|
|
16
|
+
})(CoverageReporterEnum || (exports.CoverageReporterEnum = CoverageReporterEnum = {}));
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the test runner to use for test execution.
|
|
19
|
+
*/
|
|
20
|
+
var Runner;
|
|
21
|
+
(function (Runner) {
|
|
22
|
+
Runner["Karma"] = "karma";
|
|
23
|
+
Runner["Vitest"] = "vitest";
|
|
24
|
+
})(Runner || (exports.Runner = Runner = {}));
|
|
25
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF;;;AAyJpF,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC5B,+CAAuB,CAAA;IACvB,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,oDAA4B,CAAA;IAC5B,qCAAa,CAAA;IACb,6CAAqB,CAAA;IACrB,qCAAa,CAAA;IACb,oDAA4B,CAAA;AAChC,CAAC,EATW,oBAAoB,oCAApB,oBAAoB,QAS/B;AAwDD;;GAEG;AACH,IAAY,MAGX;AAHD,WAAY,MAAM;IACd,yBAAe,CAAA;IACf,2BAAiB,CAAA;AACrB,CAAC,EAHW,MAAM,sBAAN,MAAM,QAGjB"}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"title": "Unit testing",
|
|
4
|
+
"description": "Unit testing options for Angular applications.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"buildTarget": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Specifies the build target to use for the unit test build in the format `project:target[:configuration]`. This defaults to the `build` target of the current project with the `development` configuration. You can also pass a comma-separated list of configurations. Example: `project:target:production,staging`.",
|
|
10
|
+
"pattern": "^[^:\\s]*:[^:\\s]*(:[^\\s]+)?$"
|
|
11
|
+
},
|
|
12
|
+
"tsConfig": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The path to the TypeScript configuration file, relative to the workspace root. Defaults to `tsconfig.spec.json` in the project root if it exists. If not specified and the default does not exist, the `tsConfig` from the specified `buildTarget` will be used."
|
|
15
|
+
},
|
|
16
|
+
"runner": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Specifies the test runner to use for test execution.",
|
|
19
|
+
"default": "vitest",
|
|
20
|
+
"enum": ["karma", "vitest"]
|
|
21
|
+
},
|
|
22
|
+
"runnerConfig": {
|
|
23
|
+
"type": ["string", "boolean"],
|
|
24
|
+
"description": "Specifies the configuration file for the selected test runner. If a string is provided, it will be used as the path to the configuration file. If `true`, the builder will search for a default configuration file (e.g., `vitest.config.ts` or `karma.conf.js`). If `false`, no external configuration file will be used.\\nFor Vitest, this enables advanced options and the use of custom plugins. Please note that while the file is loaded, the Angular team does not provide direct support for its specific contents or any third-party plugins used within it.",
|
|
25
|
+
"default": false
|
|
26
|
+
},
|
|
27
|
+
"browsers": {
|
|
28
|
+
"description": "Specifies the browsers to use for test execution. When not specified, tests are run in a Node.js environment using jsdom. For both Vitest and Karma, browser names ending with 'Headless' (e.g., 'ChromeHeadless') will enable headless mode.",
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"minItems": 1
|
|
34
|
+
},
|
|
35
|
+
"browserViewport": {
|
|
36
|
+
"description": "Specifies the browser viewport dimensions for browser-based tests in the format `widthxheight`.",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"pattern": "^\\d+x\\d+$"
|
|
39
|
+
},
|
|
40
|
+
"include": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"default": ["**/*.spec.ts", "**/*.test.ts"],
|
|
46
|
+
"description": "Specifies glob patterns of files to include for testing, relative to the project root. This option also has special handling for directory paths (includes all test files within) and file paths (includes the corresponding test file if one exists)."
|
|
47
|
+
},
|
|
48
|
+
"exclude": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"description": "Specifies glob patterns of files to exclude from testing, relative to the project root."
|
|
54
|
+
},
|
|
55
|
+
"filter": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "Specifies a regular expression pattern to match against test suite and test names. Only tests with a name matching the pattern will be executed. For example, `^App` will run only tests in suites beginning with 'App'."
|
|
58
|
+
},
|
|
59
|
+
"watch": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "Enables watch mode, which re-runs tests when source files change. Defaults to `true` in TTY environments and `false` otherwise."
|
|
62
|
+
},
|
|
63
|
+
"headless": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"description": "Forces all configured browsers to run in headless mode. When using the Vitest runner, this option is ignored if no browsers are configured. The Karma runner does not support this option."
|
|
66
|
+
},
|
|
67
|
+
"debug": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"description": "Enables debugging mode for tests, allowing the use of the Node Inspector.",
|
|
70
|
+
"default": false
|
|
71
|
+
},
|
|
72
|
+
"ui": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"description": "Enables the Vitest UI for interactive test execution. This option is only available for the Vitest runner."
|
|
75
|
+
},
|
|
76
|
+
"coverage": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"description": "Enables coverage reporting for tests.",
|
|
79
|
+
"default": false
|
|
80
|
+
},
|
|
81
|
+
"coverageInclude": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"description": "Specifies glob patterns of files to include in the coverage report.",
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"coverageExclude": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"description": "Specifies glob patterns of files to exclude from the coverage report.",
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"coverageReporters": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"description": "Specifies the reporters to use for coverage results. Each reporter can be a string representing its name, or a tuple containing the name and an options object. Built-in reporters include 'html', 'lcov', 'lcovonly', 'text', 'text-summary', 'cobertura', 'json', and 'json-summary'.",
|
|
98
|
+
"items": {
|
|
99
|
+
"oneOf": [
|
|
100
|
+
{
|
|
101
|
+
"enum": [
|
|
102
|
+
"html",
|
|
103
|
+
"lcov",
|
|
104
|
+
"lcovonly",
|
|
105
|
+
"text",
|
|
106
|
+
"text-summary",
|
|
107
|
+
"cobertura",
|
|
108
|
+
"json",
|
|
109
|
+
"json-summary"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "array",
|
|
114
|
+
"minItems": 1,
|
|
115
|
+
"maxItems": 2,
|
|
116
|
+
"items": [
|
|
117
|
+
{
|
|
118
|
+
"enum": [
|
|
119
|
+
"html",
|
|
120
|
+
"lcov",
|
|
121
|
+
"lcovonly",
|
|
122
|
+
"text",
|
|
123
|
+
"text-summary",
|
|
124
|
+
"cobertura",
|
|
125
|
+
"json",
|
|
126
|
+
"json-summary"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "object"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"coverageThresholds": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"description": "Specifies minimum coverage thresholds that must be met. If thresholds are not met, the builder will exit with an error.",
|
|
140
|
+
"properties": {
|
|
141
|
+
"perFile": {
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"description": "When true, thresholds are enforced for each file individually."
|
|
144
|
+
},
|
|
145
|
+
"statements": {
|
|
146
|
+
"type": "number",
|
|
147
|
+
"description": "Minimum percentage of statements covered."
|
|
148
|
+
},
|
|
149
|
+
"branches": {
|
|
150
|
+
"type": "number",
|
|
151
|
+
"description": "Minimum percentage of branches covered."
|
|
152
|
+
},
|
|
153
|
+
"functions": {
|
|
154
|
+
"type": "number",
|
|
155
|
+
"description": "Minimum percentage of functions covered."
|
|
156
|
+
},
|
|
157
|
+
"lines": {
|
|
158
|
+
"type": "number",
|
|
159
|
+
"description": "Minimum percentage of lines covered."
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"additionalProperties": false
|
|
163
|
+
},
|
|
164
|
+
"coverageWatermarks": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"description": "Specifies coverage watermarks for the HTML reporter. These determine the color coding for high, medium, and low coverage.",
|
|
167
|
+
"properties": {
|
|
168
|
+
"statements": {
|
|
169
|
+
"type": "array",
|
|
170
|
+
"description": "The high and low watermarks for statements coverage. `[low, high]`",
|
|
171
|
+
"items": { "type": "number" },
|
|
172
|
+
"minItems": 2,
|
|
173
|
+
"maxItems": 2
|
|
174
|
+
},
|
|
175
|
+
"branches": {
|
|
176
|
+
"type": "array",
|
|
177
|
+
"description": "The high and low watermarks for branches coverage. `[low, high]`",
|
|
178
|
+
"items": { "type": "number" },
|
|
179
|
+
"minItems": 2,
|
|
180
|
+
"maxItems": 2
|
|
181
|
+
},
|
|
182
|
+
"functions": {
|
|
183
|
+
"type": "array",
|
|
184
|
+
"description": "The high and low watermarks for functions coverage. `[low, high]`",
|
|
185
|
+
"items": { "type": "number" },
|
|
186
|
+
"minItems": 2,
|
|
187
|
+
"maxItems": 2
|
|
188
|
+
},
|
|
189
|
+
"lines": {
|
|
190
|
+
"type": "array",
|
|
191
|
+
"description": "The high and low watermarks for lines coverage. `[low, high]`",
|
|
192
|
+
"items": { "type": "number" },
|
|
193
|
+
"minItems": 2,
|
|
194
|
+
"maxItems": 2
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"additionalProperties": false
|
|
198
|
+
},
|
|
199
|
+
"reporters": {
|
|
200
|
+
"type": "array",
|
|
201
|
+
"description": "Specifies the reporters to use during test execution. Each reporter can be a string representing its name, or a tuple containing the name and an options object. Built-in reporters include 'default', 'verbose', 'dots', 'json', 'junit', 'tap', 'tap-flat', and 'html'. You can also provide a path to a custom reporter.",
|
|
202
|
+
"items": {
|
|
203
|
+
"oneOf": [
|
|
204
|
+
{
|
|
205
|
+
"anyOf": [
|
|
206
|
+
{
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"enum": ["default", "verbose", "dots", "json", "junit", "tap", "tap-flat", "html"]
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "array",
|
|
216
|
+
"minItems": 1,
|
|
217
|
+
"maxItems": 2,
|
|
218
|
+
"items": [
|
|
219
|
+
{
|
|
220
|
+
"anyOf": [
|
|
221
|
+
{
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"enum": [
|
|
226
|
+
"default",
|
|
227
|
+
"verbose",
|
|
228
|
+
"dots",
|
|
229
|
+
"json",
|
|
230
|
+
"junit",
|
|
231
|
+
"tap",
|
|
232
|
+
"tap-flat",
|
|
233
|
+
"html"
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"type": "object"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"outputFile": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"description": "Specifies a file path for the test report, applying only to the first reporter. To configure output files for multiple reporters, use the tuple format `['reporter-name', { outputFile: '...' }]` within the `reporters` option. When not provided, output is written to the console."
|
|
249
|
+
},
|
|
250
|
+
"providersFile": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"description": "Specifies the path to a TypeScript file that provides an array of Angular providers for the test environment. The file must contain a default export of the provider array.",
|
|
253
|
+
"minLength": 1
|
|
254
|
+
},
|
|
255
|
+
"setupFiles": {
|
|
256
|
+
"type": "array",
|
|
257
|
+
"items": {
|
|
258
|
+
"type": "string"
|
|
259
|
+
},
|
|
260
|
+
"description": "A list of paths to global setup files that are executed before the test files. The application's polyfills and the Angular TestBed are always initialized before these files."
|
|
261
|
+
},
|
|
262
|
+
"progress": {
|
|
263
|
+
"type": "boolean",
|
|
264
|
+
"description": "Shows build progress information in the console. Defaults to the `progress` setting of the specified `buildTarget`."
|
|
265
|
+
},
|
|
266
|
+
"listTests": {
|
|
267
|
+
"type": "boolean",
|
|
268
|
+
"description": "Lists all discovered test files and exits the process without building or executing the tests.",
|
|
269
|
+
"default": false
|
|
270
|
+
},
|
|
271
|
+
"dumpVirtualFiles": {
|
|
272
|
+
"type": "boolean",
|
|
273
|
+
"description": "Dumps build output files to the `.angular/cache` directory for debugging purposes.",
|
|
274
|
+
"default": false,
|
|
275
|
+
"visible": false
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"additionalProperties": false,
|
|
279
|
+
"required": []
|
|
280
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Finds all test files in the project. This function implements a special handling
|
|
10
|
+
* for static paths (non-globs) to improve developer experience. For example, if a
|
|
11
|
+
* user provides a path to a component, this function will find the corresponding
|
|
12
|
+
* test file. If a user provides a path to a directory, it will find all test
|
|
13
|
+
* files within that directory.
|
|
14
|
+
*
|
|
15
|
+
* @param include Glob patterns of files to include.
|
|
16
|
+
* @param exclude Glob patterns of files to exclude.
|
|
17
|
+
* @param workspaceRoot The absolute path to the workspace root.
|
|
18
|
+
* @param projectSourceRoot The absolute path to the project's source root.
|
|
19
|
+
* @returns A unique set of absolute paths to all test files.
|
|
20
|
+
*/
|
|
21
|
+
export declare function findTests(include: string[], exclude: string[], workspaceRoot: string, projectSourceRoot: string): Promise<string[]>;
|
|
22
|
+
interface TestEntrypointsOptions {
|
|
23
|
+
projectSourceRoot: string;
|
|
24
|
+
workspaceRoot: string;
|
|
25
|
+
removeTestExtension?: boolean;
|
|
26
|
+
prefix?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Generates unique, dash-delimited bundle names for a set of test files.
|
|
30
|
+
* This is used to create distinct output files for each test.
|
|
31
|
+
*
|
|
32
|
+
* @param testFiles An array of absolute paths to test files.
|
|
33
|
+
* @param options Configuration options for generating entry points.
|
|
34
|
+
* @returns A map where keys are the generated unique bundle names and values are the original file paths.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getTestEntrypoints(testFiles: string[], { projectSourceRoot, workspaceRoot, removeTestExtension, prefix, }: TestEntrypointsOptions): Map<string, string>;
|
|
37
|
+
/**
|
|
38
|
+
* Generates a unique, dash-delimited name from a file path. This is used to
|
|
39
|
+
* create a consistent and readable bundle name for a given test file.
|
|
40
|
+
*
|
|
41
|
+
* @param testFile The absolute path to the test file.
|
|
42
|
+
* @param roots An array of root paths to remove from the beginning of the test file path.
|
|
43
|
+
* @param removeTestExtension Whether to remove the test file infix and extension from the result.
|
|
44
|
+
* @returns A dash-cased name derived from the relative path of the test file.
|
|
45
|
+
*/
|
|
46
|
+
export declare function generateNameFromPath(testFile: string, roots: string[], removeTestExtension: boolean): string;
|
|
47
|
+
export {};
|