@nx/angular 19.5.0-canary.20240711-2c4c2ae → 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,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.loadPlugins = loadPlugins;
|
4
|
+
exports.loadMiddleware = loadMiddleware;
|
5
|
+
exports.loadIndexHtmlTransformer = loadIndexHtmlTransformer;
|
4
6
|
const internal_1 = require("@nx/js/src/internal");
|
5
7
|
const module_loader_1 = require("./module-loader");
|
6
8
|
async function loadPlugins(plugins, tsConfig) {
|
@@ -15,7 +17,6 @@ async function loadPlugins(plugins, tsConfig) {
|
|
15
17
|
cleanupTranspiler();
|
16
18
|
}
|
17
19
|
}
|
18
|
-
exports.loadPlugins = loadPlugins;
|
19
20
|
async function loadPlugin(pluginSpec) {
|
20
21
|
const pluginPath = typeof pluginSpec === 'string' ? pluginSpec : pluginSpec.path;
|
21
22
|
let plugin = await (0, module_loader_1.loadModule)(pluginPath);
|
@@ -37,7 +38,6 @@ async function loadMiddleware(middlewareFns, tsConfig) {
|
|
37
38
|
cleanupTranspiler();
|
38
39
|
}
|
39
40
|
}
|
40
|
-
exports.loadMiddleware = loadMiddleware;
|
41
41
|
async function loadIndexHtmlTransformer(indexHtmlTransformerPath, tsConfig) {
|
42
42
|
const cleanupTranspiler = (0, internal_1.registerTsProject)(tsConfig);
|
43
43
|
try {
|
@@ -47,4 +47,3 @@ async function loadIndexHtmlTransformer(indexHtmlTransformerPath, tsConfig) {
|
|
47
47
|
cleanupTranspiler();
|
48
48
|
}
|
49
49
|
}
|
50
|
-
exports.loadIndexHtmlTransformer = loadIndexHtmlTransformer;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.loadModule = loadModule;
|
4
|
+
exports.loadEsmModule = loadEsmModule;
|
4
5
|
const path_1 = require("path");
|
5
6
|
const node_url_1 = require("node:url");
|
6
7
|
async function loadModule(path) {
|
@@ -28,7 +29,6 @@ async function loadModule(path) {
|
|
28
29
|
}
|
29
30
|
}
|
30
31
|
}
|
31
|
-
exports.loadModule = loadModule;
|
32
32
|
/**
|
33
33
|
* Lazily compiled dynamic import loader function.
|
34
34
|
*/
|
@@ -49,4 +49,3 @@ function loadEsmModule(modulePath) {
|
|
49
49
|
load ??= new Function('modulePath', `return import(modulePath);`);
|
50
50
|
return load(modulePath);
|
51
51
|
}
|
52
|
-
exports.loadEsmModule = loadEsmModule;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getTailwindSetup = getTailwindSetup;
|
4
|
+
exports.getTailwindConfigPath = getTailwindConfigPath;
|
5
|
+
exports.getTailwindPostCssPlugin = getTailwindPostCssPlugin;
|
4
6
|
const devkit_1 = require("@nx/devkit");
|
5
7
|
const devkit_2 = require("@nx/devkit");
|
6
8
|
const fs_1 = require("fs");
|
@@ -30,7 +32,6 @@ function getTailwindSetup(basePath, tailwindConfig) {
|
|
30
32
|
}
|
31
33
|
return { tailwindConfigPath, tailwindPackagePath };
|
32
34
|
}
|
33
|
-
exports.getTailwindSetup = getTailwindSetup;
|
34
35
|
function getTailwindConfigPath(projectRoot, workspaceRoot) {
|
35
36
|
// valid tailwind config files https://github.com/tailwindlabs/tailwindcss/blob/master/src/util/resolveConfigPath.js#L4
|
36
37
|
const tailwindConfigFiles = [
|
@@ -49,8 +50,6 @@ function getTailwindConfigPath(projectRoot, workspaceRoot) {
|
|
49
50
|
}
|
50
51
|
return undefined;
|
51
52
|
}
|
52
|
-
exports.getTailwindConfigPath = getTailwindConfigPath;
|
53
53
|
function getTailwindPostCssPlugin({ tailwindConfigPath, tailwindPackagePath, }) {
|
54
54
|
return require(tailwindPackagePath)({ config: tailwindConfigPath });
|
55
55
|
}
|
56
|
-
exports.getTailwindPostCssPlugin = getTailwindPostCssPlugin;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.patchBuilderContext =
|
3
|
+
exports.patchBuilderContext = patchBuilderContext;
|
4
4
|
const executorToBuilderMap = new Map([
|
5
5
|
[
|
6
6
|
'@nx/angular:browser-esbuild',
|
@@ -30,7 +30,6 @@ function patchBuilderContext(context, isUsingEsbuildBuilder, buildTarget) {
|
|
30
30
|
};
|
31
31
|
}
|
32
32
|
}
|
33
|
-
exports.patchBuilderContext = patchBuilderContext;
|
34
33
|
function cleanBuildTargetOptions(options) {
|
35
34
|
delete options.buildLibsFromSource;
|
36
35
|
delete options.customWebpackConfig;
|
@@ -8,7 +8,7 @@
|
|
8
8
|
* to be the original tsconfig file.
|
9
9
|
*/
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
11
|
-
exports.parseRemappedTsConfigAndMergeDefaults =
|
11
|
+
exports.parseRemappedTsConfigAndMergeDefaults = parseRemappedTsConfigAndMergeDefaults;
|
12
12
|
const tslib_1 = require("tslib");
|
13
13
|
const path_1 = require("path");
|
14
14
|
const ts = tslib_1.__importStar(require("typescript"));
|
@@ -40,4 +40,3 @@ async function parseRemappedTsConfigAndMergeDefaults(workspaceRoot, originalFile
|
|
40
40
|
parsedConfiguration.options.configFilePath = (0, path_1.resolve)(workspaceRoot, originalFilePath);
|
41
41
|
return parsedConfiguration;
|
42
42
|
}
|
43
|
-
exports.parseRemappedTsConfigAndMergeDefaults = parseRemappedTsConfigAndMergeDefaults;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addLintingGenerator =
|
3
|
+
exports.addLintingGenerator = addLintingGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const string_utils_1 = require("@nx/devkit/src/utils/string-utils");
|
6
6
|
const eslint_1 = require("@nx/eslint");
|
@@ -97,5 +97,4 @@ async function addLintingGenerator(tree, options) {
|
|
97
97
|
}
|
98
98
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
99
99
|
}
|
100
|
-
exports.addLintingGenerator = addLintingGenerator;
|
101
100
|
exports.default = addLintingGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addAngularEsLintDependencies =
|
3
|
+
exports.addAngularEsLintDependencies = addAngularEsLintDependencies;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const version_utils_1 = require("../../utils/version-utils");
|
6
6
|
const buildable_project_1 = require("./buildable-project");
|
@@ -22,4 +22,3 @@ function addAngularEsLintDependencies(tree, projectName) {
|
|
22
22
|
}
|
23
23
|
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies);
|
24
24
|
}
|
25
|
-
exports.addAngularEsLintDependencies = addAngularEsLintDependencies;
|
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isBuildableLibraryProject =
|
3
|
+
exports.isBuildableLibraryProject = isBuildableLibraryProject;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function isBuildableLibraryProject(tree, projectName) {
|
6
6
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, projectName);
|
7
7
|
return (projectConfig.projectType === 'library' && !!projectConfig.targets?.build);
|
8
8
|
}
|
9
|
-
exports.isBuildableLibraryProject = isBuildableLibraryProject;
|
@@ -23,24 +23,24 @@ export declare const extendAngularEslintJson: (json: Linter.Config, options: Esl
|
|
23
23
|
style: string;
|
24
24
|
})[];
|
25
25
|
};
|
26
|
-
excludedFiles?: string | string[];
|
27
|
-
$schema?: string;
|
26
|
+
excludedFiles?: string | string[] | undefined;
|
27
|
+
$schema?: string | undefined;
|
28
28
|
env?: {
|
29
29
|
[name: string]: boolean;
|
30
|
-
};
|
30
|
+
} | undefined;
|
31
31
|
globals?: {
|
32
32
|
[name: string]: boolean | "off" | "readonly" | "readable" | "writable" | "writeable";
|
33
|
-
};
|
34
|
-
noInlineConfig?: boolean;
|
33
|
+
} | undefined;
|
34
|
+
noInlineConfig?: boolean | undefined;
|
35
35
|
overrides?: Linter.ConfigOverride<Linter.RulesRecord>[];
|
36
|
-
parser?: string;
|
37
|
-
parserOptions?: Linter.ParserOptions;
|
38
|
-
plugins?: string[];
|
39
|
-
processor?: string;
|
40
|
-
reportUnusedDisableDirectives?: boolean;
|
36
|
+
parser?: string | undefined;
|
37
|
+
parserOptions?: Linter.ParserOptions | undefined;
|
38
|
+
plugins?: string[] | undefined;
|
39
|
+
processor?: string | undefined;
|
40
|
+
reportUnusedDisableDirectives?: boolean | undefined;
|
41
41
|
settings?: {
|
42
42
|
[name: string]: any;
|
43
|
-
};
|
43
|
+
} | undefined;
|
44
44
|
} | {
|
45
45
|
files: string[];
|
46
46
|
extends: string[];
|
@@ -53,25 +53,25 @@ export declare const extendAngularEslintJson: (json: Linter.Config, options: Esl
|
|
53
53
|
'@angular-eslint/component-selector'?: undefined;
|
54
54
|
};
|
55
55
|
})[];
|
56
|
-
ignorePatterns?: string | string[];
|
57
|
-
root?: boolean;
|
58
|
-
$schema?: string;
|
56
|
+
ignorePatterns?: string | string[] | undefined;
|
57
|
+
root?: boolean | undefined;
|
58
|
+
$schema?: string | undefined;
|
59
59
|
env?: {
|
60
60
|
[name: string]: boolean;
|
61
|
-
};
|
62
|
-
extends?: string | string[];
|
61
|
+
} | undefined;
|
62
|
+
extends?: string | string[] | undefined;
|
63
63
|
globals?: {
|
64
64
|
[name: string]: boolean | "off" | "readonly" | "readable" | "writable" | "writeable";
|
65
|
-
};
|
66
|
-
noInlineConfig?: boolean;
|
67
|
-
parser?: string;
|
68
|
-
parserOptions?: Linter.ParserOptions;
|
69
|
-
plugins?: string[];
|
70
|
-
processor?: string;
|
71
|
-
reportUnusedDisableDirectives?: boolean;
|
65
|
+
} | undefined;
|
66
|
+
noInlineConfig?: boolean | undefined;
|
67
|
+
parser?: string | undefined;
|
68
|
+
parserOptions?: Linter.ParserOptions | undefined;
|
69
|
+
plugins?: string[] | undefined;
|
70
|
+
processor?: string | undefined;
|
71
|
+
reportUnusedDisableDirectives?: boolean | undefined;
|
72
72
|
settings?: {
|
73
73
|
[name: string]: any;
|
74
|
-
};
|
74
|
+
} | undefined;
|
75
75
|
rules?: Partial<Linter.RulesRecord>;
|
76
76
|
};
|
77
77
|
/**
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.extendAngularEslintJson = void 0;
|
4
|
+
exports.createEsLintConfiguration = createEsLintConfiguration;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const string_utils_1 = require("@nx/devkit/src/utils/string-utils");
|
6
7
|
/**
|
@@ -118,4 +119,3 @@ function createEsLintConfiguration(tree, options) {
|
|
118
119
|
};
|
119
120
|
(0, devkit_1.writeJson)(tree, (0, devkit_1.joinPathFragments)(options.projectRoot, '.eslintrc.json'), configJson);
|
120
121
|
}
|
121
|
-
exports.createEsLintConfiguration = createEsLintConfiguration;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.applicationGenerator = applicationGenerator;
|
4
|
+
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const js_1 = require("@nx/js");
|
6
7
|
const init_1 = require("../init/init");
|
@@ -15,7 +16,6 @@ async function applicationGenerator(tree, schema) {
|
|
15
16
|
...schema,
|
16
17
|
});
|
17
18
|
}
|
18
|
-
exports.applicationGenerator = applicationGenerator;
|
19
19
|
async function applicationGeneratorInternal(tree, schema) {
|
20
20
|
const options = await (0, lib_1.normalizeOptions)(tree, schema);
|
21
21
|
const rootOffset = (0, devkit_1.offsetFromRoot)(options.appProjectRoot);
|
@@ -75,5 +75,4 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
75
75
|
(0, log_show_project_command_1.logShowProjectCommand)(options.name);
|
76
76
|
};
|
77
77
|
}
|
78
|
-
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
79
78
|
exports.default = applicationGenerator;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"compilerOptions": {
|
3
|
-
"target": "es2022"
|
4
|
-
"useDefineForClassFields": false<% if (isUsingApplicationBuilder) { %>,
|
3
|
+
"target": "es2022"<% if (disableModernClassFieldsBehavior) { %>,
|
4
|
+
"useDefineForClassFields": false<% } %><% if (isUsingApplicationBuilder) { %>,
|
5
5
|
"esModuleInterop": true<% } %>
|
6
6
|
},
|
7
7
|
"files": [],
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { TestBed } from '@angular/core/testing';
|
2
2
|
import { AppComponent } from './app.component';<% if(!minimal) { %>
|
3
|
-
import { NxWelcomeComponent } from './nx-welcome.component';<% } %><% if(routing) { %>
|
4
|
-
import { RouterTestingModule } from '@angular/router/testing';<% } %>
|
3
|
+
import { NxWelcomeComponent } from './nx-welcome.component';<% } %><% if(routing && useRouterTestingModule) { %>
|
4
|
+
import { RouterTestingModule } from '@angular/router/testing';<% } %><% if(routing && !useRouterTestingModule) { %>
|
5
|
+
import { RouterModule } from '@angular/router';<% } %>
|
5
6
|
|
6
7
|
describe('AppComponent', () => {
|
7
8
|
beforeEach(async () => {
|
8
9
|
await TestBed.configureTestingModule({
|
9
|
-
imports: [<% if(routing) { %>RouterTestingModule<% } %>],
|
10
|
+
imports: [<% if(routing && useRouterTestingModule) { %>RouterTestingModule<% } %><% if(routing && !useRouterTestingModule) { %>RouterModule.forRoot([])<% } %>],
|
10
11
|
declarations: [AppComponent<% if(!minimal) { %>, NxWelcomeComponent<% } %>]
|
11
12
|
}).compileComponents();
|
12
13
|
});
|
package/src/generators/application/files/standalone-components/src/app/app.component.spec.ts__tpl__
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
import { TestBed } from '@angular/core/testing';
|
2
2
|
import { AppComponent } from './app.component';<% if(!minimal) { %>
|
3
|
-
import { NxWelcomeComponent } from './nx-welcome.component';<% } %><% if(routing) { %>
|
4
|
-
import { RouterTestingModule } from '@angular/router/testing';<% } %>
|
3
|
+
import { NxWelcomeComponent } from './nx-welcome.component';<% } %><% if(routing && useRouterTestingModule) { %>
|
4
|
+
import { RouterTestingModule } from '@angular/router/testing';<% } %><% if(routing && !useRouterTestingModule) { %>
|
5
|
+
import { RouterModule } from '@angular/router';<% } %>
|
5
6
|
|
6
7
|
describe('AppComponent', () => {
|
7
8
|
beforeEach(async () => {
|
8
9
|
await TestBed.configureTestingModule({
|
9
|
-
imports: [AppComponent<% if(!minimal) { %>, NxWelcomeComponent<% } %><% if(routing) { %>, RouterTestingModule<% } %>],
|
10
|
+
imports: [AppComponent<% if(!minimal) { %>, NxWelcomeComponent<% } %><% if(routing && useRouterTestingModule) { %>, RouterTestingModule<% } %><% if(routing && !useRouterTestingModule) { %>, RouterModule.forRoot([])<% } %>],
|
10
11
|
}).compileComponents();
|
11
12
|
});
|
12
13
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addE2e =
|
3
|
+
exports.addE2e = addE2e;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const versions_1 = require("../../../utils/versions");
|
6
6
|
const version_utils_1 = require("../../utils/version-utils");
|
@@ -57,7 +57,6 @@ async function addE2e(tree, options) {
|
|
57
57
|
});
|
58
58
|
}
|
59
59
|
}
|
60
|
-
exports.addE2e = addE2e;
|
61
60
|
function addFileServerTarget(tree, options, targetName) {
|
62
61
|
if (!options.skipPackageJson) {
|
63
62
|
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@nx/web': versions_1.nxVersion });
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addLinting =
|
3
|
+
exports.addLinting = addLinting;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const eslint_1 = require("@nx/eslint");
|
6
6
|
const add_linting_1 = tslib_1.__importDefault(require("../../add-linting/add-linting"));
|
@@ -18,4 +18,3 @@ async function addLinting(host, options) {
|
|
18
18
|
skipFormat: true,
|
19
19
|
});
|
20
20
|
}
|
21
|
-
exports.addLinting = addLinting;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addProxyConfig =
|
3
|
+
exports.addProxyConfig = addProxyConfig;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function addProxyConfig(host, options) {
|
6
6
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(host, options.name);
|
@@ -22,4 +22,3 @@ function addProxyConfig(host, options) {
|
|
22
22
|
(0, devkit_1.updateProjectConfiguration)(host, options.name, projectConfig);
|
23
23
|
}
|
24
24
|
}
|
25
|
-
exports.addProxyConfig = addProxyConfig;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addUnitTestRunner =
|
3
|
+
exports.addUnitTestRunner = addUnitTestRunner;
|
4
4
|
const test_runners_1 = require("../../../utils/test-runners");
|
5
5
|
const add_jest_1 = require("../../utils/add-jest");
|
6
6
|
async function addUnitTestRunner(host, options) {
|
@@ -13,4 +13,3 @@ async function addUnitTestRunner(host, options) {
|
|
13
13
|
});
|
14
14
|
}
|
15
15
|
}
|
16
|
-
exports.addUnitTestRunner = addUnitTestRunner;
|
@@ -1,15 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createFiles =
|
3
|
+
exports.createFiles = createFiles;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const js_1 = require("@nx/js");
|
6
|
-
const
|
6
|
+
const semver_1 = require("semver");
|
7
7
|
const test_runners_1 = require("../../../utils/test-runners");
|
8
|
-
const version_utils_1 = require("../../utils/version-utils");
|
9
8
|
const selector_1 = require("../../utils/selector");
|
9
|
+
const update_project_root_tsconfig_1 = require("../../utils/update-project-root-tsconfig");
|
10
|
+
const version_utils_1 = require("../../utils/version-utils");
|
10
11
|
async function createFiles(tree, options, rootOffset) {
|
11
|
-
const { major: angularMajorVersion } = (0, version_utils_1.getInstalledAngularVersionInfo)(tree);
|
12
|
+
const { major: angularMajorVersion, version: angularVersion } = (0, version_utils_1.getInstalledAngularVersionInfo)(tree);
|
12
13
|
const isUsingApplicationBuilder = angularMajorVersion >= 17 && options.bundler === 'esbuild';
|
14
|
+
const disableModernClassFieldsBehavior = (0, semver_1.lt)(angularVersion, '18.1.0-rc.0');
|
13
15
|
const rootSelector = `${options.prefix}-root`;
|
14
16
|
(0, selector_1.validateHtmlSelector)(rootSelector);
|
15
17
|
const nxWelcomeSelector = `${options.prefix}-nx-welcome`;
|
@@ -29,7 +31,9 @@ async function createFiles(tree, options, rootOffset) {
|
|
29
31
|
angularMajorVersion,
|
30
32
|
rootOffset,
|
31
33
|
isUsingApplicationBuilder,
|
34
|
+
disableModernClassFieldsBehavior,
|
32
35
|
useEventCoalescing: angularMajorVersion >= 18,
|
36
|
+
useRouterTestingModule: angularMajorVersion < 18,
|
33
37
|
tpl: '',
|
34
38
|
};
|
35
39
|
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, '../files/base'), options.appProjectRoot, substitutions);
|
@@ -62,4 +66,3 @@ async function createFiles(tree, options, rootOffset) {
|
|
62
66
|
tree.delete((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'src/app/nx-welcome.component.ts'));
|
63
67
|
}
|
64
68
|
}
|
65
|
-
exports.createFiles = createFiles;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createProject =
|
3
|
+
exports.createProject = createProject;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const version_utils_1 = require("../../utils/version-utils");
|
6
6
|
const add_build_target_defaults_1 = require("@nx/devkit/src/generators/add-build-target-defaults");
|
@@ -115,4 +115,3 @@ function createProject(tree, options) {
|
|
115
115
|
};
|
116
116
|
(0, devkit_1.addProjectConfiguration)(tree, options.name, project);
|
117
117
|
}
|
118
|
-
exports.createProject = createProject;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.enableStrictTypeChecking =
|
3
|
+
exports.enableStrictTypeChecking = enableStrictTypeChecking;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function enableStrictTypeChecking(host, options) {
|
6
6
|
// This matches the settings defined by the Angular CLI https://angular.io/guide/strict-mode
|
@@ -33,4 +33,3 @@ function enableStrictTypeChecking(host, options) {
|
|
33
33
|
});
|
34
34
|
}
|
35
35
|
}
|
36
|
-
exports.enableStrictTypeChecking = enableStrictTypeChecking;
|
@@ -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 project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
6
6
|
const eslint_1 = require("@nx/eslint");
|
@@ -67,4 +67,3 @@ async function normalizeOptions(host, options) {
|
|
67
67
|
ssr: options.ssr ?? false,
|
68
68
|
};
|
69
69
|
}
|
70
|
-
exports.normalizeOptions = normalizeOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setApplicationStrictDefault =
|
3
|
+
exports.setApplicationStrictDefault = setApplicationStrictDefault;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function setApplicationStrictDefault(host, strict) {
|
6
6
|
const nxJson = (0, devkit_1.readNxJson)(host);
|
@@ -11,4 +11,3 @@ function setApplicationStrictDefault(host, strict) {
|
|
11
11
|
nxJson.generators['@nx/angular:application'].strict ?? strict;
|
12
12
|
(0, devkit_1.updateNxJson)(host, nxJson);
|
13
13
|
}
|
14
|
-
exports.setApplicationStrictDefault = setApplicationStrictDefault;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setGeneratorDefaults =
|
3
|
+
exports.setGeneratorDefaults = setGeneratorDefaults;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function setGeneratorDefaults(tree, options) {
|
6
6
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
@@ -14,4 +14,3 @@ function setGeneratorDefaults(tree, options) {
|
|
14
14
|
};
|
15
15
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
16
16
|
}
|
17
|
-
exports.setGeneratorDefaults = setGeneratorDefaults;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateEditorTsConfig =
|
3
|
+
exports.updateEditorTsConfig = updateEditorTsConfig;
|
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
|
function getCompilerOptionsTypes(tsConfig) {
|
@@ -19,4 +19,3 @@ function updateEditorTsConfig(tree, options) {
|
|
19
19
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.name);
|
20
20
|
(0, update_app_editor_tsconfig_excluded_files_1.updateAppEditorTsConfigExcludedFiles)(tree, project);
|
21
21
|
}
|
22
|
-
exports.updateEditorTsConfig = updateEditorTsConfig;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.componentGenerator = componentGenerator;
|
4
|
+
exports.componentGeneratorInternal = componentGeneratorInternal;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const utils_1 = require("../utils");
|
6
7
|
const version_utils_1 = require("../utils/version-utils");
|
@@ -11,7 +12,6 @@ async function componentGenerator(tree, rawOptions) {
|
|
11
12
|
...rawOptions,
|
12
13
|
});
|
13
14
|
}
|
14
|
-
exports.componentGenerator = componentGenerator;
|
15
15
|
async function componentGeneratorInternal(tree, rawOptions) {
|
16
16
|
const options = await (0, lib_1.normalizeOptions)(tree, rawOptions);
|
17
17
|
const { major: angularMajorVersion } = (0, version_utils_1.getInstalledAngularVersionInfo)(tree);
|
@@ -53,5 +53,4 @@ async function componentGeneratorInternal(tree, rawOptions) {
|
|
53
53
|
await (0, devkit_1.formatFiles)(tree);
|
54
54
|
}
|
55
55
|
}
|
56
|
-
exports.componentGeneratorInternal = componentGeneratorInternal;
|
57
56
|
exports.default = componentGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.exportComponentInEntryPoint =
|
3
|
+
exports.exportComponentInEntryPoint = exportComponentInEntryPoint;
|
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 entry_point_1 = require("../../utils/entry-point");
|
@@ -31,7 +31,6 @@ function exportComponentInEntryPoint(tree, schema) {
|
|
31
31
|
export * from '${relativePathFromEntryPoint}';`;
|
32
32
|
tree.write(entryPointPath, updateEntryPointContent);
|
33
33
|
}
|
34
|
-
exports.exportComponentInEntryPoint = exportComponentInEntryPoint;
|
35
34
|
function shouldExportInEntryPoint(tree, entryPoint, modulePath) {
|
36
35
|
if (!modulePath) {
|
37
36
|
return false;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.findModuleFromOptions =
|
3
|
+
exports.findModuleFromOptions = findModuleFromOptions;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const path_1 = require("path");
|
6
6
|
// Adapted from https://github.com/angular/angular-cli/blob/732aab5fa7e63618c89dfbbb6f78753f706d7014/packages/schematics/angular/utility/find-module.ts#L29
|
@@ -41,7 +41,6 @@ function findModuleFromOptions(tree, options, projectRoot) {
|
|
41
41
|
`Looked in the following directories:\n ${candidatesDirs.join('\n ')}`);
|
42
42
|
}
|
43
43
|
}
|
44
|
-
exports.findModuleFromOptions = findModuleFromOptions;
|
45
44
|
function findModule(tree, generateDir, projectRoot) {
|
46
45
|
let dir = generateDir;
|
47
46
|
const projectRootParent = (0, path_1.dirname)(projectRoot);
|
@@ -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 artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
|
6
6
|
const selector_1 = require("../../utils/selector");
|
@@ -38,4 +38,3 @@ async function normalizeOptions(tree, options) {
|
|
38
38
|
selector,
|
39
39
|
};
|
40
40
|
}
|
41
|
-
exports.normalizeOptions = normalizeOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setGeneratorDefaults =
|
3
|
+
exports.setGeneratorDefaults = setGeneratorDefaults;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function setGeneratorDefaults(tree, options) {
|
6
6
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
@@ -11,4 +11,3 @@ function setGeneratorDefaults(tree, options) {
|
|
11
11
|
};
|
12
12
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
13
13
|
}
|
14
|
-
exports.setGeneratorDefaults = setGeneratorDefaults;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.componentCypressSpecGenerator =
|
3
|
+
exports.componentCypressSpecGenerator = componentCypressSpecGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const storybook_inputs_1 = require("../utils/storybook-ast/storybook-inputs");
|
6
6
|
const get_args_default_value_1 = require("./lib/get-args-default-value");
|
@@ -32,5 +32,4 @@ async function componentCypressSpecGenerator(tree, options) {
|
|
32
32
|
await (0, devkit_1.formatFiles)(tree);
|
33
33
|
}
|
34
34
|
}
|
35
|
-
exports.componentCypressSpecGenerator = componentCypressSpecGenerator;
|
36
35
|
exports.default = componentCypressSpecGenerator;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getArgsDefaultValue =
|
3
|
+
exports.getArgsDefaultValue = getArgsDefaultValue;
|
4
4
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
5
5
|
let tsModule;
|
6
6
|
function getArgsDefaultValue(property) {
|
@@ -22,4 +22,3 @@ function getArgsDefaultValue(property) {
|
|
22
22
|
return undefined;
|
23
23
|
}
|
24
24
|
}
|
25
|
-
exports.getArgsDefaultValue = getArgsDefaultValue;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getComponentSelector =
|
3
|
+
exports.getComponentSelector = getComponentSelector;
|
4
4
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
5
5
|
const js_1 = require("@nx/js");
|
6
6
|
const ast_utils_1 = require("../../../utils/nx-devkit/ast-utils");
|
@@ -21,4 +21,3 @@ function getComponentSelector(tree, path) {
|
|
21
21
|
}
|
22
22
|
return selectorNode.initializer.getText().slice(1, -1);
|
23
23
|
}
|
24
|
-
exports.getComponentSelector = getComponentSelector;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.componentStoryGenerator =
|
3
|
+
exports.componentStoryGenerator = componentStoryGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const storybook_inputs_1 = require("../utils/storybook-ast/storybook-inputs");
|
6
6
|
async function componentStoryGenerator(tree, options) {
|
@@ -24,5 +24,4 @@ async function componentStoryGenerator(tree, options) {
|
|
24
24
|
await (0, devkit_1.formatFiles)(tree);
|
25
25
|
}
|
26
26
|
}
|
27
|
-
exports.componentStoryGenerator = componentStoryGenerator;
|
28
27
|
exports.default = componentStoryGenerator;
|