angular/adev
Alan Agius fc643c9044 build: adopt moduleResolution: "bundler" (#64125)
This commit updates the TypeScript configuration across the project to use `moduleResolution: "bundler"`. This modernizes our module resolution strategy to align with current TypeScript best practices and bundler behaviors.

The following changes are included:
- Updated `tsconfig.json` files to set `moduleResolution` to `"bundler"`.
- Updated the `rules_angular` bazel dependency to a version compatible with these changes.
- Adjusted related test files and golden files to reflect the new module resolution strategy.

PR Close #64125
2025-09-29 14:20:23 -04:00
..
scripts docs: add di synonym (#63743) 2025-09-11 21:51:09 +00:00
shared-docs build: adopt moduleResolution: "bundler" (#64125) 2025-09-29 14:20:23 -04:00
src build: adopt moduleResolution: "bundler" (#64125) 2025-09-29 14:20:23 -04:00
tools build: migrate remaing esbuild and nodejs_binary usages to new toolchain (#62435) 2025-07-03 08:09:33 +00:00
angular.json docs(docs-infra): generate llms-full.txt at build time (#61864) 2025-07-08 11:27:54 -07:00
BUILD.bazel ci: optimize adev CI workflows (#63941) 2025-09-19 14:38:11 +00:00
firebase.json Revert "ci: redirect adev to index.csr.html (#63168)" (#63177) 2025-08-15 09:43:14 +02:00
karma.conf.js build: migrate adev to use rules_angular based cli rules (#62435) 2025-07-03 08:09:33 +00:00
package.json build: update all non-major dependencies (#64111) 2025-09-29 10:14:09 -04:00
README.md docs: high level architecture mention in readme (#63828) 2025-09-16 15:00:16 +00:00
tailwind.config.js docs(docs-infra): enable using Tailwind CSS in code examples (#63583) 2025-09-10 23:01:36 +00:00
test-main.ts refactor(docs-infra): Remove rethrowing error handler (#61243) 2025-05-09 10:40:14 -07:00
tsconfig.app.json build: fix adev first party linking and re-enable tests (#60825) 2025-04-10 14:19:52 +00:00
tsconfig.json docs(docs-infra): cleanup tsconfig (#63641) 2025-09-10 22:13:15 +00:00
tsconfig.spec.json test(docs-infra): update adev tests to be zoneless (#57100) 2024-07-23 14:50:32 -07:00
tsconfig.worker.json refactor(docs-infra): refactor adev to build using architect (#53497) 2023-12-11 19:21:07 +00:00

Angular.dev

This site is built with Angular.

The content is written primarily in Markdown format located in src/content. For simple edits, you can directly edit the file on GitHub and generate a Pull Request.

Local Development

For local development, pnpm is the preferred package manager. You can set up a local environment with the following commands :

# Clone Angular repo
git clone https://github.com/angular/angular.git

# Navigate to project directory
cd angular

# Install dependencies
pnpm

# Build and run local dev server
# NOTE: Initial build will take some time
pnpm adev

If you are having issues with the docs building, see the FAQs section.

Contributing

Want to report a bug, contribute some code, or improve the documentation? Excellent!

Read through our contributing guidelines to learn about our submission process, coding rules, and more.

And if you're new, check out one of our issues labeled as help wanted or good first issue.

Code of Conduct

Help us keep Angular open and inclusive. Please read and follow our Code of Conduct.

FAQs

The build is failing and I'm seeing bazel:bazel failed: missing input file messages.

This is most likely due to a bazel dependency / caching issue. To resolve this, run the following command:

# Try this first
pnpm bazel clean

# If that doesn't work, try it with the expunge flag
pnpm bazel clean --expunge

High level architecture

The angular.dev website is a modern Angular application that utilizes Static Site Generation (SSG) to deliver pre-rendered, high-performance content to users.

The architecture is designed for efficiency and maintainability:

Content Sources: The documentation is sourced from two main places within the monorepo. The guides and tutorials are written in Markdown files, while the API reference pages are automatically generated by extracting documentation directly from the TypeScript source code of the Angular framework packages.

Build Process: During the build process, the Markdown files are converted into HTML. Simultaneously, the API documentation is extracted from the code comments. This content is then integrated into the Angular application.