@nx/angular 19.5.0-canary.20240710-2b7b523 → 19.5.0-canary.20240712-0b0db78
Sign up to get free protection for your applications and to get access to all the features.
- package/migrations.json +70 -0
- package/package.json +9 -9
- 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 +1 -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 +1 -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 +1 -2
- 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/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.js +1 -2
- package/src/utils/mf/with-module-federation.js +1 -2
- 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 +4 -4
- package/src/utils/versions.js +4 -4
- package/tailwind.js +1 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setRouterInitialNavigation =
|
3
|
+
exports.setRouterInitialNavigation = setRouterInitialNavigation;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const js_1 = require("@nx/js");
|
6
6
|
const tsquery_1 = require("@phenomnomnominal/tsquery");
|
@@ -21,7 +21,6 @@ function setRouterInitialNavigation(tree, options) {
|
|
21
21
|
}
|
22
22
|
});
|
23
23
|
}
|
24
|
-
exports.setRouterInitialNavigation = setRouterInitialNavigation;
|
25
24
|
function processFileWithStandaloneSetup(tree, filePath, printer) {
|
26
25
|
let content = tree.read(filePath, 'utf-8');
|
27
26
|
let sourceFile = tsquery_1.tsquery.ast(content);
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.updateProjectConfigForApplicationBuilder = updateProjectConfigForApplicationBuilder;
|
4
|
+
exports.updateProjectConfigForBrowserBuilder = updateProjectConfigForBrowserBuilder;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const version_utils_1 = require("../../utils/version-utils");
|
6
7
|
const constants_1 = require("./constants");
|
@@ -31,7 +32,6 @@ function updateProjectConfigForApplicationBuilder(tree, options) {
|
|
31
32
|
};
|
32
33
|
(0, devkit_1.updateProjectConfiguration)(tree, options.project, project);
|
33
34
|
}
|
34
|
-
exports.updateProjectConfigForApplicationBuilder = updateProjectConfigForApplicationBuilder;
|
35
35
|
function updateProjectConfigForBrowserBuilder(tree, schema) {
|
36
36
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, schema.project);
|
37
37
|
const buildTarget = projectConfig.targets.build;
|
@@ -105,7 +105,6 @@ function updateProjectConfigForBrowserBuilder(tree, schema) {
|
|
105
105
|
nxJson.targetDefaults.server.cache ??= true;
|
106
106
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
107
107
|
}
|
108
|
-
exports.updateProjectConfigForBrowserBuilder = updateProjectConfigForBrowserBuilder;
|
109
108
|
function getServerOptions(options = {}) {
|
110
109
|
return {
|
111
110
|
buildOptimizer: options?.buildOptimizer,
|
@@ -1,13 +1,12 @@
|
|
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
|
const validations_1 = require("../../utils/validations");
|
6
6
|
function validateOptions(tree, options) {
|
7
7
|
validateProject(tree, options.project);
|
8
8
|
validateBuildTarget(tree, options.project);
|
9
9
|
}
|
10
|
-
exports.validateOptions = validateOptions;
|
11
10
|
function validateProject(tree, project) {
|
12
11
|
(0, validations_1.validateProject)(tree, project);
|
13
12
|
const { projectType } = (0, devkit_1.readProjectConfiguration)(tree, project);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setupSsr =
|
3
|
+
exports.setupSsr = setupSsr;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const version_utils_1 = require("../utils/version-utils");
|
6
6
|
const lib_1 = require("./lib");
|
@@ -37,5 +37,4 @@ async function setupSsr(tree, schema) {
|
|
37
37
|
(0, devkit_1.installPackagesTask)(tree);
|
38
38
|
};
|
39
39
|
}
|
40
|
-
exports.setupSsr = setupSsr;
|
41
40
|
exports.default = setupSsr;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addTailwindConfigPathToProject =
|
3
|
+
exports.addTailwindConfigPathToProject = addTailwindConfigPathToProject;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function addTailwindConfigPathToProject(tree, options, project) {
|
6
6
|
const buildTarget = project.targets?.[options.buildTarget];
|
@@ -32,4 +32,3 @@ function addTailwindConfigPathToProject(tree, options, project) {
|
|
32
32
|
};
|
33
33
|
(0, devkit_1.updateProjectConfiguration)(tree, options.project, project);
|
34
34
|
}
|
35
|
-
exports.addTailwindConfigPathToProject = addTailwindConfigPathToProject;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addTailwindConfig =
|
3
|
+
exports.addTailwindConfig = addTailwindConfig;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const path_1 = require("path");
|
6
6
|
function addTailwindConfig(tree, options, project, tailwindVersion) {
|
@@ -14,4 +14,3 @@ function addTailwindConfig(tree, options, project, tailwindVersion) {
|
|
14
14
|
tmpl: '',
|
15
15
|
});
|
16
16
|
}
|
17
|
-
exports.addTailwindConfig = addTailwindConfig;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addTailwindRequiredPackages =
|
3
|
+
exports.addTailwindRequiredPackages = addTailwindRequiredPackages;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const version_utils_1 = require("../../utils/version-utils");
|
6
6
|
function addTailwindRequiredPackages(tree) {
|
@@ -11,4 +11,3 @@ function addTailwindRequiredPackages(tree) {
|
|
11
11
|
tailwindcss: pkgVersions.tailwindVersion,
|
12
12
|
});
|
13
13
|
}
|
14
|
-
exports.addTailwindRequiredPackages = addTailwindRequiredPackages;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.detectTailwindInstalledVersion =
|
3
|
+
exports.detectTailwindInstalledVersion = detectTailwindInstalledVersion;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const semver_1 = require("@nx/devkit/src/utils/semver");
|
6
6
|
const semver_2 = require("semver");
|
@@ -16,4 +16,3 @@ function detectTailwindInstalledVersion(tree) {
|
|
16
16
|
}
|
17
17
|
return (0, semver_2.lt)(version, '3.0.0') ? '2' : '3';
|
18
18
|
}
|
19
|
-
exports.detectTailwindInstalledVersion = detectTailwindInstalledVersion;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.normalizeOptions =
|
3
|
+
exports.normalizeOptions = normalizeOptions;
|
4
4
|
function normalizeOptions(options) {
|
5
5
|
return {
|
6
6
|
...options,
|
7
7
|
buildTarget: options.buildTarget || 'build',
|
8
8
|
};
|
9
9
|
}
|
10
|
-
exports.normalizeOptions = normalizeOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateApplicationStyles =
|
3
|
+
exports.updateApplicationStyles = updateApplicationStyles;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function updateApplicationStyles(tree, options, project) {
|
6
6
|
let stylesEntryPoint = options.stylesEntryPoint;
|
@@ -21,7 +21,6 @@ function updateApplicationStyles(tree, options, project) {
|
|
21
21
|
|
22
22
|
${stylesEntryPointContent}`);
|
23
23
|
}
|
24
|
-
exports.updateApplicationStyles = updateApplicationStyles;
|
25
24
|
function findStylesEntryPoint(tree, options, project) {
|
26
25
|
// first check for common names
|
27
26
|
const possibleStylesEntryPoints = [
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setupTailwindGenerator =
|
3
|
+
exports.setupTailwindGenerator = setupTailwindGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const lib_1 = require("./lib");
|
6
6
|
async function setupTailwindGenerator(tree, rawOptions) {
|
@@ -25,5 +25,4 @@ async function setupTailwindGenerator(tree, rawOptions) {
|
|
25
25
|
}
|
26
26
|
return installTask;
|
27
27
|
}
|
28
|
-
exports.setupTailwindGenerator = setupTailwindGenerator;
|
29
28
|
exports.default = setupTailwindGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getE2EProject =
|
3
|
+
exports.getE2EProject = getE2EProject;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function getE2EProject(tree, e2eProjectName) {
|
6
6
|
let e2eProject;
|
@@ -12,4 +12,3 @@ function getE2EProject(tree, e2eProjectName) {
|
|
12
12
|
}
|
13
13
|
return e2eProject;
|
14
14
|
}
|
15
|
-
exports.getE2EProject = getE2EProject;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.angularStoriesGenerator =
|
3
|
+
exports.angularStoriesGenerator = angularStoriesGenerator;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
6
6
|
const component_cypress_spec_1 = tslib_1.__importDefault(require("../component-cypress-spec/component-cypress-spec"));
|
@@ -64,5 +64,4 @@ async function angularStoriesGenerator(tree, options) {
|
|
64
64
|
}
|
65
65
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
66
66
|
}
|
67
|
-
exports.angularStoriesGenerator = angularStoriesGenerator;
|
68
67
|
exports.default = angularStoriesGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.assertCompatibleStorybookVersion =
|
3
|
+
exports.assertCompatibleStorybookVersion = assertCompatibleStorybookVersion;
|
4
4
|
const semver_1 = require("semver");
|
5
5
|
function assertCompatibleStorybookVersion() {
|
6
6
|
let storybookVersion;
|
@@ -12,4 +12,3 @@ function assertCompatibleStorybookVersion() {
|
|
12
12
|
throw new Error('Incompatible Storybook Version: Please use a version of @storybook/angular higher than 6.4.0-rc.1');
|
13
13
|
}
|
14
14
|
}
|
15
|
-
exports.assertCompatibleStorybookVersion = assertCompatibleStorybookVersion;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.generateStories =
|
3
|
+
exports.generateStories = generateStories;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const versions_1 = require("../../../utils/versions");
|
6
6
|
const stories_1 = require("../../stories/stories");
|
@@ -18,4 +18,3 @@ async function generateStories(tree, options) {
|
|
18
18
|
skipFormat: true,
|
19
19
|
});
|
20
20
|
}
|
21
|
-
exports.generateStories = generateStories;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.generateStorybookConfiguration =
|
3
|
+
exports.generateStorybookConfiguration = generateStorybookConfiguration;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const versions_1 = require("../../../utils/versions");
|
6
6
|
async function generateStorybookConfiguration(tree, options) {
|
@@ -19,4 +19,3 @@ async function generateStorybookConfiguration(tree, options) {
|
|
19
19
|
addExplicitTargets: true,
|
20
20
|
});
|
21
21
|
}
|
22
|
-
exports.generateStorybookConfiguration = generateStorybookConfiguration;
|
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.validateOptions =
|
3
|
+
exports.validateOptions = validateOptions;
|
4
4
|
function validateOptions(options) {
|
5
5
|
if (options.generateCypressSpecs && !options.generateStories) {
|
6
6
|
throw new Error('Cannot set generateCypressSpecs to true when generateStories is set to false.');
|
7
7
|
}
|
8
8
|
}
|
9
|
-
exports.validateOptions = validateOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.storybookConfigurationGenerator =
|
3
|
+
exports.storybookConfigurationGenerator = storybookConfigurationGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const update_app_editor_tsconfig_excluded_files_1 = require("../utils/update-app-editor-tsconfig-excluded-files");
|
6
6
|
const assert_compatible_storybook_version_1 = require("./lib/assert-compatible-storybook-version");
|
@@ -32,5 +32,4 @@ async function storybookConfigurationGenerator(tree, options) {
|
|
32
32
|
}
|
33
33
|
return storybookGeneratorInstallTask;
|
34
34
|
}
|
35
|
-
exports.storybookConfigurationGenerator = storybookConfigurationGenerator;
|
36
35
|
exports.default = storybookConfigurationGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addJest =
|
3
|
+
exports.addJest = addJest;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const versions_1 = require("../../utils/versions");
|
6
6
|
async function addJest(tree, options) {
|
@@ -32,4 +32,3 @@ testEnvironmentOptions: {
|
|
32
32
|
${contents}`);
|
33
33
|
}
|
34
34
|
}
|
35
|
-
exports.addJest = addJest;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addMfEnvToTargetDefaultInputs =
|
3
|
+
exports.addMfEnvToTargetDefaultInputs = addMfEnvToTargetDefaultInputs;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function addMfEnvToTargetDefaultInputs(tree) {
|
6
6
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
@@ -24,4 +24,3 @@ function addMfEnvToTargetDefaultInputs(tree) {
|
|
24
24
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
25
25
|
}
|
26
26
|
}
|
27
|
-
exports.addMfEnvToTargetDefaultInputs = addMfEnvToTargetDefaultInputs;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addBuildableLibrariesPostCssDependencies =
|
3
|
+
exports.addBuildableLibrariesPostCssDependencies = addBuildableLibrariesPostCssDependencies;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const version_utils_1 = require("./version-utils");
|
6
6
|
function addBuildableLibrariesPostCssDependencies(tree) {
|
@@ -11,4 +11,3 @@ function addBuildableLibrariesPostCssDependencies(tree) {
|
|
11
11
|
'postcss-url': pkgVersions.postcssUrlVersion,
|
12
12
|
});
|
13
13
|
}
|
14
|
-
exports.addBuildableLibrariesPostCssDependencies = addBuildableLibrariesPostCssDependencies;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ensureAngularDependencies =
|
3
|
+
exports.ensureAngularDependencies = ensureAngularDependencies;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const version_utils_1 = require("./version-utils");
|
6
6
|
function ensureAngularDependencies(tree) {
|
@@ -49,4 +49,3 @@ function ensureAngularDependencies(tree) {
|
|
49
49
|
devDependencies['@schematics/angular'] = angularDevkitVersion;
|
50
50
|
return (0, devkit_1.addDependenciesToPackageJson)(tree, dependencies, devDependencies, undefined, true);
|
51
51
|
}
|
52
|
-
exports.ensureAngularDependencies = ensureAngularDependencies;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.locateLibraryEntryPointFromDirectory =
|
3
|
+
exports.locateLibraryEntryPointFromDirectory = locateLibraryEntryPointFromDirectory;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const path_1 = require("path");
|
6
6
|
function locateLibraryEntryPointFromDirectory(tree, directory, projectRoot, projectSourceRoot) {
|
@@ -17,4 +17,3 @@ function locateLibraryEntryPointFromDirectory(tree, directory, projectRoot, proj
|
|
17
17
|
}
|
18
18
|
return locateLibraryEntryPointFromDirectory(tree, (0, path_1.dirname)(directory), projectRoot, projectSourceRoot);
|
19
19
|
}
|
20
|
-
exports.locateLibraryEntryPointFromDirectory = locateLibraryEntryPointFromDirectory;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.exportScam =
|
3
|
+
exports.exportScam = exportScam;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const entry_point_1 = require("./entry-point");
|
6
6
|
const path_1 = require("./path");
|
@@ -34,4 +34,3 @@ function exportScam(tree, options) {
|
|
34
34
|
}
|
35
35
|
tree.write(entryPointPath, updatedEntryPointContent);
|
36
36
|
}
|
37
|
-
exports.exportScam = exportScam;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.findModule = findModule;
|
4
|
+
exports.addToNgModule = addToNgModule;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const path_1 = require("path");
|
6
7
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
@@ -41,7 +42,6 @@ function findModule(tree, path, module) {
|
|
41
42
|
}
|
42
43
|
return modulePath;
|
43
44
|
}
|
44
|
-
exports.findModule = findModule;
|
45
45
|
function addToNgModule(tree, path, modulePath, name, className, fileName, ngModuleProperty,
|
46
46
|
// TODO(leo): remove once all consumers are updated
|
47
47
|
// // check if exported in the public api
|
@@ -61,4 +61,3 @@ isFlat = true, isExported = false) {
|
|
61
61
|
(0, insert_ngmodule_import_1.insertNgModuleProperty)(tree, modulePath, className, 'exports');
|
62
62
|
}
|
63
63
|
}
|
64
|
-
exports.addToNgModule = addToNgModule;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.insertNgModuleProperty = insertNgModuleProperty;
|
4
|
+
exports.insertNgModuleImport = insertNgModuleImport;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
6
7
|
let tsModule;
|
@@ -81,11 +82,9 @@ function insertNgModuleProperty(tree, modulePath, name, property) {
|
|
81
82
|
}
|
82
83
|
}
|
83
84
|
}
|
84
|
-
exports.insertNgModuleProperty = insertNgModuleProperty;
|
85
85
|
function insertNgModuleImport(tree, modulePath, importName) {
|
86
86
|
insertNgModuleProperty(tree, modulePath, importName, 'imports');
|
87
87
|
}
|
88
|
-
exports.insertNgModuleImport = insertNgModuleImport;
|
89
88
|
function findImport(sourceFile, importPath) {
|
90
89
|
if (!tsModule) {
|
91
90
|
tsModule = (0, ensure_typescript_1.ensureTypescript)();
|
@@ -1,10 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getRelativeImportToFile =
|
3
|
+
exports.getRelativeImportToFile = getRelativeImportToFile;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const path_1 = require("path");
|
6
6
|
function getRelativeImportToFile(sourceFilePath, targetFilePath) {
|
7
7
|
const relativeDirToTarget = (0, path_1.relative)((0, path_1.dirname)(sourceFilePath), (0, path_1.dirname)(targetFilePath));
|
8
8
|
return `./${(0, devkit_1.joinPathFragments)(relativeDirToTarget, (0, path_1.basename)(targetFilePath, '.ts'))}`;
|
9
9
|
}
|
10
|
-
exports.getRelativeImportToFile = getRelativeImportToFile;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getProjectPrefix =
|
3
|
+
exports.getProjectPrefix = getProjectPrefix;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function getProjectPrefix(tree, project) {
|
6
6
|
return (0, devkit_1.readProjectConfiguration)(tree, project).prefix;
|
7
7
|
}
|
8
|
-
exports.getProjectPrefix = getProjectPrefix;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.buildSelector = buildSelector;
|
4
|
+
exports.validateHtmlSelector = validateHtmlSelector;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
function buildSelector(name, prefix, projectPrefix, casing) {
|
6
7
|
let selector = name;
|
@@ -10,7 +11,6 @@ function buildSelector(name, prefix, projectPrefix, casing) {
|
|
10
11
|
}
|
11
12
|
return (0, devkit_1.names)(selector)[casing];
|
12
13
|
}
|
13
|
-
exports.buildSelector = buildSelector;
|
14
14
|
// https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/validation.ts#L11-L14
|
15
15
|
const htmlSelectorRegex = /^[a-zA-Z][.0-9a-zA-Z]*((:?-[0-9]+)*|(:?-[a-zA-Z][.0-9a-zA-Z]*(:?-[0-9]+)*)*)$/;
|
16
16
|
function validateHtmlSelector(selector) {
|
@@ -18,4 +18,3 @@ function validateHtmlSelector(selector) {
|
|
18
18
|
throw new Error(`The selector "${selector}" is invalid.`);
|
19
19
|
}
|
20
20
|
}
|
21
|
-
exports.validateHtmlSelector = validateHtmlSelector;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getComponentsInfo = getComponentsInfo;
|
4
|
+
exports.getStandaloneComponentsInfo = getStandaloneComponentsInfo;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
6
7
|
const path_1 = require("path");
|
@@ -26,7 +27,6 @@ function getComponentsInfo(tree, entryPoint, moduleFilePaths, projectName) {
|
|
26
27
|
})
|
27
28
|
.filter((f) => f !== undefined);
|
28
29
|
}
|
29
|
-
exports.getComponentsInfo = getComponentsInfo;
|
30
30
|
function getStandaloneComponentsInfo(tree, entryPoint) {
|
31
31
|
const componentsInfo = [];
|
32
32
|
(0, devkit_1.visitNotIgnoredFiles)(tree, entryPoint.path, (filePath) => {
|
@@ -54,7 +54,6 @@ function getStandaloneComponentsInfo(tree, entryPoint) {
|
|
54
54
|
});
|
55
55
|
return componentsInfo;
|
56
56
|
}
|
57
|
-
exports.getStandaloneComponentsInfo = getStandaloneComponentsInfo;
|
58
57
|
function getStandaloneComponents(tree, filePath) {
|
59
58
|
if (!tsquery) {
|
60
59
|
(0, ensure_typescript_1.ensureTypescript)();
|
@@ -62,7 +61,7 @@ function getStandaloneComponents(tree, filePath) {
|
|
62
61
|
}
|
63
62
|
const fileContent = tree.read(filePath, 'utf-8');
|
64
63
|
const ast = tsquery.ast(fileContent);
|
65
|
-
const components = tsquery(ast, 'ClassDeclaration:has(Decorator > CallExpression:has(Identifier[name=Component]) ObjectLiteralExpression PropertyAssignment
|
64
|
+
const components = tsquery(ast, 'ClassDeclaration:has(Decorator > CallExpression:has(Identifier[name=Component]) ObjectLiteralExpression PropertyAssignment:has(Identifier[name=standalone]) > TrueKeyword) > Identifier', { visitAllChildren: true });
|
66
65
|
return components.map((component) => component.getText());
|
67
66
|
}
|
68
67
|
function getComponentImportPath(componentName, imports) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getProjectEntryPoints =
|
3
|
+
exports.getProjectEntryPoints = getProjectEntryPoints;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const path_1 = require("path");
|
6
6
|
function getProjectEntryPoints(tree, projectName) {
|
@@ -23,7 +23,6 @@ function getProjectEntryPoints(tree, projectName) {
|
|
23
23
|
}
|
24
24
|
return entryPointRootPaths;
|
25
25
|
}
|
26
|
-
exports.getProjectEntryPoints = getProjectEntryPoints;
|
27
26
|
function collectLibrarySecondaryEntryPoints(tree, root, entryPointPaths) {
|
28
27
|
const exclude = new Set([`${root}/ng-package.json`, `${root}/package.json`]);
|
29
28
|
(0, devkit_1.visitNotIgnoredFiles)(tree, root, (path) => {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getModuleDeclaredComponents = getModuleDeclaredComponents;
|
4
|
+
exports.getModuleFilePaths = getModuleFilePaths;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const js_1 = require("@nx/js");
|
6
7
|
const path_1 = require("path");
|
@@ -19,7 +20,6 @@ function getModuleDeclaredComponents(file, moduleFilePath, projectName) {
|
|
19
20
|
}
|
20
21
|
return getDeclaredComponentsInDeclarations(declarationsArray);
|
21
22
|
}
|
22
|
-
exports.getModuleDeclaredComponents = getModuleDeclaredComponents;
|
23
23
|
function getModuleFilePaths(tree, entryPoint) {
|
24
24
|
let moduleFilePaths = [];
|
25
25
|
(0, devkit_1.visitNotIgnoredFiles)(tree, entryPoint.path, (filePath) => {
|
@@ -35,7 +35,6 @@ function getModuleFilePaths(tree, entryPoint) {
|
|
35
35
|
});
|
36
36
|
return moduleFilePaths;
|
37
37
|
}
|
38
|
-
exports.getModuleFilePaths = getModuleFilePaths;
|
39
38
|
function hasNgModule(tree, filePath) {
|
40
39
|
(0, ensure_typescript_1.ensureTypescript)();
|
41
40
|
const { tsquery } = require('@phenomnomnominal/tsquery');
|
@@ -1,6 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getInputPropertyDeclarations = getInputPropertyDeclarations;
|
4
|
+
exports.getComponentProps = getComponentProps;
|
5
|
+
exports.getArgType = getArgType;
|
6
|
+
exports.getArgsDefaultValue = getArgsDefaultValue;
|
4
7
|
const js_1 = require("@nx/js");
|
5
8
|
const ast_utils_1 = require("../../../utils/nx-devkit/ast-utils");
|
6
9
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
@@ -15,7 +18,6 @@ function getInputPropertyDeclarations(tree, path) {
|
|
15
18
|
.filter((decorator) => (0, js_1.findNodes)(decorator, tsModule.SyntaxKind.Identifier).some((node) => node.getText() === 'Input'))
|
16
19
|
.map((node) => node.parent);
|
17
20
|
}
|
18
|
-
exports.getInputPropertyDeclarations = getInputPropertyDeclarations;
|
19
21
|
function getComponentProps(tree, componentPath, getArgsDefaultValueFn = getArgsDefaultValue, useDecoratorName = true) {
|
20
22
|
if (!tsModule) {
|
21
23
|
tsModule = (0, ensure_typescript_1.ensureTypescript)();
|
@@ -37,7 +39,6 @@ function getComponentProps(tree, componentPath, getArgsDefaultValueFn = getArgsD
|
|
37
39
|
});
|
38
40
|
return props;
|
39
41
|
}
|
40
|
-
exports.getComponentProps = getComponentProps;
|
41
42
|
function getArgType(property) {
|
42
43
|
if (!tsModule) {
|
43
44
|
tsModule = (0, ensure_typescript_1.ensureTypescript)();
|
@@ -62,7 +63,6 @@ function getArgType(property) {
|
|
62
63
|
}
|
63
64
|
return 'text';
|
64
65
|
}
|
65
|
-
exports.getArgType = getArgType;
|
66
66
|
function getArgsDefaultValue(property) {
|
67
67
|
const typeNameToDefault = {
|
68
68
|
string: "''",
|
@@ -75,4 +75,3 @@ function getArgsDefaultValue(property) {
|
|
75
75
|
? typeNameToDefault[property.type.getText()]
|
76
76
|
: "''";
|
77
77
|
}
|
78
|
-
exports.getArgsDefaultValue = getArgsDefaultValue;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getAllFilesRecursivelyFromDir =
|
3
|
+
exports.getAllFilesRecursivelyFromDir = getAllFilesRecursivelyFromDir;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
6
6
|
const ignore_1 = tslib_1.__importDefault(require("ignore"));
|
@@ -21,7 +21,6 @@ function getAllFilesRecursivelyFromDir(tree, dir) {
|
|
21
21
|
});
|
22
22
|
return files;
|
23
23
|
}
|
24
|
-
exports.getAllFilesRecursivelyFromDir = getAllFilesRecursivelyFromDir;
|
25
24
|
function isPathIgnored(tree, path) {
|
26
25
|
let ig;
|
27
26
|
if (tree.exists('.gitignore')) {
|
@@ -1,6 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.generateTestApplication = generateTestApplication;
|
4
|
+
exports.generateTestHostApplication = generateTestHostApplication;
|
5
|
+
exports.generateTestRemoteApplication = generateTestRemoteApplication;
|
6
|
+
exports.generateTestLibrary = generateTestLibrary;
|
7
|
+
exports.createStorybookTestWorkspaceForLib = createStorybookTestWorkspaceForLib;
|
4
8
|
const devkit_1 = require("@nx/devkit");
|
5
9
|
const testing_1 = require("@nx/devkit/testing");
|
6
10
|
const eslint_1 = require("@nx/eslint");
|
@@ -17,17 +21,14 @@ async function generateTestApplication(tree, options) {
|
|
17
21
|
...options,
|
18
22
|
});
|
19
23
|
}
|
20
|
-
exports.generateTestApplication = generateTestApplication;
|
21
24
|
async function generateTestHostApplication(tree, options) {
|
22
25
|
tree.write('.gitignore', '');
|
23
26
|
await (0, host_1.host)(tree, { projectNameAndRootFormat: 'as-provided', ...options });
|
24
27
|
}
|
25
|
-
exports.generateTestHostApplication = generateTestHostApplication;
|
26
28
|
async function generateTestRemoteApplication(tree, options) {
|
27
29
|
tree.write('.gitignore', '');
|
28
30
|
await (0, remote_1.remote)(tree, { projectNameAndRootFormat: 'as-provided', ...options });
|
29
31
|
}
|
30
|
-
exports.generateTestRemoteApplication = generateTestRemoteApplication;
|
31
32
|
async function generateTestLibrary(tree, options) {
|
32
33
|
tree.write('.gitignore', '');
|
33
34
|
await (0, library_1.libraryGenerator)(tree, {
|
@@ -35,7 +36,6 @@ async function generateTestLibrary(tree, options) {
|
|
35
36
|
...options,
|
36
37
|
});
|
37
38
|
}
|
38
|
-
exports.generateTestLibrary = generateTestLibrary;
|
39
39
|
async function createStorybookTestWorkspaceForLib(libName) {
|
40
40
|
let tree = (0, testing_1.createTreeWithEmptyWorkspace)({ layout: 'apps-libs' });
|
41
41
|
tree.write('.gitignore', '');
|
@@ -236,7 +236,6 @@ export class StaticMemberDeclarationsModule {
|
|
236
236
|
});
|
237
237
|
return tree;
|
238
238
|
}
|
239
|
-
exports.createStorybookTestWorkspaceForLib = createStorybookTestWorkspaceForLib;
|
240
239
|
function generateModule(tree, options) {
|
241
240
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
242
241
|
if (options.path === undefined) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateAppEditorTsConfigExcludedFiles =
|
3
|
+
exports.updateAppEditorTsConfigExcludedFiles = updateAppEditorTsConfigExcludedFiles;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function updateAppEditorTsConfigExcludedFiles(tree, projectConfig) {
|
6
6
|
if (projectConfig.projectType !== 'application') {
|
@@ -20,4 +20,3 @@ function updateAppEditorTsConfigExcludedFiles(tree, projectConfig) {
|
|
20
20
|
return json;
|
21
21
|
});
|
22
22
|
}
|
23
|
-
exports.updateAppEditorTsConfigExcludedFiles = updateAppEditorTsConfigExcludedFiles;
|