@nx/workspace 16.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/LICENSE +22 -0
- package/README.md +61 -0
- package/executors.json +11 -0
- package/generators.d.ts +5 -0
- package/generators.js +14 -0
- package/generators.js.map +1 -0
- package/generators.json +92 -0
- package/index.d.ts +21 -0
- package/index.js +52 -0
- package/index.js.map +1 -0
- package/migrations.json +165 -0
- package/package.json +90 -0
- package/presets/core.json +11 -0
- package/presets/npm.json +7 -0
- package/src/core/file-utils.d.ts +1 -0
- package/src/core/file-utils.js +5 -0
- package/src/core/file-utils.js.map +1 -0
- package/src/core/project-graph.d.ts +1 -0
- package/src/core/project-graph.js +5 -0
- package/src/core/project-graph.js.map +1 -0
- package/src/executors/counter/counter.impl.d.ts +12 -0
- package/src/executors/counter/counter.impl.js +48 -0
- package/src/executors/counter/counter.impl.js.map +1 -0
- package/src/executors/counter/schema.json +20 -0
- package/src/generators/ci-workflow/ci-workflow.d.ts +6 -0
- package/src/generators/ci-workflow/ci-workflow.js +46 -0
- package/src/generators/ci-workflow/ci-workflow.js.map +1 -0
- package/src/generators/ci-workflow/files/azure/azure-pipelines.yml__tmpl__ +58 -0
- package/src/generators/ci-workflow/files/bitbucket-pipelines/bitbucket-pipelines.yml__tmpl__ +36 -0
- package/src/generators/ci-workflow/files/circleci/.circleci/config.yml__tmpl__ +73 -0
- package/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ +29 -0
- package/src/generators/ci-workflow/files/gitlab/.gitlab-ci.yml__tmpl__ +47 -0
- package/src/generators/ci-workflow/schema.json +38 -0
- package/src/generators/convert-to-nx-project/convert-to-nx-project.d.ts +6 -0
- package/src/generators/convert-to-nx-project/convert-to-nx-project.js +86 -0
- package/src/generators/convert-to-nx-project/convert-to-nx-project.js.map +1 -0
- package/src/generators/convert-to-nx-project/schema.d.ts +7 -0
- package/src/generators/convert-to-nx-project/schema.json +38 -0
- package/src/generators/move/lib/check-destination.d.ts +11 -0
- package/src/generators/move/lib/check-destination.js +24 -0
- package/src/generators/move/lib/check-destination.js.map +1 -0
- package/src/generators/move/lib/create-project-configuration-in-new-destination.d.ts +3 -0
- package/src/generators/move/lib/create-project-configuration-in-new-destination.js +17 -0
- package/src/generators/move/lib/create-project-configuration-in-new-destination.js.map +1 -0
- package/src/generators/move/lib/move-project-files.d.ts +8 -0
- package/src/generators/move/lib/move-project-files.js +22 -0
- package/src/generators/move/lib/move-project-files.js.map +1 -0
- package/src/generators/move/lib/normalize-schema.d.ts +3 -0
- package/src/generators/move/lib/normalize-schema.js +17 -0
- package/src/generators/move/lib/normalize-schema.js.map +1 -0
- package/src/generators/move/lib/update-build-targets.d.ts +6 -0
- package/src/generators/move/lib/update-build-targets.js +54 -0
- package/src/generators/move/lib/update-build-targets.js.map +1 -0
- package/src/generators/move/lib/update-cypress-config.d.ts +10 -0
- package/src/generators/move/lib/update-cypress-config.js +39 -0
- package/src/generators/move/lib/update-cypress-config.js.map +1 -0
- package/src/generators/move/lib/update-default-project.d.ts +10 -0
- package/src/generators/move/lib/update-default-project.js +21 -0
- package/src/generators/move/lib/update-default-project.js.map +1 -0
- package/src/generators/move/lib/update-eslintrc-json.d.ts +8 -0
- package/src/generators/move/lib/update-eslintrc-json.js +44 -0
- package/src/generators/move/lib/update-eslintrc-json.js.map +1 -0
- package/src/generators/move/lib/update-implicit-dependencies.d.ts +6 -0
- package/src/generators/move/lib/update-implicit-dependencies.js +20 -0
- package/src/generators/move/lib/update-implicit-dependencies.js.map +1 -0
- package/src/generators/move/lib/update-imports.d.ts +8 -0
- package/src/generators/move/lib/update-imports.js +159 -0
- package/src/generators/move/lib/update-imports.js.map +1 -0
- package/src/generators/move/lib/update-jest-config.d.ts +10 -0
- package/src/generators/move/lib/update-jest-config.js +36 -0
- package/src/generators/move/lib/update-jest-config.js.map +1 -0
- package/src/generators/move/lib/update-package-json.d.ts +8 -0
- package/src/generators/move/lib/update-package-json.js +22 -0
- package/src/generators/move/lib/update-package-json.js.map +1 -0
- package/src/generators/move/lib/update-project-root-files.d.ts +10 -0
- package/src/generators/move/lib/update-project-root-files.js +44 -0
- package/src/generators/move/lib/update-project-root-files.js.map +1 -0
- package/src/generators/move/lib/update-readme.d.ts +8 -0
- package/src/generators/move/lib/update-readme.js +22 -0
- package/src/generators/move/lib/update-readme.js.map +1 -0
- package/src/generators/move/lib/update-storybook-config.d.ts +10 -0
- package/src/generators/move/lib/update-storybook-config.js +44 -0
- package/src/generators/move/lib/update-storybook-config.js.map +1 -0
- package/src/generators/move/lib/utils.d.ts +22 -0
- package/src/generators/move/lib/utils.js +43 -0
- package/src/generators/move/lib/utils.js.map +1 -0
- package/src/generators/move/move.d.ts +5 -0
- package/src/generators/move/move.js +48 -0
- package/src/generators/move/move.js.map +1 -0
- package/src/generators/move/schema.d.ts +13 -0
- package/src/generators/move/schema.json +47 -0
- package/src/generators/new/files-integrated-repo/__dot__editorconfig +13 -0
- package/src/generators/new/files-integrated-repo/__dot__gitignore +39 -0
- package/src/generators/new/files-integrated-repo/__dot__vscode/extensions.json__tmpl__ +9 -0
- package/src/generators/new/files-integrated-repo/package.json__tmpl__ +14 -0
- package/src/generators/new/files-integrated-repo/tools/generators/.gitkeep +0 -0
- package/src/generators/new/files-integrated-repo/tools/tsconfig.tools.json +12 -0
- package/src/generators/new/files-package-based-repo/__dot__gitignore +39 -0
- package/src/generators/new/files-package-based-repo/__dot__vscode/extensions.json__tmpl__ +8 -0
- package/src/generators/new/files-package-based-repo/package.json__tmpl__ +13 -0
- package/src/generators/new/files-readme/README.md.template +21 -0
- package/src/generators/new/files-root-app/__dot__gitignore +39 -0
- package/src/generators/new/files-root-app/__dot__vscode/extensions.json__tmpl__ +6 -0
- package/src/generators/new/files-root-app/package.json__tmpl__ +14 -0
- package/src/generators/new/generate-preset.d.ts +4 -0
- package/src/generators/new/generate-preset.js +129 -0
- package/src/generators/new/generate-preset.js.map +1 -0
- package/src/generators/new/generate-workspace-files.d.ts +3 -0
- package/src/generators/new/generate-workspace-files.js +169 -0
- package/src/generators/new/generate-workspace-files.js.map +1 -0
- package/src/generators/new/new.d.ts +26 -0
- package/src/generators/new/new.js +73 -0
- package/src/generators/new/new.js.map +1 -0
- package/src/generators/new/schema.json +77 -0
- package/src/generators/npm-package/files/index.js.template +1 -0
- package/src/generators/npm-package/npm-package.d.ts +6 -0
- package/src/generators/npm-package/npm-package.js +42 -0
- package/src/generators/npm-package/npm-package.js.map +1 -0
- package/src/generators/npm-package/schema.json +21 -0
- package/src/generators/preset/files/angular/app.module.d.ts +0 -0
- package/src/generators/preset/files/angular/app.module.js +1 -0
- package/src/generators/preset/files/angular/app.module.js.map +1 -0
- package/src/generators/preset/files/angular/app.module.ts +0 -0
- package/src/generators/preset/preset.d.ts +4 -0
- package/src/generators/preset/preset.js +152 -0
- package/src/generators/preset/preset.js.map +1 -0
- package/src/generators/preset/schema.d.ts +17 -0
- package/src/generators/preset/schema.json +88 -0
- package/src/generators/remove/lib/__fixtures__/jest-project.config.d.ts +14 -0
- package/src/generators/remove/lib/__fixtures__/jest-project.config.js +18 -0
- package/src/generators/remove/lib/__fixtures__/jest-project.config.js.map +1 -0
- package/src/generators/remove/lib/__fixtures__/jest.config.d.ts +0 -0
- package/src/generators/remove/lib/__fixtures__/jest.config.js +9 -0
- package/src/generators/remove/lib/__fixtures__/jest.config.js.map +1 -0
- package/src/generators/remove/lib/check-dependencies.d.ts +7 -0
- package/src/generators/remove/lib/check-dependencies.js +27 -0
- package/src/generators/remove/lib/check-dependencies.js.map +1 -0
- package/src/generators/remove/lib/check-project-is-safe-to-remove.d.ts +3 -0
- package/src/generators/remove/lib/check-project-is-safe-to-remove.js +26 -0
- package/src/generators/remove/lib/check-project-is-safe-to-remove.js.map +1 -0
- package/src/generators/remove/lib/check-targets.d.ts +10 -0
- package/src/generators/remove/lib/check-targets.js +72 -0
- package/src/generators/remove/lib/check-targets.js.map +1 -0
- package/src/generators/remove/lib/remove-project-references-in-config.d.ts +3 -0
- package/src/generators/remove/lib/remove-project-references-in-config.js +22 -0
- package/src/generators/remove/lib/remove-project-references-in-config.js.map +1 -0
- package/src/generators/remove/lib/remove-project.d.ts +5 -0
- package/src/generators/remove/lib/remove-project.js +15 -0
- package/src/generators/remove/lib/remove-project.js.map +1 -0
- package/src/generators/remove/lib/update-jest-config.d.ts +6 -0
- package/src/generators/remove/lib/update-jest-config.js +64 -0
- package/src/generators/remove/lib/update-jest-config.js.map +1 -0
- package/src/generators/remove/lib/update-tsconfig.d.ts +8 -0
- package/src/generators/remove/lib/update-tsconfig.js +35 -0
- package/src/generators/remove/lib/update-tsconfig.js.map +1 -0
- package/src/generators/remove/remove.d.ts +5 -0
- package/src/generators/remove/remove.js +31 -0
- package/src/generators/remove/remove.js.map +1 -0
- package/src/generators/remove/schema.d.ts +10 -0
- package/src/generators/remove/schema.json +47 -0
- package/src/generators/run-commands/run-commands.d.ts +5 -0
- package/src/generators/run-commands/run-commands.js +30 -0
- package/src/generators/run-commands/run-commands.js.map +1 -0
- package/src/generators/run-commands/schema.d.ts +8 -0
- package/src/generators/run-commands/schema.json +49 -0
- package/src/generators/utils/get-npm-package-version.d.ts +1 -0
- package/src/generators/utils/get-npm-package-version.js +18 -0
- package/src/generators/utils/get-npm-package-version.js.map +1 -0
- package/src/generators/utils/insert-import.d.ts +2 -0
- package/src/generators/utils/insert-import.js +48 -0
- package/src/generators/utils/insert-import.js.map +1 -0
- package/src/generators/utils/insert-statement.d.ts +5 -0
- package/src/generators/utils/insert-statement.js +34 -0
- package/src/generators/utils/insert-statement.js.map +1 -0
- package/src/generators/utils/presets.d.ts +18 -0
- package/src/generators/utils/presets.js +23 -0
- package/src/generators/utils/presets.js.map +1 -0
- package/src/generators/workspace-generator/files/index.ts__tmpl__ +10 -0
- package/src/generators/workspace-generator/files/schema.json__tmpl__ +17 -0
- package/src/generators/workspace-generator/schema.d.ts +4 -0
- package/src/generators/workspace-generator/schema.json +25 -0
- package/src/generators/workspace-generator/workspace-generator.d.ts +3 -0
- package/src/generators/workspace-generator/workspace-generator.js +27 -0
- package/src/generators/workspace-generator/workspace-generator.js.map +1 -0
- package/src/migrations/update-12-5-0/add-target-dependencies.d.ts +3 -0
- package/src/migrations/update-12-5-0/add-target-dependencies.js +39 -0
- package/src/migrations/update-12-5-0/add-target-dependencies.js.map +1 -0
- package/src/migrations/update-13-0-0/config-locations/config-locations.d.ts +2 -0
- package/src/migrations/update-13-0-0/config-locations/config-locations.js +34 -0
- package/src/migrations/update-13-0-0/config-locations/config-locations.js.map +1 -0
- package/src/migrations/update-13-0-0/set-default-base-if-not-set.d.ts +3 -0
- package/src/migrations/update-13-0-0/set-default-base-if-not-set.js +30 -0
- package/src/migrations/update-13-0-0/set-default-base-if-not-set.js.map +1 -0
- package/src/migrations/update-13-10-0/update-decorate-cli.d.ts +3 -0
- package/src/migrations/update-13-10-0/update-decorate-cli.js +14 -0
- package/src/migrations/update-13-10-0/update-decorate-cli.js.map +1 -0
- package/src/migrations/update-13-10-0/update-tasks-runner.d.ts +3 -0
- package/src/migrations/update-13-10-0/update-tasks-runner.js +17 -0
- package/src/migrations/update-13-10-0/update-tasks-runner.js.map +1 -0
- package/src/migrations/update-13-2-0/set-parallel-default.d.ts +3 -0
- package/src/migrations/update-13-2-0/set-parallel-default.js +27 -0
- package/src/migrations/update-13-2-0/set-parallel-default.js.map +1 -0
- package/src/migrations/update-13-3-0/update-tsc-executor-location.d.ts +3 -0
- package/src/migrations/update-13-3-0/update-tsc-executor-location.js +31 -0
- package/src/migrations/update-13-3-0/update-tsc-executor-location.js.map +1 -0
- package/src/migrations/update-13-6-0/remove-old-task-runner-options.d.ts +3 -0
- package/src/migrations/update-13-6-0/remove-old-task-runner-options.js +17 -0
- package/src/migrations/update-13-6-0/remove-old-task-runner-options.js.map +1 -0
- package/src/migrations/update-13-9-0/replace-tao-with-nx.d.ts +3 -0
- package/src/migrations/update-13-9-0/replace-tao-with-nx.js +28 -0
- package/src/migrations/update-13-9-0/replace-tao-with-nx.js.map +1 -0
- package/src/migrations/update-13-9-0/update-decorate-cli.d.ts +3 -0
- package/src/migrations/update-13-9-0/update-decorate-cli.js +13 -0
- package/src/migrations/update-13-9-0/update-decorate-cli.js.map +1 -0
- package/src/migrations/update-14-0-0/change-npm-script-executor.d.ts +3 -0
- package/src/migrations/update-14-0-0/change-npm-script-executor.js +20 -0
- package/src/migrations/update-14-0-0/change-npm-script-executor.js.map +1 -0
- package/src/migrations/update-14-0-0/change-nx-json-presets.d.ts +3 -0
- package/src/migrations/update-14-0-0/change-nx-json-presets.js +21 -0
- package/src/migrations/update-14-0-0/change-nx-json-presets.js.map +1 -0
- package/src/migrations/update-14-2-0/enable-source-analysis.d.ts +3 -0
- package/src/migrations/update-14-2-0/enable-source-analysis.js +28 -0
- package/src/migrations/update-14-2-0/enable-source-analysis.js.map +1 -0
- package/src/migrations/update-14-8-0/change-run-commands-executor.d.ts +3 -0
- package/src/migrations/update-14-8-0/change-run-commands-executor.js +20 -0
- package/src/migrations/update-14-8-0/change-run-commands-executor.js.map +1 -0
- package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.d.ts +3 -0
- package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js +15 -0
- package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js.map +1 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
- package/src/tasks-runner/cache.d.ts +1 -0
- package/src/tasks-runner/cache.js +6 -0
- package/src/tasks-runner/cache.js.map +1 -0
- package/src/tasks-runner/default-tasks-runner.d.ts +1 -0
- package/src/tasks-runner/default-tasks-runner.js +5 -0
- package/src/tasks-runner/default-tasks-runner.js.map +1 -0
- package/src/tasks-runner/life-cycle.d.ts +1 -0
- package/src/tasks-runner/life-cycle.js +6 -0
- package/src/tasks-runner/life-cycle.js.map +1 -0
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +1 -0
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +5 -0
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js.map +1 -0
- package/src/tasks-runner/tasks-runner-v2.d.ts +1 -0
- package/src/tasks-runner/tasks-runner-v2.js +7 -0
- package/src/tasks-runner/tasks-runner-v2.js.map +1 -0
- package/src/tasks-runner/tasks-runner.d.ts +2 -0
- package/src/tasks-runner/tasks-runner.js +5 -0
- package/src/tasks-runner/tasks-runner.js.map +1 -0
- package/src/tasks-runner/utils.d.ts +1 -0
- package/src/tasks-runner/utils.js +5 -0
- package/src/tasks-runner/utils.js.map +1 -0
- package/src/utilities/app-root.d.ts +1 -0
- package/src/utilities/app-root.js +5 -0
- package/src/utilities/app-root.js.map +1 -0
- package/src/utilities/buildable-libs-utils.d.ts +41 -0
- package/src/utilities/buildable-libs-utils.js +316 -0
- package/src/utilities/buildable-libs-utils.js.map +1 -0
- package/src/utilities/default-base.d.ts +1 -0
- package/src/utilities/default-base.js +16 -0
- package/src/utilities/default-base.js.map +1 -0
- package/src/utilities/fileutils.d.ts +13 -0
- package/src/utilities/fileutils.js +52 -0
- package/src/utilities/fileutils.js.map +1 -0
- package/src/utilities/output.d.ts +1 -0
- package/src/utilities/output.js +5 -0
- package/src/utilities/output.js.map +1 -0
- package/src/utilities/run-tasks-in-serial.d.ts +8 -0
- package/src/utilities/run-tasks-in-serial.js +19 -0
- package/src/utilities/run-tasks-in-serial.js.map +1 -0
- package/src/utilities/ts-config.d.ts +5 -0
- package/src/utilities/ts-config.js +40 -0
- package/src/utilities/ts-config.js.map +1 -0
- package/src/utilities/typescript/compilation.d.ts +22 -0
- package/src/utilities/typescript/compilation.js +120 -0
- package/src/utilities/typescript/compilation.js.map +1 -0
- package/src/utilities/typescript/get-source-nodes.d.ts +5 -0
- package/src/utilities/typescript/get-source-nodes.js +22 -0
- package/src/utilities/typescript/get-source-nodes.js.map +1 -0
- package/src/utilities/typescript.d.ts +22 -0
- package/src/utilities/typescript.js +71 -0
- package/src/utilities/typescript.js.map +1 -0
- package/src/utilities/version-utils.d.ts +4 -0
- package/src/utilities/version-utils.js +14 -0
- package/src/utilities/version-utils.js.map +1 -0
- package/src/utils/ast-utils.d.ts +1 -0
- package/src/utils/ast-utils.js +6 -0
- package/src/utils/ast-utils.js.map +1 -0
- package/src/utils/cli-config-utils.d.ts +16 -0
- package/src/utils/cli-config-utils.js +30 -0
- package/src/utils/cli-config-utils.js.map +1 -0
- package/src/utils/fileutils.d.ts +24 -0
- package/src/utils/fileutils.js +67 -0
- package/src/utils/fileutils.js.map +1 -0
- package/src/utils/lint.d.ts +4 -0
- package/src/utils/lint.js +3 -0
- package/src/utils/lint.js.map +1 -0
- package/src/utils/output.d.ts +52 -0
- package/src/utils/output.js +134 -0
- package/src/utils/output.js.map +1 -0
- package/src/utils/perf-logging.d.ts +1 -0
- package/src/utils/perf-logging.js +11 -0
- package/src/utils/perf-logging.js.map +1 -0
- package/src/utils/project-type.d.ts +5 -0
- package/src/utils/project-type.js +18 -0
- package/src/utils/project-type.js.map +1 -0
- package/src/utils/rules/add-install-task.d.ts +7 -0
- package/src/utils/rules/add-install-task.js +18 -0
- package/src/utils/rules/add-install-task.js.map +1 -0
- package/src/utils/rules/deleteFile.d.ts +6 -0
- package/src/utils/rules/deleteFile.js +12 -0
- package/src/utils/rules/deleteFile.js.map +1 -0
- package/src/utils/rules/format-files.d.ts +7 -0
- package/src/utils/rules/format-files.js +58 -0
- package/src/utils/rules/format-files.js.map +1 -0
- package/src/utils/rules/visit-not-ignored-files.d.ts +6 -0
- package/src/utils/rules/visit-not-ignored-files.js +39 -0
- package/src/utils/rules/visit-not-ignored-files.js.map +1 -0
- package/src/utils/strings.d.ts +107 -0
- package/src/utils/strings.js +160 -0
- package/src/utils/strings.js.map +1 -0
- package/src/utils/testing-utils.d.ts +54 -0
- package/src/utils/testing-utils.js +147 -0
- package/src/utils/testing-utils.js.map +1 -0
- package/src/utils/version-utils.d.ts +1 -0
- package/src/utils/version-utils.js +5 -0
- package/src/utils/version-utils.js.map +1 -0
- package/src/utils/versions.d.ts +7 -0
- package/src/utils/versions.js +13 -0
- package/src/utils/versions.js.map +1 -0
- package/src/utils/workspace.d.ts +20 -0
- package/src/utils/workspace.js +97 -0
- package/src/utils/workspace.js.map +1 -0
- package/tasks-runners/default.d.ts +1 -0
- package/tasks-runners/default.js +6 -0
- package/tasks-runners/default.js.map +1 -0
- package/testing.d.ts +1 -0
- package/testing.js +8 -0
- package/testing.js.map +1 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateTsconfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const ts_config_1 = require("../../../utilities/ts-config");
|
|
7
|
+
const find_project_for_path_1 = require("nx/src/project-graph/utils/find-project-for-path");
|
|
8
|
+
/**
|
|
9
|
+
* Updates the tsconfig paths to remove the project.
|
|
10
|
+
*
|
|
11
|
+
* @param schema The options provided to the schematic
|
|
12
|
+
*/
|
|
13
|
+
function updateTsconfig(tree, schema) {
|
|
14
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
|
+
const tsConfigPath = (0, ts_config_1.getRootTsConfigPathInTree)(tree);
|
|
16
|
+
if (tree.exists(tsConfigPath)) {
|
|
17
|
+
const graph = yield (0, devkit_1.createProjectGraphAsync)();
|
|
18
|
+
const projectMapping = (0, find_project_for_path_1.createProjectRootMappings)(graph.nodes);
|
|
19
|
+
(0, devkit_1.updateJson)(tree, tsConfigPath, (json) => {
|
|
20
|
+
for (const importPath in json.compilerOptions.paths) {
|
|
21
|
+
for (const path of json.compilerOptions.paths[importPath]) {
|
|
22
|
+
const project = (0, find_project_for_path_1.findProjectForPath)((0, devkit_1.normalizePath)(path), projectMapping);
|
|
23
|
+
if (project === schema.projectName) {
|
|
24
|
+
delete json.compilerOptions.paths[importPath];
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return json;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
exports.updateTsconfig = updateTsconfig;
|
|
35
|
+
//# sourceMappingURL=update-tsconfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-tsconfig.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/remove/lib/update-tsconfig.ts"],"names":[],"mappings":";;;;AAAA,uCAMoB;AACpB,4DAAyE;AAEzE,4FAG0D;AAE1D;;;;GAIG;AACH,SAAsB,cAAc,CAAC,IAAU,EAAE,MAAc;;QAC7D,MAAM,YAAY,GAAG,IAAA,qCAAyB,EAAC,IAAI,CAAC,CAAC;QAErD,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;YAC7B,MAAM,KAAK,GAAiB,MAAM,IAAA,gCAAuB,GAAE,CAAC;YAC5D,MAAM,cAAc,GAAG,IAAA,iDAAyB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC9D,IAAA,mBAAU,EAAC,IAAI,EAAE,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;gBACtC,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE;oBACnD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;wBACzD,MAAM,OAAO,GAAG,IAAA,0CAAkB,EAChC,IAAA,sBAAa,EAAC,IAAI,CAAC,EACnB,cAAc,CACf,CAAC;wBACF,IAAI,OAAO,KAAK,MAAM,CAAC,WAAW,EAAE;4BAClC,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;4BAC9C,MAAM;yBACP;qBACF;iBACF;gBACD,OAAO,IAAI,CAAC;YACd,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;CAAA;AAtBD,wCAsBC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Tree } from '@nx/devkit';
|
|
2
|
+
import { Schema } from './schema';
|
|
3
|
+
export declare function removeGenerator(tree: Tree, schema: Schema): Promise<void>;
|
|
4
|
+
export default removeGenerator;
|
|
5
|
+
export declare const removeSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeSchematic = exports.removeGenerator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const check_project_is_safe_to_remove_1 = require("./lib/check-project-is-safe-to-remove");
|
|
7
|
+
const check_dependencies_1 = require("./lib/check-dependencies");
|
|
8
|
+
const check_targets_1 = require("./lib/check-targets");
|
|
9
|
+
const remove_project_1 = require("./lib/remove-project");
|
|
10
|
+
const update_tsconfig_1 = require("./lib/update-tsconfig");
|
|
11
|
+
const remove_project_references_in_config_1 = require("./lib/remove-project-references-in-config");
|
|
12
|
+
const update_jest_config_1 = require("./lib/update-jest-config");
|
|
13
|
+
function removeGenerator(tree, schema) {
|
|
14
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
|
+
const project = (0, devkit_1.readProjectConfiguration)(tree, schema.projectName);
|
|
16
|
+
yield (0, check_project_is_safe_to_remove_1.checkProjectIsSafeToRemove)(tree, schema, project);
|
|
17
|
+
yield (0, check_dependencies_1.checkDependencies)(tree, schema);
|
|
18
|
+
yield (0, check_targets_1.checkTargets)(tree, schema);
|
|
19
|
+
(0, update_jest_config_1.updateJestConfig)(tree, schema, project);
|
|
20
|
+
(0, remove_project_references_in_config_1.removeProjectReferencesInConfig)(tree, schema);
|
|
21
|
+
(0, remove_project_1.removeProject)(tree, project);
|
|
22
|
+
yield (0, update_tsconfig_1.updateTsconfig)(tree, schema);
|
|
23
|
+
if (!schema.skipFormat) {
|
|
24
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
exports.removeGenerator = removeGenerator;
|
|
29
|
+
exports.default = removeGenerator;
|
|
30
|
+
exports.removeSchematic = (0, devkit_1.convertNxGenerator)(removeGenerator);
|
|
31
|
+
//# sourceMappingURL=remove.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/remove/remove.ts"],"names":[],"mappings":";;;;AAAA,uCAKoB;AAEpB,2FAAmF;AACnF,iEAA6D;AAC7D,uDAAmD;AACnD,yDAAqD;AACrD,2DAAuD;AACvD,mGAA4F;AAE5F,iEAA4D;AAE5D,SAAsB,eAAe,CAAC,IAAU,EAAE,MAAc;;QAC9D,MAAM,OAAO,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACnE,MAAM,IAAA,4DAA0B,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QACxD,MAAM,IAAA,sCAAiB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACtC,MAAM,IAAA,4BAAY,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACjC,IAAA,qCAAgB,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QACxC,IAAA,qEAA+B,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC9C,IAAA,8BAAa,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7B,MAAM,IAAA,gCAAc,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YACtB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;IACH,CAAC;CAAA;AAZD,0CAYC;AAED,kBAAe,eAAe,CAAC;AAElB,QAAA,eAAe,GAAG,IAAA,2BAAkB,EAAC,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "NxWorkspaceRemove",
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "Nx Remove",
|
|
6
|
+
"description": "Remove a project from the workspace.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"examples": [
|
|
9
|
+
{
|
|
10
|
+
"command": "nx g @nrwl/workspace:remove my-feature-lib",
|
|
11
|
+
"description": "Remove `my-feature-lib` from the workspace"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"command": "nx g @nrwl/workspace:remove my-feature-lib --forceRemove",
|
|
15
|
+
"description": "Force removal of `my-feature-lib` from the workspace"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"projectName": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"alias": "project",
|
|
22
|
+
"description": "The name of the project to remove.",
|
|
23
|
+
"$default": {
|
|
24
|
+
"$source": "argv",
|
|
25
|
+
"index": 0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"forceRemove": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"aliases": ["force-remove"],
|
|
31
|
+
"description": "When `true`, forces removal even if the project is still in use.",
|
|
32
|
+
"default": false
|
|
33
|
+
},
|
|
34
|
+
"skipFormat": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"aliases": ["skip-format"],
|
|
37
|
+
"description": "Skip formatting files.",
|
|
38
|
+
"default": false,
|
|
39
|
+
"x-priority": "internal"
|
|
40
|
+
},
|
|
41
|
+
"importPath": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "The library name used at creation time"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": ["projectName"]
|
|
47
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Schema } from './schema';
|
|
2
|
+
import { Tree } from '@nx/devkit';
|
|
3
|
+
export declare function runCommandsGenerator(host: Tree, schema: Schema): Promise<void>;
|
|
4
|
+
export default runCommandsGenerator;
|
|
5
|
+
export declare const runCommandsSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runCommandsSchematic = exports.runCommandsGenerator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
function runCommandsGenerator(host, schema) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
const project = (0, devkit_1.readProjectConfiguration)(host, schema.project);
|
|
9
|
+
project.targets = project.targets || {};
|
|
10
|
+
project.targets[schema.name] = {
|
|
11
|
+
executor: 'nx:run-commands',
|
|
12
|
+
outputs: schema.outputs
|
|
13
|
+
? schema.outputs
|
|
14
|
+
.split(',')
|
|
15
|
+
.map((s) => (0, devkit_1.joinPathFragments)('{workspaceRoot}', s.trim()))
|
|
16
|
+
: [],
|
|
17
|
+
options: {
|
|
18
|
+
command: schema.command,
|
|
19
|
+
cwd: schema.cwd,
|
|
20
|
+
envFile: schema.envFile,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
(0, devkit_1.updateProjectConfiguration)(host, schema.project, project);
|
|
24
|
+
yield (0, devkit_1.formatFiles)(host);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
exports.runCommandsGenerator = runCommandsGenerator;
|
|
28
|
+
exports.default = runCommandsGenerator;
|
|
29
|
+
exports.runCommandsSchematic = (0, devkit_1.convertNxGenerator)(runCommandsGenerator);
|
|
30
|
+
//# sourceMappingURL=run-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-commands.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/run-commands/run-commands.ts"],"names":[],"mappings":";;;;AACA,uCAOoB;AAEpB,SAAsB,oBAAoB,CAAC,IAAU,EAAE,MAAc;;QACnE,MAAM,OAAO,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/D,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;QACxC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG;YAC7B,QAAQ,EAAE,iBAAiB;YAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;gBACrB,CAAC,CAAC,MAAM,CAAC,OAAO;qBACX,KAAK,CAAC,GAAG,CAAC;qBACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,0BAAiB,EAAC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;gBAC/D,CAAC,CAAC,EAAE;YACN,OAAO,EAAE;gBACP,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,GAAG,EAAE,MAAM,CAAC,GAAG;gBACf,OAAO,EAAE,MAAM,CAAC,OAAO;aACxB;SACF,CAAC;QACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAE1D,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAnBD,oDAmBC;AAED,kBAAe,oBAAoB,CAAC;AAEvB,QAAA,oBAAoB,GAAG,IAAA,2BAAkB,EAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "SchematicsRunCommands",
|
|
4
|
+
"title": "Create a custom target to run any command",
|
|
5
|
+
"description": "Create a custom target to run any command.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"cli": "nx",
|
|
8
|
+
"examples": [
|
|
9
|
+
{
|
|
10
|
+
"command": "nx g @nrwl/workspace:run-commands printhello --project my-feature-lib --command 'echo hello'",
|
|
11
|
+
"description": "Add the `printhello` target to `my-feature-lib`"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Target name.",
|
|
18
|
+
"$default": {
|
|
19
|
+
"$source": "argv",
|
|
20
|
+
"index": 0
|
|
21
|
+
},
|
|
22
|
+
"x-prompt": "What name would you like to use to invoke the command?"
|
|
23
|
+
},
|
|
24
|
+
"project": {
|
|
25
|
+
"description": "Project name.",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"x-prompt": "What project does the target belong to?",
|
|
28
|
+
"x-dropdown": "projects"
|
|
29
|
+
},
|
|
30
|
+
"command": {
|
|
31
|
+
"description": "Command to run.",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"x-prompt": "What command would you like to run?"
|
|
34
|
+
},
|
|
35
|
+
"cwd": {
|
|
36
|
+
"description": "Current working directory of the command.",
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"outputs": {
|
|
40
|
+
"description": "Allows you to specify where the build artifacts are stored. This allows Nx Cloud to pick them up correctly, in the case that the build artifacts are placed somewhere other than the top level dist folder.",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"envFile": {
|
|
44
|
+
"description": "Env files to be loaded before executing the commands.",
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["name", "command", "project"]
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getNpmPackageVersion(packageName: string): string | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNpmPackageVersion = void 0;
|
|
4
|
+
function getNpmPackageVersion(packageName) {
|
|
5
|
+
try {
|
|
6
|
+
const version = require('child_process').execSync(`npm view ${packageName} version`, { stdio: ['pipe', 'pipe', 'ignore'] });
|
|
7
|
+
if (version) {
|
|
8
|
+
return version
|
|
9
|
+
.toString()
|
|
10
|
+
.trim()
|
|
11
|
+
.replace(/^\n*|\n*$/g, '');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
catch (err) { }
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
exports.getNpmPackageVersion = getNpmPackageVersion;
|
|
18
|
+
//# sourceMappingURL=get-npm-package-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-npm-package-version.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/utils/get-npm-package-version.ts"],"names":[],"mappings":";;;AAAA,SAAgB,oBAAoB,CAAC,WAAmB;IACtD,IAAI;QACF,MAAM,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,CAC/C,YAAY,WAAW,UAAU,EACjC,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,CACtC,CAAC;QAEF,IAAI,OAAO,EAAE;YACX,OAAO,OAAO;iBACX,QAAQ,EAAE;iBACV,IAAI,EAAE;iBACN,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;SAC9B;KACF;IAAC,OAAO,GAAG,EAAE,GAAE;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAfD,oDAeC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.insertImport = void 0;
|
|
4
|
+
const insert_statement_1 = require("./insert-statement");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const typescript_1 = require("../../utilities/typescript");
|
|
7
|
+
let tsModule;
|
|
8
|
+
function insertImport(tree, path, name, modulePath) {
|
|
9
|
+
if (!tsModule) {
|
|
10
|
+
tsModule = (0, typescript_1.ensureTypescript)();
|
|
11
|
+
}
|
|
12
|
+
const { createSourceFile, ScriptTarget, isStringLiteral, isImportDeclaration, isNamedImports, } = tsModule;
|
|
13
|
+
const contents = tree.read(path, 'utf-8');
|
|
14
|
+
const sourceFile = createSourceFile(path, contents, ScriptTarget.ESNext);
|
|
15
|
+
const importStatements = sourceFile.statements.filter(isImportDeclaration);
|
|
16
|
+
const existingImport = importStatements.find((statement) => isStringLiteral(statement.moduleSpecifier) &&
|
|
17
|
+
statement.moduleSpecifier
|
|
18
|
+
.getText(sourceFile)
|
|
19
|
+
.replace(/['"`]/g, '')
|
|
20
|
+
.trim() === modulePath &&
|
|
21
|
+
statement.importClause.namedBindings &&
|
|
22
|
+
isNamedImports(statement.importClause.namedBindings));
|
|
23
|
+
if (!existingImport) {
|
|
24
|
+
(0, insert_statement_1.insertStatement)(tree, path, `import { ${name} } from '${modulePath}';`);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
// TODO: Also check if the namedImport already exists
|
|
28
|
+
const namedImports = existingImport.importClause
|
|
29
|
+
.namedBindings;
|
|
30
|
+
const index = namedImports.getEnd() - 1;
|
|
31
|
+
let text;
|
|
32
|
+
if (namedImports.elements.hasTrailingComma) {
|
|
33
|
+
text = `${name},`;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
text = `,${name}`;
|
|
37
|
+
}
|
|
38
|
+
const newContents = (0, devkit_1.applyChangesToString)(contents, [
|
|
39
|
+
{
|
|
40
|
+
type: devkit_1.ChangeType.Insert,
|
|
41
|
+
index,
|
|
42
|
+
text,
|
|
43
|
+
},
|
|
44
|
+
]);
|
|
45
|
+
tree.write(path, newContents);
|
|
46
|
+
}
|
|
47
|
+
exports.insertImport = insertImport;
|
|
48
|
+
//# sourceMappingURL=insert-import.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-import.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/utils/insert-import.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AACrD,uCAAoE;AAEpE,2DAA8D;AAE9D,IAAI,QAAqC,CAAC;AAE1C,SAAgB,YAAY,CAC1B,IAAU,EACV,IAAY,EACZ,IAAY,EACZ,UAAkB;IAElB,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,IAAA,6BAAgB,GAAE,CAAC;KAC/B;IACD,MAAM,EACJ,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,cAAc,GACf,GAAG,QAAQ,CAAC;IAEb,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE1C,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAEzE,MAAM,gBAAgB,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAE3E,MAAM,cAAc,GAAG,gBAAgB,CAAC,IAAI,CAC1C,CAAC,SAAS,EAAE,EAAE,CACZ,eAAe,CAAC,SAAS,CAAC,eAAe,CAAC;QAC1C,SAAS,CAAC,eAAe;aACtB,OAAO,CAAC,UAAU,CAAC;aACnB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;aACrB,IAAI,EAAE,KAAK,UAAU;QACxB,SAAS,CAAC,YAAY,CAAC,aAAa;QACpC,cAAc,CAAC,SAAS,CAAC,YAAY,CAAC,aAAa,CAAC,CACvD,CAAC;IACF,IAAI,CAAC,cAAc,EAAE;QACnB,IAAA,kCAAe,EAAC,IAAI,EAAE,IAAI,EAAE,YAAY,IAAI,YAAY,UAAU,IAAI,CAAC,CAAC;QACxE,OAAO;KACR;IAED,qDAAqD;IACrD,MAAM,YAAY,GAAG,cAAc,CAAC,YAAY;SAC7C,aAA6B,CAAC;IAEjC,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAExC,IAAI,IAAY,CAAC;IACjB,IAAI,YAAY,CAAC,QAAQ,CAAC,gBAAgB,EAAE;QAC1C,IAAI,GAAG,GAAG,IAAI,GAAG,CAAC;KACnB;SAAM;QACL,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;KACnB;IAED,MAAM,WAAW,GAAG,IAAA,6BAAoB,EAAC,QAAQ,EAAE;QACjD;YACE,IAAI,EAAE,mBAAU,CAAC,MAAM;YACvB,KAAK;YACL,IAAI;SACL;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAChC,CAAC;AA5DD,oCA4DC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.insertStatement = void 0;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const typescript_1 = require("../../utilities/typescript");
|
|
6
|
+
let tsModule;
|
|
7
|
+
/**
|
|
8
|
+
* Insert a statement after the last import statement in a file
|
|
9
|
+
*/
|
|
10
|
+
function insertStatement(tree, path, statement) {
|
|
11
|
+
if (!tsModule) {
|
|
12
|
+
tsModule = (0, typescript_1.ensureTypescript)();
|
|
13
|
+
}
|
|
14
|
+
const { createSourceFile, isImportDeclaration, ScriptTarget } = tsModule;
|
|
15
|
+
const contents = tree.read(path, 'utf-8');
|
|
16
|
+
const sourceFile = createSourceFile(path, contents, ScriptTarget.ESNext);
|
|
17
|
+
const importStatements = sourceFile.statements.filter(isImportDeclaration);
|
|
18
|
+
const index = importStatements.length > 0
|
|
19
|
+
? importStatements[importStatements.length - 1].getEnd()
|
|
20
|
+
: 0;
|
|
21
|
+
if (importStatements.length > 0) {
|
|
22
|
+
statement = `\n${statement}`;
|
|
23
|
+
}
|
|
24
|
+
const newContents = (0, devkit_1.applyChangesToString)(contents, [
|
|
25
|
+
{
|
|
26
|
+
type: devkit_1.ChangeType.Insert,
|
|
27
|
+
index,
|
|
28
|
+
text: statement,
|
|
29
|
+
},
|
|
30
|
+
]);
|
|
31
|
+
tree.write(path, newContents);
|
|
32
|
+
}
|
|
33
|
+
exports.insertStatement = insertStatement;
|
|
34
|
+
//# sourceMappingURL=insert-statement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-statement.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/utils/insert-statement.ts"],"names":[],"mappings":";;;AAAA,uCAAoE;AACpE,2DAA8D;AAE9D,IAAI,QAAqC,CAAC;AAE1C;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAU,EAAE,IAAY,EAAE,SAAiB;IACzE,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,IAAA,6BAAgB,GAAE,CAAC;KAC/B;IACD,MAAM,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;IAEzE,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE1C,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAEzE,MAAM,gBAAgB,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC3E,MAAM,KAAK,GACT,gBAAgB,CAAC,MAAM,GAAG,CAAC;QACzB,CAAC,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE;QACxD,CAAC,CAAC,CAAC,CAAC;IAER,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;QAC/B,SAAS,GAAG,KAAK,SAAS,EAAE,CAAC;KAC9B;IAED,MAAM,WAAW,GAAG,IAAA,6BAAoB,EAAC,QAAQ,EAAE;QACjD;YACE,IAAI,EAAE,mBAAU,CAAC,MAAM;YACvB,KAAK;YACL,IAAI,EAAE,SAAS;SAChB;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAChC,CAAC;AA7BD,0CA6BC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum Preset {
|
|
2
|
+
Apps = "apps",
|
|
3
|
+
Empty = "empty",
|
|
4
|
+
Core = "core",
|
|
5
|
+
NPM = "npm",
|
|
6
|
+
TS = "ts",
|
|
7
|
+
WebComponents = "web-components",
|
|
8
|
+
AngularMonorepo = "angular-monorepo",
|
|
9
|
+
AngularStandalone = "angular-standalone",
|
|
10
|
+
ReactMonorepo = "react-monorepo",
|
|
11
|
+
ReactStandalone = "react-standalone",
|
|
12
|
+
ReactNative = "react-native",
|
|
13
|
+
Expo = "expo",
|
|
14
|
+
NextJs = "next",
|
|
15
|
+
Nest = "nest",
|
|
16
|
+
Express = "express",
|
|
17
|
+
NodeStandalone = "node-standalone"
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Preset = void 0;
|
|
4
|
+
var Preset;
|
|
5
|
+
(function (Preset) {
|
|
6
|
+
Preset["Apps"] = "apps";
|
|
7
|
+
Preset["Empty"] = "empty";
|
|
8
|
+
Preset["Core"] = "core";
|
|
9
|
+
Preset["NPM"] = "npm";
|
|
10
|
+
Preset["TS"] = "ts";
|
|
11
|
+
Preset["WebComponents"] = "web-components";
|
|
12
|
+
Preset["AngularMonorepo"] = "angular-monorepo";
|
|
13
|
+
Preset["AngularStandalone"] = "angular-standalone";
|
|
14
|
+
Preset["ReactMonorepo"] = "react-monorepo";
|
|
15
|
+
Preset["ReactStandalone"] = "react-standalone";
|
|
16
|
+
Preset["ReactNative"] = "react-native";
|
|
17
|
+
Preset["Expo"] = "expo";
|
|
18
|
+
Preset["NextJs"] = "next";
|
|
19
|
+
Preset["Nest"] = "nest";
|
|
20
|
+
Preset["Express"] = "express";
|
|
21
|
+
Preset["NodeStandalone"] = "node-standalone";
|
|
22
|
+
})(Preset = exports.Preset || (exports.Preset = {}));
|
|
23
|
+
//# sourceMappingURL=presets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/utils/presets.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAiBX;AAjBD,WAAY,MAAM;IAChB,uBAAa,CAAA;IACb,yBAAe,CAAA;IACf,uBAAa,CAAA;IACb,qBAAW,CAAA;IACX,mBAAS,CAAA;IACT,0CAAgC,CAAA;IAChC,8CAAoC,CAAA;IACpC,kDAAwC,CAAA;IACxC,0CAAgC,CAAA;IAChC,8CAAoC,CAAA;IACpC,sCAA4B,CAAA;IAC5B,uBAAa,CAAA;IACb,yBAAe,CAAA;IACf,uBAAa,CAAA;IACb,6BAAmB,CAAA;IACnB,4CAAkC,CAAA;AACpC,CAAC,EAjBW,MAAM,GAAN,cAAM,KAAN,cAAM,QAiBjB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tree, formatFiles, installPackagesTask } from '@nrwl/devkit';
|
|
2
|
+
import { libraryGenerator } from '@nrwl/js';
|
|
3
|
+
|
|
4
|
+
export default async function(tree: Tree, schema: any) {
|
|
5
|
+
await libraryGenerator(tree, {name: schema.name});
|
|
6
|
+
await formatFiles(tree);
|
|
7
|
+
return () => {
|
|
8
|
+
installPackagesTask(tree)
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "<%= name %>",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Library name",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "argv",
|
|
12
|
+
"index": 0
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["name"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cli": "nx",
|
|
3
|
+
"$id": "SchematicsNxWorkspaceSchematic",
|
|
4
|
+
"title": "Create a custom generator",
|
|
5
|
+
"description": "Create a custom generator.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Generator name.",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-prompt": "What name would you like to use for the workspace generator?"
|
|
16
|
+
},
|
|
17
|
+
"skipFormat": {
|
|
18
|
+
"description": "Skip formatting files.",
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"default": false,
|
|
21
|
+
"x-priority": "internal"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": ["name"]
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const versions_1 = require("../../utils/versions");
|
|
6
|
+
function default_1(host, schema) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
const options = normalizeOptions(schema);
|
|
9
|
+
(0, devkit_1.generateFiles)(host, (0, devkit_1.joinPathFragments)(__dirname, 'files'), (0, devkit_1.joinPathFragments)('tools/generators', schema.name), options);
|
|
10
|
+
const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, {}, {
|
|
11
|
+
'@nrwl/devkit': versions_1.nxVersion,
|
|
12
|
+
// types/node is neccessary for pnpm since it's used in tsconfig and transitive
|
|
13
|
+
// dependencies are not resolved correctly
|
|
14
|
+
'@types/node': 'latest',
|
|
15
|
+
});
|
|
16
|
+
if (!schema.skipFormat) {
|
|
17
|
+
yield (0, devkit_1.formatFiles)(host);
|
|
18
|
+
}
|
|
19
|
+
return installTask;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
exports.default = default_1;
|
|
23
|
+
function normalizeOptions(options) {
|
|
24
|
+
const name = (0, devkit_1.names)(options.name).fileName;
|
|
25
|
+
return Object.assign(Object.assign({}, options), { name, tmpl: '' });
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=workspace-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-generator.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/workspace-generator/workspace-generator.ts"],"names":[],"mappings":";;;AACA,uCAOoB;AACpB,mDAAiD;AAEjD,mBAA+B,IAAU,EAAE,MAAc;;QACvD,MAAM,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAEzC,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,0BAAiB,EAAC,SAAS,EAAE,OAAO,CAAC,EACrC,IAAA,0BAAiB,EAAC,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC,EAClD,OAAO,CACR,CAAC;QAEF,MAAM,WAAW,GAAG,IAAA,qCAA4B,EAC9C,IAAI,EACJ,EAAE,EACF;YACE,cAAc,EAAE,oBAAS;YACzB,+EAA+E;YAC/E,0CAA0C;YAC1C,aAAa,EAAE,QAAQ;SACxB,CACF,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YACtB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;CAAA;AAzBD,4BAyBC;AAED,SAAS,gBAAgB,CAAC,OAAe;IACvC,MAAM,IAAI,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;IAC1C,uCAAY,OAAO,KAAE,IAAI,EAAE,IAAI,EAAE,EAAE,IAAG;AACxC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setTargetDependencies = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const output_1 = require("../../utilities/output");
|
|
7
|
+
function setTargetDependencies(host) {
|
|
8
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
9
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
const config = (0, devkit_1.readNxJson)(host);
|
|
11
|
+
const strictlyOrderedTargets = ((_c = (_b = (_a = config.tasksRunnerOptions) === null || _a === void 0 ? void 0 : _a['default']) === null || _b === void 0 ? void 0 : _b.options) === null || _c === void 0 ? void 0 : _c.strictlyOrderedTargets) || ['build'];
|
|
12
|
+
(_f = (_e = (_d = config.tasksRunnerOptions) === null || _d === void 0 ? void 0 : _d['default']) === null || _e === void 0 ? void 0 : _e.options) === null || _f === void 0 ? true : delete _f.strictlyOrderedTargets;
|
|
13
|
+
config.targetDependencies = (_g = config.targetDependencies) !== null && _g !== void 0 ? _g : {};
|
|
14
|
+
const updatedStrictlyOrderedTargets = [];
|
|
15
|
+
strictlyOrderedTargets.forEach((target) => {
|
|
16
|
+
if (!config.targetDependencies[target]) {
|
|
17
|
+
config.targetDependencies[target] = [
|
|
18
|
+
{ target, projects: 'dependencies' },
|
|
19
|
+
];
|
|
20
|
+
updatedStrictlyOrderedTargets.push(target);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
(0, devkit_1.updateNxJson)(host, config);
|
|
24
|
+
if (updatedStrictlyOrderedTargets.length > 0) {
|
|
25
|
+
output_1.output.note({
|
|
26
|
+
title: 'Target dependencies have been updated in nx.json',
|
|
27
|
+
bodyLines: [
|
|
28
|
+
`Nx has deprecated strictlyOrderedTargets in favour of targetDependencies.`,
|
|
29
|
+
`Based on your configuration the migration has configured targetDependencies for the following targets: ${updatedStrictlyOrderedTargets.join(', ')}.`,
|
|
30
|
+
`Read more here: https://nx.dev/reference/project-configuration`,
|
|
31
|
+
],
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
yield (0, devkit_1.formatFiles)(host);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
exports.setTargetDependencies = setTargetDependencies;
|
|
38
|
+
exports.default = setTargetDependencies;
|
|
39
|
+
//# sourceMappingURL=add-target-dependencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-target-dependencies.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/migrations/update-12-5-0/add-target-dependencies.ts"],"names":[],"mappings":";;;;AAAA,uCAOoB;AACpB,mDAAgD;AAEhD,SAAsB,qBAAqB,CAAC,IAAU;;;QACpD,MAAM,MAAM,GAER,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC;QAErB,MAAM,sBAAsB,GAAG,CAAA,MAAA,MAAA,MAAA,MAAM,CAAC,kBAAkB,0CAAG,SAAS,CAAC,0CAAE,OAAO,0CAC1E,sBAAsB,KAAI,CAAC,OAAO,CAAC,CAAC;QACjC,MAAA,MAAA,MAAA,MAAM,CAAC,kBAAkB,0CAAG,SAAS,CAAC,0CAAE,OAAO,+CAClD,sBAAsB,CAAC;QAC3B,MAAM,CAAC,kBAAkB,GAAG,MAAA,MAAM,CAAC,kBAAkB,mCAAI,EAAE,CAAC;QAE5D,MAAM,6BAA6B,GAAG,EAAE,CAAC;QACzC,sBAAsB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YACxC,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE;gBACtC,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,GAAG;oBAClC,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE;iBACrC,CAAC;gBACF,6BAA6B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aAC5C;QACH,CAAC,CAAC,CAAC;QACH,IAAA,qBAAY,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAE3B,IAAI,6BAA6B,CAAC,MAAM,GAAG,CAAC,EAAE;YAC5C,eAAM,CAAC,IAAI,CAAC;gBACV,KAAK,EAAE,kDAAkD;gBACzD,SAAS,EAAE;oBACT,2EAA2E;oBAC3E,0GAA0G,6BAA6B,CAAC,IAAI,CAC1I,IAAI,CACL,GAAG;oBACJ,gEAAgE;iBACjE;aACF,CAAC,CAAC;SACJ;QAED,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;;CACzB;AApCD,sDAoCC;AAED,kBAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
function update(tree) {
|
|
6
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
7
|
+
const nxJson = (0, devkit_1.readJson)(tree, 'nx.json');
|
|
8
|
+
// updateProjectConfiguration automatically saves the project opts into workspace/project.json
|
|
9
|
+
if (nxJson.projects) {
|
|
10
|
+
Object.entries(nxJson.projects).forEach(([p, nxJsonConfiguration]) => {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
const configuration = (0, devkit_1.readProjectConfiguration)(tree, p);
|
|
13
|
+
(_a = configuration.tags) !== null && _a !== void 0 ? _a : (configuration.tags = nxJsonConfiguration.tags);
|
|
14
|
+
(_b = configuration.implicitDependencies) !== null && _b !== void 0 ? _b : (configuration.implicitDependencies = nxJsonConfiguration.implicitDependencies);
|
|
15
|
+
(0, devkit_1.updateProjectConfiguration)(tree, p, configuration);
|
|
16
|
+
});
|
|
17
|
+
delete nxJson.projects;
|
|
18
|
+
}
|
|
19
|
+
(0, devkit_1.writeJson)(tree, 'nx.json', nxJson);
|
|
20
|
+
movePropertiesAreInNewLocations(tree); // move config options to new spots.
|
|
21
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
exports.default = update;
|
|
25
|
+
/**
|
|
26
|
+
* `updateWorkspaceConfiguration` already handles
|
|
27
|
+
* placing properties in their new locations, so
|
|
28
|
+
* reading + updating it ensures that props are placed
|
|
29
|
+
* correctly.
|
|
30
|
+
*/
|
|
31
|
+
function movePropertiesAreInNewLocations(tree) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=config-locations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-locations.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/migrations/update-13-0-0/config-locations/config-locations.ts"],"names":[],"mappings":";;;AAAA,uCASoB;AAEpB,SAA8B,MAAM,CAAC,IAAU;;QAC7C,MAAM,MAAM,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,SAAS,CAKtC,CAAC;QACF,8FAA8F;QAC9F,IAAI,MAAM,CAAC,QAAQ,EAAE;YACnB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,EAAE,EAAE;;gBACnE,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,CAAC,CAAC,CAAC;gBACxD,MAAA,aAAa,CAAC,IAAI,oCAAlB,aAAa,CAAC,IAAI,GAAK,mBAAmB,CAAC,IAAI,EAAC;gBAChD,MAAA,aAAa,CAAC,oBAAoB,oCAAlC,aAAa,CAAC,oBAAoB,GAChC,mBAAmB,CAAC,oBAAoB,EAAC;gBAC3C,IAAA,mCAA0B,EAAC,IAAI,EAAE,CAAC,EAAE,aAAa,CAAC,CAAC;YACrD,CAAC,CAAC,CAAC;YACH,OAAO,MAAM,CAAC,QAAQ,CAAC;SACxB;QAED,IAAA,kBAAS,EAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;QAEnC,+BAA+B,CAAC,IAAI,CAAC,CAAC,CAAC,oCAAoC;QAE3E,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAxBD,yBAwBC;AAED;;;;;GAKG;AACH,SAAS,+BAA+B,CAAC,IAAU;IACjD,OAAO;AACT,CAAC"}
|