@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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArchitectCommandModule
|
|
3
|
+
} from "./chunk-CAZUOCTC.js";
|
|
4
|
+
import "./chunk-DHWVZMLH.js";
|
|
5
|
+
import "./chunk-YM7ILCS5.js";
|
|
6
|
+
import "./chunk-XG3HVNIL.js";
|
|
7
|
+
import "./chunk-GHUUJYOY.js";
|
|
8
|
+
import "./chunk-FZ5GFCWU.js";
|
|
9
|
+
|
|
10
|
+
// packages/angular/cli/src/commands/lint/long-description.md
|
|
11
|
+
var long_description_default = 'The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file.\nWhen a project name is not supplied, executes the `lint` builder for all projects.\n\nTo use the `ng lint` command, use `ng add` to add a package that implements linting capabilities. Adding the package automatically updates your workspace configuration, adding a lint [CLI builder](tools/cli/cli-builder).\nFor example:\n\n```json\n"projects": {\n "my-project": {\n ...\n "architect": {\n ...\n "lint": {\n "builder": "@angular-eslint/builder:lint",\n "options": {}\n }\n }\n }\n}\n```\n';
|
|
12
|
+
|
|
13
|
+
// packages/angular/cli/src/commands/lint/cli.js
|
|
14
|
+
var LintCommandModule = class extends ArchitectCommandModule {
|
|
15
|
+
missingTargetChoices = [
|
|
16
|
+
{
|
|
17
|
+
name: "ESLint",
|
|
18
|
+
value: "angular-eslint"
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
multiTarget = true;
|
|
22
|
+
command = "lint [project]";
|
|
23
|
+
longDescription = long_description_default;
|
|
24
|
+
describe = "Runs linting tools on Angular application code in a given project folder.";
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
LintCommandModule as default
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @license
|
|
31
|
+
* Copyright Google LLC All Rights Reserved.
|
|
32
|
+
*
|
|
33
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
34
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
35
|
+
*/
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CommandModule
|
|
3
|
+
} from "./chunk-YM7ILCS5.js";
|
|
4
|
+
import "./chunk-XG3HVNIL.js";
|
|
5
|
+
import {
|
|
6
|
+
colors
|
|
7
|
+
} from "./chunk-GHUUJYOY.js";
|
|
8
|
+
import "./chunk-FZ5GFCWU.js";
|
|
9
|
+
|
|
10
|
+
// packages/angular/cli/src/commands/make-this-awesome/cli.js
|
|
11
|
+
var AwesomeCommandModule = class extends CommandModule {
|
|
12
|
+
command = "make-this-awesome";
|
|
13
|
+
describe = false;
|
|
14
|
+
deprecated = false;
|
|
15
|
+
builder(localYargs) {
|
|
16
|
+
return localYargs;
|
|
17
|
+
}
|
|
18
|
+
run() {
|
|
19
|
+
const pickOne = (of) => of[Math.floor(Math.random() * of.length)];
|
|
20
|
+
const phrase = pickOne([
|
|
21
|
+
`You're on it, there's nothing for me to do!`,
|
|
22
|
+
`Let's take a look... nope, it's all good!`,
|
|
23
|
+
`You're doing fine.`,
|
|
24
|
+
`You're already doing great.`,
|
|
25
|
+
`Nothing to do; already awesome. Exiting.`,
|
|
26
|
+
`Error 418: As Awesome As Can Get.`,
|
|
27
|
+
`I spy with my little eye a great developer!`,
|
|
28
|
+
`Noop... already awesome.`
|
|
29
|
+
]);
|
|
30
|
+
this.context.logger.info(colors.green(phrase));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
AwesomeCommandModule as default
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @license
|
|
38
|
+
* Copyright Google LLC All Rights Reserved.
|
|
39
|
+
*
|
|
40
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
41
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
42
|
+
*/
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArchitectCommandModule
|
|
3
|
+
} from "./chunk-CAZUOCTC.js";
|
|
4
|
+
import "./chunk-DHWVZMLH.js";
|
|
5
|
+
import {
|
|
6
|
+
RootCommands
|
|
7
|
+
} from "./chunk-5AASRQKS.js";
|
|
8
|
+
import "./chunk-YM7ILCS5.js";
|
|
9
|
+
import "./chunk-XG3HVNIL.js";
|
|
10
|
+
import "./chunk-GHUUJYOY.js";
|
|
11
|
+
import "./chunk-FZ5GFCWU.js";
|
|
12
|
+
|
|
13
|
+
// packages/angular/cli/src/commands/serve/cli.js
|
|
14
|
+
var ServeCommandModule = class extends ArchitectCommandModule {
|
|
15
|
+
multiTarget = false;
|
|
16
|
+
command = "serve [project]";
|
|
17
|
+
aliases = RootCommands["serve"].aliases;
|
|
18
|
+
describe = "Builds and serves your application, rebuilding on file changes.";
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
ServeCommandModule as default
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright Google LLC All Rights Reserved.
|
|
26
|
+
*
|
|
27
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
28
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
29
|
+
*/
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_SCHEMATICS_COLLECTION,
|
|
3
|
+
SchematicsCommandModule
|
|
4
|
+
} from "./chunk-Q67GOPL7.js";
|
|
5
|
+
import "./chunk-JBLF2TH3.js";
|
|
6
|
+
import {
|
|
7
|
+
RootCommands
|
|
8
|
+
} from "./chunk-5AASRQKS.js";
|
|
9
|
+
import {
|
|
10
|
+
CommandScope
|
|
11
|
+
} from "./chunk-YM7ILCS5.js";
|
|
12
|
+
import {
|
|
13
|
+
VERSION
|
|
14
|
+
} from "./chunk-XG3HVNIL.js";
|
|
15
|
+
import "./chunk-GHUUJYOY.js";
|
|
16
|
+
import "./chunk-FZ5GFCWU.js";
|
|
17
|
+
|
|
18
|
+
// packages/angular/cli/src/commands/new/long-description.md
|
|
19
|
+
var long_description_default = "Creates and initializes a new Angular application that is the default project for a new workspace.\n\nProvides interactive prompts for optional configuration, such as adding routing support.\nAll prompts can safely be allowed to default.\n\n- The new workspace folder is given the specified project name, and contains configuration files at the top level.\n\n- By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder.\n- The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.\n\n- Subsequent applications that you generate in the workspace reside in the `projects/` subfolder.\n\nIf you plan to have multiple applications in the workspace, you can create an empty workspace by using the `--no-create-application` option.\nYou can then use `ng generate application` to create an initial application.\nThis allows a workspace name different from the initial app name, and ensures that all applications reside in the `/projects` subfolder, matching the structure of the configuration file.\n";
|
|
20
|
+
|
|
21
|
+
// packages/angular/cli/src/commands/new/cli.js
|
|
22
|
+
var NewCommandModule = class extends SchematicsCommandModule {
|
|
23
|
+
schematicName = "ng-new";
|
|
24
|
+
scope = CommandScope.Out;
|
|
25
|
+
allowPrivateSchematics = true;
|
|
26
|
+
command = "new [name]";
|
|
27
|
+
aliases = RootCommands["new"].aliases;
|
|
28
|
+
describe = "Creates a new Angular workspace.";
|
|
29
|
+
longDescription = long_description_default;
|
|
30
|
+
async builder(argv) {
|
|
31
|
+
const localYargs = (await super.builder(argv)).option("collection", {
|
|
32
|
+
alias: "c",
|
|
33
|
+
describe: "A collection of schematics to use in generating the initial application.",
|
|
34
|
+
type: "string"
|
|
35
|
+
});
|
|
36
|
+
const { options: { collection: collectionNameFromArgs } } = this.context.args;
|
|
37
|
+
const collectionName = typeof collectionNameFromArgs === "string" ? collectionNameFromArgs : await this.getCollectionFromConfig();
|
|
38
|
+
const workflow = this.getOrCreateWorkflowForBuilder(collectionName);
|
|
39
|
+
const collection = workflow.engine.createCollection(collectionName);
|
|
40
|
+
const options = await this.getSchematicOptions(collection, this.schematicName, workflow);
|
|
41
|
+
return this.addSchemaOptionsToCommand(localYargs, options);
|
|
42
|
+
}
|
|
43
|
+
async run(options) {
|
|
44
|
+
const collectionName = options.collection ?? await this.getCollectionFromConfig();
|
|
45
|
+
const { dryRun, force, interactive, defaults, collection, ...schematicOptions } = options;
|
|
46
|
+
const workflow = await this.getOrCreateWorkflowForExecution(collectionName, {
|
|
47
|
+
dryRun,
|
|
48
|
+
force,
|
|
49
|
+
interactive,
|
|
50
|
+
defaults
|
|
51
|
+
});
|
|
52
|
+
workflow.registry.addSmartDefaultProvider("ng-cli-version", () => VERSION.full);
|
|
53
|
+
workflow.registry.addSmartDefaultProvider("packageManager", () => this.context.packageManager.name);
|
|
54
|
+
return this.runSchematic({
|
|
55
|
+
collectionName,
|
|
56
|
+
schematicName: this.schematicName,
|
|
57
|
+
schematicOptions,
|
|
58
|
+
executionOptions: {
|
|
59
|
+
dryRun,
|
|
60
|
+
force,
|
|
61
|
+
interactive,
|
|
62
|
+
defaults
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/** Find a collection from config that has an `ng-new` schematic. */
|
|
67
|
+
async getCollectionFromConfig() {
|
|
68
|
+
for (const collectionName of await this.getSchematicCollections()) {
|
|
69
|
+
const workflow = this.getOrCreateWorkflowForBuilder(collectionName);
|
|
70
|
+
const collection = workflow.engine.createCollection(collectionName);
|
|
71
|
+
const schematicsInCollection = collection.description.schematics;
|
|
72
|
+
if (Object.keys(schematicsInCollection).includes(this.schematicName)) {
|
|
73
|
+
return collectionName;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return DEFAULT_SCHEMATICS_COLLECTION;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
NewCommandModule as default
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* @license
|
|
84
|
+
* Copyright Google LLC All Rights Reserved.
|
|
85
|
+
*
|
|
86
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
87
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
88
|
+
*/
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
addCommandModuleToYargs,
|
|
3
|
+
demandCommandFailureMessage
|
|
4
|
+
} from "./chunk-G7TRU43D.js";
|
|
5
|
+
import {
|
|
6
|
+
CommandModule,
|
|
7
|
+
getAnalyticsInfoString,
|
|
8
|
+
promptAnalytics,
|
|
9
|
+
setAnalyticsConfig
|
|
10
|
+
} from "./chunk-YM7ILCS5.js";
|
|
11
|
+
import "./chunk-XG3HVNIL.js";
|
|
12
|
+
import "./chunk-GHUUJYOY.js";
|
|
13
|
+
import "./chunk-FZ5GFCWU.js";
|
|
14
|
+
|
|
15
|
+
// packages/angular/cli/src/commands/analytics/info/cli.js
|
|
16
|
+
var AnalyticsInfoCommandModule = class extends CommandModule {
|
|
17
|
+
command = "info";
|
|
18
|
+
describe = "Prints analytics gathering and reporting configuration in the console.";
|
|
19
|
+
builder(localYargs) {
|
|
20
|
+
return localYargs.strict();
|
|
21
|
+
}
|
|
22
|
+
async run(_options) {
|
|
23
|
+
this.context.logger.info(await getAnalyticsInfoString(this.context));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// packages/angular/cli/src/commands/analytics/long-description.md
|
|
28
|
+
var long_description_default = "You can help the Angular Team to prioritize features and improvements by permitting the Angular team to send command-line command usage statistics to Google.\nThe Angular Team does not collect usage statistics unless you explicitly opt in. When installing the Angular CLI you are prompted to allow global collection of usage statistics.\nIf you say no or skip the prompt, no data is collected.\n\n### What is collected?\n\nUsage analytics include the commands and selected flags for each execution.\nUsage analytics may include the following information:\n\n- Your operating system \\(macOS, Linux distribution, Windows\\) and its version.\n- Package manager name and version \\(local version only\\).\n- Node.js version \\(local version only\\).\n- Angular CLI version \\(local version only\\).\n- Command name that was run.\n- Workspace information, the number of application and library projects.\n- For schematics commands \\(add, generate and new\\), the schematic collection and name and a list of selected flags.\n- For build commands \\(build, serve\\), the builder name, the number and size of bundles \\(initial and lazy\\), compilation units, the time it took to build and rebuild, and basic Angular-specific API usage.\n\nOnly Angular owned and developed schematics and builders are reported.\nThird-party schematics and builders do not send data to the Angular Team.\n";
|
|
29
|
+
|
|
30
|
+
// packages/angular/cli/src/commands/analytics/settings/cli.js
|
|
31
|
+
var AnalyticsSettingModule = class extends CommandModule {
|
|
32
|
+
builder(localYargs) {
|
|
33
|
+
return localYargs.option("global", {
|
|
34
|
+
description: `Configure analytics gathering and reporting globally in the caller's home directory.`,
|
|
35
|
+
alias: ["g"],
|
|
36
|
+
type: "boolean",
|
|
37
|
+
default: false
|
|
38
|
+
}).strict();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var AnalyticsDisableModule = class extends AnalyticsSettingModule {
|
|
42
|
+
command = "disable";
|
|
43
|
+
aliases = "off";
|
|
44
|
+
describe = "Disables analytics gathering and reporting for the user.";
|
|
45
|
+
async run({ global }) {
|
|
46
|
+
await setAnalyticsConfig(global, false);
|
|
47
|
+
process.stderr.write(await getAnalyticsInfoString(this.context));
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var AnalyticsEnableModule = class extends AnalyticsSettingModule {
|
|
51
|
+
command = "enable";
|
|
52
|
+
aliases = "on";
|
|
53
|
+
describe = "Enables analytics gathering and reporting for the user.";
|
|
54
|
+
async run({ global }) {
|
|
55
|
+
await setAnalyticsConfig(global, true);
|
|
56
|
+
process.stderr.write(await getAnalyticsInfoString(this.context));
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var AnalyticsPromptModule = class extends AnalyticsSettingModule {
|
|
60
|
+
command = "prompt";
|
|
61
|
+
describe = "Prompts the user to set the analytics gathering status interactively.";
|
|
62
|
+
async run({ global }) {
|
|
63
|
+
await promptAnalytics(this.context, global, true);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// packages/angular/cli/src/commands/analytics/cli.js
|
|
68
|
+
var AnalyticsCommandModule = class extends CommandModule {
|
|
69
|
+
command = "analytics";
|
|
70
|
+
describe = "Configures the gathering of Angular CLI usage metrics.";
|
|
71
|
+
longDescription = long_description_default;
|
|
72
|
+
builder(localYargs) {
|
|
73
|
+
const subcommands = [
|
|
74
|
+
AnalyticsInfoCommandModule,
|
|
75
|
+
AnalyticsDisableModule,
|
|
76
|
+
AnalyticsEnableModule,
|
|
77
|
+
AnalyticsPromptModule
|
|
78
|
+
].sort();
|
|
79
|
+
for (const module of subcommands) {
|
|
80
|
+
addCommandModuleToYargs(module, this.context);
|
|
81
|
+
}
|
|
82
|
+
return localYargs.demandCommand(1, demandCommandFailureMessage).strict();
|
|
83
|
+
}
|
|
84
|
+
run(_options) {
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
export {
|
|
88
|
+
AnalyticsCommandModule as default
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* @license
|
|
92
|
+
* Copyright Google LLC All Rights Reserved.
|
|
93
|
+
*
|
|
94
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
95
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
96
|
+
*/
|