@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,218 +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
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
10
|
-
var useValue = arguments.length > 2;
|
|
11
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
12
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
13
|
-
}
|
|
14
|
-
return useValue ? value : void 0;
|
|
15
|
-
};
|
|
16
|
-
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
17
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
18
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
19
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
20
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
21
|
-
var _, done = false;
|
|
22
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
23
|
-
var context = {};
|
|
24
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
25
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
26
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
27
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
28
|
-
if (kind === "accessor") {
|
|
29
|
-
if (result === void 0) continue;
|
|
30
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
31
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
32
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
33
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
34
|
-
}
|
|
35
|
-
else if (_ = accept(result)) {
|
|
36
|
-
if (kind === "field") initializers.unshift(_);
|
|
37
|
-
else descriptor[key] = _;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
41
|
-
done = true;
|
|
42
|
-
};
|
|
43
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.ArchitectCommandModule = void 0;
|
|
45
|
-
const config_1 = require("../utilities/config");
|
|
46
|
-
const memoize_1 = require("../utilities/memoize");
|
|
47
|
-
const architect_base_command_module_1 = require("./architect-base-command-module");
|
|
48
|
-
const command_module_1 = require("./command-module");
|
|
49
|
-
let ArchitectCommandModule = (() => {
|
|
50
|
-
let _classSuper = architect_base_command_module_1.ArchitectBaseCommandModule;
|
|
51
|
-
let _instanceExtraInitializers = [];
|
|
52
|
-
let _getProjectNamesByTarget_decorators;
|
|
53
|
-
return class ArchitectCommandModule extends _classSuper {
|
|
54
|
-
static {
|
|
55
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
56
|
-
_getProjectNamesByTarget_decorators = [memoize_1.memoize];
|
|
57
|
-
__esDecorate(this, null, _getProjectNamesByTarget_decorators, { kind: "method", name: "getProjectNamesByTarget", static: false, private: false, access: { has: obj => "getProjectNamesByTarget" in obj, get: obj => obj.getProjectNamesByTarget }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
58
|
-
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
59
|
-
}
|
|
60
|
-
async builder(argv) {
|
|
61
|
-
const target = this.getArchitectTarget();
|
|
62
|
-
// Add default builder if target is not in project and a command default is provided
|
|
63
|
-
if (this.findDefaultBuilderName && this.context.workspace) {
|
|
64
|
-
for (const [project, projectDefinition] of this.context.workspace.projects) {
|
|
65
|
-
const targetDefinition = projectDefinition.targets.get(target);
|
|
66
|
-
if (targetDefinition?.builder) {
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
const defaultBuilder = await this.findDefaultBuilderName(projectDefinition, {
|
|
70
|
-
project,
|
|
71
|
-
target,
|
|
72
|
-
});
|
|
73
|
-
if (!defaultBuilder) {
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
if (targetDefinition) {
|
|
77
|
-
targetDefinition.builder = defaultBuilder;
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
projectDefinition.targets.set(target, {
|
|
81
|
-
builder: defaultBuilder,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const project = this.getArchitectProject();
|
|
87
|
-
const { jsonHelp, getYargsCompletions, help } = this.context.args.options;
|
|
88
|
-
const localYargs = argv
|
|
89
|
-
.positional('project', {
|
|
90
|
-
describe: 'The name of the project to build. Can be an application or a library.',
|
|
91
|
-
type: 'string',
|
|
92
|
-
// Hide choices from JSON help so that we don't display them in AIO.
|
|
93
|
-
choices: jsonHelp ? undefined : this.getProjectChoices(),
|
|
94
|
-
})
|
|
95
|
-
.option('configuration', {
|
|
96
|
-
describe: `One or more named builder configurations as a comma-separated ` +
|
|
97
|
-
`list as specified in the "configurations" section in angular.json.\n` +
|
|
98
|
-
`The builder uses the named configurations to run the given target.\n` +
|
|
99
|
-
`For more information, see https://angular.dev/reference/configs/workspace-config#alternate-build-configurations.`,
|
|
100
|
-
alias: 'c',
|
|
101
|
-
type: 'string',
|
|
102
|
-
// Show only in when using --help and auto completion because otherwise comma seperated configuration values will be invalid.
|
|
103
|
-
// Also, hide choices from JSON help so that we don't display them in AIO.
|
|
104
|
-
choices: (getYargsCompletions || help) && !jsonHelp && project
|
|
105
|
-
? this.getConfigurationChoices(project)
|
|
106
|
-
: undefined,
|
|
107
|
-
})
|
|
108
|
-
.strict();
|
|
109
|
-
if (!project) {
|
|
110
|
-
return localYargs;
|
|
111
|
-
}
|
|
112
|
-
const schemaOptions = await this.getArchitectTargetOptions({
|
|
113
|
-
project,
|
|
114
|
-
target,
|
|
115
|
-
});
|
|
116
|
-
return this.addSchemaOptionsToCommand(localYargs, schemaOptions);
|
|
117
|
-
}
|
|
118
|
-
async run(options) {
|
|
119
|
-
const originalProcessTitle = process.title;
|
|
120
|
-
try {
|
|
121
|
-
const target = this.getArchitectTarget();
|
|
122
|
-
const { configuration = '', project, ...architectOptions } = options;
|
|
123
|
-
if (project) {
|
|
124
|
-
process.title = `${originalProcessTitle} (${project})`;
|
|
125
|
-
return await this.runSingleTarget({ configuration, target, project }, architectOptions);
|
|
126
|
-
}
|
|
127
|
-
// This runs each target sequentially.
|
|
128
|
-
// Running them in parallel would jumble the log messages.
|
|
129
|
-
let result = 0;
|
|
130
|
-
const projectNames = this.getProjectNamesByTarget(target);
|
|
131
|
-
if (!projectNames) {
|
|
132
|
-
return this.onMissingTarget('Cannot determine project or target for command.');
|
|
133
|
-
}
|
|
134
|
-
for (const project of projectNames) {
|
|
135
|
-
process.title = `${originalProcessTitle} (${project})`;
|
|
136
|
-
result |= await this.runSingleTarget({ configuration, target, project }, architectOptions);
|
|
137
|
-
}
|
|
138
|
-
return result;
|
|
139
|
-
}
|
|
140
|
-
finally {
|
|
141
|
-
process.title = originalProcessTitle;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
getArchitectProject() {
|
|
145
|
-
const { options, positional } = this.context.args;
|
|
146
|
-
const [, projectName] = positional;
|
|
147
|
-
if (projectName) {
|
|
148
|
-
return projectName;
|
|
149
|
-
}
|
|
150
|
-
// Yargs allows positional args to be used as flags.
|
|
151
|
-
if (typeof options['project'] === 'string') {
|
|
152
|
-
return options['project'];
|
|
153
|
-
}
|
|
154
|
-
const target = this.getArchitectTarget();
|
|
155
|
-
const projectFromTarget = this.getProjectNamesByTarget(target);
|
|
156
|
-
return projectFromTarget?.length ? projectFromTarget[0] : undefined;
|
|
157
|
-
}
|
|
158
|
-
getProjectNamesByTarget(target) {
|
|
159
|
-
const workspace = this.getWorkspaceOrThrow();
|
|
160
|
-
const allProjectsForTargetName = [];
|
|
161
|
-
for (const [name, project] of workspace.projects) {
|
|
162
|
-
if (project.targets.has(target)) {
|
|
163
|
-
allProjectsForTargetName.push(name);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
if (allProjectsForTargetName.length === 0) {
|
|
167
|
-
return undefined;
|
|
168
|
-
}
|
|
169
|
-
if (this.multiTarget) {
|
|
170
|
-
// For multi target commands, we always list all projects that have the target.
|
|
171
|
-
return allProjectsForTargetName;
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
if (allProjectsForTargetName.length === 1) {
|
|
175
|
-
return allProjectsForTargetName;
|
|
176
|
-
}
|
|
177
|
-
const maybeProject = (0, config_1.getProjectByCwd)(workspace);
|
|
178
|
-
if (maybeProject) {
|
|
179
|
-
return allProjectsForTargetName.includes(maybeProject) ? [maybeProject] : undefined;
|
|
180
|
-
}
|
|
181
|
-
const { getYargsCompletions, help } = this.context.args.options;
|
|
182
|
-
if (!getYargsCompletions && !help) {
|
|
183
|
-
// Only issue the below error when not in help / completion mode.
|
|
184
|
-
throw new command_module_1.CommandModuleError('Cannot determine project for command.\n' +
|
|
185
|
-
'This is a multi-project workspace and more than one project supports this command. ' +
|
|
186
|
-
`Run "ng ${this.command}" to execute the command for a specific project or change the current ` +
|
|
187
|
-
'working directory to a project directory.\n\n' +
|
|
188
|
-
`Available projects are:\n${allProjectsForTargetName
|
|
189
|
-
.sort()
|
|
190
|
-
.map((p) => `- ${p}`)
|
|
191
|
-
.join('\n')}`);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
return undefined;
|
|
195
|
-
}
|
|
196
|
-
/** @returns a sorted list of project names to be used for auto completion. */
|
|
197
|
-
getProjectChoices() {
|
|
198
|
-
const { workspace } = this.context;
|
|
199
|
-
return workspace ? [...workspace.projects.keys()].sort() : undefined;
|
|
200
|
-
}
|
|
201
|
-
/** @returns a sorted list of configuration names to be used for auto completion. */
|
|
202
|
-
getConfigurationChoices(project) {
|
|
203
|
-
const projectDefinition = this.context.workspace?.projects.get(project);
|
|
204
|
-
if (!projectDefinition) {
|
|
205
|
-
return undefined;
|
|
206
|
-
}
|
|
207
|
-
const target = this.getArchitectTarget();
|
|
208
|
-
const configurations = projectDefinition.targets.get(target)?.configurations;
|
|
209
|
-
return configurations ? Object.keys(configurations).sort() : undefined;
|
|
210
|
-
}
|
|
211
|
-
constructor() {
|
|
212
|
-
super(...arguments);
|
|
213
|
-
__runInitializers(this, _instanceExtraInitializers);
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
})();
|
|
217
|
-
exports.ArchitectCommandModule = ArchitectCommandModule;
|
|
218
|
-
//# sourceMappingURL=architect-command-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"architect-command-module.js","sourceRoot":"","sources":["architect-command-module.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,gDAAsD;AACtD,kDAA+C;AAC/C,mFAA6E;AAC7E,qDAK0B;IAOJ,sBAAsB;sBAClC,0DAA0B;;;iBADd,sBACpB,SAAQ,WAAgD;;;mDAgIvD,iBAAO;YACR,wNAAQ,uBAAuB,6DA4C9B;;;QAnKD,KAAK,CAAC,OAAO,CAAC,IAAU;YACtB,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAEzC,oFAAoF;YACpF,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;gBAC1D,KAAK,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;oBAC3E,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;oBAC/D,IAAI,gBAAgB,EAAE,OAAO,EAAE,CAAC;wBAC9B,SAAS;oBACX,CAAC;oBAED,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE;wBAC1E,OAAO;wBACP,MAAM;qBACP,CAAC,CAAC;oBACH,IAAI,CAAC,cAAc,EAAE,CAAC;wBACpB,SAAS;oBACX,CAAC;oBAED,IAAI,gBAAgB,EAAE,CAAC;wBACrB,gBAAgB,CAAC,OAAO,GAAG,cAAc,CAAC;oBAC5C,CAAC;yBAAM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c,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;QACzE,CAAC;;;YAlMmB,mDAAsB;;;;AAAtB,wDAAsB"}
|
|
@@ -1,73 +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 type { ArgumentsCamelCase, Argv, CommandModule as YargsCommandModule } from 'yargs';
|
|
9
|
-
import { AnalyticsCollector } from '../analytics/analytics-collector';
|
|
10
|
-
import { EventCustomDimension, EventCustomMetric } from '../analytics/analytics-parameters';
|
|
11
|
-
import { AngularWorkspace } from '../utilities/config';
|
|
12
|
-
import { CommandContext, CommandScope, Options, OtherOptions } from './definitions';
|
|
13
|
-
import { Option } from './utilities/json-schema';
|
|
14
|
-
export { CommandScope };
|
|
15
|
-
export type { CommandContext, Options, OtherOptions };
|
|
16
|
-
export interface CommandModuleImplementation<T extends {} = {}> extends Omit<YargsCommandModule<{}, T>, 'builder' | 'handler'> {
|
|
17
|
-
/** Scope in which the command can be executed in. */
|
|
18
|
-
scope: CommandScope;
|
|
19
|
-
/** Path used to load the long description for the command in JSON help text. */
|
|
20
|
-
longDescriptionPath?: string;
|
|
21
|
-
/** Object declaring the options the command accepts, or a function accepting and returning a yargs instance. */
|
|
22
|
-
builder(argv: Argv): Promise<Argv<T>> | Argv<T>;
|
|
23
|
-
/** A function which will be passed the parsed argv. */
|
|
24
|
-
run(options: Options<T> & OtherOptions): Promise<number | void> | number | void;
|
|
25
|
-
}
|
|
26
|
-
export interface FullDescribe {
|
|
27
|
-
describe?: string;
|
|
28
|
-
longDescription?: string;
|
|
29
|
-
longDescriptionRelativePath?: string;
|
|
30
|
-
}
|
|
31
|
-
export declare abstract class CommandModule<T extends {} = {}> implements CommandModuleImplementation<T> {
|
|
32
|
-
protected readonly context: CommandContext;
|
|
33
|
-
abstract readonly command: string;
|
|
34
|
-
abstract readonly describe: string | false;
|
|
35
|
-
abstract readonly longDescriptionPath?: string;
|
|
36
|
-
protected readonly shouldReportAnalytics: boolean;
|
|
37
|
-
readonly scope: CommandScope;
|
|
38
|
-
private readonly optionsWithAnalytics;
|
|
39
|
-
constructor(context: CommandContext);
|
|
40
|
-
/**
|
|
41
|
-
* Description object which contains the long command descroption.
|
|
42
|
-
* This is used to generate JSON help wich is used in AIO.
|
|
43
|
-
*
|
|
44
|
-
* `false` will result in a hidden command.
|
|
45
|
-
*/
|
|
46
|
-
get fullDescribe(): FullDescribe | false;
|
|
47
|
-
protected get commandName(): string;
|
|
48
|
-
abstract builder(argv: Argv): Promise<Argv<T>> | Argv<T>;
|
|
49
|
-
abstract run(options: Options<T> & OtherOptions): Promise<number | void> | number | void;
|
|
50
|
-
handler(args: ArgumentsCamelCase<T> & OtherOptions): Promise<void>;
|
|
51
|
-
protected getAnalytics(): Promise<AnalyticsCollector | undefined>;
|
|
52
|
-
/**
|
|
53
|
-
* Adds schema options to a command also this keeps track of options that are required for analytics.
|
|
54
|
-
* **Note:** This method should be called from the command bundler method.
|
|
55
|
-
*/
|
|
56
|
-
protected addSchemaOptionsToCommand<T>(localYargs: Argv<T>, options: Option[]): Argv<T>;
|
|
57
|
-
protected getWorkspaceOrThrow(): AngularWorkspace;
|
|
58
|
-
/**
|
|
59
|
-
* Flush on an interval (if the event loop is waiting).
|
|
60
|
-
*
|
|
61
|
-
* @returns a method that when called will terminate the periodic
|
|
62
|
-
* flush and call flush one last time.
|
|
63
|
-
*/
|
|
64
|
-
protected getAnalyticsParameters(options: (Options<T> & OtherOptions) | OtherOptions): Partial<Record<EventCustomDimension | EventCustomMetric, string | boolean | number>>;
|
|
65
|
-
private reportCommandRunAnalytics;
|
|
66
|
-
private reportWorkspaceInfoAnalytics;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Creates an known command module error.
|
|
70
|
-
* This is used so during executation we can filter between known validation error and real non handled errors.
|
|
71
|
-
*/
|
|
72
|
-
export declare class CommandModuleError extends Error {
|
|
73
|
-
}
|
|
@@ -1,260 +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
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
10
|
-
var useValue = arguments.length > 2;
|
|
11
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
12
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
13
|
-
}
|
|
14
|
-
return useValue ? value : void 0;
|
|
15
|
-
};
|
|
16
|
-
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
17
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
18
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
19
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
20
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
21
|
-
var _, done = false;
|
|
22
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
23
|
-
var context = {};
|
|
24
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
25
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
26
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
27
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
28
|
-
if (kind === "accessor") {
|
|
29
|
-
if (result === void 0) continue;
|
|
30
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
31
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
32
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
33
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
34
|
-
}
|
|
35
|
-
else if (_ = accept(result)) {
|
|
36
|
-
if (kind === "field") initializers.unshift(_);
|
|
37
|
-
else descriptor[key] = _;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
41
|
-
done = true;
|
|
42
|
-
};
|
|
43
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.CommandModuleError = exports.CommandModule = exports.CommandScope = void 0;
|
|
45
|
-
const core_1 = require("@angular-devkit/core");
|
|
46
|
-
const node_fs_1 = require("node:fs");
|
|
47
|
-
const node_path_1 = require("node:path");
|
|
48
|
-
const helpers_1 = require("yargs/helpers");
|
|
49
|
-
const analytics_1 = require("../analytics/analytics");
|
|
50
|
-
const analytics_collector_1 = require("../analytics/analytics-collector");
|
|
51
|
-
const analytics_parameters_1 = require("../analytics/analytics-parameters");
|
|
52
|
-
const package_managers_1 = require("../package-managers");
|
|
53
|
-
const completion_1 = require("../utilities/completion");
|
|
54
|
-
const memoize_1 = require("../utilities/memoize");
|
|
55
|
-
const definitions_1 = require("./definitions");
|
|
56
|
-
Object.defineProperty(exports, "CommandScope", { enumerable: true, get: function () { return definitions_1.CommandScope; } });
|
|
57
|
-
const json_schema_1 = require("./utilities/json-schema");
|
|
58
|
-
let CommandModule = (() => {
|
|
59
|
-
let _instanceExtraInitializers = [];
|
|
60
|
-
let _getAnalytics_decorators;
|
|
61
|
-
return class CommandModule {
|
|
62
|
-
static {
|
|
63
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
64
|
-
_getAnalytics_decorators = [memoize_1.memoize];
|
|
65
|
-
__esDecorate(this, null, _getAnalytics_decorators, { kind: "method", name: "getAnalytics", static: false, private: false, access: { has: obj => "getAnalytics" in obj, get: obj => obj.getAnalytics }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
66
|
-
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
67
|
-
}
|
|
68
|
-
context = __runInitializers(this, _instanceExtraInitializers);
|
|
69
|
-
shouldReportAnalytics = true;
|
|
70
|
-
scope = definitions_1.CommandScope.Both;
|
|
71
|
-
optionsWithAnalytics = new Map();
|
|
72
|
-
constructor(context) {
|
|
73
|
-
this.context = context;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Description object which contains the long command descroption.
|
|
77
|
-
* This is used to generate JSON help wich is used in AIO.
|
|
78
|
-
*
|
|
79
|
-
* `false` will result in a hidden command.
|
|
80
|
-
*/
|
|
81
|
-
get fullDescribe() {
|
|
82
|
-
return this.describe === false
|
|
83
|
-
? false
|
|
84
|
-
: {
|
|
85
|
-
describe: this.describe,
|
|
86
|
-
...(this.longDescriptionPath
|
|
87
|
-
? {
|
|
88
|
-
longDescriptionRelativePath: (0, node_path_1.relative)((0, node_path_1.join)(__dirname, '../../../../'), this.longDescriptionPath).replace(/\\/g, node_path_1.posix.sep),
|
|
89
|
-
longDescription: (0, node_fs_1.readFileSync)(this.longDescriptionPath, 'utf8').replace(/\r\n/g, '\n'),
|
|
90
|
-
}
|
|
91
|
-
: {}),
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
get commandName() {
|
|
95
|
-
return this.command.split(' ', 1)[0];
|
|
96
|
-
}
|
|
97
|
-
async handler(args) {
|
|
98
|
-
const { _, $0, ...options } = args;
|
|
99
|
-
const { logger } = this.context;
|
|
100
|
-
// Camelize options as yargs will return the object in kebab-case when camel casing is disabled.
|
|
101
|
-
const camelCasedOptions = {};
|
|
102
|
-
for (const [key, value] of Object.entries(options)) {
|
|
103
|
-
camelCasedOptions[helpers_1.Parser.camelCase(key)] = value;
|
|
104
|
-
}
|
|
105
|
-
// Set up autocompletion if appropriate.
|
|
106
|
-
const autocompletionExitCode = await (0, completion_1.considerSettingUpAutocompletion)(this.commandName, logger);
|
|
107
|
-
if (autocompletionExitCode !== undefined) {
|
|
108
|
-
process.exitCode = autocompletionExitCode;
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
// Gather and report analytics.
|
|
112
|
-
const analytics = await this.getAnalytics();
|
|
113
|
-
const stopPeriodicFlushes = analytics && analytics.periodFlush();
|
|
114
|
-
let exitCode;
|
|
115
|
-
try {
|
|
116
|
-
if (analytics) {
|
|
117
|
-
this.reportCommandRunAnalytics(analytics);
|
|
118
|
-
this.reportWorkspaceInfoAnalytics(analytics);
|
|
119
|
-
}
|
|
120
|
-
exitCode = await this.run(camelCasedOptions);
|
|
121
|
-
}
|
|
122
|
-
catch (e) {
|
|
123
|
-
if (e instanceof core_1.schema.SchemaValidationException) {
|
|
124
|
-
logger.fatal(`Error: ${e.message}`);
|
|
125
|
-
exitCode = 1;
|
|
126
|
-
}
|
|
127
|
-
else if (e instanceof package_managers_1.PackageManagerError) {
|
|
128
|
-
const output = e.stderr || e.stdout;
|
|
129
|
-
logger.fatal(`Error: Package installation failed: ${e.message}${output ? `\nOutput: ${output}` : ''}`);
|
|
130
|
-
exitCode = 1;
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
throw e;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
finally {
|
|
137
|
-
await stopPeriodicFlushes?.();
|
|
138
|
-
if (typeof exitCode === 'number' && exitCode > 0) {
|
|
139
|
-
process.exitCode = exitCode;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
async getAnalytics() {
|
|
144
|
-
if (!this.shouldReportAnalytics) {
|
|
145
|
-
return undefined;
|
|
146
|
-
}
|
|
147
|
-
const userId = await (0, analytics_1.getAnalyticsUserId)(this.context,
|
|
148
|
-
// Don't prompt on `ng update`, 'ng version' or `ng analytics`.
|
|
149
|
-
['version', 'update', 'analytics'].includes(this.commandName));
|
|
150
|
-
if (!userId) {
|
|
151
|
-
return undefined;
|
|
152
|
-
}
|
|
153
|
-
let version;
|
|
154
|
-
try {
|
|
155
|
-
version = await this.context.packageManager.getVersion();
|
|
156
|
-
}
|
|
157
|
-
catch {
|
|
158
|
-
// Ignore errors if the package manager is not available.
|
|
159
|
-
}
|
|
160
|
-
return new analytics_collector_1.AnalyticsCollector(this.context.logger, userId, {
|
|
161
|
-
name: this.context.packageManager.name,
|
|
162
|
-
version,
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Adds schema options to a command also this keeps track of options that are required for analytics.
|
|
167
|
-
* **Note:** This method should be called from the command bundler method.
|
|
168
|
-
*/
|
|
169
|
-
addSchemaOptionsToCommand(localYargs, options) {
|
|
170
|
-
const optionsWithAnalytics = (0, json_schema_1.addSchemaOptionsToCommand)(localYargs, options,
|
|
171
|
-
// This should only be done when `--help` is used otherwise default will override options set in angular.json.
|
|
172
|
-
/* includeDefaultValues= */ this.context.args.options.help);
|
|
173
|
-
// Record option of analytics.
|
|
174
|
-
for (const [name, userAnalytics] of optionsWithAnalytics) {
|
|
175
|
-
this.optionsWithAnalytics.set(name, userAnalytics);
|
|
176
|
-
}
|
|
177
|
-
return localYargs;
|
|
178
|
-
}
|
|
179
|
-
getWorkspaceOrThrow() {
|
|
180
|
-
const { workspace } = this.context;
|
|
181
|
-
if (!workspace) {
|
|
182
|
-
throw new CommandModuleError('A workspace is required for this command.');
|
|
183
|
-
}
|
|
184
|
-
return workspace;
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Flush on an interval (if the event loop is waiting).
|
|
188
|
-
*
|
|
189
|
-
* @returns a method that when called will terminate the periodic
|
|
190
|
-
* flush and call flush one last time.
|
|
191
|
-
*/
|
|
192
|
-
getAnalyticsParameters(options) {
|
|
193
|
-
const parameters = {};
|
|
194
|
-
const validEventCustomDimensionAndMetrics = new Set([
|
|
195
|
-
...Object.values(analytics_parameters_1.EventCustomDimension),
|
|
196
|
-
...Object.values(analytics_parameters_1.EventCustomMetric),
|
|
197
|
-
]);
|
|
198
|
-
for (const [name, ua] of this.optionsWithAnalytics) {
|
|
199
|
-
if (!validEventCustomDimensionAndMetrics.has(ua)) {
|
|
200
|
-
continue;
|
|
201
|
-
}
|
|
202
|
-
const value = options[name];
|
|
203
|
-
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
204
|
-
parameters[ua] = value;
|
|
205
|
-
}
|
|
206
|
-
else if (Array.isArray(value)) {
|
|
207
|
-
// GA doesn't allow array as values.
|
|
208
|
-
parameters[ua] = value.sort().join(', ');
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return parameters;
|
|
212
|
-
}
|
|
213
|
-
reportCommandRunAnalytics(analytics) {
|
|
214
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
215
|
-
const internalMethods = this.context.yargsInstance.getInternalMethods();
|
|
216
|
-
// $0 generate component [name] -> generate_component
|
|
217
|
-
// $0 add <collection> -> add
|
|
218
|
-
const fullCommand = internalMethods.getUsageInstance().getUsage()[0][0]
|
|
219
|
-
.split(' ')
|
|
220
|
-
.filter((x) => {
|
|
221
|
-
const code = x.charCodeAt(0);
|
|
222
|
-
return code >= 97 && code <= 122;
|
|
223
|
-
})
|
|
224
|
-
.join('_');
|
|
225
|
-
analytics.reportCommandRunEvent(fullCommand);
|
|
226
|
-
}
|
|
227
|
-
reportWorkspaceInfoAnalytics(analytics) {
|
|
228
|
-
const { workspace } = this.context;
|
|
229
|
-
if (!workspace) {
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
let applicationProjectsCount = 0;
|
|
233
|
-
let librariesProjectsCount = 0;
|
|
234
|
-
for (const project of workspace.projects.values()) {
|
|
235
|
-
switch (project.extensions['projectType']) {
|
|
236
|
-
case 'application':
|
|
237
|
-
applicationProjectsCount++;
|
|
238
|
-
break;
|
|
239
|
-
case 'library':
|
|
240
|
-
librariesProjectsCount++;
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
analytics.reportWorkspaceInfoEvent({
|
|
245
|
-
[analytics_parameters_1.EventCustomMetric.AllProjectsCount]: librariesProjectsCount + applicationProjectsCount,
|
|
246
|
-
[analytics_parameters_1.EventCustomMetric.ApplicationProjectsCount]: applicationProjectsCount,
|
|
247
|
-
[analytics_parameters_1.EventCustomMetric.LibraryProjectsCount]: librariesProjectsCount,
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
})();
|
|
252
|
-
exports.CommandModule = CommandModule;
|
|
253
|
-
/**
|
|
254
|
-
* Creates an known command module error.
|
|
255
|
-
* This is used so during executation we can filter between known validation error and real non handled errors.
|
|
256
|
-
*/
|
|
257
|
-
class CommandModuleError extends Error {
|
|
258
|
-
}
|
|
259
|
-
exports.CommandModuleError = CommandModuleError;
|
|
260
|
-
//# sourceMappingURL=command-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-module.js","sourceRoot":"","sources":["command-module.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAA8C;AAC9C,qCAAuC;AACvC,yCAAkD;AAElD,2CAAsD;AACtD,sDAA4D;AAC5D,0EAAsE;AACtE,4EAA4F;AAC5F,0DAA0D;AAC1D,wDAA0E;AAE1E,kDAA+C;AAC/C,+CAAoF;AAG3E,6FAHgB,0BAAY,OAGhB;AAFrB,yDAA4E;IA4BtD,aAAa;;;iBAAb,aAAa;;;wCAmGhC,iBAAO;YACR,uLAAgB,YAAY,6DA0B3B;;;QAlH8B,OAAO,GAZlB,mDAAa;QAId,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iB,CAAC,gBAAgB,CAAC,EAAE,sBAAsB,GAAG,wBAAwB;gBACvF,CAAC,wCAAiB,CAAC,wBAAwB,CAAC,EAAE,wBAAwB;gBACtE,CAAC,wCAAiB,CAAC,oBAAoB,CAAC,EAAE,sBAAsB;aACjE,CAAC,CAAC;QACL,CAAC;;;AAzOmB,sCAAa;AA4OnC;;;GAGG;AACH,MAAa,kBAAmB,SAAQ,KAAK;CAAG;AAAhD,gDAAgD"}
|
|
@@ -1,9 +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 { logging } from '@angular-devkit/core';
|
|
9
|
-
export declare function runCommand(args: string[], logger: logging.Logger): Promise<number>;
|