@nrwl/angular 15.9.2 → 16.0.0-beta.1
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/README.md +4 -56
- package/esm2020/index.mjs +5 -2
- package/esm2020/mf/index.mjs +5 -2
- package/esm2020/mf/nrwl-angular-mf.mjs +5 -2
- package/esm2020/nrwl-angular.mjs +5 -2
- package/esm2020/testing/index.mjs +7 -2
- package/esm2020/testing/nrwl-angular-testing.mjs +5 -2
- package/executors.d.ts +1 -8
- package/executors.js +1 -8
- package/executors.js.map +1 -1
- package/executors.json +22 -22
- package/fesm2015/nrwl-angular-mf.mjs +4 -56
- package/fesm2015/nrwl-angular-mf.mjs.map +1 -1
- package/fesm2015/nrwl-angular-testing.mjs +4 -39
- package/fesm2015/nrwl-angular-testing.mjs.map +1 -1
- package/fesm2015/nrwl-angular.mjs +4 -347
- package/fesm2015/nrwl-angular.mjs.map +1 -1
- package/fesm2020/nrwl-angular-mf.mjs +4 -50
- package/fesm2020/nrwl-angular-mf.mjs.map +1 -1
- package/fesm2020/nrwl-angular-testing.mjs +4 -39
- package/fesm2020/nrwl-angular-testing.mjs.map +1 -1
- package/fesm2020/nrwl-angular.mjs +4 -347
- package/fesm2020/nrwl-angular.mjs.map +1 -1
- package/generators.d.ts +1 -28
- package/generators.js +1 -28
- package/generators.js.map +1 -1
- package/generators.json +2 -317
- package/index.d.ts +1 -1
- package/index.js +2 -6
- package/index.js.map +1 -1
- package/mf/index.d.ts +1 -1
- package/mf/index.js +2 -5
- package/mf/index.js.map +1 -1
- package/module-federation/index.d.ts +1 -2
- package/module-federation/index.js +2 -5
- package/module-federation/index.js.map +1 -1
- package/ng-package.json +3 -0
- package/package.json +9 -41
- package/plugins/component-testing.d.ts +1 -38
- package/plugins/component-testing.js +2 -232
- package/plugins/component-testing.js.map +1 -1
- package/tailwind.d.ts +1 -6
- package/tailwind.js +2 -26
- package/tailwind.js.map +1 -1
- package/testing/index.d.ts +1 -1
- package/testing/index.js +3 -3
- package/testing/index.js.map +1 -1
- package/esm2020/mf/mf.mjs +0 -48
- package/esm2020/src/runtime/nx/data-persistence.mjs +0 -344
- package/esm2020/testing/src/testing-utils.mjs +0 -36
- package/mf/mf.d.ts +0 -4
- package/mf/mf.js +0 -60
- package/mf/mf.js.map +0 -1
- package/migrations.json +0 -953
- package/src/builders/module-federation-dev-server/module-federation-dev-server.impl.d.ts +0 -4
- package/src/builders/module-federation-dev-server/module-federation-dev-server.impl.js +0 -72
- package/src/builders/module-federation-dev-server/module-federation-dev-server.impl.js.map +0 -1
- package/src/builders/module-federation-dev-server/schema.d.ts +0 -23
- package/src/builders/module-federation-dev-server/schema.json +0 -130
- package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.d.ts +0 -4
- package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.js +0 -95
- package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.js.map +0 -1
- package/src/builders/module-federation-dev-ssr/schema.d.ts +0 -17
- package/src/builders/module-federation-dev-ssr/schema.json +0 -90
- package/src/builders/utilities/buildable-libs.d.ts +0 -9
- package/src/builders/utilities/buildable-libs.js +0 -17
- package/src/builders/utilities/buildable-libs.js.map +0 -1
- package/src/builders/utilities/module-federation.d.ts +0 -6
- package/src/builders/utilities/module-federation.js +0 -71
- package/src/builders/utilities/module-federation.js.map +0 -1
- package/src/builders/utilities/webpack.d.ts +0 -6
- package/src/builders/utilities/webpack.js +0 -64
- package/src/builders/utilities/webpack.js.map +0 -1
- package/src/builders/webpack-browser/schema.d.ts +0 -9
- package/src/builders/webpack-browser/schema.json +0 -599
- package/src/builders/webpack-browser/validate-options.d.ts +0 -2
- package/src/builders/webpack-browser/validate-options.js +0 -41
- package/src/builders/webpack-browser/validate-options.js.map +0 -1
- package/src/builders/webpack-browser/webpack-browser.impl.d.ts +0 -5
- package/src/builders/webpack-browser/webpack-browser.impl.js +0 -76
- package/src/builders/webpack-browser/webpack-browser.impl.js.map +0 -1
- package/src/builders/webpack-dev-server/lib/index.d.ts +0 -1
- package/src/builders/webpack-dev-server/lib/index.js +0 -5
- package/src/builders/webpack-dev-server/lib/index.js.map +0 -1
- package/src/builders/webpack-dev-server/lib/normalize-options.d.ts +0 -2
- package/src/builders/webpack-dev-server/lib/normalize-options.js +0 -8
- package/src/builders/webpack-dev-server/lib/normalize-options.js.map +0 -1
- package/src/builders/webpack-dev-server/schema.d.ts +0 -21
- package/src/builders/webpack-dev-server/schema.json +0 -116
- package/src/builders/webpack-dev-server/webpack-dev-server.impl.d.ts +0 -4
- package/src/builders/webpack-dev-server/webpack-dev-server.impl.js +0 -92
- package/src/builders/webpack-dev-server/webpack-dev-server.impl.js.map +0 -1
- package/src/builders/webpack-server/schema.d.ts +0 -9
- package/src/builders/webpack-server/schema.json +0 -328
- package/src/builders/webpack-server/validate-options.d.ts +0 -2
- package/src/builders/webpack-server/validate-options.js +0 -34
- package/src/builders/webpack-server/validate-options.js.map +0 -1
- package/src/builders/webpack-server/webpack-server.impl.d.ts +0 -5
- package/src/builders/webpack-server/webpack-server.impl.js +0 -69
- package/src/builders/webpack-server/webpack-server.impl.js.map +0 -1
- package/src/executors/delegate-build/compat.d.ts +0 -2
- package/src/executors/delegate-build/compat.js +0 -6
- package/src/executors/delegate-build/compat.js.map +0 -1
- package/src/executors/delegate-build/delegate-build.impl.d.ts +0 -8
- package/src/executors/delegate-build/delegate-build.impl.js +0 -21
- package/src/executors/delegate-build/delegate-build.impl.js.map +0 -1
- package/src/executors/delegate-build/schema.d.ts +0 -6
- package/src/executors/delegate-build/schema.json +0 -34
- package/src/executors/ng-packagr-lite/compat.d.ts +0 -2
- package/src/executors/ng-packagr-lite/compat.js +0 -6
- package/src/executors/ng-packagr-lite/compat.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.d.ts +0 -14
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.js +0 -28
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.d.ts +0 -11
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.js +0 -46
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.d.ts +0 -15
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.js +0 -29
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.transform.d.ts +0 -30
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.transform.js +0 -54
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.transform.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.di.d.ts +0 -12
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.di.js +0 -21
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.di.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.transform.d.ts +0 -9
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.transform.js +0 -286
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.transform.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/options.di.d.ts +0 -14
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/options.di.js +0 -32
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/options.di.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/package.di.d.ts +0 -14
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/package.di.js +0 -38
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/package.di.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ngc/compile-source-files.d.ts +0 -13
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ngc/compile-source-files.js +0 -149
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ngc/compile-source-files.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.d.ts +0 -47
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.di.d.ts +0 -10
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.di.js +0 -18
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.di.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.js +0 -257
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ts/cache-compiler-host.d.ts +0 -15
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ts/cache-compiler-host.js +0 -157
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ts/cache-compiler-host.js.map +0 -1
- package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.d.ts +0 -6
- package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.js +0 -36
- package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.js.map +0 -1
- package/src/executors/ng-packagr-lite/schema.json +0 -58
- package/src/executors/package/compat.d.ts +0 -2
- package/src/executors/package/compat.js +0 -6
- package/src/executors/package/compat.js.map +0 -1
- package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.d.ts +0 -14
- package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.js +0 -27
- package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.js.map +0 -1
- package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.d.ts +0 -10
- package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.js +0 -60
- package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.js.map +0 -1
- package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.d.ts +0 -13
- package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.js +0 -33
- package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.js.map +0 -1
- package/src/executors/package/ng-packagr-adjustments/ng-package/options.di.d.ts +0 -14
- package/src/executors/package/ng-packagr-adjustments/ng-package/options.di.js +0 -32
- package/src/executors/package/ng-packagr-adjustments/ng-package/options.di.js.map +0 -1
- package/src/executors/package/ng-packagr-adjustments/ng-package/package.di.d.ts +0 -14
- package/src/executors/package/ng-packagr-adjustments/ng-package/package.di.js +0 -38
- package/src/executors/package/ng-packagr-adjustments/ng-package/package.di.js.map +0 -1
- package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.d.ts +0 -12
- package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.js +0 -144
- package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.js.map +0 -1
- package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.d.ts +0 -41
- package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.di.d.ts +0 -10
- package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.di.js +0 -18
- package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.di.js.map +0 -1
- package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.js +0 -250
- package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.js.map +0 -1
- package/src/executors/package/ng-packagr-adjustments/ts/cache-compiler-host.d.ts +0 -15
- package/src/executors/package/ng-packagr-adjustments/ts/cache-compiler-host.js +0 -180
- package/src/executors/package/ng-packagr-adjustments/ts/cache-compiler-host.js.map +0 -1
- package/src/executors/package/package.impl.d.ts +0 -16
- package/src/executors/package/package.impl.js +0 -64
- package/src/executors/package/package.impl.js.map +0 -1
- package/src/executors/package/schema.d.ts +0 -8
- package/src/executors/package/schema.json +0 -60
- package/src/executors/utilities/angular-version-utils.d.ts +0 -6
- package/src/executors/utilities/angular-version-utils.js +0 -20
- package/src/executors/utilities/angular-version-utils.js.map +0 -1
- package/src/executors/utilities/tailwindcss.d.ts +0 -7
- package/src/executors/utilities/tailwindcss.js +0 -69
- package/src/executors/utilities/tailwindcss.js.map +0 -1
- package/src/executors/utilities/typescript.d.ts +0 -13
- package/src/executors/utilities/typescript.js +0 -49
- package/src/executors/utilities/typescript.js.map +0 -1
- package/src/generators/add-linting/add-linting.d.ts +0 -4
- package/src/generators/add-linting/add-linting.js +0 -43
- package/src/generators/add-linting/add-linting.js.map +0 -1
- package/src/generators/add-linting/compat.d.ts +0 -2
- package/src/generators/add-linting/compat.js +0 -7
- package/src/generators/add-linting/compat.js.map +0 -1
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.d.ts +0 -2
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +0 -15
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js.map +0 -1
- package/src/generators/add-linting/lib/create-eslint-configuration.d.ts +0 -78
- package/src/generators/add-linting/lib/create-eslint-configuration.js +0 -111
- package/src/generators/add-linting/lib/create-eslint-configuration.js.map +0 -1
- package/src/generators/add-linting/schema.d.ts +0 -9
- package/src/generators/add-linting/schema.json +0 -51
- package/src/generators/application/application.compat.d.ts +0 -1
- package/src/generators/application/application.compat.js +0 -8
- package/src/generators/application/application.compat.js.map +0 -1
- package/src/generators/application/application.d.ts +0 -4
- package/src/generators/application/application.js +0 -68
- package/src/generators/application/application.js.map +0 -1
- package/src/generators/application/files/base/src/assets/.gitkeep__tpl__ +0 -0
- package/src/generators/application/files/base/src/favicon.ico +0 -0
- package/src/generators/application/files/base/src/index.html__tpl__ +0 -13
- package/src/generators/application/files/base/src/styles.__style__ +0 -1
- package/src/generators/application/files/base/tsconfig.app.json__tpl__ +0 -10
- package/src/generators/application/files/base/tsconfig.editor.json__tpl__ +0 -5
- package/src/generators/application/files/base/tsconfig.json__tpl__ +0 -14
- package/src/generators/application/files/ng-module/src/app/app.component.__style__ +0 -0
- package/src/generators/application/files/ng-module/src/app/app.component.html__tpl__ +0 -1
- package/src/generators/application/files/ng-module/src/app/app.component.spec.ts__tpl__ +0 -26
- package/src/generators/application/files/ng-module/src/app/app.component.ts__tpl__ +0 -13
- package/src/generators/application/files/ng-module/src/app/app.module.ts__tpl__ +0 -17
- package/src/generators/application/files/ng-module/src/app/app.routes.ts__tpl__ +0 -3
- package/src/generators/application/files/ng-module/src/app/nx-welcome.component.ts__tpl__ +0 -795
- package/src/generators/application/files/ng-module/src/main.ts__tpl__ +0 -12
- package/src/generators/application/files/standalone-components/src/app/app.component.__style__ +0 -0
- package/src/generators/application/files/standalone-components/src/app/app.component.html__tpl__ +0 -1
- package/src/generators/application/files/standalone-components/src/app/app.component.spec.ts__tpl__ +0 -25
- package/src/generators/application/files/standalone-components/src/app/app.component.ts__tpl__ +0 -17
- package/src/generators/application/files/standalone-components/src/app/app.routes.ts__tpl__ +0 -3
- package/src/generators/application/files/standalone-components/src/app/nx-welcome.component.ts__tpl__ +0 -798
- package/src/generators/application/files/standalone-components/src/main.ts__tpl__ +0 -11
- package/src/generators/application/files/tsconfig.editor.json__tpl__ +0 -5
- package/src/generators/application/files/v14/.browserlistrc__tpl__ +0 -16
- package/src/generators/application/files/v14/src/environments/environment.prod.ts__tpl__ +0 -3
- package/src/generators/application/files/v14/src/environments/environment.ts__tpl__ +0 -16
- package/src/generators/application/files/v14/src/polyfills.ts__tpl__ +0 -53
- package/src/generators/application/lib/add-e2e.d.ts +0 -3
- package/src/generators/application/lib/add-e2e.js +0 -40
- package/src/generators/application/lib/add-e2e.js.map +0 -1
- package/src/generators/application/lib/add-linting.d.ts +0 -3
- package/src/generators/application/lib/add-linting.js +0 -24
- package/src/generators/application/lib/add-linting.js.map +0 -1
- package/src/generators/application/lib/add-proxy-config.d.ts +0 -3
- package/src/generators/application/lib/add-proxy-config.js +0 -23
- package/src/generators/application/lib/add-proxy-config.js.map +0 -1
- package/src/generators/application/lib/add-unit-test-runner.d.ts +0 -3
- package/src/generators/application/lib/add-unit-test-runner.js +0 -22
- package/src/generators/application/lib/add-unit-test-runner.js.map +0 -1
- package/src/generators/application/lib/create-files.d.ts +0 -3
- package/src/generators/application/lib/create-files.js +0 -58
- package/src/generators/application/lib/create-files.js.map +0 -1
- package/src/generators/application/lib/create-project.d.ts +0 -3
- package/src/generators/application/lib/create-project.js +0 -97
- package/src/generators/application/lib/create-project.js.map +0 -1
- package/src/generators/application/lib/enable-strict-type-checking.d.ts +0 -3
- package/src/generators/application/lib/enable-strict-type-checking.js +0 -37
- package/src/generators/application/lib/enable-strict-type-checking.js.map +0 -1
- package/src/generators/application/lib/index.d.ts +0 -13
- package/src/generators/application/lib/index.js +0 -17
- package/src/generators/application/lib/index.js.map +0 -1
- package/src/generators/application/lib/normalize-options.d.ts +0 -4
- package/src/generators/application/lib/normalize-options.js +0 -40
- package/src/generators/application/lib/normalize-options.js.map +0 -1
- package/src/generators/application/lib/normalized-schema.d.ts +0 -15
- package/src/generators/application/lib/normalized-schema.js +0 -3
- package/src/generators/application/lib/normalized-schema.js.map +0 -1
- package/src/generators/application/lib/remove-scaffolded-e2e.d.ts +0 -3
- package/src/generators/application/lib/remove-scaffolded-e2e.js +0 -23
- package/src/generators/application/lib/remove-scaffolded-e2e.js.map +0 -1
- package/src/generators/application/lib/set-app-strict-default.d.ts +0 -2
- package/src/generators/application/lib/set-app-strict-default.js +0 -16
- package/src/generators/application/lib/set-app-strict-default.js.map +0 -1
- package/src/generators/application/lib/update-e2e-project.d.ts +0 -3
- package/src/generators/application/lib/update-e2e-project.js +0 -40
- package/src/generators/application/lib/update-e2e-project.js.map +0 -1
- package/src/generators/application/lib/update-editor-tsconfig.d.ts +0 -3
- package/src/generators/application/lib/update-editor-tsconfig.js +0 -27
- package/src/generators/application/lib/update-editor-tsconfig.js.map +0 -1
- package/src/generators/application/schema.d.ts +0 -30
- package/src/generators/application/schema.json +0 -172
- package/src/generators/component/component.compat.d.ts +0 -2
- package/src/generators/component/component.compat.js +0 -7
- package/src/generators/component/component.compat.js.map +0 -1
- package/src/generators/component/component.d.ts +0 -4
- package/src/generators/component/component.js +0 -77
- package/src/generators/component/component.js.map +0 -1
- package/src/generators/component/files/__fileName__/__fileName__.__type__.__style__ +0 -6
- package/src/generators/component/files/__fileName__/__fileName__.__type__.html__tpl__ +0 -1
- package/src/generators/component/files/__fileName__/__fileName__.__type__.spec.ts__tpl__ +0 -22
- package/src/generators/component/files/__fileName__/__fileName__.__type__.ts__tpl__ +0 -21
- package/src/generators/component/lib/component.d.ts +0 -3
- package/src/generators/component/lib/component.js +0 -37
- package/src/generators/component/lib/component.js.map +0 -1
- package/src/generators/component/lib/entry-point.d.ts +0 -2
- package/src/generators/component/lib/entry-point.js +0 -19
- package/src/generators/component/lib/entry-point.js.map +0 -1
- package/src/generators/component/lib/module.d.ts +0 -3
- package/src/generators/component/lib/module.js +0 -64
- package/src/generators/component/lib/module.js.map +0 -1
- package/src/generators/component/lib/normalize-options.d.ts +0 -3
- package/src/generators/component/lib/normalize-options.js +0 -20
- package/src/generators/component/lib/normalize-options.js.map +0 -1
- package/src/generators/component/schema.d.ts +0 -28
- package/src/generators/component/schema.json +0 -131
- package/src/generators/component-cypress-spec/compat.d.ts +0 -2
- package/src/generators/component-cypress-spec/compat.js +0 -7
- package/src/generators/component-cypress-spec/compat.js.map +0 -1
- package/src/generators/component-cypress-spec/component-cypress-spec.d.ts +0 -4
- package/src/generators/component-cypress-spec/component-cypress-spec.js +0 -40
- package/src/generators/component-cypress-spec/component-cypress-spec.js.map +0 -1
- package/src/generators/component-cypress-spec/files/__componentFileName__.__fileExt__ +0 -12
- package/src/generators/component-cypress-spec/lib/get-args-default-value.d.ts +0 -2
- package/src/generators/component-cypress-spec/lib/get-args-default-value.js +0 -26
- package/src/generators/component-cypress-spec/lib/get-args-default-value.js.map +0 -1
- package/src/generators/component-cypress-spec/lib/get-component-selector.d.ts +0 -2
- package/src/generators/component-cypress-spec/lib/get-component-selector.js +0 -25
- package/src/generators/component-cypress-spec/lib/get-component-selector.js.map +0 -1
- package/src/generators/component-cypress-spec/schema.d.ts +0 -10
- package/src/generators/component-cypress-spec/schema.json +0 -65
- package/src/generators/component-story/compat.d.ts +0 -2
- package/src/generators/component-story/compat.js +0 -7
- package/src/generators/component-story/compat.js.map +0 -1
- package/src/generators/component-story/component-story.d.ts +0 -4
- package/src/generators/component-story/component-story.js +0 -30
- package/src/generators/component-story/component-story.js.map +0 -1
- package/src/generators/component-story/files/__componentFileName__.stories.ts__tmpl__ +0 -16
- package/src/generators/component-story/schema.d.ts +0 -7
- package/src/generators/component-story/schema.json +0 -46
- package/src/generators/component-test/compat.d.ts +0 -2
- package/src/generators/component-test/compat.js +0 -7
- package/src/generators/component-test/compat.js.map +0 -1
- package/src/generators/component-test/component-test.d.ts +0 -4
- package/src/generators/component-test/component-test.js +0 -27
- package/src/generators/component-test/component-test.js.map +0 -1
- package/src/generators/component-test/files/__componentFileName__.cy.ts__tpl__ +0 -23
- package/src/generators/component-test/schema.d.ts +0 -12
- package/src/generators/component-test/schema.json +0 -49
- package/src/generators/convert-to-with-mf/convert-to-with-mf.compat.d.ts +0 -2
- package/src/generators/convert-to-with-mf/convert-to-with-mf.compat.js +0 -7
- package/src/generators/convert-to-with-mf/convert-to-with-mf.compat.js.map +0 -1
- package/src/generators/convert-to-with-mf/convert-to-with-mf.d.ts +0 -4
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js +0 -34
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js.map +0 -1
- package/src/generators/convert-to-with-mf/convert-to-with-mf.test-data.d.ts +0 -5
- package/src/generators/convert-to-with-mf/convert-to-with-mf.test-data.js +0 -449
- package/src/generators/convert-to-with-mf/convert-to-with-mf.test-data.js.map +0 -1
- package/src/generators/convert-to-with-mf/lib/check-name-matches.d.ts +0 -2
- package/src/generators/convert-to-with-mf/lib/check-name-matches.js +0 -26
- package/src/generators/convert-to-with-mf/lib/check-name-matches.js.map +0 -1
- package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.d.ts +0 -2
- package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js +0 -51
- package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js.map +0 -1
- package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.d.ts +0 -2
- package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.js +0 -20
- package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.js.map +0 -1
- package/src/generators/convert-to-with-mf/lib/index.d.ts +0 -6
- package/src/generators/convert-to-with-mf/lib/index.js +0 -10
- package/src/generators/convert-to-with-mf/lib/index.js.map +0 -1
- package/src/generators/convert-to-with-mf/lib/is-host-remote-config.d.ts +0 -5
- package/src/generators/convert-to-with-mf/lib/is-host-remote-config.js +0 -69
- package/src/generators/convert-to-with-mf/lib/is-host-remote-config.js.map +0 -1
- package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.d.ts +0 -2
- package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js +0 -15
- package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js.map +0 -1
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.d.ts +0 -3
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +0 -51
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js.map +0 -1
- package/src/generators/convert-to-with-mf/schema.d.ts +0 -3
- package/src/generators/convert-to-with-mf/schema.json +0 -27
- package/src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint.d.ts +0 -4
- package/src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint.js +0 -174
- package/src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint.js.map +0 -1
- package/src/generators/convert-tslint-to-eslint/schema.json +0 -54
- package/src/generators/cypress-component-configuration/compat.d.ts +0 -2
- package/src/generators/cypress-component-configuration/compat.js +0 -7
- package/src/generators/cypress-component-configuration/compat.js.map +0 -1
- package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts +0 -8
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js +0 -87
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js.map +0 -1
- package/src/generators/cypress-component-configuration/files/cypress/support/commands.ts__tpl__ +0 -42
- package/src/generators/cypress-component-configuration/files/cypress.config.ts__tpl__ +0 -6
- package/src/generators/cypress-component-configuration/schema.d.ts +0 -6
- package/src/generators/cypress-component-configuration/schema.json +0 -40
- package/src/generators/directive/directive.d.ts +0 -4
- package/src/generators/directive/directive.js +0 -51
- package/src/generators/directive/directive.js.map +0 -1
- package/src/generators/directive/files/__directiveFileName__/__directiveFileName__.directive.spec.ts__tpl__ +0 -8
- package/src/generators/directive/files/__directiveFileName__/__directiveFileName__.directive.ts__tpl__ +0 -11
- package/src/generators/directive/schema.d.ts +0 -14
- package/src/generators/directive/schema.json +0 -92
- package/src/generators/host/files/src/main.server.ts__tmpl__ +0 -66
- package/src/generators/host/files/webpack.server.config.js__tmpl__ +0 -3
- package/src/generators/host/host.compat.d.ts +0 -2
- package/src/generators/host/host.compat.js +0 -7
- package/src/generators/host/host.compat.js.map +0 -1
- package/src/generators/host/host.d.ts +0 -4
- package/src/generators/host/host.js +0 -66
- package/src/generators/host/host.js.map +0 -1
- package/src/generators/host/lib/add-ssr.d.ts +0 -3
- package/src/generators/host/lib/add-ssr.js +0 -43
- package/src/generators/host/lib/add-ssr.js.map +0 -1
- package/src/generators/host/lib/index.d.ts +0 -1
- package/src/generators/host/lib/index.js +0 -5
- package/src/generators/host/lib/index.js.map +0 -1
- package/src/generators/host/schema.d.ts +0 -30
- package/src/generators/host/schema.json +0 -174
- package/src/generators/init/init.compat.d.ts +0 -1
- package/src/generators/init/init.compat.js +0 -8
- package/src/generators/init/init.compat.js.map +0 -1
- package/src/generators/init/init.d.ts +0 -4
- package/src/generators/init/init.js +0 -165
- package/src/generators/init/init.js.map +0 -1
- package/src/generators/init/schema.d.ts +0 -14
- package/src/generators/init/schema.json +0 -84
- package/src/generators/library/files/base/README.md__tpl__ +0 -9
- package/src/generators/library/files/base/ng-package.json__tpl__ +0 -7
- package/src/generators/library/files/base/package.json__tpl__ +0 -12
- package/src/generators/library/files/base/tsconfig.json__tpl__ +0 -14
- package/src/generators/library/files/base/tsconfig.lib.json__tpl__ +0 -17
- package/src/generators/library/files/base/tsconfig.lib.prod.json__tpl__ +0 -9
- package/src/generators/library/files/ng-module/src/index.ts__tpl__ +0 -2
- package/src/generators/library/files/ng-module/src/lib/__libFileName__.module.ts__tpl__ +0 -9
- package/src/generators/library/files/ng-module/src/lib/lib.routes.ts__tpl__ +0 -5
- package/src/generators/library/files/standalone-components/src/index.ts__tpl__ +0 -1
- package/src/generators/library/files/standalone-components/src/lib/lib.routes.ts__tpl__ +0 -6
- package/src/generators/library/lib/add-children.d.ts +0 -3
- package/src/generators/library/lib/add-children.js +0 -31
- package/src/generators/library/lib/add-children.js.map +0 -1
- package/src/generators/library/lib/add-lazy-loaded-router-configuration.d.ts +0 -3
- package/src/generators/library/lib/add-lazy-loaded-router-configuration.js +0 -30
- package/src/generators/library/lib/add-lazy-loaded-router-configuration.js.map +0 -1
- package/src/generators/library/lib/add-load-children.d.ts +0 -3
- package/src/generators/library/lib/add-load-children.js +0 -23
- package/src/generators/library/lib/add-load-children.js.map +0 -1
- package/src/generators/library/lib/add-module.d.ts +0 -3
- package/src/generators/library/lib/add-module.js +0 -23
- package/src/generators/library/lib/add-module.js.map +0 -1
- package/src/generators/library/lib/add-project.d.ts +0 -5
- package/src/generators/library/lib/add-project.js +0 -40
- package/src/generators/library/lib/add-project.js.map +0 -1
- package/src/generators/library/lib/add-router-configuration.d.ts +0 -3
- package/src/generators/library/lib/add-router-configuration.js +0 -29
- package/src/generators/library/lib/add-router-configuration.js.map +0 -1
- package/src/generators/library/lib/add-standalone-component.d.ts +0 -3
- package/src/generators/library/lib/add-standalone-component.js +0 -24
- package/src/generators/library/lib/add-standalone-component.js.map +0 -1
- package/src/generators/library/lib/create-files.d.ts +0 -5
- package/src/generators/library/lib/create-files.js +0 -50
- package/src/generators/library/lib/create-files.js.map +0 -1
- package/src/generators/library/lib/enable-strict-type-checking.d.ts +0 -7
- package/src/generators/library/lib/enable-strict-type-checking.js +0 -37
- package/src/generators/library/lib/enable-strict-type-checking.js.map +0 -1
- package/src/generators/library/lib/normalize-options.d.ts +0 -4
- package/src/generators/library/lib/normalize-options.js +0 -64
- package/src/generators/library/lib/normalize-options.js.map +0 -1
- package/src/generators/library/lib/normalized-schema.d.ts +0 -56
- package/src/generators/library/lib/normalized-schema.js +0 -3
- package/src/generators/library/lib/normalized-schema.js.map +0 -1
- package/src/generators/library/lib/update-lib-package-npm-scope.d.ts +0 -3
- package/src/generators/library/lib/update-lib-package-npm-scope.js +0 -12
- package/src/generators/library/lib/update-lib-package-npm-scope.js.map +0 -1
- package/src/generators/library/lib/update-tsconfig.d.ts +0 -3
- package/src/generators/library/lib/update-tsconfig.js +0 -38
- package/src/generators/library/lib/update-tsconfig.js.map +0 -1
- package/src/generators/library/library.compat.d.ts +0 -1
- package/src/generators/library/library.compat.js +0 -8
- package/src/generators/library/library.compat.js.map +0 -1
- package/src/generators/library/library.d.ts +0 -4
- package/src/generators/library/library.js +0 -124
- package/src/generators/library/library.js.map +0 -1
- package/src/generators/library/schema.d.ts +0 -45
- package/src/generators/library/schema.json +0 -209
- package/src/generators/library-secondary-entry-point/compat.d.ts +0 -2
- package/src/generators/library-secondary-entry-point/compat.js +0 -7
- package/src/generators/library-secondary-entry-point/compat.js.map +0 -1
- package/src/generators/library-secondary-entry-point/files/README.md__tmpl__ +0 -3
- package/src/generators/library-secondary-entry-point/files/ng-package.json__tmpl__ +0 -5
- package/src/generators/library-secondary-entry-point/files/src/index.ts__tmpl__ +0 -5
- package/src/generators/library-secondary-entry-point/files/src/lib/__fileName__.module.ts__tmpl__ +0 -7
- package/src/generators/library-secondary-entry-point/lib/add-files.d.ts +0 -3
- package/src/generators/library-secondary-entry-point/lib/add-files.js +0 -13
- package/src/generators/library-secondary-entry-point/lib/add-files.js.map +0 -1
- package/src/generators/library-secondary-entry-point/lib/add-path-mapping.d.ts +0 -3
- package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js +0 -17
- package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js.map +0 -1
- package/src/generators/library-secondary-entry-point/lib/index.d.ts +0 -4
- package/src/generators/library-secondary-entry-point/lib/index.js +0 -8
- package/src/generators/library-secondary-entry-point/lib/index.js.map +0 -1
- package/src/generators/library-secondary-entry-point/lib/normalize-options.d.ts +0 -3
- package/src/generators/library-secondary-entry-point/lib/normalize-options.js +0 -29
- package/src/generators/library-secondary-entry-point/lib/normalize-options.js.map +0 -1
- package/src/generators/library-secondary-entry-point/lib/update-linting-file-patterns.d.ts +0 -3
- package/src/generators/library-secondary-entry-point/lib/update-linting-file-patterns.js +0 -17
- package/src/generators/library-secondary-entry-point/lib/update-linting-file-patterns.js.map +0 -1
- package/src/generators/library-secondary-entry-point/library-secondary-entry-point.d.ts +0 -4
- package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js +0 -18
- package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js.map +0 -1
- package/src/generators/library-secondary-entry-point/schema.d.ts +0 -15
- package/src/generators/library-secondary-entry-point/schema.json +0 -37
- package/src/generators/move/lib/update-module-name.d.ts +0 -11
- package/src/generators/move/lib/update-module-name.js +0 -97
- package/src/generators/move/lib/update-module-name.js.map +0 -1
- package/src/generators/move/lib/update-ng-package.d.ts +0 -3
- package/src/generators/move/lib/update-ng-package.js +0 -40
- package/src/generators/move/lib/update-ng-package.js.map +0 -1
- package/src/generators/move/move.d.ts +0 -11
- package/src/generators/move/move.js +0 -29
- package/src/generators/move/move.js.map +0 -1
- package/src/generators/move/schema.d.ts +0 -7
- package/src/generators/move/schema.json +0 -49
- package/src/generators/ng-add/compat.d.ts +0 -2
- package/src/generators/ng-add/compat.js +0 -6
- package/src/generators/ng-add/compat.js.map +0 -1
- package/src/generators/ng-add/files/root/apps/__dot__gitkeep +0 -0
- package/src/generators/ng-add/files/root/libs/__dot__gitkeep +0 -0
- package/src/generators/ng-add/files/root/tools/generators/__dot__gitkeep +0 -0
- package/src/generators/ng-add/files/root/tools/tsconfig.tools.json__tmpl__ +0 -12
- package/src/generators/ng-add/files/root-karma/karma.conf.js__tmpl__ +0 -43
- package/src/generators/ng-add/migrate-from-angular-cli.d.ts +0 -3
- package/src/generators/ng-add/migrate-from-angular-cli.js +0 -63
- package/src/generators/ng-add/migrate-from-angular-cli.js.map +0 -1
- package/src/generators/ng-add/migrators/builders/angular-devkit-karma.migrator.d.ts +0 -9
- package/src/generators/ng-add/migrators/builders/angular-devkit-karma.migrator.js +0 -78
- package/src/generators/ng-add/migrators/builders/angular-devkit-karma.migrator.js.map +0 -1
- package/src/generators/ng-add/migrators/builders/angular-devkit-ng-packagr.migrator.d.ts +0 -10
- package/src/generators/ng-add/migrators/builders/angular-devkit-ng-packagr.migrator.js +0 -97
- package/src/generators/ng-add/migrators/builders/angular-devkit-ng-packagr.migrator.js.map +0 -1
- package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.d.ts +0 -12
- package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.js +0 -117
- package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.js.map +0 -1
- package/src/generators/ng-add/migrators/builders/builder-migrator-class.type.d.ts +0 -6
- package/src/generators/ng-add/migrators/builders/builder-migrator-class.type.js +0 -3
- package/src/generators/ng-add/migrators/builders/builder-migrator-class.type.js.map +0 -1
- package/src/generators/ng-add/migrators/builders/builder.migrator.d.ts +0 -13
- package/src/generators/ng-add/migrators/builders/builder.migrator.js +0 -45
- package/src/generators/ng-add/migrators/builders/builder.migrator.js.map +0 -1
- package/src/generators/ng-add/migrators/builders/index.d.ts +0 -5
- package/src/generators/ng-add/migrators/builders/index.js +0 -9
- package/src/generators/ng-add/migrators/builders/index.js.map +0 -1
- package/src/generators/ng-add/migrators/index.d.ts +0 -2
- package/src/generators/ng-add/migrators/index.js +0 -6
- package/src/generators/ng-add/migrators/index.js.map +0 -1
- package/src/generators/ng-add/migrators/migrator.d.ts +0 -23
- package/src/generators/ng-add/migrators/migrator.js +0 -124
- package/src/generators/ng-add/migrators/migrator.js.map +0 -1
- package/src/generators/ng-add/migrators/projects/app.migrator.d.ts +0 -25
- package/src/generators/ng-add/migrators/projects/app.migrator.js +0 -304
- package/src/generators/ng-add/migrators/projects/app.migrator.js.map +0 -1
- package/src/generators/ng-add/migrators/projects/e2e.migrator.d.ts +0 -38
- package/src/generators/ng-add/migrators/projects/e2e.migrator.js +0 -585
- package/src/generators/ng-add/migrators/projects/e2e.migrator.js.map +0 -1
- package/src/generators/ng-add/migrators/projects/index.d.ts +0 -4
- package/src/generators/ng-add/migrators/projects/index.js +0 -8
- package/src/generators/ng-add/migrators/projects/index.js.map +0 -1
- package/src/generators/ng-add/migrators/projects/lib.migrator.d.ts +0 -11
- package/src/generators/ng-add/migrators/projects/lib.migrator.js +0 -62
- package/src/generators/ng-add/migrators/projects/lib.migrator.js.map +0 -1
- package/src/generators/ng-add/migrators/projects/project.migrator.d.ts +0 -25
- package/src/generators/ng-add/migrators/projects/project.migrator.js +0 -185
- package/src/generators/ng-add/migrators/projects/project.migrator.js.map +0 -1
- package/src/generators/ng-add/ng-add.d.ts +0 -4
- package/src/generators/ng-add/ng-add.js +0 -20
- package/src/generators/ng-add/ng-add.js.map +0 -1
- package/src/generators/ng-add/schema.d.ts +0 -18
- package/src/generators/ng-add/schema.json +0 -71
- package/src/generators/ng-add/utilities/dependencies.d.ts +0 -2
- package/src/generators/ng-add/utilities/dependencies.js +0 -30
- package/src/generators/ng-add/utilities/dependencies.js.map +0 -1
- package/src/generators/ng-add/utilities/format-files-task.d.ts +0 -2
- package/src/generators/ng-add/utilities/format-files-task.js +0 -17
- package/src/generators/ng-add/utilities/format-files-task.js.map +0 -1
- package/src/generators/ng-add/utilities/index.d.ts +0 -8
- package/src/generators/ng-add/utilities/index.js +0 -12
- package/src/generators/ng-add/utilities/index.js.map +0 -1
- package/src/generators/ng-add/utilities/logger.d.ts +0 -8
- package/src/generators/ng-add/utilities/logger.js +0 -21
- package/src/generators/ng-add/utilities/logger.js.map +0 -1
- package/src/generators/ng-add/utilities/normalize-options.d.ts +0 -4
- package/src/generators/ng-add/utilities/normalize-options.js +0 -30
- package/src/generators/ng-add/utilities/normalize-options.js.map +0 -1
- package/src/generators/ng-add/utilities/projects.d.ts +0 -4
- package/src/generators/ng-add/utilities/projects.js +0 -36
- package/src/generators/ng-add/utilities/projects.js.map +0 -1
- package/src/generators/ng-add/utilities/types.d.ts +0 -31
- package/src/generators/ng-add/utilities/types.js +0 -3
- package/src/generators/ng-add/utilities/types.js.map +0 -1
- package/src/generators/ng-add/utilities/validation-logging.d.ts +0 -3
- package/src/generators/ng-add/utilities/validation-logging.js +0 -39
- package/src/generators/ng-add/utilities/validation-logging.js.map +0 -1
- package/src/generators/ng-add/utilities/workspace.d.ts +0 -17
- package/src/generators/ng-add/utilities/workspace.js +0 -305
- package/src/generators/ng-add/utilities/workspace.js.map +0 -1
- package/src/generators/ngrx/compat.d.ts +0 -2
- package/src/generators/ngrx/compat.js +0 -7
- package/src/generators/ngrx/compat.js.map +0 -1
- package/src/generators/ngrx/files/base/__directory__/__fileName__.actions.ts__tmpl__ +0 -16
- package/src/generators/ngrx/files/base/__directory__/__fileName__.effects.spec.ts__tmpl__ +0 -37
- package/src/generators/ngrx/files/base/__directory__/__fileName__.effects.ts__tmpl__ +0 -22
- package/src/generators/ngrx/files/base/__directory__/__fileName__.facade.spec.ts__tmpl__ +0 -99
- package/src/generators/ngrx/files/base/__directory__/__fileName__.facade.ts__tmpl__ +0 -27
- package/src/generators/ngrx/files/base/__directory__/__fileName__.models.ts__tmpl__ +0 -7
- package/src/generators/ngrx/files/base/__directory__/__fileName__.reducer.spec.ts__tmpl__ +0 -37
- package/src/generators/ngrx/files/base/__directory__/__fileName__.reducer.ts__tmpl__ +0 -41
- package/src/generators/ngrx/files/base/__directory__/__fileName__.selectors.spec.ts__tmpl__ +0 -58
- package/src/generators/ngrx/files/base/__directory__/__fileName__.selectors.ts__tmpl__ +0 -38
- package/src/generators/ngrx/files/no-inject/__directory__/__fileName__.effects.ts__tmpl__ +0 -22
- package/src/generators/ngrx/files/no-inject/__directory__/__fileName__.facade.ts__tmpl__ +0 -27
- package/src/generators/ngrx/lib/add-exports-barrel.d.ts +0 -6
- package/src/generators/ngrx/lib/add-exports-barrel.js +0 -46
- package/src/generators/ngrx/lib/add-exports-barrel.js.map +0 -1
- package/src/generators/ngrx/lib/add-imports-to-module.d.ts +0 -3
- package/src/generators/ngrx/lib/add-imports-to-module.js +0 -168
- package/src/generators/ngrx/lib/add-imports-to-module.js.map +0 -1
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.d.ts +0 -3
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.js +0 -25
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.js.map +0 -1
- package/src/generators/ngrx/lib/generate-files.d.ts +0 -6
- package/src/generators/ngrx/lib/generate-files.js +0 -24
- package/src/generators/ngrx/lib/generate-files.js.map +0 -1
- package/src/generators/ngrx/lib/index.d.ts +0 -6
- package/src/generators/ngrx/lib/index.js +0 -16
- package/src/generators/ngrx/lib/index.js.map +0 -1
- package/src/generators/ngrx/lib/normalize-options.d.ts +0 -7
- package/src/generators/ngrx/lib/normalize-options.js +0 -24
- package/src/generators/ngrx/lib/normalize-options.js.map +0 -1
- package/src/generators/ngrx/lib/validate-options.d.ts +0 -3
- package/src/generators/ngrx/lib/validate-options.js +0 -39
- package/src/generators/ngrx/lib/validate-options.js.map +0 -1
- package/src/generators/ngrx/ngrx.d.ts +0 -4
- package/src/generators/ngrx/ngrx.js +0 -30
- package/src/generators/ngrx/ngrx.js.map +0 -1
- package/src/generators/ngrx/schema.d.ts +0 -14
- package/src/generators/ngrx/schema.json +0 -93
- package/src/generators/pipe/files/__pipeFileName__/__pipeFileName__.pipe.spec.ts__tpl__ +0 -8
- package/src/generators/pipe/files/__pipeFileName__/__pipeFileName__.pipe.ts__tpl__ +0 -13
- package/src/generators/pipe/pipe.d.ts +0 -4
- package/src/generators/pipe/pipe.js +0 -45
- package/src/generators/pipe/pipe.js.map +0 -1
- package/src/generators/pipe/schema.d.ts +0 -12
- package/src/generators/pipe/schema.json +0 -73
- package/src/generators/remote/files/src/main.server.ts__tmpl__ +0 -74
- package/src/generators/remote/files/webpack.server.config.js__tmpl__ +0 -3
- package/src/generators/remote/lib/add-ssr.d.ts +0 -5
- package/src/generators/remote/lib/add-ssr.js +0 -48
- package/src/generators/remote/lib/add-ssr.js.map +0 -1
- package/src/generators/remote/lib/find-next-available-port.d.ts +0 -2
- package/src/generators/remote/lib/find-next-available-port.js +0 -19
- package/src/generators/remote/lib/find-next-available-port.js.map +0 -1
- package/src/generators/remote/lib/index.d.ts +0 -2
- package/src/generators/remote/lib/index.js +0 -6
- package/src/generators/remote/lib/index.js.map +0 -1
- package/src/generators/remote/remote.compat.d.ts +0 -2
- package/src/generators/remote/remote.compat.js +0 -7
- package/src/generators/remote/remote.compat.js.map +0 -1
- package/src/generators/remote/remote.d.ts +0 -4
- package/src/generators/remote/remote.js +0 -54
- package/src/generators/remote/remote.js.map +0 -1
- package/src/generators/remote/schema.d.ts +0 -29
- package/src/generators/remote/schema.json +0 -167
- package/src/generators/scam/lib/convert-component-to-scam.d.ts +0 -4
- package/src/generators/scam/lib/convert-component-to-scam.js +0 -48
- package/src/generators/scam/lib/convert-component-to-scam.js.map +0 -1
- package/src/generators/scam/lib/index.d.ts +0 -2
- package/src/generators/scam/lib/index.js +0 -6
- package/src/generators/scam/lib/index.js.map +0 -1
- package/src/generators/scam/lib/normalize-options.d.ts +0 -3
- package/src/generators/scam/lib/normalize-options.js +0 -14
- package/src/generators/scam/lib/normalize-options.js.map +0 -1
- package/src/generators/scam/scam.compat.d.ts +0 -2
- package/src/generators/scam/scam.compat.js +0 -7
- package/src/generators/scam/scam.compat.js.map +0 -1
- package/src/generators/scam/scam.d.ts +0 -4
- package/src/generators/scam/scam.js +0 -39
- package/src/generators/scam/scam.js.map +0 -1
- package/src/generators/scam/schema.d.ts +0 -26
- package/src/generators/scam/schema.json +0 -129
- package/src/generators/scam-directive/lib/convert-directive-to-scam.d.ts +0 -4
- package/src/generators/scam-directive/lib/convert-directive-to-scam.js +0 -47
- package/src/generators/scam-directive/lib/convert-directive-to-scam.js.map +0 -1
- package/src/generators/scam-directive/lib/index.d.ts +0 -2
- package/src/generators/scam-directive/lib/index.js +0 -6
- package/src/generators/scam-directive/lib/index.js.map +0 -1
- package/src/generators/scam-directive/lib/normalize-options.d.ts +0 -3
- package/src/generators/scam-directive/lib/normalize-options.js +0 -14
- package/src/generators/scam-directive/lib/normalize-options.js.map +0 -1
- package/src/generators/scam-directive/scam-directive.compat.d.ts +0 -2
- package/src/generators/scam-directive/scam-directive.compat.js +0 -7
- package/src/generators/scam-directive/scam-directive.compat.js.map +0 -1
- package/src/generators/scam-directive/scam-directive.d.ts +0 -4
- package/src/generators/scam-directive/scam-directive.js +0 -38
- package/src/generators/scam-directive/scam-directive.js.map +0 -1
- package/src/generators/scam-directive/schema.d.ts +0 -19
- package/src/generators/scam-directive/schema.json +0 -83
- package/src/generators/scam-pipe/lib/convert-pipe-to-scam.d.ts +0 -4
- package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +0 -47
- package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js.map +0 -1
- package/src/generators/scam-pipe/lib/index.d.ts +0 -2
- package/src/generators/scam-pipe/lib/index.js +0 -6
- package/src/generators/scam-pipe/lib/index.js.map +0 -1
- package/src/generators/scam-pipe/lib/normalize-options.d.ts +0 -3
- package/src/generators/scam-pipe/lib/normalize-options.js +0 -14
- package/src/generators/scam-pipe/lib/normalize-options.js.map +0 -1
- package/src/generators/scam-pipe/scam-pipe.compat.d.ts +0 -2
- package/src/generators/scam-pipe/scam-pipe.compat.js +0 -7
- package/src/generators/scam-pipe/scam-pipe.compat.js.map +0 -1
- package/src/generators/scam-pipe/scam-pipe.d.ts +0 -4
- package/src/generators/scam-pipe/scam-pipe.js +0 -36
- package/src/generators/scam-pipe/scam-pipe.js.map +0 -1
- package/src/generators/scam-pipe/schema.d.ts +0 -17
- package/src/generators/scam-pipe/schema.json +0 -64
- package/src/generators/scam-to-standalone/compat.d.ts +0 -2
- package/src/generators/scam-to-standalone/compat.js +0 -7
- package/src/generators/scam-to-standalone/compat.js.map +0 -1
- package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.d.ts +0 -3
- package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.js +0 -34
- package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.js.map +0 -1
- package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.d.ts +0 -6
- package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.js +0 -19
- package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.js.map +0 -1
- package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.d.ts +0 -9
- package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.js +0 -65
- package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.js.map +0 -1
- package/src/generators/scam-to-standalone/lib/get-target-project.d.ts +0 -2
- package/src/generators/scam-to-standalone/lib/get-target-project.js +0 -15
- package/src/generators/scam-to-standalone/lib/get-target-project.js.map +0 -1
- package/src/generators/scam-to-standalone/lib/index.d.ts +0 -8
- package/src/generators/scam-to-standalone/lib/index.js +0 -12
- package/src/generators/scam-to-standalone/lib/index.js.map +0 -1
- package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.d.ts +0 -2
- package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.js +0 -20
- package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.js.map +0 -1
- package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.d.ts +0 -2
- package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.js +0 -9
- package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.js.map +0 -1
- package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.d.ts +0 -2
- package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.js +0 -12
- package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.js.map +0 -1
- package/src/generators/scam-to-standalone/lib/verify-module-is-scam.d.ts +0 -1
- package/src/generators/scam-to-standalone/lib/verify-module-is-scam.js +0 -13
- package/src/generators/scam-to-standalone/lib/verify-module-is-scam.js.map +0 -1
- package/src/generators/scam-to-standalone/scam-to-standalone.d.ts +0 -4
- package/src/generators/scam-to-standalone/scam-to-standalone.js +0 -38
- package/src/generators/scam-to-standalone/scam-to-standalone.js.map +0 -1
- package/src/generators/scam-to-standalone/schema.d.ts +0 -5
- package/src/generators/scam-to-standalone/schema.json +0 -32
- package/src/generators/setup-mf/files/entry-module-files/entry.component.ts__tmpl__ +0 -9
- package/src/generators/setup-mf/files/entry-module-files/entry.module.ts__tmpl__ +0 -18
- package/src/generators/setup-mf/files/entry-module-files/entry.routes.ts__tmpl__ +0 -4
- package/src/generators/setup-mf/files/host-files/app.component.spec.ts__tmpl__ +0 -40
- package/src/generators/setup-mf/files/standalone-entry-component-files/entry.component.ts__tmpl__ +0 -13
- package/src/generators/setup-mf/files/standalone-entry-component-files/entry.routes.ts__tmpl__ +0 -4
- package/src/generators/setup-mf/files/webpack/module-federation.config.js__tmpl__ +0 -8
- package/src/generators/setup-mf/files/webpack/webpack.config.js__tmpl__ +0 -3
- package/src/generators/setup-mf/files/webpack/webpack.prod.config.js__tmpl__ +0 -15
- package/src/generators/setup-mf/lib/add-cypress-workaround.d.ts +0 -3
- package/src/generators/setup-mf/lib/add-cypress-workaround.js +0 -42
- package/src/generators/setup-mf/lib/add-cypress-workaround.js.map +0 -1
- package/src/generators/setup-mf/lib/add-remote-entry.d.ts +0 -3
- package/src/generators/setup-mf/lib/add-remote-entry.js +0 -35
- package/src/generators/setup-mf/lib/add-remote-entry.js.map +0 -1
- package/src/generators/setup-mf/lib/add-remote-to-host.d.ts +0 -4
- package/src/generators/setup-mf/lib/add-remote-to-host.js +0 -96
- package/src/generators/setup-mf/lib/add-remote-to-host.js.map +0 -1
- package/src/generators/setup-mf/lib/change-build-target.d.ts +0 -3
- package/src/generators/setup-mf/lib/change-build-target.js +0 -17
- package/src/generators/setup-mf/lib/change-build-target.js.map +0 -1
- package/src/generators/setup-mf/lib/fix-bootstrap.d.ts +0 -3
- package/src/generators/setup-mf/lib/fix-bootstrap.js +0 -48
- package/src/generators/setup-mf/lib/fix-bootstrap.js.map +0 -1
- package/src/generators/setup-mf/lib/generate-config.d.ts +0 -6
- package/src/generators/setup-mf/lib/generate-config.js +0 -22
- package/src/generators/setup-mf/lib/generate-config.js.map +0 -1
- package/src/generators/setup-mf/lib/get-remotes-with-ports.d.ts +0 -6
- package/src/generators/setup-mf/lib/get-remotes-with-ports.js +0 -23
- package/src/generators/setup-mf/lib/get-remotes-with-ports.js.map +0 -1
- package/src/generators/setup-mf/lib/index.d.ts +0 -12
- package/src/generators/setup-mf/lib/index.js +0 -16
- package/src/generators/setup-mf/lib/index.js.map +0 -1
- package/src/generators/setup-mf/lib/remove-dead-code-from-remote.d.ts +0 -3
- package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js +0 -61
- package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js.map +0 -1
- package/src/generators/setup-mf/lib/set-tsconfig-target.d.ts +0 -3
- package/src/generators/setup-mf/lib/set-tsconfig-target.js +0 -11
- package/src/generators/setup-mf/lib/set-tsconfig-target.js.map +0 -1
- package/src/generators/setup-mf/lib/setup-host-if-dynamic.d.ts +0 -3
- package/src/generators/setup-mf/lib/setup-host-if-dynamic.js +0 -15
- package/src/generators/setup-mf/lib/setup-host-if-dynamic.js.map +0 -1
- package/src/generators/setup-mf/lib/setup-serve-target.d.ts +0 -3
- package/src/generators/setup-mf/lib/setup-serve-target.js +0 -32
- package/src/generators/setup-mf/lib/setup-serve-target.js.map +0 -1
- package/src/generators/setup-mf/lib/update-host-app-routes.d.ts +0 -3
- package/src/generators/setup-mf/lib/update-host-app-routes.js +0 -37
- package/src/generators/setup-mf/lib/update-host-app-routes.js.map +0 -1
- package/src/generators/setup-mf/schema.d.ts +0 -15
- package/src/generators/setup-mf/schema.json +0 -81
- package/src/generators/setup-mf/setup-mf.compat.d.ts +0 -2
- package/src/generators/setup-mf/setup-mf.compat.js +0 -7
- package/src/generators/setup-mf/setup-mf.compat.js.map +0 -1
- package/src/generators/setup-mf/setup-mf.d.ts +0 -4
- package/src/generators/setup-mf/setup-mf.js +0 -48
- package/src/generators/setup-mf/setup-mf.js.map +0 -1
- package/src/generators/setup-ssr/files/__serverFileName__ +0 -60
- package/src/generators/setup-ssr/files/src/__main__ +0 -11
- package/src/generators/setup-ssr/files/src/app/__rootModuleFileName__ +0 -14
- package/src/generators/setup-ssr/files/src/main.ts__tpl__ +0 -16
- package/src/generators/setup-ssr/files/tsconfig.server.json__tpl__ +0 -15
- package/src/generators/setup-ssr/lib/generate-files.d.ts +0 -3
- package/src/generators/setup-ssr/lib/generate-files.js +0 -11
- package/src/generators/setup-ssr/lib/generate-files.js.map +0 -1
- package/src/generators/setup-ssr/lib/index.d.ts +0 -4
- package/src/generators/setup-ssr/lib/index.js +0 -8
- package/src/generators/setup-ssr/lib/index.js.map +0 -1
- package/src/generators/setup-ssr/lib/normalize-options.d.ts +0 -12
- package/src/generators/setup-ssr/lib/normalize-options.js +0 -19
- package/src/generators/setup-ssr/lib/normalize-options.js.map +0 -1
- package/src/generators/setup-ssr/lib/update-app-module.d.ts +0 -3
- package/src/generators/setup-ssr/lib/update-app-module.js +0 -23
- package/src/generators/setup-ssr/lib/update-app-module.js.map +0 -1
- package/src/generators/setup-ssr/lib/update-project-config.d.ts +0 -3
- package/src/generators/setup-ssr/lib/update-project-config.js +0 -73
- package/src/generators/setup-ssr/lib/update-project-config.js.map +0 -1
- package/src/generators/setup-ssr/schema.d.ts +0 -10
- package/src/generators/setup-ssr/schema.json +0 -60
- package/src/generators/setup-ssr/setup-ssr.compat.d.ts +0 -2
- package/src/generators/setup-ssr/setup-ssr.compat.js +0 -7
- package/src/generators/setup-ssr/setup-ssr.compat.js.map +0 -1
- package/src/generators/setup-ssr/setup-ssr.d.ts +0 -4
- package/src/generators/setup-ssr/setup-ssr.js +0 -31
- package/src/generators/setup-ssr/setup-ssr.js.map +0 -1
- package/src/generators/setup-tailwind/files/v2/tailwind.config.js__tmpl__ +0 -18
- package/src/generators/setup-tailwind/files/v3/tailwind.config.js__tmpl__ +0 -14
- package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.d.ts +0 -3
- package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.js +0 -32
- package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.js.map +0 -1
- package/src/generators/setup-tailwind/lib/add-tailwind-config.d.ts +0 -3
- package/src/generators/setup-tailwind/lib/add-tailwind-config.js +0 -18
- package/src/generators/setup-tailwind/lib/add-tailwind-config.js.map +0 -1
- package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.d.ts +0 -2
- package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.js +0 -15
- package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.js.map +0 -1
- package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.d.ts +0 -2
- package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js +0 -21
- package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js.map +0 -1
- package/src/generators/setup-tailwind/lib/index.d.ts +0 -6
- package/src/generators/setup-tailwind/lib/index.js +0 -10
- package/src/generators/setup-tailwind/lib/index.js.map +0 -1
- package/src/generators/setup-tailwind/lib/normalize-options.d.ts +0 -2
- package/src/generators/setup-tailwind/lib/normalize-options.js +0 -8
- package/src/generators/setup-tailwind/lib/normalize-options.js.map +0 -1
- package/src/generators/setup-tailwind/lib/update-application-styles.d.ts +0 -3
- package/src/generators/setup-tailwind/lib/update-application-styles.js +0 -54
- package/src/generators/setup-tailwind/lib/update-application-styles.js.map +0 -1
- package/src/generators/setup-tailwind/schema.d.ts +0 -11
- package/src/generators/setup-tailwind/schema.json +0 -42
- package/src/generators/setup-tailwind/setup-tailwind.compat.d.ts +0 -2
- package/src/generators/setup-tailwind/setup-tailwind.compat.js +0 -7
- package/src/generators/setup-tailwind/setup-tailwind.compat.js.map +0 -1
- package/src/generators/setup-tailwind/setup-tailwind.d.ts +0 -4
- package/src/generators/setup-tailwind/setup-tailwind.js +0 -33
- package/src/generators/setup-tailwind/setup-tailwind.js.map +0 -1
- package/src/generators/stories/compat.d.ts +0 -2
- package/src/generators/stories/compat.js +0 -7
- package/src/generators/stories/compat.js.map +0 -1
- package/src/generators/stories/lib/get-e2e-project.d.ts +0 -2
- package/src/generators/stories/lib/get-e2e-project.js +0 -16
- package/src/generators/stories/lib/get-e2e-project.js.map +0 -1
- package/src/generators/stories/schema.d.ts +0 -7
- package/src/generators/stories/schema.json +0 -56
- package/src/generators/stories/stories.d.ts +0 -4
- package/src/generators/stories/stories.js +0 -65
- package/src/generators/stories/stories.js.map +0 -1
- package/src/generators/storybook-configuration/compat.d.ts +0 -2
- package/src/generators/storybook-configuration/compat.js +0 -7
- package/src/generators/storybook-configuration/compat.js.map +0 -1
- package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.d.ts +0 -1
- package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.js +0 -16
- package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.js.map +0 -1
- package/src/generators/storybook-configuration/lib/generate-stories.d.ts +0 -3
- package/src/generators/storybook-configuration/lib/generate-stories.js +0 -22
- package/src/generators/storybook-configuration/lib/generate-stories.js.map +0 -1
- package/src/generators/storybook-configuration/lib/generate-storybook-configuration.d.ts +0 -3
- package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +0 -25
- package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js.map +0 -1
- package/src/generators/storybook-configuration/lib/validate-options.d.ts +0 -2
- package/src/generators/storybook-configuration/lib/validate-options.js +0 -10
- package/src/generators/storybook-configuration/lib/validate-options.js.map +0 -1
- package/src/generators/storybook-configuration/schema.d.ts +0 -16
- package/src/generators/storybook-configuration/schema.json +0 -101
- package/src/generators/storybook-configuration/storybook-configuration.d.ts +0 -4
- package/src/generators/storybook-configuration/storybook-configuration.js +0 -28
- package/src/generators/storybook-configuration/storybook-configuration.js.map +0 -1
- package/src/generators/utils/create-ts-config.d.ts +0 -8
- package/src/generators/utils/create-ts-config.js +0 -36
- package/src/generators/utils/create-ts-config.js.map +0 -1
- package/src/generators/utils/dependencies.d.ts +0 -2
- package/src/generators/utils/dependencies.js +0 -16
- package/src/generators/utils/dependencies.js.map +0 -1
- package/src/generators/utils/entry-point.d.ts +0 -2
- package/src/generators/utils/entry-point.js +0 -22
- package/src/generators/utils/entry-point.js.map +0 -1
- package/src/generators/utils/export-scam.d.ts +0 -9
- package/src/generators/utils/export-scam.js +0 -38
- package/src/generators/utils/export-scam.js.map +0 -1
- package/src/generators/utils/file-info.d.ts +0 -16
- package/src/generators/utils/file-info.js +0 -30
- package/src/generators/utils/file-info.js.map +0 -1
- package/src/generators/utils/find-module.d.ts +0 -4
- package/src/generators/utils/find-module.js +0 -62
- package/src/generators/utils/find-module.js.map +0 -1
- package/src/generators/utils/get-new-project-name.d.ts +0 -6
- package/src/generators/utils/get-new-project-name.js +0 -13
- package/src/generators/utils/get-new-project-name.js.map +0 -1
- package/src/generators/utils/index.d.ts +0 -2
- package/src/generators/utils/index.js +0 -6
- package/src/generators/utils/index.js.map +0 -1
- package/src/generators/utils/insert-ngmodule-import.d.ts +0 -4
- package/src/generators/utils/insert-ngmodule-import.js +0 -164
- package/src/generators/utils/insert-ngmodule-import.js.map +0 -1
- package/src/generators/utils/path.d.ts +0 -4
- package/src/generators/utils/path.js +0 -32
- package/src/generators/utils/path.js.map +0 -1
- package/src/generators/utils/project.d.ts +0 -3
- package/src/generators/utils/project.js +0 -37
- package/src/generators/utils/project.js.map +0 -1
- package/src/generators/utils/storybook-ast/component-info.d.ts +0 -11
- package/src/generators/utils/storybook-ast/component-info.js +0 -167
- package/src/generators/utils/storybook-ast/component-info.js.map +0 -1
- package/src/generators/utils/storybook-ast/entry-point.d.ts +0 -7
- package/src/generators/utils/storybook-ast/entry-point.js +0 -65
- package/src/generators/utils/storybook-ast/entry-point.js.map +0 -1
- package/src/generators/utils/storybook-ast/module-info.d.ts +0 -5
- package/src/generators/utils/storybook-ast/module-info.js +0 -222
- package/src/generators/utils/storybook-ast/module-info.js.map +0 -1
- package/src/generators/utils/storybook-ast/storybook-inputs.d.ts +0 -12
- package/src/generators/utils/storybook-ast/storybook-inputs.js +0 -80
- package/src/generators/utils/storybook-ast/storybook-inputs.js.map +0 -1
- package/src/generators/utils/storybook-ast/tree-utilities.d.ts +0 -2
- package/src/generators/utils/storybook-ast/tree-utilities.js +0 -32
- package/src/generators/utils/storybook-ast/tree-utilities.js.map +0 -1
- package/src/generators/utils/testing.d.ts +0 -10
- package/src/generators/utils/testing.js +0 -232
- package/src/generators/utils/testing.js.map +0 -1
- package/src/generators/utils/types.d.ts +0 -1
- package/src/generators/utils/types.js +0 -3
- package/src/generators/utils/types.js.map +0 -1
- package/src/generators/utils/version-utils.d.ts +0 -16
- package/src/generators/utils/version-utils.js +0 -76
- package/src/generators/utils/version-utils.js.map +0 -1
- package/src/generators/utils/warn-for-schematic-usage.d.ts +0 -1
- package/src/generators/utils/warn-for-schematic-usage.js +0 -9
- package/src/generators/utils/warn-for-schematic-usage.js.map +0 -1
- package/src/generators/web-worker/compat.d.ts +0 -2
- package/src/generators/web-worker/compat.js +0 -7
- package/src/generators/web-worker/compat.js.map +0 -1
- package/src/generators/web-worker/files/config/tsconfig.worker.json__tpl__ +0 -14
- package/src/generators/web-worker/files/worker/__name__.worker.ts__tpl__ +0 -6
- package/src/generators/web-worker/lib/add-snippet.d.ts +0 -2
- package/src/generators/web-worker/lib/add-snippet.js +0 -34
- package/src/generators/web-worker/lib/add-snippet.js.map +0 -1
- package/src/generators/web-worker/lib/index.d.ts +0 -2
- package/src/generators/web-worker/lib/index.js +0 -6
- package/src/generators/web-worker/lib/index.js.map +0 -1
- package/src/generators/web-worker/lib/normalize-options.d.ts +0 -3
- package/src/generators/web-worker/lib/normalize-options.js +0 -23
- package/src/generators/web-worker/lib/normalize-options.js.map +0 -1
- package/src/generators/web-worker/schema.d.ts +0 -7
- package/src/generators/web-worker/schema.json +0 -48
- package/src/generators/web-worker/web-worker.d.ts +0 -4
- package/src/generators/web-worker/web-worker.js +0 -38
- package/src/generators/web-worker/web-worker.js.map +0 -1
- package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.d.ts +0 -2
- package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js +0 -27
- package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js.map +0 -1
- package/src/migrations/update-14-2-0/update-angular-cli.d.ts +0 -2
- package/src/migrations/update-14-2-0/update-angular-cli.js +0 -27
- package/src/migrations/update-14-2-0/update-angular-cli.js.map +0 -1
- package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.d.ts +0 -2
- package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.js +0 -39
- package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.js.map +0 -1
- package/src/migrations/update-14-2-0/update-ngcc-target.d.ts +0 -2
- package/src/migrations/update-14-2-0/update-ngcc-target.js +0 -22
- package/src/migrations/update-14-2-0/update-ngcc-target.js.map +0 -1
- package/src/migrations/update-14-2-0/update-router-initial-navigation.d.ts +0 -2
- package/src/migrations/update-14-2-0/update-router-initial-navigation.js +0 -79
- package/src/migrations/update-14-2-0/update-router-initial-navigation.js.map +0 -1
- package/src/migrations/update-14-2-0/update-tsconfig-target.d.ts +0 -2
- package/src/migrations/update-14-2-0/update-tsconfig-target.js +0 -164
- package/src/migrations/update-14-2-0/update-tsconfig-target.js.map +0 -1
- package/src/migrations/update-14-5-0/migrate-mfe-to-mf.d.ts +0 -5
- package/src/migrations/update-14-5-0/migrate-mfe-to-mf.js +0 -95
- package/src/migrations/update-14-5-0/migrate-mfe-to-mf.js.map +0 -1
- package/src/migrations/update-14-5-2/update-angular-cli.d.ts +0 -2
- package/src/migrations/update-14-5-2/update-angular-cli.js +0 -27
- package/src/migrations/update-14-5-2/update-angular-cli.js.map +0 -1
- package/src/migrations/update-14-6-0/update-angular-cli.d.ts +0 -2
- package/src/migrations/update-14-6-0/update-angular-cli.js +0 -27
- package/src/migrations/update-14-6-0/update-angular-cli.js.map +0 -1
- package/src/migrations/update-14-8-0/rename-webpack-server.d.ts +0 -2
- package/src/migrations/update-14-8-0/rename-webpack-server.js +0 -22
- package/src/migrations/update-14-8-0/rename-webpack-server.js.map +0 -1
- package/src/migrations/update-15-0-0/add-karma-inputs.d.ts +0 -2
- package/src/migrations/update-15-0-0/add-karma-inputs.js +0 -47
- package/src/migrations/update-15-0-0/add-karma-inputs.js.map +0 -1
- package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.d.ts +0 -2
- package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js +0 -94
- package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js.map +0 -1
- package/src/migrations/update-15-2-0/remove-browserlist-config.d.ts +0 -3
- package/src/migrations/update-15-2-0/remove-browserlist-config.js +0 -62
- package/src/migrations/update-15-2-0/remove-browserlist-config.js.map +0 -1
- package/src/migrations/update-15-2-0/remove-platform-server-exports.d.ts +0 -2
- package/src/migrations/update-15-2-0/remove-platform-server-exports.js +0 -65
- package/src/migrations/update-15-2-0/remove-platform-server-exports.js.map +0 -1
- package/src/migrations/update-15-2-0/update-angular-cli.d.ts +0 -2
- package/src/migrations/update-15-2-0/update-angular-cli.js +0 -27
- package/src/migrations/update-15-2-0/update-angular-cli.js.map +0 -1
- package/src/migrations/update-15-2-0/update-karma-main-file.d.ts +0 -2
- package/src/migrations/update-15-2-0/update-karma-main-file.js +0 -73
- package/src/migrations/update-15-2-0/update-karma-main-file.js.map +0 -1
- package/src/migrations/update-15-2-0/update-typescript-target.d.ts +0 -2
- package/src/migrations/update-15-2-0/update-typescript-target.js +0 -52
- package/src/migrations/update-15-2-0/update-typescript-target.js.map +0 -1
- package/src/migrations/update-15-2-0/update-workspace-config.d.ts +0 -2
- package/src/migrations/update-15-2-0/update-workspace-config.js +0 -28
- package/src/migrations/update-15-2-0/update-workspace-config.js.map +0 -1
- package/src/migrations/update-15-5-0/update-angular-cli.d.ts +0 -2
- package/src/migrations/update-15-5-0/update-angular-cli.js +0 -27
- package/src/migrations/update-15-5-0/update-angular-cli.js.map +0 -1
- package/src/migrations/update-15-7-0/install-required-packages.d.ts +0 -2
- package/src/migrations/update-15-7-0/install-required-packages.js +0 -39
- package/src/migrations/update-15-7-0/install-required-packages.js.map +0 -1
- package/src/migrations/update-15-8-0/update-angular-cli.d.ts +0 -2
- package/src/migrations/update-15-8-0/update-angular-cli.js +0 -27
- package/src/migrations/update-15-8-0/update-angular-cli.js.map +0 -1
- package/src/migrations/update-15-9-0/update-file-server-executor.d.ts +0 -2
- package/src/migrations/update-15-9-0/update-file-server-executor.js +0 -47
- package/src/migrations/update-15-9-0/update-file-server-executor.js.map +0 -1
- package/src/migrations/update-15-9-0/update-testing-tsconfig.d.ts +0 -3
- package/src/migrations/update-15-9-0/update-testing-tsconfig.js +0 -39
- package/src/migrations/update-15-9-0/update-testing-tsconfig.js.map +0 -1
- package/src/runtime/nx/data-persistence.d.ts +0 -271
- package/src/runtime/nx/data-persistence.js +0 -351
- package/src/runtime/nx/data-persistence.js.map +0 -1
- package/src/utils/backward-compatible-versions.d.ts +0 -6
- package/src/utils/backward-compatible-versions.js +0 -33
- package/src/utils/backward-compatible-versions.js.map +0 -1
- package/src/utils/cli-config-utils.d.ts +0 -1
- package/src/utils/cli-config-utils.js +0 -46
- package/src/utils/cli-config-utils.js.map +0 -1
- package/src/utils/file-change-recorder.d.ts +0 -16
- package/src/utils/file-change-recorder.js +0 -37
- package/src/utils/file-change-recorder.js.map +0 -1
- package/src/utils/get-mf-projects.d.ts +0 -4
- package/src/utils/get-mf-projects.js +0 -33
- package/src/utils/get-mf-projects.js.map +0 -1
- package/src/utils/mf/utils.d.ts +0 -13
- package/src/utils/mf/utils.js +0 -64
- package/src/utils/mf/utils.js.map +0 -1
- package/src/utils/mf/with-module-federation-ssr.d.ts +0 -2
- package/src/utils/mf/with-module-federation-ssr.js +0 -45
- package/src/utils/mf/with-module-federation-ssr.js.map +0 -1
- package/src/utils/mf/with-module-federation.d.ts +0 -2
- package/src/utils/mf/with-module-federation.js +0 -43
- package/src/utils/mf/with-module-federation.js.map +0 -1
- package/src/utils/nx-devkit/ast-utils.d.ts +0 -32
- package/src/utils/nx-devkit/ast-utils.js +0 -503
- package/src/utils/nx-devkit/ast-utils.js.map +0 -1
- package/src/utils/nx-devkit/route-utils.d.ts +0 -3
- package/src/utils/nx-devkit/route-utils.js +0 -87
- package/src/utils/nx-devkit/route-utils.js.map +0 -1
- package/src/utils/nx-devkit/testing.d.ts +0 -14
- package/src/utils/nx-devkit/testing.js +0 -89
- package/src/utils/nx-devkit/testing.js.map +0 -1
- package/src/utils/test-runners.d.ts +0 -8
- package/src/utils/test-runners.js +0 -14
- package/src/utils/test-runners.js.map +0 -1
- package/src/utils/version-utils.d.ts +0 -3
- package/src/utils/version-utils.js +0 -22
- package/src/utils/version-utils.js.map +0 -1
- package/src/utils/versions.d.ts +0 -26
- package/src/utils/versions.js +0 -30
- package/src/utils/versions.js.map +0 -1
- package/testing/src/testing-utils.d.ts +0 -31
- package/testing/src/testing-utils.js +0 -41
- package/testing/src/testing-utils.js.map +0 -1
|
@@ -1,351 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { isObservable, of } from 'rxjs';
|
|
3
|
-
import { concatMap, groupBy, mergeMap, switchMap, filter, map, catchError } from 'rxjs/operators';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @whatItDoes Handles pessimistic updates (updating the server first).
|
|
8
|
-
*
|
|
9
|
-
* Updating the server, when implemented naively, suffers from race conditions and poor error handling.
|
|
10
|
-
*
|
|
11
|
-
* `pessimisticUpdate` addresses these problems. It runs all fetches in order, which removes race conditions
|
|
12
|
-
* and forces the developer to handle errors.
|
|
13
|
-
*
|
|
14
|
-
* ## Example:
|
|
15
|
-
*
|
|
16
|
-
* ```typescript
|
|
17
|
-
* @Injectable()
|
|
18
|
-
* class TodoEffects {
|
|
19
|
-
* updateTodo$ = createEffect(() =>
|
|
20
|
-
* this.actions$.pipe(
|
|
21
|
-
* ofType('UPDATE_TODO'),
|
|
22
|
-
* pessimisticUpdate({
|
|
23
|
-
* // provides an action
|
|
24
|
-
* run: (action: UpdateTodo) => {
|
|
25
|
-
* // update the backend first, and then dispatch an action that will
|
|
26
|
-
* // update the client side
|
|
27
|
-
* return this.backend.updateTodo(action.todo.id, action.todo).pipe(
|
|
28
|
-
* map((updated) => ({
|
|
29
|
-
* type: 'UPDATE_TODO_SUCCESS',
|
|
30
|
-
* todo: updated,
|
|
31
|
-
* }))
|
|
32
|
-
* );
|
|
33
|
-
* },
|
|
34
|
-
* onError: (action: UpdateTodo, error: any) => {
|
|
35
|
-
* // we don't need to undo the changes on the client side.
|
|
36
|
-
* // we can dispatch an error, or simply log the error here and return `null`
|
|
37
|
-
* return null;
|
|
38
|
-
* },
|
|
39
|
-
* })
|
|
40
|
-
* )
|
|
41
|
-
* );
|
|
42
|
-
*
|
|
43
|
-
* constructor(private actions$: Actions, private backend: Backend) {}
|
|
44
|
-
* }
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* Note that if you don't return a new action from the run callback, you must set the dispatch property
|
|
48
|
-
* of the effect to false, like this:
|
|
49
|
-
*
|
|
50
|
-
* ```typescript
|
|
51
|
-
* class TodoEffects {
|
|
52
|
-
* updateTodo$ = createEffect(() =>
|
|
53
|
-
* this.actions$.pipe(
|
|
54
|
-
* //...
|
|
55
|
-
* ), { dispatch: false }
|
|
56
|
-
* );
|
|
57
|
-
* }
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* @param opts
|
|
61
|
-
*/
|
|
62
|
-
function pessimisticUpdate(opts) {
|
|
63
|
-
return (source) => {
|
|
64
|
-
return source.pipe(mapActionAndState(), concatMap(runWithErrorHandling(opts.run, opts.onError)));
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @whatItDoes Handles optimistic updates (updating the client first).
|
|
70
|
-
*
|
|
71
|
-
* It runs all fetches in order, which removes race conditions and forces the developer to handle errors.
|
|
72
|
-
*
|
|
73
|
-
* When using `optimisticUpdate`, in case of a failure, the developer has already updated the state locally,
|
|
74
|
-
* so the developer must provide an undo action.
|
|
75
|
-
*
|
|
76
|
-
* The error handling must be done in the callback, or by means of the undo action.
|
|
77
|
-
*
|
|
78
|
-
* ## Example:
|
|
79
|
-
*
|
|
80
|
-
* ```typescript
|
|
81
|
-
* @Injectable()
|
|
82
|
-
* class TodoEffects {
|
|
83
|
-
* updateTodo$ = createEffect(() =>
|
|
84
|
-
* this.actions$.pipe(
|
|
85
|
-
* ofType('UPDATE_TODO'),
|
|
86
|
-
* optimisticUpdate({
|
|
87
|
-
* // provides an action
|
|
88
|
-
* run: (action: UpdateTodo) => {
|
|
89
|
-
* return this.backend.updateTodo(action.todo.id, action.todo).pipe(
|
|
90
|
-
* mapTo({
|
|
91
|
-
* type: 'UPDATE_TODO_SUCCESS',
|
|
92
|
-
* })
|
|
93
|
-
* );
|
|
94
|
-
* },
|
|
95
|
-
* undoAction: (action: UpdateTodo, error: any) => {
|
|
96
|
-
* // dispatch an undo action to undo the changes in the client state
|
|
97
|
-
* return {
|
|
98
|
-
* type: 'UNDO_TODO_UPDATE',
|
|
99
|
-
* todo: action.todo,
|
|
100
|
-
* };
|
|
101
|
-
* },
|
|
102
|
-
* })
|
|
103
|
-
* )
|
|
104
|
-
* );
|
|
105
|
-
*
|
|
106
|
-
* constructor(private actions$: Actions, private backend: Backend) {}
|
|
107
|
-
* }
|
|
108
|
-
* ```
|
|
109
|
-
*
|
|
110
|
-
* Note that if you don't return a new action from the run callback, you must set the dispatch property
|
|
111
|
-
* of the effect to false, like this:
|
|
112
|
-
*
|
|
113
|
-
* ```typescript
|
|
114
|
-
* class TodoEffects {
|
|
115
|
-
* updateTodo$ = createEffect(() =>
|
|
116
|
-
* this.actions$.pipe(
|
|
117
|
-
* //...
|
|
118
|
-
* ), { dispatch: false }
|
|
119
|
-
* );
|
|
120
|
-
* }
|
|
121
|
-
* ```
|
|
122
|
-
*
|
|
123
|
-
* @param opts
|
|
124
|
-
*/
|
|
125
|
-
function optimisticUpdate(opts) {
|
|
126
|
-
return (source) => {
|
|
127
|
-
return source.pipe(mapActionAndState(), concatMap(runWithErrorHandling(opts.run, opts.undoAction)));
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @whatItDoes Handles data fetching.
|
|
133
|
-
*
|
|
134
|
-
* Data fetching implemented naively suffers from race conditions and poor error handling.
|
|
135
|
-
*
|
|
136
|
-
* `fetch` addresses these problems. It runs all fetches in order, which removes race conditions
|
|
137
|
-
* and forces the developer to handle errors.
|
|
138
|
-
*
|
|
139
|
-
* ## Example:
|
|
140
|
-
*
|
|
141
|
-
* ```typescript
|
|
142
|
-
* @Injectable()
|
|
143
|
-
* class TodoEffects {
|
|
144
|
-
* loadTodos$ = createEffect(() =>
|
|
145
|
-
* this.actions$.pipe(
|
|
146
|
-
* ofType('GET_TODOS'),
|
|
147
|
-
* fetch({
|
|
148
|
-
* // provides an action
|
|
149
|
-
* run: (a: GetTodos) => {
|
|
150
|
-
* return this.backend.getAll().pipe(
|
|
151
|
-
* map((response) => ({
|
|
152
|
-
* type: 'TODOS',
|
|
153
|
-
* todos: response.todos,
|
|
154
|
-
* }))
|
|
155
|
-
* );
|
|
156
|
-
* },
|
|
157
|
-
* onError: (action: GetTodos, error: any) => {
|
|
158
|
-
* // dispatch an undo action to undo the changes in the client state
|
|
159
|
-
* return null;
|
|
160
|
-
* },
|
|
161
|
-
* })
|
|
162
|
-
* )
|
|
163
|
-
* );
|
|
164
|
-
*
|
|
165
|
-
* constructor(private actions$: Actions, private backend: Backend) {}
|
|
166
|
-
* }
|
|
167
|
-
* ```
|
|
168
|
-
*
|
|
169
|
-
* This is correct, but because it set the concurrency to 1, it may not be performant.
|
|
170
|
-
*
|
|
171
|
-
* To fix that, you can provide the `id` function, like this:
|
|
172
|
-
*
|
|
173
|
-
* ```typescript
|
|
174
|
-
* @Injectable()
|
|
175
|
-
* class TodoEffects {
|
|
176
|
-
* loadTodo$ = createEffect(() =>
|
|
177
|
-
* this.actions$.pipe(
|
|
178
|
-
* ofType('GET_TODO'),
|
|
179
|
-
* fetch({
|
|
180
|
-
* id: (todo: GetTodo) => {
|
|
181
|
-
* return todo.id;
|
|
182
|
-
* },
|
|
183
|
-
* // provides an action
|
|
184
|
-
* run: (todo: GetTodo) => {
|
|
185
|
-
* return this.backend.getTodo(todo.id).map((response) => ({
|
|
186
|
-
* type: 'LOAD_TODO_SUCCESS',
|
|
187
|
-
* todo: response.todo,
|
|
188
|
-
* }));
|
|
189
|
-
* },
|
|
190
|
-
* onError: (action: GetTodo, error: any) => {
|
|
191
|
-
* // dispatch an undo action to undo the changes in the client state
|
|
192
|
-
* return null;
|
|
193
|
-
* },
|
|
194
|
-
* })
|
|
195
|
-
* )
|
|
196
|
-
* );
|
|
197
|
-
*
|
|
198
|
-
* constructor(private actions$: Actions, private backend: Backend) {}
|
|
199
|
-
* }
|
|
200
|
-
* ```
|
|
201
|
-
*
|
|
202
|
-
* With this setup, the requests for Todo 1 will run concurrently with the requests for Todo 2.
|
|
203
|
-
*
|
|
204
|
-
* In addition, if there are multiple requests for Todo 1 scheduled, it will only run the last one.
|
|
205
|
-
*
|
|
206
|
-
* @param opts
|
|
207
|
-
*/
|
|
208
|
-
function fetch(opts) {
|
|
209
|
-
return (source) => {
|
|
210
|
-
if (opts.id) {
|
|
211
|
-
const groupedFetches = source.pipe(mapActionAndState(), groupBy(([action, ...store]) => {
|
|
212
|
-
return opts.id(action, ...store);
|
|
213
|
-
}));
|
|
214
|
-
return groupedFetches.pipe(mergeMap((pairs) => pairs.pipe(switchMap(runWithErrorHandling(opts.run, opts.onError)))));
|
|
215
|
-
}
|
|
216
|
-
return source.pipe(mapActionAndState(), concatMap(runWithErrorHandling(opts.run, opts.onError)));
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* @whatItDoes Handles data fetching as part of router navigation.
|
|
221
|
-
*
|
|
222
|
-
* Data fetching implemented naively suffers from race conditions and poor error handling.
|
|
223
|
-
*
|
|
224
|
-
* `navigation` addresses these problems.
|
|
225
|
-
*
|
|
226
|
-
* It checks if an activated router state contains the passed in component type, and, if it does, runs the `run`
|
|
227
|
-
* callback. It provides the activated snapshot associated with the component and the current state. And it only runs
|
|
228
|
-
* the last request.
|
|
229
|
-
*
|
|
230
|
-
* ## Example:
|
|
231
|
-
*
|
|
232
|
-
* ```typescript
|
|
233
|
-
* @Injectable()
|
|
234
|
-
* class TodoEffects {
|
|
235
|
-
* loadTodo$ = createEffect(() =>
|
|
236
|
-
* this.actions$.pipe(
|
|
237
|
-
* // listens for the routerNavigation action from @ngrx/router-store
|
|
238
|
-
* navigation(TodoComponent, {
|
|
239
|
-
* run: (activatedRouteSnapshot: ActivatedRouteSnapshot) => {
|
|
240
|
-
* return this.backend
|
|
241
|
-
* .fetchTodo(activatedRouteSnapshot.params['id'])
|
|
242
|
-
* .pipe(
|
|
243
|
-
* map((todo) => ({
|
|
244
|
-
* type: 'LOAD_TODO_SUCCESS',
|
|
245
|
-
* todo: todo,
|
|
246
|
-
* }))
|
|
247
|
-
* );
|
|
248
|
-
* },
|
|
249
|
-
* onError: (
|
|
250
|
-
* activatedRouteSnapshot: ActivatedRouteSnapshot,
|
|
251
|
-
* error: any
|
|
252
|
-
* ) => {
|
|
253
|
-
* // we can log and error here and return null
|
|
254
|
-
* // we can also navigate back
|
|
255
|
-
* return null;
|
|
256
|
-
* },
|
|
257
|
-
* })
|
|
258
|
-
* )
|
|
259
|
-
* );
|
|
260
|
-
*
|
|
261
|
-
* constructor(private actions$: Actions, private backend: Backend) {}
|
|
262
|
-
* }
|
|
263
|
-
* ```
|
|
264
|
-
*
|
|
265
|
-
* @param component
|
|
266
|
-
* @param opts
|
|
267
|
-
*/
|
|
268
|
-
function navigation(component, opts) {
|
|
269
|
-
return (source) => {
|
|
270
|
-
const nav = source.pipe(mapActionAndState(), filter(([action]) => isStateSnapshot(action)), map(([action, ...slices]) => {
|
|
271
|
-
if (!isStateSnapshot(action)) {
|
|
272
|
-
// Because of the above filter we'll never get here,
|
|
273
|
-
// but this properly type narrows `action`
|
|
274
|
-
return;
|
|
275
|
-
}
|
|
276
|
-
return [
|
|
277
|
-
findSnapshot(component, action.payload.routerState.root),
|
|
278
|
-
...slices,
|
|
279
|
-
];
|
|
280
|
-
}), filter(([snapshot]) => !!snapshot));
|
|
281
|
-
return nav.pipe(switchMap(runWithErrorHandling(opts.run, opts.onError)));
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
function isStateSnapshot(action) {
|
|
285
|
-
return action.type === ROUTER_NAVIGATION;
|
|
286
|
-
}
|
|
287
|
-
function runWithErrorHandling(run, onError) {
|
|
288
|
-
return ([action, ...slices]) => {
|
|
289
|
-
try {
|
|
290
|
-
const r = wrapIntoObservable(run(action, ...slices));
|
|
291
|
-
return r.pipe(catchError((e) => wrapIntoObservable(onError(action, e))));
|
|
292
|
-
}
|
|
293
|
-
catch (e) {
|
|
294
|
-
return wrapIntoObservable(onError(action, e));
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* @whatItDoes maps Observable<Action | [Action, State]> to
|
|
300
|
-
* Observable<[Action, State]>
|
|
301
|
-
*/
|
|
302
|
-
function mapActionAndState() {
|
|
303
|
-
return (source) => {
|
|
304
|
-
return source.pipe(map((value) => normalizeActionAndState(value)));
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* @whatItDoes Normalizes either a bare action or an array of action and slices
|
|
309
|
-
* into an array of action and slices (or undefined)
|
|
310
|
-
*/
|
|
311
|
-
function normalizeActionAndState(args) {
|
|
312
|
-
let action, slices;
|
|
313
|
-
if (args instanceof Array) {
|
|
314
|
-
[action, ...slices] = args;
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
slices = [];
|
|
318
|
-
action = args;
|
|
319
|
-
}
|
|
320
|
-
return [action, ...slices];
|
|
321
|
-
}
|
|
322
|
-
function findSnapshot(component, s) {
|
|
323
|
-
if (s.routeConfig && s.routeConfig.component === component) {
|
|
324
|
-
return s;
|
|
325
|
-
}
|
|
326
|
-
for (const c of s.children) {
|
|
327
|
-
const ss = findSnapshot(component, c);
|
|
328
|
-
if (ss) {
|
|
329
|
-
return ss;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
return null;
|
|
333
|
-
}
|
|
334
|
-
function wrapIntoObservable(obj) {
|
|
335
|
-
if (isObservable(obj)) {
|
|
336
|
-
return obj;
|
|
337
|
-
}
|
|
338
|
-
else if (!obj) {
|
|
339
|
-
return of();
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
return of(obj);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
1
|
+
"use strict";
|
|
346
2
|
/**
|
|
347
3
|
* Generated bundle index. Do not edit.
|
|
348
4
|
*/
|
|
349
|
-
|
|
350
|
-
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
tslib_1.__exportStar(require("./index"), exports);
|
|
351
8
|
//# sourceMappingURL=nrwl-angular.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nrwl-angular.mjs","sources":["../../src/runtime/nx/data-persistence.ts","../../nrwl-angular.ts"],"sourcesContent":["import type { Type } from '@angular/core';\nimport type {\n ActivatedRouteSnapshot,\n RouterStateSnapshot,\n} from '@angular/router';\nimport type { RouterNavigationAction } from '@ngrx/router-store';\nimport { ROUTER_NAVIGATION } from '@ngrx/router-store';\nimport type { Action } from '@ngrx/store';\nimport type { Observable } from 'rxjs';\nimport { isObservable, of } from 'rxjs';\nimport {\n catchError,\n concatMap,\n filter,\n groupBy,\n map,\n mergeMap,\n switchMap,\n} from 'rxjs/operators';\n\nexport interface PessimisticUpdateOpts<T extends Array<unknown>, A> {\n run(a: A, ...slices: [...T]): Observable<Action> | Action | void;\n onError(a: A, e: any): Observable<any> | any;\n}\n\nexport interface OptimisticUpdateOpts<T extends Array<unknown>, A> {\n run(a: A, ...slices: [...T]): Observable<Action> | Action | void;\n undoAction(a: A, e: any): Observable<Action> | Action;\n}\n\nexport interface FetchOpts<T extends Array<unknown>, A> {\n id?(a: A, ...slices: [...T]): any;\n run(a: A, ...slices: [...T]): Observable<Action> | Action | void;\n onError?(a: A, e: any): Observable<any> | any;\n}\n\nexport interface HandleNavigationOpts<T extends Array<unknown>> {\n run(\n a: ActivatedRouteSnapshot,\n ...slices: [...T]\n ): Observable<Action> | Action | void;\n onError?(a: ActivatedRouteSnapshot, e: any): Observable<any> | any;\n}\n\nexport type ActionOrActionWithStates<T extends Array<unknown>, A> =\n | A\n | [A, ...T];\nexport type ActionOrActionWithState<T, A> = ActionOrActionWithStates<[T], A>;\nexport type ActionStatesStream<T extends Array<unknown>, A> = Observable<\n ActionOrActionWithStates<T, A>\n>;\nexport type ActionStateStream<T, A> = Observable<\n ActionOrActionWithStates<[T], A>\n>;\n\n/**\n *\n * @whatItDoes Handles pessimistic updates (updating the server first).\n *\n * Updating the server, when implemented naively, suffers from race conditions and poor error handling.\n *\n * `pessimisticUpdate` addresses these problems. It runs all fetches in order, which removes race conditions\n * and forces the developer to handle errors.\n *\n * ## Example:\n *\n * ```typescript\n * @Injectable()\n * class TodoEffects {\n * updateTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * ofType('UPDATE_TODO'),\n * pessimisticUpdate({\n * // provides an action\n * run: (action: UpdateTodo) => {\n * // update the backend first, and then dispatch an action that will\n * // update the client side\n * return this.backend.updateTodo(action.todo.id, action.todo).pipe(\n * map((updated) => ({\n * type: 'UPDATE_TODO_SUCCESS',\n * todo: updated,\n * }))\n * );\n * },\n * onError: (action: UpdateTodo, error: any) => {\n * // we don't need to undo the changes on the client side.\n * // we can dispatch an error, or simply log the error here and return `null`\n * return null;\n * },\n * })\n * )\n * );\n *\n * constructor(private actions$: Actions, private backend: Backend) {}\n * }\n * ```\n *\n * Note that if you don't return a new action from the run callback, you must set the dispatch property\n * of the effect to false, like this:\n *\n * ```typescript\n * class TodoEffects {\n * updateTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * //...\n * ), { dispatch: false }\n * );\n * }\n * ```\n *\n * @param opts\n */\nexport function pessimisticUpdate<T extends Array<unknown>, A extends Action>(\n opts: PessimisticUpdateOpts<T, A>\n) {\n return (source: ActionStatesStream<T, A>): Observable<Action> => {\n return source.pipe(\n mapActionAndState(),\n concatMap(runWithErrorHandling(opts.run, opts.onError))\n );\n };\n}\n\n/**\n *\n * @whatItDoes Handles optimistic updates (updating the client first).\n *\n * It runs all fetches in order, which removes race conditions and forces the developer to handle errors.\n *\n * When using `optimisticUpdate`, in case of a failure, the developer has already updated the state locally,\n * so the developer must provide an undo action.\n *\n * The error handling must be done in the callback, or by means of the undo action.\n *\n * ## Example:\n *\n * ```typescript\n * @Injectable()\n * class TodoEffects {\n * updateTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * ofType('UPDATE_TODO'),\n * optimisticUpdate({\n * // provides an action\n * run: (action: UpdateTodo) => {\n * return this.backend.updateTodo(action.todo.id, action.todo).pipe(\n * mapTo({\n * type: 'UPDATE_TODO_SUCCESS',\n * })\n * );\n * },\n * undoAction: (action: UpdateTodo, error: any) => {\n * // dispatch an undo action to undo the changes in the client state\n * return {\n * type: 'UNDO_TODO_UPDATE',\n * todo: action.todo,\n * };\n * },\n * })\n * )\n * );\n *\n * constructor(private actions$: Actions, private backend: Backend) {}\n * }\n * ```\n *\n * Note that if you don't return a new action from the run callback, you must set the dispatch property\n * of the effect to false, like this:\n *\n * ```typescript\n * class TodoEffects {\n * updateTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * //...\n * ), { dispatch: false }\n * );\n * }\n * ```\n *\n * @param opts\n */\nexport function optimisticUpdate<T extends Array<unknown>, A extends Action>(\n opts: OptimisticUpdateOpts<T, A>\n) {\n return (source: ActionStatesStream<T, A>): Observable<Action> => {\n return source.pipe(\n mapActionAndState(),\n concatMap(runWithErrorHandling(opts.run, opts.undoAction))\n );\n };\n}\n\n/**\n *\n * @whatItDoes Handles data fetching.\n *\n * Data fetching implemented naively suffers from race conditions and poor error handling.\n *\n * `fetch` addresses these problems. It runs all fetches in order, which removes race conditions\n * and forces the developer to handle errors.\n *\n * ## Example:\n *\n * ```typescript\n * @Injectable()\n * class TodoEffects {\n * loadTodos$ = createEffect(() =>\n * this.actions$.pipe(\n * ofType('GET_TODOS'),\n * fetch({\n * // provides an action\n * run: (a: GetTodos) => {\n * return this.backend.getAll().pipe(\n * map((response) => ({\n * type: 'TODOS',\n * todos: response.todos,\n * }))\n * );\n * },\n * onError: (action: GetTodos, error: any) => {\n * // dispatch an undo action to undo the changes in the client state\n * return null;\n * },\n * })\n * )\n * );\n *\n * constructor(private actions$: Actions, private backend: Backend) {}\n * }\n * ```\n *\n * This is correct, but because it set the concurrency to 1, it may not be performant.\n *\n * To fix that, you can provide the `id` function, like this:\n *\n * ```typescript\n * @Injectable()\n * class TodoEffects {\n * loadTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * ofType('GET_TODO'),\n * fetch({\n * id: (todo: GetTodo) => {\n * return todo.id;\n * },\n * // provides an action\n * run: (todo: GetTodo) => {\n * return this.backend.getTodo(todo.id).map((response) => ({\n * type: 'LOAD_TODO_SUCCESS',\n * todo: response.todo,\n * }));\n * },\n * onError: (action: GetTodo, error: any) => {\n * // dispatch an undo action to undo the changes in the client state\n * return null;\n * },\n * })\n * )\n * );\n *\n * constructor(private actions$: Actions, private backend: Backend) {}\n * }\n * ```\n *\n * With this setup, the requests for Todo 1 will run concurrently with the requests for Todo 2.\n *\n * In addition, if there are multiple requests for Todo 1 scheduled, it will only run the last one.\n *\n * @param opts\n */\nexport function fetch<T extends Array<unknown>, A extends Action>(\n opts: FetchOpts<T, A>\n) {\n return (source: ActionStatesStream<T, A>): Observable<Action> => {\n if (opts.id) {\n const groupedFetches = source.pipe(\n mapActionAndState(),\n groupBy(([action, ...store]) => {\n return opts.id(action, ...store);\n })\n );\n\n return groupedFetches.pipe(\n mergeMap((pairs) =>\n pairs.pipe(switchMap(runWithErrorHandling(opts.run, opts.onError)))\n )\n );\n }\n\n return source.pipe(\n mapActionAndState(),\n concatMap(runWithErrorHandling(opts.run, opts.onError))\n );\n };\n}\n\n/**\n * @whatItDoes Handles data fetching as part of router navigation.\n *\n * Data fetching implemented naively suffers from race conditions and poor error handling.\n *\n * `navigation` addresses these problems.\n *\n * It checks if an activated router state contains the passed in component type, and, if it does, runs the `run`\n * callback. It provides the activated snapshot associated with the component and the current state. And it only runs\n * the last request.\n *\n * ## Example:\n *\n * ```typescript\n * @Injectable()\n * class TodoEffects {\n * loadTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * // listens for the routerNavigation action from @ngrx/router-store\n * navigation(TodoComponent, {\n * run: (activatedRouteSnapshot: ActivatedRouteSnapshot) => {\n * return this.backend\n * .fetchTodo(activatedRouteSnapshot.params['id'])\n * .pipe(\n * map((todo) => ({\n * type: 'LOAD_TODO_SUCCESS',\n * todo: todo,\n * }))\n * );\n * },\n * onError: (\n * activatedRouteSnapshot: ActivatedRouteSnapshot,\n * error: any\n * ) => {\n * // we can log and error here and return null\n * // we can also navigate back\n * return null;\n * },\n * })\n * )\n * );\n *\n * constructor(private actions$: Actions, private backend: Backend) {}\n * }\n * ```\n *\n * @param component\n * @param opts\n */\nexport function navigation<T extends Array<unknown>, A extends Action>(\n component: Type<any>,\n opts: HandleNavigationOpts<T>\n) {\n return (source: ActionStatesStream<T, A>) => {\n const nav = source.pipe(\n mapActionAndState(),\n filter(([action]) => isStateSnapshot(action)),\n map(([action, ...slices]) => {\n if (!isStateSnapshot(action)) {\n // Because of the above filter we'll never get here,\n // but this properly type narrows `action`\n return;\n }\n\n return [\n findSnapshot(component, action.payload.routerState.root),\n ...slices,\n ] as [ActivatedRouteSnapshot, ...T];\n }),\n filter(([snapshot]) => !!snapshot)\n );\n\n return nav.pipe(switchMap(runWithErrorHandling(opts.run, opts.onError)));\n };\n}\n\nfunction isStateSnapshot(\n action: any\n): action is RouterNavigationAction<RouterStateSnapshot> {\n return action.type === ROUTER_NAVIGATION;\n}\n\nfunction runWithErrorHandling<T extends Array<unknown>, A, R>(\n run: (a: A, ...slices: [...T]) => Observable<R> | R | void,\n onError: any\n) {\n return ([action, ...slices]: [A, ...T]): Observable<R> => {\n try {\n const r = wrapIntoObservable(run(action, ...slices));\n return r.pipe(catchError((e) => wrapIntoObservable(onError(action, e))));\n } catch (e) {\n return wrapIntoObservable(onError(action, e));\n }\n };\n}\n\n/**\n * @whatItDoes maps Observable<Action | [Action, State]> to\n * Observable<[Action, State]>\n */\nfunction mapActionAndState<T extends Array<unknown>, A>() {\n return (source: Observable<ActionOrActionWithStates<T, A>>) => {\n return source.pipe(\n map((value) => normalizeActionAndState(value) as [A, ...T])\n );\n };\n}\n\n/**\n * @whatItDoes Normalizes either a bare action or an array of action and slices\n * into an array of action and slices (or undefined)\n */\nfunction normalizeActionAndState<T extends Array<unknown>, A>(\n args: ActionOrActionWithStates<T, A>\n): [A, ...T] {\n let action: A, slices: T;\n\n if (args instanceof Array) {\n [action, ...slices] = args;\n } else {\n slices = [] as T;\n action = args;\n }\n\n return [action, ...slices];\n}\n\nfunction findSnapshot(\n component: Type<any>,\n s: ActivatedRouteSnapshot\n): ActivatedRouteSnapshot {\n if (s.routeConfig && s.routeConfig.component === component) {\n return s;\n }\n for (const c of s.children) {\n const ss = findSnapshot(component, c);\n if (ss) {\n return ss;\n }\n }\n return null;\n}\n\nfunction wrapIntoObservable<O>(obj: Observable<O> | O | void): Observable<O> {\n if (isObservable(obj)) {\n return obj;\n } else if (!obj) {\n return of();\n } else {\n return of(obj as O);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAuDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDG;AACG,SAAU,iBAAiB,CAC/B,IAAiC,EAAA;IAEjC,OAAO,CAAC,MAAgC,KAAwB;QAC9D,OAAO,MAAM,CAAC,IAAI,CAChB,iBAAiB,EAAE,EACnB,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CACxD,CAAC;AACJ,KAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDG;AACG,SAAU,gBAAgB,CAC9B,IAAgC,EAAA;IAEhC,OAAO,CAAC,MAAgC,KAAwB;QAC9D,OAAO,MAAM,CAAC,IAAI,CAChB,iBAAiB,EAAE,EACnB,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAC3D,CAAC;AACJ,KAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EG;AACG,SAAU,KAAK,CACnB,IAAqB,EAAA;IAErB,OAAO,CAAC,MAAgC,KAAwB;QAC9D,IAAI,IAAI,CAAC,EAAE,EAAE;AACX,YAAA,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAChC,iBAAiB,EAAE,EACnB,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,KAAI;gBAC7B,OAAO,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC;aAClC,CAAC,CACH,CAAC;AAEF,YAAA,OAAO,cAAc,CAAC,IAAI,CACxB,QAAQ,CAAC,CAAC,KAAK,KACb,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CACpE,CACF,CAAC;AACH,SAAA;QAED,OAAO,MAAM,CAAC,IAAI,CAChB,iBAAiB,EAAE,EACnB,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CACxD,CAAC;AACJ,KAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDG;AACa,SAAA,UAAU,CACxB,SAAoB,EACpB,IAA6B,EAAA;IAE7B,OAAO,CAAC,MAAgC,KAAI;AAC1C,QAAA,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CACrB,iBAAiB,EAAE,EACnB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,eAAe,CAAC,MAAM,CAAC,CAAC,EAC7C,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,KAAI;AAC1B,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE;;;gBAG5B,OAAO;AACR,aAAA;YAED,OAAO;gBACL,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;AACxD,gBAAA,GAAG,MAAM;aACwB,CAAC;AACtC,SAAC,CAAC,EACF,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CACnC,CAAC;AAEF,QAAA,OAAO,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC3E,KAAC,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CACtB,MAAW,EAAA;AAEX,IAAA,OAAO,MAAM,CAAC,IAAI,KAAK,iBAAiB,CAAC;AAC3C,CAAC;AAED,SAAS,oBAAoB,CAC3B,GAA0D,EAC1D,OAAY,EAAA;IAEZ,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,CAAY,KAAmB;QACvD,IAAI;AACF,YAAA,MAAM,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC;YACrD,OAAO,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1E,SAAA;AAAC,QAAA,OAAO,CAAC,EAAE;YACV,OAAO,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AAC/C,SAAA;AACH,KAAC,CAAC;AACJ,CAAC;AAED;;;AAGG;AACH,SAAS,iBAAiB,GAAA;IACxB,OAAO,CAAC,MAAkD,KAAI;AAC5D,QAAA,OAAO,MAAM,CAAC,IAAI,CAChB,GAAG,CAAC,CAAC,KAAK,KAAK,uBAAuB,CAAC,KAAK,CAAc,CAAC,CAC5D,CAAC;AACJ,KAAC,CAAC;AACJ,CAAC;AAED;;;AAGG;AACH,SAAS,uBAAuB,CAC9B,IAAoC,EAAA;IAEpC,IAAI,MAAS,EAAE,MAAS,CAAC;IAEzB,IAAI,IAAI,YAAY,KAAK,EAAE;AACzB,QAAA,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC;AAC5B,KAAA;AAAM,SAAA;QACL,MAAM,GAAG,EAAO,CAAC;QACjB,MAAM,GAAG,IAAI,CAAC;AACf,KAAA;AAED,IAAA,OAAO,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,YAAY,CACnB,SAAoB,EACpB,CAAyB,EAAA;IAEzB,IAAI,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,WAAW,CAAC,SAAS,KAAK,SAAS,EAAE;AAC1D,QAAA,OAAO,CAAC,CAAC;AACV,KAAA;AACD,IAAA,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QAC1B,MAAM,EAAE,GAAG,YAAY,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;AACtC,QAAA,IAAI,EAAE,EAAE;AACN,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACF,KAAA;AACD,IAAA,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,kBAAkB,CAAI,GAA6B,EAAA;AAC1D,IAAA,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE;AACrB,QAAA,OAAO,GAAG,CAAC;AACZ,KAAA;SAAM,IAAI,CAAC,GAAG,EAAE;QACf,OAAO,EAAE,EAAE,CAAC;AACb,KAAA;AAAM,SAAA;AACL,QAAA,OAAO,EAAE,CAAC,GAAQ,CAAC,CAAC;AACrB,KAAA;AACH;;AC/bA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"nrwl-angular.mjs","sources":["../../../../packages-legacy/angular/nrwl-angular.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";AAAA;;AAEG;;;AAEH,OAAwB,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA,CAAA"}
|
|
@@ -1,54 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
function setRemoteUrlResolver(_resolveRemoteUrl) {
|
|
3
|
-
resolveRemoteUrl = _resolveRemoteUrl;
|
|
4
|
-
}
|
|
5
|
-
let remoteUrlDefinitions;
|
|
6
|
-
function setRemoteDefinitions(definitions) {
|
|
7
|
-
remoteUrlDefinitions = definitions;
|
|
8
|
-
}
|
|
9
|
-
let remoteModuleMap = new Map();
|
|
10
|
-
let remoteContainerMap = new Map();
|
|
11
|
-
async function loadRemoteModule(remoteName, moduleName) {
|
|
12
|
-
const remoteModuleKey = `${remoteName}:${moduleName}`;
|
|
13
|
-
if (remoteModuleMap.has(remoteModuleKey)) {
|
|
14
|
-
return remoteModuleMap.get(remoteModuleKey);
|
|
15
|
-
}
|
|
16
|
-
const container = remoteContainerMap.has(remoteName)
|
|
17
|
-
? remoteContainerMap.get(remoteName)
|
|
18
|
-
: await loadRemoteContainer(remoteName);
|
|
19
|
-
const factory = await container.get(moduleName);
|
|
20
|
-
const Module = factory();
|
|
21
|
-
remoteModuleMap.set(remoteModuleKey, Module);
|
|
22
|
-
return Module;
|
|
23
|
-
}
|
|
24
|
-
function loadModule(url) {
|
|
25
|
-
return import(/* webpackIgnore:true */ url);
|
|
26
|
-
}
|
|
27
|
-
let initialSharingScopeCreated = false;
|
|
28
|
-
async function loadRemoteContainer(remoteName) {
|
|
29
|
-
if (!resolveRemoteUrl && !remoteUrlDefinitions) {
|
|
30
|
-
throw new Error('Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.');
|
|
31
|
-
}
|
|
32
|
-
if (!initialSharingScopeCreated) {
|
|
33
|
-
initialSharingScopeCreated = true;
|
|
34
|
-
await __webpack_init_sharing__('default');
|
|
35
|
-
}
|
|
36
|
-
const remoteUrl = remoteUrlDefinitions
|
|
37
|
-
? remoteUrlDefinitions[remoteName]
|
|
38
|
-
: await resolveRemoteUrl(remoteName);
|
|
39
|
-
let containerUrl = remoteUrl;
|
|
40
|
-
if (!remoteUrl.endsWith('.mjs') && !remoteUrl.endsWith('.js')) {
|
|
41
|
-
containerUrl = `${remoteUrl}${remoteUrl.endsWith('/') ? '' : '/'}remoteEntry.mjs`;
|
|
42
|
-
}
|
|
43
|
-
const container = await loadModule(containerUrl);
|
|
44
|
-
await container.init(__webpack_share_scopes__.default);
|
|
45
|
-
remoteContainerMap.set(remoteName, container);
|
|
46
|
-
return container;
|
|
47
|
-
}
|
|
48
|
-
|
|
1
|
+
"use strict";
|
|
49
2
|
/**
|
|
50
3
|
* Generated bundle index. Do not edit.
|
|
51
4
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
tslib_1.__exportStar(require("./index"), exports);
|
|
54
8
|
//# sourceMappingURL=nrwl-angular-mf.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nrwl-angular-mf.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"nrwl-angular-mf.mjs","sources":["../../../../packages-legacy/angular/mf/nrwl-angular-mf.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";AAAA;;AAEG;;;AAEH,OAAwB,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA,CAAA"}
|
|
@@ -1,43 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).
|
|
5
|
-
*
|
|
6
|
-
* @whatItDoes reads all the values from an observable and returns a promise
|
|
7
|
-
* with an array of all values. This should be used in combination with async/await.
|
|
8
|
-
*
|
|
9
|
-
* ## Example
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* const obs = of(1, 2, 3, 4);
|
|
13
|
-
* const res = await readAll(obs)
|
|
14
|
-
* expect(res).toEqual([1, 2, 3, 4]);
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
function readAll(o) {
|
|
18
|
-
return o.pipe(toArray()).toPromise();
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)
|
|
22
|
-
*
|
|
23
|
-
* @whatItDoes reads the first value from an observable and returns a promise
|
|
24
|
-
* with it. This should be used in combination with async/await.
|
|
25
|
-
*
|
|
26
|
-
* ## Example
|
|
27
|
-
*
|
|
28
|
-
* ```typescript
|
|
29
|
-
* const obs = of(1, 2, 3, 4);
|
|
30
|
-
* const res = await readFirst(obs)
|
|
31
|
-
* expect(res).toEqual(1);
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
function readFirst(o) {
|
|
35
|
-
return o.pipe(first()).toPromise();
|
|
36
|
-
}
|
|
37
|
-
|
|
1
|
+
"use strict";
|
|
38
2
|
/**
|
|
39
3
|
* Generated bundle index. Do not edit.
|
|
40
4
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
tslib_1.__exportStar(require("./index"), exports);
|
|
43
8
|
//# sourceMappingURL=nrwl-angular-testing.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nrwl-angular-testing.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"nrwl-angular-testing.mjs","sources":["../../../../packages-legacy/angular/testing/nrwl-angular-testing.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";AAAA;;AAEG;;;AAEH,OAAwB,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA,CAAA"}
|