@nx/angular 17.0.4 → 17.0.6
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 +1 -1
- package/README.md +4 -9
- package/esm2022/mf/mf.mjs +1 -1
- package/esm2022/src/runtime/nx/data-persistence.mjs +1 -1
- package/executors.d.ts +2 -9
- package/executors.js +2 -7
- package/executors.json +9 -19
- package/fesm2022/nx-angular-mf.mjs.map +1 -1
- package/fesm2022/nx-angular.mjs.map +1 -1
- package/generators.d.ts +1 -1
- package/generators.js +1 -3
- package/generators.json +2 -7
- package/migrations.json +0 -451
- package/ng-package.json +2 -2
- package/package.json +26 -20
- package/plugins/component-testing.d.ts +26 -1
- package/plugins/component-testing.js +4 -15
- package/src/builders/module-federation-dev-server/module-federation-dev-server.impl.d.ts +5 -0
- package/src/builders/module-federation-dev-server/module-federation-dev-server.impl.js +137 -0
- package/src/{executors → builders}/module-federation-dev-server/schema.d.ts +7 -25
- package/src/{executors → builders}/module-federation-dev-server/schema.json +6 -31
- package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.d.ts +1 -1
- package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.js +9 -15
- package/src/builders/utilities/module-federation.js +1 -1
- package/src/builders/webpack-browser/schema.d.ts +2 -6
- package/src/builders/webpack-browser/schema.json +15 -15
- package/src/builders/webpack-browser/validate-options.d.ts +2 -0
- package/src/builders/webpack-browser/validate-options.js +40 -0
- package/src/builders/webpack-browser/webpack-browser.impl.js +6 -8
- package/src/builders/{dev-server → webpack-dev-server}/lib/index.d.ts +0 -1
- package/src/builders/{dev-server → webpack-dev-server}/lib/index.js +0 -1
- package/src/builders/webpack-dev-server/lib/normalize-options.d.ts +2 -0
- package/src/builders/webpack-dev-server/lib/normalize-options.js +14 -0
- package/src/builders/webpack-dev-server/schema.d.ts +21 -0
- package/src/builders/{dev-server → webpack-dev-server}/schema.json +5 -42
- package/src/builders/webpack-dev-server/webpack-dev-server.impl.d.ts +4 -0
- package/src/builders/webpack-dev-server/webpack-dev-server.impl.js +105 -0
- package/src/builders/webpack-server/schema.d.ts +1 -0
- package/src/builders/webpack-server/schema.json +20 -7
- package/src/builders/webpack-server/validate-options.js +7 -0
- package/src/builders/webpack-server/webpack-server.impl.js +9 -4
- package/src/executors/browser-esbuild/browser-esbuild.impl.d.ts +3 -2
- package/src/executors/browser-esbuild/browser-esbuild.impl.js +8 -15
- package/src/executors/browser-esbuild/lib/buildable-libs.d.ts +9 -0
- package/src/executors/{utilities → browser-esbuild/lib}/buildable-libs.js +4 -3
- package/src/executors/browser-esbuild/lib/validate-options.d.ts +2 -0
- package/src/executors/browser-esbuild/lib/validate-options.js +40 -0
- package/src/executors/browser-esbuild/schema.d.ts +1 -3
- package/src/executors/browser-esbuild/schema.json +8 -38
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/compile-ngc.transform.js +4 -6
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/write-package.transform.js +13 -25
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ngc → ngc}/compile-source-files.d.ts +2 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ngc → ngc}/compile-source-files.js +9 -14
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/styles → styles}/stylesheet-processor.d.ts +10 -5
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/styles → styles}/stylesheet-processor.js +86 -39
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ts/cache-compiler-host.d.ts +16 -0
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ts/cache-compiler-host.js +175 -0
- package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.js +17 -5
- package/src/executors/ng-packagr-lite/schema.json +1 -1
- package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.js +3 -5
- package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.d.ts +1 -1
- package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.js +6 -13
- package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.d.ts +10 -5
- package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.js +86 -39
- package/src/executors/package/ng-packagr-adjustments/ts/cache-compiler-host.d.ts +15 -0
- package/src/executors/package/ng-packagr-adjustments/ts/cache-compiler-host.js +197 -0
- package/src/executors/package/package.impl.d.ts +1 -1
- package/src/executors/package/package.impl.js +15 -5
- package/src/executors/package/schema.json +3 -3
- package/src/executors/utilities/tailwindcss.d.ts +7 -0
- package/src/executors/utilities/{ng-packagr/tailwindcss.js → tailwindcss.js} +22 -5
- package/src/executors/utilities/typescript.js +1 -1
- package/src/generators/add-linting/add-linting.d.ts +1 -1
- package/src/generators/add-linting/add-linting.js +15 -9
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.d.ts +2 -2
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +5 -9
- package/src/generators/add-linting/lib/create-eslint-configuration.d.ts +2 -2
- package/src/generators/add-linting/schema.json +1 -1
- package/src/generators/application/application.js +17 -19
- package/src/generators/application/files/base/tsconfig.app.json__tpl__ +1 -1
- package/src/generators/application/files/base/tsconfig.json__tpl__ +2 -6
- package/src/generators/application/files/ng-module/src/app/app.component.spec.ts__tpl__ +1 -3
- package/src/generators/application/files/ng-module/src/app/app.component.ts__tpl__ +2 -4
- package/src/generators/application/files/ng-module/src/app/app.module.ts__tpl__ +1 -1
- package/src/generators/application/files/ng-module/src/app/nx-welcome.component.ts__tpl__ +14 -53
- package/src/generators/application/files/ng-module/src/main.ts__tpl__ +8 -2
- package/src/generators/application/files/standalone-components/src/app/app.component.spec.ts__tpl__ +4 -6
- package/src/generators/application/files/standalone-components/src/app/app.component.ts__tpl__ +2 -4
- package/src/generators/application/files/standalone-components/src/app/app.config.ts__tpl__ +3 -3
- package/src/generators/application/files/standalone-components/src/app/nx-welcome.component.ts__tpl__ +14 -53
- package/src/generators/application/files/standalone-components/src/main.ts__tpl__ +8 -4
- package/src/generators/application/files/tsconfig.editor.json__tpl__ +5 -0
- package/src/generators/application/files/v14/.browserlistrc__tpl__ +16 -0
- package/src/generators/application/files/v14/src/environments/environment.prod.ts__tpl__ +3 -0
- package/src/generators/application/files/v14/src/environments/environment.ts__tpl__ +16 -0
- package/src/generators/application/files/v14/src/polyfills.ts__tpl__ +53 -0
- package/src/generators/application/lib/add-e2e.js +8 -22
- package/src/generators/application/lib/add-unit-test-runner.js +20 -5
- package/src/generators/application/lib/create-files.js +10 -14
- package/src/generators/application/lib/create-project.d.ts +1 -1
- package/src/generators/application/lib/create-project.js +38 -48
- package/src/generators/application/lib/index.d.ts +0 -1
- package/src/generators/application/lib/index.js +0 -1
- package/src/generators/application/lib/normalize-options.d.ts +1 -1
- package/src/generators/application/lib/normalize-options.js +6 -28
- package/src/generators/application/lib/normalized-schema.d.ts +0 -5
- package/src/generators/application/lib/update-editor-tsconfig.d.ts +1 -1
- package/src/generators/application/lib/update-editor-tsconfig.js +14 -11
- package/src/generators/application/schema.d.ts +0 -1
- package/src/generators/application/schema.json +10 -18
- package/src/generators/component/component.js +1 -4
- package/src/generators/component/files/__fileName__.spec.ts__tpl__ +3 -2
- package/src/generators/component/files/__fileName__.ts__tpl__ +2 -8
- package/src/generators/component/lib/component.js +1 -1
- package/src/generators/component/lib/index.d.ts +1 -1
- package/src/generators/component/lib/index.js +1 -1
- package/src/generators/component/lib/normalize-options.js +2 -3
- package/src/generators/{setup-mf/lib/update-tsconfig.d.ts → component/lib/validate-options.d.ts} +1 -1
- package/src/generators/component/lib/validate-options.js +8 -0
- package/src/generators/component/schema.d.ts +3 -3
- package/src/generators/component/schema.json +4 -4
- package/src/generators/component-cypress-spec/files/__componentFileName__.__fileExt__ +8 -13
- package/src/generators/component-cypress-spec/schema.json +1 -1
- package/src/generators/component-story/files/__componentFileName__.stories.ts__tmpl__ +2 -2
- package/src/generators/component-test/component-test.d.ts +1 -1
- package/src/generators/component-test/component-test.js +3 -8
- package/src/generators/component-test/files/__componentFileName__.cy.ts__tpl__ +11 -9
- package/src/generators/component-test/schema.json +1 -1
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js +1 -3
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +2 -3
- package/src/generators/convert-to-with-mf/schema.d.ts +0 -1
- package/src/generators/convert-to-with-mf/schema.json +0 -6
- package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts +1 -2
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js +24 -43
- package/src/generators/directive/directive.js +1 -0
- package/src/generators/directive/files/__fileName__.ts__tpl__ +3 -1
- package/src/generators/directive/lib/index.d.ts +1 -0
- package/src/generators/directive/lib/index.js +1 -0
- package/src/generators/directive/lib/normalize-options.js +1 -3
- package/src/generators/directive/lib/validate-options.d.ts +3 -0
- package/src/generators/directive/lib/validate-options.js +8 -0
- package/src/generators/directive/schema.d.ts +3 -3
- package/src/generators/directive/schema.json +4 -4
- package/src/generators/federate-module/federate-module.js +0 -1
- package/src/generators/federate-module/lib/add-remote.d.ts +1 -1
- package/src/generators/federate-module/lib/add-remote.js +11 -2
- package/src/generators/federate-module/schema.json +3 -3
- package/src/generators/host/files/ts/webpack.server.config.ts__tmpl__ +2 -2
- package/src/generators/host/host.js +9 -8
- package/src/generators/host/lib/add-ssr.d.ts +3 -0
- package/src/generators/host/lib/{update-ssr-setup.js → add-ssr.js} +14 -8
- package/src/generators/host/lib/index.d.ts +1 -1
- package/src/generators/host/lib/index.js +1 -1
- package/src/generators/host/schema.json +6 -6
- package/src/generators/init/init.d.ts +2 -2
- package/src/generators/init/init.js +137 -19
- package/src/generators/init/schema.d.ts +9 -1
- package/src/generators/init/schema.json +59 -8
- package/src/generators/library/files/ng-module/src/lib/lib.routes.ts__tpl__ +1 -1
- package/src/generators/library/files/standalone-components/src/lib/lib.routes.ts__tpl__ +1 -1
- package/src/generators/library/lib/add-load-children.js +2 -2
- package/src/generators/library/lib/add-project.js +22 -24
- package/src/generators/library/lib/add-standalone-component.d.ts +2 -2
- package/src/generators/library/lib/add-standalone-component.js +4 -5
- package/src/generators/library/lib/normalize-options.js +5 -2
- package/src/generators/library/lib/update-tsconfig.js +3 -3
- package/src/generators/library/library.js +27 -15
- package/src/generators/library/schema.d.ts +0 -1
- package/src/generators/library/schema.json +13 -13
- package/src/generators/library-secondary-entry-point/files/src/index.ts__tmpl__ +5 -1
- package/src/generators/library-secondary-entry-point/lib/index.d.ts +1 -0
- package/src/generators/library-secondary-entry-point/lib/index.js +1 -0
- package/src/generators/library-secondary-entry-point/lib/update-linting-file-patterns.d.ts +3 -0
- package/src/generators/library-secondary-entry-point/lib/update-linting-file-patterns.js +15 -0
- package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js +2 -3
- package/src/generators/library-secondary-entry-point/schema.d.ts +0 -1
- package/src/generators/library-secondary-entry-point/schema.json +3 -9
- package/src/generators/move/schema.json +1 -1
- package/src/generators/ng-add/migrate-from-angular-cli.js +1 -1
- package/src/generators/ng-add/migrators/projects/app.migrator.js +7 -50
- package/src/generators/ng-add/migrators/projects/e2e.migrator.js +23 -31
- package/src/generators/ng-add/ng-add.js +8 -1
- package/src/generators/ng-add/schema.json +1 -1
- package/src/generators/ng-add/utilities/workspace.d.ts +1 -1
- package/src/generators/ng-add/utilities/workspace.js +16 -9
- package/src/generators/ngrx/files/{__directory__ → base/__directory__}/__fileName__.models.ts__tmpl__ +1 -1
- package/src/generators/ngrx/files/{__directory__ → base/__directory__}/__fileName__.selectors.spec.ts__tmpl__ +1 -1
- package/src/generators/ngrx/files/no-inject/__directory__/__fileName__.effects.ts__tmpl__ +22 -0
- package/src/generators/ngrx/files/no-inject/__directory__/__fileName__.facade.ts__tmpl__ +27 -0
- package/src/generators/ngrx/lib/generate-files.js +10 -1
- package/src/generators/ngrx/lib/validate-options.js +23 -0
- package/src/generators/ngrx/schema.json +3 -3
- package/src/generators/ngrx-feature-store/files/{__directory__ → base/__directory__}/__fileName__.models.ts__tmpl__ +1 -1
- package/src/generators/ngrx-feature-store/files/{__directory__ → base/__directory__}/__fileName__.selectors.spec.ts__tmpl__ +1 -1
- package/src/generators/ngrx-feature-store/files/no-inject/__directory__/__fileName__.effects.ts__tmpl__ +22 -0
- package/src/generators/ngrx-feature-store/files/no-inject/__directory__/__fileName__.facade.ts__tmpl__ +27 -0
- package/src/generators/ngrx-feature-store/lib/generate-files.js +12 -1
- package/src/generators/ngrx-feature-store/lib/validate-options.js +22 -0
- package/src/generators/ngrx-feature-store/schema.json +3 -3
- package/src/generators/ngrx-root-store/lib/normalize-options.js +1 -1
- package/src/generators/ngrx-root-store/lib/validate-options.js +15 -0
- package/src/generators/ngrx-root-store/schema.json +2 -2
- package/src/generators/pipe/files/__fileName__.ts__tpl__ +2 -0
- package/src/generators/pipe/lib/index.d.ts +1 -0
- package/src/generators/pipe/lib/index.js +1 -0
- package/src/generators/pipe/lib/normalize-options.js +0 -1
- package/src/generators/pipe/lib/validate-options.d.ts +3 -0
- package/src/generators/pipe/lib/validate-options.js +8 -0
- package/src/generators/pipe/pipe.js +1 -0
- package/src/generators/pipe/schema.d.ts +3 -3
- package/src/generators/pipe/schema.json +4 -4
- package/src/generators/remote/files/base-ts/webpack.server.config.ts__tmpl__ +2 -2
- package/src/generators/remote/files/common/{pre-v17/src → src}/main.server.ts__tmpl__ +3 -1
- package/src/generators/remote/lib/{update-ssr-setup.d.ts → add-ssr.d.ts} +1 -1
- package/src/generators/remote/lib/{update-ssr-setup.js → add-ssr.js} +13 -9
- package/src/generators/remote/lib/index.d.ts +1 -1
- package/src/generators/remote/lib/index.js +1 -1
- package/src/generators/remote/remote.js +9 -7
- package/src/generators/remote/schema.json +6 -6
- package/src/generators/scam/lib/convert-component-to-scam.js +1 -2
- package/src/generators/scam/schema.d.ts +3 -3
- package/src/generators/scam/schema.json +2 -2
- package/src/generators/scam-directive/lib/convert-directive-to-scam.js +1 -2
- package/src/generators/scam-directive/scam-directive.js +1 -3
- package/src/generators/scam-directive/schema.d.ts +3 -4
- package/src/generators/scam-directive/schema.json +2 -8
- package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +1 -2
- package/src/generators/scam-pipe/scam-pipe.js +1 -3
- package/src/generators/scam-pipe/schema.d.ts +3 -4
- package/src/generators/scam-pipe/schema.json +2 -8
- package/src/generators/scam-to-standalone/scam-to-standalone.js +7 -0
- package/src/generators/scam-to-standalone/schema.json +2 -2
- package/src/generators/setup-mf/files/host-files/app.component.spec.ts__tmpl__ +1 -3
- package/src/generators/setup-mf/files/ts-webpack/module-federation.config.ts__tmpl__ +0 -12
- package/src/generators/setup-mf/files/ts-webpack/webpack.config.ts__tmpl__ +1 -1
- package/src/generators/setup-mf/files/ts-webpack/webpack.prod.config.ts__tmpl__ +12 -12
- package/src/generators/setup-mf/files/webpack/module-federation.config.js__tmpl__ +1 -13
- package/src/generators/setup-mf/lib/add-cypress-workaround.js +4 -14
- package/src/generators/setup-mf/lib/add-remote-entry.js +11 -2
- package/src/generators/setup-mf/lib/add-remote-to-host.js +1 -1
- package/src/generators/setup-mf/lib/fix-bootstrap.js +18 -10
- package/src/generators/setup-mf/lib/generate-config.js +0 -3
- package/src/generators/setup-mf/lib/index.d.ts +1 -1
- package/src/generators/setup-mf/lib/index.js +1 -1
- package/src/generators/setup-mf/lib/normalize-options.js +1 -2
- package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js +10 -10
- package/src/generators/setup-mf/lib/set-tsconfig-target.d.ts +3 -0
- package/src/generators/setup-mf/lib/set-tsconfig-target.js +16 -0
- package/src/generators/setup-mf/lib/setup-serve-target.js +1 -1
- package/src/generators/setup-mf/lib/update-host-app-routes.js +2 -2
- package/src/generators/setup-mf/schema.d.ts +0 -1
- package/src/generators/setup-mf/schema.json +3 -8
- package/src/generators/setup-mf/setup-mf.js +7 -1
- package/src/generators/setup-ssr/files/{server/server-builder/pre-v17 → ngmodule/base}/__serverFileName__ +8 -7
- package/src/generators/setup-ssr/files/ngmodule/base/src/__main__ +1 -1
- package/src/generators/setup-ssr/files/ngmodule/v14/src/__main__ +11 -0
- package/src/generators/setup-ssr/files/{server/server-builder/v17+ → standalone}/__serverFileName__ +16 -25
- package/src/generators/setup-ssr/lib/add-hydration.js +5 -11
- package/src/generators/setup-ssr/lib/generate-files.d.ts +1 -1
- package/src/generators/setup-ssr/lib/generate-files.js +16 -11
- package/src/generators/setup-ssr/lib/index.d.ts +0 -4
- package/src/generators/setup-ssr/lib/index.js +0 -4
- package/src/generators/setup-ssr/lib/normalize-options.js +1 -7
- package/src/generators/setup-ssr/lib/update-project-config.d.ts +1 -2
- package/src/generators/setup-ssr/lib/update-project-config.js +13 -46
- package/src/generators/setup-ssr/lib/validate-options.js +2 -15
- package/src/generators/setup-ssr/schema.json +4 -4
- package/src/generators/setup-ssr/setup-ssr.js +12 -18
- package/src/generators/setup-tailwind/schema.json +1 -1
- package/src/generators/stories/schema.json +1 -1
- package/src/generators/stories/stories.js +2 -2
- package/src/generators/storybook-configuration/lib/generate-stories.js +4 -6
- package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +1 -3
- package/src/generators/storybook-configuration/schema.d.ts +1 -1
- package/src/generators/storybook-configuration/schema.json +7 -7
- package/src/generators/storybook-configuration/storybook-configuration.js +5 -8
- package/src/generators/utils/create-ts-config.d.ts +8 -0
- package/src/generators/utils/create-ts-config.js +35 -0
- package/src/generators/utils/dependencies.js +2 -1
- package/src/generators/utils/export-scam.js +2 -2
- package/src/generators/utils/project.d.ts +1 -0
- package/src/generators/utils/project.js +29 -2
- package/src/generators/utils/selector.d.ts +2 -2
- package/src/generators/utils/selector.js +4 -11
- package/src/generators/utils/testing.js +1 -24
- package/src/generators/utils/validations.d.ts +1 -0
- package/src/generators/utils/validations.js +14 -1
- package/src/generators/utils/version-utils.d.ts +2 -2
- package/src/generators/utils/version-utils.js +3 -3
- package/src/utils/backward-compatible-versions.d.ts +4 -6
- package/src/utils/backward-compatible-versions.js +22 -20
- package/src/utils/mf/utils.js +0 -7
- package/src/utils/mf/with-module-federation-ssr.js +0 -3
- package/src/utils/mf/with-module-federation.js +0 -3
- package/src/utils/nx-devkit/ast-utils.js +2 -4
- package/src/utils/nx-devkit/testing.js +31 -27
- package/src/utils/{index.d.ts → public-api.d.ts} +0 -5
- package/src/utils/{index.js → public-api.js} +0 -5
- package/src/utils/version-utils.d.ts +3 -3
- package/src/utils/versions.d.ts +11 -9
- package/src/utils/versions.js +12 -10
- package/src/builders/dev-server/dev-server.impl.d.ts +0 -4
- package/src/builders/dev-server/dev-server.impl.js +0 -160
- package/src/builders/dev-server/lib/normalize-options.d.ts +0 -2
- package/src/builders/dev-server/lib/normalize-options.js +0 -20
- package/src/builders/dev-server/lib/validate-options.d.ts +0 -2
- package/src/builders/dev-server/lib/validate-options.js +0 -22
- package/src/builders/dev-server/schema.d.ts +0 -39
- package/src/executors/application/application.impl.d.ts +0 -3
- package/src/executors/application/application.impl.js +0 -37
- package/src/executors/application/schema.d.ts +0 -8
- package/src/executors/application/schema.json +0 -682
- package/src/executors/application/utils/validate-options.d.ts +0 -2
- package/src/executors/application/utils/validate-options.js +0 -52
- package/src/executors/extract-i18n/extract-i18n.impl.d.ts +0 -3
- package/src/executors/extract-i18n/extract-i18n.impl.js +0 -43
- package/src/executors/extract-i18n/schema.d.ts +0 -8
- package/src/executors/extract-i18n/schema.json +0 -45
- package/src/executors/module-federation-dev-server/lib/build-static-remotes.d.ts +0 -4
- package/src/executors/module-federation-dev-server/lib/build-static-remotes.js +0 -56
- package/src/executors/module-federation-dev-server/lib/index.d.ts +0 -5
- package/src/executors/module-federation-dev-server/lib/index.js +0 -8
- package/src/executors/module-federation-dev-server/lib/normalize-options.d.ts +0 -2
- package/src/executors/module-federation-dev-server/lib/normalize-options.js +0 -23
- package/src/executors/module-federation-dev-server/lib/parse-static-remotes-config.d.ts +0 -11
- package/src/executors/module-federation-dev-server/lib/parse-static-remotes-config.js +0 -18
- package/src/executors/module-federation-dev-server/lib/start-dev-remotes.d.ts +0 -9
- package/src/executors/module-federation-dev-server/lib/start-dev-remotes.js +0 -29
- package/src/executors/module-federation-dev-server/lib/start-static-remotes-file-server.d.ts +0 -9
- package/src/executors/module-federation-dev-server/lib/start-static-remotes-file-server.js +0 -46
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts +0 -4
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +0 -115
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-packagr.d.ts +0 -3
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-packagr.js +0 -34
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-bundles.di.d.ts +0 -2
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-bundles.di.js +0 -12
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-bundles.transform.d.ts +0 -8
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-bundles.transform.js +0 -12
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-package.di.d.ts +0 -8
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-package.di.js +0 -18
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-package.transform.d.ts +0 -8
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-package.transform.js +0 -285
- package/src/executors/package/ng-packagr-adjustments/ng-packagr.d.ts +0 -3
- package/src/executors/package/ng-packagr-adjustments/ng-packagr.js +0 -28
- package/src/executors/utilities/buildable-libs.d.ts +0 -6
- package/src/executors/utilities/esbuild-extensions.d.ts +0 -10
- package/src/executors/utilities/esbuild-extensions.js +0 -50
- package/src/executors/utilities/module-loader.d.ts +0 -15
- package/src/executors/utilities/module-loader.js +0 -52
- package/src/executors/utilities/ng-compiler-cli.d.ts +0 -1
- package/src/executors/utilities/ng-compiler-cli.js +0 -8
- package/src/executors/utilities/ng-packagr/stylesheet-processor.d.ts +0 -49
- package/src/executors/utilities/ng-packagr/stylesheet-processor.di.d.ts +0 -2
- package/src/executors/utilities/ng-packagr/stylesheet-processor.di.js +0 -16
- package/src/executors/utilities/ng-packagr/stylesheet-processor.js +0 -209
- package/src/executors/utilities/ng-packagr/tailwindcss.d.ts +0 -7
- package/src/executors/utilities/patch-builder-context.d.ts +0 -3
- package/src/executors/utilities/patch-builder-context.js +0 -41
- package/src/generators/add-linting/lib/buildable-project.d.ts +0 -2
- package/src/generators/add-linting/lib/buildable-project.js +0 -9
- package/src/generators/application/lib/set-generator-defaults.d.ts +0 -3
- package/src/generators/application/lib/set-generator-defaults.js +0 -17
- package/src/generators/component/lib/set-generator-defaults.d.ts +0 -3
- package/src/generators/component/lib/set-generator-defaults.js +0 -14
- package/src/generators/convert-to-application-executor/convert-to-application-executor.d.ts +0 -4
- package/src/generators/convert-to-application-executor/convert-to-application-executor.js +0 -242
- package/src/generators/convert-to-application-executor/schema.d.ts +0 -4
- package/src/generators/convert-to-application-executor/schema.json +0 -26
- package/src/generators/host/files/common/v17+/src/main.server.ts__tmpl__ +0 -67
- package/src/generators/host/lib/update-ssr-setup.d.ts +0 -3
- package/src/generators/library/lib/set-generator-defaults.d.ts +0 -3
- package/src/generators/library/lib/set-generator-defaults.js +0 -15
- package/src/generators/remote/files/common/v17+/src/main.server.ts__tmpl__ +0 -73
- package/src/generators/setup-mf/files/ts-webpack/tsconfig.lint.json__tmpl__ +0 -12
- package/src/generators/setup-mf/lib/update-tsconfig.js +0 -19
- package/src/generators/setup-ssr/files/server/application-builder/__serverFileName__ +0 -56
- package/src/generators/setup-ssr/lib/add-dependencies.d.ts +0 -2
- package/src/generators/setup-ssr/lib/add-dependencies.js +0 -36
- package/src/generators/setup-ssr/lib/add-server-file.d.ts +0 -3
- package/src/generators/setup-ssr/lib/add-server-file.js +0 -31
- package/src/generators/setup-ssr/lib/constants.d.ts +0 -3
- package/src/generators/setup-ssr/lib/constants.js +0 -6
- package/src/generators/setup-ssr/lib/generate-server-ts-config.d.ts +0 -4
- package/src/generators/setup-ssr/lib/generate-server-ts-config.js +0 -29
- package/src/generators/setup-ssr/lib/set-router-initial-navigation.d.ts +0 -3
- package/src/generators/setup-ssr/lib/set-router-initial-navigation.js +0 -93
- package/src/generators/utils/add-jest.d.ts +0 -8
- package/src/generators/utils/add-jest.js +0 -36
- package/src/generators/utils/add-mf-env-to-inputs.d.ts +0 -2
- package/src/generators/utils/add-mf-env-to-inputs.js +0 -27
- package/src/generators/utils/ensure-angular-dependencies.d.ts +0 -2
- package/src/generators/utils/ensure-angular-dependencies.js +0 -35
- package/src/generators/utils/update-app-editor-tsconfig-excluded-files.d.ts +0 -2
- package/src/generators/utils/update-app-editor-tsconfig-excluded-files.js +0 -23
- package/src/generators/utils/update-project-root-tsconfig.d.ts +0 -3
- package/src/generators/utils/update-project-root-tsconfig.js +0 -26
- package/src/migrations/update-17-1-0/browser-target-to-build-target.d.ts +0 -3
- package/src/migrations/update-17-1-0/browser-target-to-build-target.js +0 -50
- package/src/migrations/update-17-1-0/replace-nguniversal-builders.d.ts +0 -2
- package/src/migrations/update-17-1-0/replace-nguniversal-builders.js +0 -75
- package/src/migrations/update-17-1-0/replace-nguniversal-engines.d.ts +0 -2
- package/src/migrations/update-17-1-0/replace-nguniversal-engines.js +0 -183
- package/src/migrations/update-17-1-0/update-angular-cli.d.ts +0 -3
- package/src/migrations/update-17-1-0/update-angular-cli.js +0 -23
- package/src/migrations/update-17-1-0/update-zone-js-deep-import.d.ts +0 -2
- package/src/migrations/update-17-1-0/update-zone-js-deep-import.js +0 -37
- package/src/migrations/update-17-2-0/rename-webpack-dev-server.d.ts +0 -2
- package/src/migrations/update-17-2-0/rename-webpack-dev-server.js +0 -40
- package/src/migrations/update-17-3-0/add-autoprefixer-dependency.d.ts +0 -2
- package/src/migrations/update-17-3-0/add-autoprefixer-dependency.js +0 -26
- package/src/migrations/update-17-3-0/add-browser-sync-dependency.d.ts +0 -2
- package/src/migrations/update-17-3-0/add-browser-sync-dependency.js +0 -26
- package/src/migrations/update-17-3-0/update-angular-cli.d.ts +0 -3
- package/src/migrations/update-17-3-0/update-angular-cli.js +0 -23
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.d.ts +0 -2
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.js +0 -26
- package/src/migrations/update-18-1-0/update-angular-cli.d.ts +0 -3
- package/src/migrations/update-18-1-0/update-angular-cli.js +0 -23
- package/src/migrations/update-18-1-1/fix-target-defaults-inputs.d.ts +0 -2
- package/src/migrations/update-18-1-1/fix-target-defaults-inputs.js +0 -53
- package/src/migrations/update-18-2-0/update-angular-cli.d.ts +0 -3
- package/src/migrations/update-18-2-0/update-angular-cli.js +0 -23
- package/src/utils/targets.d.ts +0 -2
- package/src/utils/targets.js +0 -17
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/compile-ngc.di.d.ts +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/compile-ngc.di.js +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/compile-ngc.transform.d.ts +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/entry-point.di.d.ts +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/entry-point.di.js +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/entry-point.transform.d.ts +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/entry-point.transform.js +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/write-package.di.d.ts +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/write-package.di.js +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/entry-point/write-package.transform.d.ts +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/options.di.d.ts +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/options.di.js +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/package.di.d.ts +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/ng-package → ng-package}/package.di.js +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/styles → styles}/stylesheet-processor.di.d.ts +0 -0
- /package/src/executors/ng-packagr-lite/ng-packagr-adjustments/{pre-v17/styles → styles}/stylesheet-processor.di.js +0 -0
- /package/src/generators/host/files/common/{pre-v17/src → src}/main.server.ts__tmpl__ +0 -0
- /package/src/generators/ngrx/files/{__directory__ → base/__directory__}/__fileName__.actions.ts__tmpl__ +0 -0
- /package/src/generators/ngrx/files/{__directory__ → base/__directory__}/__fileName__.effects.spec.ts__tmpl__ +0 -0
- /package/src/generators/ngrx/files/{__directory__ → base/__directory__}/__fileName__.effects.ts__tmpl__ +0 -0
- /package/src/generators/ngrx/files/{__directory__ → base/__directory__}/__fileName__.facade.spec.ts__tmpl__ +0 -0
- /package/src/generators/ngrx/files/{__directory__ → base/__directory__}/__fileName__.facade.ts__tmpl__ +0 -0
- /package/src/generators/ngrx/files/{__directory__ → base/__directory__}/__fileName__.reducer.spec.ts__tmpl__ +0 -0
- /package/src/generators/ngrx/files/{__directory__ → base/__directory__}/__fileName__.reducer.ts__tmpl__ +0 -0
- /package/src/generators/ngrx/files/{__directory__ → base/__directory__}/__fileName__.selectors.ts__tmpl__ +0 -0
- /package/src/generators/ngrx-feature-store/files/{__directory__ → base/__directory__}/__fileName__.actions.ts__tmpl__ +0 -0
- /package/src/generators/ngrx-feature-store/files/{__directory__ → base/__directory__}/__fileName__.effects.spec.ts__tmpl__ +0 -0
- /package/src/generators/ngrx-feature-store/files/{__directory__ → base/__directory__}/__fileName__.effects.ts__tmpl__ +0 -0
- /package/src/generators/ngrx-feature-store/files/{__directory__ → base/__directory__}/__fileName__.facade.spec.ts__tmpl__ +0 -0
- /package/src/generators/ngrx-feature-store/files/{__directory__ → base/__directory__}/__fileName__.facade.ts__tmpl__ +0 -0
- /package/src/generators/ngrx-feature-store/files/{__directory__ → base/__directory__}/__fileName__.reducer.spec.ts__tmpl__ +0 -0
- /package/src/generators/ngrx-feature-store/files/{__directory__ → base/__directory__}/__fileName__.reducer.ts__tmpl__ +0 -0
- /package/src/generators/ngrx-feature-store/files/{__directory__ → base/__directory__}/__fileName__.selectors.ts__tmpl__ +0 -0
- /package/src/generators/setup-ssr/files/{root → base}/tsconfig.server.json__tpl__ +0 -0
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Adapted from the original ng-packagr source.
|
|
4
|
-
*
|
|
5
|
-
* Changes made:
|
|
6
|
-
* - Use our own function to get the TailwindCSS config path to support a
|
|
7
|
-
* config at the root of the workspace.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.AsyncStylesheetProcessor = exports.StylesheetProcessor = exports.CssUrl = void 0;
|
|
11
|
-
const browserslist = require("browserslist");
|
|
12
|
-
const fs_1 = require("fs");
|
|
13
|
-
const path_1 = require("path");
|
|
14
|
-
const Piscina = require('piscina');
|
|
15
|
-
const color_1 = require("ng-packagr/lib/utils/color");
|
|
16
|
-
// using this instead of the one from ng-packagr
|
|
17
|
-
const tailwindcss_1 = require("./tailwindcss");
|
|
18
|
-
const devkit_1 = require("@nx/devkit");
|
|
19
|
-
const semver_1 = require("semver");
|
|
20
|
-
const angular_version_utils_1 = require("../angular-version-utils");
|
|
21
|
-
const maxWorkersVariable = process.env['NG_BUILD_MAX_WORKERS'];
|
|
22
|
-
const maxThreads = typeof maxWorkersVariable === 'string' && maxWorkersVariable !== ''
|
|
23
|
-
? +maxWorkersVariable
|
|
24
|
-
: 4;
|
|
25
|
-
var CssUrl;
|
|
26
|
-
(function (CssUrl) {
|
|
27
|
-
CssUrl["inline"] = "inline";
|
|
28
|
-
CssUrl["none"] = "none";
|
|
29
|
-
})(CssUrl || (exports.CssUrl = CssUrl = {}));
|
|
30
|
-
class StylesheetProcessor {
|
|
31
|
-
constructor(projectBasePath, basePath, cssUrl, includePaths, cacheDirectory) {
|
|
32
|
-
this.projectBasePath = projectBasePath;
|
|
33
|
-
this.basePath = basePath;
|
|
34
|
-
this.cssUrl = cssUrl;
|
|
35
|
-
this.includePaths = includePaths;
|
|
36
|
-
this.cacheDirectory = cacheDirectory;
|
|
37
|
-
// By default, browserslist defaults are too inclusive
|
|
38
|
-
// https://github.com/browserslist/browserslist/blob/83764ea81ffaa39111c204b02c371afa44a4ff07/index.js#L516-L522
|
|
39
|
-
// We change the default query to browsers that Angular support.
|
|
40
|
-
// https://angular.io/guide/browser-support
|
|
41
|
-
browserslist.defaults = [
|
|
42
|
-
'last 2 Chrome versions',
|
|
43
|
-
'last 1 Firefox version',
|
|
44
|
-
'last 2 Edge major versions',
|
|
45
|
-
'last 2 Safari major versions',
|
|
46
|
-
'last 2 iOS major versions',
|
|
47
|
-
'Firefox ESR',
|
|
48
|
-
];
|
|
49
|
-
}
|
|
50
|
-
async process({ filePath, content, }) {
|
|
51
|
-
this.createRenderWorker();
|
|
52
|
-
return this.renderWorker.run({ content, filePath });
|
|
53
|
-
}
|
|
54
|
-
/** Destory workers in pool. */
|
|
55
|
-
destroy() {
|
|
56
|
-
void this.renderWorker?.destroy();
|
|
57
|
-
}
|
|
58
|
-
createRenderWorker() {
|
|
59
|
-
if (this.renderWorker) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
const styleIncludePaths = [...this.includePaths];
|
|
63
|
-
let prevDir = null;
|
|
64
|
-
let currentDir = this.basePath;
|
|
65
|
-
while (currentDir !== prevDir) {
|
|
66
|
-
const p = (0, path_1.join)(currentDir, 'node_modules');
|
|
67
|
-
if ((0, fs_1.existsSync)(p)) {
|
|
68
|
-
styleIncludePaths.push(p);
|
|
69
|
-
}
|
|
70
|
-
prevDir = currentDir;
|
|
71
|
-
currentDir = (0, path_1.dirname)(prevDir);
|
|
72
|
-
}
|
|
73
|
-
const browserslistData = browserslist(undefined, { path: this.basePath });
|
|
74
|
-
const { version: ngPackagrVersion } = (0, angular_version_utils_1.getInstalledPackageVersionInfo)('ng-packagr');
|
|
75
|
-
let postcssConfiguration;
|
|
76
|
-
if ((0, semver_1.gte)(ngPackagrVersion, '17.3.0')) {
|
|
77
|
-
const { loadPostcssConfiguration, } = require('ng-packagr/lib/styles/postcss-configuration');
|
|
78
|
-
postcssConfiguration = loadPostcssConfiguration(this.projectBasePath);
|
|
79
|
-
}
|
|
80
|
-
this.renderWorker = new Piscina({
|
|
81
|
-
filename: require.resolve('ng-packagr/lib/styles/stylesheet-processor-worker'),
|
|
82
|
-
maxThreads,
|
|
83
|
-
recordTiming: false,
|
|
84
|
-
env: {
|
|
85
|
-
...process.env,
|
|
86
|
-
FORCE_COLOR: '' + color_1.colors.enabled,
|
|
87
|
-
},
|
|
88
|
-
workerData: {
|
|
89
|
-
postcssConfiguration,
|
|
90
|
-
tailwindConfigPath: (0, tailwindcss_1.getTailwindConfigPath)(this.projectBasePath, devkit_1.workspaceRoot),
|
|
91
|
-
projectBasePath: this.projectBasePath,
|
|
92
|
-
browserslistData,
|
|
93
|
-
targets: transformSupportedBrowsersToTargets(browserslistData),
|
|
94
|
-
cacheDirectory: this.cacheDirectory,
|
|
95
|
-
cssUrl: this.cssUrl,
|
|
96
|
-
styleIncludePaths,
|
|
97
|
-
},
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
exports.StylesheetProcessor = StylesheetProcessor;
|
|
102
|
-
/**
|
|
103
|
-
* This class is used when ng-packagr version is 17.2.0. The async `loadPostcssConfiguration` function
|
|
104
|
-
* introduced in ng-packagr 17.2.0 causes a memory leak due to multiple workers being created. We must
|
|
105
|
-
* keep this class to support any workspace that might be using ng-packagr 17.2.0 where that function
|
|
106
|
-
* need to be awaited.
|
|
107
|
-
*/
|
|
108
|
-
class AsyncStylesheetProcessor {
|
|
109
|
-
constructor(projectBasePath, basePath, cssUrl, includePaths, cacheDirectory) {
|
|
110
|
-
this.projectBasePath = projectBasePath;
|
|
111
|
-
this.basePath = basePath;
|
|
112
|
-
this.cssUrl = cssUrl;
|
|
113
|
-
this.includePaths = includePaths;
|
|
114
|
-
this.cacheDirectory = cacheDirectory;
|
|
115
|
-
// By default, browserslist defaults are too inclusive
|
|
116
|
-
// https://github.com/browserslist/browserslist/blob/83764ea81ffaa39111c204b02c371afa44a4ff07/index.js#L516-L522
|
|
117
|
-
// We change the default query to browsers that Angular support.
|
|
118
|
-
// https://angular.io/guide/browser-support
|
|
119
|
-
browserslist.defaults = [
|
|
120
|
-
'last 2 Chrome versions',
|
|
121
|
-
'last 1 Firefox version',
|
|
122
|
-
'last 2 Edge major versions',
|
|
123
|
-
'last 2 Safari major versions',
|
|
124
|
-
'last 2 iOS major versions',
|
|
125
|
-
'Firefox ESR',
|
|
126
|
-
];
|
|
127
|
-
}
|
|
128
|
-
async process({ filePath, content, }) {
|
|
129
|
-
await this.createRenderWorker();
|
|
130
|
-
return this.renderWorker.run({ content, filePath });
|
|
131
|
-
}
|
|
132
|
-
/** Destory workers in pool. */
|
|
133
|
-
destroy() {
|
|
134
|
-
void this.renderWorker?.destroy();
|
|
135
|
-
}
|
|
136
|
-
async createRenderWorker() {
|
|
137
|
-
if (this.renderWorker) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
const styleIncludePaths = [...this.includePaths];
|
|
141
|
-
let prevDir = null;
|
|
142
|
-
let currentDir = this.basePath;
|
|
143
|
-
while (currentDir !== prevDir) {
|
|
144
|
-
const p = (0, path_1.join)(currentDir, 'node_modules');
|
|
145
|
-
if ((0, fs_1.existsSync)(p)) {
|
|
146
|
-
styleIncludePaths.push(p);
|
|
147
|
-
}
|
|
148
|
-
prevDir = currentDir;
|
|
149
|
-
currentDir = (0, path_1.dirname)(prevDir);
|
|
150
|
-
}
|
|
151
|
-
const browserslistData = browserslist(undefined, { path: this.basePath });
|
|
152
|
-
const { version: ngPackagrVersion } = (0, angular_version_utils_1.getInstalledPackageVersionInfo)('ng-packagr');
|
|
153
|
-
let postcssConfiguration;
|
|
154
|
-
if (ngPackagrVersion === '17.2.0') {
|
|
155
|
-
const { loadPostcssConfiguration } = await Promise.resolve().then(() => require('ng-packagr/lib/styles/postcss-configuration'));
|
|
156
|
-
postcssConfiguration = await loadPostcssConfiguration(this.projectBasePath);
|
|
157
|
-
}
|
|
158
|
-
this.renderWorker = new Piscina({
|
|
159
|
-
filename: require.resolve('ng-packagr/lib/styles/stylesheet-processor-worker'),
|
|
160
|
-
maxThreads,
|
|
161
|
-
recordTiming: false,
|
|
162
|
-
env: {
|
|
163
|
-
...process.env,
|
|
164
|
-
FORCE_COLOR: '' + color_1.colors.enabled,
|
|
165
|
-
},
|
|
166
|
-
workerData: {
|
|
167
|
-
postcssConfiguration,
|
|
168
|
-
tailwindConfigPath: (0, tailwindcss_1.getTailwindConfigPath)(this.projectBasePath, devkit_1.workspaceRoot),
|
|
169
|
-
projectBasePath: this.projectBasePath,
|
|
170
|
-
browserslistData,
|
|
171
|
-
targets: transformSupportedBrowsersToTargets(browserslistData),
|
|
172
|
-
cacheDirectory: this.cacheDirectory,
|
|
173
|
-
cssUrl: this.cssUrl,
|
|
174
|
-
styleIncludePaths,
|
|
175
|
-
},
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
exports.AsyncStylesheetProcessor = AsyncStylesheetProcessor;
|
|
180
|
-
function transformSupportedBrowsersToTargets(supportedBrowsers) {
|
|
181
|
-
const transformed = [];
|
|
182
|
-
// https://esbuild.github.io/api/#target
|
|
183
|
-
const esBuildSupportedBrowsers = new Set([
|
|
184
|
-
'safari',
|
|
185
|
-
'firefox',
|
|
186
|
-
'edge',
|
|
187
|
-
'chrome',
|
|
188
|
-
'ios',
|
|
189
|
-
]);
|
|
190
|
-
for (const browser of supportedBrowsers) {
|
|
191
|
-
let [browserName, version] = browser.split(' ');
|
|
192
|
-
// browserslist uses the name `ios_saf` for iOS Safari whereas esbuild uses `ios`
|
|
193
|
-
if (browserName === 'ios_saf') {
|
|
194
|
-
browserName = 'ios';
|
|
195
|
-
}
|
|
196
|
-
// browserslist uses ranges `15.2-15.3` versions but only the lowest is required
|
|
197
|
-
// to perform minimum supported feature checks. esbuild also expects a single version.
|
|
198
|
-
[version] = version.split('-');
|
|
199
|
-
if (esBuildSupportedBrowsers.has(browserName)) {
|
|
200
|
-
if (browserName === 'safari' && version === 'tp') {
|
|
201
|
-
// esbuild only supports numeric versions so `TP` is converted to a high number (999) since
|
|
202
|
-
// a Technology Preview (TP) of Safari is assumed to support all currently known features.
|
|
203
|
-
version = '999';
|
|
204
|
-
}
|
|
205
|
-
transformed.push(browserName + version);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
return transformed.length ? transformed : undefined;
|
|
209
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface TailwindSetup {
|
|
2
|
-
tailwindConfigPath: string;
|
|
3
|
-
tailwindPackagePath: string;
|
|
4
|
-
}
|
|
5
|
-
export declare function getTailwindSetup(basePath: string, tailwindConfig?: string): TailwindSetup | undefined;
|
|
6
|
-
export declare function getTailwindConfigPath(projectRoot: string, workspaceRoot: string): string | undefined;
|
|
7
|
-
export declare function getTailwindPostCssPlugin({ tailwindConfigPath, tailwindPackagePath, }: TailwindSetup): any;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.patchBuilderContext = void 0;
|
|
4
|
-
const executorToBuilderMap = new Map([
|
|
5
|
-
[
|
|
6
|
-
'@nx/angular:browser-esbuild',
|
|
7
|
-
'@angular-devkit/build-angular:browser-esbuild',
|
|
8
|
-
],
|
|
9
|
-
['@nx/angular:application', '@angular-devkit/build-angular:application'],
|
|
10
|
-
]);
|
|
11
|
-
function patchBuilderContext(context, isUsingEsbuildBuilder, buildTarget) {
|
|
12
|
-
const originalGetBuilderNameForTarget = context.getBuilderNameForTarget;
|
|
13
|
-
context.getBuilderNameForTarget = async (target) => {
|
|
14
|
-
const builderName = await originalGetBuilderNameForTarget(target);
|
|
15
|
-
if (executorToBuilderMap.has(builderName)) {
|
|
16
|
-
return executorToBuilderMap.get(builderName);
|
|
17
|
-
}
|
|
18
|
-
return builderName;
|
|
19
|
-
};
|
|
20
|
-
if (isUsingEsbuildBuilder) {
|
|
21
|
-
const originalGetTargetOptions = context.getTargetOptions;
|
|
22
|
-
context.getTargetOptions = async (target) => {
|
|
23
|
-
const options = await originalGetTargetOptions(target);
|
|
24
|
-
if (target.project === buildTarget.project &&
|
|
25
|
-
target.target === buildTarget.target &&
|
|
26
|
-
target.configuration === buildTarget.configuration) {
|
|
27
|
-
cleanBuildTargetOptions(options);
|
|
28
|
-
}
|
|
29
|
-
return options;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.patchBuilderContext = patchBuilderContext;
|
|
34
|
-
function cleanBuildTargetOptions(options) {
|
|
35
|
-
delete options.buildLibsFromSource;
|
|
36
|
-
delete options.customWebpackConfig;
|
|
37
|
-
delete options.indexHtmlTransformer;
|
|
38
|
-
delete options.indexFileTransformer;
|
|
39
|
-
delete options.plugins;
|
|
40
|
-
return options;
|
|
41
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isBuildableLibraryProject = void 0;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
function isBuildableLibraryProject(tree, projectName) {
|
|
6
|
-
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, projectName);
|
|
7
|
-
return (projectConfig.projectType === 'library' && !!projectConfig.targets?.build);
|
|
8
|
-
}
|
|
9
|
-
exports.isBuildableLibraryProject = isBuildableLibraryProject;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setGeneratorDefaults = void 0;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
function setGeneratorDefaults(tree, options) {
|
|
6
|
-
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
7
|
-
nxJson.generators = nxJson.generators ?? {};
|
|
8
|
-
nxJson.generators['@nx/angular:application'] = {
|
|
9
|
-
e2eTestRunner: options.e2eTestRunner,
|
|
10
|
-
linter: options.linter,
|
|
11
|
-
style: options.style,
|
|
12
|
-
unitTestRunner: options.unitTestRunner,
|
|
13
|
-
...(nxJson.generators['@nx/angular:application'] || {}),
|
|
14
|
-
};
|
|
15
|
-
(0, devkit_1.updateNxJson)(tree, nxJson);
|
|
16
|
-
}
|
|
17
|
-
exports.setGeneratorDefaults = setGeneratorDefaults;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setGeneratorDefaults = void 0;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
function setGeneratorDefaults(tree, options) {
|
|
6
|
-
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
7
|
-
nxJson.generators = nxJson.generators ?? {};
|
|
8
|
-
nxJson.generators['@nx/angular:component'] = {
|
|
9
|
-
style: options.style,
|
|
10
|
-
...(nxJson.generators['@nx/angular:component'] || {}),
|
|
11
|
-
};
|
|
12
|
-
(0, devkit_1.updateNxJson)(tree, nxJson);
|
|
13
|
-
}
|
|
14
|
-
exports.setGeneratorDefaults = setGeneratorDefaults;
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.convertToApplicationExecutor = void 0;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const posix_1 = require("node:path/posix");
|
|
6
|
-
const semver_1 = require("semver");
|
|
7
|
-
const targets_1 = require("../../utils/targets");
|
|
8
|
-
const setup_ssr_1 = require("../setup-ssr/setup-ssr");
|
|
9
|
-
const validations_1 = require("../utils/validations");
|
|
10
|
-
const version_utils_1 = require("../utils/version-utils");
|
|
11
|
-
const executorsToConvert = new Set([
|
|
12
|
-
'@angular-devkit/build-angular:browser',
|
|
13
|
-
'@angular-devkit/build-angular:browser-esbuild',
|
|
14
|
-
'@nx/angular:webpack-browser',
|
|
15
|
-
'@nx/angular:browser-esbuild',
|
|
16
|
-
]);
|
|
17
|
-
const serverTargetExecutors = new Set([
|
|
18
|
-
'@angular-devkit/build-angular:server',
|
|
19
|
-
'@nx/angular:webpack-server',
|
|
20
|
-
]);
|
|
21
|
-
const redundantExecutors = new Set([
|
|
22
|
-
'@angular-devkit/build-angular:server',
|
|
23
|
-
'@angular-devkit/build-angular:prerender',
|
|
24
|
-
'@angular-devkit/build-angular:app-shell',
|
|
25
|
-
'@angular-devkit/build-angular:ssr-dev-server',
|
|
26
|
-
'@nx/angular:webpack-server',
|
|
27
|
-
]);
|
|
28
|
-
async function convertToApplicationExecutor(tree, options) {
|
|
29
|
-
const { major: angularMajorVersion, version: angularVersion } = (0, version_utils_1.getInstalledAngularVersionInfo)(tree);
|
|
30
|
-
if (angularMajorVersion < 17) {
|
|
31
|
-
throw new Error(`The "convert-to-application-executor" generator is only supported in Angular >= 17.0.0. You are currently using "${angularVersion}".`);
|
|
32
|
-
}
|
|
33
|
-
let didAnySucceed = false;
|
|
34
|
-
if (options.project) {
|
|
35
|
-
(0, validations_1.validateProject)(tree, options.project);
|
|
36
|
-
didAnySucceed = await convertProjectTargets(tree, options.project, angularVersion, true);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
const projects = (0, devkit_1.getProjects)(tree);
|
|
40
|
-
for (const [projectName] of projects) {
|
|
41
|
-
devkit_1.logger.info(`Converting project "${projectName}"...`);
|
|
42
|
-
const success = await convertProjectTargets(tree, projectName, angularVersion);
|
|
43
|
-
if (success) {
|
|
44
|
-
devkit_1.logger.info(`Project "${projectName}" converted successfully.`);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
devkit_1.logger.info(`Project "${projectName}" could not be converted. See above for more information.`);
|
|
48
|
-
}
|
|
49
|
-
devkit_1.logger.info('');
|
|
50
|
-
didAnySucceed = didAnySucceed || success;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
if (!options.skipFormat) {
|
|
54
|
-
await (0, devkit_1.formatFiles)(tree);
|
|
55
|
-
}
|
|
56
|
-
return didAnySucceed ? () => (0, devkit_1.installPackagesTask)(tree) : () => { };
|
|
57
|
-
}
|
|
58
|
-
exports.convertToApplicationExecutor = convertToApplicationExecutor;
|
|
59
|
-
async function convertProjectTargets(tree, projectName, angularVersion, isProvidedProject = false) {
|
|
60
|
-
function warnIfProvided(message) {
|
|
61
|
-
if (isProvidedProject) {
|
|
62
|
-
devkit_1.logger.warn(message);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
let project = (0, devkit_1.readProjectConfiguration)(tree, projectName);
|
|
66
|
-
if (project.projectType !== 'application') {
|
|
67
|
-
warnIfProvided(`The provided project "${projectName}" is not an application. Skipping conversion.`);
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
const { buildTargetName, serverTargetName } = getTargetsToConvert(project.targets, angularVersion);
|
|
71
|
-
if (!buildTargetName) {
|
|
72
|
-
warnIfProvided(`The provided project "${projectName}" does not have any targets using on of the ` +
|
|
73
|
-
`'@angular-devkit/build-angular:browser', '@angular-devkit/build-angular:browser-esbuild', ` +
|
|
74
|
-
`'@nx/angular:browser' and '@nx/angular:browser-esbuild' executors. Skipping conversion.`);
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
const useNxExecutor = project.targets[buildTargetName].executor.startsWith('@nx/angular:');
|
|
78
|
-
const newExecutor = useNxExecutor
|
|
79
|
-
? '@nx/angular:application'
|
|
80
|
-
: '@angular-devkit/build-angular:application';
|
|
81
|
-
const buildTarget = project.targets[buildTargetName];
|
|
82
|
-
buildTarget.executor = newExecutor;
|
|
83
|
-
if ((0, semver_1.gte)(angularVersion, '17.1.0') && buildTarget.outputs) {
|
|
84
|
-
buildTarget.outputs = buildTarget.outputs.map((output) => output === '{options.outputPath}' ? '{options.outputPath.base}' : output);
|
|
85
|
-
}
|
|
86
|
-
for (const [, options] of (0, targets_1.allTargetOptions)(buildTarget)) {
|
|
87
|
-
if (options['index'] === '') {
|
|
88
|
-
options['index'] = false;
|
|
89
|
-
}
|
|
90
|
-
// Rename and transform options
|
|
91
|
-
options['browser'] = options['main'];
|
|
92
|
-
if (serverTargetName && typeof options['browser'] === 'string') {
|
|
93
|
-
options['server'] = (0, posix_1.dirname)(options['browser']) + '/main.server.ts';
|
|
94
|
-
}
|
|
95
|
-
options['serviceWorker'] =
|
|
96
|
-
options['ngswConfigPath'] ?? options['serviceWorker'];
|
|
97
|
-
if (typeof options['polyfills'] === 'string') {
|
|
98
|
-
options['polyfills'] = [options['polyfills']];
|
|
99
|
-
}
|
|
100
|
-
let outputPath = options['outputPath'];
|
|
101
|
-
if ((0, semver_1.lt)(angularVersion, '17.1.0')) {
|
|
102
|
-
options['outputPath'] = outputPath?.replace(/\/browser\/?$/, '');
|
|
103
|
-
}
|
|
104
|
-
else if (typeof outputPath === 'string') {
|
|
105
|
-
if (!/\/browser\/?$/.test(outputPath)) {
|
|
106
|
-
devkit_1.logger.warn(`The output location of the browser build has been updated from "${outputPath}" to ` +
|
|
107
|
-
`"${(0, posix_1.join)(outputPath, 'browser')}". ` +
|
|
108
|
-
'You might need to adjust your deployment pipeline or, as an alternative, ' +
|
|
109
|
-
'set outputPath.browser to "" in order to maintain the previous functionality.');
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
outputPath = outputPath.replace(/\/browser\/?$/, '');
|
|
113
|
-
}
|
|
114
|
-
options['outputPath'] = {
|
|
115
|
-
base: outputPath,
|
|
116
|
-
};
|
|
117
|
-
if (typeof options['resourcesOutputPath'] === 'string') {
|
|
118
|
-
const media = options['resourcesOutputPath'].replaceAll('/', '');
|
|
119
|
-
if (media && media !== 'media') {
|
|
120
|
-
options['outputPath'] = {
|
|
121
|
-
base: outputPath,
|
|
122
|
-
media: media,
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
// Delete removed options
|
|
128
|
-
if ((0, semver_1.lt)(angularVersion, '17.3.0')) {
|
|
129
|
-
delete options['deployUrl'];
|
|
130
|
-
}
|
|
131
|
-
delete options['vendorChunk'];
|
|
132
|
-
delete options['commonChunk'];
|
|
133
|
-
delete options['resourcesOutputPath'];
|
|
134
|
-
delete options['buildOptimizer'];
|
|
135
|
-
delete options['main'];
|
|
136
|
-
delete options['ngswConfigPath'];
|
|
137
|
-
}
|
|
138
|
-
// Merge browser and server tsconfig
|
|
139
|
-
if (serverTargetName) {
|
|
140
|
-
const browserTsConfigPath = buildTarget?.options?.tsConfig;
|
|
141
|
-
const serverTsConfigPath = project.targets['server']?.options?.tsConfig;
|
|
142
|
-
if (typeof browserTsConfigPath !== 'string') {
|
|
143
|
-
devkit_1.logger.warn(`Cannot update project "${projectName}" to use the application executor ` +
|
|
144
|
-
`as the browser tsconfig cannot be located.`);
|
|
145
|
-
}
|
|
146
|
-
if (typeof serverTsConfigPath !== 'string') {
|
|
147
|
-
devkit_1.logger.warn(`Cannot update project "${projectName}" to use the application executor ` +
|
|
148
|
-
`as the server tsconfig cannot be located.`);
|
|
149
|
-
}
|
|
150
|
-
const browserTsConfigJson = (0, devkit_1.readJson)(tree, browserTsConfigPath);
|
|
151
|
-
const serverTsConfigJson = (0, devkit_1.readJson)(tree, serverTsConfigPath);
|
|
152
|
-
const files = new Set([
|
|
153
|
-
...(browserTsConfigJson.files ?? []),
|
|
154
|
-
...(serverTsConfigJson.files ?? []),
|
|
155
|
-
]);
|
|
156
|
-
// Server file will be added later by the setup-ssr generator
|
|
157
|
-
files.delete('server.ts');
|
|
158
|
-
browserTsConfigJson.files = Array.from(files);
|
|
159
|
-
browserTsConfigJson.compilerOptions ?? {};
|
|
160
|
-
browserTsConfigJson.compilerOptions.types = Array.from(new Set([
|
|
161
|
-
...(browserTsConfigJson.compilerOptions.types ?? []),
|
|
162
|
-
...(serverTsConfigJson.compilerOptions?.types ?? []),
|
|
163
|
-
]));
|
|
164
|
-
// Delete server tsconfig
|
|
165
|
-
tree.delete(serverTsConfigPath);
|
|
166
|
-
}
|
|
167
|
-
// Update project main tsconfig
|
|
168
|
-
const projectRootTsConfigPath = (0, posix_1.join)(project.root, 'tsconfig.json');
|
|
169
|
-
if (tree.exists(projectRootTsConfigPath)) {
|
|
170
|
-
const rootTsConfigJson = (0, devkit_1.readJson)(tree, projectRootTsConfigPath);
|
|
171
|
-
rootTsConfigJson.compilerOptions ?? {};
|
|
172
|
-
rootTsConfigJson.compilerOptions.esModuleInterop = true;
|
|
173
|
-
rootTsConfigJson.compilerOptions.downlevelIteration = undefined;
|
|
174
|
-
rootTsConfigJson.compilerOptions.allowSyntheticDefaultImports = undefined;
|
|
175
|
-
(0, devkit_1.writeJson)(tree, projectRootTsConfigPath, rootTsConfigJson);
|
|
176
|
-
}
|
|
177
|
-
// Update server file
|
|
178
|
-
const ssrMainFile = project.targets['server']?.options?.['main'];
|
|
179
|
-
if (typeof ssrMainFile === 'string') {
|
|
180
|
-
tree.delete(ssrMainFile);
|
|
181
|
-
// apply changes so the setup-ssr generator can access the updated project
|
|
182
|
-
(0, devkit_1.updateProjectConfiguration)(tree, projectName, project);
|
|
183
|
-
await (0, setup_ssr_1.setupSsr)(tree, { project: projectName, skipFormat: true });
|
|
184
|
-
// re-read project configuration as it might have changed
|
|
185
|
-
project = (0, devkit_1.readProjectConfiguration)(tree, projectName);
|
|
186
|
-
}
|
|
187
|
-
// Delete all redundant targets
|
|
188
|
-
for (const [targetName, target] of Object.entries(project.targets)) {
|
|
189
|
-
if (redundantExecutors.has(target.executor)) {
|
|
190
|
-
delete project.targets[targetName];
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
(0, devkit_1.updateProjectConfiguration)(tree, projectName, project);
|
|
194
|
-
return true;
|
|
195
|
-
}
|
|
196
|
-
function getTargetsToConvert(targets, angularVersion) {
|
|
197
|
-
let buildTargetName;
|
|
198
|
-
let serverTargetName;
|
|
199
|
-
for (const target of Object.keys(targets)) {
|
|
200
|
-
if (targets[target].executor === '@nx/angular:application' ||
|
|
201
|
-
targets[target].executor === '@angular-devkit/build-angular:application') {
|
|
202
|
-
devkit_1.logger.warn('The project is already using the application builder. Skipping conversion.');
|
|
203
|
-
return {};
|
|
204
|
-
}
|
|
205
|
-
// build target
|
|
206
|
-
if (executorsToConvert.has(targets[target].executor)) {
|
|
207
|
-
for (const [, options] of (0, targets_1.allTargetOptions)(targets[target])) {
|
|
208
|
-
if ((0, semver_1.lt)(angularVersion, '17.3.0') && options.deployUrl) {
|
|
209
|
-
devkit_1.logger.warn(`The project is using the "deployUrl" option which is not available in the application builder. Skipping conversion.`);
|
|
210
|
-
return {};
|
|
211
|
-
}
|
|
212
|
-
if (options.customWebpackConfig) {
|
|
213
|
-
devkit_1.logger.warn(`The project is using a custom webpack configuration which is not supported by the esbuild-based application executor. Skipping conversion.`);
|
|
214
|
-
return {};
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
if (buildTargetName) {
|
|
218
|
-
devkit_1.logger.warn('The project has more than one build target. Skipping conversion.');
|
|
219
|
-
return {};
|
|
220
|
-
}
|
|
221
|
-
buildTargetName = target;
|
|
222
|
-
}
|
|
223
|
-
// server target
|
|
224
|
-
if (serverTargetExecutors.has(targets[target].executor)) {
|
|
225
|
-
if (targets[target].executor === '@nx/angular:webpack-server') {
|
|
226
|
-
for (const [, options] of (0, targets_1.allTargetOptions)(targets[target])) {
|
|
227
|
-
if (options.customWebpackConfig) {
|
|
228
|
-
devkit_1.logger.warn(`The project is using a custom webpack configuration which is not supported by the esbuild-based application executor. Skipping conversion.`);
|
|
229
|
-
return {};
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
if (serverTargetName) {
|
|
234
|
-
devkit_1.logger.warn('The project has more than one server target. Skipping conversion.');
|
|
235
|
-
return {};
|
|
236
|
-
}
|
|
237
|
-
serverTargetName = target;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return { buildTargetName, serverTargetName };
|
|
241
|
-
}
|
|
242
|
-
exports.default = convertToApplicationExecutor;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "NxAngularConvertToApplicationExecutorGenerator",
|
|
4
|
-
"cli": "nx",
|
|
5
|
-
"title": "Converts projects to use the `@nx/angular:application` executor or the `@angular-devkit/build-angular:application` builder. _Note: this is only supported in Angular versions >= 17.0.0_.",
|
|
6
|
-
"description": "Converts a project or all projects using one of the `@angular-devkit/build-angular:browser`, `@angular-devkit/build-angular:browser-esbuild`, `@nx/angular:browser` and `@nx/angular:browser-esbuild` executors to use the `@nx/angular:application` executor or the `@angular-devkit/build-angular:application` builder. If the converted target is using one of the `@nx/angular` executors, the `@nx/angular:application` executor will be used. Otherwise, the `@angular-devkit/build-angular:application` builder will be used.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"project": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "Name of the Angular application project to convert. It has to contain a target using one of the `@angular-devkit/build-angular:browser`, `@angular-devkit/build-angular:browser-esbuild`, `@nx/angular:browser` and `@nx/angular:browser-esbuild` executors. If not specified, all projects with such targets will be converted.",
|
|
12
|
-
"$default": {
|
|
13
|
-
"$source": "argv",
|
|
14
|
-
"index": 0
|
|
15
|
-
},
|
|
16
|
-
"x-priority": "important"
|
|
17
|
-
},
|
|
18
|
-
"skipFormat": {
|
|
19
|
-
"description": "Skip formatting files.",
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"default": false,
|
|
22
|
-
"x-priority": "internal"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"additionalProperties": false
|
|
26
|
-
}
|