mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
This change updates the analytics collector collector to use GA4 instead of UA. The motivation behind this change is that UA will stop collecting data in 2023. BREAKING CHANGE: `analyticsSharing` option in the global angular configuration has been removed without replacement. This option was used to configure the Angular CLI to access to your own users' CLI usage data. If this option is used, it can be removed using `ng config --global cli.analyticsSharing undefined`.
<!-- BEFORE UPDATING THIS FILE, READ THIS. This file is automatically generated during release. It is important for you to not update README directly. - If you need to change the content, update `scripts/templates/readme.ejs` - If you need to add/remove a package or a link, update the .monorepo.json file instead. Any changes to README.md directly will result in a failure on CI. --> <h1 align="center">Angular CLI - The CLI tool for Angular.</h1> <p align="center"> <br> <img src="/docs/images/angular-cli-logo.png" alt="Angular CLI logo" width="100px" height="108px"/> <br><br> <i>The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, <br>and maintain Angular applications directly from a command shell.</i> <br> </p> <p align="center"> <a href="https://cli.angular.io"><strong>cli.angular.io</strong></a> <br> </p> <p align="center"> <a href="CONTRIBUTING.md">Contributing Guidelines</a> · <a href="https://github.com/angular/angular-cli/issues">Submit an Issue</a> · <a href="https://blog.angular.io/">Blog</a> <br> <br> </p> <p align="center"> <a href="https://circleci.com/gh/angular/workflows/angular-cli/tree/main"> <img src="https://img.shields.io/circleci/build/github/angular/angular-cli/main.svg?logo=circleci&logoColor=fff&label=CircleCI" alt="CI status" /> </a> <a href="https://discord.gg/angular"> <img src="https://img.shields.io/discord/463752820026376202.svg?logo=discord&logoColor=fff&label=Discord&color=7389d8" alt="Discord conversation" /> </a> </p> <hr> ## Documentation Get started with Angular CLI, learn the fundamentals and explore advanced topics on our documentation website. - [Getting started][quickstart] - [CLI][cli] - [Workspace and project file structure][filestructure] - [Workspace configuration][workspaceconfig] - [Schematics][schematics] ## Development Setup ### Prerequisites - Install [Node.js] which includes [Node Package Manager][npm] ### Setting Up a Project Install the Angular CLI globally: ``` npm install -g @angular/cli ``` Create workspace: ``` ng new [PROJECT NAME] ``` Run the application: ``` cd [PROJECT NAME] ng serve ``` Angular is cross-platform, fast, scalable, has incredible tooling, and is loved by millions. ## Quickstart [Get started in 5 minutes][quickstart]. ## Ecosystem <p> <img src="/docs/images/angular-ecosystem-logos.png" alt="angular ecosystem logos" width="500px" height="auto"> </p> - [Angular Framework][aio] - [Angular Material][angularmaterial] ## Changelog [Learn about the latest improvements][changelog]. ## Upgrading Check out our [upgrade guide](https://update.angular.io/) to find out the best way to upgrade your project. ## Contributing ### Contributing Guidelines Read through our [contributing guidelines][contributing] to learn about our submission process, coding rules and more. ### Want to Help? Want to report a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for [contributing][contributing] and then check out one of our issues labeled as <kbd>[help wanted](https://github.com/angular/angular-cli/labels/help%20wanted)</kbd> or <kbd>[good first issue](https://github.com/angular/angular-cli/labels/good%20first%20issue)</kbd>. ### Code of Conduct Help us keep Angular open and inclusive. Please read and follow our [Code of Conduct][codeofconduct]. ### Developer Guide Read through our [developer guide][developer] to learn about how to build and test the Angular CLI locally. ## Community Join the conversation and help the community. - [Twitter][twitter] - [Discord][discord] - [Gitter][gitter] - [YouTube][youtube] - [StackOverflow][stackoverflow] - Find a Local [Meetup][meetup] ## Packages This is a monorepo which contains many tools and packages: <% const sections = [ ...new Set(Object.keys(packages).map(pkgName => monorepo.packages[pkgName].section )) ].filter(x => x && x != 'Tooling'); sections.unshift(undefined); %> ### Tools | Project | Package | Version | Links | |---|---|---|---| <% for (const pkgName of Object.keys(packages)) { const pkg = packages[pkgName]; const mrPkg = monorepo.packages[pkgName]; if (pkg.private) { continue; } if (mrPkg.section != 'Tooling') { continue; } %>**<%= mrPkg.name%>**<% %> | [`<%= pkgName %>`](https://npmjs.com/package/<%= pkgName %>)<% %> | [ %>/latest.svg)](https://npmjs.com/package/<%= pkgName %>)<% %> | <% for (const link of mrPkg.links || []) { %>[](<%= link.url %>)<% } if (mrPkg.snapshotRepo) { %> [](https://github.com/<%= mrPkg.snapshotRepo %>)<% } %> <% } %> ### Packages <% for (const section of sections) { %><%= section ? '#### ' + section : '' %> | Project | Package | Version | Links | |---|---|---|---| <% for (const pkgName of Object.keys(packages)) { const pkg = packages[pkgName]; const mrPkg = monorepo.packages[pkgName]; if (pkg.private) { continue; } if (mrPkg.section != section) { continue; } %>**<%= mrPkg.name%>**<% %> | [`<%= pkgName %>`](https://npmjs.com/package/<%= pkgName %>)<% %> | [ %>/latest.svg)](https://npmjs.com/package/<%= pkgName %>)<% %> | <% for (const link of mrPkg.links || []) { %>[](<%= link.url %>)<% } if (mrPkg.snapshotRepo) { %> [](https://github.com/<%= mrPkg.snapshotRepo %>)<% } %> <% } %> <% } %> **Love Angular CLI? Give our repo a star :star: :arrow_up:.** [contributing]: CONTRIBUTING.md [developer]: docs/DEVELOPER.md [quickstart]: https://angular.io/start [changelog]: CHANGELOG.md [documentation]: https://angular.io/docs [angularmaterial]: https://material.angular.io/ [cli]: https://cli.angular.io/ [aio]: https://angular.io/ [workspaceconfig]: https://angular.io/guide/workspace-config [schematics]: https://angular.io/guide/schematics [filestructure]: https://angular.io/guide/file-structure [node.js]: https://nodejs.org/ [npm]: https://www.npmjs.com/get-npm [codeofconduct]: https://github.com/angular/angular/blob/main/CODE_OF_CONDUCT.md [twitter]: https://www.twitter.com/angular [discord]: https://discord.gg/angular [gitter]: https://gitter.im/angular/angular-cli [stackoverflow]: https://stackoverflow.com/questions/tagged/angular-cli [youtube]: https://youtube.com/angular [meetup]: https://www.meetup.com/find/?keywords=angular