mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit introduces the infrastructure for embedding code examples within Angular packages, enabling them to be consumed by the Angular CLI's MCP server. The `@angular/forms` package is the first to adopt this new feature. A new `ng_examples_db` Bazel rule is used to build a SQLite database from markdown files containing code examples. This database is then included in the published npm package. The `package.json` for `@angular/forms` has been updated with an `angular.examples` field to allow tooling to discover and use the code examples.
35 lines
870 B
JSON
35 lines
870 B
JSON
{
|
|
"name": "@angular/forms",
|
|
"version": "0.0.0-PLACEHOLDER",
|
|
"description": "Angular - directives and services for creating forms",
|
|
"author": "angular",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
|
|
},
|
|
"dependencies": {
|
|
"tslib": "^2.3.0",
|
|
"@standard-schema/spec": "^1.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@angular/core": "0.0.0-PLACEHOLDER",
|
|
"@angular/common": "0.0.0-PLACEHOLDER",
|
|
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
|
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/angular/angular.git",
|
|
"directory": "packages/forms"
|
|
},
|
|
"angular": {
|
|
"examples": {
|
|
"format": "sqlite",
|
|
"path": "./resources/code-examples.db"
|
|
}
|
|
},
|
|
"ng-update": {
|
|
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
|
|
},
|
|
"sideEffects": false
|
|
}
|