mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build: refactor location of best-practices.md
This commit moves the best-practices.md file from adev/src/context to packages/core/resources. The BUILD.bazel files and other configuration files have been updated to reflect this change.
(cherry picked from commit 25e8bcbdf6)
This commit is contained in:
parent
e62da0d1c7
commit
a1b4e381e6
7 changed files with 25 additions and 1 deletions
|
|
@ -134,6 +134,7 @@ copy_to_directory(
|
|||
srcs = [
|
||||
"//adev/src/context",
|
||||
"//adev/src/context:llms_full",
|
||||
"//packages/core/resources:best-practices.md",
|
||||
],
|
||||
replace_prefixes = {
|
||||
"**/": "",
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ generate_guides(
|
|||
data = [
|
||||
"//adev/src/assets/images:what_is_angular.svg",
|
||||
"//adev/src/context",
|
||||
"//packages/core/resources:best-practices.md",
|
||||
],
|
||||
visibility = ["//adev:__subpackages__"],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ NOTE: These files will be updated on a regular basis staying up to date with Ang
|
|||
|
||||
Here is a set of instructions to help LLMs generate correct code that follows Angular best practices. This file can be included as system instructions to your AI tooling or included along with your prompt as context.
|
||||
|
||||
<docs-code language="md" path="adev/src/context/best-practices.md" class="compact"/>
|
||||
<docs-code language="md" path="packages/core/resources/best-practices.md" class="compact"/>
|
||||
|
||||
<a download href="/assets/context/best-practices.md" target="_blank">Click here to download the best-practices.md file.</a>
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ ng_package(
|
|||
srcs = [
|
||||
"package.json",
|
||||
":event_dispatch_contract_binary",
|
||||
"//packages/core/resources",
|
||||
],
|
||||
nested_packages = [
|
||||
"//packages/core/schematics:npm_package",
|
||||
|
|
|
|||
|
|
@ -40,6 +40,12 @@
|
|||
"migrations": "./schematics/migrations.json",
|
||||
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
|
||||
},
|
||||
"angular": {
|
||||
"bestPractices": {
|
||||
"format": "markdown",
|
||||
"path": "./resources/best-practices.md"
|
||||
}
|
||||
},
|
||||
"schematics": "./schematics/collection.json",
|
||||
"sideEffects": false
|
||||
}
|
||||
|
|
|
|||
15
packages/core/resources/BUILD.bazel
Normal file
15
packages/core/resources/BUILD.bazel
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
exports_files(
|
||||
srcs = ["best-practices.md"],
|
||||
visibility = [
|
||||
"//adev/src/assets:__pkg__",
|
||||
"//adev/src/content/ai:__pkg__",
|
||||
],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "resources",
|
||||
srcs = ["best-practices.md"],
|
||||
visibility = [
|
||||
"//packages/core:__pkg__",
|
||||
],
|
||||
)
|
||||
Loading…
Reference in a new issue