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:
Alan Agius 2025-10-25 10:01:28 +00:00 committed by Kristiyan Kostadinov
parent e62da0d1c7
commit a1b4e381e6
7 changed files with 25 additions and 1 deletions

View file

@ -134,6 +134,7 @@ copy_to_directory(
srcs = [
"//adev/src/context",
"//adev/src/context:llms_full",
"//packages/core/resources:best-practices.md",
],
replace_prefixes = {
"**/": "",

View file

@ -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__"],
)

View file

@ -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>

View file

@ -58,6 +58,7 @@ ng_package(
srcs = [
"package.json",
":event_dispatch_contract_binary",
"//packages/core/resources",
],
nested_packages = [
"//packages/core/schematics:npm_package",

View file

@ -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
}

View 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__",
],
)