@depup/angular-devkit__build-angular 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 +46 -0
- package/builders.json +76 -0
- package/changes.json +70 -0
- package/index.d.ts +8 -0
- package/index.js +25 -0
- package/index.js.map +1 -0
- package/package.json +229 -0
- package/plugins/karma.d.ts +7 -0
- package/plugins/karma.js +10 -0
- package/plugins/karma.js.map +1 -0
- package/src/builders/app-shell/index.d.ts +11 -0
- package/src/builders/app-shell/index.js +193 -0
- package/src/builders/app-shell/index.js.map +1 -0
- package/src/builders/app-shell/render-worker.d.ts +36 -0
- package/src/builders/app-shell/render-worker.js +115 -0
- package/src/builders/app-shell/render-worker.js.map +1 -0
- package/src/builders/app-shell/schema.d.ts +36 -0
- package/src/builders/app-shell/schema.js +5 -0
- package/src/builders/app-shell/schema.js.map +1 -0
- package/src/builders/app-shell/schema.json +37 -0
- package/src/builders/browser/index.d.ts +42 -0
- package/src/builders/browser/index.js +342 -0
- package/src/builders/browser/index.js.map +1 -0
- package/src/builders/browser/schema.d.ts +441 -0
- package/src/builders/browser/schema.js +65 -0
- package/src/builders/browser/schema.js.map +1 -0
- package/src/builders/browser/schema.json +548 -0
- package/src/builders/browser-esbuild/index.d.ts +28 -0
- package/src/builders/browser-esbuild/index.js +53 -0
- package/src/builders/browser-esbuild/index.js.map +1 -0
- package/src/builders/browser-esbuild/schema.d.ts +431 -0
- package/src/builders/browser-esbuild/schema.js +59 -0
- package/src/builders/browser-esbuild/schema.js.map +1 -0
- package/src/builders/browser-esbuild/schema.json +541 -0
- package/src/builders/dev-server/builder.d.ts +44 -0
- package/src/builders/dev-server/builder.js +160 -0
- package/src/builders/dev-server/builder.js.map +1 -0
- package/src/builders/dev-server/index.d.ts +14 -0
- package/src/builders/dev-server/index.js +16 -0
- package/src/builders/dev-server/index.js.map +1 -0
- package/src/builders/dev-server/options.d.ts +52 -0
- package/src/builders/dev-server/options.js +116 -0
- package/src/builders/dev-server/options.js.map +1 -0
- package/src/builders/dev-server/schema.d.ts +118 -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 +135 -0
- package/src/builders/dev-server/webpack-server.d.ts +35 -0
- package/src/builders/dev-server/webpack-server.js +296 -0
- package/src/builders/dev-server/webpack-server.js.map +1 -0
- package/src/builders/extract-i18n/application-extraction.d.ts +17 -0
- package/src/builders/extract-i18n/application-extraction.js +136 -0
- package/src/builders/extract-i18n/application-extraction.js.map +1 -0
- package/src/builders/extract-i18n/builder.d.ts +17 -0
- package/src/builders/extract-i18n/builder.js +178 -0
- package/src/builders/extract-i18n/builder.js.map +1 -0
- package/src/builders/extract-i18n/empty-loader.d.ts +8 -0
- package/src/builders/extract-i18n/empty-loader.js +14 -0
- package/src/builders/extract-i18n/empty-loader.js.map +1 -0
- package/src/builders/extract-i18n/index.d.ts +12 -0
- package/src/builders/extract-i18n/index.js +15 -0
- package/src/builders/extract-i18n/index.js.map +1 -0
- package/src/builders/extract-i18n/ivy-extract-loader.d.ts +13 -0
- package/src/builders/extract-i18n/ivy-extract-loader.js +131 -0
- package/src/builders/extract-i18n/ivy-extract-loader.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/extract-i18n/webpack-extraction.d.ts +21 -0
- package/src/builders/extract-i18n/webpack-extraction.js +99 -0
- package/src/builders/extract-i18n/webpack-extraction.js.map +1 -0
- package/src/builders/jest/index.d.ts +11 -0
- package/src/builders/jest/index.js +213 -0
- package/src/builders/jest/index.js.map +1 -0
- package/src/builders/jest/init-test-bed.mjs +24 -0
- package/src/builders/jest/jest-global.mjs +19 -0
- package/src/builders/jest/jest.config.mjs +11 -0
- package/src/builders/jest/options.d.ts +21 -0
- package/src/builders/jest/options.js +25 -0
- package/src/builders/jest/options.js.map +1 -0
- package/src/builders/jest/schema.d.ts +26 -0
- package/src/builders/jest/schema.js +5 -0
- package/src/builders/jest/schema.js.map +1 -0
- package/src/builders/jest/schema.json +44 -0
- package/src/builders/karma/browser_builder.d.ts +20 -0
- package/src/builders/karma/browser_builder.js +195 -0
- package/src/builders/karma/browser_builder.js.map +1 -0
- package/src/builders/karma/find-tests-plugin.d.ts +20 -0
- package/src/builders/karma/find-tests-plugin.js +59 -0
- package/src/builders/karma/find-tests-plugin.js.map +1 -0
- package/src/builders/karma/index.d.ts +26 -0
- package/src/builders/karma/index.js +183 -0
- package/src/builders/karma/index.js.map +1 -0
- package/src/builders/karma/schema.d.ts +218 -0
- package/src/builders/karma/schema.js +26 -0
- package/src/builders/karma/schema.js.map +1 -0
- package/src/builders/karma/schema.json +324 -0
- package/src/builders/ng-packagr/index.d.ts +17 -0
- package/src/builders/ng-packagr/index.js +80 -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 +27 -0
- package/src/builders/prerender/index.d.ts +19 -0
- package/src/builders/prerender/index.js +242 -0
- package/src/builders/prerender/index.js.map +1 -0
- package/src/builders/prerender/render-worker.d.ts +30 -0
- package/src/builders/prerender/render-worker.js +141 -0
- package/src/builders/prerender/render-worker.js.map +1 -0
- package/src/builders/prerender/routes-extractor-worker.d.ts +20 -0
- package/src/builders/prerender/routes-extractor-worker.js +84 -0
- package/src/builders/prerender/routes-extractor-worker.js.map +1 -0
- package/src/builders/prerender/schema.d.ts +24 -0
- package/src/builders/prerender/schema.js +5 -0
- package/src/builders/prerender/schema.js.map +1 -0
- package/src/builders/prerender/schema.json +39 -0
- package/src/builders/protractor/index.d.ts +16 -0
- package/src/builders/protractor/index.js +177 -0
- package/src/builders/protractor/index.js.map +1 -0
- package/src/builders/protractor/schema.d.ts +47 -0
- package/src/builders/protractor/schema.js +5 -0
- package/src/builders/protractor/schema.js.map +1 -0
- package/src/builders/protractor/schema.json +58 -0
- package/src/builders/protractor-error/index.d.ts +10 -0
- package/src/builders/protractor-error/index.js +15 -0
- package/src/builders/protractor-error/index.js.map +1 -0
- package/src/builders/server/index.d.ts +32 -0
- package/src/builders/server/index.js +223 -0
- package/src/builders/server/index.js.map +1 -0
- package/src/builders/server/platform-server-exports-loader.d.ts +16 -0
- package/src/builders/server/platform-server-exports-loader.js +35 -0
- package/src/builders/server/platform-server-exports-loader.js.map +1 -0
- package/src/builders/server/schema.d.ts +229 -0
- package/src/builders/server/schema.js +37 -0
- package/src/builders/server/schema.js.map +1 -0
- package/src/builders/server/schema.json +301 -0
- package/src/builders/ssr-dev-server/index.d.ts +23 -0
- package/src/builders/ssr-dev-server/index.js +316 -0
- package/src/builders/ssr-dev-server/index.js.map +1 -0
- package/src/builders/ssr-dev-server/schema.d.ts +64 -0
- package/src/builders/ssr-dev-server/schema.js +5 -0
- package/src/builders/ssr-dev-server/schema.js.map +1 -0
- package/src/builders/ssr-dev-server/schema.json +75 -0
- package/src/builders/ssr-dev-server/utils.d.ts +15 -0
- package/src/builders/ssr-dev-server/utils.js +74 -0
- package/src/builders/ssr-dev-server/utils.js.map +1 -0
- package/src/builders/web-test-runner/builder-status-warnings.d.ts +11 -0
- package/src/builders/web-test-runner/builder-status-warnings.js +46 -0
- package/src/builders/web-test-runner/builder-status-warnings.js.map +1 -0
- package/src/builders/web-test-runner/index.d.ts +10 -0
- package/src/builders/web-test-runner/index.js +162 -0
- package/src/builders/web-test-runner/index.js.map +1 -0
- package/src/builders/web-test-runner/jasmine_runner.js +91 -0
- package/src/builders/web-test-runner/options.d.ts +24 -0
- package/src/builders/web-test-runner/options.js +26 -0
- package/src/builders/web-test-runner/options.js.map +1 -0
- package/src/builders/web-test-runner/schema.d.ts +192 -0
- package/src/builders/web-test-runner/schema.js +16 -0
- package/src/builders/web-test-runner/schema.js.map +1 -0
- package/src/builders/web-test-runner/schema.json +297 -0
- package/src/builders/web-test-runner/test_page.html +40 -0
- package/src/builders/web-test-runner/write-test-files.d.ts +9 -0
- package/src/builders/web-test-runner/write-test-files.js +42 -0
- package/src/builders/web-test-runner/write-test-files.js.map +1 -0
- package/src/index.d.ts +30 -0
- package/src/index.js +55 -0
- package/src/index.js.map +1 -0
- package/src/tools/babel/babel-loader.d.ts +34 -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/types.d.ts +20 -0
- package/src/tools/babel/presets/application.d.ts +50 -0
- package/src/tools/babel/presets/application.js +189 -0
- package/src/tools/babel/presets/application.js.map +1 -0
- package/src/tools/babel/webpack-loader.d.ts +18 -0
- package/src/tools/babel/webpack-loader.js +201 -0
- package/src/tools/babel/webpack-loader.js.map +1 -0
- package/src/tools/webpack/configs/common.d.ts +10 -0
- package/src/tools/webpack/configs/common.js +433 -0
- package/src/tools/webpack/configs/common.js.map +1 -0
- package/src/tools/webpack/configs/dev-server.d.ts +16 -0
- package/src/tools/webpack/configs/dev-server.js +313 -0
- package/src/tools/webpack/configs/dev-server.js.map +1 -0
- package/src/tools/webpack/configs/index.d.ts +10 -0
- package/src/tools/webpack/configs/index.js +27 -0
- package/src/tools/webpack/configs/index.js.map +1 -0
- package/src/tools/webpack/configs/styles.d.ts +10 -0
- package/src/tools/webpack/configs/styles.js +384 -0
- package/src/tools/webpack/configs/styles.js.map +1 -0
- package/src/tools/webpack/plugins/any-component-style-budget-checker.d.ts +18 -0
- package/src/tools/webpack/plugins/any-component-style-budget-checker.js +100 -0
- package/src/tools/webpack/plugins/any-component-style-budget-checker.js.map +1 -0
- package/src/tools/webpack/plugins/builder-watch-plugin.d.ts +23 -0
- package/src/tools/webpack/plugins/builder-watch-plugin.js +102 -0
- package/src/tools/webpack/plugins/builder-watch-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/common-js-usage-warn-plugin.d.ts +21 -0
- package/src/tools/webpack/plugins/common-js-usage-warn-plugin.js +126 -0
- package/src/tools/webpack/plugins/common-js-usage-warn-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/css-optimizer-plugin.d.ts +35 -0
- package/src/tools/webpack/plugins/css-optimizer-plugin.js +124 -0
- package/src/tools/webpack/plugins/css-optimizer-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/dedupe-module-resolve-plugin.d.ts +29 -0
- package/src/tools/webpack/plugins/dedupe-module-resolve-plugin.js +76 -0
- package/src/tools/webpack/plugins/dedupe-module-resolve-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/devtools-ignore-plugin.d.ts +16 -0
- package/src/tools/webpack/plugins/devtools-ignore-plugin.js +57 -0
- package/src/tools/webpack/plugins/devtools-ignore-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/esbuild-executor.d.ts +46 -0
- package/src/tools/webpack/plugins/esbuild-executor.js +134 -0
- package/src/tools/webpack/plugins/esbuild-executor.js.map +1 -0
- package/src/tools/webpack/plugins/hmr/hmr-accept.d.ts +8 -0
- package/src/tools/webpack/plugins/hmr/hmr-accept.js +185 -0
- package/src/tools/webpack/plugins/hmr/hmr-accept.js.map +1 -0
- package/src/tools/webpack/plugins/hmr/hmr-loader.d.ts +9 -0
- package/src/tools/webpack/plugins/hmr/hmr-loader.js +25 -0
- package/src/tools/webpack/plugins/hmr/hmr-loader.js.map +1 -0
- package/src/tools/webpack/plugins/index-html-webpack-plugin.d.ts +20 -0
- package/src/tools/webpack/plugins/index-html-webpack-plugin.js +88 -0
- package/src/tools/webpack/plugins/index-html-webpack-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/index.d.ts +16 -0
- package/src/tools/webpack/plugins/index.js +33 -0
- package/src/tools/webpack/plugins/index.js.map +1 -0
- package/src/tools/webpack/plugins/javascript-optimizer-plugin.d.ts +59 -0
- package/src/tools/webpack/plugins/javascript-optimizer-plugin.js +168 -0
- package/src/tools/webpack/plugins/javascript-optimizer-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/javascript-optimizer-worker.d.ts +91 -0
- package/src/tools/webpack/plugins/javascript-optimizer-worker.js +135 -0
- package/src/tools/webpack/plugins/javascript-optimizer-worker.js.map +1 -0
- package/src/tools/webpack/plugins/json-stats-plugin.d.ts +13 -0
- package/src/tools/webpack/plugins/json-stats-plugin.js +71 -0
- package/src/tools/webpack/plugins/json-stats-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/karma/karma-context.html +44 -0
- package/src/tools/webpack/plugins/karma/karma-debug.html +46 -0
- package/src/tools/webpack/plugins/karma/karma.d.ts +8 -0
- package/src/tools/webpack/plugins/karma/karma.js +196 -0
- package/src/tools/webpack/plugins/karma/karma.js.map +1 -0
- package/src/tools/webpack/plugins/named-chunks-plugin.d.ts +17 -0
- package/src/tools/webpack/plugins/named-chunks-plugin.js +59 -0
- package/src/tools/webpack/plugins/named-chunks-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/occurrences-plugin.d.ts +18 -0
- package/src/tools/webpack/plugins/occurrences-plugin.js +81 -0
- package/src/tools/webpack/plugins/occurrences-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/postcss-cli-resources.d.ts +21 -0
- package/src/tools/webpack/plugins/postcss-cli-resources.js +189 -0
- package/src/tools/webpack/plugins/postcss-cli-resources.js.map +1 -0
- package/src/tools/webpack/plugins/progress-plugin.d.ts +11 -0
- package/src/tools/webpack/plugins/progress-plugin.js +39 -0
- package/src/tools/webpack/plugins/progress-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/remove-hash-plugin.d.ts +18 -0
- package/src/tools/webpack/plugins/remove-hash-plugin.js +32 -0
- package/src/tools/webpack/plugins/remove-hash-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/scripts-webpack-plugin.d.ts +24 -0
- package/src/tools/webpack/plugins/scripts-webpack-plugin.js +196 -0
- package/src/tools/webpack/plugins/scripts-webpack-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/service-worker-plugin.d.ts +19 -0
- package/src/tools/webpack/plugins/service-worker-plugin.js +47 -0
- package/src/tools/webpack/plugins/service-worker-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/styles-webpack-plugin.d.ts +19 -0
- package/src/tools/webpack/plugins/styles-webpack-plugin.js +74 -0
- package/src/tools/webpack/plugins/styles-webpack-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/suppress-entry-chunks-webpack-plugin.d.ts +14 -0
- package/src/tools/webpack/plugins/suppress-entry-chunks-webpack-plugin.js +52 -0
- package/src/tools/webpack/plugins/suppress-entry-chunks-webpack-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/transfer-size-plugin.d.ts +12 -0
- package/src/tools/webpack/plugins/transfer-size-plugin.js +50 -0
- package/src/tools/webpack/plugins/transfer-size-plugin.js.map +1 -0
- package/src/tools/webpack/plugins/typescript.d.ts +10 -0
- package/src/tools/webpack/plugins/typescript.js +53 -0
- package/src/tools/webpack/plugins/typescript.js.map +1 -0
- package/src/tools/webpack/plugins/watch-files-logs-plugin.d.ts +11 -0
- package/src/tools/webpack/plugins/watch-files-logs-plugin.js +28 -0
- package/src/tools/webpack/plugins/watch-files-logs-plugin.js.map +1 -0
- package/src/tools/webpack/utils/async-chunks.d.ts +16 -0
- package/src/tools/webpack/utils/async-chunks.js +45 -0
- package/src/tools/webpack/utils/async-chunks.js.map +1 -0
- package/src/tools/webpack/utils/helpers.d.ts +43 -0
- package/src/tools/webpack/utils/helpers.js +301 -0
- package/src/tools/webpack/utils/helpers.js.map +1 -0
- package/src/tools/webpack/utils/stats.d.ts +32 -0
- package/src/tools/webpack/utils/stats.js +301 -0
- package/src/tools/webpack/utils/stats.js.map +1 -0
- package/src/transforms.d.ts +8 -0
- package/src/transforms.js +10 -0
- package/src/transforms.js.map +1 -0
- package/src/utils/action-executor.d.ts +35 -0
- package/src/utils/action-executor.js +61 -0
- package/src/utils/action-executor.js.map +1 -0
- package/src/utils/build-options.d.ts +75 -0
- package/src/utils/build-options.js +10 -0
- package/src/utils/build-options.js.map +1 -0
- package/src/utils/bundle-inline-options.d.ts +15 -0
- package/src/utils/bundle-inline-options.js +10 -0
- package/src/utils/bundle-inline-options.js.map +1 -0
- package/src/utils/color.d.ts +10 -0
- package/src/utils/color.js +74 -0
- package/src/utils/color.js.map +1 -0
- package/src/utils/copy-assets.d.ts +18 -0
- package/src/utils/copy-assets.js +51 -0
- package/src/utils/copy-assets.js.map +1 -0
- package/src/utils/default-progress.d.ts +8 -0
- package/src/utils/default-progress.js +17 -0
- package/src/utils/default-progress.js.map +1 -0
- package/src/utils/environment-options.d.ts +16 -0
- package/src/utils/environment-options.js +83 -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/i18n-inlining.d.ts +11 -0
- package/src/utils/i18n-inlining.js +131 -0
- package/src/utils/i18n-inlining.js.map +1 -0
- package/src/utils/i18n-webpack.d.ts +16 -0
- package/src/utils/i18n-webpack.js +108 -0
- package/src/utils/i18n-webpack.js.map +1 -0
- package/src/utils/index.d.ts +16 -0
- package/src/utils/index.js +36 -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/normalize-asset-patterns.d.ts +14 -0
- package/src/utils/normalize-asset-patterns.js +107 -0
- package/src/utils/normalize-asset-patterns.js.map +1 -0
- package/src/utils/normalize-builder-schema.d.ts +23 -0
- package/src/utils/normalize-builder-schema.js +44 -0
- package/src/utils/normalize-builder-schema.js.map +1 -0
- package/src/utils/normalize-cache.d.ts +16 -0
- package/src/utils/normalize-cache.js +44 -0
- package/src/utils/normalize-cache.js.map +1 -0
- package/src/utils/normalize-file-replacements.d.ts +16 -0
- package/src/utils/normalize-file-replacements.js +87 -0
- package/src/utils/normalize-file-replacements.js.map +1 -0
- package/src/utils/normalize-optimization.d.ts +13 -0
- package/src/utils/normalize-optimization.js +40 -0
- package/src/utils/normalize-optimization.js.map +1 -0
- package/src/utils/normalize-polyfills.d.ts +8 -0
- package/src/utils/normalize-polyfills.js +24 -0
- package/src/utils/normalize-polyfills.js.map +1 -0
- package/src/utils/normalize-source-maps.d.ts +9 -0
- package/src/utils/normalize-source-maps.js +23 -0
- package/src/utils/normalize-source-maps.js.map +1 -0
- package/src/utils/output-paths.d.ts +9 -0
- package/src/utils/output-paths.js +27 -0
- package/src/utils/output-paths.js.map +1 -0
- package/src/utils/package-chunk-sort.d.ts +14 -0
- package/src/utils/package-chunk-sort.js +35 -0
- package/src/utils/package-chunk-sort.js.map +1 -0
- package/src/utils/package-version.d.ts +8 -0
- package/src/utils/package-version.js +12 -0
- package/src/utils/package-version.js.map +1 -0
- package/src/utils/process-bundle.d.ts +22 -0
- package/src/utils/process-bundle.js +315 -0
- package/src/utils/process-bundle.js.map +1 -0
- package/src/utils/read-tsconfig.d.ts +16 -0
- package/src/utils/read-tsconfig.js +61 -0
- package/src/utils/read-tsconfig.js.map +1 -0
- package/src/utils/run-module-as-observable-fork.d.ts +10 -0
- package/src/utils/run-module-as-observable-fork.js +78 -0
- package/src/utils/run-module-as-observable-fork.js.map +1 -0
- package/src/utils/run-module-worker.js +18 -0
- package/src/utils/spinner.d.ts +20 -0
- package/src/utils/spinner.js +56 -0
- package/src/utils/spinner.js.map +1 -0
- package/src/utils/test-files.d.ts +18 -0
- package/src/utils/test-files.js +32 -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 +8 -0
- package/src/utils/url.js +18 -0
- package/src/utils/url.js.map +1 -0
- package/src/utils/webpack-browser-config.d.ts +29 -0
- package/src/utils/webpack-browser-config.js +161 -0
- package/src/utils/webpack-browser-config.js.map +1 -0
- package/src/utils/webpack-diagnostics.d.ts +10 -0
- package/src/utils/webpack-diagnostics.js +18 -0
- package/src/utils/webpack-diagnostics.js.map +1 -0
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export declare function copyAssets(entries: {
|
|
9
|
+
glob: string;
|
|
10
|
+
ignore?: string[];
|
|
11
|
+
input: string;
|
|
12
|
+
output: string;
|
|
13
|
+
flatten?: boolean;
|
|
14
|
+
followSymlinks?: boolean;
|
|
15
|
+
}[], basePaths: Iterable<string>, root: string, changed?: Set<string>): Promise<{
|
|
16
|
+
source: string;
|
|
17
|
+
destination: string;
|
|
18
|
+
}[]>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.copyAssets = copyAssets;
|
|
14
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
15
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
16
|
+
const tinyglobby_1 = require("tinyglobby");
|
|
17
|
+
async function copyAssets(entries, basePaths, root, changed) {
|
|
18
|
+
const defaultIgnore = ['.gitkeep', '**/.DS_Store', '**/Thumbs.db'];
|
|
19
|
+
const outputFiles = [];
|
|
20
|
+
for (const entry of entries) {
|
|
21
|
+
const cwd = node_path_1.default.resolve(root, entry.input);
|
|
22
|
+
const files = await (0, tinyglobby_1.glob)(entry.glob, {
|
|
23
|
+
cwd,
|
|
24
|
+
dot: true,
|
|
25
|
+
ignore: entry.ignore ? defaultIgnore.concat(entry.ignore) : defaultIgnore,
|
|
26
|
+
followSymbolicLinks: entry.followSymlinks,
|
|
27
|
+
});
|
|
28
|
+
const directoryExists = new Set();
|
|
29
|
+
for (const file of files) {
|
|
30
|
+
const src = node_path_1.default.join(cwd, file);
|
|
31
|
+
if (changed && !changed.has(src)) {
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
const filePath = entry.flatten ? node_path_1.default.basename(file) : file;
|
|
35
|
+
outputFiles.push({ source: src, destination: node_path_1.default.join(entry.output, filePath) });
|
|
36
|
+
for (const base of basePaths) {
|
|
37
|
+
const dest = node_path_1.default.join(base, entry.output, filePath);
|
|
38
|
+
const dir = node_path_1.default.dirname(dest);
|
|
39
|
+
if (!directoryExists.has(dir)) {
|
|
40
|
+
if (!node_fs_1.default.existsSync(dir)) {
|
|
41
|
+
node_fs_1.default.mkdirSync(dir, { recursive: true });
|
|
42
|
+
}
|
|
43
|
+
directoryExists.add(dir);
|
|
44
|
+
}
|
|
45
|
+
node_fs_1.default.copyFileSync(src, dest, node_fs_1.default.constants.COPYFILE_FICLONE);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return outputFiles;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=copy-assets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-assets.js","sourceRoot":"","sources":["copy-assets.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;AAMH,gCAqDC;AAzDD,sDAAyB;AACzB,0DAA6B;AAC7B,2CAAkC;AAE3B,KAAK,UAA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I,GAAG,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gBACrD,MAAM,GAAG,GAAG,mBAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBAC/B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;oBAC9B,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;wBACxB,iBAAE,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;oBACzC,CAAC;oBACD,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC3B,CAAC;gBACD,iBAAE,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,iBAAE,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;YAC5D,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
export declare function defaultProgress(progress: boolean | undefined): boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.defaultProgress = defaultProgress;
|
|
11
|
+
function defaultProgress(progress) {
|
|
12
|
+
if (progress === undefined) {
|
|
13
|
+
return process.stdout.isTTY === true;
|
|
14
|
+
}
|
|
15
|
+
return progress;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=default-progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-progress.js","sourceRoot":"","sources":["default-progress.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,0CAMC;AAND,SAAgB,eAAe,CAAC,QAA6B;IAC3D,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC;IACvC,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export declare const allowMangle: boolean;
|
|
9
|
+
export declare const shouldBeautify: boolean;
|
|
10
|
+
export declare const allowMinify: boolean;
|
|
11
|
+
export declare const maxWorkers: number;
|
|
12
|
+
export declare const useParallelTs: boolean;
|
|
13
|
+
export declare const debugPerformance: boolean;
|
|
14
|
+
export declare const shouldWatchRoot: boolean;
|
|
15
|
+
export declare const useTypeChecking: boolean;
|
|
16
|
+
export declare const useJSONBuildLogs: boolean;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.useJSONBuildLogs = exports.useTypeChecking = exports.shouldWatchRoot = exports.debugPerformance = exports.useParallelTs = exports.maxWorkers = exports.allowMinify = exports.shouldBeautify = exports.allowMangle = void 0;
|
|
11
|
+
const node_os_1 = require("node:os");
|
|
12
|
+
function isDisabled(variable) {
|
|
13
|
+
return variable === '0' || variable.toLowerCase() === 'false';
|
|
14
|
+
}
|
|
15
|
+
function isEnabled(variable) {
|
|
16
|
+
return variable === '1' || variable.toLowerCase() === 'true';
|
|
17
|
+
}
|
|
18
|
+
function isPresent(variable) {
|
|
19
|
+
return typeof variable === 'string' && variable !== '';
|
|
20
|
+
}
|
|
21
|
+
// Optimization and mangling
|
|
22
|
+
const debugOptimizeVariable = process.env['NG_BUILD_DEBUG_OPTIMIZE'];
|
|
23
|
+
const debugOptimize = (() => {
|
|
24
|
+
if (!isPresent(debugOptimizeVariable) || isDisabled(debugOptimizeVariable)) {
|
|
25
|
+
return {
|
|
26
|
+
mangle: true,
|
|
27
|
+
minify: true,
|
|
28
|
+
beautify: false,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const debugValue = {
|
|
32
|
+
mangle: false,
|
|
33
|
+
minify: false,
|
|
34
|
+
beautify: true,
|
|
35
|
+
};
|
|
36
|
+
if (isEnabled(debugOptimizeVariable)) {
|
|
37
|
+
return debugValue;
|
|
38
|
+
}
|
|
39
|
+
for (const part of debugOptimizeVariable.split(',')) {
|
|
40
|
+
switch (part.trim().toLowerCase()) {
|
|
41
|
+
case 'mangle':
|
|
42
|
+
debugValue.mangle = true;
|
|
43
|
+
break;
|
|
44
|
+
case 'minify':
|
|
45
|
+
debugValue.minify = true;
|
|
46
|
+
break;
|
|
47
|
+
case 'beautify':
|
|
48
|
+
debugValue.beautify = true;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return debugValue;
|
|
53
|
+
})();
|
|
54
|
+
const mangleVariable = process.env['NG_BUILD_MANGLE'];
|
|
55
|
+
exports.allowMangle = isPresent(mangleVariable)
|
|
56
|
+
? !isDisabled(mangleVariable)
|
|
57
|
+
: debugOptimize.mangle;
|
|
58
|
+
exports.shouldBeautify = debugOptimize.beautify;
|
|
59
|
+
exports.allowMinify = debugOptimize.minify;
|
|
60
|
+
/**
|
|
61
|
+
* Some environments, like CircleCI which use Docker report a number of CPUs by the host and not the count of available.
|
|
62
|
+
* This cause `Error: Call retries were exceeded` errors when trying to use them.
|
|
63
|
+
*
|
|
64
|
+
* @see https://github.com/nodejs/node/issues/28762
|
|
65
|
+
* @see https://github.com/webpack-contrib/terser-webpack-plugin/issues/143
|
|
66
|
+
* @see https://ithub.com/angular/angular-cli/issues/16860#issuecomment-588828079
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
const maxWorkersVariable = process.env['NG_BUILD_MAX_WORKERS'];
|
|
70
|
+
exports.maxWorkers = isPresent(maxWorkersVariable)
|
|
71
|
+
? +maxWorkersVariable
|
|
72
|
+
: Math.min(4, Math.max((0, node_os_1.availableParallelism)() - 1, 1));
|
|
73
|
+
const parallelTsVariable = process.env['NG_BUILD_PARALLEL_TS'];
|
|
74
|
+
exports.useParallelTs = !isPresent(parallelTsVariable) || !isDisabled(parallelTsVariable);
|
|
75
|
+
const debugPerfVariable = process.env['NG_BUILD_DEBUG_PERF'];
|
|
76
|
+
exports.debugPerformance = isPresent(debugPerfVariable) && isEnabled(debugPerfVariable);
|
|
77
|
+
const watchRootVariable = process.env['NG_BUILD_WATCH_ROOT'];
|
|
78
|
+
exports.shouldWatchRoot = isPresent(watchRootVariable) && isEnabled(watchRootVariable);
|
|
79
|
+
const typeCheckingVariable = process.env['NG_BUILD_TYPE_CHECK'];
|
|
80
|
+
exports.useTypeChecking = !isPresent(typeCheckingVariable) || !isDisabled(typeCheckingVariable);
|
|
81
|
+
const buildLogsJsonVariable = process.env['NG_BUILD_LOGS_JSON'];
|
|
82
|
+
exports.useJSONBuildLogs = isPresent(buildLogsJsonVariable) && isEnabled(buildLogsJsonVariable);
|
|
83
|
+
//# sourceMappingURL=environment-options.js.map
|
|
@@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B,CAAC,CAAC;AAChD,QAAA,eAAe,GAAG,SAAS,CAAC,iBAAiB,CAAC,IAAI,SAAS,CAAC,iBAAiB,CAAC,CAAC;AAE5F,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;AACnD,QAAA,eAAe,GAC1B,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExE,MAAM,qBAAqB,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AACnD,QAAA,gBAAgB,GAC3B,SAAS,CAAC,qBAAqB,CAAC,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export declare function assertIsError(value: unknown): asserts value is Error & {
|
|
9
|
+
code?: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.assertIsError = assertIsError;
|
|
14
|
+
const node_assert_1 = __importDefault(require("node:assert"));
|
|
15
|
+
function assertIsError(value) {
|
|
16
|
+
const isError = value instanceof Error ||
|
|
17
|
+
// The following is needing to identify errors coming from RxJs.
|
|
18
|
+
(typeof value === 'object' && value && 'name' in value && 'message' in value);
|
|
19
|
+
(0, node_assert_1.default)(isError, 'catch clause variable is not an Error instance');
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["error.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;AAIH,sCAMC;AARD,8DAAiC;AAEjC,SAAgB,aAAa,CAAC,KAAc;IAC1C,MAAM,OAAO,GACX,KAAK,YAAY,KAAK;QACtB,gEAAgE;QAChE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,CAAC,CAAC;IAChF,IAAA,qBAAM,EAAC,OAAO,EAAE,gDAAgD,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
import { BuilderContext } from '@angular-devkit/architect';
|
|
9
|
+
import { EmittedFiles } from '@angular-devkit/build-webpack';
|
|
10
|
+
import { I18nOptions } from './i18n-webpack';
|
|
11
|
+
export declare function i18nInlineEmittedFiles(context: BuilderContext, emittedFiles: EmittedFiles[], i18n: I18nOptions, baseOutputPath: string, outputPaths: string[], scriptsEntryPointName: string[], emittedPath: string, missingTranslation: 'error' | 'warning' | 'ignore' | undefined): Promise<boolean>;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
26
|
+
var ownKeys = function(o) {
|
|
27
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28
|
+
var ar = [];
|
|
29
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
30
|
+
return ar;
|
|
31
|
+
};
|
|
32
|
+
return ownKeys(o);
|
|
33
|
+
};
|
|
34
|
+
return function (mod) {
|
|
35
|
+
if (mod && mod.__esModule) return mod;
|
|
36
|
+
var result = {};
|
|
37
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
38
|
+
__setModuleDefault(result, mod);
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
})();
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.i18nInlineEmittedFiles = i18nInlineEmittedFiles;
|
|
44
|
+
const fs = __importStar(require("node:fs"));
|
|
45
|
+
const path = __importStar(require("node:path"));
|
|
46
|
+
const action_executor_1 = require("./action-executor");
|
|
47
|
+
const copy_assets_1 = require("./copy-assets");
|
|
48
|
+
const error_1 = require("./error");
|
|
49
|
+
const spinner_1 = require("./spinner");
|
|
50
|
+
function emittedFilesToInlineOptions(emittedFiles, scriptsEntryPointName, emittedPath, outputPath, missingTranslation, context) {
|
|
51
|
+
const options = [];
|
|
52
|
+
const originalFiles = [];
|
|
53
|
+
for (const emittedFile of emittedFiles) {
|
|
54
|
+
if (emittedFile.asset ||
|
|
55
|
+
emittedFile.extension !== '.js' ||
|
|
56
|
+
(emittedFile.name && scriptsEntryPointName.includes(emittedFile.name))) {
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
const originalPath = path.join(emittedPath, emittedFile.file);
|
|
60
|
+
const action = {
|
|
61
|
+
filename: emittedFile.file,
|
|
62
|
+
code: fs.readFileSync(originalPath, 'utf8'),
|
|
63
|
+
outputPath,
|
|
64
|
+
missingTranslation,
|
|
65
|
+
setLocale: emittedFile.name === 'main',
|
|
66
|
+
};
|
|
67
|
+
originalFiles.push(originalPath);
|
|
68
|
+
try {
|
|
69
|
+
const originalMapPath = originalPath + '.map';
|
|
70
|
+
action.map = fs.readFileSync(originalMapPath, 'utf8');
|
|
71
|
+
originalFiles.push(originalMapPath);
|
|
72
|
+
}
|
|
73
|
+
catch (err) {
|
|
74
|
+
(0, error_1.assertIsError)(err);
|
|
75
|
+
if (err.code !== 'ENOENT') {
|
|
76
|
+
throw err;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
context.logger.debug(`i18n file queued for processing: ${action.filename}`);
|
|
80
|
+
options.push(action);
|
|
81
|
+
}
|
|
82
|
+
return { options, originalFiles };
|
|
83
|
+
}
|
|
84
|
+
async function i18nInlineEmittedFiles(context, emittedFiles, i18n, baseOutputPath, outputPaths, scriptsEntryPointName, emittedPath, missingTranslation) {
|
|
85
|
+
const executor = new action_executor_1.BundleActionExecutor({ i18n });
|
|
86
|
+
let hasErrors = false;
|
|
87
|
+
const spinner = new spinner_1.Spinner();
|
|
88
|
+
spinner.start('Generating localized bundles...');
|
|
89
|
+
try {
|
|
90
|
+
const { options, originalFiles: processedFiles } = emittedFilesToInlineOptions(emittedFiles, scriptsEntryPointName, emittedPath, baseOutputPath, missingTranslation, context);
|
|
91
|
+
for await (const result of executor.inlineAll(options)) {
|
|
92
|
+
context.logger.debug(`i18n file processed: ${result.file}`);
|
|
93
|
+
for (const diagnostic of result.diagnostics) {
|
|
94
|
+
spinner.stop();
|
|
95
|
+
if (diagnostic.type === 'error') {
|
|
96
|
+
hasErrors = true;
|
|
97
|
+
context.logger.error(diagnostic.message);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
context.logger.warn(diagnostic.message);
|
|
101
|
+
}
|
|
102
|
+
spinner.start();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
// Copy any non-processed files into the output locations
|
|
106
|
+
await (0, copy_assets_1.copyAssets)([
|
|
107
|
+
{
|
|
108
|
+
glob: '**/*',
|
|
109
|
+
input: emittedPath,
|
|
110
|
+
output: '',
|
|
111
|
+
ignore: [...processedFiles].map((f) => path.relative(emittedPath, f)),
|
|
112
|
+
},
|
|
113
|
+
], outputPaths, '');
|
|
114
|
+
}
|
|
115
|
+
catch (err) {
|
|
116
|
+
(0, error_1.assertIsError)(err);
|
|
117
|
+
spinner.fail('Localized bundle generation failed: ' + err.message);
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
finally {
|
|
121
|
+
executor.stop();
|
|
122
|
+
}
|
|
123
|
+
if (hasErrors) {
|
|
124
|
+
spinner.fail('Localized bundle generation failed.');
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
spinner.succeed('Localized bundle generation complete.');
|
|
128
|
+
}
|
|
129
|
+
return !hasErrors;
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=i18n-inlining.js.map
|
|
@@ -0,0 +1 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,OAAO,EAAE,CAAC;oBAChC,SAAS,GAAG,IAAI,CAAC;oBACjB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBAC3C,CAAC;qBAAM,CAAC;oBACN,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBAC1C,CAAC;gBACD,OAAO,CAAC,KAAK,EAAE,CAAC;YAClB,CAAC;QACH,CAAC;QAED,yDAAyD;QACzD,MAAM,IAAA,wBAAU,EACd;YACE;gBACE,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,WAAW;gBAClB,MAAM,EAAE,EAAE;gBACV,MAAM,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;aACtE;SACF,EACD,WAAW,EACX,EAAE,CACH,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAA,qBAAa,EAAC,GAAG,CAAC,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,sCAAsC,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC;QAEnE,OAAO,KAAK,CAAC;IACf,CAAC;YAAS,CAAC;QACT,QAAQ,CAAC,IAAI,EAAE,CAAC;IAClB,CAAC;IAED,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;IACtD,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,OAAO,CAAC,uCAAuC,CAAC,CAAC;IAC3D,CAAC;IAED,OAAO,CAAC,SAAS,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
import { type I18nOptions, loadTranslations } from '@angular/build/private';
|
|
9
|
+
import { BuilderContext } from '@angular-devkit/architect';
|
|
10
|
+
import { Schema as BrowserBuilderSchema } from '../builders/browser/schema';
|
|
11
|
+
import { Schema as ServerBuilderSchema } from '../builders/server/schema';
|
|
12
|
+
export { I18nOptions, loadTranslations };
|
|
13
|
+
export declare function configureI18nBuild<T extends BrowserBuilderSchema | ServerBuilderSchema>(context: BuilderContext, options: T): Promise<{
|
|
14
|
+
buildOptions: T;
|
|
15
|
+
i18n: I18nOptions;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.loadTranslations = void 0;
|
|
14
|
+
exports.configureI18nBuild = configureI18nBuild;
|
|
15
|
+
const private_1 = require("@angular/build/private");
|
|
16
|
+
Object.defineProperty(exports, "loadTranslations", { enumerable: true, get: function () { return private_1.loadTranslations; } });
|
|
17
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
18
|
+
const node_module_1 = require("node:module");
|
|
19
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
20
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
21
|
+
const read_tsconfig_1 = require("../utils/read-tsconfig");
|
|
22
|
+
/**
|
|
23
|
+
* The base module location used to search for locale specific data.
|
|
24
|
+
*/
|
|
25
|
+
const LOCALE_DATA_BASE_MODULE = '@angular/common/locales/global';
|
|
26
|
+
async function configureI18nBuild(context, options) {
|
|
27
|
+
if (!context.target) {
|
|
28
|
+
throw new Error('The builder requires a target.');
|
|
29
|
+
}
|
|
30
|
+
const buildOptions = { ...options };
|
|
31
|
+
const tsConfig = await (0, read_tsconfig_1.readTsconfig)(buildOptions.tsConfig, context.workspaceRoot);
|
|
32
|
+
const metadata = await context.getProjectMetadata(context.target);
|
|
33
|
+
const i18n = (0, private_1.createI18nOptions)(metadata, buildOptions.localize, context.logger);
|
|
34
|
+
// No additional processing needed if no inlining requested and no source locale defined.
|
|
35
|
+
if (!i18n.shouldInline && !i18n.hasDefinedSourceLocale) {
|
|
36
|
+
return { buildOptions, i18n };
|
|
37
|
+
}
|
|
38
|
+
const projectRoot = node_path_1.default.join(context.workspaceRoot, metadata.root || '');
|
|
39
|
+
// The trailing slash is required to signal that the path is a directory and not a file.
|
|
40
|
+
const projectRequire = (0, node_module_1.createRequire)(projectRoot + '/');
|
|
41
|
+
const localeResolver = (locale) => projectRequire.resolve(node_path_1.default.join(LOCALE_DATA_BASE_MODULE, locale));
|
|
42
|
+
// Load locale data and translations (if present)
|
|
43
|
+
let loader;
|
|
44
|
+
const usedFormats = new Set();
|
|
45
|
+
for (const [locale, desc] of Object.entries(i18n.locales)) {
|
|
46
|
+
if (!i18n.inlineLocales.has(locale) && locale !== i18n.sourceLocale) {
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
let localeDataPath = findLocaleDataPath(locale, localeResolver);
|
|
50
|
+
if (!localeDataPath) {
|
|
51
|
+
const [first] = locale.split('-');
|
|
52
|
+
if (first) {
|
|
53
|
+
localeDataPath = findLocaleDataPath(first.toLowerCase(), localeResolver);
|
|
54
|
+
if (localeDataPath) {
|
|
55
|
+
context.logger.warn(`Locale data for '${locale}' cannot be found. Using locale data for '${first}'.`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (!localeDataPath) {
|
|
60
|
+
context.logger.warn(`Locale data for '${locale}' cannot be found. No locale data will be included for this locale.`);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
desc.dataPath = localeDataPath;
|
|
64
|
+
}
|
|
65
|
+
if (!desc.files.length) {
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
loader ??= await (0, private_1.createTranslationLoader)();
|
|
69
|
+
(0, private_1.loadTranslations)(locale, desc, context.workspaceRoot, loader, {
|
|
70
|
+
warn(message) {
|
|
71
|
+
context.logger.warn(message);
|
|
72
|
+
},
|
|
73
|
+
error(message) {
|
|
74
|
+
throw new Error(message);
|
|
75
|
+
},
|
|
76
|
+
}, usedFormats, buildOptions.i18nDuplicateTranslation);
|
|
77
|
+
if (usedFormats.size > 1 && tsConfig.options.enableI18nLegacyMessageIdFormat !== false) {
|
|
78
|
+
// This limitation is only for legacy message id support (defaults to true as of 9.0)
|
|
79
|
+
throw new Error('Localization currently only supports using one type of translation file format for the entire application.');
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
// If inlining store the output in a temporary location to facilitate post-processing
|
|
83
|
+
if (i18n.shouldInline) {
|
|
84
|
+
// TODO: we should likely save these in the .angular directory in the next major version.
|
|
85
|
+
// We'd need to do a migration to add the temp directory to gitignore.
|
|
86
|
+
const tempPath = node_fs_1.default.mkdtempSync(node_path_1.default.join(node_fs_1.default.realpathSync(node_os_1.default.tmpdir()), 'angular-cli-i18n-'));
|
|
87
|
+
buildOptions.outputPath = tempPath;
|
|
88
|
+
process.on('exit', () => {
|
|
89
|
+
try {
|
|
90
|
+
node_fs_1.default.rmSync(tempPath, { force: true, recursive: true, maxRetries: 3 });
|
|
91
|
+
}
|
|
92
|
+
catch { }
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
return { buildOptions, i18n };
|
|
96
|
+
}
|
|
97
|
+
function findLocaleDataPath(locale, resolver) {
|
|
98
|
+
// Remove private use subtags
|
|
99
|
+
const scrubbedLocale = locale.replace(/-x(-[a-zA-Z0-9]{1,8})+$/, '');
|
|
100
|
+
try {
|
|
101
|
+
return resolver(scrubbedLocale);
|
|
102
|
+
}
|
|
103
|
+
catch {
|
|
104
|
+
// fallback to known existing en-US locale data as of 14.0
|
|
105
|
+
return scrubbedLocale === 'en-US' ? findLocaleDataPath('en', resolver) : null;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=i18n-webpack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n-webpack.js","sourceRoot":"","sources":["i18n-webpack.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;AAyBH,gDAqGC;AA5HD,oDAKgC;AAgBV,iGAjBpB,0BAAgB,OAiBoB;AAdtC,sDAAyB;AACzB,6CAA4C;AAC5C,sDAAyB;AACzB,0DAA6B;AAG7B,0DAAsD;AAEtD;;GAEG;AACH,MAAM,uBAAuB,GAAG,gCAAgC,CAAC;AAK1D,KAAK,UAAU,kBAAkB,CACtC,OAAuB,EACvB,OAAU;IAKV,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,YAAY,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC;IACpC,MAAM,QAAQ,GAAG,MAAM,IAAA,4BAAY,EAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAClF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAClE,MAAM,IAAI,GAAG,IAAA,2BAAiB,EAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAEhF,yFAAyF;IACzF,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC;QACvD,OAAO,EAAE,YAAY,EAAE,IAAI,EA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CAAC,EAAE,CAAC,CAAC;YACvE,CAAC;YAAC,MAAM,CAAC,CAAA,CAAC;QACZ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;AAChC,CAAC;AAED,SAAS,kBAAkB,CAAC,MAAc,EAAE,QAAoC;IAC9E,6BAA6B;IAC7B,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,yBAAyB,EAAE,EAAE,CAAC,CAAC;IAErE,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,cAAc,CAAC,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,0DAA0D;QAC1D,OAAO,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAChF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export * from './default-progress';
|
|
9
|
+
export { deleteOutputDir, loadProxyConfiguration } from '@angular/build/private';
|
|
10
|
+
export * from './run-module-as-observable-fork';
|
|
11
|
+
export * from './normalize-file-replacements';
|
|
12
|
+
export * from './normalize-asset-patterns';
|
|
13
|
+
export * from './normalize-source-maps';
|
|
14
|
+
export * from './normalize-optimization';
|
|
15
|
+
export * from './normalize-builder-schema';
|
|
16
|
+
export * from './url';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.loadProxyConfiguration = exports.deleteOutputDir = void 0;
|
|
25
|
+
__exportStar(require("./default-progress"), exports);
|
|
26
|
+
var private_1 = require("@angular/build/private");
|
|
27
|
+
Object.defineProperty(exports, "deleteOutputDir", { enumerable: true, get: function () { return private_1.deleteOutputDir; } });
|
|
28
|
+
Object.defineProperty(exports, "loadProxyConfiguration", { enumerable: true, get: function () { return private_1.loadProxyConfiguration; } });
|
|
29
|
+
__exportStar(require("./run-module-as-observable-fork"), exports);
|
|
30
|
+
__exportStar(require("./normalize-file-replacements"), exports);
|
|
31
|
+
__exportStar(require("./normalize-asset-patterns"), exports);
|
|
32
|
+
__exportStar(require("./normalize-source-maps"), exports);
|
|
33
|
+
__exportStar(require("./normalize-optimization"), exports);
|
|
34
|
+
__exportStar(require("./normalize-builder-schema"), exports);
|
|
35
|
+
__exportStar(require("./url"), exports);
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,kDAAiF;AAAxE,0GAAA,eAAe,OAAA;AAAE,iHAAA,sBAAsB,OAAA;AAChD,kEAAgD;AAChD,gEAA8C;AAC9C,6DAA2C;AAC3C,0DAAwC;AACxC,2DAAyC;AACzC,6DAA2C;AAC3C,wCAAsB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* This uses a dynamic import to load a module which may be ESM.
|
|
10
|
+
* CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript
|
|
11
|
+
* will currently, unconditionally downlevel dynamic import into a require call.
|
|
12
|
+
* require calls cannot load ESM code and will result in a runtime error. To workaround
|
|
13
|
+
* this, a Function constructor is used to prevent TypeScript from changing the dynamic import.
|
|
14
|
+
* Once TypeScript provides support for keeping the dynamic import this workaround can
|
|
15
|
+
* be dropped.
|
|
16
|
+
*
|
|
17
|
+
* @param modulePath The path of the module to load.
|
|
18
|
+
* @returns A Promise that resolves to the dynamically imported module.
|
|
19
|
+
*/
|
|
20
|
+
export declare function loadEsmModule<T>(modulePath: string | URL): Promise<T>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.loadEsmModule = loadEsmModule;
|
|
11
|
+
/**
|
|
12
|
+
* Lazily compiled dynamic import loader function.
|
|
13
|
+
*/
|
|
14
|
+
let load;
|
|
15
|
+
/**
|
|
16
|
+
* This uses a dynamic import to load a module which may be ESM.
|
|
17
|
+
* CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript
|
|
18
|
+
* will currently, unconditionally downlevel dynamic import into a require call.
|
|
19
|
+
* require calls cannot load ESM code and will result in a runtime error. To workaround
|
|
20
|
+
* this, a Function constructor is used to prevent TypeScript from changing the dynamic import.
|
|
21
|
+
* Once TypeScript provides support for keeping the dynamic import this workaround can
|
|
22
|
+
* be dropped.
|
|
23
|
+
*
|
|
24
|
+
* @param modulePath The path of the module to load.
|
|
25
|
+
* @returns A Promise that resolves to the dynamically imported module.
|
|
26
|
+
*/
|
|
27
|
+
function loadEsmModule(modulePath) {
|
|
28
|
+
load ??= new Function('modulePath', `return import(modulePath);`);
|
|
29
|
+
return load(modulePath);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=load-esm.js.map
|