@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,53 +0,0 @@
|
|
|
1
|
-
Angular CLI saves a number of cachable operations on disk by default.
|
|
2
|
-
|
|
3
|
-
When you re-run the same build, the build system restores the state of the previous build and re-uses previously performed operations, which decreases the time taken to build and test your applications and libraries.
|
|
4
|
-
|
|
5
|
-
To amend the default cache settings, add the `cli.cache` object to your [Workspace Configuration](reference/configs/workspace-config).
|
|
6
|
-
The object goes under `cli.cache` at the top level of the file, outside the `projects` sections.
|
|
7
|
-
|
|
8
|
-
```jsonc
|
|
9
|
-
{
|
|
10
|
-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
11
|
-
"version": 1,
|
|
12
|
-
"cli": {
|
|
13
|
-
"cache": {
|
|
14
|
-
// ...
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
"projects": {},
|
|
18
|
-
}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
For more information, see [cache options](reference/configs/workspace-config#cache-options).
|
|
22
|
-
|
|
23
|
-
### Cache environments
|
|
24
|
-
|
|
25
|
-
By default, disk cache is only enabled for local environments. The value of environment can be one of the following:
|
|
26
|
-
|
|
27
|
-
- `all` - allows disk cache on all machines.
|
|
28
|
-
- `local` - allows disk cache only on development machines.
|
|
29
|
-
- `ci` - allows disk cache only on continuous integration (CI) systems.
|
|
30
|
-
|
|
31
|
-
To change the environment setting to `all`, run the following command:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
ng config cli.cache.environment all
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
For more information, see `environment` in [cache options](reference/configs/workspace-config#cache-options).
|
|
38
|
-
|
|
39
|
-
<div class="alert is-helpful">
|
|
40
|
-
|
|
41
|
-
The Angular CLI checks for the presence and value of the `CI` environment variable to determine in which environment it is running.
|
|
42
|
-
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
### Cache path
|
|
46
|
-
|
|
47
|
-
By default, `.angular/cache` is used as a base directory to store cache results.
|
|
48
|
-
|
|
49
|
-
To change this path to `.cache/ng`, run the following command:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
ng config cli.cache.path ".cache/ng"
|
|
53
|
-
```
|
|
@@ -1,27 +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 { CommandModule, CommandModuleImplementation, CommandScope } from '../../../command-builder/command-module';
|
|
10
|
-
export declare class CacheDisableModule extends CommandModule implements CommandModuleImplementation {
|
|
11
|
-
command: string;
|
|
12
|
-
aliases: string;
|
|
13
|
-
describe: string;
|
|
14
|
-
longDescriptionPath: string | undefined;
|
|
15
|
-
scope: CommandScope;
|
|
16
|
-
builder(localYargs: Argv): Argv;
|
|
17
|
-
run(): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
export declare class CacheEnableModule extends CommandModule implements CommandModuleImplementation {
|
|
20
|
-
command: string;
|
|
21
|
-
aliases: string;
|
|
22
|
-
describe: string;
|
|
23
|
-
longDescriptionPath: string | undefined;
|
|
24
|
-
scope: CommandScope;
|
|
25
|
-
builder(localYargs: Argv): Argv;
|
|
26
|
-
run(): Promise<void>;
|
|
27
|
-
}
|
|
@@ -1,41 +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
|
-
exports.CacheEnableModule = exports.CacheDisableModule = void 0;
|
|
11
|
-
const command_module_1 = require("../../../command-builder/command-module");
|
|
12
|
-
const utilities_1 = require("../utilities");
|
|
13
|
-
class CacheDisableModule extends command_module_1.CommandModule {
|
|
14
|
-
command = 'disable';
|
|
15
|
-
aliases = 'off';
|
|
16
|
-
describe = 'Disables persistent disk cache for all projects in the workspace.';
|
|
17
|
-
longDescriptionPath;
|
|
18
|
-
scope = command_module_1.CommandScope.In;
|
|
19
|
-
builder(localYargs) {
|
|
20
|
-
return localYargs;
|
|
21
|
-
}
|
|
22
|
-
run() {
|
|
23
|
-
return (0, utilities_1.updateCacheConfig)(this.getWorkspaceOrThrow(), 'enabled', false);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.CacheDisableModule = CacheDisableModule;
|
|
27
|
-
class CacheEnableModule extends command_module_1.CommandModule {
|
|
28
|
-
command = 'enable';
|
|
29
|
-
aliases = 'on';
|
|
30
|
-
describe = 'Enables disk cache for all projects in the workspace.';
|
|
31
|
-
longDescriptionPath;
|
|
32
|
-
scope = command_module_1.CommandScope.In;
|
|
33
|
-
builder(localYargs) {
|
|
34
|
-
return localYargs;
|
|
35
|
-
}
|
|
36
|
-
run() {
|
|
37
|
-
return (0, utilities_1.updateCacheConfig)(this.getWorkspaceOrThrow(), 'enabled', true);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.CacheEnableModule = CacheEnableModule;
|
|
41
|
-
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["cli.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAGH,4EAIiD;AACjD,4CAAiD;AAEjD,MAAa,kBAAmB,SAAQ,8BAAa;IACnD,OAAO,GAAG,SAAS,CAAC;IACpB,OAAO,GAAG,KAAK,CAAC;IAChB,QAAQ,GAAG,mEAAmE,CAAC;IAC/E,mBAAmB,CAAqB;IAC/B,KAAK,GAAG,6BAAY,CAAC,EAAE,CAAC;IAEjC,OAAO,CAAC,UAAgB;QACtB,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,GAAG;QACD,OAAO,IAAA,6BAAiB,EAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACzE,CAAC;CACF;AAdD,gDAcC;AAED,MAAa,iBAAkB,SAAQ,8BAAa;IAClD,OAAO,GAAG,QAAQ,CAAC;IACnB,OAAO,GAAG,IAAI,CAAC;IACf,QAAQ,GAAG,uDAAuD,CAAC;IACnE,mBAAmB,CAAqB;IAC/B,KAAK,GAAG,6BAAY,CAAC,EAAE,CAAC;IAEjC,OAAO,CAAC,UAAgB;QACtB,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,GAAG;QACD,OAAO,IAAA,6BAAiB,EAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;CACF;AAdD,8CAcC"}
|
|
@@ -1,11 +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 { Cache } from '../../../lib/config/workspace-schema';
|
|
9
|
-
import { AngularWorkspace } from '../../utilities/config';
|
|
10
|
-
export declare function updateCacheConfig<K extends keyof Cache>(workspace: AngularWorkspace, key: K, value: Cache[K]): Promise<void>;
|
|
11
|
-
export declare function getCacheConfig(workspace: AngularWorkspace | undefined): Required<Cache>;
|
|
@@ -1,85 +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
|
-
exports.updateCacheConfig = updateCacheConfig;
|
|
11
|
-
exports.getCacheConfig = getCacheConfig;
|
|
12
|
-
const core_1 = require("@angular-devkit/core");
|
|
13
|
-
const node_fs_1 = require("node:fs");
|
|
14
|
-
const node_path_1 = require("node:path");
|
|
15
|
-
const workspace_schema_1 = require("../../../lib/config/workspace-schema");
|
|
16
|
-
function updateCacheConfig(workspace, key, value) {
|
|
17
|
-
const cli = (workspace.extensions['cli'] ??= {});
|
|
18
|
-
const cache = (cli['cache'] ??= {});
|
|
19
|
-
cache[key] = value;
|
|
20
|
-
return workspace.save();
|
|
21
|
-
}
|
|
22
|
-
function getCacheBasePath(workspaceRoot, cachePathSetting) {
|
|
23
|
-
if ((0, node_path_1.isAbsolute)(cachePathSetting)) {
|
|
24
|
-
return cachePathSetting;
|
|
25
|
-
}
|
|
26
|
-
try {
|
|
27
|
-
// Find the git directory, walking up from workspaceRoot if necessary
|
|
28
|
-
let currentDir = workspaceRoot;
|
|
29
|
-
while (true) {
|
|
30
|
-
const gitPath = (0, node_path_1.join)(currentDir, '.git');
|
|
31
|
-
if ((0, node_fs_1.existsSync)(gitPath)) {
|
|
32
|
-
const stat = (0, node_fs_1.statSync)(gitPath);
|
|
33
|
-
if (stat.isFile()) {
|
|
34
|
-
// Could be a git worktree (or submodule)
|
|
35
|
-
const content = (0, node_fs_1.readFileSync)(gitPath, 'utf8');
|
|
36
|
-
const match = /^gitdir:\s*(.+)$/m.exec(content);
|
|
37
|
-
if (match) {
|
|
38
|
-
const gitdir = (0, node_path_1.resolve)(currentDir, match[1].trim());
|
|
39
|
-
const commondirPath = (0, node_path_1.join)(gitdir, 'commondir');
|
|
40
|
-
if ((0, node_fs_1.existsSync)(commondirPath)) {
|
|
41
|
-
// It's a git worktree
|
|
42
|
-
const commondir = (0, node_fs_1.readFileSync)(commondirPath, 'utf8').trim();
|
|
43
|
-
const commonGitDir = (0, node_path_1.resolve)(gitdir, commondir);
|
|
44
|
-
return (0, node_path_1.resolve)((0, node_path_1.dirname)(commonGitDir), cachePathSetting);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
const parentDir = (0, node_path_1.dirname)(currentDir);
|
|
50
|
-
if (parentDir === currentDir) {
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
currentDir = parentDir;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
catch { }
|
|
57
|
-
return (0, node_path_1.resolve)(workspaceRoot, cachePathSetting);
|
|
58
|
-
}
|
|
59
|
-
function getCacheConfig(workspace) {
|
|
60
|
-
if (!workspace) {
|
|
61
|
-
throw new Error(`Cannot retrieve cache configuration as workspace is not defined.`);
|
|
62
|
-
}
|
|
63
|
-
const defaultSettings = {
|
|
64
|
-
path: getCacheBasePath(workspace.basePath, '.angular/cache'),
|
|
65
|
-
environment: workspace_schema_1.Environment.Local,
|
|
66
|
-
enabled: true,
|
|
67
|
-
};
|
|
68
|
-
const cliSetting = workspace.extensions['cli'];
|
|
69
|
-
if (!cliSetting || !(0, core_1.isJsonObject)(cliSetting)) {
|
|
70
|
-
return defaultSettings;
|
|
71
|
-
}
|
|
72
|
-
const cacheSettings = cliSetting['cache'];
|
|
73
|
-
if (!(0, core_1.isJsonObject)(cacheSettings)) {
|
|
74
|
-
return defaultSettings;
|
|
75
|
-
}
|
|
76
|
-
const { path = '.angular/cache', environment = defaultSettings.environment, enabled = defaultSettings.enabled,
|
|
77
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
78
|
-
} = cacheSettings;
|
|
79
|
-
return {
|
|
80
|
-
path: getCacheBasePath(workspace.basePath, path),
|
|
81
|
-
environment,
|
|
82
|
-
enabled,
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=utilities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["utilities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAQH,8CAUC;AA0CD,wCAiCC;AA3FD,+CAAoD;AACpD,qCAA6D;AAC7D,yCAA+D;AAC/D,2EAA0E;AAG1E,SAAgB,iBAAiB,CAC/B,SAA2B,EAC3B,GAAM,EACN,KAAe;IAEf,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,CAA4C,CAAC;IAC5F,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IACpC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAEnB,OAAO,SAAS,CAAC,IAAI,EAAE,CAAC;AAC1B,CAAC;AAED,SAAS,gBAAgB,CAAC,aAAqB,EAAE,gBAAwB;IACv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
* 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 { CommandModuleConstructor } from '../command-builder/utilities/command';
|
|
9
|
-
export type CommandNames = 'add' | 'analytics' | 'build' | 'cache' | 'completion' | 'config' | 'deploy' | 'e2e' | 'extract-i18n' | 'generate' | 'lint' | 'make-this-awesome' | 'mcp' | 'new' | 'run' | 'serve' | 'test' | 'update' | 'version';
|
|
10
|
-
export interface CommandConfig {
|
|
11
|
-
aliases?: string[];
|
|
12
|
-
factory: () => Promise<{
|
|
13
|
-
default: CommandModuleConstructor;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
16
|
-
export declare const RootCommands: Record<CommandNames & string, CommandConfig>;
|
|
17
|
-
export declare const RootCommandsAliases: Record<string, CommandConfig>;
|
|
@@ -1,116 +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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
-
}
|
|
15
|
-
Object.defineProperty(o, k2, desc);
|
|
16
|
-
}) : (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === undefined) k2 = k;
|
|
18
|
-
o[k2] = m[k];
|
|
19
|
-
}));
|
|
20
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
-
}) : function(o, v) {
|
|
23
|
-
o["default"] = v;
|
|
24
|
-
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
26
|
-
var ownKeys = function(o) {
|
|
27
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28
|
-
var ar = [];
|
|
29
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
30
|
-
return ar;
|
|
31
|
-
};
|
|
32
|
-
return ownKeys(o);
|
|
33
|
-
};
|
|
34
|
-
return function (mod) {
|
|
35
|
-
if (mod && mod.__esModule) return mod;
|
|
36
|
-
var result = {};
|
|
37
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
38
|
-
__setModuleDefault(result, mod);
|
|
39
|
-
return result;
|
|
40
|
-
};
|
|
41
|
-
})();
|
|
42
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.RootCommandsAliases = exports.RootCommands = void 0;
|
|
44
|
-
exports.RootCommands = {
|
|
45
|
-
'add': {
|
|
46
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./add/cli'))),
|
|
47
|
-
},
|
|
48
|
-
'analytics': {
|
|
49
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./analytics/cli'))),
|
|
50
|
-
},
|
|
51
|
-
'build': {
|
|
52
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./build/cli'))),
|
|
53
|
-
aliases: ['b'],
|
|
54
|
-
},
|
|
55
|
-
'cache': {
|
|
56
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./cache/cli'))),
|
|
57
|
-
},
|
|
58
|
-
'completion': {
|
|
59
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./completion/cli'))),
|
|
60
|
-
},
|
|
61
|
-
'config': {
|
|
62
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./config/cli'))),
|
|
63
|
-
},
|
|
64
|
-
'deploy': {
|
|
65
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./deploy/cli'))),
|
|
66
|
-
},
|
|
67
|
-
'e2e': {
|
|
68
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./e2e/cli'))),
|
|
69
|
-
aliases: ['e'],
|
|
70
|
-
},
|
|
71
|
-
'extract-i18n': {
|
|
72
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./extract-i18n/cli'))),
|
|
73
|
-
},
|
|
74
|
-
'generate': {
|
|
75
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./generate/cli'))),
|
|
76
|
-
aliases: ['g'],
|
|
77
|
-
},
|
|
78
|
-
'lint': {
|
|
79
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./lint/cli'))),
|
|
80
|
-
},
|
|
81
|
-
'make-this-awesome': {
|
|
82
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./make-this-awesome/cli'))),
|
|
83
|
-
},
|
|
84
|
-
'mcp': {
|
|
85
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./mcp/cli'))),
|
|
86
|
-
},
|
|
87
|
-
'new': {
|
|
88
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./new/cli'))),
|
|
89
|
-
aliases: ['n'],
|
|
90
|
-
},
|
|
91
|
-
'run': {
|
|
92
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./run/cli'))),
|
|
93
|
-
},
|
|
94
|
-
'serve': {
|
|
95
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./serve/cli'))),
|
|
96
|
-
aliases: ['dev', 's'],
|
|
97
|
-
},
|
|
98
|
-
'test': {
|
|
99
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./test/cli'))),
|
|
100
|
-
aliases: ['t'],
|
|
101
|
-
},
|
|
102
|
-
'update': {
|
|
103
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./update/cli'))),
|
|
104
|
-
},
|
|
105
|
-
'version': {
|
|
106
|
-
factory: () => Promise.resolve().then(() => __importStar(require('./version/cli'))),
|
|
107
|
-
aliases: ['v'],
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
exports.RootCommandsAliases = Object.values(exports.RootCommands).reduce((prev, current) => {
|
|
111
|
-
current.aliases?.forEach((alias) => {
|
|
112
|
-
prev[alias] = current;
|
|
113
|
-
});
|
|
114
|
-
return prev;
|
|
115
|
-
}, {});
|
|
116
|
-
//# sourceMappingURL=command-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-config.js","sourceRoot":"","sources":["command-config.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BU,QAAA,YAAY,GAGrB;IACF,KAAK,EAAE;QACL,OAAO,EAAE,GAAG,EAAE,mDAAQ,WAAW,GAAC;KACnC;IACD,WAAW,EAAE;QACX,OAAO,EAAE,GAAG,EAAE,mDAAQ,iBAAiB,GAAC;KACzC;IACD,OAAO,EAAE;QACP,OAAO,EAAE,GAAG,EAAE,mDAAQ,aAAa,GAAC;QACpC,OAAO,EAAE,CAAC,GAAG,CAAC;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,GAAG,EAAE,mDAAQ,aAAa,GAAC;KACrC;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,EAAE,mDAAQ,kBAAkB,GAAC;KAC1C;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,GAAG,EAAE,mDAAQ,cAAc,GAAC;KACtC;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,GAAG,EAAE,mDAAQ,cAAc,GAAC;KACtC;IAED,KAAK,EAAE;QACL,OAAO,EAAE,GAAG,EAAE,mDAAQ,WAAW,GAAC;QAClC,OAAO,EAAE,CAAC,GAAG,CAAC;KACf;IACD,cAAc,EAAE;QACd,OAAO,EAAE,GAAG,EAAE,mDAAQ,oBAAoB,GAAC;KAC5C;IACD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pC,CAAC"}
|
|
@@ -1,16 +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 { CommandModule, CommandModuleImplementation } from '../../command-builder/command-module';
|
|
10
|
-
export default class CompletionCommandModule extends CommandModule implements CommandModuleImplementation {
|
|
11
|
-
command: string;
|
|
12
|
-
describe: string;
|
|
13
|
-
longDescriptionPath: string;
|
|
14
|
-
builder(localYargs: Argv): Argv;
|
|
15
|
-
run(): Promise<number>;
|
|
16
|
-
}
|
|
@@ -1,61 +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 command_module_1 = require("../../command-builder/command-module");
|
|
12
|
-
const command_1 = require("../../command-builder/utilities/command");
|
|
13
|
-
const color_1 = require("../../utilities/color");
|
|
14
|
-
const completion_1 = require("../../utilities/completion");
|
|
15
|
-
const error_1 = require("../../utilities/error");
|
|
16
|
-
class CompletionCommandModule extends command_module_1.CommandModule {
|
|
17
|
-
command = 'completion';
|
|
18
|
-
describe = 'Set up Angular CLI autocompletion for your terminal.';
|
|
19
|
-
longDescriptionPath = (0, node_path_1.join)(__dirname, 'long-description.md');
|
|
20
|
-
builder(localYargs) {
|
|
21
|
-
(0, command_1.addCommandModuleToYargs)(CompletionScriptCommandModule, this.context);
|
|
22
|
-
return localYargs;
|
|
23
|
-
}
|
|
24
|
-
async run() {
|
|
25
|
-
let rcFile;
|
|
26
|
-
try {
|
|
27
|
-
rcFile = await (0, completion_1.initializeAutocomplete)();
|
|
28
|
-
}
|
|
29
|
-
catch (err) {
|
|
30
|
-
(0, error_1.assertIsError)(err);
|
|
31
|
-
this.context.logger.error(err.message);
|
|
32
|
-
return 1;
|
|
33
|
-
}
|
|
34
|
-
this.context.logger.info(`
|
|
35
|
-
Appended \`source <(ng completion script)\` to \`${rcFile}\`. Restart your terminal or run the following to autocomplete \`ng\` commands:
|
|
36
|
-
|
|
37
|
-
${color_1.colors.yellow('source <(ng completion script)')}
|
|
38
|
-
`.trim());
|
|
39
|
-
if ((await (0, completion_1.hasGlobalCliInstall)()) === false) {
|
|
40
|
-
this.context.logger.warn('Setup completed successfully, but there does not seem to be a global install of the' +
|
|
41
|
-
' Angular CLI. For autocompletion to work, the CLI will need to be on your `$PATH`, which' +
|
|
42
|
-
' is typically done with the `-g` flag in `npm install -g @angular/cli`.' +
|
|
43
|
-
'\n\n' +
|
|
44
|
-
'For more information, see https://angular.dev/cli/completion#global-install');
|
|
45
|
-
}
|
|
46
|
-
return 0;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.default = CompletionCommandModule;
|
|
50
|
-
class CompletionScriptCommandModule extends command_module_1.CommandModule {
|
|
51
|
-
command = 'script';
|
|
52
|
-
describe = 'Generate a bash and zsh real-time type-ahead autocompletion script.';
|
|
53
|
-
longDescriptionPath = undefined;
|
|
54
|
-
builder(localYargs) {
|
|
55
|
-
return localYargs;
|
|
56
|
-
}
|
|
57
|
-
run() {
|
|
58
|
-
this.context.yargsInstance.showCompletionScript();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["cli.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,yCAAiC;AAEjC,yEAAkG;AAClG,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AAC;IAEhC,OAAO,CAAC,UAAgB;QACtB,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,GAAG;QACD,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,oBAAoB,EAAE,CAAC;IACpD,CAAC;CACF"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
Setting up autocompletion configures your terminal, so pressing the `<TAB>` key while in the middle
|
|
2
|
-
of typing will display various commands and options available to you. This makes it very easy to
|
|
3
|
-
discover and use CLI commands without lots of memorization.
|
|
4
|
-
|
|
5
|
-

|
|
8
|
-
|
|
9
|
-
## Automated setup
|
|
10
|
-
|
|
11
|
-
The CLI should prompt and ask to set up autocompletion for you the first time you use it (v14+).
|
|
12
|
-
Simply answer "Yes" and the CLI will take care of the rest.
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
$ ng serve
|
|
16
|
-
? Would you like to enable autocompletion? This will set up your terminal so pressing TAB while typing Angular CLI commands will show possible options and autocomplete arguments. (Enabling autocompletion will modify configuration files in your home directory.) Yes
|
|
17
|
-
Appended `source <(ng completion script)` to `/home/my-username/.bashrc`. Restart your terminal or run:
|
|
18
|
-
|
|
19
|
-
source <(ng completion script)
|
|
20
|
-
|
|
21
|
-
to autocomplete `ng` commands.
|
|
22
|
-
|
|
23
|
-
# Serve output...
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
If you already refused the prompt, it won't ask again. But you can run `ng completion` to
|
|
27
|
-
do the same thing automatically.
|
|
28
|
-
|
|
29
|
-
This modifies your terminal environment to load Angular CLI autocompletion, but can't update your
|
|
30
|
-
current terminal session. Either restart it or run `source <(ng completion script)` directly to
|
|
31
|
-
enable autocompletion in your current session.
|
|
32
|
-
|
|
33
|
-
Test it out by typing `ng ser<TAB>` and it should autocomplete to `ng serve`. Ambiguous arguments
|
|
34
|
-
will show all possible options and their documentation, such as `ng generate <TAB>`.
|
|
35
|
-
|
|
36
|
-
## Manual setup
|
|
37
|
-
|
|
38
|
-
Some users may have highly customized terminal setups, possibly with configuration files checked
|
|
39
|
-
into source control with an opinionated structure. `ng completion` only ever appends Angular's setup
|
|
40
|
-
to an existing configuration file for your current shell, or creates one if none exists. If you want
|
|
41
|
-
more control over exactly where this configuration lives, you can manually set it up by having your
|
|
42
|
-
shell run at startup:
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
source <(ng completion script)
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
This is equivalent to what `ng completion` will automatically set up, and gives power users more
|
|
49
|
-
flexibility in their environments when desired.
|
|
50
|
-
|
|
51
|
-
## Platform support
|
|
52
|
-
|
|
53
|
-
Angular CLI supports autocompletion for the Bash and Zsh shells on MacOS and Linux operating
|
|
54
|
-
systems. On Windows, Git Bash and [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/)
|
|
55
|
-
using Bash or Zsh are supported.
|
|
56
|
-
|
|
57
|
-
## Global install
|
|
58
|
-
|
|
59
|
-
Autocompletion works by configuring your terminal to invoke the Angular CLI on startup to load the
|
|
60
|
-
setup script. This means the terminal must be able to find and execute the Angular CLI, typically
|
|
61
|
-
through a global install that places the binary on the user's `$PATH`. If you get
|
|
62
|
-
`command not found: ng`, make sure the CLI is installed globally which you can do with the `-g`
|
|
63
|
-
flag:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
npm install -g @angular/cli
|
|
67
|
-
```
|
|
@@ -1,24 +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 { CommandModule, CommandModuleImplementation, Options } from '../../command-builder/command-module';
|
|
10
|
-
interface ConfigCommandArgs {
|
|
11
|
-
'json-path'?: string;
|
|
12
|
-
value?: string;
|
|
13
|
-
global?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export default class ConfigCommandModule extends CommandModule<ConfigCommandArgs> implements CommandModuleImplementation<ConfigCommandArgs> {
|
|
16
|
-
command: string;
|
|
17
|
-
describe: string;
|
|
18
|
-
longDescriptionPath: string;
|
|
19
|
-
builder(localYargs: Argv): Argv<ConfigCommandArgs>;
|
|
20
|
-
run(options: Options<ConfigCommandArgs>): Promise<number | void>;
|
|
21
|
-
private get;
|
|
22
|
-
private set;
|
|
23
|
-
}
|
|
24
|
-
export {};
|