@angular/cli 22.2.0 → 22.3.0-next.0
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/bin/ng.js +7 -10
- package/bin/version.js +98 -0
- package/index.d.ts +19 -0
- package/lib/chunk-5AASRQKS.js +85 -0
- package/lib/chunk-A2VIYA2E.js +165 -0
- package/lib/chunk-CAZUOCTC.js +225 -0
- package/lib/chunk-DHWVZMLH.js +206 -0
- package/lib/chunk-FZ5GFCWU.js +483 -0
- package/lib/chunk-G7TRU43D.js +42 -0
- package/lib/chunk-GHUUJYOY.js +40 -0
- package/lib/chunk-JBLF2TH3.js +267 -0
- package/lib/chunk-Q67GOPL7.js +380 -0
- package/lib/chunk-SN4KY4Z3.js +24 -0
- package/lib/chunk-XFL2J3CJ.js +24 -0
- package/lib/chunk-XG3HVNIL.js +59 -0
- package/lib/chunk-YM7ILCS5.js +2573 -0
- package/lib/cli/index.js +353 -105
- package/lib/cli-4CMZ6KMR.js +48 -0
- package/lib/cli-4Q7DGTBA.js +33 -0
- package/lib/cli-6AHY7ADW.js +96 -0
- package/lib/cli-A5UAJDO6.js +135 -0
- package/lib/cli-ACLGUIBI.js +2531 -0
- package/lib/cli-BQRFWIMG.js +35 -0
- package/lib/cli-CWICUPZW.js +42 -0
- package/lib/cli-DWQUM3M2.js +29 -0
- package/lib/cli-L4TM4JH3.js +88 -0
- package/lib/cli-LYBZEMDR.js +96 -0
- package/lib/cli-PDCEX7HQ.js +605 -0
- package/lib/cli-PJVTDBQM.js +51 -0
- package/lib/cli-PRIRL3WP.js +185 -0
- package/lib/cli-PU5VH7JB.js +189 -0
- package/lib/cli-QUH44NUB.js +68 -0
- package/lib/cli-VVITNTBC.js +50 -0
- package/lib/cli-XM4L4PP4.js +1651 -0
- package/lib/cli-Y2ECUR33.js +33 -0
- package/lib/cli-YDSMJOSO.js +182 -0
- package/lib/color-SJPGXZVA.js +8 -0
- package/lib/config/schema.json +210 -6
- package/lib/config-QXK7SSVG.js +22 -0
- package/lib/init.js +91 -180
- package/package.json +20 -15
- package/lib/cli/index.d.ts +0 -11
- package/lib/cli/index.js.map +0 -1
- package/lib/config/workspace-schema.d.ts +0 -1025
- package/lib/config/workspace-schema.js +0 -131
- package/lib/config/workspace-schema.js.map +0 -1
- package/lib/init.d.ts +0 -8
- package/lib/init.js.map +0 -1
- package/src/analytics/analytics-collector.d.ts +0 -35
- package/src/analytics/analytics-collector.js +0 -195
- package/src/analytics/analytics-collector.js.map +0 -1
- package/src/analytics/analytics-parameters.d.ts +0 -101
- package/src/analytics/analytics-parameters.js +0 -107
- package/src/analytics/analytics-parameters.js.map +0 -1
- package/src/analytics/analytics.d.ts +0 -27
- package/src/analytics/analytics.js +0 -183
- package/src/analytics/analytics.js.map +0 -1
- package/src/command-builder/architect-base-command-module.d.ts +0 -30
- package/src/command-builder/architect-base-command-module.js +0 -244
- package/src/command-builder/architect-base-command-module.js.map +0 -1
- package/src/command-builder/architect-command-module.d.ts +0 -28
- package/src/command-builder/architect-command-module.js +0 -218
- package/src/command-builder/architect-command-module.js.map +0 -1
- package/src/command-builder/command-module.d.ts +0 -73
- package/src/command-builder/command-module.js +0 -260
- package/src/command-builder/command-module.js.map +0 -1
- package/src/command-builder/command-runner.d.ts +0 -9
- package/src/command-builder/command-runner.js +0 -202
- package/src/command-builder/command-runner.js.map +0 -1
- package/src/command-builder/definitions.d.ts +0 -41
- package/src/command-builder/definitions.js +0 -20
- package/src/command-builder/definitions.js.map +0 -1
- package/src/command-builder/schematics-command-module.d.ts +0 -41
- package/src/command-builder/schematics-command-module.js +0 -408
- package/src/command-builder/schematics-command-module.js.map +0 -1
- package/src/command-builder/utilities/command.d.ts +0 -13
- package/src/command-builder/utilities/command.js +0 -39
- package/src/command-builder/utilities/command.js.map +0 -1
- package/src/command-builder/utilities/json-help.d.ts +0 -37
- package/src/command-builder/utilities/json-help.js +0 -92
- package/src/command-builder/utilities/json-help.js.map +0 -1
- package/src/command-builder/utilities/json-schema.d.ts +0 -64
- package/src/command-builder/utilities/json-schema.js +0 -349
- package/src/command-builder/utilities/json-schema.js.map +0 -1
- package/src/command-builder/utilities/normalize-options-middleware.d.ts +0 -18
- package/src/command-builder/utilities/normalize-options-middleware.js +0 -37
- package/src/command-builder/utilities/normalize-options-middleware.js.map +0 -1
- package/src/command-builder/utilities/schematic-engine-host.d.ts +0 -15
- package/src/command-builder/utilities/schematic-engine-host.js +0 -179
- package/src/command-builder/utilities/schematic-engine-host.js.map +0 -1
- package/src/command-builder/utilities/schematic-workflow.d.ts +0 -14
- package/src/command-builder/utilities/schematic-workflow.js +0 -70
- package/src/command-builder/utilities/schematic-workflow.js.map +0 -1
- package/src/commands/add/cli.d.ts +0 -41
- package/src/commands/add/cli.js +0 -705
- package/src/commands/add/cli.js.map +0 -1
- package/src/commands/add/long-description.md +0 -7
- package/src/commands/analytics/cli.d.ts +0 -16
- package/src/commands/analytics/cli.js +0 -34
- package/src/commands/analytics/cli.js.map +0 -1
- package/src/commands/analytics/info/cli.d.ts +0 -16
- package/src/commands/analytics/info/cli.js +0 -25
- package/src/commands/analytics/info/cli.js.map +0 -1
- package/src/commands/analytics/long-description.md +0 -20
- package/src/commands/analytics/settings/cli.d.ts +0 -35
- package/src/commands/analytics/settings/cli.js +0 -54
- package/src/commands/analytics/settings/cli.js.map +0 -1
- package/src/commands/build/cli.d.ts +0 -16
- package/src/commands/build/cli.js +0 -21
- package/src/commands/build/cli.js.map +0 -1
- package/src/commands/build/long-description.md +0 -18
- package/src/commands/cache/clean/cli.d.ts +0 -17
- package/src/commands/cache/clean/cli.js +0 -32
- package/src/commands/cache/clean/cli.js.map +0 -1
- package/src/commands/cache/cli.d.ts +0 -17
- package/src/commands/cache/cli.js +0 -36
- package/src/commands/cache/cli.js.map +0 -1
- package/src/commands/cache/info/cli.d.ts +0 -20
- package/src/commands/cache/info/cli.js +0 -139
- package/src/commands/cache/info/cli.js.map +0 -1
- package/src/commands/cache/long-description.md +0 -53
- package/src/commands/cache/settings/cli.d.ts +0 -27
- package/src/commands/cache/settings/cli.js +0 -41
- package/src/commands/cache/settings/cli.js.map +0 -1
- package/src/commands/cache/utilities.d.ts +0 -11
- package/src/commands/cache/utilities.js +0 -85
- package/src/commands/cache/utilities.js.map +0 -1
- package/src/commands/command-config.d.ts +0 -17
- package/src/commands/command-config.js +0 -116
- package/src/commands/command-config.js.map +0 -1
- package/src/commands/completion/cli.d.ts +0 -16
- package/src/commands/completion/cli.js +0 -61
- package/src/commands/completion/cli.js.map +0 -1
- package/src/commands/completion/long-description.md +0 -67
- package/src/commands/config/cli.d.ts +0 -24
- package/src/commands/config/cli.js +0 -150
- package/src/commands/config/cli.js.map +0 -1
- package/src/commands/config/long-description.md +0 -13
- package/src/commands/deploy/cli.d.ts +0 -17
- package/src/commands/deploy/cli.js +0 -38
- package/src/commands/deploy/cli.js.map +0 -1
- package/src/commands/deploy/long-description.md +0 -22
- package/src/commands/e2e/cli.d.ts +0 -18
- package/src/commands/e2e/cli.js +0 -42
- package/src/commands/e2e/cli.js.map +0 -1
- package/src/commands/extract-i18n/cli.d.ts +0 -17
- package/src/commands/extract-i18n/cli.js +0 -48
- package/src/commands/extract-i18n/cli.js.map +0 -1
- package/src/commands/generate/cli.d.ts +0 -47
- package/src/commands/generate/cli.js +0 -189
- package/src/commands/generate/cli.js.map +0 -1
- package/src/commands/lint/cli.d.ts +0 -17
- package/src/commands/lint/cli.js +0 -25
- package/src/commands/lint/cli.js.map +0 -1
- package/src/commands/lint/long-description.md +0 -20
- package/src/commands/make-this-awesome/cli.d.ts +0 -17
- package/src/commands/make-this-awesome/cli.js +0 -36
- package/src/commands/make-this-awesome/cli.js.map +0 -1
- package/src/commands/mcp/cli.d.ts +0 -21
- package/src/commands/mcp/cli.js +0 -74
- package/src/commands/mcp/cli.js.map +0 -1
- package/src/commands/mcp/constants.d.ts +0 -10
- package/src/commands/mcp/constants.js +0 -16
- package/src/commands/mcp/constants.js.map +0 -1
- package/src/commands/mcp/devserver.d.ts +0 -85
- package/src/commands/mcp/devserver.js +0 -109
- package/src/commands/mcp/devserver.js.map +0 -1
- package/src/commands/mcp/host.d.ts +0 -103
- package/src/commands/mcp/host.js +0 -270
- package/src/commands/mcp/host.js.map +0 -1
- package/src/commands/mcp/mcp-server.d.ts +0 -38
- package/src/commands/mcp/mcp-server.js +0 -176
- package/src/commands/mcp/mcp-server.js.map +0 -1
- package/src/commands/mcp/resources/ai-tutor.md +0 -822
- package/src/commands/mcp/resources/best-practices.md +0 -59
- package/src/commands/mcp/resources/instructions.d.ts +0 -9
- package/src/commands/mcp/resources/instructions.js +0 -26
- package/src/commands/mcp/resources/instructions.js.map +0 -1
- package/src/commands/mcp/shared-options.d.ts +0 -12
- package/src/commands/mcp/shared-options.js +0 -22
- package/src/commands/mcp/shared-options.js.map +0 -1
- package/src/commands/mcp/tools/ai-tutor.d.ts +0 -12
- package/src/commands/mcp/tools/ai-tutor.js +0 -59
- package/src/commands/mcp/tools/ai-tutor.js.map +0 -1
- package/src/commands/mcp/tools/best-practices.d.ts +0 -13
- package/src/commands/mcp/tools/best-practices.js +0 -196
- package/src/commands/mcp/tools/best-practices.js.map +0 -1
- package/src/commands/mcp/tools/devserver/devserver-start.d.ts +0 -32
- package/src/commands/mcp/tools/devserver/devserver-start.js +0 -110
- package/src/commands/mcp/tools/devserver/devserver-start.js.map +0 -1
- package/src/commands/mcp/tools/devserver/devserver-stop.d.ts +0 -31
- package/src/commands/mcp/tools/devserver/devserver-stop.js +0 -69
- package/src/commands/mcp/tools/devserver/devserver-stop.js.map +0 -1
- package/src/commands/mcp/tools/devserver/devserver-wait-for-build.d.ts +0 -41
- package/src/commands/mcp/tools/devserver/devserver-wait-for-build.js +0 -105
- package/src/commands/mcp/tools/devserver/devserver-wait-for-build.js.map +0 -1
- package/src/commands/mcp/tools/doc-search.d.ts +0 -21
- package/src/commands/mcp/tools/doc-search.js +0 -307
- package/src/commands/mcp/tools/doc-search.js.map +0 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.d.ts +0 -17
- package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.js +0 -62
- package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.js.map +0 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.d.ts +0 -12
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.js +0 -70
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.js.map +0 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.d.ts +0 -12
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.js +0 -60
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.js.map +0 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.d.ts +0 -15
- package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js +0 -238
- package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js.map +0 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.d.ts +0 -9
- package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.js +0 -14
- package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.js.map +0 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.d.ts +0 -36
- package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.js +0 -135
- package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.js.map +0 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/types.d.ts +0 -13
- package/src/commands/mcp/tools/onpush-zoneless-migration/types.js +0 -10
- package/src/commands/mcp/tools/onpush-zoneless-migration/types.js.map +0 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.d.ts +0 -16
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js +0 -211
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js.map +0 -1
- package/src/commands/mcp/tools/projects.d.ts +0 -48
- package/src/commands/mcp/tools/projects.js +0 -541
- package/src/commands/mcp/tools/projects.js.map +0 -1
- package/src/commands/mcp/tools/run-target/build-target-strategy.d.ts +0 -14
- package/src/commands/mcp/tools/run-target/build-target-strategy.js +0 -53
- package/src/commands/mcp/tools/run-target/build-target-strategy.js.map +0 -1
- package/src/commands/mcp/tools/run-target/generic-target-strategy.d.ts +0 -14
- package/src/commands/mcp/tools/run-target/generic-target-strategy.js +0 -63
- package/src/commands/mcp/tools/run-target/generic-target-strategy.js.map +0 -1
- package/src/commands/mcp/tools/run-target/options-serializer.d.ts +0 -13
- package/src/commands/mcp/tools/run-target/options-serializer.js +0 -41
- package/src/commands/mcp/tools/run-target/options-serializer.js.map +0 -1
- package/src/commands/mcp/tools/run-target/run-target.d.ts +0 -34
- package/src/commands/mcp/tools/run-target/run-target.js +0 -69
- package/src/commands/mcp/tools/run-target/run-target.js.map +0 -1
- package/src/commands/mcp/tools/run-target/strategy.d.ts +0 -15
- package/src/commands/mcp/tools/run-target/strategy.js +0 -10
- package/src/commands/mcp/tools/run-target/strategy.js.map +0 -1
- package/src/commands/mcp/tools/run-target/types.d.ts +0 -39
- package/src/commands/mcp/tools/run-target/types.js +0 -41
- package/src/commands/mcp/tools/run-target/types.js.map +0 -1
- package/src/commands/mcp/tools/run-target/unit-test-strategy.d.ts +0 -14
- package/src/commands/mcp/tools/run-target/unit-test-strategy.js +0 -56
- package/src/commands/mcp/tools/run-target/unit-test-strategy.js.map +0 -1
- package/src/commands/mcp/tools/tool-registry.d.ts +0 -40
- package/src/commands/mcp/tools/tool-registry.js +0 -40
- package/src/commands/mcp/tools/tool-registry.js.map +0 -1
- package/src/commands/mcp/utils.d.ts +0 -25
- package/src/commands/mcp/utils.js +0 -44
- package/src/commands/mcp/utils.js.map +0 -1
- package/src/commands/mcp/workspace-utils.d.ts +0 -55
- package/src/commands/mcp/workspace-utils.js +0 -181
- package/src/commands/mcp/workspace-utils.js.map +0 -1
- package/src/commands/new/cli.d.ts +0 -27
- package/src/commands/new/cli.js +0 -76
- package/src/commands/new/cli.js.map +0 -1
- package/src/commands/new/long-description.md +0 -15
- package/src/commands/run/cli.d.ts +0 -25
- package/src/commands/run/cli.js +0 -89
- package/src/commands/run/cli.js.map +0 -1
- package/src/commands/run/long-description.md +0 -10
- package/src/commands/serve/cli.d.ts +0 -16
- package/src/commands/serve/cli.js +0 -20
- package/src/commands/serve/cli.js.map +0 -1
- package/src/commands/test/cli.d.ts +0 -16
- package/src/commands/test/cli.js +0 -21
- package/src/commands/test/cli.js.map +0 -1
- package/src/commands/test/long-description.md +0 -2
- package/src/commands/update/cli.d.ts +0 -50
- package/src/commands/update/cli.js +0 -586
- package/src/commands/update/cli.js.map +0 -1
- package/src/commands/update/long-description.md +0 -22
- package/src/commands/update/update-resolver.d.ts +0 -75
- package/src/commands/update/update-resolver.js +0 -918
- package/src/commands/update/update-resolver.js.map +0 -1
- package/src/commands/update/utilities/cli-version.d.ts +0 -48
- package/src/commands/update/utilities/cli-version.js +0 -196
- package/src/commands/update/utilities/cli-version.js.map +0 -1
- package/src/commands/update/utilities/constants.d.ts +0 -12
- package/src/commands/update/utilities/constants.js +0 -16
- package/src/commands/update/utilities/constants.js.map +0 -1
- package/src/commands/update/utilities/git.d.ts +0 -36
- package/src/commands/update/utilities/git.js +0 -148
- package/src/commands/update/utilities/git.js.map +0 -1
- package/src/commands/update/utilities/migration.d.ts +0 -32
- package/src/commands/update/utilities/migration.js +0 -271
- package/src/commands/update/utilities/migration.js.map +0 -1
- package/src/commands/version/cli.d.ts +0 -36
- package/src/commands/version/cli.js +0 -117
- package/src/commands/version/cli.js.map +0 -1
- package/src/commands/version/version-info.d.ts +0 -46
- package/src/commands/version/version-info.js +0 -101
- package/src/commands/version/version-info.js.map +0 -1
- package/src/package-managers/discovery.d.ts +0 -23
- package/src/package-managers/discovery.js +0 -104
- package/src/package-managers/discovery.js.map +0 -1
- package/src/package-managers/error.d.ts +0 -43
- package/src/package-managers/error.js +0 -41
- package/src/package-managers/error.js.map +0 -1
- package/src/package-managers/factory.d.ts +0 -30
- package/src/package-managers/factory.js +0 -137
- package/src/package-managers/factory.js.map +0 -1
- package/src/package-managers/host.d.ts +0 -86
- package/src/package-managers/host.js +0 -91
- package/src/package-managers/host.js.map +0 -1
- package/src/package-managers/index.d.ts +0 -13
- package/src/package-managers/index.js +0 -17
- package/src/package-managers/index.js.map +0 -1
- package/src/package-managers/logger.d.ts +0 -27
- package/src/package-managers/logger.js +0 -10
- package/src/package-managers/logger.js.map +0 -1
- package/src/package-managers/package-manager-descriptor.d.ts +0 -269
- package/src/package-managers/package-manager-descriptor.js +0 -210
- package/src/package-managers/package-manager-descriptor.js.map +0 -1
- package/src/package-managers/package-manager.d.ts +0 -200
- package/src/package-managers/package-manager.js +0 -720
- package/src/package-managers/package-manager.js.map +0 -1
- package/src/package-managers/package-metadata.d.ts +0 -91
- package/src/package-managers/package-metadata.js +0 -10
- package/src/package-managers/package-metadata.js.map +0 -1
- package/src/package-managers/package-tree.d.ts +0 -23
- package/src/package-managers/package-tree.js +0 -10
- package/src/package-managers/package-tree.js.map +0 -1
- package/src/package-managers/parsers.d.ts +0 -167
- package/src/package-managers/parsers.js +0 -674
- package/src/package-managers/parsers.js.map +0 -1
- package/src/utilities/color.d.ts +0 -23
- package/src/utilities/color.js +0 -41
- package/src/utilities/color.js.map +0 -1
- package/src/utilities/completion.d.ts +0 -30
- package/src/utilities/completion.js +0 -270
- package/src/utilities/completion.js.map +0 -1
- package/src/utilities/config.d.ts +0 -38
- package/src/utilities/config.js +0 -368
- package/src/utilities/config.js.map +0 -1
- package/src/utilities/environment-options.d.ts +0 -25
- package/src/utilities/environment-options.js +0 -60
- package/src/utilities/environment-options.js.map +0 -1
- package/src/utilities/eol.d.ts +0 -20
- package/src/utilities/eol.js +0 -35
- package/src/utilities/eol.js.map +0 -1
- package/src/utilities/error.d.ts +0 -18
- package/src/utilities/error.js +0 -41
- package/src/utilities/error.js.map +0 -1
- package/src/utilities/find-up.d.ts +0 -21
- package/src/utilities/find-up.js +0 -67
- package/src/utilities/find-up.js.map +0 -1
- package/src/utilities/json-file.d.ts +0 -24
- package/src/utilities/json-file.js +0 -179
- package/src/utilities/json-file.js.map +0 -1
- package/src/utilities/log-file.d.ts +0 -13
- package/src/utilities/log-file.js +0 -28
- package/src/utilities/log-file.js.map +0 -1
- package/src/utilities/memoize.d.ts +0 -15
- package/src/utilities/memoize.js +0 -64
- package/src/utilities/memoize.js.map +0 -1
- package/src/utilities/node-version.d.ts +0 -21
- package/src/utilities/node-version.js +0 -65
- package/src/utilities/node-version.js.map +0 -1
- package/src/utilities/prettier.d.ts +0 -19
- package/src/utilities/prettier.js +0 -105
- package/src/utilities/prettier.js.map +0 -1
- package/src/utilities/project.d.ts +0 -8
- package/src/utilities/project.js +0 -81
- package/src/utilities/project.js.map +0 -1
- package/src/utilities/prompt.d.ts +0 -17
- package/src/utilities/prompt.js +0 -90
- package/src/utilities/prompt.js.map +0 -1
- package/src/utilities/tty.d.ts +0 -16
- package/src/utilities/tty.js +0 -23
- package/src/utilities/tty.js.map +0 -1
- package/src/utilities/version.d.ts +0 -16
- package/src/utilities/version.js +0 -26
- package/src/utilities/version.js.map +0 -1
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
const node_crypto_1 = require("node:crypto");
|
|
11
|
-
const node_path_1 = require("node:path");
|
|
12
|
-
const command_module_1 = require("../../command-builder/command-module");
|
|
13
|
-
const config_1 = require("../../utilities/config");
|
|
14
|
-
const json_file_1 = require("../../utilities/json-file");
|
|
15
|
-
class ConfigCommandModule extends command_module_1.CommandModule {
|
|
16
|
-
command = 'config [json-path] [value]';
|
|
17
|
-
describe = 'Retrieves or sets Angular configuration values in the angular.json file for the workspace.';
|
|
18
|
-
longDescriptionPath = (0, node_path_1.join)(__dirname, 'long-description.md');
|
|
19
|
-
builder(localYargs) {
|
|
20
|
-
return localYargs
|
|
21
|
-
.positional('json-path', {
|
|
22
|
-
description: `The configuration key to set or query, in JSON path format. ` +
|
|
23
|
-
`For example: "a[3].foo.bar[2]". If no new value is provided, returns the current value of this key.`,
|
|
24
|
-
type: 'string',
|
|
25
|
-
})
|
|
26
|
-
.positional('value', {
|
|
27
|
-
description: 'If provided, a new value for the given configuration key.',
|
|
28
|
-
type: 'string',
|
|
29
|
-
})
|
|
30
|
-
.option('global', {
|
|
31
|
-
description: `Access the global configuration in the caller's home directory.`,
|
|
32
|
-
alias: ['g'],
|
|
33
|
-
type: 'boolean',
|
|
34
|
-
default: false,
|
|
35
|
-
})
|
|
36
|
-
.strict();
|
|
37
|
-
}
|
|
38
|
-
async run(options) {
|
|
39
|
-
const level = options.global ? 'global' : 'local';
|
|
40
|
-
const [config] = await (0, config_1.getWorkspaceRaw)(level);
|
|
41
|
-
if (options.value == undefined) {
|
|
42
|
-
if (!config) {
|
|
43
|
-
this.context.logger.error('No config found.');
|
|
44
|
-
return 1;
|
|
45
|
-
}
|
|
46
|
-
return this.get(config, options);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return this.set(options);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
get(jsonFile, options) {
|
|
53
|
-
const { logger } = this.context;
|
|
54
|
-
const value = options.jsonPath
|
|
55
|
-
? jsonFile.get(parseJsonPath(options.jsonPath))
|
|
56
|
-
: jsonFile.content;
|
|
57
|
-
if (value === undefined) {
|
|
58
|
-
logger.error('Value cannot be found.');
|
|
59
|
-
return 1;
|
|
60
|
-
}
|
|
61
|
-
else if (typeof value === 'string') {
|
|
62
|
-
logger.info(value);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
logger.info(JSON.stringify(value, null, 2));
|
|
66
|
-
}
|
|
67
|
-
return 0;
|
|
68
|
-
}
|
|
69
|
-
async set(options) {
|
|
70
|
-
if (!options.jsonPath?.trim()) {
|
|
71
|
-
throw new command_module_1.CommandModuleError('Invalid Path.');
|
|
72
|
-
}
|
|
73
|
-
const [config, configPath] = await (0, config_1.getWorkspaceRaw)(options.global ? 'global' : 'local');
|
|
74
|
-
const { logger } = this.context;
|
|
75
|
-
if (!config || !configPath) {
|
|
76
|
-
throw new command_module_1.CommandModuleError('Confguration file cannot be found.');
|
|
77
|
-
}
|
|
78
|
-
const normalizeUUIDValue = (v) => (v === '' ? (0, node_crypto_1.randomUUID)() : `${v}`);
|
|
79
|
-
const value = options.jsonPath === 'cli.analyticsSharing.uuid'
|
|
80
|
-
? normalizeUUIDValue(options.value)
|
|
81
|
-
: options.value;
|
|
82
|
-
const modified = config.modify(parseJsonPath(options.jsonPath), normalizeValue(value));
|
|
83
|
-
if (!modified) {
|
|
84
|
-
logger.error('Value cannot be found.');
|
|
85
|
-
return 1;
|
|
86
|
-
}
|
|
87
|
-
await (0, config_1.validateWorkspace)((0, json_file_1.parseJson)(config.content), options.global ?? false);
|
|
88
|
-
config.save();
|
|
89
|
-
return 0;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
exports.default = ConfigCommandModule;
|
|
93
|
-
/**
|
|
94
|
-
* Splits a JSON path string into fragments. Fragments can be used to get the value referenced
|
|
95
|
-
* by the path. For example, a path of "a[3].foo.bar[2]" would give you a fragment array of
|
|
96
|
-
* ["a", 3, "foo", "bar", 2].
|
|
97
|
-
* @param path The JSON string to parse.
|
|
98
|
-
* @returns {(string|number)[]} The fragments for the string.
|
|
99
|
-
* @private
|
|
100
|
-
*/
|
|
101
|
-
function parseJsonPath(path) {
|
|
102
|
-
const fragments = (path || '').split(/\./g);
|
|
103
|
-
const result = [];
|
|
104
|
-
while (fragments.length > 0) {
|
|
105
|
-
const fragment = fragments.shift();
|
|
106
|
-
if (fragment == undefined) {
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
const match = fragment.match(/([^[]+)((\[.*\])*)/);
|
|
110
|
-
if (!match) {
|
|
111
|
-
throw new command_module_1.CommandModuleError('Invalid JSON path.');
|
|
112
|
-
}
|
|
113
|
-
result.push(match[1]);
|
|
114
|
-
if (match[2]) {
|
|
115
|
-
const indices = match[2]
|
|
116
|
-
.slice(1, -1)
|
|
117
|
-
.split('][')
|
|
118
|
-
.map((x) => (/^\d$/.test(x) ? +x : x.replace(/"|'/g, '')));
|
|
119
|
-
result.push(...indices);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return result.filter((fragment) => fragment != null);
|
|
123
|
-
}
|
|
124
|
-
function normalizeValue(value) {
|
|
125
|
-
const valueString = `${value}`.trim();
|
|
126
|
-
switch (valueString) {
|
|
127
|
-
case 'true':
|
|
128
|
-
return true;
|
|
129
|
-
case 'false':
|
|
130
|
-
return false;
|
|
131
|
-
case 'null':
|
|
132
|
-
return null;
|
|
133
|
-
case 'undefined':
|
|
134
|
-
return undefined;
|
|
135
|
-
}
|
|
136
|
-
if (isFinite(+valueString)) {
|
|
137
|
-
return +valueString;
|
|
138
|
-
}
|
|
139
|
-
try {
|
|
140
|
-
// We use `JSON.parse` instead of `parseJson` because the latter will parse UUIDs
|
|
141
|
-
// and convert them into a numberic entities.
|
|
142
|
-
// Example: 73b61974-182c-48e4-b4c6-30ddf08c5c98 -> 73.
|
|
143
|
-
// These values should never contain comments, therefore using `JSON.parse` is safe.
|
|
144
|
-
return JSON.parse(valueString);
|
|
145
|
-
}
|
|
146
|
-
catch {
|
|
147
|
-
return value;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["cli.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAGH,6CAA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AM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
A workspace has a single CLI configuration file, `angular.json`, at the top level.
|
|
2
|
-
The `projects` object contains a configuration object for each project in the workspace.
|
|
3
|
-
|
|
4
|
-
You can edit the configuration directly in a code editor,
|
|
5
|
-
or indirectly on the command line using this command.
|
|
6
|
-
|
|
7
|
-
The configurable property names match command option names,
|
|
8
|
-
except that in the configuration file, all names must use camelCase,
|
|
9
|
-
while on the command line options can be given dash-case.
|
|
10
|
-
|
|
11
|
-
For further details, see [Workspace Configuration](reference/configs/workspace-config).
|
|
12
|
-
|
|
13
|
-
For configuration of CLI usage analytics, see [ng analytics](cli/analytics).
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
import { MissingTargetChoice } from '../../command-builder/architect-base-command-module';
|
|
9
|
-
import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
|
|
10
|
-
import { CommandModuleImplementation } from '../../command-builder/command-module';
|
|
11
|
-
export default class DeployCommandModule extends ArchitectCommandModule implements CommandModuleImplementation {
|
|
12
|
-
missingTargetChoices: MissingTargetChoice[];
|
|
13
|
-
multiTarget: boolean;
|
|
14
|
-
command: string;
|
|
15
|
-
longDescriptionPath: string;
|
|
16
|
-
describe: string;
|
|
17
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
const node_path_1 = require("node:path");
|
|
11
|
-
const architect_command_module_1 = require("../../command-builder/architect-command-module");
|
|
12
|
-
class DeployCommandModule extends architect_command_module_1.ArchitectCommandModule {
|
|
13
|
-
// The below choices should be kept in sync with the list in https://angular.dev/tools/cli/deployment
|
|
14
|
-
missingTargetChoices = [
|
|
15
|
-
{
|
|
16
|
-
name: 'Amazon S3',
|
|
17
|
-
value: '@jefiozie/ngx-aws-deploy',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'Firebase',
|
|
21
|
-
value: '@angular/fire',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: 'Netlify',
|
|
25
|
-
value: '@netlify-builder/deploy',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'GitHub Pages',
|
|
29
|
-
value: 'angular-cli-ghpages',
|
|
30
|
-
},
|
|
31
|
-
];
|
|
32
|
-
multiTarget = false;
|
|
33
|
-
command = 'deploy [project]';
|
|
34
|
-
longDescriptionPath = (0, node_path_1.join)(__dirname, 'long-description.md');
|
|
35
|
-
describe = 'Invokes the deploy builder for a specified project or for the default project in the workspace.';
|
|
36
|
-
}
|
|
37
|
-
exports.default = DeployCommandModule;
|
|
38
|
-
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["cli.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,yCAAiC;AAEjC,6FAAwF;AAGxF,MAAqB,mBACnB,SAAQ,iDAAsB;IAG9B,qGAAqG;IAC5F,oBAAoB,GAA0B;QACrD;YACE,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,0BAA0B;SAClC;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,eAAe;SACvB;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,yBAAyB;SACjC;QACD;YACE,IAAI,EAAE,cAAc;YACpB,KAAK,EAAE,qBAAqB;SAC7B;KACF,CAAC;IAEF,WAAW,GAAG,KAAK,CAAC;IACpB,OAAO,GAAG,kBAAkB,CAAC;IAC7B,mBAAmB,GAAG,IAAA,gBAAI,EAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;IAC7D,QAAQ,GACN,iGAAiG,CAAC;CACrG;AA7BD,sCA6BC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file.
|
|
2
|
-
When a project name is not supplied, executes the `deploy` builder for the default project.
|
|
3
|
-
|
|
4
|
-
To use the `ng deploy` command, use `ng add` to add a package that implements deployment capabilities to your favorite platform.
|
|
5
|
-
Adding the package automatically updates your workspace configuration, adding a deployment
|
|
6
|
-
[CLI builder](tools/cli/cli-builder).
|
|
7
|
-
For example:
|
|
8
|
-
|
|
9
|
-
```json
|
|
10
|
-
"projects": {
|
|
11
|
-
"my-project": {
|
|
12
|
-
...
|
|
13
|
-
"architect": {
|
|
14
|
-
...
|
|
15
|
-
"deploy": {
|
|
16
|
-
"builder": "@angular/fire:deploy",
|
|
17
|
-
"options": {}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
```
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
import { MissingTargetChoice } from '../../command-builder/architect-base-command-module';
|
|
9
|
-
import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
|
|
10
|
-
import { CommandModuleImplementation } from '../../command-builder/command-module';
|
|
11
|
-
export default class E2eCommandModule extends ArchitectCommandModule implements CommandModuleImplementation {
|
|
12
|
-
missingTargetChoices: MissingTargetChoice[];
|
|
13
|
-
multiTarget: boolean;
|
|
14
|
-
command: string;
|
|
15
|
-
aliases: string[] | undefined;
|
|
16
|
-
describe: string;
|
|
17
|
-
longDescriptionPath?: string;
|
|
18
|
-
}
|
package/src/commands/e2e/cli.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
const architect_command_module_1 = require("../../command-builder/architect-command-module");
|
|
11
|
-
const command_config_1 = require("../command-config");
|
|
12
|
-
class E2eCommandModule extends architect_command_module_1.ArchitectCommandModule {
|
|
13
|
-
missingTargetChoices = [
|
|
14
|
-
{
|
|
15
|
-
name: 'Playwright',
|
|
16
|
-
value: 'playwright-ng-schematics',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'Cypress',
|
|
20
|
-
value: '@cypress/schematic',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'Nightwatch',
|
|
24
|
-
value: '@nightwatch/schematics',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: 'WebdriverIO',
|
|
28
|
-
value: '@wdio/schematics',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: 'Puppeteer',
|
|
32
|
-
value: '@puppeteer/ng-schematics',
|
|
33
|
-
},
|
|
34
|
-
];
|
|
35
|
-
multiTarget = true;
|
|
36
|
-
command = 'e2e [project]';
|
|
37
|
-
aliases = command_config_1.RootCommands['e2e'].aliases;
|
|
38
|
-
describe = 'Builds and serves an Angular application, then runs end-to-end tests.';
|
|
39
|
-
longDescriptionPath;
|
|
40
|
-
}
|
|
41
|
-
exports.default = E2eCommandModule;
|
|
42
|
-
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["cli.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAGH,6FAAwF;AAExF,sDAAiD;AAEjD,MAAqB,gBACnB,SAAQ,iDAAsB;IAGrB,oBAAoB,GAA0B;QACrD;YACE,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,0BAA0B;SAClC;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,oBAAoB;SAC5B;QACD;YACE,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,wBAAwB;SAChC;QACD;YACE,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,kBAAkB;SAC1B;QACD;YACE,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,0BAA0B;SAClC;KACF,CAAC;IAEF,WAAW,GAAG,IAAI,CAAC;IACnB,OAAO,GAAG,eAAe,CAAC;IAC1B,OAAO,GAAG,6BAAY,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;IACtC,QAAQ,GAAG,uEAAuE,CAAC;IACnF,mBAAmB,CAAU;CAC9B;AAhCD,mCAgCC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
import { workspaces } from '@angular-devkit/core';
|
|
9
|
-
import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
|
|
10
|
-
import { CommandModuleImplementation } from '../../command-builder/command-module';
|
|
11
|
-
export default class ExtractI18nCommandModule extends ArchitectCommandModule implements CommandModuleImplementation {
|
|
12
|
-
multiTarget: boolean;
|
|
13
|
-
command: string;
|
|
14
|
-
describe: string;
|
|
15
|
-
longDescriptionPath?: string | undefined;
|
|
16
|
-
findDefaultBuilderName(project: workspaces.ProjectDefinition): Promise<string | undefined>;
|
|
17
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
const node_module_1 = require("node:module");
|
|
11
|
-
const node_path_1 = require("node:path");
|
|
12
|
-
const architect_command_module_1 = require("../../command-builder/architect-command-module");
|
|
13
|
-
class ExtractI18nCommandModule extends architect_command_module_1.ArchitectCommandModule {
|
|
14
|
-
multiTarget = false;
|
|
15
|
-
command = 'extract-i18n [project]';
|
|
16
|
-
describe = 'Extracts i18n messages from source code.';
|
|
17
|
-
longDescriptionPath;
|
|
18
|
-
async findDefaultBuilderName(project) {
|
|
19
|
-
// Only application type projects have a default i18n extraction target
|
|
20
|
-
if (project.extensions['projectType'] !== 'application') {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const buildTarget = project.targets.get('build');
|
|
24
|
-
if (!buildTarget) {
|
|
25
|
-
// No default if there is no build target
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
// Provide a default based on the defined builder for the 'build' target
|
|
29
|
-
switch (buildTarget.builder) {
|
|
30
|
-
case '@angular-devkit/build-angular:application':
|
|
31
|
-
case '@angular-devkit/build-angular:browser-esbuild':
|
|
32
|
-
case '@angular-devkit/build-angular:browser':
|
|
33
|
-
return '@angular-devkit/build-angular:extract-i18n';
|
|
34
|
-
case '@angular/build:application':
|
|
35
|
-
return '@angular/build:extract-i18n';
|
|
36
|
-
}
|
|
37
|
-
// For other builders, check for `@angular-devkit/build-angular` and use if found.
|
|
38
|
-
// This package is safer to use since it supports both application builder types.
|
|
39
|
-
try {
|
|
40
|
-
const projectRequire = (0, node_module_1.createRequire)((0, node_path_1.join)(this.context.root, project.root) + '/');
|
|
41
|
-
projectRequire.resolve('@angular-devkit/build-angular');
|
|
42
|
-
return '@angular-devkit/build-angular:extract-i18n';
|
|
43
|
-
}
|
|
44
|
-
catch { }
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.default = ExtractI18nCommandModule;
|
|
48
|
-
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["cli.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAGH,6CAA4C;AAC5C,yCAAiC;AACjC,6FAAwF;AAGxF,MAAqB,wBACnB,SAAQ,iDAAsB;IAG9B,WAAW,GAAG,KAAK,CAAC;IACpB,OAAO,GAAG,wBAAwB,CAAC;IACnC,QAAQ,GAAG,0CAA0C,CAAC;IACtD,mBAAmB,CAAsB;IAEhC,KAAK,CAAC,sBAAsB,CACnC,OAAqC;QAErC,uEAAuE;QACvE,IAAI,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,aAAa,EAAE,CAAC;YACxD,OAAO;QACT,CAAC;QAED,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,yCAAyC;YACzC,OAAO;QACT,CAAC;QAED,wEAAwE;QACxE,QAAQ,WAAW,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,2CAA2C,CAAC;YACjD,KAAK,+CAA+C,CAAC;YACrD,KAAK,uCAAuC;gBAC1C,OAAO,4CAA4C,CAAC;YACtD,KAAK,4BAA4B;gBAC/B,OAAO,6BAA6B,CAAC;QACzC,CAAC;QAED,kFAAkF;QAClF,iFAAiF;QACjF,IAAI,CAAC;YACH,MAAM,cAAc,GAAG,IAAA,2BAAa,EAAC,IAAA,gBAAI,EAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;YAClF,cAAc,CAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC;YAExD,OAAO,4CAA4C,CAAC;QACtD,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;IACZ,CAAC;CACF;AA1CD,2CA0CC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
import { Argv } from 'yargs';
|
|
9
|
-
import { CommandModuleImplementation, Options, OtherOptions } from '../../command-builder/command-module';
|
|
10
|
-
import { SchematicsCommandArgs, SchematicsCommandModule } from '../../command-builder/schematics-command-module';
|
|
11
|
-
interface GenerateCommandArgs extends SchematicsCommandArgs {
|
|
12
|
-
schematic?: string;
|
|
13
|
-
}
|
|
14
|
-
export default class GenerateCommandModule extends SchematicsCommandModule implements CommandModuleImplementation<GenerateCommandArgs> {
|
|
15
|
-
command: string;
|
|
16
|
-
aliases: string[] | undefined;
|
|
17
|
-
describe: string;
|
|
18
|
-
longDescriptionPath?: string | undefined;
|
|
19
|
-
builder(argv: Argv): Promise<Argv<GenerateCommandArgs>>;
|
|
20
|
-
run(options: Options<GenerateCommandArgs> & OtherOptions): Promise<number | void>;
|
|
21
|
-
private getCollectionNames;
|
|
22
|
-
private shouldAddCollectionNameAsPartOfCommand;
|
|
23
|
-
/**
|
|
24
|
-
* Generate an aliases string array to be passed to the command builder.
|
|
25
|
-
*
|
|
26
|
-
* @example `[component]` or `[@schematics/angular:component]`.
|
|
27
|
-
*/
|
|
28
|
-
private generateCommandAliasesStrings;
|
|
29
|
-
/**
|
|
30
|
-
* Generate a command string to be passed to the command builder.
|
|
31
|
-
*
|
|
32
|
-
* @example `component [name]` or `@schematics/angular:component [name]`.
|
|
33
|
-
*/
|
|
34
|
-
private generateCommandString;
|
|
35
|
-
/**
|
|
36
|
-
* Get schematics that can to be registered as subcommands.
|
|
37
|
-
*/
|
|
38
|
-
private getSchematics;
|
|
39
|
-
private listSchematicAliases;
|
|
40
|
-
/**
|
|
41
|
-
* Get schematics that should to be registered as subcommands.
|
|
42
|
-
*
|
|
43
|
-
* @returns a sorted list of schematic that needs to be registered as subcommands.
|
|
44
|
-
*/
|
|
45
|
-
private getSchematicsToRegister;
|
|
46
|
-
}
|
|
47
|
-
export {};
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
const core_1 = require("@angular-devkit/core");
|
|
11
|
-
const command_module_1 = require("../../command-builder/command-module");
|
|
12
|
-
const schematics_command_module_1 = require("../../command-builder/schematics-command-module");
|
|
13
|
-
const command_1 = require("../../command-builder/utilities/command");
|
|
14
|
-
const command_config_1 = require("../command-config");
|
|
15
|
-
class GenerateCommandModule extends schematics_command_module_1.SchematicsCommandModule {
|
|
16
|
-
command = 'generate';
|
|
17
|
-
aliases = command_config_1.RootCommands['generate'].aliases;
|
|
18
|
-
describe = 'Generates and/or modifies files based on a schematic.';
|
|
19
|
-
longDescriptionPath;
|
|
20
|
-
async builder(argv) {
|
|
21
|
-
let localYargs = (await super.builder(argv)).command({
|
|
22
|
-
command: '$0 <schematic>',
|
|
23
|
-
describe: 'Run the provided schematic.',
|
|
24
|
-
builder: (localYargs) => localYargs
|
|
25
|
-
.positional('schematic', {
|
|
26
|
-
describe: 'The [collection:schematic] to run.',
|
|
27
|
-
type: 'string',
|
|
28
|
-
demandOption: true,
|
|
29
|
-
})
|
|
30
|
-
.strict(),
|
|
31
|
-
handler: (options) => this.handler(options),
|
|
32
|
-
});
|
|
33
|
-
for (const [schematicName, collectionName] of await this.getSchematicsToRegister()) {
|
|
34
|
-
const workflow = this.getOrCreateWorkflowForBuilder(collectionName);
|
|
35
|
-
const collection = workflow.engine.createCollection(collectionName);
|
|
36
|
-
const { description: { schemaJson, aliases: schematicAliases, hidden: schematicHidden, description: schematicDescription, }, } = collection.createSchematic(schematicName, true);
|
|
37
|
-
if (!schemaJson) {
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
const { 'x-deprecated': xDeprecated, description = schematicDescription, hidden = schematicHidden, } = schemaJson;
|
|
41
|
-
const options = await this.getSchematicOptions(collection, schematicName, workflow);
|
|
42
|
-
localYargs = localYargs.command({
|
|
43
|
-
command: await this.generateCommandString(collectionName, schematicName, options),
|
|
44
|
-
// When 'describe' is set to false, it results in a hidden command.
|
|
45
|
-
describe: hidden === true ? false : typeof description === 'string' ? description : '',
|
|
46
|
-
deprecated: xDeprecated === true || typeof xDeprecated === 'string' ? xDeprecated : false,
|
|
47
|
-
aliases: Array.isArray(schematicAliases)
|
|
48
|
-
? await this.generateCommandAliasesStrings(collectionName, schematicAliases)
|
|
49
|
-
: undefined,
|
|
50
|
-
builder: (localYargs) => this.addSchemaOptionsToCommand(localYargs, options).strict(),
|
|
51
|
-
handler: (options) => this.handler({
|
|
52
|
-
...options,
|
|
53
|
-
schematic: `${collectionName}:${schematicName}`,
|
|
54
|
-
}),
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
return localYargs.demandCommand(1, command_1.demandCommandFailureMessage);
|
|
58
|
-
}
|
|
59
|
-
async run(options) {
|
|
60
|
-
const { dryRun, schematic, defaults, force, interactive, ...schematicOptions } = options;
|
|
61
|
-
const [collectionName, schematicName] = this.parseSchematicInfo(schematic);
|
|
62
|
-
if (!collectionName || !schematicName) {
|
|
63
|
-
throw new command_module_1.CommandModuleError('A collection and schematic is required during execution.');
|
|
64
|
-
}
|
|
65
|
-
return this.runSchematic({
|
|
66
|
-
collectionName,
|
|
67
|
-
schematicName,
|
|
68
|
-
schematicOptions,
|
|
69
|
-
executionOptions: {
|
|
70
|
-
dryRun,
|
|
71
|
-
defaults,
|
|
72
|
-
force,
|
|
73
|
-
interactive,
|
|
74
|
-
},
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
async getCollectionNames() {
|
|
78
|
-
const [collectionName] = this.parseSchematicInfo(
|
|
79
|
-
// positional = [generate, component] or [generate]
|
|
80
|
-
this.context.args.positional[1]);
|
|
81
|
-
return collectionName ? [collectionName] : [...(await this.getSchematicCollections())];
|
|
82
|
-
}
|
|
83
|
-
async shouldAddCollectionNameAsPartOfCommand() {
|
|
84
|
-
const [collectionNameFromArgs] = this.parseSchematicInfo(
|
|
85
|
-
// positional = [generate, component] or [generate]
|
|
86
|
-
this.context.args.positional[1]);
|
|
87
|
-
const schematicCollectionsFromConfig = await this.getSchematicCollections();
|
|
88
|
-
const collectionNames = await this.getCollectionNames();
|
|
89
|
-
// Only add the collection name as part of the command when it's not a known
|
|
90
|
-
// schematics collection or when it has been provided via the CLI.
|
|
91
|
-
// Ex:`ng generate @schematics/angular:c`
|
|
92
|
-
return (!!collectionNameFromArgs ||
|
|
93
|
-
!collectionNames.some((c) => schematicCollectionsFromConfig.has(c)));
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Generate an aliases string array to be passed to the command builder.
|
|
97
|
-
*
|
|
98
|
-
* @example `[component]` or `[@schematics/angular:component]`.
|
|
99
|
-
*/
|
|
100
|
-
async generateCommandAliasesStrings(collectionName, schematicAliases) {
|
|
101
|
-
// Only add the collection name as part of the command when it's not a known
|
|
102
|
-
// schematics collection or when it has been provided via the CLI.
|
|
103
|
-
// Ex:`ng generate @schematics/angular:c`
|
|
104
|
-
return (await this.shouldAddCollectionNameAsPartOfCommand())
|
|
105
|
-
? schematicAliases.map((alias) => `${collectionName}:${alias}`)
|
|
106
|
-
: schematicAliases;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Generate a command string to be passed to the command builder.
|
|
110
|
-
*
|
|
111
|
-
* @example `component [name]` or `@schematics/angular:component [name]`.
|
|
112
|
-
*/
|
|
113
|
-
async generateCommandString(collectionName, schematicName, options) {
|
|
114
|
-
const dasherizedSchematicName = core_1.strings.dasherize(schematicName);
|
|
115
|
-
// Only add the collection name as part of the command when it's not a known
|
|
116
|
-
// schematics collection or when it has been provided via the CLI.
|
|
117
|
-
// Ex:`ng generate @schematics/angular:component`
|
|
118
|
-
const commandName = (await this.shouldAddCollectionNameAsPartOfCommand())
|
|
119
|
-
? collectionName + ':' + dasherizedSchematicName
|
|
120
|
-
: dasherizedSchematicName;
|
|
121
|
-
const positionalArgs = options
|
|
122
|
-
.filter((o) => o.positional !== undefined)
|
|
123
|
-
.map((o) => {
|
|
124
|
-
const label = `${core_1.strings.dasherize(o.name)}${o.type === 'array' ? ' ..' : ''}`;
|
|
125
|
-
return o.required ? `<${label}>` : `[${label}]`;
|
|
126
|
-
})
|
|
127
|
-
.join(' ');
|
|
128
|
-
return `${commandName}${positionalArgs ? ' ' + positionalArgs : ''}`;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Get schematics that can to be registered as subcommands.
|
|
132
|
-
*/
|
|
133
|
-
async *getSchematics() {
|
|
134
|
-
const seenNames = new Set();
|
|
135
|
-
for (const collectionName of await this.getCollectionNames()) {
|
|
136
|
-
const workflow = this.getOrCreateWorkflowForBuilder(collectionName);
|
|
137
|
-
const collection = workflow.engine.createCollection(collectionName);
|
|
138
|
-
for (const schematicName of collection.listSchematicNames(true /** includeHidden */)) {
|
|
139
|
-
// If a schematic with this same name is already registered skip.
|
|
140
|
-
if (!seenNames.has(schematicName)) {
|
|
141
|
-
seenNames.add(schematicName);
|
|
142
|
-
yield {
|
|
143
|
-
schematicName,
|
|
144
|
-
collectionName,
|
|
145
|
-
schematicAliases: this.listSchematicAliases(collection, schematicName),
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
listSchematicAliases(collection, schematicName) {
|
|
152
|
-
const description = collection.description.schematics[schematicName];
|
|
153
|
-
if (description) {
|
|
154
|
-
return description.aliases && new Set(description.aliases);
|
|
155
|
-
}
|
|
156
|
-
// Extended collections
|
|
157
|
-
if (collection.baseDescriptions) {
|
|
158
|
-
for (const base of collection.baseDescriptions) {
|
|
159
|
-
const description = base.schematics[schematicName];
|
|
160
|
-
if (description) {
|
|
161
|
-
return description.aliases && new Set(description.aliases);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return undefined;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Get schematics that should to be registered as subcommands.
|
|
169
|
-
*
|
|
170
|
-
* @returns a sorted list of schematic that needs to be registered as subcommands.
|
|
171
|
-
*/
|
|
172
|
-
async getSchematicsToRegister() {
|
|
173
|
-
const schematicsToRegister = [];
|
|
174
|
-
const [, schematicNameFromArgs] = this.parseSchematicInfo(
|
|
175
|
-
// positional = [generate, component] or [generate]
|
|
176
|
-
this.context.args.positional[1]);
|
|
177
|
-
for await (const { schematicName, collectionName, schematicAliases } of this.getSchematics()) {
|
|
178
|
-
if (schematicNameFromArgs &&
|
|
179
|
-
(schematicName === schematicNameFromArgs || schematicAliases?.has(schematicNameFromArgs))) {
|
|
180
|
-
return [[schematicName, collectionName]];
|
|
181
|
-
}
|
|
182
|
-
schematicsToRegister.push([schematicName, collectionName]);
|
|
183
|
-
}
|
|
184
|
-
// Didn't find the schematic or no schematic name was provided Ex: `ng generate --help`.
|
|
185
|
-
return schematicsToRegister.sort(([nameA], [nameB]) => nameA.localeCompare(nameB, undefined, { sensitivity: 'accent' }));
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
exports.default = GenerateCommandModule;
|
|
189
|
-
//# sourceMapp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