@nx/angular 19.4.3 → 19.5.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/migrations.json +79 -0
- package/ng-package.json +1 -1
- package/package.json +10 -10
- package/plugins/component-testing.js +1 -2
- package/src/builders/dev-server/dev-server.impl.js +1 -2
- package/src/builders/dev-server/lib/normalize-options.js +1 -2
- package/src/builders/dev-server/lib/validate-options.js +5 -2
- package/src/builders/dev-server/schema.d.ts +1 -0
- package/src/builders/dev-server/schema.json +11 -0
- package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.js +1 -2
- package/src/builders/utilities/buildable-libs.js +1 -2
- package/src/builders/utilities/module-federation.js +4 -5
- package/src/builders/utilities/webpack.js +3 -4
- package/src/builders/webpack-browser/webpack-browser.impl.js +1 -2
- package/src/builders/webpack-server/webpack-server.impl.js +1 -2
- package/src/executors/application/application.impl.js +1 -1
- package/src/executors/application/utils/validate-options.js +1 -2
- package/src/executors/browser-esbuild/browser-esbuild.impl.js +1 -1
- package/src/executors/delegate-build/delegate-build.impl.js +1 -2
- package/src/executors/extract-i18n/extract-i18n.impl.js +1 -1
- package/src/executors/module-federation-dev-server/lib/build-static-remotes.js +1 -2
- package/src/executors/module-federation-dev-server/lib/normalize-options.js +1 -2
- package/src/executors/module-federation-dev-server/lib/parse-static-remotes-config.js +1 -2
- package/src/executors/module-federation-dev-server/lib/start-dev-remotes.js +1 -2
- package/src/executors/module-federation-dev-server/lib/start-static-remotes-file-server.js +1 -2
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +1 -2
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-packagr.js +1 -2
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ngc/compile-source-files.js +1 -2
- package/src/executors/package/ng-packagr-adjustments/ng-packagr.js +1 -2
- package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.js +1 -2
- package/src/executors/package/ng-packagr-adjustments/utils/ng-compiler-cli.js +1 -2
- package/src/executors/package/package.impl.js +2 -2
- package/src/executors/utilities/angular-version-utils.js +2 -3
- package/src/executors/utilities/buildable-libs.js +1 -2
- package/src/executors/utilities/esbuild-extensions.js +3 -4
- package/src/executors/utilities/module-loader.js +2 -3
- package/src/executors/utilities/ng-packagr/tailwindcss.js +3 -4
- package/src/executors/utilities/patch-builder-context.js +1 -2
- package/src/executors/utilities/typescript.js +1 -2
- package/src/generators/add-linting/add-linting.js +1 -2
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +1 -2
- package/src/generators/add-linting/lib/buildable-project.js +1 -2
- package/src/generators/add-linting/lib/create-eslint-configuration.d.ts +24 -24
- package/src/generators/add-linting/lib/create-eslint-configuration.js +2 -2
- package/src/generators/application/application.js +2 -3
- package/src/generators/application/files/base/tsconfig.json__tpl__ +2 -2
- package/src/generators/application/files/ng-module/src/app/app.component.spec.ts__tpl__ +4 -3
- package/src/generators/application/files/standalone-components/src/app/app.component.spec.ts__tpl__ +4 -3
- package/src/generators/application/lib/add-e2e.js +1 -2
- package/src/generators/application/lib/add-linting.js +1 -2
- package/src/generators/application/lib/add-proxy-config.js +1 -2
- package/src/generators/application/lib/add-unit-test-runner.js +1 -2
- package/src/generators/application/lib/create-files.js +8 -5
- package/src/generators/application/lib/create-project.js +1 -2
- package/src/generators/application/lib/enable-strict-type-checking.js +1 -2
- package/src/generators/application/lib/normalize-options.js +1 -2
- package/src/generators/application/lib/set-app-strict-default.js +1 -2
- package/src/generators/application/lib/set-generator-defaults.js +1 -2
- package/src/generators/application/lib/update-editor-tsconfig.js +1 -2
- package/src/generators/component/component.js +2 -3
- package/src/generators/component/lib/component.js +1 -2
- package/src/generators/component/lib/module.js +1 -2
- package/src/generators/component/lib/normalize-options.js +1 -2
- package/src/generators/component/lib/set-generator-defaults.js +1 -2
- package/src/generators/component-cypress-spec/component-cypress-spec.js +1 -2
- package/src/generators/component-cypress-spec/lib/get-args-default-value.js +1 -2
- package/src/generators/component-cypress-spec/lib/get-component-selector.js +1 -2
- package/src/generators/component-story/component-story.js +1 -2
- package/src/generators/component-test/component-test.js +1 -2
- package/src/generators/convert-to-application-executor/convert-to-application-executor.js +1 -2
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js +1 -2
- package/src/generators/convert-to-with-mf/lib/check-name-matches.js +1 -2
- package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js +1 -2
- package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.js +1 -2
- package/src/generators/convert-to-with-mf/lib/is-host-remote-config.js +3 -4
- package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js +1 -2
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +1 -2
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js +2 -3
- package/src/generators/directive/directive.js +1 -2
- package/src/generators/directive/lib/normalize-options.js +1 -2
- package/src/generators/federate-module/federate-module.js +1 -2
- package/src/generators/federate-module/lib/add-file-to-remote-tsconfig.js +1 -2
- package/src/generators/federate-module/lib/add-path-to-exposes.js +1 -2
- package/src/generators/federate-module/lib/add-path-to-ts-config.js +1 -2
- package/src/generators/federate-module/lib/add-remote.js +1 -2
- package/src/generators/federate-module/lib/check-remote-exists.js +1 -2
- package/src/generators/host/host.js +2 -3
- package/src/generators/host/lib/update-ssr-setup.js +7 -2
- package/src/generators/init/init.js +1 -2
- package/src/generators/library/files/base/tsconfig.json__tpl__ +2 -2
- package/src/generators/library/lib/add-children.js +1 -2
- package/src/generators/library/lib/add-load-children.js +1 -2
- package/src/generators/library/lib/add-module.js +1 -2
- package/src/generators/library/lib/add-project.js +1 -2
- package/src/generators/library/lib/add-standalone-component.js +1 -2
- package/src/generators/library/lib/create-files.js +3 -2
- package/src/generators/library/lib/enable-strict-type-checking.js +2 -3
- package/src/generators/library/lib/normalize-options.js +1 -2
- package/src/generators/library/lib/set-generator-defaults.js +1 -2
- package/src/generators/library/lib/update-lib-package-npm-scope.js +1 -2
- package/src/generators/library/lib/update-tsconfig.js +1 -2
- package/src/generators/library/library.js +2 -3
- package/src/generators/library-secondary-entry-point/lib/add-files.js +1 -2
- package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js +1 -2
- package/src/generators/library-secondary-entry-point/lib/normalize-options.js +1 -2
- package/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.js +1 -2
- package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js +1 -2
- package/src/generators/move/lib/update-module-name.js +1 -2
- package/src/generators/move/lib/update-ng-package.js +1 -2
- package/src/generators/move/lib/update-secondary-entry-points.js +1 -2
- package/src/generators/move/move-impl.js +1 -2
- package/src/generators/move/move.js +2 -3
- package/src/generators/ng-add/migrate-from-angular-cli.js +1 -2
- package/src/generators/ng-add/ng-add.js +1 -2
- package/src/generators/ng-add/utilities/dependencies.js +1 -2
- package/src/generators/ng-add/utilities/format-files-task.js +1 -2
- package/src/generators/ng-add/utilities/projects.js +2 -3
- package/src/generators/ng-add/utilities/validation-logging.js +2 -3
- package/src/generators/ng-add/utilities/workspace.js +13 -14
- package/src/generators/ngrx/lib/add-exports-barrel.js +1 -2
- package/src/generators/ngrx/lib/add-imports-to-module.js +1 -2
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.js +1 -2
- package/src/generators/ngrx/lib/generate-files.js +1 -2
- package/src/generators/ngrx/lib/normalize-options.js +1 -2
- package/src/generators/ngrx/lib/validate-options.js +1 -2
- package/src/generators/ngrx/ngrx.js +1 -2
- package/src/generators/ngrx-feature-store/lib/add-exports-barrel.js +1 -2
- package/src/generators/ngrx-feature-store/lib/add-imports.js +1 -2
- package/src/generators/ngrx-feature-store/lib/add-ngrx-to-package-json.js +1 -2
- package/src/generators/ngrx-feature-store/lib/generate-files.js +1 -2
- package/src/generators/ngrx-feature-store/lib/normalize-options.js +1 -2
- package/src/generators/ngrx-feature-store/lib/validate-options.js +1 -2
- package/src/generators/ngrx-feature-store/ngrx-feature-store.js +1 -2
- package/src/generators/ngrx-root-store/lib/add-imports.js +1 -2
- package/src/generators/ngrx-root-store/lib/add-ngrx-to-package-json.js +1 -2
- package/src/generators/ngrx-root-store/lib/normalize-options.js +1 -2
- package/src/generators/ngrx-root-store/lib/validate-options.js +1 -2
- package/src/generators/ngrx-root-store/ngrx-root-store.js +1 -2
- package/src/generators/pipe/lib/normalize-options.js +1 -2
- package/src/generators/pipe/pipe.js +1 -2
- package/src/generators/remote/lib/find-next-available-port.js +1 -2
- package/src/generators/remote/lib/update-ssr-setup.js +7 -2
- package/src/generators/remote/remote.js +2 -3
- package/src/generators/scam/lib/convert-component-to-scam.js +1 -2
- package/src/generators/scam/lib/normalize-options.js +1 -2
- package/src/generators/scam/scam.js +1 -2
- package/src/generators/scam-directive/lib/convert-directive-to-scam.js +1 -2
- package/src/generators/scam-directive/lib/normalize-options.js +1 -2
- package/src/generators/scam-directive/scam-directive.js +1 -2
- package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +1 -2
- package/src/generators/scam-pipe/lib/normalize-options.js +1 -2
- package/src/generators/scam-pipe/scam-pipe.js +1 -2
- package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.js +1 -2
- package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.js +1 -2
- package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.js +1 -2
- package/src/generators/scam-to-standalone/lib/get-target-project.js +1 -2
- package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.js +1 -2
- package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.js +1 -2
- package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.js +1 -2
- package/src/generators/scam-to-standalone/lib/verify-module-is-scam.js +1 -2
- package/src/generators/scam-to-standalone/scam-to-standalone.js +1 -2
- package/src/generators/setup-mf/files/host-files/app.component.spec.ts__tmpl__ +8 -5
- package/src/generators/setup-mf/lib/add-cypress-workaround.js +1 -2
- package/src/generators/setup-mf/lib/add-remote-entry.js +1 -2
- package/src/generators/setup-mf/lib/add-remote-to-host.js +3 -4
- package/src/generators/setup-mf/lib/change-build-target.js +1 -2
- package/src/generators/setup-mf/lib/fix-bootstrap.js +1 -2
- package/src/generators/setup-mf/lib/generate-config.js +1 -2
- package/src/generators/setup-mf/lib/get-remotes-with-ports.js +1 -2
- package/src/generators/setup-mf/lib/normalize-options.js +1 -2
- package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js +1 -2
- package/src/generators/setup-mf/lib/setup-host-if-dynamic.js +1 -2
- package/src/generators/setup-mf/lib/setup-serve-target.js +1 -2
- package/src/generators/setup-mf/lib/setup-tspath-for-remote.js +1 -2
- package/src/generators/setup-mf/lib/update-host-app-routes.d.ts +2 -2
- package/src/generators/setup-mf/lib/update-host-app-routes.js +5 -10
- package/src/generators/setup-mf/lib/update-tsconfig.js +1 -2
- package/src/generators/setup-mf/setup-mf.js +10 -4
- package/src/generators/setup-ssr/lib/add-dependencies.js +1 -2
- package/src/generators/setup-ssr/lib/add-hydration.js +1 -2
- package/src/generators/setup-ssr/lib/add-server-file.js +1 -2
- package/src/generators/setup-ssr/lib/generate-files.js +1 -2
- package/src/generators/setup-ssr/lib/generate-server-ts-config.js +2 -3
- package/src/generators/setup-ssr/lib/normalize-options.js +1 -2
- package/src/generators/setup-ssr/lib/set-router-initial-navigation.js +1 -2
- package/src/generators/setup-ssr/lib/update-project-config.js +2 -3
- package/src/generators/setup-ssr/lib/validate-options.js +1 -2
- package/src/generators/setup-ssr/setup-ssr.js +1 -2
- package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.js +1 -2
- package/src/generators/setup-tailwind/lib/add-tailwind-config.js +1 -2
- package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.js +1 -2
- package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js +1 -2
- package/src/generators/setup-tailwind/lib/normalize-options.js +1 -2
- package/src/generators/setup-tailwind/lib/update-application-styles.js +1 -2
- package/src/generators/setup-tailwind/setup-tailwind.js +1 -2
- package/src/generators/stories/lib/get-e2e-project.js +1 -2
- package/src/generators/stories/stories.js +1 -2
- package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.js +1 -2
- package/src/generators/storybook-configuration/lib/generate-stories.js +1 -2
- package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +1 -2
- package/src/generators/storybook-configuration/lib/validate-options.js +1 -2
- package/src/generators/storybook-configuration/storybook-configuration.js +1 -2
- package/src/generators/utils/add-jest.js +1 -2
- package/src/generators/utils/add-mf-env-to-inputs.js +1 -2
- package/src/generators/utils/dependencies.js +1 -2
- package/src/generators/utils/ensure-angular-dependencies.js +1 -2
- package/src/generators/utils/entry-point.js +1 -2
- package/src/generators/utils/export-scam.js +1 -2
- package/src/generators/utils/find-module.js +2 -3
- package/src/generators/utils/insert-ngmodule-import.js +2 -3
- package/src/generators/utils/path.js +1 -2
- package/src/generators/utils/project.js +1 -2
- package/src/generators/utils/selector.js +2 -3
- package/src/generators/utils/storybook-ast/component-info.js +3 -4
- package/src/generators/utils/storybook-ast/entry-point.js +1 -2
- package/src/generators/utils/storybook-ast/module-info.js +2 -3
- package/src/generators/utils/storybook-ast/storybook-inputs.js +4 -5
- package/src/generators/utils/storybook-ast/tree-utilities.js +1 -2
- package/src/generators/utils/testing.js +5 -6
- package/src/generators/utils/update-app-editor-tsconfig-excluded-files.js +1 -2
- package/src/generators/utils/update-project-root-tsconfig.js +2 -2
- package/src/generators/utils/validations.js +1 -2
- package/src/generators/utils/version-utils.js +6 -7
- package/src/generators/web-worker/lib/add-snippet.js +1 -2
- package/src/generators/web-worker/lib/normalize-options.js +1 -2
- package/src/generators/web-worker/web-worker.js +1 -2
- package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js +1 -1
- package/src/migrations/update-14-2-0/update-angular-cli.js +1 -1
- package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.js +1 -1
- package/src/migrations/update-14-2-0/update-ngcc-target.js +1 -1
- package/src/migrations/update-14-2-0/update-router-initial-navigation.js +6 -3
- package/src/migrations/update-14-2-0/update-tsconfig-target.js +2 -2
- package/src/migrations/update-14-5-0/migrate-mfe-to-mf.js +4 -5
- package/src/migrations/update-14-5-2/update-angular-cli.js +1 -1
- package/src/migrations/update-14-6-0/update-angular-cli.js +1 -1
- package/src/migrations/update-14-8-0/rename-webpack-server.js +1 -1
- package/src/migrations/update-15-0-0/add-karma-inputs.js +1 -1
- package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js +1 -1
- package/src/migrations/update-15-2-0/remove-browserlist-config.js +1 -1
- package/src/migrations/update-15-2-0/remove-platform-server-exports.js +1 -1
- package/src/migrations/update-15-2-0/update-angular-cli.js +1 -1
- package/src/migrations/update-15-2-0/update-karma-main-file.js +1 -1
- package/src/migrations/update-15-2-0/update-typescript-target.js +1 -1
- package/src/migrations/update-15-2-0/update-workspace-config.js +1 -1
- package/src/migrations/update-15-5-0/update-angular-cli.js +1 -1
- package/src/migrations/update-15-7-0/install-required-packages.js +1 -1
- package/src/migrations/update-15-8-0/update-angular-cli.js +1 -1
- package/src/migrations/update-15-9-0/update-file-server-executor.js +1 -1
- package/src/migrations/update-15-9-0/update-testing-tsconfig.js +1 -2
- package/src/migrations/update-16-0-0/remove-karma-defaults.js +1 -1
- package/src/migrations/update-16-0-0/remove-library-generator-simple-module-name-option.js +1 -1
- package/src/migrations/update-16-0-0/remove-protractor-defaults.js +1 -1
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +1 -1
- package/src/migrations/update-16-1-0/extract-standalone-config-from-bootstrap.js +1 -1
- package/src/migrations/update-16-1-0/remove-ngcc-invocation.js +1 -1
- package/src/migrations/update-16-1-0/remove-render-module-platform-server-exports.js +1 -1
- package/src/migrations/update-16-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-16-1-0/update-server-executor-config.js +1 -1
- package/src/migrations/update-16-2-0/switch-data-persistence-operators-imports-to-ngrx-router-store.js +1 -1
- package/src/migrations/update-16-4-0/rename-angular-eslint-accesibility-rules.js +1 -1
- package/src/migrations/update-16-4-0/update-angular-cli.js +1 -1
- package/src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps.js +1 -1
- package/src/migrations/update-16-7-0/update-angular-cli.js +1 -1
- package/src/migrations/update-17-1-0/browser-target-to-build-target.js +1 -1
- package/src/migrations/update-17-1-0/replace-nguniversal-builders.js +1 -1
- package/src/migrations/update-17-1-0/replace-nguniversal-engines.js +1 -1
- package/src/migrations/update-17-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-17-1-0/update-zone-js-deep-import.js +1 -1
- package/src/migrations/update-17-2-0/rename-webpack-dev-server.js +1 -1
- package/src/migrations/update-17-3-0/add-autoprefixer-dependency.js +1 -1
- package/src/migrations/update-17-3-0/add-browser-sync-dependency.js +1 -1
- package/src/migrations/update-17-3-0/update-angular-cli.js +1 -1
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.js +1 -1
- package/src/migrations/update-18-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-18-1-1/fix-target-defaults-inputs.js +1 -1
- package/src/migrations/update-18-2-0/update-angular-cli.js +1 -1
- package/src/migrations/update-19-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-19-2-1/add-typescript-eslint-utils.d.ts +1 -1
- package/src/migrations/update-19-2-1/add-typescript-eslint-utils.js +2 -2
- package/src/migrations/update-19-5-0/update-angular-cli.d.ts +3 -0
- package/src/migrations/update-19-5-0/update-angular-cli.js +23 -0
- package/src/migrations/utils/projects.js +1 -2
- package/src/utils/backward-compatible-versions.js +4 -2
- package/src/utils/cli-config-utils.js +1 -2
- package/src/utils/get-mf-projects.js +1 -2
- package/src/utils/mf/utils.js +4 -4
- package/src/utils/mf/with-module-federation-ssr.d.ts +2 -2
- package/src/utils/mf/with-module-federation-ssr.js +6 -3
- package/src/utils/mf/with-module-federation.d.ts +2 -2
- package/src/utils/mf/with-module-federation.js +8 -6
- package/src/utils/nx-devkit/ast-utils.js +23 -24
- package/src/utils/nx-devkit/route-utils.js +2 -3
- package/src/utils/nx-devkit/testing.js +4 -5
- package/src/utils/targets.js +1 -2
- package/src/utils/version-utils.js +2 -3
- package/src/utils/versions.d.ts +6 -5
- package/src/utils/versions.js +7 -6
- package/tailwind.js +1 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.librarySecondaryEntryPointGenerator =
|
3
|
+
exports.librarySecondaryEntryPointGenerator = librarySecondaryEntryPointGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const lib_1 = require("./lib");
|
6
6
|
async function librarySecondaryEntryPointGenerator(tree, rawOptions) {
|
@@ -12,5 +12,4 @@ async function librarySecondaryEntryPointGenerator(tree, rawOptions) {
|
|
12
12
|
await (0, devkit_1.formatFiles)(tree);
|
13
13
|
}
|
14
14
|
}
|
15
|
-
exports.librarySecondaryEntryPointGenerator = librarySecondaryEntryPointGenerator;
|
16
15
|
exports.default = librarySecondaryEntryPointGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateModuleName =
|
3
|
+
exports.updateModuleName = updateModuleName;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
/**
|
6
6
|
* Updates the Angular module name (including the spec file and index.ts)
|
@@ -81,7 +81,6 @@ function updateModuleName(tree, { oldProjectName, newProjectName }) {
|
|
81
81
|
});
|
82
82
|
}
|
83
83
|
}
|
84
|
-
exports.updateModuleName = updateModuleName;
|
85
84
|
function updateFileContent(tree, replacements, fileName, newFileName) {
|
86
85
|
let content = tree.read(fileName, 'utf-8');
|
87
86
|
if (content) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateNgPackage =
|
3
|
+
exports.updateNgPackage = updateNgPackage;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const path_1 = require("path");
|
6
6
|
function updateNgPackage(tree, schema) {
|
@@ -30,4 +30,3 @@ function updateNgPackage(tree, schema) {
|
|
30
30
|
return json;
|
31
31
|
});
|
32
32
|
}
|
33
|
-
exports.updateNgPackage = updateNgPackage;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateSecondaryEntryPoints =
|
3
|
+
exports.updateSecondaryEntryPoints = updateSecondaryEntryPoints;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const path_1 = require("path");
|
6
6
|
const libraryExecutors = [
|
@@ -31,7 +31,6 @@ function updateSecondaryEntryPoints(tree, schema) {
|
|
31
31
|
updateReadme(tree, (0, path_1.dirname)(filePath), schema.oldProjectName, schema.newProjectName);
|
32
32
|
});
|
33
33
|
}
|
34
|
-
exports.updateSecondaryEntryPoints = updateSecondaryEntryPoints;
|
35
34
|
function updateReadme(tree, dir, oldProjectName, newProjectName) {
|
36
35
|
const readmePath = (0, devkit_1.joinPathFragments)(dir, 'README.md');
|
37
36
|
if (!tree.exists(readmePath)) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.move =
|
3
|
+
exports.move = move;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const lib_1 = require("./lib");
|
6
6
|
/**
|
@@ -18,7 +18,6 @@ async function move(tree, options) {
|
|
18
18
|
(0, lib_1.updateNgPackage)(tree, options);
|
19
19
|
(0, lib_1.updateSecondaryEntryPoints)(tree, options);
|
20
20
|
}
|
21
|
-
exports.move = move;
|
22
21
|
async function isAngularProject(project) {
|
23
22
|
const projectGraph = await (0, devkit_1.createProjectGraphAsync)();
|
24
23
|
return projectGraph.dependencies[project]?.some((dependency) => dependency.target === 'npm:@angular/core');
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.angularMoveGenerator = angularMoveGenerator;
|
4
|
+
exports.angularMoveGeneratorInternal = angularMoveGeneratorInternal;
|
4
5
|
const move_1 = require("@nx/workspace/src/generators/move/move");
|
5
6
|
async function angularMoveGenerator(tree, schema) {
|
6
7
|
await angularMoveGeneratorInternal(tree, {
|
@@ -8,9 +9,7 @@ async function angularMoveGenerator(tree, schema) {
|
|
8
9
|
...schema,
|
9
10
|
});
|
10
11
|
}
|
11
|
-
exports.angularMoveGenerator = angularMoveGenerator;
|
12
12
|
async function angularMoveGeneratorInternal(tree, schema) {
|
13
13
|
process.env.NX_ANGULAR_MOVE_INVOKED = 'true';
|
14
14
|
await (0, move_1.moveGeneratorInternal)(tree, schema);
|
15
15
|
}
|
16
|
-
exports.angularMoveGeneratorInternal = angularMoveGeneratorInternal;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.migrateFromAngularCli =
|
3
|
+
exports.migrateFromAngularCli = migrateFromAngularCli;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const migrators_1 = require("./migrators");
|
6
6
|
const utilities_1 = require("./utilities");
|
@@ -59,4 +59,3 @@ async function migrateFromAngularCli(tree, options) {
|
|
59
59
|
};
|
60
60
|
}
|
61
61
|
}
|
62
|
-
exports.migrateFromAngularCli = migrateFromAngularCli;
|
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ngAddGenerator =
|
3
|
+
exports.ngAddGenerator = ngAddGenerator;
|
4
4
|
const migrate_from_angular_cli_1 = require("./migrate-from-angular-cli");
|
5
5
|
async function ngAddGenerator(tree, options) {
|
6
6
|
return await (0, migrate_from_angular_cli_1.migrateFromAngularCli)(tree, options);
|
7
7
|
}
|
8
|
-
exports.ngAddGenerator = ngAddGenerator;
|
9
8
|
exports.default = ngAddGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ensureAngularDevKitPeerDependenciesAreInstalled =
|
3
|
+
exports.ensureAngularDevKitPeerDependenciesAreInstalled = ensureAngularDevKitPeerDependenciesAreInstalled;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const version_utils_1 = require("../../../utils/version-utils");
|
6
6
|
const version_utils_2 = require("../../utils/version-utils");
|
@@ -25,4 +25,3 @@ function ensureAngularDevKitPeerDependenciesAreInstalled(tree) {
|
|
25
25
|
}, {});
|
26
26
|
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, filteredPackages);
|
27
27
|
}
|
28
|
-
exports.ensureAngularDevKitPeerDependenciesAreInstalled = ensureAngularDevKitPeerDependenciesAreInstalled;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.formatFilesTask =
|
3
|
+
exports.formatFilesTask = formatFilesTask;
|
4
4
|
const child_process_1 = require("nx/src/utils/child-process");
|
5
5
|
function formatFilesTask(tree) {
|
6
6
|
if (!tree
|
@@ -13,4 +13,3 @@ function formatFilesTask(tree) {
|
|
13
13
|
}
|
14
14
|
catch { }
|
15
15
|
}
|
16
|
-
exports.formatFilesTask = formatFilesTask;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getAllProjects = getAllProjects;
|
4
|
+
exports.convertToNxProject = convertToNxProject;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const angular_json_1 = require("nx/src/adapter/angular-json");
|
6
7
|
function getAllProjects(tree) {
|
@@ -23,7 +24,6 @@ function getAllProjects(tree) {
|
|
23
24
|
}
|
24
25
|
return result;
|
25
26
|
}
|
26
|
-
exports.getAllProjects = getAllProjects;
|
27
27
|
function convertToNxProject(tree, projectName) {
|
28
28
|
const angularJson = (0, devkit_1.readJson)(tree, 'angular.json');
|
29
29
|
const project = (0, angular_json_1.toNewFormat)(angularJson).projects[projectName];
|
@@ -32,4 +32,3 @@ function convertToNxProject(tree, projectName) {
|
|
32
32
|
delete angularJson.projects[projectName];
|
33
33
|
(0, devkit_1.writeJson)(tree, 'angular.json', { ...angularJson, version: 1 });
|
34
34
|
}
|
35
|
-
exports.convertToNxProject = convertToNxProject;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.arrayToString = arrayToString;
|
4
|
+
exports.getProjectValidationResultMessage = getProjectValidationResultMessage;
|
4
5
|
const chalk = require("chalk");
|
5
6
|
function arrayToString(array) {
|
6
7
|
if (array.length === 0) {
|
@@ -13,7 +14,6 @@ function arrayToString(array) {
|
|
13
14
|
const rest = array.slice(0, array.length - 1);
|
14
15
|
return `${rest.map(quote).join(', ')} and ${quote(last)}`;
|
15
16
|
}
|
16
|
-
exports.arrayToString = arrayToString;
|
17
17
|
function getProjectValidationResultMessage(validationResult) {
|
18
18
|
return `${chalk.bold('Validation results')}:
|
19
19
|
|
@@ -21,7 +21,6 @@ function getProjectValidationResultMessage(validationResult) {
|
|
21
21
|
.map((error) => getValidationErrorText(error))
|
22
22
|
.join('\n\n ')}`;
|
23
23
|
}
|
24
|
-
exports.getProjectValidationResultMessage = getProjectValidationResultMessage;
|
25
24
|
function getValidationErrorText({ message, messageGroup, hint, }) {
|
26
25
|
let lines = message
|
27
26
|
? [`- ${message}`, ...(hint ? [chalk.dim(chalk.italic(` ${hint}`))] : [])]
|
@@ -1,6 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.validateWorkspace = validateWorkspace;
|
4
|
+
exports.createNxJson = createNxJson;
|
5
|
+
exports.updateWorkspaceConfigDefaults = updateWorkspaceConfigDefaults;
|
6
|
+
exports.updateRootTsConfig = updateRootTsConfig;
|
7
|
+
exports.updatePackageJson = updatePackageJson;
|
8
|
+
exports.updateRootEsLintConfig = updateRootEsLintConfig;
|
9
|
+
exports.cleanupEsLintPackages = cleanupEsLintPackages;
|
10
|
+
exports.createWorkspaceFiles = createWorkspaceFiles;
|
11
|
+
exports.createRootKarmaConfig = createRootKarmaConfig;
|
12
|
+
exports.getWorkspaceRootFileTypesInfo = getWorkspaceRootFileTypesInfo;
|
13
|
+
exports.updateVsCodeRecommendedExtensions = updateVsCodeRecommendedExtensions;
|
14
|
+
exports.deleteAngularJson = deleteAngularJson;
|
15
|
+
exports.deleteGitKeepFilesIfNotNeeded = deleteGitKeepFilesIfNotNeeded;
|
4
16
|
const devkit_1 = require("@nx/devkit");
|
5
17
|
const eslint_1 = require("@nx/eslint");
|
6
18
|
const setup_root_eslint_1 = require("@nx/eslint/src/generators/lint-project/setup-root-eslint");
|
@@ -25,7 +37,6 @@ function validateWorkspace(tree) {
|
|
25
37
|
|
26
38
|
- ${errors.join('\n ')}`);
|
27
39
|
}
|
28
|
-
exports.validateWorkspace = validateWorkspace;
|
29
40
|
function createNxJson(tree, options, defaultProject) {
|
30
41
|
const targets = getWorkspaceCommonTargets(tree);
|
31
42
|
(0, devkit_1.writeJson)(tree, 'nx.json', {
|
@@ -79,7 +90,6 @@ function createNxJson(tree, options, defaultProject) {
|
|
79
90
|
defaultProject,
|
80
91
|
});
|
81
92
|
}
|
82
|
-
exports.createNxJson = createNxJson;
|
83
93
|
function getWorkspaceCommonTargets(tree) {
|
84
94
|
const targets = { e2e: false, lint: false, test: false };
|
85
95
|
const projects = (0, devkit_1.getProjects)(tree);
|
@@ -107,7 +117,6 @@ function updateWorkspaceConfigDefaults(tree) {
|
|
107
117
|
}
|
108
118
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
109
119
|
}
|
110
|
-
exports.updateWorkspaceConfigDefaults = updateWorkspaceConfigDefaults;
|
111
120
|
function updateRootTsConfig(tree) {
|
112
121
|
const tsconfig = (0, devkit_1.readJson)(tree, (0, js_1.getRootTsConfigPathInTree)(tree));
|
113
122
|
tsconfig.compilerOptions.paths ??= {};
|
@@ -119,7 +128,6 @@ function updateRootTsConfig(tree) {
|
|
119
128
|
tree.delete('tsconfig.json');
|
120
129
|
}
|
121
130
|
}
|
122
|
-
exports.updateRootTsConfig = updateRootTsConfig;
|
123
131
|
function updatePackageJson(tree) {
|
124
132
|
(0, devkit_1.updateJson)(tree, 'package.json', (packageJson) => {
|
125
133
|
packageJson.scripts = packageJson.scripts ?? {};
|
@@ -146,7 +154,6 @@ function updatePackageJson(tree) {
|
|
146
154
|
return packageJson;
|
147
155
|
});
|
148
156
|
}
|
149
|
-
exports.updatePackageJson = updatePackageJson;
|
150
157
|
async function updateRootEsLintConfig(tree, existingEsLintConfig, unitTestRunner) {
|
151
158
|
await (0, eslint_1.lintInitGenerator)(tree, {
|
152
159
|
addPlugin: false,
|
@@ -187,7 +194,6 @@ async function updateRootEsLintConfig(tree, existingEsLintConfig, unitTestRunner
|
|
187
194
|
];
|
188
195
|
(0, devkit_1.writeJson)(tree, '.eslintrc.json', existingEsLintConfig);
|
189
196
|
}
|
190
|
-
exports.updateRootEsLintConfig = updateRootEsLintConfig;
|
191
197
|
function cleanupEsLintPackages(tree) {
|
192
198
|
(0, devkit_1.updateJson)(tree, 'package.json', (json) => {
|
193
199
|
if (json.devDependencies?.['@angular-eslint/builder']) {
|
@@ -205,7 +211,6 @@ function cleanupEsLintPackages(tree) {
|
|
205
211
|
return json;
|
206
212
|
});
|
207
213
|
}
|
208
|
-
exports.cleanupEsLintPackages = cleanupEsLintPackages;
|
209
214
|
async function createWorkspaceFiles(tree) {
|
210
215
|
updateVsCodeRecommendedExtensions(tree);
|
211
216
|
await (0, js_1.initGenerator)(tree, { skipFormat: true });
|
@@ -215,13 +220,11 @@ async function createWorkspaceFiles(tree) {
|
|
215
220
|
rootTsConfigPath: (0, js_1.getRootTsConfigPathInTree)(tree),
|
216
221
|
});
|
217
222
|
}
|
218
|
-
exports.createWorkspaceFiles = createWorkspaceFiles;
|
219
223
|
function createRootKarmaConfig(tree) {
|
220
224
|
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, '../files/root-karma'), '.', {
|
221
225
|
tmpl: '',
|
222
226
|
});
|
223
227
|
}
|
224
|
-
exports.createRootKarmaConfig = createRootKarmaConfig;
|
225
228
|
function getWorkspaceRootFileTypesInfo(tree, migrators) {
|
226
229
|
const workspaceRootFileTypesInfo = {
|
227
230
|
eslint: false,
|
@@ -248,7 +251,6 @@ function getWorkspaceRootFileTypesInfo(tree, migrators) {
|
|
248
251
|
}
|
249
252
|
return workspaceRootFileTypesInfo;
|
250
253
|
}
|
251
|
-
exports.getWorkspaceRootFileTypesInfo = getWorkspaceRootFileTypesInfo;
|
252
254
|
function updateVsCodeRecommendedExtensions(tree) {
|
253
255
|
const recommendations = [
|
254
256
|
'nrwl.angular-console',
|
@@ -273,14 +275,12 @@ function updateVsCodeRecommendedExtensions(tree) {
|
|
273
275
|
});
|
274
276
|
}
|
275
277
|
}
|
276
|
-
exports.updateVsCodeRecommendedExtensions = updateVsCodeRecommendedExtensions;
|
277
278
|
function deleteAngularJson(tree) {
|
278
279
|
const projects = (0, angular_json_1.toNewFormat)((0, devkit_1.readJson)(tree, 'angular.json')).projects;
|
279
280
|
if (!Object.keys(projects).length) {
|
280
281
|
tree.delete('angular.json');
|
281
282
|
}
|
282
283
|
}
|
283
|
-
exports.deleteAngularJson = deleteAngularJson;
|
284
284
|
function deleteGitKeepFilesIfNotNeeded(tree) {
|
285
285
|
if (tree.children('apps').length > 1 && tree.exists('apps/.gitkeep')) {
|
286
286
|
tree.delete('apps/.gitkeep');
|
@@ -289,4 +289,3 @@ function deleteGitKeepFilesIfNotNeeded(tree) {
|
|
289
289
|
tree.delete('libs/.gitkeep');
|
290
290
|
}
|
291
291
|
}
|
292
|
-
exports.deleteGitKeepFilesIfNotNeeded = deleteGitKeepFilesIfNotNeeded;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addExportsToBarrel =
|
3
|
+
exports.addExportsToBarrel = addExportsToBarrel;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
6
6
|
const js_1 = require("@nx/js");
|
@@ -42,4 +42,3 @@ function addExportsToBarrel(tree, options) {
|
|
42
42
|
sourceFile = (0, js_1.addGlobal)(tree, sourceFile, indexFilePath, `export * from '${statePath}.facade';`);
|
43
43
|
}
|
44
44
|
}
|
45
|
-
exports.addExportsToBarrel = addExportsToBarrel;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addImportsToModule =
|
3
|
+
exports.addImportsToModule = addImportsToModule;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const js_1 = require("@nx/js");
|
6
6
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
@@ -179,4 +179,3 @@ function addImportsToModule(tree, options) {
|
|
179
179
|
}
|
180
180
|
}
|
181
181
|
}
|
182
|
-
exports.addImportsToModule = addImportsToModule;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addNgRxToPackageJson =
|
3
|
+
exports.addNgRxToPackageJson = addNgRxToPackageJson;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const semver_1 = require("semver");
|
6
6
|
const version_utils_1 = require("../../utils/version-utils");
|
@@ -22,4 +22,3 @@ function addNgRxToPackageJson(tree, options) {
|
|
22
22
|
'jasmine-marbles': jasmineMarblesVersion,
|
23
23
|
});
|
24
24
|
}
|
25
|
-
exports.addNgRxToPackageJson = addNgRxToPackageJson;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.generateNgrxFilesFromTemplates =
|
3
|
+
exports.generateNgrxFilesFromTemplates = generateNgrxFilesFromTemplates;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const semver_1 = require("semver");
|
6
6
|
/**
|
@@ -20,4 +20,3 @@ function generateNgrxFilesFromTemplates(tree, options) {
|
|
20
20
|
tree.delete((0, devkit_1.joinPathFragments)(options.parentDirectory, options.directory, `${projectNames.fileName}.facade.spec.ts`));
|
21
21
|
}
|
22
22
|
}
|
23
|
-
exports.generateNgrxFilesFromTemplates = generateNgrxFilesFromTemplates;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.normalizeOptions =
|
3
|
+
exports.normalizeOptions = normalizeOptions;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const semver_1 = require("@nx/devkit/src/utils/semver");
|
6
6
|
const path_1 = require("path");
|
@@ -25,4 +25,3 @@ function normalizeOptions(tree, options) {
|
|
25
25
|
rxjsVersion,
|
26
26
|
};
|
27
27
|
}
|
28
|
-
exports.normalizeOptions = normalizeOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.validateOptions =
|
3
|
+
exports.validateOptions = validateOptions;
|
4
4
|
function validateOptions(tree, options) {
|
5
5
|
if (!options.module && !options.parent) {
|
6
6
|
throw new Error('Please provide a value for "--parent"!');
|
@@ -12,4 +12,3 @@ function validateOptions(tree, options) {
|
|
12
12
|
throw new Error(`Parent does not exist: ${options.parent}.`);
|
13
13
|
}
|
14
14
|
}
|
15
|
-
exports.validateOptions = validateOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ngrxGenerator =
|
3
|
+
exports.ngrxGenerator = ngrxGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const lib_1 = require("./lib");
|
6
6
|
async function ngrxGenerator(tree, schema) {
|
@@ -22,5 +22,4 @@ async function ngrxGenerator(tree, schema) {
|
|
22
22
|
}
|
23
23
|
return packageInstallationTask;
|
24
24
|
}
|
25
|
-
exports.ngrxGenerator = ngrxGenerator;
|
26
25
|
exports.default = ngrxGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addExportsToBarrel =
|
3
|
+
exports.addExportsToBarrel = addExportsToBarrel;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
6
6
|
const js_1 = require("@nx/js");
|
@@ -38,4 +38,3 @@ function addExportsToBarrel(tree, options) {
|
|
38
38
|
sourceFile = (0, js_1.addGlobal)(tree, sourceFile, indexFilePath, `export * from '${statePath}.facade';`);
|
39
39
|
}
|
40
40
|
}
|
41
|
-
exports.addExportsToBarrel = addExportsToBarrel;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addImportsToModule =
|
3
|
+
exports.addImportsToModule = addImportsToModule;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const ast_utils_1 = require("../../../utils/nx-devkit/ast-utils");
|
6
6
|
const route_utils_1 = require("../../../utils/nx-devkit/route-utils");
|
@@ -99,4 +99,3 @@ function addImportsToModule(tree, options) {
|
|
99
99
|
sourceFile = addStoreForFeatureImport(tree, isParentStandalone, options.route, sourceFile, parentPath, provideStoreForFeature, storeForFeature);
|
100
100
|
sourceFile = addEffectsForFeatureImport(tree, isParentStandalone, options.route, sourceFile, parentPath, provideEffectsForFeature, effectsForFeature);
|
101
101
|
}
|
102
|
-
exports.addImportsToModule = addImportsToModule;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addNgRxToPackageJson =
|
3
|
+
exports.addNgRxToPackageJson = addNgRxToPackageJson;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const semver_1 = require("semver");
|
6
6
|
const version_utils_1 = require("../../utils/version-utils");
|
@@ -22,4 +22,3 @@ function addNgRxToPackageJson(tree, options) {
|
|
22
22
|
'jasmine-marbles': jasmineMarblesVersion,
|
23
23
|
});
|
24
24
|
}
|
25
|
-
exports.addNgRxToPackageJson = addNgRxToPackageJson;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.generateFilesFromTemplates =
|
3
|
+
exports.generateFilesFromTemplates = generateFilesFromTemplates;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const semver_1 = require("semver");
|
6
6
|
function generateFilesFromTemplates(tree, options) {
|
@@ -21,4 +21,3 @@ function generateFilesFromTemplates(tree, options) {
|
|
21
21
|
tree.delete((0, devkit_1.joinPathFragments)(options.parentDirectory, options.directory, `${options.subdirectory ? `${options.subdirectory}/` : ''}${projectNames.fileName}.facade.spec.ts`));
|
22
22
|
}
|
23
23
|
}
|
24
|
-
exports.generateFilesFromTemplates = generateFilesFromTemplates;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.normalizeOptions =
|
3
|
+
exports.normalizeOptions = normalizeOptions;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const semver_1 = require("@nx/devkit/src/utils/semver");
|
6
6
|
const path_1 = require("path");
|
@@ -24,7 +24,6 @@ function normalizeOptions(tree, options) {
|
|
24
24
|
rxjsVersion,
|
25
25
|
};
|
26
26
|
}
|
27
|
-
exports.normalizeOptions = normalizeOptions;
|
28
27
|
function determineSubdirectoryAndName(name) {
|
29
28
|
if (name.includes('/')) {
|
30
29
|
const parts = name.split('/');
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.validateOptions =
|
3
|
+
exports.validateOptions = validateOptions;
|
4
4
|
function validateOptions(tree, options) {
|
5
5
|
if (!options.parent) {
|
6
6
|
throw new Error('Please provide a value for "--parent"!');
|
@@ -9,4 +9,3 @@ function validateOptions(tree, options) {
|
|
9
9
|
throw new Error(`Parent does not exist: ${options.parent}.`);
|
10
10
|
}
|
11
11
|
}
|
12
|
-
exports.validateOptions = validateOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ngrxFeatureStoreGenerator =
|
3
|
+
exports.ngrxFeatureStoreGenerator = ngrxFeatureStoreGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const lib_1 = require("./lib");
|
6
6
|
async function ngrxFeatureStoreGenerator(tree, schema) {
|
@@ -22,5 +22,4 @@ async function ngrxFeatureStoreGenerator(tree, schema) {
|
|
22
22
|
}
|
23
23
|
return packageInstallationTask;
|
24
24
|
}
|
25
|
-
exports.ngrxFeatureStoreGenerator = ngrxFeatureStoreGenerator;
|
26
25
|
exports.default = ngrxFeatureStoreGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addImportsToModule =
|
3
|
+
exports.addImportsToModule = addImportsToModule;
|
4
4
|
const ast_utils_1 = require("../../../utils/nx-devkit/ast-utils");
|
5
5
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
6
6
|
const js_1 = require("@nx/js");
|
@@ -98,4 +98,3 @@ function addImportsToModule(tree, options) {
|
|
98
98
|
sourceFile = addStoreDevTools(tree, sourceFile, parentPath, isParentStandalone, addImport);
|
99
99
|
}
|
100
100
|
}
|
101
|
-
exports.addImportsToModule = addImportsToModule;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addNgRxToPackageJson =
|
3
|
+
exports.addNgRxToPackageJson = addNgRxToPackageJson;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const semver_1 = require("semver");
|
6
6
|
const version_utils_1 = require("../../utils/version-utils");
|
@@ -24,4 +24,3 @@ function addNgRxToPackageJson(tree, options) {
|
|
24
24
|
'jasmine-marbles': jasmineMarblesVersion,
|
25
25
|
});
|
26
26
|
}
|
27
|
-
exports.addNgRxToPackageJson = addNgRxToPackageJson;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.normalizeOptions =
|
3
|
+
exports.normalizeOptions = normalizeOptions;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const semver_1 = require("@nx/devkit/src/utils/semver");
|
6
6
|
const versions_1 = require("../../../utils/versions");
|
@@ -37,4 +37,3 @@ function normalizeOptions(tree, options) {
|
|
37
37
|
rxjsVersion,
|
38
38
|
};
|
39
39
|
}
|
40
|
-
exports.normalizeOptions = normalizeOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.validateOptions =
|
3
|
+
exports.validateOptions = validateOptions;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function validateOptions(tree, options) {
|
6
6
|
if (!(0, devkit_1.getProjects)(tree).has(options.project)) {
|
@@ -14,4 +14,3 @@ function validateOptions(tree, options) {
|
|
14
14
|
throw new Error(`If generating a global feature state with your root store, you must provide a name for it with '--name'.`);
|
15
15
|
}
|
16
16
|
}
|
17
|
-
exports.validateOptions = validateOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ngrxRootStoreGenerator =
|
3
|
+
exports.ngrxRootStoreGenerator = ngrxRootStoreGenerator;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
6
6
|
const lib_1 = require("./lib");
|
@@ -33,5 +33,4 @@ async function ngrxRootStoreGenerator(tree, schema) {
|
|
33
33
|
}
|
34
34
|
return packageInstallationTask;
|
35
35
|
}
|
36
|
-
exports.ngrxRootStoreGenerator = ngrxRootStoreGenerator;
|
37
36
|
exports.default = ngrxRootStoreGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.normalizeOptions =
|
3
|
+
exports.normalizeOptions = normalizeOptions;
|
4
4
|
const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
6
6
|
async function normalizeOptions(tree, options) {
|
@@ -28,4 +28,3 @@ async function normalizeOptions(tree, options) {
|
|
28
28
|
standalone: options.standalone ?? true,
|
29
29
|
};
|
30
30
|
}
|
31
|
-
exports.normalizeOptions = normalizeOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.pipeGenerator =
|
3
|
+
exports.pipeGenerator = pipeGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const utils_1 = require("../utils");
|
6
6
|
const lib_1 = require("./lib");
|
@@ -26,5 +26,4 @@ async function pipeGenerator(tree, rawOptions) {
|
|
26
26
|
await (0, devkit_1.formatFiles)(tree);
|
27
27
|
}
|
28
28
|
}
|
29
|
-
exports.pipeGenerator = pipeGenerator;
|
30
29
|
exports.default = pipeGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.findNextAvailablePort =
|
3
|
+
exports.findNextAvailablePort = findNextAvailablePort;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const get_mf_projects_1 = require("../../../utils/get-mf-projects");
|
6
6
|
function findNextAvailablePort(tree) {
|
@@ -14,4 +14,3 @@ function findNextAvailablePort(tree) {
|
|
14
14
|
const nextAvailablePort = Math.max(...ports) + 1;
|
15
15
|
return nextAvailablePort;
|
16
16
|
}
|
17
|
-
exports.findNextAvailablePort = findNextAvailablePort;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateSsrSetup =
|
3
|
+
exports.updateSsrSetup = updateSsrSetup;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const path_1 = require("path");
|
6
6
|
const versions_1 = require("../../../utils/versions");
|
@@ -36,6 +36,12 @@ async function updateSsrSetup(tree, { appName, port, standalone, typescriptConfi
|
|
36
36
|
project.targets.server.options.customWebpackConfig = {
|
37
37
|
path: (0, devkit_1.joinPathFragments)(project.root, `webpack.server.config.${typescriptConfiguration ? 'ts' : 'js'}`),
|
38
38
|
};
|
39
|
+
if (project.targets.server.configurations &&
|
40
|
+
project.targets.server.configurations.development) {
|
41
|
+
if ('vendorChunk' in project.targets.server.configurations.development) {
|
42
|
+
delete project.targets.server.configurations.development.vendorChunk;
|
43
|
+
}
|
44
|
+
}
|
39
45
|
project.targets['serve-ssr'].options = {
|
40
46
|
...(project.targets['serve-ssr'].options ?? {}),
|
41
47
|
port,
|
@@ -58,4 +64,3 @@ async function updateSsrSetup(tree, { appName, port, standalone, typescriptConfi
|
|
58
64
|
}
|
59
65
|
return () => { };
|
60
66
|
}
|
61
|
-
exports.updateSsrSetup = updateSsrSetup;
|